cd3fce39d3a1131a2d9a5ef87c6b424077ccd1a7
[pspp] / ChangeLog
1 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2
3         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5         When gl_THREADLIB is not in use, assume that the POSIX sematics
6         are desired.  This is better for Emacs, which uses POSIX semantics
7         on GNUish and/or POSIXish platforms, and does not use threads at
8         all otherwise.
9
10         pthread_sigmask: fix typo when testing for libraries
11         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
13
14 2011-07-08  Eric Blake  <eblake@redhat.com>
15
16         fts: introduce FTS_NOATIME
17         * lib/fts_.h (FTS_NOATIME): New bit flag.
18         (FTS_OPTIONMASK): Adjust.
19         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
20         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
21
22 2011-07-08  Bruno Haible  <bruno@clisp.org>
23
24         Tests for module 'thread'.
25         * modules/thread-tests: New file.
26         * tests/test-thread_self.c: New file.
27         * tests/test-thread_create.cc: New file.
28
29 2011-07-08  Bruno Haible  <bruno@clisp.org>
30
31         thread: Avoid gcc warnings when using gl_thread_self().
32         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
33         'void *'.
34         (gl_thread_self_pointer): Update.
35
36 2011-07-07  Bruno Haible  <bruno@clisp.org>
37
38         signal-c++-tests: Check declaration of pthread_sigmask.
39         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
40         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
41         $(LIB_PTHREAD_SIGMASK).
42
43 2011-07-07  Bruno Haible  <bruno@clisp.org>
44
45         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
46         * lib/signal.in.h (pthread_sigmask): Override if
47         REPLACE_PTHREAD_SIGMASK is 1.
48         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49         REPLACE_PTHREAD_SIGMASK.
50         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
51         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
52         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
53         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
54         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
55
56 2011-07-07  Bruno Haible  <bruno@clisp.org>
57
58         pthread_sigmask: Ensure declaration in <signal.h>.
59         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
60         include <pthread.h>.
61         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
62         problem.
63
64 2011-07-07  Bruno Haible  <bruno@clisp.org>
65
66         pthread_sigmask: Document the module.
67         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
68
69 2011-07-07  Bruno Haible  <bruno@clisp.org>
70
71         pthread_sigmask: Follow gnulib conventions.
72         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
73         gl_PTHREAD_SIGMASK.
74         * modules/pthread_sigmask (configure.ac): Update.
75
76 2011-07-07  Bruno Haible  <bruno@clisp.org>
77
78         pthread_sigmask: Make declaration C++ safe.
79         * lib/signal.in.h: In two special conditions, just do an #include_next.
80         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
81         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
82         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
83         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
84         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
85         not REPLACE_PTHREAD_MASK.
86         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
87         not REPLACE_PTHREAD_MASK.
88         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
89
90 2011-07-07  Bruno Haible  <bruno@clisp.org>
91
92         pthread_sigmask: Fix return value.
93         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
94         * lib/pthread_sigmask.c: New file.
95         * modules/pthread_sigmask (Files): Add it.
96         (configure.ac): Invoke AC_LIBOBJ.
97
98 2011-07-07  Eric Blake  <eblake@redhat.com>
99
100         getopt: more portable argv creation
101         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
102         const, use char arrays rather than strings.
103         Suggested by Paul Eggert.
104
105 2011-07-07  Bruno Haible  <bruno@clisp.org>
106
107         Tests for module 'sigprocmask'.
108         * modules/sigprocmask-tests: New file.
109         * tests/test-sigprocmask.c: New file.
110
111 2011-07-07  Bruno Haible  <bruno@clisp.org>
112
113         float tests: Tweak.
114         * tests/test-float.c (main): Tweak skip message.
115
116 2011-07-07  Eric Blake  <eblake@redhat.com>
117
118         getopt: avoid compiler warning during configure
119         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
120         assigning string literals to non-const pointer.
121
122         getopt-gnu: avoid crash in glibc getopt
123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
124         * tests/test-getopt.h (test_getopt): Enhance test.
125         * tests/test-getopt_long.h (test_getopt_long): Likewise.
126         * doc/posix-functions/getopt.texi (getopt): Document it.
127         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
128         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
129         Likewise.
130
131 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
132
133         getopt: handle W; without long options in getopt [BZ #12922]
134         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
135         but no long options are defined, just return 'W'.
136
137 2011-07-07  Bruno Haible  <bruno@clisp.org>
138
139         Avoid literal tabs.
140         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
141         variable containing a tab instead of a literal tab.
142         Reported by Jim Meyering.
143
144 2011-07-07  Bruno Haible  <bruno@clisp.org>
145
146         Comments.
147         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
148
149 2011-07-06  Bruno Haible  <bruno@clisp.org>
150
151         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
152         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
153         <winsock2.h>.
154         (rpl_fd_isset, FD_ISSET): New definitions, copied from
155         lib/sys_socket.in.h.
156         (close, gethostname): Hide declarations from <winsock2.h>.
157         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
158         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
159         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
160         (select): Don't override if gnulib's <sys/select.h> was already
161         included.
162         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
163         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
164         setsockopt, shutdown, select): Tweak indentation.
165
166 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
167
168         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
169         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
170         in an application that does not use the sys_select module.
171
172 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
173
174         poll: do not return 0 on timeout=-1
175         * lib/poll.c: Loop with yield if no events occured
176
177 2011-07-06  Eric Blake  <eblake@redhat.com>
178
179         pthread_sigmask: always replace when not using pthread
180         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
181         replacement when using some threading other than pthread.  Fix
182         logic bug.
183
184 2011-07-06  Bruno Haible  <bruno@clisp.org>
185
186         Comments.
187         * m4/printf.m4: Update comments about mingw.
188
189 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
190
191         sys_select: define sigset_t more portably
192         * lib/sys_select.in.h: Always include <sys/types.h>, since
193         we now need sigset_t and mingw defines it there.
194         Include <signal.h> before split inclusion guard, to avoid
195         mishaps on Solaris, whose <signal.h> eventually includes us.
196         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
197         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
198         which come from ...
199         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
200         gl_CHECK_TYPE_SIGSET_T.
201         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
202         does the real work.
203         * modules/sys_select (Depends-on): Add 'signal'.
204
205         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
206         Suggested by Bruno Haible.
207
208         pselect: Use pthread_sigmask, not sigprocmask.
209         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
210         multithreaded apps better than sigprocmask does.
211         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
212         sigprocmask directly.
213
214 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
215
216         * lib/pselect.c (pselect): Use plain name, without "rpl_".
217         Don't #undef,  since we don't need any underlying pselect.
218         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
219         (Depends-on): Add select.
220         (Link): Add $(LIBSOCKET).
221         These changes suggested by Bruno Haible.
222
223         pselect: document better
224         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
225         * doc/posix-functions/pselect.texi (pselect): Document new module.
226
227         pthread_sigmask: new module
228         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
229         * doc/posix-functions/pthread_sigmask.texi: Document new module.
230         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
231         This is done only as a macro; I don't know how well that'll
232         work for C++.  Move <sys/types.h> include before the include_next,
233         to avoid mishap on Solaris.
234         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
235         * modules/signal (Makefile.am): Substitute the check's results.
236         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
237
238         test-pselect: new module
239         * modules/pselect-tests, tests/test-pselect.c: New files.
240         * tests/test-select.c, tests/test-sys_select-c++.cc:
241         If TEST_PSELECT is defined, test pselect instead of testing select.
242
243         * tests/test-sys_select.c (sigset_t): Test for it, too.
244         Suggested by Bruno Haible.
245
246 2011-07-05  Eric Blake  <eblake@redhat.com>
247
248         snprintf: guarantee %1$d, for libintl
249         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
250         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
251         * doc/posix-functions/snprintf.texi (snprintf): Update.
252         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
253         * tests/test-snprintf.c (main): Enhance test.
254         * tests/test-vsnprintf.c (main): Likewise.
255
256 2011-07-05  Jim Meyering  <meyering@redhat.com>
257
258         maint: exempt stdio-read.c and stdio-write.c from the cppi check
259         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
260         per Bruno's request, to accommodate this idiom (no space after "#")
261         even when the function is inside an #if block:
262         char *
263         gets (char *s)
264         #undef gets
265         {
266           ...
267         }
268
269 2011-07-04  Jim Meyering  <meyering@redhat.com>
270
271         maint: indent with spaces, not TABs, and add a rule to check this
272         * tests/test-userspec.c: Indent with spaces, not TABs.
273         * tests/test-argp.c: Likewise.
274         * tests/test-c-stack2.sh: Likewise.
275         * tests/test-parse-duration.sh: Likewise
276         * m4/strtod.m4: Likewise.
277         * m4/alloca.m4: Likewise.
278         * m4/pselect.m4: Likewise.
279         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
280
281 2011-07-03  Jim Meyering  <meyering@redhat.com>
282
283         maint.mk: correct omissions in prohibit_argmatch_without_use check
284         This rule would mistakenly report that argmatch.h is included without
285         use even when both the argmatch and invalid_arg macro were used.
286         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
287         of argmatch and invalid_arg.
288
289 2011-07-03  Bruno Haible  <bruno@clisp.org>
290
291         Comments about EINTR.
292         * lib/safe-read.h: Explain the purpose of this module.
293         * lib/safe-write.h: Likewise.
294         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
295         module.
296         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
297         module.
298         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
299
300 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
301
302         xnanosleep: Rewrite to use new dtotimespec module.
303         It has the conversion code that used to be in xnanosleep.
304         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
305         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
306         (TIME_T_MAX): Remove.
307         (xnanosleep): Rewrite in terms of dtotimespec.
308         * modules/xnanosleep (Depends-on): Add dtotimespec.
309         Remove intprops, stdbool.
310
311         timespec-add, timespec-sub: new modules
312         * lib/timespec.h (timespec_add, timespec_sub): New decls.
313         * lib/timespec-add.c, lib/timespec-sub.c:
314         * modules/timespec-add, modules/timespec-sub: New files.
315
316         dtotimespec: new module
317         * lib/timespec.h (dtotimespec): New decl.
318         * lib/dtotimespec.c, modules/dtotimespec: New files.
319
320         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
321
322         pselect: new module
323         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
324         (pselect): New decls.
325         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
326         since the standard pselect decl uses 'restrict'.
327         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
328         HAVE_PSELECT, REPLACE_PSELECT.
329         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
330         HAVE_PSELECT, REPLACE_PSELECT.
331         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
332
333         sys_select: don't depend on sys_socket
334         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
336         This fix works on GNU and GNU-like platforms, but has not been tested
337         on native Windows.
338         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
339         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
340         gl_HEADER_SYS_SOCKET.
341         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
342         gl_PREREQ_SYS_H_WINSOCK2.
343
344 2011-06-29  Eric Blake  <eblake@redhat.com>
345
346         pipe2: fix C89 compile problem
347         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
348         Reported by Bruno Haible.
349
350         pipe, pipe2: don't corrupt fd on error
351         * lib/pipe.c (pipe): Leave fd unchanged on error.
352         * lib/pipe2.c (pipe2): Likewise.
353         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
354         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
355
356 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
357
358         mmap-anon: do not use regular expressions inadvertently
359         * m4/mmap-anon.m4: Remove trailing period from strings sought
360         in the output.
361
362 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
363
364         nanosleep: fix integer overflow problem
365         * lib/nanosleep.c (my_usleep): Don't assume signed integer
366         arithmetic wraps around on overflow.
367
368         nanosleep: simplify carrying
369         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
370         first call to the underyling nanosleep, not for the last one.
371         This doesn't fix any bugs, but it simplifies the computation of
372         the remaining delay.  Found while auditing integer overflow issues.
373
374         dup2: remove test for existence of fcntl
375         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
376         "#if HAVE_FCNTL", in the configure-time test program.
377         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
378         and therefore speeds up "configure" a bit.  Found while
379         adding the dup2 module to Emacs.
380
381 2011-06-24  Eric Blake  <eblake@redhat.com>
382
383         maint.mk: enhance useless header checks
384         * top/maint.mk (_sc_header_without_use): Check both include
385         styles.
386         (sc_prohibit_assert_without_use)
387         (sc_prohibit_close_stream_without_use)
388         (sc_prohibit_getopt_without_use)
389         (sc_prohibit_quotearg_without_use)
390         (sc_prohibit_quote_without_use)
391         (sc_prohibit_long_options_without_use)
392         (sc_prohibit_inttostr_without_use)
393         (sc_prohibit_ignore_value_without_use)
394         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
395         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
396         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
397         (sc_prohibit_hash_pjw_without_use)
398         (sc_prohibit_safe_read_without_use)
399         (sc_prohibit_argmatch_without_use)
400         (sc_prohibit_canonicalize_without_use)
401         (sc_prohibit_root_dev_ino_without_use)
402         (sc_prohibit_openat_without_use)
403         (sc_prohibit_c_ctype_without_use)
404         (sc_prohibit_signal_without_use)
405         (sc_prohibit_stdio--_without_use)
406         (sc_prohibit_stdio-safer_without_use)
407         (sc_prohibit_strings_without_use)
408         (sc_prohibit_intprops_without_use)
409         (sc_prohibit_stddef_without_use)
410         (sc_prohibit_xfreopen_without_use): Update clients.
411
412 2011-06-24  Jim Meyering  <meyering@redhat.com>
413
414         syntax-check: keep one maint.mk rule in sync with its header
415         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
416         of the bug Eric has just fixed, with today's commit 25e4c2ec.
417         I prefer to avoid temporary files here, so use <(...), but that
418         is not supported by /bin/sh, so...
419         (SHELL): Define to /bin/bash.
420
421 2011-06-24  Eric Blake  <eblake@redhat.com>
422
423         maint.mk: update sc_prohibit_intprops_without_use
424         * top/maint.mk (_intprops_names): Match recent changes.
425
426 2011-06-24  Bruno Haible  <bruno@clisp.org>
427
428         strerror-override: No-op tweak.
429         * lib/strerror-override.h (strerror_override): Reorder conditions,
430         for consistency with lib/strerror-override.c.
431
432 2011-06-23  Eric Blake  <eblake@redhat.com>
433
434         maint.mk: test further PATH_MAX issues
435         * top/maint.mk (sc_prohibit_path_max_array): Rename...
436         (sc_prohibit_path_max_allocation): ...and also test alloca.
437         Suggested by Jim Meyering.
438
439 2011-06-22  Eric Blake  <eblake@redhat.com>
440
441         maint.mk: add syntax-check to avoid char[PATH_MAX]
442         * top/maint.mk (sc_prohibit_path_max_array): New rule.
443
444         stat: be robust to PATH_MAX definition
445         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
446         * modules/stat (Depends-on): Add verify.
447
448         link: work around IRIX bug
449         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
450         * lib/link.c (rpl_link): Work around it.
451         * tests/test-link.h (test_link): Enhance test.
452         * doc/posix-functions/link.texi (link): Document the bug.
453
454         getopt: silence clang warning
455         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
456         dereference.
457         Reported by Gustavo Martin Domato.
458
459 2011-06-22  Jim Meyering  <meyering@redhat.com>
460
461         bootstrap: do not insert a blank line into each .gitignore file
462         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
463
464 2011-06-21  Eric Blake  <eblake@redhat.com>
465
466         perror: test for output mismatch
467         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
468         perror on IRIX.
469
470         strerror_r: fix OpenBSD behavior on out-of-range
471         * lib/strerror_r.c (strerror_r): Always use maximal string.
472         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
473
474         strerror_r: fix OpenBSD behavior on 0
475         * lib/strerror-override.c (strerror_override): Also override 0
476         when needed.
477         * lib/strerror-override.h (strerror_override): Likewise.
478         * lib/strerror.c (strerror): Simplify, now that 0 override is done
479         earlier.
480         * lib/strerror_r.c (strerror_r): Likewise.
481         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
482         behavior...
483         (gl_FUNC_STRERROR_0): ...into new macro.
484         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
485         is overridden.
486         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
487         * modules/strerror-override (Files): Add strerror.m4.
488         (configure.ac): Also provide override for 0 when needed.
489         * doc/posix-functions/strerror.texi (strerror): Document this.
490         * doc/posix-functions/perror.texi (perror): Likewise.
491
492         perror: adjust array size
493         * modules/perror (Depends-on): Add strerror-override.
494         * lib/perror.c (perror): Use it to avoid magic number.
495
496         strerror-override: reduce size
497         * lib/strerror-override.c (strerror_override): Use fewer lines.
498
499 2011-06-20  Bruno Haible  <bruno@clisp.org>
500
501         pathmax: Ensure correct value for PATH_MAX on HP-UX.
502         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
503
504 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
505
506         alloca: port to compilers that can optimize like GCC 4.6.0
507         * lib/alloca.c (find_stack_direction): New signature, taken from
508         Autoconf git.  This works with GCC 4.6.0.  This code should never
509         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
510         be used with other compilers that optimize as well as GCC 4.6.0 does.
511         (alloca): Adjust to new signature.
512         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
513         New macro, which patches Autoconf in a similar way.
514
515         c-stack: stop worrying about stack direction
516         * lib/c-stack.c (find_stack_direction): Remove.
517         (segv_handler): Don't worry about stack direction growth, as it's
518         too much of a pain to configure this correctly, given how compilers
519         are optimizing-away our stack-growth detection code.  Instead, assume
520         that any access to just before or just after the stack is OK.
521         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
522         Don't require AC_FUNC_ALLOCA; no longer needed.
523
524 2011-06-20  Eric Blake  <eblake@redhat.com>
525
526         test-stat: don't allocate PATH_MAX bytes
527         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
528         PATH_MAX-sized buffer.
529         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
530         * modules/stat-tests (Depends-on): Likewise.
531         * tests/test-fstatat.c (includes): Drop pathmax.h.
532         * tests/test-stat.c (includes): Likewise.
533         Reported by Bruno Haible.
534
535 2011-06-20  Bruno Haible  <bruno@clisp.org>
536
537         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
538         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
539         * lib/float.c: New file.
540         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
541         REPLACE_FLOAT_LDBL.
542         * modules/float (Files): Add lib/float.c.
543         (configure.ac): Invoke AC_LIBOBJ.
544         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
545
546 2011-06-20  Bruno Haible  <bruno@clisp.org>
547
548         Tests for module 'float'.
549         * modules/float-tests: New file.
550         * tests/test-float.c: New file.
551
552 2011-06-19  Bruno Haible  <bruno@clisp.org>
553
554         isinf: Coding style.
555         * lib/isinf.c: Use GNU coding style.
556
557 2011-06-19  Bruno Haible  <bruno@clisp.org>
558
559         linkat test: Avoid test failure on AIX 7.1.
560         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
561         * tests/test-link.h (test_link): Likewise.
562
563 2011-06-19  Bruno Haible  <bruno@clisp.org>
564
565         pread test: Avoid test failure on OpenBSD 4.9.
566         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
567
568 2011-06-19  Bruno Haible  <bruno@clisp.org>
569
570         sprintf-posix: Fix test failure on AIX 7.1.
571         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
572         * doc/posix-functions/dprintf.texi: Mention limited precision problem
573         on AIX.
574         * doc/posix-functions/fprintf.texi: Likewise.
575         * doc/posix-functions/printf.texi: Likewise.
576         * doc/posix-functions/snprintf.texi: Likewise.
577         * doc/posix-functions/sprintf.texi: Likewise.
578         * doc/posix-functions/vdprintf.texi: Likewise.
579         * doc/posix-functions/vfprintf.texi: Likewise.
580         * doc/posix-functions/vprintf.texi: Likewise.
581         * doc/posix-functions/vsnprintf.texi: Likewise.
582         * doc/posix-functions/vsprintf.texi: Likewise.
583
584 2011-06-19  Bruno Haible  <bruno@clisp.org>
585
586         roundl-ieee: Fix test failure on AIX 7.1.
587         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
588         * doc/posix-functions/roundl.texi: Mention problem with negative
589         arguments.
590
591 2011-06-19  Bruno Haible  <bruno@clisp.org>
592
593         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
594         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
595         * doc/posix-functions/round.texi: Mention problem with negative
596         arguments.
597         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
598
599 2011-06-19  Bruno Haible  <bruno@clisp.org>
600
601         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
602         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
603         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
604         * doc/posix-functions/roundf.texi: Mention problem with negative
605         arguments.
606         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
607
608 2011-06-19  Bruno Haible  <bruno@clisp.org>
609
610         ceilf-ieee: Work around bug on MacOS X 10.5.
611         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
612
613         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
614         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
615         IEEE compliant, avoid compiler optimizations.
616         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
617         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
618         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
619         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
620         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
621         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
622         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
623         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
624         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
625         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
626
627 2011-06-19  Bruno Haible  <bruno@clisp.org>
628
629         ceilf-ieee: Work around bug on AIX 7.1.
630         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
631         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
632
633 2011-06-19  Bruno Haible  <bruno@clisp.org>
634
635         ceil-ieee: Work around bug on AIX 7.1.
636         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
637         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
638
639 2011-06-18  Bruno Haible  <bruno@clisp.org>
640
641         fsync test: Avoid test failure on MacOS X and AIX.
642         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
643         EINVAL.
644
645 2011-06-18  Bruno Haible  <bruno@clisp.org>
646
647         openat, fdopendir tests: Fix link errors.
648         * modules/openat-tests (Depends-on): Add progname.
649         * modules/fdopendir-tests (Depends-on): Likewise.
650         * tests/test-fchownat.c: Include progname.h.
651         (main): Call set_program_name.
652         * tests/test-fstatat.c: Include progname.h.
653         (main): Call set_program_name.
654         * tests/test-mkdirat.c: Include progname.h.
655         (main): Call set_program_name.
656         * tests/test-openat.c: Include progname.h.
657         (main): Call set_program_name.
658         * tests/test-unlinkat.c: Include progname.h.
659         (main): Call set_program_name.
660         * tests/test-fdopendir.c: Include progname.h.
661         (main): Call set_program_name.
662
663 2011-06-18  Bruno Haible  <bruno@clisp.org>
664
665         Doc update.
666         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
667         HP-UX.
668         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
669
670 2011-06-18  Bruno Haible  <bruno@clisp.org>
671
672         getcwd tests: Avoid compilation error on HP-UX 11.31.
673         * modules/getcwd-tests (Depends-on): Add pathmax.
674         * tests/test-getcwd.c: Include pathmax.h.
675
676 2011-06-18  Bruno Haible  <bruno@clisp.org>
677
678         isfinite, isinf: Fix link error on AIX 6 and 7.
679         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
680         needed, also test the macro with a 'float' argument.
681         * m4/isinf.m4 (gl_ISINF): Likewise.
682
683 2011-06-18  Bruno Haible  <bruno@clisp.org>
684
685         getloadavg: Don't clobber LIBS. Regression from previous commit.
686         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
687         AC_CHECK_LIB from here...
688         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
689         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
690         gl_func_getloadavg_done.
691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
692
693 2011-06-18  Bruno Haible  <bruno@clisp.org>
694
695         clean-temp: Improve documentation.
696         * lib/clean-temp.h: Explain better how to use this module.
697         Reported by John Darrington <john@darrington.wattle.id.au>.
698
699 2011-06-17  Bruno Haible  <bruno@clisp.org>
700
701         pread, pwrite: Avoid cc warning on AIX.
702         * lib/unistd.in.h (pread): Undefine before defining as a macro.
703         (pwrite): 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 fprintf.
709         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
710
711 2011-06-17  Bruno Haible  <bruno@clisp.org>
712
713         Tests: Remove unnecessary dependency.
714         * modules/canonicalize-tests (Depends-on): Remove progname.
715         * modules/chown-tests (Depends-on): Likewise.
716         * modules/dirname-tests (Depends-on): Likewise.
717         * modules/fdopendir-tests (Depends-on): Likewise.
718         * modules/fdutimensat-tests (Depends-on): Likewise.
719         * modules/hash-tests (Depends-on): Likewise.
720         * modules/lchown-tests (Depends-on): Likewise.
721         * modules/linkat-tests (Depends-on): Likewise.
722         * modules/renameat-tests (Depends-on): Likewise.
723         * modules/spawn-pipe-tests (Depends-on): Likewise.
724         * modules/utimensat-tests (Depends-on): Likewise.
725
726 2011-06-17  Bruno Haible  <bruno@clisp.org>
727
728         spawn-pipe tests: Fix link error.
729         * tests/test-spawn-pipe-child.c: Undefine fflush.
730
731 2011-06-17  Bruno Haible  <bruno@clisp.org>
732
733         Fix tests link errors.
734         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
735         * modules/chown-tests (Makefile.am): Don't link test-chown with
736         LIBINTL.
737         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
738         LIBINTL.
739         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
740         LIBINTL.
741         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
742         LIBINTL.
743
744 2011-06-16  Bruno Haible  <bruno@clisp.org>
745
746         crypto/gc-sha1: Fix recent regression.
747         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
748         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
749
750         crypto/gc-md5: Fix recent regression.
751         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
752
753         crypto/gc-md4: Fix recent regression.
754         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
755         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
756
757         crypto/gc-arctwo: Fix recent regression.
758         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
759         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
760
761         crypto/gc-rijndael: Fix recent regression.
762         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
763         (configure.ac): Invoke AC_LIBOBJ here.
764         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
765         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
766
767         crypto/gc-hmac-sha1: Fix recent regression.
768         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
769         (configure.ac): Invoke AC_LIBOBJ here.
770         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
771         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
772
773         crypto/gc-hmac-md5: Fix recent regression.
774         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
775         (configure.ac): Invoke AC_LIBOBJ here.
776         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
778
779         crypto/gc-des: Fix recent regression.
780         * modules/crypto/gc-des (Files): Remove m4/des.m4.
781         (configure.ac): Invoke AC_LIBOBJ here.
782         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
784
785         crypto/gc-arcfour: Fix recent regression.
786         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
787         (configure.ac): Invoke AC_LIBOBJ here.
788         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
789         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
790
791 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
792
793         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
794         After the 2011-05-21 change, this macro requires
795         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
796         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
797
798 2011-06-16  Bruno Haible  <bruno@clisp.org>
799
800         fprintftime: Move AC_LIBOBJ invocations to module description.
801         * m4/fprintftime.m4: Remove file.
802         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
803         (configure.ac): Remove gl_FPRINTFTIME call.
804         (Makefile.am): Augment lib_SOURCES.
805         Reported by Jim Meyering.
806
807 2011-06-16  Bruno Haible  <bruno@clisp.org>
808
809         tmpfile-safer: Finish 2011-05-23 commit.
810         * m4/stdio-safer.m4: Really remove file.
811         Reported by Jim Meyering.
812
813 2011-06-16  Bruno Haible  <bruno@clisp.org>
814
815         syntax-check: Fix typo.
816         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
817         printf-posix.m4.
818         Reported by Jim Meyering.
819
820 2011-06-13  Jim Meyering  <meyering@redhat.com>
821
822         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
823         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
824
825 2011-05-23  Bruno Haible  <bruno@clisp.org>
826
827         yesno: Move AC_LIBOBJ invocations to module description.
828         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
829         * modules/yesno (Makefile.am): Augment lib_SOURCES.
830
831 2011-05-23  Bruno Haible  <bruno@clisp.org>
832
833         xstrtol: Move AC_LIBOBJ invocations to module description.
834         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
835         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
836
837 2011-05-23  Bruno Haible  <bruno@clisp.org>
838
839         xstrtold: Move AC_LIBOBJ invocations to module description.
840         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
841         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
842
843 2011-05-23  Bruno Haible  <bruno@clisp.org>
844
845         xstrtod: Move AC_LIBOBJ invocations to module description.
846         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
847         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
848
849 2011-05-23  Bruno Haible  <bruno@clisp.org>
850
851         xnanosleep: Move AC_LIBOBJ invocations to module description.
852         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
853         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
854
855 2011-05-23  Bruno Haible  <bruno@clisp.org>
856
857         xgetcwd: Move AC_LIBOBJ invocations to module description.
858         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
859         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
860
861 2011-05-23  Bruno Haible  <bruno@clisp.org>
862
863         xalloc: Move AC_LIBOBJ invocations to module description.
864         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
865         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
866
867 2011-05-23  Bruno Haible  <bruno@clisp.org>
868
869         write-any-file: Move AC_LIBOBJ invocations to module description.
870         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
871         invocation.
872         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
873
874 2011-05-23  Bruno Haible  <bruno@clisp.org>
875
876         utimens: Move AC_LIBOBJ invocations to module description.
877         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
878         * modules/utimens (Makefile.am): Augment lib_SOURCES.
879
880 2011-05-23  Bruno Haible  <bruno@clisp.org>
881
882         utimecmp: Move AC_LIBOBJ invocations to module description.
883         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
884         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
885
886 2011-05-23  Bruno Haible  <bruno@clisp.org>
887
888         userspec: Move AC_LIBOBJ invocations to module description.
889         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
890         * modules/userspec (Makefile.am): Augment lib_SOURCES.
891
892 2011-05-23  Bruno Haible  <bruno@clisp.org>
893
894         unlinkdir: Move AC_LIBOBJ invocations to module description.
895         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
896         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
897
898 2011-05-23  Bruno Haible  <bruno@clisp.org>
899
900         unistd-safer: Move AC_LIBOBJ invocations to module description.
901         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
902         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
903
904 2011-05-23  Bruno Haible  <bruno@clisp.org>
905
906         tempname: Move AC_LIBOBJ invocations to module description.
907         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
908         * modules/tempname (Makefile.am): Augment lib_SOURCES.
909
910 2011-05-23  Bruno Haible  <bruno@clisp.org>
911
912         strftime: Move AC_LIBOBJ invocations to module description.
913         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
914         * modules/strftime (Makefile.am): Augment lib_SOURCES.
915
916 2011-05-23  Bruno Haible  <bruno@clisp.org>
917
918         stdlib-safer: Move AC_LIBOBJ invocations to module description.
919         * m4/stdlib-safer.m4: Remove file.
920         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
921         (configure.ac): Remove gl_STDLIB_SAFER call.
922         (Makefile.am): Augment lib_SOURCES.
923
924 2011-05-23  Bruno Haible  <bruno@clisp.org>
925
926         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
927         * m4/stdio-safer.m4: Remove file.
928         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
929         (configure.ac): Remove gl_TMPFILE_SAFER call.
930         (Makefile.am): Augment lib_SOURCES.
931
932 2011-05-23  Bruno Haible  <bruno@clisp.org>
933
934         popen-safer: Move AC_LIBOBJ invocations to module description.
935         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
936         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
937         (configure.ac): Remove gl_POPEN_SAFER call.
938         (Makefile.am): Augment lib_SOURCES.
939
940 2011-05-23  Bruno Haible  <bruno@clisp.org>
941
942         freopen-safer: Move AC_LIBOBJ invocations to module description.
943         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
944         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
945         (configure.ac): Remove gl_FREOPEN_SAFER call.
946         (Makefile.am): Augment lib_SOURCES.
947
948 2011-05-23  Bruno Haible  <bruno@clisp.org>
949
950         fopen-safer: Move AC_LIBOBJ invocations to module description.
951         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
952         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
953         (configure.ac): Remove gl_FOPEN_SAFER call.
954         (Makefile.am): Augment lib_SOURCES.
955
956 2011-05-23  Bruno Haible  <bruno@clisp.org>
957
958         crypto/sha512: Move AC_LIBOBJ invocations to module description.
959         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
960         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
961
962 2011-05-23  Bruno Haible  <bruno@clisp.org>
963
964         crypto/sha256: Move AC_LIBOBJ invocations to module description.
965         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
966         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
967
968 2011-05-23  Bruno Haible  <bruno@clisp.org>
969
970         crypto/sha1: Move AC_LIBOBJ invocations to module description.
971         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
972         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
973
974 2011-05-23  Bruno Haible  <bruno@clisp.org>
975
976         settime: Move AC_LIBOBJ invocations to module description.
977         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
978         * modules/settime (Makefile.am): Augment lib_SOURCES.
979
980 2011-05-23  Bruno Haible  <bruno@clisp.org>
981
982         savedir: Move AC_LIBOBJ invocations to module description.
983         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
984         * modules/savedir (Makefile.am): Augment lib_SOURCES.
985
986 2011-05-23  Bruno Haible  <bruno@clisp.org>
987
988         save-cwd: Move AC_LIBOBJ invocations to module description.
989         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
990         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
991
992 2011-05-23  Bruno Haible  <bruno@clisp.org>
993
994         same: Move AC_LIBOBJ invocations to module description.
995         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
996         * modules/same (Makefile.am): Augment lib_SOURCES.
997
998 2011-05-23  Bruno Haible  <bruno@clisp.org>
999
1000         safe-write: Move AC_LIBOBJ invocations to module description.
1001         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1002         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1003         instead of gl_SAFE_WRITE.
1004         (Makefile.am): Augment lib_SOURCES.
1005
1006 2011-05-23  Bruno Haible  <bruno@clisp.org>
1007
1008         safe-read: Move AC_LIBOBJ invocations to module description.
1009         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1010         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1011         of gl_SAFE_READ.
1012         (Makefile.am): Augment lib_SOURCES.
1013
1014 2011-05-23  Bruno Haible  <bruno@clisp.org>
1015
1016         safe-alloc: Move AC_LIBOBJ invocations to module description.
1017         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1018         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1019
1020 2011-05-23  Bruno Haible  <bruno@clisp.org>
1021
1022         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1023         * m4/rijndael.m4: Remove file.
1024         * modules/crypto/rijndael (Files): Remove it.
1025         (configure.ac): Remove gl_RIJNDAEL call.
1026         (Makefile.am): Augment lib_SOURCES.
1027
1028 2011-05-23  Bruno Haible  <bruno@clisp.org>
1029
1030         readtokens: Move AC_LIBOBJ invocations to module description.
1031         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1032         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1033
1034 2011-05-23  Bruno Haible  <bruno@clisp.org>
1035
1036         read-file: Move AC_LIBOBJ invocations to module description.
1037         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1038         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1039         of gl_FUNC_READ_FILE.
1040         (Makefile.am): Augment lib_SOURCES.
1041
1042 2011-05-23  Bruno Haible  <bruno@clisp.org>
1043
1044         quotearg: Move AC_LIBOBJ invocations to module description.
1045         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1046         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1047
1048 2011-05-23  Bruno Haible  <bruno@clisp.org>
1049
1050         quote: Move AC_LIBOBJ invocations to module description.
1051         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1052         * modules/quote (Makefile.am): Augment lib_SOURCES.
1053
1054 2011-05-23  Bruno Haible  <bruno@clisp.org>
1055
1056         posixver: Move AC_LIBOBJ invocations to module description.
1057         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1058         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1059
1060 2011-05-23  Bruno Haible  <bruno@clisp.org>
1061
1062         posixtm: Move AC_LIBOBJ invocations to module description.
1063         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1064         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1065
1066 2011-05-23  Bruno Haible  <bruno@clisp.org>
1067
1068         physmem: Move AC_LIBOBJ invocations to module description.
1069         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1070         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1071
1072 2011-05-23  Bruno Haible  <bruno@clisp.org>
1073
1074         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1075         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1076         invocation.
1077         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1078
1079 2011-05-23  Bruno Haible  <bruno@clisp.org>
1080
1081         mpsort: Move AC_LIBOBJ invocations to module description.
1082         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1083         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1084
1085 2011-05-23  Bruno Haible  <bruno@clisp.org>
1086
1087         modechange: Move AC_LIBOBJ invocations to module description.
1088         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1089         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1090
1091 2011-05-23  Bruno Haible  <bruno@clisp.org>
1092
1093         mkdir-p: Move AC_LIBOBJ invocations to module description.
1094         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1095         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1096
1097 2011-05-23  Bruno Haible  <bruno@clisp.org>
1098
1099         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1100         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1101         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1102
1103 2011-05-23  Bruno Haible  <bruno@clisp.org>
1104
1105         mgetgroups: Move AC_LIBOBJ invocations to module description.
1106         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1107         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1108
1109 2011-05-23  Bruno Haible  <bruno@clisp.org>
1110
1111         memxor: Move AC_LIBOBJ invocations to module description.
1112         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1113         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1114
1115 2011-05-23  Bruno Haible  <bruno@clisp.org>
1116
1117         memcoll: Move AC_LIBOBJ invocations to module description.
1118         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1119         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1120
1121 2011-05-23  Bruno Haible  <bruno@clisp.org>
1122
1123         memcasecmp: Move AC_LIBOBJ invocations to module description.
1124         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1125         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1126
1127 2011-05-23  Bruno Haible  <bruno@clisp.org>
1128
1129         crypto/md5: Move AC_LIBOBJ invocations to module description.
1130         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1131         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1132
1133 2011-05-23  Bruno Haible  <bruno@clisp.org>
1134
1135         crypto/md4: Move AC_LIBOBJ invocations to module description.
1136         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1137         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1138
1139 2011-05-23  Bruno Haible  <bruno@clisp.org>
1140
1141         crypto/md2: Move AC_LIBOBJ invocations to module description.
1142         * m4/md2.m4: Remove file.
1143         * modules/crypto/md2 (Files): Remove it.
1144         (configure.ac): Remove gl_MD2 call.
1145         (Makefile.am): Augment lib_SOURCES.
1146
1147 2011-05-23  Bruno Haible  <bruno@clisp.org>
1148
1149         long-options: Move AC_LIBOBJ invocations to module description.
1150         * m4/long-options.m4: Remove file.
1151         * modules/long-options (Files): Remove it.
1152         (configure.ac): Remove gl_LONG_OPTIONS call.
1153         (Makefile.am): Augment lib_SOURCES.
1154
1155 2011-05-23  Bruno Haible  <bruno@clisp.org>
1156
1157         i-ring: Move AC_LIBOBJ invocations to module description.
1158         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1159         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1160
1161 2011-05-23  Bruno Haible  <bruno@clisp.org>
1162
1163         idcache: Move AC_LIBOBJ invocations to module description.
1164         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1165         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1166
1167 2011-05-23  Bruno Haible  <bruno@clisp.org>
1168
1169         human: Move AC_LIBOBJ invocations to module description.
1170         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1171         * modules/human (Makefile.am): Augment lib_SOURCES.
1172
1173 2011-05-23  Bruno Haible  <bruno@clisp.org>
1174
1175         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1176         * m4/hmac-sha1.m4: Remove file.
1177         * modules/crypto/hmac-sha1 (Files): Remove it.
1178         (configure.ac): Remove gl_HMAC_SHA1 call.
1179         (Makefile.am): Augment lib_SOURCES.
1180
1181 2011-05-23  Bruno Haible  <bruno@clisp.org>
1182
1183         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1184         * m4/hmac-md5.m4: Remove file.
1185         * modules/crypto/hmac-md5 (Files): Remove it.
1186         (configure.ac): Remove gl_HMAC_MD5 call.
1187         (Makefile.am): Augment lib_SOURCES.
1188
1189 2011-05-23  Bruno Haible  <bruno@clisp.org>
1190
1191         hash: Move AC_LIBOBJ invocations to module description.
1192         * m4/hash.m4: Remove file.
1193         * modules/hash (Files): Remove it.
1194         (configure.ac): Remove gl_HASH call.
1195         (Makefile.am): Augment lib_SOURCES.
1196
1197 2011-05-23  Bruno Haible  <bruno@clisp.org>
1198
1199         hard-locale: Move AC_LIBOBJ invocations to module description.
1200         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1201         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1202
1203 2011-05-23  Bruno Haible  <bruno@clisp.org>
1204
1205         getugroups: Move AC_LIBOBJ invocations to module description.
1206         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1207         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1208
1209 2011-05-23  Bruno Haible  <bruno@clisp.org>
1210
1211         gettime: Move AC_LIBOBJ invocations to module description.
1212         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1213         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1214
1215 2011-05-23  Bruno Haible  <bruno@clisp.org>
1216
1217         getndelim2: Move AC_LIBOBJ invocations to module description.
1218         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1219         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1220
1221 2011-05-23  Bruno Haible  <bruno@clisp.org>
1222
1223         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1224         * m4/gc-pbkdf2-sha1.m4: Remove file.
1225         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1226         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1227         (Makefile.am): Augment lib_SOURCES.
1228
1229 2011-05-23  Bruno Haible  <bruno@clisp.org>
1230
1231         fts: Move AC_LIBOBJ invocations to module description.
1232         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1233         * modules/fts (configure.ac): ... to here.
1234
1235 2011-05-23  Bruno Haible  <bruno@clisp.org>
1236
1237         file-type: Move AC_LIBOBJ invocations to module description.
1238         * m4/file-type.m4: Remove file.
1239         * modules/file-type (Files): Remove it.
1240         (configure.ac): Remove gl_FILE_TYPE call.
1241         (Makefile.am): Augment lib_SOURCES.
1242
1243 2011-05-23  Bruno Haible  <bruno@clisp.org>
1244
1245         filenamecat*: Respect rules for use of AC_LIBOBJ.
1246         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1247         Remove AC_LIBOBJ invocation.
1248         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1249         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1250
1251 2011-05-23  Bruno Haible  <bruno@clisp.org>
1252
1253         filemode: Move AC_LIBOBJ invocations to module description.
1254         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1255         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1256
1257 2011-05-23  Bruno Haible  <bruno@clisp.org>
1258
1259         openat-safer: Move AC_LIBOBJ invocations to module description.
1260         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1261         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1262
1263 2011-05-23  Bruno Haible  <bruno@clisp.org>
1264
1265         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1266         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1267         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1268
1269 2011-05-23  Bruno Haible  <bruno@clisp.org>
1270
1271         exclude: Move AC_LIBOBJ invocations to module description.
1272         * m4/exclude.m4: Remove file.
1273         * modules/exclude (Files): Remove it.
1274         (configure.ac): Remove gl_EXCLUDE call.
1275         (Makefile.am): Augment lib_SOURCES.
1276
1277 2011-05-23  Bruno Haible  <bruno@clisp.org>
1278
1279         dirname*: Respect rules for use of AC_LIBOBJ.
1280         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1281         invocations.
1282         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1283         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1284
1285 2011-05-23  Bruno Haible  <bruno@clisp.org>
1286
1287         dirent-safer: Move AC_LIBOBJ invocations to module description.
1288         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1289         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1290
1291 2011-05-23  Bruno Haible  <bruno@clisp.org>
1292
1293         crypto/des: Move AC_LIBOBJ invocations to module description.
1294         * m4/des.m4: Remove file.
1295         * modules/crypto/des (Files): Remove it.
1296         (configure.ac): Remove gl_DES call.
1297         (Makefile.am): Augment lib_SOURCES.
1298
1299 2011-05-23  Bruno Haible  <bruno@clisp.org>
1300
1301         cycle-check: Move AC_LIBOBJ invocations to module description.
1302         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1303         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1304
1305 2011-05-23  Bruno Haible  <bruno@clisp.org>
1306
1307         c-strtold: Move AC_LIBOBJ invocations to module description.
1308         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1309         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1310
1311 2011-05-23  Bruno Haible  <bruno@clisp.org>
1312
1313         c-strtod: Move AC_LIBOBJ invocations to module description.
1314         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1315         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1316
1317 2011-05-23  Bruno Haible  <bruno@clisp.org>
1318
1319         crc: Move AC_LIBOBJ invocations to module description.
1320         * m4/crc.m4: Remove file.
1321         * modules/crc (Files): Remove it.
1322         (configure.ac): Remove gl_CRC call.
1323         (Makefile.am): Augment lib_SOURCES.
1324
1325 2011-05-23  Bruno Haible  <bruno@clisp.org>
1326
1327         close-stream: Move AC_LIBOBJ invocations to module description.
1328         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1329         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1330
1331 2011-05-23  Bruno Haible  <bruno@clisp.org>
1332
1333         closeout: Move AC_LIBOBJ invocations to module description.
1334         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1335         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1336
1337 2011-05-23  Bruno Haible  <bruno@clisp.org>
1338
1339         closein: Move AC_LIBOBJ invocations to module description.
1340         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1341         * modules/closein (Makefile.am): Augment lib_SOURCES.
1342
1343 2011-05-23  Bruno Haible  <bruno@clisp.org>
1344
1345         cloexec: Move AC_LIBOBJ invocations to module description.
1346         * m4/cloexec.m4: Remove file.
1347         * modules/cloexec (Files): Remove it.
1348         (configure.ac): Remove gl_CLOEXEC call.
1349         (Makefile.am): Augment lib_SOURCES.
1350
1351 2011-05-23  Bruno Haible  <bruno@clisp.org>
1352
1353         check-version: Move AC_LIBOBJ invocations to module description.
1354         * m4/check-version.m4: Remove file.
1355         * modules/check-version (Files): Remove it.
1356         (configure.ac): Remove gl_CHECK_VERSION call.
1357         (Makefile.am): Augment lib_SOURCES.
1358
1359 2011-05-23  Bruno Haible  <bruno@clisp.org>
1360
1361         chdir-safer: Move AC_LIBOBJ invocations to module description.
1362         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1363         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1364
1365 2011-05-23  Bruno Haible  <bruno@clisp.org>
1366
1367         canonicalize: Move AC_LIBOBJ invocations to module description.
1368         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1369         AC_LIBOBJ invocation.
1370         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1371
1372 2011-05-23  Bruno Haible  <bruno@clisp.org>
1373
1374         canon-host: Move AC_LIBOBJ invocations to module description.
1375         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1376         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1377         instead of gl_CANON_HOST.
1378         (Makefile.am): Augment lib_SOURCES.
1379
1380 2011-05-23  Bruno Haible  <bruno@clisp.org>
1381
1382         backupfile: Move AC_LIBOBJ invocations to module description.
1383         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1384         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1385
1386 2011-05-23  Bruno Haible  <bruno@clisp.org>
1387
1388         argmatch: Move AC_LIBOBJ invocations to module description.
1389         * m4/argmatch.m4: Remove file.
1390         * modules/argmatch (Files): Remove it.
1391         (configure.ac): Remove gl_ARGMATCH call.
1392         (Makefile.am): Augment lib_SOURCES.
1393
1394 2011-05-23  Bruno Haible  <bruno@clisp.org>
1395
1396         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1397         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1398         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1399
1400 2011-05-23  Bruno Haible  <bruno@clisp.org>
1401
1402         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1403         * m4/arcfour.m4: Remove file.
1404         * modules/crypto/arcfour (Files): Remove it.
1405         (configure.ac): Remove gl_ARCFOUR call.
1406         (Makefile.am): Augment lib_SOURCES.
1407
1408 2011-05-22  Bruno Haible  <bruno@clisp.org>
1409
1410         write: Move AC_LIBOBJ invocations to module description.
1411         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1412         * modules/write (configure.ac): ... to here.
1413
1414 2011-05-22  Bruno Haible  <bruno@clisp.org>
1415
1416         wmemset: Move AC_LIBOBJ invocations to module description.
1417         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1418         here...
1419         * modules/wmemset (configure.ac): ... to here.
1420
1421 2011-05-22  Bruno Haible  <bruno@clisp.org>
1422
1423         wmemmove: Move AC_LIBOBJ invocations to module description.
1424         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1425         here...
1426         * modules/wmemmove (configure.ac): ... to here.
1427
1428 2011-05-22  Bruno Haible  <bruno@clisp.org>
1429
1430         wmemcpy: Move AC_LIBOBJ invocations to module description.
1431         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1432         here...
1433         * modules/wmemcpy (configure.ac): ... to here.
1434
1435 2011-05-22  Bruno Haible  <bruno@clisp.org>
1436
1437         wmemcmp: Move AC_LIBOBJ invocations to module description.
1438         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1439         here...
1440         * modules/wmemcmp (configure.ac): ... to here.
1441
1442 2011-05-22  Bruno Haible  <bruno@clisp.org>
1443
1444         wmemchr: Move AC_LIBOBJ invocations to module description.
1445         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1446         here...
1447         * modules/wmemchr (configure.ac): ... to here.
1448
1449 2011-05-22  Bruno Haible  <bruno@clisp.org>
1450
1451         wcswidth: Move AC_LIBOBJ invocations to module description.
1452         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
1453         here...
1454         * modules/wcswidth (configure.ac): ... to here.
1455
1456 2011-05-22  Bruno Haible  <bruno@clisp.org>
1457
1458         wcwidth: Respect rules for use of AC_LIBOBJ.
1459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
1460         invocation from here...
1461         * modules/wcwidth (configure.ac): ... to here.
1462         (Depends-on): Update conditions.
1463
1464 2011-05-22  Bruno Haible  <bruno@clisp.org>
1465
1466         wctype: Move AC_LIBOBJ invocations to module description.
1467         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
1468         invocation from here...
1469         * modules/wctype (configure.ac): ... to here.
1470         (Depends-on): Update conditions.
1471
1472 2011-05-22  Bruno Haible  <bruno@clisp.org>
1473
1474         wctrans: Move AC_LIBOBJ invocations to module description.
1475         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1476         invocation from here...
1477         * modules/wctrans (configure.ac): ... to here.
1478
1479 2011-05-22  Bruno Haible  <bruno@clisp.org>
1480
1481         wctomb: Move AC_LIBOBJ invocations to module description.
1482         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1483         invocations from here...
1484         * modules/wctomb (configure.ac): ... to here.
1485
1486 2011-05-22  Bruno Haible  <bruno@clisp.org>
1487
1488         wctob: Move AC_LIBOBJ invocations to module description.
1489         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1490         gl_PREREQ_WCTOB invocations from here...
1491         * modules/wctob (configure.ac): ... to here.
1492         (Depends-on): Update conditions.
1493
1494 2011-05-22  Bruno Haible  <bruno@clisp.org>
1495
1496         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1497         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1498         here...
1499         * modules/wcsxfrm (configure.ac): ... to here.
1500
1501 2011-05-22  Bruno Haible  <bruno@clisp.org>
1502
1503         wcstok: Move AC_LIBOBJ invocations to module description.
1504         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1505         * modules/wcstok (configure.ac): ... to here.
1506
1507 2011-05-22  Bruno Haible  <bruno@clisp.org>
1508
1509         wcsstr: Move AC_LIBOBJ invocations to module description.
1510         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1511         * modules/wcsstr (configure.ac): ... to here.
1512
1513 2011-05-22  Bruno Haible  <bruno@clisp.org>
1514
1515         wcsspn: Move AC_LIBOBJ invocations to module description.
1516         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1517         * modules/wcsspn (configure.ac): ... to here.
1518
1519 2011-05-22  Bruno Haible  <bruno@clisp.org>
1520
1521         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1522         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1523         gl_PREREQ_WCSRTOMBS invocations from here...
1524         * modules/wcsrtombs (configure.ac): ... to here.
1525
1526 2011-05-22  Bruno Haible  <bruno@clisp.org>
1527
1528         wcsrchr: Move AC_LIBOBJ invocations to module description.
1529         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1530         here...
1531         * modules/wcsrchr (configure.ac): ... to here.
1532
1533 2011-05-22  Bruno Haible  <bruno@clisp.org>
1534
1535         wcspbrk: Move AC_LIBOBJ invocations to module description.
1536         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
1537         here...
1538         * modules/wcspbrk (configure.ac): ... to here.
1539
1540 2011-05-22  Bruno Haible  <bruno@clisp.org>
1541
1542         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
1543         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
1544         gl_PREREQ_WCSNRTOMBS invocations from here...
1545         * modules/wcsnrtombs (configure.ac): ... to here.
1546
1547 2011-05-22  Bruno Haible  <bruno@clisp.org>
1548
1549         wcsnlen: Move AC_LIBOBJ invocations to module description.
1550         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
1551         here...
1552         * modules/wcsnlen (configure.ac): ... to here.
1553
1554 2011-05-22  Bruno Haible  <bruno@clisp.org>
1555
1556         wcsncpy: Move AC_LIBOBJ invocations to module description.
1557         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
1558         here...
1559         * modules/wcsncpy (configure.ac): ... to here.
1560
1561 2011-05-22  Bruno Haible  <bruno@clisp.org>
1562
1563         wcsncmp: Move AC_LIBOBJ invocations to module description.
1564         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
1565         here...
1566         * modules/wcsncmp (configure.ac): ... to here.
1567
1568 2011-05-22  Bruno Haible  <bruno@clisp.org>
1569
1570         wcsncat: Move AC_LIBOBJ invocations to module description.
1571         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
1572         here...
1573         * modules/wcsncat (configure.ac): ... to here.
1574
1575 2011-05-22  Bruno Haible  <bruno@clisp.org>
1576
1577         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
1578         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
1579         from here...
1580         * modules/wcsncasecmp (configure.ac): ... to here.
1581
1582 2011-05-22  Bruno Haible  <bruno@clisp.org>
1583
1584         wcslen: Move AC_LIBOBJ invocations to module description.
1585         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
1586         * modules/wcslen (configure.ac): ... to here.
1587
1588 2011-05-22  Bruno Haible  <bruno@clisp.org>
1589
1590         wcsdup: Move AC_LIBOBJ invocations to module description.
1591         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
1592         * modules/wcsdup (configure.ac): ... to here.
1593
1594 2011-05-22  Bruno Haible  <bruno@clisp.org>
1595
1596         wcscspn: Move AC_LIBOBJ invocations to module description.
1597         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
1598         here...
1599         * modules/wcscspn (configure.ac): ... to here.
1600
1601 2011-05-22  Bruno Haible  <bruno@clisp.org>
1602
1603         wcscpy: Move AC_LIBOBJ invocations to module description.
1604         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
1605         * modules/wcscpy (configure.ac): ... to here.
1606
1607 2011-05-22  Bruno Haible  <bruno@clisp.org>
1608
1609         wcscoll: Move AC_LIBOBJ invocations to module description.
1610         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
1611         here...
1612         * modules/wcscoll (configure.ac): ... to here.
1613
1614 2011-05-22  Bruno Haible  <bruno@clisp.org>
1615
1616         wcscmp: Move AC_LIBOBJ invocations to module description.
1617         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
1618         * modules/wcscmp (configure.ac): ... to here.
1619
1620 2011-05-22  Bruno Haible  <bruno@clisp.org>
1621
1622         wcschr: Move AC_LIBOBJ invocations to module description.
1623         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
1624         * modules/wcschr (configure.ac): ... to here.
1625
1626 2011-05-22  Bruno Haible  <bruno@clisp.org>
1627
1628         wcscat: Move AC_LIBOBJ invocations to module description.
1629         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
1630         * modules/wcscat (configure.ac): ... to here.
1631
1632 2011-05-22  Bruno Haible  <bruno@clisp.org>
1633
1634         wcscasecmp: Move AC_LIBOBJ invocations to module description.
1635         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
1636         here...
1637         * modules/wcscasecmp (configure.ac): ... to here.
1638
1639 2011-05-22  Bruno Haible  <bruno@clisp.org>
1640
1641         wcrtomb: Move AC_LIBOBJ invocations to module description.
1642         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
1643         invocations from here...
1644         * modules/wcrtomb (configure.ac): ... to here.
1645
1646 2011-05-22  Bruno Haible  <bruno@clisp.org>
1647
1648         wcpncpy: Move AC_LIBOBJ invocations to module description.
1649         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
1650         here...
1651         * modules/wcpncpy (configure.ac): ... to here.
1652
1653 2011-05-22  Bruno Haible  <bruno@clisp.org>
1654
1655         wcpcpy: Move AC_LIBOBJ invocations to module description.
1656         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
1657         * modules/wcpcpy (configure.ac): ... to here.
1658
1659 2011-05-22  Bruno Haible  <bruno@clisp.org>
1660
1661         waitpid: Move AC_LIBOBJ invocations to module description.
1662         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
1663         invocation from here...
1664         * modules/waitpid (configure.ac): ... to here.
1665
1666 2011-05-22  Bruno Haible  <bruno@clisp.org>
1667
1668         utimensat: Move AC_LIBOBJ invocations to module description.
1669         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
1670         here...
1671         * modules/utimensat (configure.ac): ... to here.
1672
1673 2011-05-22  Bruno Haible  <bruno@clisp.org>
1674
1675         usleep: Move AC_LIBOBJ invocations to module description.
1676         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
1677         here...
1678         * modules/usleep (configure.ac): ... to here.
1679
1680 2011-05-22  Bruno Haible  <bruno@clisp.org>
1681
1682         unlockpt: Move AC_LIBOBJ invocations to module description.
1683         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
1684         gl_PREREQ_UNLOCKPT invocations from here...
1685         * modules/unlockpt (configure.ac): ... to here.
1686
1687 2011-05-22  Bruno Haible  <bruno@clisp.org>
1688
1689         unlink: Respect rules for use of AC_LIBOBJ.
1690         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
1691         * modules/unlink (configure.ac): ... to here.
1692
1693 2011-05-22  Bruno Haible  <bruno@clisp.org>
1694
1695         uname: Move AC_LIBOBJ invocations to module description.
1696         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
1697         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
1698         here...
1699         * modules/uname (configure.ac): ... to here.
1700
1701 2011-05-22  Bruno Haible  <bruno@clisp.org>
1702
1703         ttyname_r: Move AC_LIBOBJ invocations to module description.
1704         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
1705         gl_PREREQ_TTYNAME_R invocations from here...
1706         * modules/ttyname_r (configure.ac): ... to here.
1707
1708 2011-05-22  Bruno Haible  <bruno@clisp.org>
1709
1710         tsearch: Move AC_LIBOBJ invocations to module description.
1711         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
1712         invocations from here...
1713         * modules/tsearch (configure.ac): ... to here.
1714
1715 2011-05-22  Bruno Haible  <bruno@clisp.org>
1716
1717         towctrans: Move AC_LIBOBJ invocations to module description.
1718         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
1719         AC_LIBOBJ invocation from here...
1720         * modules/towctrans (configure.ac): ... to here.
1721
1722 2011-05-22  Bruno Haible  <bruno@clisp.org>
1723
1724         tmpfile: Move AC_LIBOBJ invocations to module description.
1725         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
1726         invocations from here...
1727         * modules/tmpfile (configure.ac): ... to here.
1728
1729 2011-05-22  Bruno Haible  <bruno@clisp.org>
1730
1731         times: Move AC_LIBOBJ invocations to module description.
1732         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
1733         * modules/times (configure.ac): ... to here.
1734
1735 2011-05-22  Bruno Haible  <bruno@clisp.org>
1736
1737         time_r: Move AC_LIBOBJ invocations to module description.
1738         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
1739         invocations from here...
1740         * modules/time_r (configure.ac): ... to here.
1741
1742 2011-05-22  Bruno Haible  <bruno@clisp.org>
1743
1744         timegm: Move AC_LIBOBJ invocations to module description.
1745         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
1746         invocations from here...
1747         * modules/timegm (configure.ac): ... to here.
1748
1749 2011-05-22  Bruno Haible  <bruno@clisp.org>
1750
1751         tcgetsid: Move AC_LIBOBJ invocations to module description.
1752         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
1753         and gl_PREREQ_TCGETSID invocations from here...
1754         * modules/tcgetsid (configure.ac): ... to here.
1755         (Depends-on): Update conditions.
1756
1757 2011-05-22  Bruno Haible  <bruno@clisp.org>
1758
1759         symlinkat: Move AC_LIBOBJ invocations to module description.
1760         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
1761         here...
1762         * modules/symlinkat (configure.ac): ... to here.
1763
1764 2011-05-22  Bruno Haible  <bruno@clisp.org>
1765
1766         symlink: Move AC_LIBOBJ invocations to module description.
1767         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
1768         here...
1769         * modules/symlink (configure.ac): ... to here.
1770
1771 2011-05-22  Bruno Haible  <bruno@clisp.org>
1772
1773         strverscmp: Move AC_LIBOBJ invocations to module description.
1774         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
1775         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
1776         from here...
1777         * modules/strverscmp (configure.ac): ... to here.
1778
1779 2011-05-22  Bruno Haible  <bruno@clisp.org>
1780
1781         strtok_r: Move AC_LIBOBJ invocations to module description.
1782         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
1783         and gl_PREREQ_STRTOK_R invocations from here...
1784         * modules/strtok_r (configure.ac): ... to here.
1785         (Depends-on): Update conditions.
1786
1787 2011-05-22  Bruno Haible  <bruno@clisp.org>
1788
1789         strtoumax: Move AC_LIBOBJ invocations to module description.
1790         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
1791         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
1792         from here...
1793         * modules/strtoumax (configure.ac): ... to here.
1794
1795 2011-05-22  Bruno Haible  <bruno@clisp.org>
1796
1797         strtoimax: Move AC_LIBOBJ invocations to module description.
1798         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
1799         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
1800         from here...
1801         * modules/strtoimax (configure.ac): ... to here.
1802
1803 2011-05-22  Bruno Haible  <bruno@clisp.org>
1804
1805         strtoull: Move AC_LIBOBJ invocations to module description.
1806         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
1807         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
1808         from here...
1809         * modules/strtoull (configure.ac): ... to here.
1810
1811 2011-05-22  Bruno Haible  <bruno@clisp.org>
1812
1813         strtoll: Move AC_LIBOBJ invocations to module description.
1814         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
1815         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
1816         here...
1817         * modules/strtoll (configure.ac): ... to here.
1818
1819 2011-05-22  Bruno Haible  <bruno@clisp.org>
1820
1821         strtoul: Move AC_LIBOBJ invocations to module description.
1822         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
1823         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1824         * modules/strtoul (configure.ac): ... to here.
1825
1826 2011-05-22  Bruno Haible  <bruno@clisp.org>
1827
1828         strtol: Move AC_LIBOBJ invocations to module description.
1829         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
1830         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1831         * modules/strtol (configure.ac): ... to here.
1832
1833 2011-05-22  Bruno Haible  <bruno@clisp.org>
1834
1835         strtod: Move AC_LIBOBJ invocations to module description.
1836         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
1837         invocations from here...
1838         * modules/strtod (configure.ac): ... to here.
1839
1840 2011-05-22  Bruno Haible  <bruno@clisp.org>
1841
1842         strstr*: Move AC_LIBOBJ invocations to module description.
1843         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
1844         invocations from here...
1845         * modules/strstr-simple (configure.ac): ... to here.
1846         * modules/strstr (configure.ac): ... and here.
1847
1848 2011-05-22  Bruno Haible  <bruno@clisp.org>
1849
1850         strsignal: Move AC_LIBOBJ invocations to module description.
1851         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
1852         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
1853         * modules/strsignal (configure.ac): ... to here.
1854         (Depends-on): Update conditions.
1855
1856 2011-05-22  Bruno Haible  <bruno@clisp.org>
1857
1858         strsep: Move AC_LIBOBJ invocations to module description.
1859         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
1860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
1861         here...
1862         * modules/strsep (configure.ac): ... to here.
1863
1864 2011-05-22  Bruno Haible  <bruno@clisp.org>
1865
1866         strptime: Move AC_LIBOBJ invocations to module description.
1867         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
1868         gl_PREREQ_STRPTIME invocations from here...
1869         * modules/strptime (configure.ac): ... to here.
1870
1871 2011-05-22  Bruno Haible  <bruno@clisp.org>
1872
1873         strpbrk: Move AC_LIBOBJ invocations to module description.
1874         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
1875         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
1876         here...
1877         * modules/strpbrk (configure.ac): ... to here.
1878
1879 2011-05-22  Bruno Haible  <bruno@clisp.org>
1880
1881         strnlen: Move AC_LIBOBJ invocations to module description.
1882         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
1883         invocations from here...
1884         * modules/strnlen (configure.ac): ... to here.
1885
1886 2011-05-22  Bruno Haible  <bruno@clisp.org>
1887
1888         strndup: Move AC_LIBOBJ invocations to module description.
1889         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
1890         invocations from here...
1891         * modules/strndup (configure.ac): ... to here.
1892         (Depends-on): Update conditions.
1893
1894 2011-05-22  Bruno Haible  <bruno@clisp.org>
1895
1896         strncat: Move AC_LIBOBJ invocations to module description.
1897         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
1898         invocations from here...
1899         * modules/strncat (configure.ac): ... to here.
1900
1901 2011-05-22  Bruno Haible  <bruno@clisp.org>
1902
1903         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
1904         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
1905         invocations from here...
1906         * modules/strdup (configure.ac): ... to here.
1907         * modules/strdup-posix (configure.ac): ... and here.
1908
1909 2011-05-22  Bruno Haible  <bruno@clisp.org>
1910
1911         strcspn: Move AC_LIBOBJ invocations to module description.
1912         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
1913         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
1914         here...
1915         * modules/strcspn (configure.ac): ... to here.
1916
1917 2011-05-22  Bruno Haible  <bruno@clisp.org>
1918
1919         strchrnul: Move AC_LIBOBJ invocations to module description.
1920         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
1921         gl_PREREQ_STRCHRNUL invocations from here...
1922         * modules/strchrnul (configure.ac): ... to here.
1923
1924 2011-05-22  Bruno Haible  <bruno@clisp.org>
1925
1926         strcasestr*: Move AC_LIBOBJ invocations to module description.
1927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1928         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
1929         * modules/strcasestr-simple (configure.ac): ... to here.
1930         * modules/strcasestr (configure.ac): ... and here.
1931
1932 2011-05-22  Bruno Haible  <bruno@clisp.org>
1933
1934         strcase: Move AC_LIBOBJ invocations to module description.
1935         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
1936         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
1937         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
1938         gl_PREREQ_STRNCASECMP invocations from here...
1939         * modules/strcase (configure.ac): ... to here.
1940
1941 2011-05-22  Bruno Haible  <bruno@clisp.org>
1942
1943         stpncpy: Move AC_LIBOBJ invocations to module description.
1944         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
1945         here...
1946         * modules/stpncpy (configure.ac): ... to here.
1947
1948 2011-05-22  Bruno Haible  <bruno@clisp.org>
1949
1950         stpcpy: Move AC_LIBOBJ invocations to module description.
1951         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
1952         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
1953         here...
1954         * modules/stpcpy (configure.ac): ... to here.
1955
1956 2011-05-21  Bruno Haible  <bruno@clisp.org>
1957
1958         stat: Move AC_LIBOBJ invocations to module description.
1959         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
1960         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
1961         here...
1962         * modules/stat (configure.ac): ... to here.
1963
1964 2011-05-21  Bruno Haible  <bruno@clisp.org>
1965
1966         sleep: Move AC_LIBOBJ invocations to module description.
1967         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
1968         * modules/sleep (configure.ac): ... to here.
1969
1970 2011-05-21  Bruno Haible  <bruno@clisp.org>
1971
1972         signbit: Move AC_LIBOBJ invocations to module description.
1973         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
1974         * modules/signbit (configure.ac): ... to here.
1975
1976 2011-05-21  Bruno Haible  <bruno@clisp.org>
1977
1978         sigprocmask: Move AC_LIBOBJ invocations to module description.
1979         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
1980         gl_PREREQ_SIGPROMASK invocations from here...
1981         * modules/sigprocmask (configure.ac): ... to here.
1982
1983 2011-05-21  Bruno Haible  <bruno@clisp.org>
1984
1985         sigaction: Move AC_LIBOBJ invocations to module description.
1986         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
1987         gl_PREREQ_SIGACTION invocations from here...
1988         * modules/sigaction (configure.ac): ... to here.
1989
1990 2011-05-21  Bruno Haible  <bruno@clisp.org>
1991
1992         sig2str: Move AC_LIBOBJ invocations to module description.
1993         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
1994         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
1995         here...
1996         * modules/sig2str (configure.ac): ... to here.
1997
1998 2011-05-21  Bruno Haible  <bruno@clisp.org>
1999
2000         setlocale: Move AC_LIBOBJ invocations to module description.
2001         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2002         gl_PREREQ_SETLOCALE invocations from here...
2003         * modules/setlocale (configure.ac): ... to here.
2004
2005 2011-05-21  Bruno Haible  <bruno@clisp.org>
2006
2007         unsetenv: Move AC_LIBOBJ invocations to module description.
2008         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2009         and gl_PREREQ_UNSETENV invocations from here...
2010         * modules/unsetenv (configure.ac): ... to here.
2011         (Depends-on): Update.
2012
2013 2011-05-21  Bruno Haible  <bruno@clisp.org>
2014
2015         setenv: Move AC_LIBOBJ invocations to module description.
2016         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2017         here...
2018         * modules/setenv (configure.ac): ... to here.
2019
2020 2011-05-21  Bruno Haible  <bruno@clisp.org>
2021
2022         selinux-h: Move AC_LIBOBJ invocations to module description.
2023         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2024         AC_LIBOBJ invocation from here...
2025         * modules/selinux-h (configure.ac): ... to here.
2026
2027 2011-05-21  Bruno Haible  <bruno@clisp.org>
2028
2029         select: Respect rules for use of AC_LIBOBJ.
2030         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2031         here...
2032         * modules/select (configure.ac): ... to here.
2033
2034 2011-05-21  Bruno Haible  <bruno@clisp.org>
2035
2036         scandir: Move AC_LIBOBJ invocations to module description.
2037         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2038         invocations from here...
2039         * modules/scandir (configure.ac): ... to here.
2040
2041 2011-05-21  Bruno Haible  <bruno@clisp.org>
2042
2043         rpmatch: Move AC_LIBOBJ invocations to module description.
2044         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2046         here...
2047         * modules/rpmatch (configure.ac): ... to here.
2048
2049 2011-05-21  Bruno Haible  <bruno@clisp.org>
2050
2051         rmdir: Respect rules for use of AC_LIBOBJ.
2052         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2053         * modules/rmdir (configure.ac): ... to here.
2054
2055 2011-05-21  Bruno Haible  <bruno@clisp.org>
2056
2057         renameat: Move AC_LIBOBJ invocations to module description.
2058         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2059         here...
2060         * modules/renameat (configure.ac): ... to here.
2061
2062 2011-05-21  Bruno Haible  <bruno@clisp.org>
2063
2064         rename: Respect rules for use of AC_LIBOBJ.
2065         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2066         here...
2067         * modules/rename (configure.ac): ... to here.
2068
2069 2011-05-21  Bruno Haible  <bruno@clisp.org>
2070
2071         remove: Move AC_LIBOBJ invocations to module description.
2072         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2073         here...
2074         * modules/remove (configure.ac): ... to here.
2075
2076 2011-05-21  Bruno Haible  <bruno@clisp.org>
2077
2078         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2079         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2080         macro.
2081         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2082         * modules/relocatable-lib (configure.ac): ... to here.
2083         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2084         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2085
2086 2011-05-21  Bruno Haible  <bruno@clisp.org>
2087
2088         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2089         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2090         here...
2091         * modules/relocatable-prog (configure.ac): ... to here.
2092
2093 2011-05-21  Bruno Haible  <bruno@clisp.org>
2094
2095         regex: Move AC_LIBOBJ invocations to module description.
2096         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2097         invocations from here...
2098         * modules/regex (configure.ac): ... to here.
2099
2100 2011-05-21  Bruno Haible  <bruno@clisp.org>
2101
2102         realloc-*: Move AC_LIBOBJ invocations to module description.
2103         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2104         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2105         AC_LIBOBJ invocations from here...
2106         * modules/realloc-gnu (configure.ac): ... to here.
2107         * modules/realloc-posix (configure.ac): ... and here.
2108
2109 2011-05-21  Bruno Haible  <bruno@clisp.org>
2110
2111         readutmp: Move AC_LIBOBJ invocations to module description.
2112         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2113         * modules/readutmp (configure.ac): ... to here.
2114
2115 2011-05-21  Bruno Haible  <bruno@clisp.org>
2116
2117         readlinkat: Move AC_LIBOBJ invocations to module description.
2118         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2119         here...
2120         * modules/readlinkat (configure.ac): ... to here.
2121
2122 2011-05-21  Bruno Haible  <bruno@clisp.org>
2123
2124         readlink: Move AC_LIBOBJ invocations to module description.
2125         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2126         gl_PREREQ_READLINK invocations from here...
2127         * modules/readlink (configure.ac): ... to here.
2128
2129 2011-05-21  Bruno Haible  <bruno@clisp.org>
2130
2131         readline: Move AC_LIBOBJ invocations to module description.
2132         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2133         gl_PREREQ_READLINE invocations from here...
2134         * modules/readline (configure.ac): ... to here.
2135
2136 2011-05-21  Bruno Haible  <bruno@clisp.org>
2137
2138         read: Move AC_LIBOBJ invocations to module description.
2139         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2140         * modules/read (configure.ac): ... to here.
2141
2142 2011-05-21  Bruno Haible  <bruno@clisp.org>
2143
2144         rawmemchr: Move AC_LIBOBJ invocations to module description.
2145         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2146         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2147         from here...
2148         * modules/rawmemchr (configure.ac): ... to here.
2149
2150 2011-05-21  Bruno Haible  <bruno@clisp.org>
2151
2152         random_r: Move AC_LIBOBJ invocations to module description.
2153         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2154         gl_PREREQ_RANDOM_R invocations from here...
2155         * modules/random_r (configure.ac): ... to here.
2156
2157 2011-05-21  Bruno Haible  <bruno@clisp.org>
2158
2159         pwrite: Move AC_LIBOBJ invocations to module description.
2160         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2161         * modules/pwrite (configure.ac): ... to here.
2162
2163 2011-05-21  Bruno Haible  <bruno@clisp.org>
2164
2165         putenv: Move AC_LIBOBJ invocations to module description.
2166         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2167         * modules/putenv (configure.ac): ... to here.
2168
2169 2011-05-21  Bruno Haible  <bruno@clisp.org>
2170
2171         login_tty: Move AC_LIBOBJ invocations to module description.
2172         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2173         * modules/login_tty (configure.ac): ... to here.
2174
2175 2011-05-21  Bruno Haible  <bruno@clisp.org>
2176
2177         openpty: Move AC_LIBOBJ invocations to module description.
2178         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2179         * modules/openpty (configure.ac): ... to here.
2180
2181 2011-05-21  Bruno Haible  <bruno@clisp.org>
2182
2183         forkpty: Move AC_LIBOBJ invocations to module description.
2184         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2185         * modules/forkpty (configure.ac): ... to here.
2186
2187 2011-05-21  Bruno Haible  <bruno@clisp.org>
2188
2189         ptsname: Move AC_LIBOBJ invocations to module description.
2190         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2191         invocations from here...
2192         * modules/ptsname (configure.ac): ... to here.
2193
2194 2011-05-21  Bruno Haible  <bruno@clisp.org>
2195
2196         pread: Move AC_LIBOBJ invocations to module description.
2197         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2198         * modules/pread (configure.ac): ... to here.
2199
2200 2011-05-21  Bruno Haible  <bruno@clisp.org>
2201
2202         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2203         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2204         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2205         * modules/posix_spawn (configure.ac): ... to here.
2206         * modules/posix_spawnp (configure.ac): ... and here.
2207
2208 2011-05-21  Bruno Haible  <bruno@clisp.org>
2209
2210         popen: Move AC_LIBOBJ invocations to module description.
2211         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2212         invocations from here...
2213         * modules/popen (configure.ac): ... to here.
2214
2215 2011-05-21  Bruno Haible  <bruno@clisp.org>
2216
2217         poll: Move AC_LIBOBJ invocations to module description.
2218         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2219         invocations from here...
2220         * modules/poll (configure.ac): ... to here.
2221
2222 2011-05-21  Bruno Haible  <bruno@clisp.org>
2223
2224         pipe-posix: Move AC_LIBOBJ invocations to module description.
2225         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2226         * modules/pipe-posix (configure.ac): ... to here.
2227
2228 2011-05-21  Bruno Haible  <bruno@clisp.org>
2229
2230         openat: Respect rules for use of AC_LIBOBJ.
2231         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2232         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2233         * modules/openat (configure.ac): ... to here.
2234
2235 2011-05-21  Bruno Haible  <bruno@clisp.org>
2236
2237         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2238         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2239         invocation from here...
2240         * modules/obstack-printf (configure.ac): ... to here.
2241         * modules/obstack-printf-posix (configure.ac): ... and here.
2242
2243 2011-05-21  Bruno Haible  <bruno@clisp.org>
2244
2245         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2246         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2247         from here...
2248         * modules/nl_langinfo (configure.ac): ... to here.
2249
2250 2011-05-21  Bruno Haible  <bruno@clisp.org>
2251
2252         nanosleep: Move AC_LIBOBJ invocations to module description.
2253         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2254         gl_PREREQ_NANOSLEEP invocations from here...
2255         * modules/nanosleep (configure.ac): ... to here.
2256
2257 2011-05-21  Bruno Haible  <bruno@clisp.org>
2258
2259         mountlist: Move AC_LIBOBJ invocations to module description.
2260         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2261         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2262         * modules/mountlist (configure.ac): ... to here.
2263
2264 2011-05-21  Bruno Haible  <bruno@clisp.org>
2265
2266         mktime: Respect rules for use of AC_LIBOBJ.
2267         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2268         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2269         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2270         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2271         * modules/mktime (configure.ac): ... to here.
2272         * modules/mktime-internal (configure.ac): ... and here.
2273         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2274
2275 2011-05-21  Bruno Haible  <bruno@clisp.org>
2276
2277         mkstemps: Move AC_LIBOBJ invocations to module description.
2278         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2279         here...
2280         * modules/mkstemps (configure.ac): ... to here.
2281
2282 2011-05-21  Bruno Haible  <bruno@clisp.org>
2283
2284         mkstemp: Move AC_LIBOBJ invocations to module description.
2285         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2286         gl_PREREQ_MKSTEMP invocations from here...
2287         * modules/mkstemp (configure.ac): ... to here.
2288
2289 2011-05-21  Bruno Haible  <bruno@clisp.org>
2290
2291         mkostemps: Move AC_LIBOBJ invocations to module description.
2292         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2293         here...
2294         * modules/mkostemps (configure.ac): ... to here.
2295
2296 2011-05-21  Bruno Haible  <bruno@clisp.org>
2297
2298         mkostemp: Move AC_LIBOBJ invocations to module description.
2299         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2300         gl_PREREQ_MKOSTEMP invocations from here...
2301         * modules/mkostemp (configure.ac): ... to here.
2302
2303 2011-05-21  Bruno Haible  <bruno@clisp.org>
2304
2305         mknod: Move AC_LIBOBJ invocations to module description.
2306         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2307         * modules/mknod (configure.ac): ... to here.
2308
2309 2011-05-21  Bruno Haible  <bruno@clisp.org>
2310
2311         mkfifoat: Move AC_LIBOBJ invocations to module description.
2312         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2313         here...
2314         * modules/mkfifoat (configure.ac): ... to here.
2315
2316 2011-05-21  Bruno Haible  <bruno@clisp.org>
2317
2318         mkfifo: Respect rules for use of AC_LIBOBJ.
2319         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2320         here...
2321         * modules/mkfifo (configure.ac): ... to here.
2322
2323 2011-05-21  Bruno Haible  <bruno@clisp.org>
2324
2325         mkdtemp: Move AC_LIBOBJ invocations to module description.
2326         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2327         invocations from here...
2328         * modules/mkdtemp (configure.ac): ... to here.
2329
2330 2011-05-21  Bruno Haible  <bruno@clisp.org>
2331
2332         mkdir: Move AC_LIBOBJ invocations to module description.
2333         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2334         * modules/mkdir (configure.ac): ... to here.
2335
2336 2011-05-21  Bruno Haible  <bruno@clisp.org>
2337
2338         memset: Move AC_LIBOBJ invocations to module description.
2339         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2340         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2341         here...
2342         * modules/memset (configure.ac): ... to here.
2343
2344 2011-05-21  Bruno Haible  <bruno@clisp.org>
2345
2346         memrchr: Move AC_LIBOBJ invocations to module description.
2347         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2348         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2349         here...
2350         * modules/memrchr (configure.ac): ... to here.
2351
2352 2011-05-21  Bruno Haible  <bruno@clisp.org>
2353
2354         mempcpy: Move AC_LIBOBJ invocations to module description.
2355         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2356         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2357         here...
2358         * modules/mempcpy (configure.ac): ... to here.
2359
2360 2011-05-21  Bruno Haible  <bruno@clisp.org>
2361
2362         memmove: Move AC_LIBOBJ invocations to module description.
2363         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2364         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2365         here...
2366         * modules/memmove (configure.ac): ... to here.
2367
2368 2011-05-21  Bruno Haible  <bruno@clisp.org>
2369
2370         memmem*: Move AC_LIBOBJ invocations to module description.
2371         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2372         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2373         here...
2374         (gl_FUNC_MEMMEM): ... and here...
2375         * modules/memmem-simple (configure.ac): ... to here.
2376         * modules/memmem (configure.ac): ... and here.
2377
2378 2011-05-21  Bruno Haible  <bruno@clisp.org>
2379
2380         memcpy: Move AC_LIBOBJ invocations to module description.
2381         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2382         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2383         here...
2384         * modules/memcpy (configure.ac): ... to here.
2385
2386 2011-05-21  Bruno Haible  <bruno@clisp.org>
2387
2388         memcmp: Simplify autoconf macro.
2389         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2390         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2391         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2392
2393 2011-05-21  Bruno Haible  <bruno@clisp.org>
2394
2395         memcmp: Move AC_LIBOBJ invocations to module description.
2396         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2397         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2398         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2399         * modules/memcmp (configure.ac): ... to here.
2400         (Depends-on): Update conditions.
2401
2402 2011-05-21  Bruno Haible  <bruno@clisp.org>
2403
2404         memchr: Respect rules for use of AC_LIBOBJ.
2405         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2406         invocations from here...
2407         * modules/memchr (configure.ac): ... to here.
2408
2409 2011-05-21  Bruno Haible  <bruno@clisp.org>
2410
2411         mbtowc: Move AC_LIBOBJ invocations to module description.
2412         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2413         invocations from here...
2414         * modules/mbtowc (configure.ac): ... to here.
2415
2416 2011-05-21  Bruno Haible  <bruno@clisp.org>
2417
2418         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2419         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2420         gl_PREREQ_MBSRTOWCS invocations from here...
2421         * modules/mbsrtowcs (configure.ac): ... to here.
2422
2423 2011-05-21  Bruno Haible  <bruno@clisp.org>
2424
2425         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2426         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2427         gl_PREREQ_MBSNRTOWCS invocations from here...
2428         * modules/mbsnrtowcs (configure.ac): ... to here.
2429
2430 2011-05-21  Bruno Haible  <bruno@clisp.org>
2431
2432         mbsinit: Move AC_LIBOBJ invocations to module description.
2433         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2434         invocations from here...
2435         * modules/mbsinit (configure.ac): ... to here.
2436
2437 2011-05-21  Bruno Haible  <bruno@clisp.org>
2438
2439         mbrlen: Move AC_LIBOBJ invocations to module description.
2440         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2441         invocations from here...
2442         * modules/mbrlen (configure.ac): ... to here.
2443
2444 2011-05-21  Bruno Haible  <bruno@clisp.org>
2445
2446         mbrtowc: Respect rules for use of AC_LIBOBJ.
2447         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2448         invocations from here...
2449         * modules/mbrtowc (configure.ac): ... to here.
2450
2451 2011-05-21  Bruno Haible  <bruno@clisp.org>
2452
2453         malloc-*: Move AC_LIBOBJ invocations to module description.
2454         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
2455         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
2456         AC_LIBOBJ invocations from here...
2457         * modules/malloc-gnu (configure.ac): ... to here.
2458         * modules/malloc-posix (configure.ac): ... and here.
2459
2460 2011-05-21  Bruno Haible  <bruno@clisp.org>
2461
2462         lstat, openat: Respect rules for use of AC_LIBOBJ.
2463         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
2464         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
2465         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
2466         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
2467         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
2468         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
2469         here.
2470         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2471
2472 2011-05-21  Bruno Haible  <bruno@clisp.org>
2473
2474         lseek: Move AC_LIBOBJ invocations to module description.
2475         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2476         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2477         * modules/lseek (configure.ac): ... to here.
2478
2479 2011-05-21  Bruno Haible  <bruno@clisp.org>
2480
2481         linkat: Move AC_LIBOBJ invocations to module description.
2482         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2483         here...
2484         * modules/linkat (configure.ac): ... to here.
2485
2486 2011-05-21  Bruno Haible  <bruno@clisp.org>
2487
2488         link: Respect rules for use of AC_LIBOBJ.
2489         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2490         * modules/link (configure.ac): ... to here.
2491
2492 2011-05-21  Bruno Haible  <bruno@clisp.org>
2493
2494         lchown: Move AC_LIBOBJ invocations to module description.
2495         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2496         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2497         * modules/lchown (configure.ac): ... to here.
2498
2499 2011-05-21  Bruno Haible  <bruno@clisp.org>
2500
2501         iswctype: Move AC_LIBOBJ invocations to module description.
2502         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2503         here...
2504         * modules/iswctype (configure.ac): ... to here.
2505
2506 2011-05-21  Bruno Haible  <bruno@clisp.org>
2507
2508         iswblank: Move AC_LIBOBJ invocations to module description.
2509         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2510         here...
2511         * modules/iswblank (configure.ac): ... to here.
2512
2513 2011-05-21  Bruno Haible  <bruno@clisp.org>
2514
2515         atanl: Move AC_LIBOBJ invocations to module description.
2516         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2517         * modules/atanl (configure.ac): ... to here.
2518
2519 2011-05-21  Bruno Haible  <bruno@clisp.org>
2520
2521         acosl: Move AC_LIBOBJ invocations to module description.
2522         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2523         * modules/acosl (configure.ac): ... to here.
2524
2525 2011-05-21  Bruno Haible  <bruno@clisp.org>
2526
2527         asinl: Respect rules for use of AC_LIBOBJ.
2528         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2529         * modules/asinl (configure.ac): ... to here.
2530
2531 2011-05-21  Bruno Haible  <bruno@clisp.org>
2532
2533         tanl: Move AC_LIBOBJ invocations to module description.
2534         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2535         * modules/tanl (configure.ac): ... to here.
2536
2537 2011-05-21  Bruno Haible  <bruno@clisp.org>
2538
2539         cosl: Move AC_LIBOBJ invocations to module description.
2540         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
2541         * modules/cosl (configure.ac): ... to here.
2542
2543 2011-05-21  Bruno Haible  <bruno@clisp.org>
2544
2545         sinl: Move AC_LIBOBJ invocations to module description.
2546         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
2547         * modules/sinl (configure.ac): ... to here.
2548
2549 2011-05-21  Bruno Haible  <bruno@clisp.org>
2550
2551         logl: Move AC_LIBOBJ invocations to module description.
2552         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
2553         * modules/logl (configure.ac): ... to here.
2554
2555 2011-05-21  Bruno Haible  <bruno@clisp.org>
2556
2557         expl: Move AC_LIBOBJ invocations to module description.
2558         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
2559         * modules/expl (configure.ac): ... to here.
2560
2561 2011-05-21  Bruno Haible  <bruno@clisp.org>
2562
2563         roundl: Move AC_LIBOBJ invocations to module description.
2564         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
2565         * modules/roundl (configure.ac): ... to here.
2566
2567 2011-05-21  Bruno Haible  <bruno@clisp.org>
2568
2569         round: Move AC_LIBOBJ invocations to module description.
2570         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
2571         * modules/round (configure.ac): ... to here.
2572
2573 2011-05-21  Bruno Haible  <bruno@clisp.org>
2574
2575         roundf: Move AC_LIBOBJ invocations to module description.
2576         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
2577         * modules/roundf (configure.ac): ... to here.
2578
2579 2011-05-21  Bruno Haible  <bruno@clisp.org>
2580
2581         truncl: Move AC_LIBOBJ invocations to module description.
2582         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
2583         * modules/truncl (configure.ac): ... to here.
2584
2585 2011-05-21  Bruno Haible  <bruno@clisp.org>
2586
2587         trunc: Move AC_LIBOBJ invocations to module description.
2588         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
2589         * modules/trunc (configure.ac): ... to here.
2590
2591 2011-05-21  Bruno Haible  <bruno@clisp.org>
2592
2593         truncf: Move AC_LIBOBJ invocations to module description.
2594         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
2595         * modules/truncf (configure.ac): ... to here.
2596
2597 2011-05-21  Bruno Haible  <bruno@clisp.org>
2598
2599         ceill: Move AC_LIBOBJ invocations to module description.
2600         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
2601         * modules/ceill (configure.ac): ... to here.
2602
2603 2011-05-21  Bruno Haible  <bruno@clisp.org>
2604
2605         ceil: Move AC_LIBOBJ invocations to module description.
2606         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
2607         * modules/ceil (configure.ac): ... to here.
2608
2609 2011-05-21  Bruno Haible  <bruno@clisp.org>
2610
2611         ceilf: Move AC_LIBOBJ invocations to module description.
2612         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
2613         * modules/ceilf (configure.ac): ... to here.
2614
2615 2011-05-21  Bruno Haible  <bruno@clisp.org>
2616
2617         floorl: Respect rules for use of AC_LIBOBJ.
2618         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
2619         * modules/floorl (configure.ac): ... to here.
2620
2621 2011-05-21  Bruno Haible  <bruno@clisp.org>
2622
2623         floor: Respect rules for use of AC_LIBOBJ.
2624         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
2625         * modules/floor (configure.ac): ... to here.
2626
2627 2011-05-21  Bruno Haible  <bruno@clisp.org>
2628
2629         floorf: Move AC_LIBOBJ invocations to module description.
2630         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
2631         * modules/floorf (configure.ac): ... to here.
2632
2633 2011-05-20  Bruno Haible  <bruno@clisp.org>
2634
2635         sqrtl: Respect rules for use of AC_LIBOBJ.
2636         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
2637         * modules/sqrtl (configure.ac): ... to here.
2638
2639 2011-05-20  Bruno Haible  <bruno@clisp.org>
2640
2641         ldexpl: Respect rules for use of AC_LIBOBJ.
2642         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
2643         * modules/ldexpl (configure.ac): ... to here.
2644
2645 2011-05-20  Bruno Haible  <bruno@clisp.org>
2646
2647         frexpl*: Respect rules for use of AC_LIBOBJ.
2648         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
2649         invocation from here...
2650         * modules/frexpl (configure.ac): ... to here.
2651         * modules/frexpl-nolibm (configure.ac): ... and here.
2652
2653 2011-05-20  Bruno Haible  <bruno@clisp.org>
2654
2655         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
2656         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
2657         invocation from here...
2658         * modules/frexp (configure.ac): ... to here.
2659         * modules/frexp-nolibm (configure.ac): ... and here.
2660
2661 2011-05-20  Bruno Haible  <bruno@clisp.org>
2662
2663         isnan: Respect rules for use of AC_LIBOBJ.
2664         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
2665         invocations here.
2666         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
2667         REPLACE_ISNAN.
2668         * modules/isnand (configure.ac): Likewise.
2669         * modules/isnanl (configure.ac): Likewise.
2670
2671 2011-05-20  Bruno Haible  <bruno@clisp.org>
2672
2673         isnanl*: Respect rules for use of AC_LIBOBJ.
2674         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
2675         invocation from here...
2676         * modules/isnanl (configure.ac): ... to here.
2677         * modules/isnanl-nolibm (configure.ac): ... and here.
2678
2679 2011-05-20  Bruno Haible  <bruno@clisp.org>
2680
2681         isnand*: Move AC_LIBOBJ invocations to module description.
2682         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
2683         invocation from here...
2684         * modules/isnand (configure.ac): ... to here.
2685         * modules/isnand-nolibm (configure.ac): ... and here.
2686
2687 2011-05-20  Bruno Haible  <bruno@clisp.org>
2688
2689         isnanf*: Move AC_LIBOBJ invocations to module description.
2690         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
2691         invocation from here...
2692         * modules/isnanf (configure.ac): ... to here.
2693         * modules/isnanf-nolibm (configure.ac): ... and here.
2694
2695 2011-05-20  Bruno Haible  <bruno@clisp.org>
2696
2697         isnan*: Separate the AC_LIBOBJ invocations.
2698         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
2699         AC_LIBOBJ invocation.
2700         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
2701         here.
2702         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
2703         AC_LIBOBJ invocation.
2704         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
2705         here.
2706         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
2707         AC_LIBOBJ invocation.
2708         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
2709         here.
2710         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
2711
2712 2011-05-08  Bruno Haible  <bruno@clisp.org>
2713
2714         isinf: Move AC_LIBOBJ invocations to module description.
2715         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
2716         * modules/isinf (configure.ac): ... to here.
2717
2718 2011-05-08  Bruno Haible  <bruno@clisp.org>
2719
2720         isfinite: Move AC_LIBOBJ invocations to module description.
2721         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
2722         * modules/isfinite (configure.ac): ... to here.
2723
2724 2011-05-08  Bruno Haible  <bruno@clisp.org>
2725
2726         isblank: Move AC_LIBOBJ invocations to module description.
2727         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
2728         here...
2729         * modules/isblank (configure.ac): ... to here.
2730
2731 2011-05-08  Bruno Haible  <bruno@clisp.org>
2732
2733         isapipe: Move AC_LIBOBJ invocations to module description.
2734         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
2735         gl_PREREQ_ISAPIPE invocations from here...
2736         * modules/isapipe (configure.ac): ... to here.
2737         (Depends-on): Update condition.
2738
2739 2011-05-08  Bruno Haible  <bruno@clisp.org>
2740
2741         ioctl: Move AC_LIBOBJ invocations to module description.
2742         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
2743         invocations from here...
2744         * modules/ioctl (configure.ac): ... to here.
2745         (Depends-on): Update condition.
2746
2747 2011-05-08  Bruno Haible  <bruno@clisp.org>
2748
2749         imaxdiv: Move AC_LIBOBJ invocations to module description.
2750         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
2751         invocations from here...
2752         * modules/imaxdiv (configure.ac): ... to here.
2753
2754 2011-05-08  Bruno Haible  <bruno@clisp.org>
2755
2756         imaxabs: Move AC_LIBOBJ invocations to module description.
2757         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
2758         invocations from here...
2759         * modules/imaxabs (configure.ac): ... to here.
2760
2761 2011-05-08  Bruno Haible  <bruno@clisp.org>
2762
2763         getaddrinfo: Move AC_LIBOBJ invocations to module description.
2764         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
2765         AC_LIBOBJ invocations from here...
2766         * modules/getaddrinfo (configure.ac): ... to here.
2767         (Depends-on): Add conditions.
2768
2769 2011-05-08  Bruno Haible  <bruno@clisp.org>
2770
2771         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2772         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
2773         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2774         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
2775         (gl_PREREQ_INET_PTON): ... from here.
2776         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
2777         gl_PREREQ_INET_PTON here.
2778         (Depends-on): Update condition.
2779
2780 2011-05-08  Bruno Haible  <bruno@clisp.org>
2781
2782         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2783         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
2784         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2785         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
2786         (gl_PREREQ_INET_NTOP): ... from here.
2787         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
2788         gl_PREREQ_INET_NTOP here.
2789         (Depends-on): Update condition.
2790
2791 2011-05-08  Bruno Haible  <bruno@clisp.org>
2792
2793         iconv_open: Move AC_LIBOBJ invocations to module description.
2794         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
2795         AC_LIBOBJ invocations from here...
2796         * modules/iconv_open (configure.ac): ... to here.
2797
2798 2011-05-08  Bruno Haible  <bruno@clisp.org>
2799
2800         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
2801         If module 'iconv_open' is among the main modules and module
2802         'iconv_open-utf' is among the tests dependencies, then
2803         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
2804         return the special iconv_t values. Therefore iconv() and iconv_close()
2805         must support these special iconv_t values, already in lib, not only in
2806         tests.
2807         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
2808         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
2809         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
2810         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
2811         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
2812         (Depends-on): Add the dependencies of iconv_open-utf.
2813         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
2814         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
2815         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
2816
2817 2011-05-08  Bruno Haible  <bruno@clisp.org>
2818
2819         group-member: Move AC_LIBOBJ invocations to module description.
2820         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
2821         gl_PREREQ_GROUP_MEMBER invocations from here...
2822         * modules/group-member (configure.ac): ... to here.
2823
2824 2011-05-08  Bruno Haible  <bruno@clisp.org>
2825
2826         grantpt: Move AC_LIBOBJ invocations to module description.
2827         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
2828         invocations from here...
2829         * modules/grantpt (configure.ac): ... to here.
2830
2831 2011-05-08  Bruno Haible  <bruno@clisp.org>
2832
2833         glob: Move AC_LIBOBJ invocations to module description.
2834         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
2835         from here...
2836         * modules/glob (configure.ac): ... to here.
2837
2838 2011-05-08  Bruno Haible  <bruno@clisp.org>
2839
2840         getusershell: Move AC_LIBOBJ invocations to module description.
2841         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
2842         Move AC_LIBOBJ invocation from here...
2843         * modules/getusershell (configure.ac): ... to here.
2844         (Depends-on): Update condition.
2845
2846 2011-05-08  Bruno Haible  <bruno@clisp.org>
2847
2848         gettimeofday: Move AC_LIBOBJ invocations to module description.
2849         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
2850         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
2851         gl_PREREQ_GETTIMEOFDAY invocations from here...
2852         * modules/gettimeofday (configure.ac): ... to here.
2853
2854 2011-05-08  Bruno Haible  <bruno@clisp.org>
2855
2856         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
2857         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
2858         just gl_FUNC_TZSET.
2859         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
2860         (gl_FUNC_TZSET_CLOBBER): Remove actions.
2861         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
2862         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
2863
2864 2011-05-08  Bruno Haible  <bruno@clisp.org>
2865
2866         getsubopt: Move AC_LIBOBJ invocations to module description.
2867         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
2868         gl_PREREQ_GETSUBOPT invocations from here...
2869         * modules/getsubopt (configure.ac): ... to here.
2870
2871 2011-05-08  Bruno Haible  <bruno@clisp.org>
2872
2873         getpass-gnu: Move AC_LIBOBJ invocations to module description.
2874         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
2875         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
2876         * modules/getpass-gnu (configure.ac): ... to here.
2877
2878 2011-05-08  Bruno Haible  <bruno@clisp.org>
2879
2880         getpass: Move AC_LIBOBJ invocations to module description.
2881         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
2882         gl_PREREQ_GETPASS invocations from here...
2883         * modules/getpass (configure.ac): ... to here.
2884
2885 2011-05-08  Bruno Haible  <bruno@clisp.org>
2886
2887         getpagesize: Move AC_LIBOBJ invocations to module description.
2888         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
2889         from here...
2890         * modules/getpagesize (configure.ac): ... to here.
2891
2892 2011-05-08  Bruno Haible  <bruno@clisp.org>
2893
2894         getopt: Move AC_LIBOBJ invocations to module description.
2895         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
2896         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
2897         invocations from here...
2898         * modules/getopt-gnu (configure.ac): ... to here.
2899         * modules/getopt-posix (configure.ac): ... and here.
2900         (Depends-on): Update condition.
2901
2902 2011-05-08  Bruno Haible  <bruno@clisp.org>
2903
2904         getopt, argp: Respect rules for use of AC_LIBOBJ.
2905         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
2906         (gl_REPLACE_GETOPT_ALWAYS): New macro.
2907         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
2908         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
2909
2910 2011-05-08  Bruno Haible  <bruno@clisp.org>
2911
2912         getlogin_r: Move AC_LIBOBJ invocations to module description.
2913         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
2914         gl_PREREQ_GETLOGIN_R invocations from here...
2915         * modules/getlogin_r (configure.ac): ... to here.
2916
2917 2011-05-08  Bruno Haible  <bruno@clisp.org>
2918
2919         getlogin: Move AC_LIBOBJ invocations to module description.
2920         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
2921         here...
2922         * modules/getlogin (configure.ac): ... to here.
2923
2924 2011-05-08  Bruno Haible  <bruno@clisp.org>
2925
2926         getloadavg: Move AC_LIBOBJ invocations to module description.
2927         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
2928         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
2929         * modules/getloadavg (configure.ac): ... to here.
2930
2931 2011-05-08  Bruno Haible  <bruno@clisp.org>
2932
2933         gethrxtime: Move AC_LIBOBJ invocations to module description.
2934         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
2935         LIB_GETHRXTIME from here...
2936         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
2937         invocations from here...
2938         * modules/gethrxtime (configure.ac): ... to here.
2939
2940 2011-05-08  Bruno Haible  <bruno@clisp.org>
2941
2942         gethostname: Move AC_LIBOBJ invocations to module description.
2943         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
2944         gl_PREREQ_GETHOSTNAME invocations from here...
2945         * modules/gethostname (configure.ac): ... to here.
2946
2947 2011-05-08  Bruno Haible  <bruno@clisp.org>
2948
2949         getgroups: Move AC_LIBOBJ invocations to module description.
2950         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
2951         here...
2952         * modules/getgroups (configure.ac): ... to here.
2953
2954 2011-05-08  Bruno Haible  <bruno@clisp.org>
2955
2956         getdtablesize: Move AC_LIBOBJ invocations to module description.
2957         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
2958         invocation from here...
2959         * modules/getdtablesize (configure.ac): ... to here.
2960
2961 2011-05-08  Bruno Haible  <bruno@clisp.org>
2962
2963         getdomainname: Move AC_LIBOBJ invocations to module description.
2964         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
2965         gl_PREREQ_GETDOMAINNAME invocations from here...
2966         * modules/getdomainname (configure.ac): ... to here.
2967
2968 2011-05-08  Bruno Haible  <bruno@clisp.org>
2969
2970         getline: Move AC_LIBOBJ invocations to module description.
2971         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
2972         invocations from here...
2973         * modules/getline (configure.ac): ... to here.
2974
2975 2011-05-08  Bruno Haible  <bruno@clisp.org>
2976
2977         getline: Simplify.
2978         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
2979         It's already handled through the module dependency.
2980
2981 2011-05-08  Bruno Haible  <bruno@clisp.org>
2982
2983         getdelim: Move AC_LIBOBJ invocations to module description.
2984         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
2985         and gl_PREREQ_GETDELIM invocations from here...
2986         * modules/getdelim (configure.ac): ... to here.
2987         (Depends-on): Fix condition.
2988
2989 2011-05-08  Bruno Haible  <bruno@clisp.org>
2990
2991         getcwd: Move AC_LIBOBJ invocations to module description.
2992         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
2993         invocations from here...
2994         * modules/getcwd (configure.ac): ... to here.
2995
2996 2011-05-08  Bruno Haible  <bruno@clisp.org>
2997
2998         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
2999         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3000         here...
3001         * modules/getcwd-lgpl (configure.ac): ... to here.
3002
3003 2011-05-07  Bruno Haible  <bruno@clisp.org>
3004
3005         crypto/gc: Move AC_LIBOBJ invocations to module description.
3006         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3007         * modules/crypto/gc (configure.ac): ... to here.
3008
3009 2011-05-07  Bruno Haible  <bruno@clisp.org>
3010
3011         fwriting: Move AC_LIBOBJ invocations to module description.
3012         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3013         here...
3014         * modules/fwriting (configure.ac): ... to here.
3015
3016 2011-05-07  Bruno Haible  <bruno@clisp.org>
3017
3018         fwritable: Move AC_LIBOBJ invocations to module description.
3019         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3020         here...
3021         * modules/fwritable (configure.ac): ... to here.
3022
3023 2011-05-07  Bruno Haible  <bruno@clisp.org>
3024
3025         futimens: Move AC_LIBOBJ invocations to module description.
3026         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3027         here...
3028         * modules/futimens (configure.ac): ... to here.
3029
3030 2011-05-07  Bruno Haible  <bruno@clisp.org>
3031
3032         ftruncate: Move AC_LIBOBJ invocations to module description.
3033         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3034         gl_PREREQ_FTRUNCATE invocations from here...
3035         * modules/ftruncate (configure.ac): ... to here.
3036
3037 2011-05-07  Bruno Haible  <bruno@clisp.org>
3038
3039         fsync: Move AC_LIBOBJ invocations to module description.
3040         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3041         invocations from here...
3042         * modules/fsync (configure.ac): ... to here.
3043
3044 2011-05-07  Bruno Haible  <bruno@clisp.org>
3045
3046         fsusage: Move AC_LIBOBJ invocations to module description.
3047         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3048         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3049         * modules/fsusage (configure.ac): ... to here.
3050
3051 2011-05-07  Bruno Haible  <bruno@clisp.org>
3052
3053         freopen: Move AC_LIBOBJ invocations to module description.
3054         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3055         invocations from here...
3056         * modules/freopen (configure.ac): ... to here.
3057
3058 2011-05-07  Bruno Haible  <bruno@clisp.org>
3059
3060         free: Move AC_LIBOBJ invocations to module description.
3061         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3062         invocations from here...
3063         * modules/free (configure.ac): ... to here.
3064
3065 2011-05-07  Bruno Haible  <bruno@clisp.org>
3066
3067         freadable: Move AC_LIBOBJ invocations to module description.
3068         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3069         here...
3070         * modules/freadable (configure.ac): ... to here.
3071
3072 2011-05-07  Bruno Haible  <bruno@clisp.org>
3073
3074         fpurge: Move AC_LIBOBJ invocations to module description.
3075         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3076         invocations from here...
3077         * modules/fpurge (configure.ac): ... to here.
3078
3079 2011-05-07  Bruno Haible  <bruno@clisp.org>
3080
3081         fpending: Move AC_LIBOBJ invocations to module description.
3082         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3083         gl_FUNC_FPENDING.
3084         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3085         invocations from here...
3086         * modules/fpending (configure.ac): ... to here.
3087
3088 2011-05-07  Bruno Haible  <bruno@clisp.org>
3089
3090         fopen: Move AC_LIBOBJ invocations to module description.
3091         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3092         invocations from here...
3093         * modules/fopen (configure.ac): ... to here.
3094
3095 2011-05-07  Bruno Haible  <bruno@clisp.org>
3096
3097         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3098         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3099         gl_FUNC_FNMATCH_POSIX.
3100         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3101         invocations from here...
3102         * modules/fnmatch (configure.ac): ... to here.
3103         * modules/fnmatch-gnu (configure.ac): ... and here.
3104
3105 2011-05-07  Bruno Haible  <bruno@clisp.org>
3106
3107         flock: Move AC_LIBOBJ invocations to module description.
3108         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3109         invocations from here...
3110         * modules/flock (configure.ac): ... to here.
3111
3112 2011-05-07  Bruno Haible  <bruno@clisp.org>
3113
3114         fileblocks: Move AC_LIBOBJ invocations to module description.
3115         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3116         gl_PREREQ_FILEBLOCKS invocations from here...
3117         * modules/fileblocks (configure.ac): ... to here.
3118
3119 2011-05-06  Bruno Haible  <bruno@clisp.org>
3120
3121         fflush: Move AC_LIBOBJ invocations to module description.
3122         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3123         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3124         invocations from here...
3125         * modules/fflush (configure.ac): ... to here.
3126
3127 2011-05-06  Bruno Haible  <bruno@clisp.org>
3128
3129         fdopendir: Move AC_LIBOBJ invocations to module description.
3130         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3131         here...
3132         * modules/fdopendir (configure.ac): ... to here.
3133         (Depends-on): Improve conditions.
3134
3135 2011-05-06  Bruno Haible  <bruno@clisp.org>
3136
3137         _Exit: Move AC_LIBOBJ invocations to module description.
3138         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3139         invocations from here...
3140         * modules/_Exit (configure.ac): ... to here.
3141
3142 2011-05-21  Bruno Haible  <bruno@clisp.org>
3143
3144         euidaccess: Respect rules for use of AC_LIBOBJ.
3145         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3146         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3147         from here...
3148         * modules/euidaccess (configure.ac): ... to here.
3149
3150 2011-05-06  Bruno Haible  <bruno@clisp.org>
3151
3152         error: Move AC_LIBOBJ invocations to module description.
3153         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3154         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3155         invocations from here...
3156         * modules/error (configure.ac): ... to here.
3157
3158 2011-05-06  Bruno Haible  <bruno@clisp.org>
3159
3160         duplocale: Move AC_LIBOBJ invocations to module description.
3161         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3162         gl_PREREQ_DUPLOCALE invocations from here...
3163         * modules/duplocale (configure.ac): ... to here.
3164
3165 2011-05-05  Bruno Haible  <bruno@clisp.org>
3166
3167         dirfd: Move AC_LIBOBJ invocations to module description.
3168         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3169         gl_FUNC_DIRFD.
3170         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3171         here...
3172         * modules/dirfd (configure.ac): ... to here.
3173         (Depends-on): Fix condition.
3174
3175 2011-05-05  Bruno Haible  <bruno@clisp.org>
3176
3177         chown: Respect rules for use of AC_LIBOBJ.
3178         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3179         * modules/chown (configure.ac): ... to here.
3180
3181 2011-05-05  Bruno Haible  <bruno@clisp.org>
3182
3183         chdir-long: Move AC_LIBOBJ invocations to module description.
3184         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3185         gl_PREREQ_CHDIR_LONG invocations from here...
3186         * modules/chdir-long (configure.ac): ... to here.
3187
3188 2011-05-05  Bruno Haible  <bruno@clisp.org>
3189
3190         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3191         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3192         from here...
3193         * modules/canonicalize-lgpl (configure.ac): ... to here.
3194
3195 2011-05-05  Bruno Haible  <bruno@clisp.org>
3196
3197         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3198         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3199         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3200         REPLACE_CALLOC.
3201         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3202         * modules/calloc-gnu (configure.ac): Likewise.
3203
3204 2011-05-05  Bruno Haible  <bruno@clisp.org>
3205
3206         btowc: Move AC_LIBOBJ invocations to module description.
3207         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3208         invocations from here...
3209         * modules/btowc (configure.ac): ... to here.
3210
3211 2011-05-21  Bruno Haible  <bruno@clisp.org>
3212
3213         atexit: Move AC_LIBOBJ invocations to module description.
3214         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3216         here...
3217         * modules/atexit (configure.ac): ... to here.
3218
3219 2011-05-05  Bruno Haible  <bruno@clisp.org>
3220
3221         atoll: Move AC_LIBOBJ invocations to module description.
3222         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3223         invocations from here...
3224         * modules/atoll (configure.ac): ... to here.
3225
3226 2011-05-05  Bruno Haible  <bruno@clisp.org>
3227
3228         argz: Move AC_LIBOBJ invocations to module description.
3229         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3230         * modules/argz (configure.ac): ... to here.
3231
3232 2011-05-05  Bruno Haible  <bruno@clisp.org>
3233
3234         alphasort: Move AC_LIBOBJ invocations to module description.
3235         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3236         gl_PREREQ_ALPHASORT invocations from here...
3237         * modules/alphasort (configure.ac): ... to here.
3238
3239 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3240
3241         verify: new macro verify_expr; verify_true deprecated
3242         * NEWS: Mention this.
3243         * doc/verify.texi (Compile-time Assertions): Document this.
3244         * lib/verify.h (verify_true): Deprecate.
3245         (verify_expr): New macro.
3246         * tests/test-verify.c (function): Test verify_expr.
3247
3248 2011-06-14  Jim Meyering  <meyering@redhat.com>
3249
3250         init.sh: give more portable redirection-related advice in a comment
3251         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3252         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3253         for lots of discussion.  Stefano Lattarini suggested the solution
3254         of putting "9>&2" after the command.  Reported by Bruno Haible.
3255
3256 2011-06-13  Bruno Haible  <bruno@clisp.org>
3257
3258         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3259         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3260         'none'.
3261
3262 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3263
3264         ftoastr: use strtof only if HAVE_STRTOF
3265         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3267         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3268         * modules/ftoastr (configure.ac): Check for strtof.
3269
3270 2011-06-13  Bruno Haible  <bruno@clisp.org>
3271
3272         gnulib-tool: Addendum to 2011-06-08 commit.
3273         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3274         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3275
3276 2011-06-13  Bruno Haible  <bruno@clisp.org>
3277
3278         fseeko: Provide a non-inline replacement of fseek().
3279         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3280         * modules/fseeko (Depends-on): Add fseek.
3281         * modules/fseek (License): Change to LGPLv2+.
3282
3283 2011-06-13  Bruno Haible  <bruno@clisp.org>
3284
3285         ftello: Provide a non-inline replacement of ftell().
3286         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3287         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3288         not have ftello() (such as on mingw).
3289         * modules/ftello (Depends-on): Add ftell.
3290         * modules/ftell (License): Change to LGPLv2+.
3291
3292 2011-05-07  Bruno Haible  <bruno@clisp.org>
3293
3294         ftell: Move AC_LIBOBJ invocations to module description.
3295         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3296         * modules/ftell (configure.ac): ... to here.
3297
3298 2011-05-07  Bruno Haible  <bruno@clisp.org>
3299
3300         ftello: Respect rules for use of AC_LIBOBJ.
3301         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3302         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3303         here...
3304         * modules/ftello (configure.ac): ... to here.
3305
3306 2011-05-07  Bruno Haible  <bruno@clisp.org>
3307
3308         fseeko: Simplify.
3309         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3310         (gl_FUNC_FSEEKO): Inline it here.
3311
3312 2011-05-07  Bruno Haible  <bruno@clisp.org>
3313
3314         fseek: Move AC_LIBOBJ invocations to module description.
3315         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3316         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3317         * modules/fseek (configure.ac): ... to here.
3318
3319 2011-05-07  Bruno Haible  <bruno@clisp.org>
3320
3321         fseek: Respect rules for use of AC_LIBOBJ.
3322         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3323         here...
3324         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3325
3326 2011-05-07  Bruno Haible  <bruno@clisp.org>
3327
3328         fseeko: Respect rules for use of AC_LIBOBJ.
3329         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3330         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3331         here...
3332         * modules/fseeko (configure.ac): ... to here.
3333
3334 2011-06-13  Bruno Haible  <bruno@clisp.org>
3335
3336         gnulib-tool: Allow comments in the 'Depends-on' section.
3337         * doc/gnulib.texi (Module description): Mention comment syntax in the
3338         Depends-on section.
3339         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3340
3341 2011-06-13  Bruno Haible  <bruno@clisp.org>
3342
3343         file-set.h: guard __attibute__ use, now that it's not always defined
3344         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3345         versions that support it.  This fixes a coreutils build failure with
3346         the vendor cc on HP-UX 11.31.
3347
3348 2011-06-12  Bruno Haible  <bruno@clisp.org>
3349
3350         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3351         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3352         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3353         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3354         (acl, aclsort): New declarations.
3355         (aclv_nontrivial): New declaration.
3356         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3357         (file_has_acl): Read also the second kind of HP-UX ACLs.
3358         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3359         kind of HP-UX ACLs if the first kind fails.
3360         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3361         second kind of HP-UX ACLs.
3362         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3363         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3364         agree.
3365         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3366         hpuxjfs.
3367         Handle hpuxjfs.
3368         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3369         hpuxjfs.
3370         Handle hpuxjfs.
3371         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3372         (func_test_same_acls): Use both lsacl and getacl.
3373         Handle hpuxjfs.
3374         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3375         (func_test_same_acls): Use both lsacl and getacl.
3376         Handle hpuxjfs.
3377
3378 2011-06-12  Bruno Haible  <bruno@clisp.org>
3379
3380         acl: Complete the 2010-08-10 fix.
3381         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3382         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3383         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3384         explicitly.
3385         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3386         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3387
3388 2011-06-12  Bruno Haible  <bruno@clisp.org>
3389
3390         spawn-pipe tests: Comments.
3391         * tests/test-spawn-pipe-child.c (main): Update comment.
3392         Reported by James Youngman <jay@gnu.org>.
3393
3394 2011-06-11  James Youngman  <jay@gnu.org>
3395
3396         New module 'stat-size'.
3397         * modules/stat-size: New module.  Provides macros for accessing
3398         file size information in instances of struct stat.  Depends on the
3399         fileblocks module because it calls st_blocks.
3400         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3401         * doc/gnulib.texi: Include stat-size.texi.
3402         * doc/stat-size.texi: Documentation for this module.
3403         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3404         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3405         AC_STRUCT_ST_BLOCKS.
3406
3407 2011-06-09  Bruno Haible  <bruno@clisp.org>
3408
3409         thread: Support pthreads-win32.
3410         * lib/glthread/thread.h (gl_thread_self): Define differently on
3411         pthreads-win32.
3412         (gl_null_thread): New declaration.
3413         (gl_thread_self_pointer): New macro.
3414         * lib/glthread/thread.c (gl_null_thread): New constant.
3415         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3416         gl_thread_self.
3417         * tests/test-tls.c: Likewise.
3418         Suggested by Paul Eggert. Reported by Eric Blake.
3419
3420 2011-06-09  Bruno Haible  <bruno@clisp.org>
3421
3422         thread: Fix confusion between NULL and 0.
3423         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3424         Reported by Paul Eggert.
3425
3426 2011-06-09  Bruno Haible  <bruno@clisp.org>
3427
3428         spawn-pipe tests: Avoid test failure on HP-UX 11.
3429         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3430         is closed.
3431
3432 2011-06-09  Bruno Haible  <bruno@clisp.org>
3433
3434         acl tests: Fix compilation error on HP-UX 11.
3435         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3436
3437 2011-06-09  Bruno Haible  <bruno@clisp.org>
3438
3439         rmdir: Avoid test failure on HP-UX 10.20.
3440         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3441         EEXIST.
3442
3443 2011-06-08  Eric Blake  <eblake@redhat.com>
3444
3445         perror: fix test on mingw
3446         * modules/perror-tests (Depends-on): Add dup2.
3447
3448         strerror_r-posix: fix on MacOS
3449         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3450         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3451         logic bug.
3452         * lib/strerror_r.c (strerror_r): Fix the bug.
3453         * lib/strerror.c (strerror): Likewise.
3454         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3455         problem.
3456         * doc/posix-functions/strerror.texi (strerror): Likewise.
3457         * doc/posix-functions/perror.texi (perror): Likewise.
3458         * tests/test-strerror.c (main): Enhance test.
3459         * tests/test-strerror_r.c (main): Likewise.
3460
3461 2011-06-08  Bruno Haible  <bruno@clisp.org>
3462
3463         gnulib-tool: Better isolation between different gnulib-tool invocations.
3464         * gnulib-tool: New option --witness-c-macro.
3465         (witness_c_macro): New variable.
3466         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
3467         AM_CPPFLAGS define it as a C macro.
3468         (func_emit_tests_Makefile_am): Likewise.
3469         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
3470         read it from there.
3471         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3472         m4_define, not AC_DEFUN.
3473         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3474         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3475         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3476         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3477         s|...|...|, to substitute the values of the GNULIB_* module indicator
3478         variables.
3479         * modules/dirent (Makefile.am): Likewise.
3480         * modules/fcntl-h (Makefile.am): Likewise.
3481         * modules/iconv-h (Makefile.am): Likewise.
3482         * modules/langinfo (Makefile.am): Likewise.
3483         * modules/locale (Makefile.am): Likewise.
3484         * modules/math (Makefile.am): Likewise.
3485         * modules/netdb (Makefile.am): Likewise.
3486         * modules/poll-h (Makefile.am): Likewise.
3487         * modules/pty (Makefile.am): Likewise.
3488         * modules/search (Makefile.am): Likewise.
3489         * modules/signal (Makefile.am): Likewise.
3490         * modules/spawn (Makefile.am): Likewise.
3491         * modules/stdio (Makefile.am): Likewise.
3492         * modules/stdlib (Makefile.am): Likewise.
3493         * modules/string (Makefile.am): Likewise.
3494         * modules/sys_ioctl (Makefile.am): Likewise.
3495         * modules/sys_select (Makefile.am): Likewise.
3496         * modules/sys_socket (Makefile.am): Likewise.
3497         * modules/sys_stat (Makefile.am): Likewise.
3498         * modules/sys_times (Makefile.am): Likewise.
3499         * modules/sys_utsname (Makefile.am): Likewise.
3500         * modules/sys_wait (Makefile.am): Likewise.
3501         * modules/termios (Makefile.am): Likewise.
3502         * modules/time (Makefile.am): Likewise.
3503         * modules/unistd (Makefile.am): Likewise.
3504         * modules/wchar (Makefile.am): Likewise.
3505
3506 2011-06-08  Eric Blake  <eblake@redhat.com>
3507
3508         strerror: simplify replacement
3509         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3510         * modules/strerror (configure.ac): No prereqs needed here...
3511         * modules/strerror-override (configure.ac): ...but this needs it.
3512         (Files): Add file for needed prereq macro.
3513
3514 2011-06-08  Bruno Haible  <bruno@clisp.org>
3515
3516         strerror_r-posix: Tweaks.
3517         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3518         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3519         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3520         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3521         (gl_FUNC_STRERROR_R): ... to here.
3522         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3523
3524 2011-06-07  Eric Blake  <eblake@redhat.com>
3525
3526         perror: document fixed bugs
3527         * doc/posix-functions/perror.texi (perror): Document recent
3528         patches.
3529
3530 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3531
3532         stat-time: get_stat_birthtime failure is better-defined
3533         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3534         return a timestamp whose tv_sec and tv_nsec values are both -1.
3535         Previously, the spec said only that the tv_nsec value was negative.
3536         This upward-compatible change simplifies GNU tar a bit.
3537
3538 2011-06-07  Eric Blake  <eblake@redhat.com>
3539
3540         strerror_r-posix: work around cygwin 1.7.9
3541         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
3542         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
3543         bug without replacing strerror_r.
3544         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
3545         strerror_r is buggy, but without requiring strerror_r compilation.
3546         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
3547
3548         test-perror: relax test to ignore cygwin bug
3549         * tests/test-perror2.c (main): Relax test on requiring detection
3550         of stream errors, and use unbuffered stream.
3551         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
3552         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
3553         * doc/posix-functions/fputc.texi (fputc): Likewise.
3554         * doc/posix-functions/fputs.texi (fputs): Likewise.
3555         * doc/posix-functions/fputws.texi (fputws): Likewise.
3556         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
3557         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
3558         * doc/posix-functions/getopt.texi (getopt): Likewise.
3559         * doc/posix-functions/perror.texi (perror): Likewise.
3560         * doc/posix-functions/printf.texi (printf): Likewise.
3561         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
3562         * doc/posix-functions/psignal.texi (psignal): Likewise.
3563         * doc/posix-functions/putc.texi (putc): Likewise.
3564         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
3565         Likewise.
3566         * doc/posix-functions/putchar.texi (putchar): Likewise.
3567         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
3568         Likewise.
3569         * doc/posix-functions/puts.texi (puts): Likewise.
3570         * doc/posix-functions/putwc.texi (putwc): Likewise.
3571         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3572         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3573         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3574         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
3575         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3576         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3577         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3578         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
3579
3580 2011-05-22  Bruno Haible  <bruno@clisp.org>
3581
3582         strerror: Move AC_LIBOBJ invocations to module description.
3583         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
3584         gl_PREREQ_STRERROR invocations from here...
3585         * modules/strerror (configure.ac): ... to here.
3586
3587 2011-05-21  Bruno Haible  <bruno@clisp.org>
3588
3589         perror: Use common idiom.
3590         * modules/perror (configure.ac): Reorder statements.
3591
3592 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3593
3594         tests: fix usage message in 'mktempd_'
3595         * tests/init.sh (mktempd_): In the usage message, use literal
3596         'mktempd_', not '$ME' (which is even undefined), as the name of
3597         the subroutine.
3598
3599 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3600
3601         tests init: new function 'fatal_', for hard errors
3602         Before this patch, the only way offered by tests/init.sh to
3603         properly signal a hard error was the `framework_failure_'
3604         function.  But the error message issued by that function,
3605         as its name would suggest, refers to a set-up failure in the
3606         testsuite, while hard errors can obviously also be due to
3607         other reasons.  The best way to fix this inconsistency is to
3608         introduce a new function with a more general error message.
3609         * tests/init.sh (fatal_): New function.
3610
3611 2011-06-06  Eric Blake  <eblake@redhat.com>
3612
3613         canonicalize-lgpl: use common idiom
3614         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
3615         over newer POSIX -Rf.
3616         Reported by Bruno Haible.
3617
3618         canonicalize-lgpl: work around AIX realpath bug
3619         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
3620         * doc/posix-functions/realpath.texi (realpath): Document it.
3621         Reported by Bruno Haible.
3622
3623         strerror: work around FreeBSD bug
3624         * lib/strerror.c (strerror): Special case 0.
3625         Reported by Bruno Haible.
3626
3627         strerror-override: avoid bloating errno module
3628         * modules/errno (Files, configure.ac): Move replacement strings...
3629         * modules/strerror-override: ...to new module.
3630         * modules/strerror (Depends-on): Add strerror-override.
3631         * modules/strerror_r-posix (Depends-on): Likewise.
3632         * MODULES.html.sh: Document new module.
3633         Reported by Bruno Haible.
3634
3635 2011-06-06  Bruno Haible  <bruno@clisp.org>
3636
3637         spawn-pipe tests: Rename program.
3638         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
3639         * tests/test-spawn-pipe-child.c: Update comment.
3640         * tests/test-spawn-pipe.sh: Update.
3641         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
3642
3643         spawn-pipe tests: Link the child program only against libc.
3644         * tests/test-spawn-pipe-child.c: New file, extracted from
3645         tests/test-spawn-pipe.c.
3646         (main): Expect only one argument.
3647         (is_open): New function, copied from tests/test-pipe.c.
3648         * tests/test-spawn-pipe.c: Don't include <errno.h>.
3649         (child_main): Remove function.
3650         (test_pipe): Pass only one argument to the child program.
3651         (main): Remove child process code. Expect the child program's name as
3652         first argument.
3653         * tests/test-spawn-pipe.sh: Pass the child program's name as first
3654         argument.
3655         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
3656         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
3657         test-spawn-pipe-child against no libraries.
3658
3659 2011-06-06  Bruno Haible  <bruno@clisp.org>
3660
3661         careadlinkat: Avoid mismatch between ssize_t and int.
3662         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
3663         * lib/careadlinkat.c (careadlinkatcwd): Define always.
3664
3665 2011-06-06  Jim Meyering  <meyering@redhat.com>
3666
3667         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
3668         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
3669         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
3670
3671 2011-06-05  Bruno Haible  <bruno@clisp.org>
3672
3673         ansi-c++-opt: Interoperability with libtool.
3674         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
3675         set the variable to "no", not to ":".
3676         * NEWS: Mention the change.
3677
3678 2011-06-05  Bruno Haible  <bruno@clisp.org>
3679
3680         acl: Fix test failure on AIX 7.
3681         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
3682         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
3683
3684 2011-06-05  Bruno Haible  <bruno@clisp.org>
3685
3686         pipe-filter-ii: Fix test failure on AIX and IRIX.
3687         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
3688         with EAGAIN, retry with a smaller buffer size.
3689
3690 2011-06-05  Bruno Haible  <bruno@clisp.org>
3691
3692         localename: Fix link dependencies.
3693         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
3694         * modules/localename-tests (Makefile.am): Link test-localename with
3695         $(LIBTHREAD).
3696
3697 2011-06-05  Bruno Haible  <bruno@clisp.org>
3698
3699         error: Avoid gcc warning.
3700         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
3701
3702 2011-06-05  Bruno Haible  <bruno@clisp.org>
3703
3704         unsetenv: Avoid gcc warning.
3705         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
3706
3707 2011-06-05  Bruno Haible  <bruno@clisp.org>
3708
3709         setenv: Avoid gcc warning.
3710         * lib/setenv.c (setenv): Provide declaration if system lacks it.
3711
3712 2011-06-05  Bruno Haible  <bruno@clisp.org>
3713
3714         sys_select: Ensure memset is declared also on AIX 7.
3715         * lib/sys_select.in.h: Include <string.h> also on AIX.
3716         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
3717         self-contained also on AIX 7.1.
3718
3719 2011-06-04  Jim Meyering  <meyering@redhat.com>
3720
3721         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
3722         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
3723         function name, "error".
3724         (_gl_translatable_diag_func_re): New configurable variable.
3725
3726 2011-06-04  Bruno Haible  <bruno@clisp.org>
3727
3728         getopt: Avoid gcc warning.
3729         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
3730
3731 2011-06-04  Bruno Haible  <bruno@clisp.org>
3732
3733         strerror_r: Fix comments.
3734         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
3735         commit.
3736
3737 2011-06-04  Bruno Haible  <bruno@clisp.org>
3738
3739         perror: Fix compilation error.
3740         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
3741         Undefine fprintf, not sprintf.
3742         * modules/perror (Depends-on): Remove intprops, verify.
3743
3744 2011-06-04  Bruno Haible  <bruno@clisp.org>
3745
3746         setlocale: Enable replacement on Cygwin 1.5.
3747         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
3748         Cygwin 1.5.x.
3749         * doc/posix-functions/setlocale.texi: Mention that the problem with the
3750         LC_CTYPE category also exists on Cygwin 1.5.x.
3751
3752 2011-06-04  Bruno Haible  <bruno@clisp.org>
3753
3754         strerror-override: Don't disable symbol renamings.
3755         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
3756         * lib/strerror-override.c: Include config.h.
3757         (strerror_override): Don't undefine.
3758
3759 2011-06-03  Bruno Haible  <bruno@clisp.org>
3760
3761         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
3762         * lib/localename.h: Update copyright header.
3763         * lib/localename.c: Likewise.
3764         * lib/relocatable.h: Likewise.
3765         * lib/relocatable.c: Likewise.
3766
3767 2011-06-02  Bruno Haible  <bruno@clisp.org>
3768
3769         doc: Fix a module name.
3770         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
3771
3772 2011-06-02  Bruno Haible  <bruno@clisp.org>
3773
3774         pipe2: Remove dependency on 'nonblocking' module.
3775         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
3776         O_NONBLOCK is defined by gnulib.
3777         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
3778         is zero.
3779         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
3780         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
3781         defined by gnulib.
3782         (get_nonblocking_flag): New function.
3783         (main): Test O_NONBLOCK flag only if it is nonzero.
3784         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
3785
3786 2011-06-03  Jim Meyering  <meyering@redhat.com>
3787
3788         maint: three new prohibit-header-without-use rules
3789         Prohibit use of cloexec.h, posixver.h, same.h without use.
3790         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
3791         (sc_prohibit_posixver_without_use): Likewise.
3792         (sc_prohibit_same_without_use): Likewise.
3793
3794 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3795
3796         allocator: 'die' routine is now given requested size
3797         * lib/allocator.h (struct allocator.die): New size arg.
3798         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
3799         If the actual problem is an ssize_t limitation, not a size_t or
3800         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
3801
3802 2011-06-01  Eric Blake  <eblake@redhat.com>
3803
3804         strerror: drop strerror_r dependency
3805         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
3806         * lib/strerror-override.c (strerror_override): ...to new file.
3807         * lib/strerror-override.h: Add prototype.
3808         * lib/strerror-impl.h: Delete.
3809         * lib/strerror.c (strerror): New implementation.
3810         * modules/errno (Files): Add new files.
3811         (configure.ac): Compile new file as appropriate.
3812         * modules/strerror (Files): Drop unused file.
3813         (Depends-on): Drop strerror_r-posix.
3814         * MODULES.html.sh: Document strerror_r-posix.
3815         Requested by Sam Steingold.
3816
3817         perror: call strerror_r directly
3818         * modules/perror (Files): Drop strerror-impl.h.
3819         * lib/perror.c (perror): Use our own stack buffer, rather than
3820         calling a wrapper that uses static storage.
3821         * doc/posix-functions/perror.texi (perror): Document a limitation
3822         of our replacement.
3823
3824         strerror_r: fix includes for FreeBSD
3825         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
3826         since we use abort on some platforms.
3827         Reported by Matthias Bolte.
3828
3829 2011-05-31  Bruno Haible  <bruno@clisp.org>
3830
3831         Fix link errors in tests: openat-die uses gettext-h.
3832         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
3833         against $(LIBINTL).
3834         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
3835         against $(LIBINTL).
3836         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
3837         $(LIBINTL).
3838         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
3839         against $(LIBINTL).
3840         * modules/linkat-tests (Makefile.am): Link test-linkat against
3841         $(LIBINTL).
3842         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
3843         $(LIBINTL).
3844         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
3845         against $(LIBINTL).
3846         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
3847         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
3848         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
3849         $(LIBINTL).
3850         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
3851         $(LIBINTL).
3852         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
3853         $(LIBINTL).
3854         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3855
3856 2011-05-31  Bruno Haible  <bruno@clisp.org>
3857
3858         Fix link errors in tests: wait-process uses gettext-h.
3859         * modules/nonblocking-pipe-tests (Makefile.am): Set
3860         test_nonblocking_pipe_main_LDADD.
3861         * modules/nonblocking-socket-tests (Makefile.am): Link
3862         test-nonblocking-socket-main against $(LIBINTL).
3863         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3864
3865 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3866
3867         assert-h: work around 'verify' incompatibility
3868         * lib/verify.h: Use @...@ directives, not ifdef.
3869         * modules/assert-h (assert.h): Implement the directives.
3870         (assert.h): Substitute the symbol-prefix more consistently.
3871
3872 2011-05-29  Jim Meyering  <meyering@redhat.com>
3873
3874         trim: remove three superfluous assignments
3875         * lib/trim.c (trim2): Remove three superfluous assignments
3876         and correct brace positioning.
3877
3878 2011-05-29  Bruno Haible  <bruno@clisp.org>
3879
3880         wctype-h: Avoid namespace pollution on Solaris 2.6.
3881         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
3882         identifiers.
3883         * doc/posix-headers/wctype.texi: Mention the problem.
3884         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3885
3886 2011-05-28  Jim Meyering  <meyering@redhat.com>
3887
3888         parse-datetime.y: accommodate -Wstrict-overflow
3889         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
3890         placate -Wstrict-overflow.
3891
3892         trim: avoid a warning from -O2 -Wstrict-overflow
3893         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
3894
3895 2011-05-29  Bruno Haible  <bruno@clisp.org>
3896
3897         gnulib-tool: Fix bug in yesterday's commit.
3898         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
3899         twice.
3900
3901 2011-05-29  Bruno Haible  <bruno@clisp.org>
3902
3903         Allow multiple gnulib generated include files to be combined.
3904         * gnulib-tool (func_compute_include_guard_prefix): New function.
3905         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
3906         ${gl_include_guard_prefix} references.
3907         (func_import, func_create_testdir): Invoke
3908         func_compute_include_guard_prefix.
3909         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
3910         * lib/ctype.in.h: Likewise.
3911         * lib/dirent.in.h: Likewise.
3912         * lib/errno.in.h: Likewise.
3913         * lib/fcntl.in.h: Likewise.
3914         * lib/float.in.h: Likewise.
3915         * lib/getopt.in.h: Likewise.
3916         * lib/iconv.in.h: Likewise.
3917         * lib/langinfo.in.h: Likewise.
3918         * lib/locale.in.h: Likewise.
3919         * lib/math.in.h: Likewise.
3920         * lib/netdb.in.h: Likewise.
3921         * lib/netinet_in.in.h: Likewise.
3922         * lib/poll.in.h: Likewise.
3923         * lib/pthread.in.h: Likewise.
3924         * lib/pty.in.h: Likewise.
3925         * lib/sched.in.h: Likewise.
3926         * lib/se-selinux.in.h: Likewise.
3927         * lib/search.in.h: Likewise.
3928         * lib/signal.in.h: Likewise.
3929         * lib/spawn.in.h: Likewise.
3930         * lib/stdarg.in.h: Likewise.
3931         * lib/stddef.in.h: Likewise.
3932         * lib/stdint.in.h: Likewise.
3933         * lib/stdio.in.h: Likewise.
3934         * lib/stdlib.in.h: Likewise.
3935         * lib/string.in.h: Likewise.
3936         * lib/strings.in.h: Likewise.
3937         * lib/sys_file.in.h: Likewise.
3938         * lib/sys_ioctl.in.h: Likewise.
3939         * lib/sys_select.in.h: Likewise.
3940         * lib/sys_socket.in.h: Likewise.
3941         * lib/sys_stat.in.h: Likewise.
3942         * lib/sys_time.in.h: Likewise.
3943         * lib/sys_times.in.h: Likewise.
3944         * lib/sys_uio.in.h: Likewise.
3945         * lib/sys_utsname.in.h: Likewise.
3946         * lib/sys_wait.in.h: Likewise.
3947         * lib/sysexits.in.h: Likewise.
3948         * lib/termios.in.h: Likewise.
3949         * lib/time.in.h: Likewise.
3950         * lib/unistd.in.h: Likewise.
3951         * lib/wchar.in.h: Likewise.
3952         * lib/wctype.in.h: Likewise.
3953         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
3954         * modules/ctype (Makefile.am): Likewise.
3955         * modules/dirent (Makefile.am): Likewise.
3956         * modules/errno (Makefile.am): Likewise.
3957         * modules/fcntl-h (Makefile.am): Likewise.
3958         * modules/float (Makefile.am): Likewise.
3959         * modules/getopt-posix (Makefile.am): Likewise.
3960         * modules/iconv-h (Makefile.am): Likewise.
3961         * modules/langinfo (Makefile.am): Likewise.
3962         * modules/locale (Makefile.am): Likewise.
3963         * modules/math (Makefile.am): Likewise.
3964         * modules/netdb (Makefile.am): Likewise.
3965         * modules/netinet_in (Makefile.am): Likewise.
3966         * modules/poll-h (Makefile.am): Likewise.
3967         * modules/pthread (Makefile.am): Likewise.
3968         * modules/pty (Makefile.am): Likewise.
3969         * modules/sched (Makefile.am): Likewise.
3970         * modules/search (Makefile.am): Likewise.
3971         * modules/selinux-h (Makefile.am): Likewise.
3972         * modules/signal (Makefile.am): Likewise.
3973         * modules/spawn (Makefile.am): Likewise.
3974         * modules/stdarg (Makefile.am): Likewise.
3975         * modules/stddef (Makefile.am): Likewise.
3976         * modules/stdint (Makefile.am): Likewise.
3977         * modules/stdio (Makefile.am): Likewise.
3978         * modules/stdlib (Makefile.am): Likewise.
3979         * modules/string (Makefile.am): Likewise.
3980         * modules/strings (Makefile.am): Likewise.
3981         * modules/sys_file (Makefile.am): Likewise.
3982         * modules/sys_ioctl (Makefile.am): Likewise.
3983         * modules/sys_select (Makefile.am): Likewise.
3984         * modules/sys_socket (Makefile.am): Likewise.
3985         * modules/sys_stat (Makefile.am): Likewise.
3986         * modules/sys_time (Makefile.am): Likewise.
3987         * modules/sys_times (Makefile.am): Likewise.
3988         * modules/sys_uio (Makefile.am): Likewise.
3989         * modules/sys_utsname (Makefile.am): Likewise.
3990         * modules/sys_wait (Makefile.am): Likewise.
3991         * modules/sysexits (Makefile.am): Likewise.
3992         * modules/termios (Makefile.am): Likewise.
3993         * modules/time (Makefile.am): Likewise.
3994         * modules/unistd (Makefile.am): Likewise.
3995         * modules/wchar (Makefile.am): Likewise.
3996         * modules/wctype-h (Makefile.am): Likewise.
3997         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
3998
3999 2011-05-29  Bruno Haible  <bruno@clisp.org>
4000
4001         assert-h: Allow multiple gnulib generated replacements to coexist.
4002         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4003
4004 2011-05-29  Bruno Haible  <bruno@clisp.org>
4005
4006         argp: Allow coexistence with strerror_r-posix module.
4007         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4008         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4009         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4010         not the glibc signature.
4011
4012 2011-05-28  Bruno Haible  <bruno@clisp.org>
4013
4014         gnulib-tool: Alternative structure of testdirs, similar to --import.
4015         * gnulib-tool: New option --single-configure.
4016         (func_usage): Document it.
4017         (single_configure): New variable.
4018         (func_modules_transitive_closure_separately,
4019         func_modules_transitive_closure_separately,
4020         func_determine_use_libtests, func_modules_add_dummy_separately,
4021         func_modules_to_filelist_separately): New functions, extracted from
4022         func_import.
4023         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4024         (func_import): Use the new functions.
4025         (func_create_testdir): Set final_modules. Handle $single_configure =
4026         true case.
4027
4028 2011-05-28  Bruno Haible  <bruno@clisp.org>
4029
4030         getloadavg: Remove an unreliable safety check.
4031         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4032         getloadavg.c is in place.
4033         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4034         Reported by Sam Steingold <sds@gnu.org>.
4035
4036 2011-05-28  Bruno Haible  <bruno@clisp.org>
4037
4038         doc: Cleanup yet another file produced by texinfo.tex.
4039         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4040
4041 2011-05-28  Bruno Haible  <bruno@clisp.org>
4042
4043         Finish the conditional dependencies mechanism.
4044         * gnulib-tool: New option --no-conditional-dependencies.
4045         (func_usage): Document it. Don't mark --conditional-dependencies as
4046         experimental.
4047         (cond_dependencies): The possible values can now be true, false, empty.
4048         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4049         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4050         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4051
4052 2011-05-28  Bruno Haible  <bruno@clisp.org>
4053
4054         doc: Use a recent texinfo.tex.
4055         * doc/Makefile (tex_opts): New variable.
4056         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4057
4058 2011-05-28  Jim Meyering  <meyering@redhat.com>
4059
4060         intprops.h: adjust comment to match code change
4061         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4062         only once, it *may* have side effects.  Also fix an unrelated typo.
4063         (_GL_INT_SIGNED): Likewise.
4064
4065 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4066
4067         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4068
4069 2011-05-26  Bruno Haible  <bruno@clisp.org>
4070
4071         mbsrchr: Avoid collision with system function on Interix.
4072         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4073         Reported by Markus Duft <mduft@gentoo.org>.
4074
4075 2011-05-15  James Youngman  <jay@gnu.org>
4076
4077         getopt: for ambiguous options, enumerate the possibilities.
4078         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4079         the ambiguous options when an ambiguous prefix is given. This was
4080         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4081         glibc change was
4082         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4083
4084 2011-05-25  Eric Blake  <eblake@redhat.com>
4085
4086         getcwd: work around mingw bug
4087         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4088         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4089         Reported by Matthias Bolte.
4090
4091 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4092
4093         test-intprops: disable -Wtype-limits diagnostics
4094         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4095         diagnostics.  Otherwise, the integer overflow macros generate many
4096         diagnostics.  Reported by Jim Meyering in
4097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4098
4099         intprops: shorten, to pacify gcc -Woverlength-strings
4100         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4101         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4102         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4103         likely to run afoul of C compiler limits for string constant lengths.
4104         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4105
4106 2011-05-24  Eric Blake  <eblake@redhat.com>
4107
4108         docs: document recently fixed glibc printf bug
4109         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4110         * doc/posix-functions/printf.texi (printf): Likewise.
4111         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4112         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4113
4114         closein-tests: convert to init.sh
4115         * modules/closein-tests (Files): Add init.sh
4116         * tests/test-closein.sh Use it.
4117
4118         yesno-tests: convert to init.sh
4119         * modules/yesno-tests (Files): Add init.sh.
4120         * tests/test-yesno.sh: Use it.
4121
4122         atexit-tests: ensure reliable exit status
4123         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4124         Reported by Bruno Haible.
4125
4126 2011-05-24  Bruno Haible  <bruno@clisp.org>
4127
4128         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4129         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4130         gl_PREREQ_STRERROR_R invocations from here...
4131         * modules/strerror_r-posix (configure.ac): ... to here.
4132
4133 2011-05-24  Eric Blake  <eblake@redhat.com>
4134
4135         strerror_r: fix missing header
4136         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4137
4138         strerror_r: fix AIX test failures
4139         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4140         ERANGE failure.
4141
4142         strerror_r: fix Solaris test failures
4143         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4144         failures.
4145         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4146
4147         strerror_r: enforce POSIX recommendations
4148         * lib/strerror_r.c (safe_copy): New helper method.
4149         (strerror_r): Guarantee a non-empty string.
4150         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4151         recent POSIX rulings and to match our strerror guarantees.
4152         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4153
4154 2011-05-24  Jim Meyering  <meyering@redhat.com>
4155
4156         test-perror2.c: avoid warning about unused variable
4157         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4158
4159 2011-05-24  Eric Blake  <eblake@redhat.com>
4160
4161         perror: avoid spurious test failure on HP-UX
4162         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4163
4164         tests: fix logic bug in init.sh
4165         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4166         shell.
4167
4168 2011-05-24  Jim Meyering  <meyering@redhat.com>
4169
4170         utimensat: do not reference an out-of-scope buffer
4171         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4172         declared in an inner scope, yet "times" would be dereferenced outside
4173         the scope in which "ts" was valid.
4174         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4175         of ts[2] "out/up", so that the use of aliased "times" (via
4176         "times = ts;") does not end up referencing an out-of-scope "ts"
4177
4178         opendir-safer.c: don't clobber errno; don't close negative FD
4179         * lib/opendir-safer.c (opendir_safer):
4180         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4181         file descriptor, and more importantly, don't clobber the
4182         offending errno value with EINVAL.  Before, upon failure
4183         of dup_safer, we would pass the negative file descriptor to
4184         fdopendir, which would clobber errno.
4185
4186 2011-05-23  Bruno Haible  <bruno@clisp.org>
4187
4188         idcache: Fix module description.
4189         * modules/idcache (Include): Set to "idcache.h".
4190
4191 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4192
4193         gnulib-tool: fix portability problem with MacOS sed
4194         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4195         before the "}".  Problem reported by Leo in
4196         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4197         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4198         sed_extract_condition1, sed_extract_condition2.
4199
4200 2011-05-23  Bruno Haible  <bruno@clisp.org>
4201
4202         hash: Simplify autoconf macro.
4203         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4204
4205 2011-05-23  Bruno Haible  <bruno@clisp.org>
4206
4207         getugroups: Fix module description.
4208         * modules/getugroups (Include): Set to "getugroups.h".
4209
4210 2011-05-23  Bruno Haible  <bruno@clisp.org>
4211
4212         linkat: Simplify autoconf macro.
4213         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4214
4215 2011-05-23  Bruno Haible  <bruno@clisp.org>
4216             Eric Blake  <eblake@redhat.com>
4217
4218         linkat, renameat: Update dependencies.
4219         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4220         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4221         symlinkat.
4222
4223 2011-05-23  Jim Meyering  <meyering@redhat.com>
4224
4225         maint.mk: more tight_scope improvements
4226         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4227         (_gl_TS_headers): Define only in if-0'd block.
4228         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4229         sometimes we must *not* use it.  Adjust uses accordingly.
4230         (sc_tight_scope): Use much simpler grep-based test to determine
4231         whether we skip this rule.
4232
4233         maint.mk: generalize/improve the tight-scope rule
4234         * top/maint.mk: Emit a warning when the test is skipped.
4235         (_gl_TS_dir): Add $(srcdir)/ prefix.
4236         (_gl_TS_function_match): Simplify, rather than trying
4237         to enumerate common types.  Otherwise, it would fail to match an
4238         "extern unsigned char const *" declaration in idutils.
4239         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4240         a way to support use of that type of macro.
4241         (_gl_TS_var_match): Simplify regexp.
4242         (_gl_TS_obj_files): New configurable variable.
4243         (_gl_TS_headers): Likewise.
4244
4245 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4246
4247         verify: fix bug when gnulib <assert.h> is also included
4248         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4249         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4250         Perhaps there's a better way, but this fixes the immediate problem.
4251         Problem reported by Bruno Haible in
4252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4253
4254 2011-05-22  Bruno Haible  <bruno@clisp.org>
4255
4256         xgetcwd: Simplify autoconf macro.
4257         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4258
4259 2011-05-22  Bruno Haible  <bruno@clisp.org>
4260
4261         New module 'mktime-internal'.
4262         * modules/mktime-internal: New file.
4263         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4264         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4265         mktime_internal as a C macro if libc has __mktime_internal.
4266         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4267         conditions.
4268         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4269
4270 2011-05-22  Bruno Haible  <bruno@clisp.org>
4271
4272         timegm: Correct mktime replacement statements.
4273         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4274         defining mktime as a C macro. This completes a 2009-07-28 commit.
4275
4276 2011-05-22  Bruno Haible  <bruno@clisp.org>
4277
4278         timegm: Simplify autoconf macro.
4279         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4280
4281 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4282
4283         clock-time: change to LGPLv2+.
4284         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4285         BSD-like but we have no mark for that; this is good enough for now.
4286
4287 2011-05-21  Bruno Haible  <bruno@clisp.org>
4288
4289         strerror_r: Fix comments.
4290         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4291
4292 2011-05-21  Bruno Haible  <bruno@clisp.org>
4293
4294         relocatable-prog-wrapper: Fix possible link error.
4295         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4296         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4297         (gl_FUNC_SETENV): ... to here.
4298         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4299         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4300
4301 2011-05-21  Bruno Haible  <bruno@clisp.org>
4302
4303         relocatable-prog-wrapper: Assume strerror() exists.
4304         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4305         m4/strerror.m4.
4306         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4307         * lib/relocwrapper.c: Remove mention of strerror module.
4308         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4309         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4310         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4311         C macro.
4312
4313 2011-05-21  Bruno Haible  <bruno@clisp.org>
4314
4315         select: Simplify replacement idiom.
4316         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4317         Win32 platforms.
4318         * lib/sys_select.in.h (select): Simplify accordingly.
4319         * modules/select (Depends-on): Likewise.
4320
4321 2011-05-21  Bruno Haible  <bruno@clisp.org>
4322
4323         mkdir-p: Simplify autoconf macro.
4324         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4325         gl_FUNC_LCHOWN.
4326
4327 2011-05-21  Eric Blake  <eblake@redhat.com>
4328
4329         strerror_r: avoid clobbering strerror on cygwin
4330         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4331         fall back instead to sys_errlist.
4332         * modules/strerror (configure.ac): Add witness.
4333         * tests/test-strerror_r.c (main): Enhance test.
4334         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4335         * tests/test-perror2.c (main): Free memory before exit.
4336
4337 2011-05-21  Bruno Haible  <bruno@clisp.org>
4338
4339         mkdtemp: Use gnulib naming conventions.
4340         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4341         * modules/mkdtemp (configure.ac): Update.
4342
4343 2011-05-20  Eric Blake  <eblake@redhat.com>
4344
4345         strerror_r: avoid corrupting errno on Solaris
4346         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4347         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4348
4349         strerror_r: avoid compiler warning
4350         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4351
4352         strerror_r: simplify AIX code
4353         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4354
4355         test-perror: avoid spurious failure on FreeBSD
4356         * modules/perror-tests (Depends-on): Add strerror, now that
4357         strerror_r no longer pulls it in.
4358
4359 2011-05-20  Bruno Haible  <bruno@clisp.org>
4360
4361         strerror_r-posix: Remove unused dependencies.
4362         * modules/strerror_r-posix (Depends-on): Remove strerror.
4363         Reported by Eric Blake.
4364
4365 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4366
4367         intprops: remove assumption about A|B representation
4368         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4369         is a valid integer if both A and B are.  Although this is true for
4370         all known practical hosts, the C standard doesn't guarantee it,
4371         and the code need not assume it.  Also, this change may work around
4372         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4374
4375 2011-05-20  Eric Blake  <eblake@redhat.com>
4376
4377         perror: work around FreeBSD bug
4378         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4379         is broken.  Move AC_LIBOBJ...
4380         * modules/perror (configure.ac): Here.
4381         * doc/posix-functions/perror.texi (perror): Document this.
4382         * tests/test-perror2.c (main): Enhance test.
4383
4384         test-perror: check for strerror interactions
4385         * tests/macros.h (STREQ): Add macro.
4386         * modules/perror-tests (Files): Add second test.
4387         * tests/test-perror2.c (main): New file.
4388         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4389
4390         test-perror: rewrite to use init script
4391         * modules/perror-tests (Files): Add init.sh.
4392         * tests/test-perror.sh: Use temporary directory.
4393
4394 2011-05-20  Jim Meyering  <meyering@redhat.com>
4395
4396         maint: replace misused "a" with "an"
4397         * doc/intprops.texi: "a integer"
4398         * doc/regex.texi: "a explanation"
4399         * lib/alignof.h: "a object"
4400         * lib/argmatch.h: "a explanation"
4401         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4402         * lib/stdint.in.h: "a integer"
4403         * lib/userspec.c: "a owner"
4404         * doc/gnulib.texi: Fix "a idea", and reword.
4405
4406 2011-05-19  Jim Meyering  <meyering@redhat.com>
4407
4408         maint: correct misuse of "a" and "an"
4409         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4410         * lib/argp-help.c: "an docum...": s/an/a/
4411         * lib/argp-parse.c: "An vector": s/An/A/
4412         * lib/execute.c: "an native": s/an/a/
4413         * lib/spawn-pipe.c: Likewise.
4414         * lib/gc.h: "an Gc_rc": s/an/a/
4415         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4416         * lib/fts.c: "an stat.st_dev": s/an/a/
4417
4418 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4419
4420         intprops-tests: work around HP-UX 11.23 cc bug with constants
4421         * tests/test-intprops.c (VERIFY): New macro.
4422         (main): Use it, instead of verify, to work around the compiler bug; see
4423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4424
4425         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4426         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4427         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4428         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4429         (_GL_REMAINDER_OVERFLOW): Use it.
4430
4431         intprops-tests: revert unsigned part of previous change
4432         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4433         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4434         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4435         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4436
4437 2011-05-19  Bruno Haible  <bruno@clisp.org>
4438
4439         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4440         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4441         strerror_r() returned without filling the buffer.
4442         Reported by Eric Blake.
4443
4444 2011-05-19  Eric Blake  <eblake@redhat.com>
4445
4446         strerror_r: guarantee unchanged errno
4447         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4448         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4449         failure.
4450         * tests/test-strerror_r.c (main): Enhance test.
4451
4452 2011-05-19  Bruno Haible  <bruno@clisp.org>
4453
4454         strerror_r: Reorder #if blocks.
4455         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
4456         for consistency with the previous commit.
4457
4458 2011-05-19  Bruno Haible  <bruno@clisp.org>
4459
4460         perror: Avoid clobbering the strerror buffer when possible.
4461         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
4462         * lib/strerror.c: Include it.
4463         * modules/strerror (Files): Add lib/strerror-impl.h.
4464         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
4465         (my_strerror): New function, defined through lib/strerror-impl.h.
4466         (perror): Use it instead of strerror.
4467         * modules/perror (Files): Add lib/strerror-impl.h.
4468         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
4469
4470 2011-05-19  Eric Blake  <eblake@redhat.com>
4471
4472         strerror_r: fix on newer cygwin
4473         * lib/strerror_r.c (strerror_r): Cygwin now has
4474         __xpg_strerror_r, use it.
4475
4476 2011-05-19  Bruno Haible  <bruno@clisp.org>
4477
4478         strerror_r: Avoid clobbering the strerror buffer when possible.
4479         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4480         (sys_nerr, sys_errlist): New declarations.
4481         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4482         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4483         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4484
4485 2011-05-19  Bruno Haible  <bruno@clisp.org>
4486
4487         strerror_r: Fix test failure on mingw.
4488         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4489         EXTEND_STRERROR_R.
4490         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4491         macros from errno.in.h instead.
4492
4493 2011-05-19  Eric Blake  <eblake@redhat.com>
4494
4495         strerror: relax test for Solaris
4496         * tests/test-strerror.c (main): Permit Solaris behavior.
4497         * tests/test-strerror_r.c (main): Likewise.
4498
4499         strerror: enforce POSIX ruling on strerror(0)
4500         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4501         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4502         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4503         * doc/posix-functions/strerror.texi (strerror): Document it.
4504         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4505         * tests/test-strerror.c (main): Strengthen test.
4506         * tests/test-strerror_r.c (main): Likewise.
4507
4508 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4509
4510         intprop-tests: port to older and more-pedantic compilers
4511         * modules/intprops-tests (Files): Add tests/macros.h.
4512         * tests/test-intprops.c: Include macros.h.
4513         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4514         it's no longer documented to expand to an integer constant expression.
4515         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4516         argument is floating point, as it's no longer documented to expand
4517         to an integer constant expression in that case.
4518         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4519         compiler bugs reported by Bruno Haible.  See
4520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4521         (U0, U1): New constants, to work around the same bugs.  Also,
4522         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4523
4524         intprops: work around C compiler bugs
4525         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4526         bug in Sun C 5.11 2010/08/13 and other compilers; see
4527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4528
4529         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4530         * doc/intprops.texi (Integer Type Determination): Fix
4531         documentation for TYPE_IS_INTEGER: it returns an constant
4532         expression, not an integer constant expression.  Fix doc for
4533         TYPE_SIGNED: it returns an integer constant expression only if its
4534         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4535         hardly worth documented that way....)
4536
4537 2011-05-18  Bruno Haible  <bruno@clisp.org>
4538
4539         strerror_r: Avoid clobbering the strerror buffer when possible.
4540         * lib/strerror_r.c (strerror_r): Merge the three implementations.
4541         Handle gnulib defined errno values here. When strerror() returns NULL
4542         or an empty string, return EINVAL.
4543         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
4544         gnulib defined errno values here.
4545         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
4546
4547 2011-05-18  Eric Blake  <eblake@redhat.com>
4548
4549         fnmatch: avoid compiler warning
4550         * lib/fnmatch_loop.c (FCT): Use correct type.
4551         Reported by Matthias Bolte.
4552
4553 2011-05-13  Jim Meyering  <meyering@redhat.com>
4554
4555         maint.mk: three new prohibit_<HDR>_without_use rules
4556         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
4557         (sc_prohibit_stdio-safer_without_use): Likewise.
4558         (sc_prohibit_xfreopen_without_use): Likewise.
4559
4560 2011-05-17  Jim Meyering  <meyering@redhat.com>
4561
4562         announce-gen: fail if the NEWS delta is empty
4563         If there's nothing noteworthy in NEWS, then either you forgot
4564         or you shouldn't be releasing.
4565         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
4566
4567 2011-05-17  Pádraig Brady <P@draigBrady.com>
4568
4569         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
4570         reserved symbols starting with double underscore from the check.
4571
4572 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4573
4574         intprops: add doc
4575         * doc/intprops.texi: New file, documenting intprops.
4576         * doc/gnulib.texi (Particular Modules): Include it.
4577
4578         verify: add doc to gnulib manual and fix example
4579         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
4580         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
4581         (Compile-time Assertions): Fix example so it can't overflow.
4582
4583 2011-05-17  Jim Meyering  <meyering@redhat.com>
4584
4585         warnings.m4: don't usurp save_CPPFLAGS variable name
4586         * m4/warnings.m4: Prefix local temporary variable name with gl_.
4587
4588         doc: fix typo
4589         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
4590
4591 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4592             Bruno Haible  <bruno@clisp.org>
4593
4594         doc: Tweak recent change.
4595         * README (Portability guidelines): Tweak new text.
4596         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
4597         Interix 6.1.
4598
4599 2011-05-16  Eric Blake  <eblake@redhat.com>
4600
4601         inttypes: avoid autoconf warning
4602         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
4603         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4604
4605 2011-05-16  Sam Steingold <sds@gnu.org>
4606         and Eric Blake  <eblake@redhat.com>
4607
4608         vc-list-files: accept multiple directory operands
4609         * build-aux/vc-list-files: Iterate over all remaining operands.
4610
4611 2011-05-16  Bruno Haible  <bruno@clisp.org>
4612
4613         Fix confusion regarding deprecated modules.
4614         * modules/calloc (Status, Notice): Mark module as deprecated, not
4615         obsolete.
4616         * modules/fnmatch-posix (Status, Notice): Likewise.
4617         * modules/getdate (Status, Notice): Likewise.
4618         * modules/getopt (Status, Notice): Likewise.
4619         * modules/malloc (Status, Notice): Likewise.
4620         * modules/pipe (Status, Notice): Likewise.
4621         * modules/realloc (Status, Notice): Likewise.
4622         * modules/rename-dest-slash (Status, Notice): Likewise.
4623         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
4624         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
4625         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
4626         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
4627         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
4628
4629 2011-05-16  Bruno Haible  <bruno@clisp.org>
4630
4631         doc: List the target platforms.
4632         * doc/gnulib-intro.texi (Target Platforms): New section.
4633         * doc/gnulib.texi (Introduction): Update menu.
4634         * README (Portability guidelines): Refer to the new section. Update
4635         statement about oldest supported environment. Remove rationale why
4636         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
4637         unportable C89 function.
4638         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
4639         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
4640
4641 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4642
4643         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
4644
4645 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
4646
4647         intprops-tests: new module
4648         * modules/intprops-tests, tests/test-intprops.c: New files.
4649
4650         intprops: add safe, portable integer overflow checking
4651         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
4652         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
4653         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
4654         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
4655         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
4656         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
4657         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
4658         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
4659         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
4660         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
4661         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
4662
4663 2011-05-12  James Youngman  <jay@gnu.org>
4664
4665         Add a test for glibc's Bugzilla bug #12378.
4666         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
4667         doesn't allow the literal matching of a lone "[" (which is
4668         required by POSIX).
4669         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
4670
4671 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
4672
4673         Sync glibc change fixing Bugzilla bug #12378.
4674         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
4675         beginning and fall back to matching as normal character if the
4676         string ends before the matching ']' is found.  This is what POSIX
4677         requires.
4678
4679 2011-05-13  Eric Blake  <eblake@redhat.com>
4680
4681         getcwd-lgpl: relax test for FreeBSD
4682         * doc/posix-functions/getcwd.texi (getcwd): Document portability
4683         issue.
4684         * tests/test-getcwd-lgpl.c (main): Relax test.
4685         Reported by Matthias Bolte.
4686
4687 2011-05-11  Eric Blake  <eblake@redhat.com>
4688
4689         test-fflush: silence compiler warning
4690         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
4691
4692 2011-05-11  Bruno Haible  <bruno@clisp.org>
4693
4694         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
4695         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
4696         * modules/canonicalize (Depends-on): Add 'nocrash'.
4697         * modules/canonicalize-lgpl (Depends-on): Likewise.
4698         * doc/posix-functions/realpath.texi: Update platforms list.
4699         Reported by Ryan Schmidt <ryandesign@macports.org>.
4700
4701 2011-05-11  Bruno Haible  <bruno@clisp.org>
4702
4703         group-member: Declare function in <unistd.h>.
4704         * lib/unistd.in.h (group_member): New declaration.
4705         * lib/group-member.h: Remove file.
4706         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
4707         * tests/test-unistd-c++.cc: Check signature of group_member.
4708         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
4709         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
4710         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
4711         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
4712         HAVE_GROUP_MEMBER.
4713         * modules/group-member (Files): Remove lib/group-member.h.
4714         (Depends-on): Add unistd. Specify conditions.
4715         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4716         (Include): Change to <unistd.h>.
4717         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
4718         HAVE_GROUP_MEMBER.
4719         * NEWS: Mention the change.
4720         * lib/euidaccess.c: Don't include group-member.h.
4721
4722 2011-05-11  Bruno Haible  <bruno@clisp.org>
4723
4724         group-member: Document module.
4725         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
4726         module.
4727
4728 2011-05-11  Bruno Haible  <bruno@clisp.org>
4729
4730         fclose: Fix mistake earlier today.
4731         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
4732
4733 2011-05-11  Eric Blake  <eblake@redhat.com>
4734
4735         fclose: preserve fflush errors
4736         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
4737         Reported by Jim Meyering.
4738
4739         bootstrap: support a prereq of 'rpcgen -' on RHEL5
4740         * build-aux/bootstrap (check_versions): When no specific version
4741         is required, merely check that the app produces an exit status
4742         that indicates its existence.
4743
4744         maint.mk: drop redundant check
4745         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
4746         the same but better.
4747
4748 2011-05-11  Bruno Haible  <bruno@clisp.org>
4749
4750         fclose: Fix possible link error.
4751         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
4752         unregister_shadow_fd. Improve comments.
4753         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
4754         Eric Blake.
4755
4756 2011-05-11  Jim Meyering  <meyering@redhat.com>
4757
4758         maint.mk: improve "can not" detection and generalize rule name
4759         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
4760         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
4761         Use the same technique as in sc_prohibit_doubled_word, so that
4762         we recognize "can not" also when the words are separated by a newline.
4763         Suggested by Eric Blake.
4764         (perl_filename_lineno_text_): Define.  Factored out of...
4765         (prohibit_doubled_word_): ...here.  Use the new definition.
4766         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
4767         (prohibit_undesirable_word_seq_RE_): New overridable variable.
4768         (ignore_undesirable_word_sequence_RE_): New overridable variable.
4769
4770 2011-05-10  Eric Blake  <eblake@redhat.com>
4771
4772         fclose: avoid double close race when possible
4773         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
4774         all but WINDOWS_SOCKETS.
4775
4776 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
4777
4778         openat: correct new comment
4779         * lib/openat-proc.c (openat_proc_name): Correct the comment.
4780
4781 2011-05-10  Jim Meyering  <meyering@redhat.com>
4782
4783         openat: add comments
4784         * lib/openat-proc.c (openat_proc_name): Add comments,
4785         mostly from Eric Blake.
4786
4787 2011-05-09  Eric Blake  <eblake@redhat.com>
4788
4789         openat: reduce syscalls in first probe of /proc
4790         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
4791         be a directory.  Simplify the probe for .. bugs.
4792         * modules/openat (Depends-on): Drop same-inode.
4793         Reported by Bastien ROUCARIES.
4794
4795 2011-05-09  Jim Meyering  <meyering@redhat.com>
4796
4797         maint.mk: change semantics/name of tight_scope variables
4798         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
4799         Rename variables to align with semantics that make them more useful.
4800
4801         maint.mk: tweak new rule's name not to impinge
4802         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
4803         (sc_tight_scope): Use new rule name rather than $@-0.
4804
4805         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
4806         * top/maint.mk (sc_tight_scope): New rule.
4807         (sc_tight_scope-0): New rule, ifdef'd out.
4808         (_gl_TS_dir): Default.
4809         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
4810         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
4811
4812 2011-05-09  Simon Josefsson  <simon@josefsson.org>
4813
4814         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
4815         Haible <bruno@clisp.org>.
4816
4817 2011-05-08  Bruno Haible  <bruno@clisp.org>
4818
4819         Comments.
4820         * m4/isnanf.m4: Add comment.
4821         * m4/isnanl.m4: Likewise.
4822
4823 2011-05-08  Bruno Haible  <bruno@clisp.org>
4824
4825         glob: Remove obsolete macro.
4826         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
4827
4828 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4829
4830         intprops: Sun C 5.11 supports __typeof__
4831         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
4832         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
4833         which is new.
4834         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
4835
4836         intprops: switch to usual gnulib indenting and naming
4837         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
4838         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
4839
4840         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
4841
4842 2011-05-08  Jim Meyering  <meyering@redhat.com>
4843
4844         maint.mk: suppress "Entering/Leaving directory" diag in announcement
4845         * top/maint.mk (release-prep): Use make's --no-print-directory
4846         option when generating the announcement.  This eliminates the
4847         pesky "make[2]: Entering/Leaving directory" diagnostics in the
4848         generated announcement template.
4849
4850 2011-05-08  Bruno Haible  <bruno@clisp.org>
4851
4852         tzset: Fix gettimeofday wrapper on Solaris 2.6.
4853         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
4854         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
4855
4856 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4857
4858         ignore-value, verify: Omit include files from lib_SOURCES.
4859         * modules/ignore-value, modules/verify (Makefile.am):
4860         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
4861         that leads Automake to duplicate use of am__objects_... variables
4862         in Makefile.in.  See
4863         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
4864
4865 2011-05-07  Bruno Haible  <bruno@clisp.org>
4866
4867         fclose: Simplify autoconf macro.
4868         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
4869         defined.
4870
4871 2011-05-07  Bruno Haible  <bruno@clisp.org>
4872
4873         canonicalize-lgpl: Fix autoconf macro ordering bug.
4874         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
4875         gl_STDLIB_H_DEFAULTS.
4876
4877 2011-05-06  Eric Blake  <eblake@redhat.com>
4878
4879         maintainer-makefile: make sc_po_check easier to tune
4880         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
4881         to probe for strings, such as an alternate location for gnulib.
4882
4883         fclose: guarantee behavior on seekable stdin
4884         * modules/fclose (Depends-on): Add fflush.
4885         * doc/posix-functions/fclose.texi (fclose): Document this.
4886         * tests/test-fclose.c (main): Make test for this unconditional.
4887
4888 2011-05-06  Bruno Haible  <bruno@clisp.org>
4889
4890         fflush, fpurge: Relicense under LGPLv2+.
4891         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
4892         * modules/fpurge (License): Likewise.
4893         With permission from Eric Blake and Jim Meyering.
4894         Suggested by Eric Blake.
4895
4896 2011-05-06  Karl Berry  <karl@gnu.org>
4897
4898         * MODULES.html.sh (func_all_modules): remove exit.
4899
4900 2011-05-06  Jim Meyering  <meyering@redhat.com>
4901
4902         maint.mk: use info-gnu@ as the default only for a stable release
4903         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
4904         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
4905         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
4906         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
4907
4908 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4909
4910         assert-h: new module, which supports C1X-style static_assert
4911         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
4912         * lib/verify.h: Revamp so that this can be copied into assert.h,
4913         while retaining the ability to use it standalone as before.
4914         Rename private identifiers so as not to encroach on the
4915         standard C namespace, since this is now used by assert.h.
4916         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
4917         the old verify_true.
4918         (_GL_VERIFY_TRUE): New macro, with much of the contents of
4919         the old verify_true.  Use _GL_VERIFY_TYPE.
4920         (_GL_VERIFY): New macro, with much of the contents of the old verify.
4921         (static_assert): New macro, if _GL_STATIC_ASSERT_H
4922         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
4923         defined when this file is copied into the replacement assert.h.
4924         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
4925         and _Static_assert is not built in.
4926         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
4927         defined, and use the new macros mentioned above.
4928         * doc/posix-headers/assert.texi: Document this.
4929
4930 2011-05-05  Bruno Haible  <bruno@clisp.org>
4931
4932         fclose, fflush: Respect rules for use of AC_LIBOBJ.
4933         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
4934         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
4935         gl_REPLACE_FCLOSE here.
4936         * modules/fflush (Depends-on): Remove fclose.
4937         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
4938         combination with module 'fclose'.
4939
4940 2011-05-05  Bruno Haible  <bruno@clisp.org>
4941
4942         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
4943         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
4944         gl_FUNC_FFLUSH.
4945         (gl_FUNC_FFLUSH): Use it.
4946         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
4947         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
4948         gl_REPLACE_FSEEKO here.
4949
4950 2011-05-05  Bruno Haible  <bruno@clisp.org>
4951
4952         tzset: Relicense under LGPL.
4953         * modules/tzset (License): Change to LGPL.
4954         No agreement needed; it's a no-op.
4955
4956         strtoimax, strtoumax: Relicense under LGPL.
4957         * modules/strtoimax (License): Change to LGPL.
4958         * modules/strtoumax (License): Likewise.
4959         With permission from Jim Meyering, Paul Eggert:
4960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
4961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
4962
4963         getgroups: Relicense under LGPL.
4964         * modules/getgroups (License): Change to LGPL.
4965         With permission from Jim Meyering, Paul Eggert, Eric Blake:
4966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4969
4970         nanosleep: Relicense under LGPL.
4971         * modules/nanosleep (License): Change to LGPL.
4972         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
4973         Haible:
4974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4978
4979         futimens: Relicense under LGPL.
4980         * modules/futimens (License): Change to LGPL.
4981         With permission from Eric Blake:
4982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4983
4984         fflush: Relicense under LGPL.
4985         * modules/fflush (License): Change to LGPL.
4986         With permission from Eric Blake, Bruno Haible, Jim Meyering:
4987         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
4990
4991         tmpfile: Relicense under LGPL.
4992         * modules/tmpfile (License): Change to LGPL.
4993         With permission from Ben Pfaff:
4994         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4995
4996         isfinite: Relicense under LGPL.
4997         * modules/isfinite (License): Change to LGPL.
4998         With permission from Ben Pfaff, Bruno Haible:
4999         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5001
5002         acosl..tanl: Relicense under LGPL.
5003         * modules/acosl (License): Change to LGPL.
5004         * modules/asinl (License): Likewise.
5005         * modules/atanl (License): Likewise.
5006         * modules/cosl (License): Likewise.
5007         * modules/expl (License): Likewise.
5008         * modules/logl (License): Likewise.
5009         * modules/sinl (License): Likewise.
5010         * modules/sqrtl (License): Likewise.
5011         * modules/tanl (License): Likewise.
5012         Source code originally from glibc and Paolo Bonzini. Agreements:
5013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5015
5016 2011-05-05  Bruno Haible  <bruno@clisp.org>
5017
5018         signal: Define sighandler_t.
5019         * lib/signal.in.h (sighandler_t): New type.
5020         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5021         whether sighandler_t is defined.
5022         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5023         * modules/signal (Depends-on): Add extensions.
5024         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5025         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5026         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5027
5028 2011-05-05  Eric Blake  <eblake@redhat.com>
5029
5030         maint: remove useless REPLACE_*_H macros
5031         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5032         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5033         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5034         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5035         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5036         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5037         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5038         * m4/btowc.m4: Update callers.
5039         * m4/dirfd.m4: Likewise.
5040         * m4/duplocale.m4: Likewise.
5041         * m4/fchdir.m4: Likewise.
5042         * m4/fdopendir.m4: Likewise.
5043         * m4/inet_ntop.m4: Likewise.
5044         * m4/inet_pton.m4: Likewise.
5045         * m4/ioctl.m4: Likewise.
5046         * m4/mbrlen.m4: Likewise.
5047         * m4/mbrtowc.m4: Likewise.
5048         * m4/mbsinit.m4: Likewise.
5049         * m4/mbsnrtowcs.m4: Likewise.
5050         * m4/mbsrtowcs.m4: Likewise.
5051         * m4/poll.m4: Likewise.
5052         * m4/setlocale.m4: Likewise.
5053         * m4/wcrtomb.m4: Likewise.
5054         * m4/wcsnrtombs.m4: Likewise.
5055         * m4/wcsrtombs.m4: Likewise.
5056         * m4/wctob.m4: Likewise.
5057         * m4/wcwidth.m4: Likewise.
5058         * modules/posix_spawn: Likewise.
5059         * modules/posix_spawn_file_actions_addclose: Likewise.
5060         * modules/posix_spawn_file_actions_adddup2: Likewise.
5061         * modules/posix_spawn_file_actions_addopen: Likewise.
5062         * modules/posix_spawn_file_actions_destroy: Likewise.
5063         * modules/posix_spawn_file_actions_init: Likewise.
5064         * modules/posix_spawnattr_destroy: Likewise.
5065         * modules/posix_spawnattr_getflags: Likewise.
5066         * modules/posix_spawnattr_getpgroup: Likewise.
5067         * modules/posix_spawnattr_getschedparam: Likewise.
5068         * modules/posix_spawnattr_getschedpolicy: Likewise.
5069         * modules/posix_spawnattr_getsigdefault: Likewise.
5070         * modules/posix_spawnattr_getsigmask: Likewise.
5071         * modules/posix_spawnattr_init: Likewise.
5072         * modules/posix_spawnattr_setflags: Likewise.
5073         * modules/posix_spawnattr_setpgroup: Likewise.
5074         * modules/posix_spawnattr_setschedparam: Likewise.
5075         * modules/posix_spawnattr_setschedpolicy: Likewise.
5076         * modules/posix_spawnattr_setsigdefault: Likewise.
5077         * modules/posix_spawnattr_setsigmask: Likewise.
5078         * modules/posix_spawnp: Likewise.
5079
5080 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5081
5082         Add option to do-release-commit-and-tag to specify branch.
5083         * build-aux/do-release-commit-and-tag: Add --branch.
5084
5085 2011-05-03  Bruno Haible  <bruno@clisp.org>
5086
5087         Avoid unnecessary compilation units, through conditional dependencies.
5088         * modules/accept (Depends-on): Add conditions to the dependencies.
5089         * modules/acosl (Depends-on): Likewise.
5090         * modules/argz (Depends-on): Likewise.
5091         * modules/asinl (Depends-on): Likewise.
5092         * modules/atanl (Depends-on): Likewise.
5093         * modules/atoll (Depends-on): Likewise.
5094         * modules/bind (Depends-on): Likewise.
5095         * modules/btowc (Depends-on): Likewise.
5096         * modules/canonicalize-lgpl (Depends-on): Likewise.
5097         * modules/ceil (Depends-on): Likewise.
5098         * modules/ceilf (Depends-on): Likewise.
5099         * modules/ceill (Depends-on): Likewise.
5100         * modules/chdir-long (Depends-on): Likewise.
5101         * modules/chown (Depends-on): Likewise.
5102         * modules/close (Depends-on): Likewise.
5103         * modules/connect (Depends-on): Likewise.
5104         * modules/cosl (Depends-on): Likewise.
5105         * modules/dirfd (Depends-on): Likewise.
5106         * modules/dprintf (Depends-on): Likewise.
5107         * modules/dprintf-posix (Depends-on): Likewise.
5108         * modules/error (Depends-on): Likewise.
5109         * modules/euidaccess (Depends-on): Likewise.
5110         * modules/expl (Depends-on): Likewise.
5111         * modules/faccessat (Depends-on): Likewise.
5112         * modules/fchdir (Depends-on): Likewise.
5113         * modules/fclose (Depends-on): Likewise.
5114         * modules/fcntl (Depends-on): Likewise.
5115         * modules/fdopendir (Depends-on): Likewise.
5116         * modules/fflush (Depends-on): Likewise.
5117         * modules/floor (Depends-on): Likewise.
5118         * modules/floorf (Depends-on): Likewise.
5119         * modules/floorl (Depends-on): Likewise.
5120         * modules/fnmatch (Depends-on): Likewise.
5121         * modules/fopen (Depends-on): Likewise.
5122         * modules/fprintf-posix (Depends-on): Likewise.
5123         * modules/frexp (Depends-on): Likewise.
5124         * modules/frexp-nolibm (Depends-on): Likewise.
5125         * modules/frexpl (Depends-on): Likewise.
5126         * modules/frexpl-nolibm (Depends-on): Likewise.
5127         * modules/fseek (Depends-on): Likewise.
5128         * modules/fsusage (Depends-on): Likewise.
5129         * modules/ftell (Depends-on): Likewise.
5130         * modules/ftello (Depends-on): Likewise.
5131         * modules/futimens (Depends-on): Likewise.
5132         * modules/getcwd (Depends-on): Likewise.
5133         * modules/getcwd-lgpl (Depends-on): Likewise.
5134         * modules/getdelim (Depends-on): Likewise.
5135         * modules/getdomainname (Depends-on): Likewise.
5136         * modules/getgroups (Depends-on): Likewise.
5137         * modules/gethostname (Depends-on): Likewise.
5138         * modules/getline (Depends-on): Likewise.
5139         * modules/getlogin_r (Depends-on): Likewise.
5140         * modules/getopt-posix (Depends-on): Likewise.
5141         * modules/getpeername (Depends-on): Likewise.
5142         * modules/getsockname (Depends-on): Likewise.
5143         * modules/getsockopt (Depends-on): Likewise.
5144         * modules/getsubopt (Depends-on): Likewise.
5145         * modules/getusershell (Depends-on): Likewise.
5146         * modules/glob (Depends-on): Likewise.
5147         * modules/grantpt (Depends-on): Likewise.
5148         * modules/iconv_open (Depends-on): Likewise.
5149         * modules/iconv_open-utf (Depends-on): Likewise.
5150         * modules/inet_ntop (Depends-on): Likewise.
5151         * modules/inet_pton (Depends-on): Likewise.
5152         * modules/ioctl (Depends-on): Likewise.
5153         * modules/isapipe (Depends-on): Likewise.
5154         * modules/isfinite (Depends-on): Likewise.
5155         * modules/isinf (Depends-on): Likewise.
5156         * modules/lchown (Depends-on): Likewise.
5157         * modules/ldexpl (Depends-on): Likewise.
5158         * modules/link (Depends-on): Likewise.
5159         * modules/linkat (Depends-on): Likewise.
5160         * modules/listen (Depends-on): Likewise.
5161         * modules/logl (Depends-on): Likewise.
5162         * modules/lstat (Depends-on): Likewise.
5163         * modules/mbrlen (Depends-on): Likewise.
5164         * modules/mbrtowc (Depends-on): Likewise.
5165         * modules/mbsinit (Depends-on): Likewise.
5166         * modules/mbsnrtowcs (Depends-on): Likewise.
5167         * modules/mbsrtowcs (Depends-on): Likewise.
5168         * modules/mbtowc (Depends-on): Likewise.
5169         * modules/memcmp (Depends-on): Likewise.
5170         * modules/mkdir (Depends-on): Likewise.
5171         * modules/mkdtemp (Depends-on): Likewise.
5172         * modules/mkfifo (Depends-on): Likewise.
5173         * modules/mkfifoat (Depends-on): Likewise.
5174         * modules/mknod (Depends-on): Likewise.
5175         * modules/mkostemp (Depends-on): Likewise.
5176         * modules/mkostemps (Depends-on): Likewise.
5177         * modules/mkstemp (Depends-on): Likewise.
5178         * modules/mkstemps (Depends-on): Likewise.
5179         * modules/mktime (Depends-on): Likewise.
5180         * modules/nanosleep (Depends-on): Likewise.
5181         * modules/open (Depends-on): Likewise.
5182         * modules/openat (Depends-on): Likewise.
5183         * modules/perror (Depends-on): Likewise.
5184         * modules/poll (Depends-on): Likewise.
5185         * modules/popen (Depends-on): Likewise.
5186         * modules/posix_spawn (Depends-on): Likewise.
5187         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5188         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5189         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5190         * modules/posix_spawnp (Depends-on): Likewise.
5191         * modules/pread (Depends-on): Likewise.
5192         * modules/printf-posix (Depends-on): Likewise.
5193         * modules/ptsname (Depends-on): Likewise.
5194         * modules/putenv (Depends-on): Likewise.
5195         * modules/pwrite (Depends-on): Likewise.
5196         * modules/readline (Depends-on): Likewise.
5197         * modules/readlink (Depends-on): Likewise.
5198         * modules/readlinkat (Depends-on): Likewise.
5199         * modules/recv (Depends-on): Likewise.
5200         * modules/recvfrom (Depends-on): Likewise.
5201         * modules/regex (Depends-on): Likewise.
5202         * modules/remove (Depends-on): Likewise.
5203         * modules/rename (Depends-on): Likewise.
5204         * modules/renameat (Depends-on): Likewise.
5205         * modules/rmdir (Depends-on): Likewise.
5206         * modules/round (Depends-on): Likewise.
5207         * modules/roundf (Depends-on): Likewise.
5208         * modules/roundl (Depends-on): Likewise.
5209         * modules/rpmatch (Depends-on): Likewise.
5210         * modules/select (Depends-on): Likewise.
5211         * modules/send (Depends-on): Likewise.
5212         * modules/sendto (Depends-on): Likewise.
5213         * modules/setenv (Depends-on): Likewise.
5214         * modules/setlocale (Depends-on): Likewise.
5215         * modules/setsockopt (Depends-on): Likewise.
5216         * modules/shutdown (Depends-on): Likewise.
5217         * modules/sigaction (Depends-on): Likewise.
5218         * modules/signbit (Depends-on): Likewise.
5219         * modules/sigprocmask (Depends-on): Likewise.
5220         * modules/sinl (Depends-on): Likewise.
5221         * modules/sleep (Depends-on): Likewise.
5222         * modules/snprintf (Depends-on): Likewise.
5223         * modules/snprintf-posix (Depends-on): Likewise.
5224         * modules/socket (Depends-on): Likewise.
5225         * modules/sprintf-posix (Depends-on): Likewise.
5226         * modules/sqrtl (Depends-on): Likewise.
5227         * modules/stat (Depends-on): Likewise.
5228         * modules/strchrnul (Depends-on): Likewise.
5229         * modules/strdup-posix (Depends-on): Likewise.
5230         * modules/strerror (Depends-on): Likewise.
5231         * modules/strerror_r-posix (Depends-on): Likewise.
5232         * modules/strndup (Depends-on): Likewise.
5233         * modules/strnlen (Depends-on): Likewise.
5234         * modules/strptime (Depends-on): Likewise.
5235         * modules/strsep (Depends-on): Likewise.
5236         * modules/strsignal (Depends-on): Likewise.
5237         * modules/strstr-simple (Depends-on): Likewise.
5238         * modules/strtod (Depends-on): Likewise.
5239         * modules/strtoimax (Depends-on): Likewise.
5240         * modules/strtok_r (Depends-on): Likewise.
5241         * modules/strtoumax (Depends-on): Likewise.
5242         * modules/symlink (Depends-on): Likewise.
5243         * modules/symlinkat (Depends-on): Likewise.
5244         * modules/tanl (Depends-on): Likewise.
5245         * modules/tcgetsid (Depends-on): Likewise.
5246         * modules/tmpfile (Depends-on): Likewise.
5247         * modules/trunc (Depends-on): Likewise.
5248         * modules/truncf (Depends-on): Likewise.
5249         * modules/truncl (Depends-on): Likewise.
5250         * modules/uname (Depends-on): Likewise.
5251         * modules/unlink (Depends-on): Likewise.
5252         * modules/unlockpt (Depends-on): Likewise.
5253         * modules/unsetenv (Depends-on): Likewise.
5254         * modules/usleep (Depends-on): Likewise.
5255         * modules/utimensat (Depends-on): Likewise.
5256         * modules/vasprintf (Depends-on): Likewise.
5257         * modules/vdprintf (Depends-on): Likewise.
5258         * modules/vdprintf-posix (Depends-on): Likewise.
5259         * modules/vfprintf-posix (Depends-on): Likewise.
5260         * modules/vprintf-posix (Depends-on): Likewise.
5261         * modules/vsnprintf (Depends-on): Likewise.
5262         * modules/vsnprintf-posix (Depends-on): Likewise.
5263         * modules/vsprintf-posix (Depends-on): Likewise.
5264         * modules/wcrtomb (Depends-on): Likewise.
5265         * modules/wcscasecmp (Depends-on): Likewise.
5266         * modules/wcscspn (Depends-on): Likewise.
5267         * modules/wcsdup (Depends-on): Likewise.
5268         * modules/wcsncasecmp (Depends-on): Likewise.
5269         * modules/wcsnrtombs (Depends-on): Likewise.
5270         * modules/wcspbrk (Depends-on): Likewise.
5271         * modules/wcsrtombs (Depends-on): Likewise.
5272         * modules/wcsspn (Depends-on): Likewise.
5273         * modules/wcsstr (Depends-on): Likewise.
5274         * modules/wcstok (Depends-on): Likewise.
5275         * modules/wcswidth (Depends-on): Likewise.
5276         * modules/wctob (Depends-on): Likewise.
5277         * modules/wctomb (Depends-on): Likewise.
5278         * modules/wctype (Depends-on): Likewise.
5279         * modules/wcwidth (Depends-on): Likewise.
5280         * modules/write (Depends-on): Likewise.
5281
5282 2011-05-03  Bruno Haible  <bruno@clisp.org>
5283
5284         Support for conditional dependencies.
5285         * doc/gnulib.texi (Module description): Document the syntax of
5286         conditional dependencies.
5287         * gnulib-tool: New option --conditional-dependencies.
5288         (func_usage): Document it.
5289         (cond_dependencies): New variable.
5290         (func_get_automake_snippet_conditional,
5291         func_get_automake_snippet_unconditional): New functions, extracted from
5292         func_get_automake_snippet.
5293         (func_get_automake_snippet): Use them.
5294         (sed_first_32_chars): New variable.
5295         (func_module_shellfunc_name): New function.
5296         (func_module_shellvar_name): New function.
5297         (func_module_conditional_name): New function.
5298         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5299         func_cond_module_condition): New functions.
5300         (func_modules_transitive_closure): Add support for conditional
5301         dependencies.
5302         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5303         conditional automake snippet in an automake conditional.
5304         (func_emit_autoconf_snippets): Emit shell functions that contain the
5305         code for conditional modules.
5306         (func_import, func_create_testdir): Update specification.
5307
5308 2011-05-03  Eric Blake  <eblake@redhat.com>
5309
5310         test-getaddrinfo: report error information
5311         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5312
5313 2011-05-03  Jim Meyering  <meyering@redhat.com>
5314
5315         bootstrap: avoid build failure when $GZIP is set
5316         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5317         program name.  If defined at all, it is supposed to list gzip options.
5318         Reported by Alan Curry in http://debbugs.gnu.org/8609
5319
5320 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5321
5322         readme-release: new module with release instructions
5323         * modules/readme-release: New module.
5324         * top/README-release: New file, from coreutils, grep, diffutils.
5325         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5326
5327 2011-05-02  Eric Blake  <eblake@redhat.com>
5328
5329         fflush: also replace fclose when fixing fflush
5330         * modules/fflush (Depends-on): Add fclose.
5331         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5332         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5333         memstreams with no backing fd.
5334         * doc/posix-functions/fclose.texi (fclose): Document the use of
5335         fflush module to fix the bug.
5336         * tests/test-fclose.c (main): Relax test when fclose is used in
5337         isolation.
5338
5339         fclose: add some tests
5340         * modules/fclose-tests: New test module.
5341         * tests/test-fclose.c: New file.
5342         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5343
5344         fclose: reduced dependencies
5345         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5346         simpler lseek.
5347         * lib/fclose.c (rpl_fclose): Likewise.
5348         Reported by Simon Josefsson.
5349
5350         exit: drop remaining clients
5351         * modules/argmatch (Depends-on): Replace exit with stdlib.
5352         * modules/copy-file (Depends-on): Likewise.
5353         * modules/execute (Depends-on): Likewise.
5354         * modules/exitfail (Depends-on): Likewise.
5355         * modules/obstack (Depends-on): Likewise.
5356         * modules/pagealign_alloc (Depends-on): Likewise.
5357         * modules/pipe-filter-gi (Depends-on): Likewise.
5358         * modules/pipe-filter-ii (Depends-on): Likewise.
5359         * modules/savewd (Depends-on): Likewise.
5360         * modules/spawn-pipe (Depends-on): Likewise.
5361         * modules/wait-process (Depends-on): Likewise.
5362         * modules/xsetenv (Depends-on): Likewise.
5363         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5364         * modules/git-merge-changelog (Depends-on): Likewise.
5365         * modules/long-options (Depends-on): Likewise.
5366         * modules/pt_chown (Depends-on): Likewise.
5367         * modules/sysexits (Depends-on): Likewise.
5368
5369         freading: relax license from LGPLv3+ to LGPLv2+
5370         * modules/freading (License): Relax LGPL version.
5371
5372 2011-05-02  Bruno Haible  <bruno@clisp.org>
5373
5374         fchdir: Remove unused dependencies.
5375         * modules/fchdir (Depends-on): Remove include_next.
5376
5377 2011-05-02  Bruno Haible  <bruno@clisp.org>
5378
5379         gnulib-tool: Refactor.
5380         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5381         from func_emit_autoconf_snippets.
5382         (func_emit_autoconf_snippets): Use it.
5383
5384 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5385
5386         * NEWS: Document removal of 'exit'.
5387         * modules/exit: Remove file.
5388
5389 2011-05-01  Bruno Haible  <bruno@clisp.org>
5390
5391         Update DEPENDENCIES.
5392         * DEPENDENCIES (gettext): Recommend the newest release.
5393         Reported by Simon Josefsson.
5394
5395 2011-05-01  Bruno Haible  <bruno@clisp.org>
5396
5397         gnulib-tool: Reduce code duplication.
5398         * gnulib-tool (func_emit_autoconf_snippets): New function.
5399         (func_import, func_create_testdir): Use it.
5400
5401 2011-04-30  Eric Blake  <eblake@redhat.com>
5402
5403         fclose: don't fail on non-seekable input stream
5404         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5405         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5406         since fflush is allowed to fail in that case.
5407
5408 2011-04-30  Bruno Haible  <bruno@clisp.org>
5409
5410         dup3: cleanup
5411         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5412
5413 2011-04-30  Bruno Haible  <bruno@clisp.org>
5414
5415         netdb: Make it work in C++ mode.
5416         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5417         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5418         module.
5419         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5420         gl_MODULE_INDICATOR_FOR_TESTS.
5421         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5422         * modules/netdb-c++-tests: New file.
5423         * tests/test-netdb-c++.cc: New file.
5424
5425 2011-04-30  Bruno Haible  <bruno@clisp.org>
5426
5427         New modules 'vfscanf', 'vscanf'.
5428         * modules/vfscanf: New file.
5429         * modules/vscanf: New file.
5430         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5431         here.
5432         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5433         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5434
5435 2011-04-30  Bruno Haible  <bruno@clisp.org>
5436
5437         passfd: Add comments.
5438         * lib/passfd.c: Add comments about platforms.
5439
5440 2011-04-30  Bruno Haible  <bruno@clisp.org>
5441
5442         sys_uio: Make <sys/uio.h> self-contained.
5443         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5444         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5445
5446 2011-04-30  Bruno Haible  <bruno@clisp.org>
5447
5448         sys_socket: Ensure 'struct iovec' definition.
5449         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5450         <sys/socket.h>.
5451         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5452
5453 2011-04-30  Bruno Haible  <bruno@clisp.org>
5454
5455         sys_uio: Protect definition of 'struct iovec'.
5456         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
5457         it as a C struct.
5458
5459 2011-04-30  Bruno Haible  <bruno@clisp.org>
5460
5461         manywarnings: fix indentation
5462         * m4/manywarnings.m4: Indent by 2 spaces consistently.
5463
5464 2011-04-30  Pádraig Brady <P@draigBrady.com>
5465
5466         manywarnings: add -Wno-missing-field-initializers if needed.
5467         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
5468         option if it's needed to allow initialization with { 0, }
5469
5470 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5471
5472         announce-gen: cosmetic improvement
5473         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5474
5475 2011-04-29  Jim Meyering  <meyering@redhat.com>
5476
5477         vc-list-files: indent with spaces, not TABs
5478         * build-aux/vc-list-files: Convert leading TABs to spaces,
5479         to match the style of most other files in gnulib.
5480
5481         announce-gen: indent with spaces, not TABs
5482         * build-aux/announce-gen: Convert all TABs to spaces, to match
5483         the style of most other files in gnulib.
5484
5485 2011-04-29  Eric Blake  <eblake@redhat.com>
5486
5487         quotearg: avoid uninitialized variable use
5488         * lib/quotearg.c (quoting_options_from_style): Initialize
5489         remaining fields, and ensure that custom styles are only used via
5490         quoting_options rather than quoting_style.
5491
5492 2011-04-29  Jim Meyering  <meyering@redhat.com>
5493
5494         maint.mk: remove unused VC-tag variable
5495         * top/maint.mk (VC-tag): Remove unused variable.
5496
5497 2011-04-29  Bruno Haible  <bruno@clisp.org>
5498
5499         netdb: fix gai_strerror replacements
5500         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5501         * modules/netdb: Substitute it.
5502
5503 2011-04-29  Jim Meyering  <meyering@redhat.com>
5504
5505         test-getcwd.c: avoid new set-but-not-used warning
5506         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5507         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5508         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5509         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5510
5511         test-hash.c: avoid a new shadowing warning
5512         * tests/test-hash.c (main): Don't shadow "dup".
5513
5514 2011-04-28  Eric Blake  <eblake@redhat.com>
5515
5516         getaddrinfo: fix gai_strerror signature
5517         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5518         and work around mingw with UNICODE defined.
5519         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5520         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5521         * modules/netdb (Makefile.am): Substitute it.
5522         * lib/netdb.in.h (gai_strerror): Declare replacement.
5523         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5524         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5525         the fix.
5526
5527         getsockopt: avoid compiler warning
5528         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5529         Reported by Matthias Bolte.
5530
5531         tests: drop unused link dependency
5532         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5533         * modules/dirent-safer-tests (Makefile.am): Likewise.
5534         * modules/fdopendir-tests (Makefile.am): Likewise.
5535         * modules/mkfifoat-tests (Makefile.am): Likewise.
5536         * modules/openat-safer-tests (Makefile.am): Likewise.
5537         * modules/openat-tests (Makefile.am): Likewise.
5538         * modules/readlinkat-tests (Makefile.am): Likewise.
5539         * modules/symlinkat-tests (Makefile.am): Likewise.
5540         * modules/linkat-tests (Makefile.am): Likewise.
5541         (Depends-on): Switch to filenamecat-lgpl.
5542         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
5543         LIBINTL.
5544         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
5545         * tests/test-linkat.c (main): Don't require xalloc.
5546
5547         hash, mgetgroups: drop xalloc dependency
5548         * lib/hash.c (includes): Adjust includes.
5549         * lib/mgetgroups.c (includes): Likewise.
5550         (xgetgroups): Move...
5551         * lib/xgetgroups.c: ...to new file.
5552         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
5553         * modules/xgetgroups: New file, split from...
5554         * modules/mgetgroups: ...here.
5555         (Depends-on): Add xalloc-oversized.
5556         * modules/hash (Depends-on): Likewise.
5557         * modules/hash-tests (Depends-on): Drop xalloc.
5558         (test_hash_LDADD): Drop unused library.
5559         * tests/test-hash.c (main): Break xalloc dependency.
5560         (includes): Drop unused include.
5561
5562         xalloc-oversized: new module
5563         * modules/xalloc-oversized: New module.
5564         * modules/xalloc (Depends-on): Add it.
5565         * lib/xalloc.h (xalloc_oversized): Move...
5566         * lib/xalloc-oversized.h: ...into new file.
5567
5568         utimecmp: drop dependency on xmalloc
5569         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
5570         due to memory pressure.
5571         * modules/utimecmp (Depends-on): Drop xalloc.
5572
5573 2011-04-27  Eric Blake  <eblake@redhat.com>
5574
5575         getcwd: fix mingw bugs
5576         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
5577         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
5578         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
5579
5580 2011-04-27  Bruno Haible  <bruno@clisp.org>
5581
5582         mkstemps: Ensure declaration on MacOS X 10.5.
5583         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
5584         * doc/glibc-functions/mkstemps.texi: Document header file problem on
5585         MacOS X.
5586
5587 2011-04-27  Bruno Haible  <bruno@clisp.org>
5588
5589         mkstemp: More documentation.
5590         * doc/posix-functions/mkstemp.texi: Document header file problem on
5591         MacOS X.
5592
5593 2011-04-27  Bruno Haible  <bruno@clisp.org>
5594
5595         mkstemp: Tweak configure message when cross-compiling.
5596         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
5597         result as a guess.
5598
5599 2011-04-27  Bruno Haible  <bruno@clisp.org>
5600
5601         clean-temp: Clarify what it does.
5602         * lib/clean-temp.h: Add more comments.
5603         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
5604         module.
5605         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
5606         * doc/glibc-functions/mkstemps.texi: Likewise.
5607         * doc/glibc-functions/mkostemps.texi: Likewise.
5608
5609 2011-04-27  Eric Blake  <eblake@redhat.com>
5610
5611         fchdir: avoid extra chdir and fix test
5612         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
5613         getcwd-lgpl.
5614         * lib/fchdir.c (get_name): Any absolute name will do; it does not
5615         have to be canonical.
5616         (canonicalize_file_name): Drop unused macro.
5617         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
5618
5619         filenamecat-lgpl: fix licence
5620         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
5621         when it was first created.
5622
5623         linkat, renameat: add missing dependency
5624         * modules/linkat (Depends-on): Require getcwd-lgpl.
5625         * modules/renameat (Depends-on): Likewise.
5626
5627         tests: reduce dependencies
5628         * tests/test-linkat.c (main): Use lighter-weight getcwd.
5629         * tests/test-renameat.c (main): Likewise.
5630         * modules/linkat-tests (Depends-on): Relax dependency.
5631         * modules/renameat-tests (Depends-on): Likewise.
5632         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
5633         dependency explicit.
5634
5635         save-cwd: reduce default dependency
5636         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
5637         * lib/save-cwd.c: Update comments.
5638         * NEWS: Document the semantic change.
5639
5640         getcwd: enhance tests
5641         * tests/test-getcwd-lgpl.c: New file, taken from...
5642         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
5643         repeat long path stress tests from m4 probe.
5644         * modules/getcwd-lgpl-tests: New module.
5645         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
5646         * m4/getcwd-abort-bug.m4: Update comment.
5647         * m4/getcwd-path-max.m4: Likewise.
5648
5649         getcwd-lgpl: new module
5650         * modules/getcwd-lgpl: New module.
5651         * lib/getcwd-lgpl.c: New file.
5652         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5653         * MODULES.html.sh (lacking POSIX:2008): Likewise.
5654         * modules/getcwd (configure.ac): Set C witness.
5655         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
5656
5657         getcwd: tweak comments
5658         * m4/getcwd-abort-bug.m4: Fix comments.
5659         * m4/getcwd-path-max.m4: Likewise.
5660         * m4/getcwd.m4: Likewise.
5661
5662 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5663         and Eric Blake  <eblake@redhat.com>
5664
5665         mkstemp: replace if system version uses wrong permissions
5666         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
5667         read/write mode bits set in file created by mkstemp.
5668         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
5669
5670 2011-04-27  Eric Blake  <eblake@redhat.com>
5671
5672         passfd: avoid compiler warning
5673         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
5674         Reported by Laine Stump.
5675
5676 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
5677
5678         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
5679         required by the NetBSD (and perhaps other 4.4BSD derived) join.
5680
5681 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5682         and Eric Blake  <eblake@redhat.com>
5683
5684         mkstemp: mention clean-temp module
5685         * lib/mkstemp.c: Add comment.
5686         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
5687
5688 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5689
5690         inttypes: also provide default values for 32-bit tests
5691         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
5692         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
5693
5694 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5695
5696         strtoumax: remove dependency on strtoimax
5697         This is like the strtoull change of yesterday.
5698         * modules/strtoumax (Files): Add lib/strtoimax.c.
5699         (Depends-on): Remove strtoimax and add verify.
5700
5701         inttypes-incomplete: new module
5702         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
5703         all but the PRI* and SCN* parts of gl_INTTYPES_H.
5704         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
5705         of gl_INTTYPES_H.
5706         (gl_INTTYPES_H): Rewrite in terms of these new macros.
5707         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
5708         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
5709         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
5710         * modules/strtoumax, modules/xstrtol (Depends-on):
5711         Depend on inttypes-incomplete, not inttypes.
5712         * modules/inttypes-incomplete: New module, containing the contents
5713         of the old modules/inttypes module, except that the Files: section
5714         omits m4/inttypes-pri.m4, and the configure.ac section invokes
5715         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
5716         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
5717         (Depends-on): Depend only on inttypes-incomplete.
5718         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
5719
5720         inttypes: omit now-redundant strtoimax and strtoumax work
5721         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
5722         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
5723
5724         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
5725         This supports apps that need pointers to strtoimax and strtoumax,
5726         and ports to HP-UX 11.00 64.bit, which has macros that expand to
5727         nonexistent functions.  See
5728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
5729         et seq.
5730         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
5731         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
5732         a macro.
5733         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5734
5735 2011-04-25  Simon Josefsson  <simon@josefsson.org>
5736
5737         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
5738
5739 2011-04-25  Bruno Haible  <bruno@clisp.org>
5740
5741         strtol, strtoul: Mark modules as obsolete.
5742         * modules/strtol (Status, Notice): New sections.
5743         * modules/strtoul (Status, Notice): New sections.
5744
5745 2011-04-25  Bruno Haible  <bruno@clisp.org>
5746
5747         strtod: Remove check for strtod, unless supporting old platforms.
5748         * modules/strtod-obsolete: New file.
5749         * m4/strtod-obsolete.m4: New file.
5750         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
5751         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
5752         * modules/strtod (Depends-on): Add strtod-obsolete.
5753         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
5754
5755 2011-04-25  Bruno Haible  <bruno@clisp.org>
5756
5757         strcase: Make module obsolete.
5758         * modules/strcase (Status, Notice): New sections.
5759
5760 2011-04-25  Bruno Haible  <bruno@clisp.org>
5761
5762         dup2: Remove check for dup2, unless supporting old obsolete platforms.
5763         * modules/dup2-obsolete: New file.
5764         * m4/dup2-obsolete.m4: New file.
5765         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
5766         gl_FUNC_DUP2_OBSOLETE is not also defined.
5767         * modules/dup2 (Depends-on): Add dup2-obsolete.
5768         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
5769
5770 2011-04-25  Bruno Haible  <bruno@clisp.org>
5771
5772         strnlen: Avoid memchr related link error on old obsolete platforms.
5773         * modules/memchr-obsolete: New file.
5774         * m4/memchr-obsolete.m4: New file.
5775         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
5776         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
5777         * modules/memchr (Depends-on): Add memchr-obsolete.
5778         * modules/strnlen (Depends-on): Likewise.
5779         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
5780
5781 2011-04-25  Jim Meyering  <meyering@redhat.com>
5782
5783         maint.mk: makefile_at_at_check extend and clean up
5784         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
5785         in addition to */Makefile.am.
5786         Exempt legitimate uses of @VAR@ notation, e.g.,
5787         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
5788         Remove obsolete coreutils-specific comment.
5789         Prompted by discussion here:
5790         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
5791
5792 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5793
5794         strtoul: remove dependency on strtol
5795         This is so that 'configure' need not check for strtol merely because
5796         the application needs strtoul.
5797         * modules/strtoul (Files): Add lib/strtol.c.
5798         (Depends-on): Remove strtol.
5799
5800         strtoull: remove dependency on strtoul
5801         This is like the strtoll change.
5802         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
5803         (Depends-on): Remove strtoul.
5804
5805         strtoll: remove dependency on strtol
5806         This is so that 'configure' need not check for strtol merely because
5807         the application needs strtoll.
5808         * modules/strtoll (Files): Add lib/strtol.c.
5809         (Depends-on): Remove strtol.
5810
5811 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5812
5813         inttypes: Move some configure check to module 'imaxdiv'.
5814         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
5815         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
5816         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
5817
5818 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5819
5820         inttypes: Move some configure check to module 'imaxabs'.
5821         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
5822         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
5823         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
5824
5825 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5826
5827         inttypes: Remove configure tests that are not needed since 2009-12-31.
5828         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
5829         gl_cv_header_working_inttypes_h.
5830
5831 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5832
5833         * modules/strnlen (Depends-on): Remove memchr.
5834         The strnlen implementation doesn't need the memchr module's fixes; see
5835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
5836
5837         strtol: remove dependency on wchar
5838         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
5839         * modules/strtol (Depends-on): Remove wchar.
5840
5841 2011-04-21  Eric Blake  <eblake@redhat.com>
5842
5843         passfd: fix test regression on Linux
5844         * modules/passfd-tests (configure.ac): Correct socketpair check.
5845
5846         passfd: speed up configure and drop unused code
5847         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
5848         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
5849         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
5850         Instead of probing at configure for unix_scm_rights_bsd44_way,
5851         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
5852         check to a struct member probe.
5853         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
5854         (sendfd, recvfd): Update preprocessor checks.
5855         * modules/passfd (Files): Reflect rename, and drop unused file.
5856         (Depends-on): Drop unused dependency.
5857
5858         passfd: allow compilation on mingw
5859         * modules/sys_socket (Depends-on): Add sys_uio.
5860         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
5861         iovec and a minimal struct msghdr.
5862         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
5863         * tests/test-sys_socket.c (main): Enhance test.
5864         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
5865         guaranteed to provide what we need.
5866         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
5867         * modules/passfd-tests (Depends-on): Add sys_wait.
5868         * tests/test-passfd.c (main): Skip test on mingw, for now.
5869         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
5870         partial 'struct msghdr' implementation.
5871
5872         sys_uio: new module
5873         * modules/sys_uio: New module.
5874         * modules/sys_uio-tests: Likewise.
5875         * lib/sys_uio.in.h: New file.
5876         * m4/sys_uio_h.m4: Likewise.
5877         * tests/test-sys_uio.c: Likewise.
5878         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
5879         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
5880
5881 2011-04-20  Jim Meyering  <meyering@redhat.com>
5882
5883         useless-if-before-free: avoid false-positive
5884         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
5885         disjunct so that it too requires a terminating ";".  Without that,
5886         this script would identify as useless one statement from gcc that
5887         was not:
5888           if (aligned_ptr)
5889             free (((void **) aligned_ptr) [-1]);
5890
5891 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
5892
5893         doc: update users.txt.
5894         * users.txt: Add barcode.
5895
5896 2011-04-19  Bruno Haible  <bruno@clisp.org>
5897
5898         ioctl: Remove link dependency on native Windows.
5899         * lib/fd-hook.h: Renamed from lib/close-hook.h.
5900         (gl_close_fn, gl_ioctl_fn): New types.
5901         (struct fd_hook): Renamed from struct close_hook. Change type of
5902         private_close_fn field. Add private_ioctl_fn field.
5903         (close_hook_fn): Add parameter for primary close method.
5904         (execute_close_hooks, execute_all_close_hooks): Likewise.
5905         (ioctl_hook_fn): New type.
5906         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
5907         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5908         argument.
5909         (unregister_fd_hook): Renamed from unregister_close_hook.
5910         * lib/fd-hook.c: Renamed from lib/close-hook.c.
5911         Don't include <unistd.h>.
5912         (close): Remove undef.
5913         (anchor): Update.
5914         (execute_close_hooks): Add argument for primary close method.
5915         (execute_all_close_hooks): Likewise.
5916         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
5917         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5918         argument. Allow each argument to be NULL.
5919         (unregister_fd_hook): Renamed from unregister_close_hook.
5920         * lib/close.c (rpl_close): Pass 'close' function pointer to
5921         execute_all_close_hooks.
5922         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
5923         (primary_ioctl): New function.
5924         (ioctl): Don't call ioctlsocket here. Instead, call
5925         execute_all_ioctl_hooks.
5926         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
5927         close method.
5928         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
5929         (fd_sockets_hook): Renamed from close_sockets_hook.
5930         (gl_sockets_startup, gl_sockets_cleanup): Update.
5931         * modules/fd-hook: Renamed from modules/close-hook. Update.
5932         * modules/close (Depends-on): Add fd-hook, remove close-hook.
5933         * modules/sockets (Depends-on): Likewise.
5934         * modules/ioctl (Depends-on): Add fd-hook.
5935         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
5936         GNULIB_SOCKET.
5937
5938 2011-04-19  Bruno Haible  <bruno@clisp.org>
5939
5940         Move the support of O_NONBLOCK in open() to the 'open' module.
5941         * modules/nonblocking (Depends-on): Remove 'open'.
5942         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
5943         gl_cv_have_open_O_NONBLOCK.
5944         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
5945         O_NONBLOCK support.
5946         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
5947
5948 2011-04-17  Bruno Haible  <bruno@clisp.org>
5949
5950         pipe2: Simplify code.
5951         * lib/pipe2.c (pipe2): Reduce code duplication.
5952
5953 2011-04-17  Bruno Haible  <bruno@clisp.org>
5954
5955         nonblocking: Add comment.
5956         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
5957
5958 2011-04-17  Bruno Haible  <bruno@clisp.org>
5959
5960         nonblocking: Add tests for sockets.
5961         * tests/test-nonblocking-socket.sh: New file.
5962         * tests/test-nonblocking-socket-main.c: New file.
5963         * tests/test-nonblocking-socket-child.c: New file.
5964         * tests/test-nonblocking-socket.h: New file.
5965         * tests/socket-server.h: New file.
5966         * tests/socket-client.h: New file.
5967         * modules/nonblocking-socket-tests: New file.
5968         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
5969
5970 2011-04-17  Bruno Haible  <bruno@clisp.org>
5971
5972         nonblocking: Add tests for pipes.
5973         * tests/test-nonblocking-pipe.sh: New file.
5974         * tests/test-nonblocking-pipe-main.c: New file.
5975         * tests/test-nonblocking-pipe-child.c: New file.
5976         * tests/test-nonblocking-pipe.h: New file.
5977         * tests/test-nonblocking-writer.h: New file.
5978         * tests/test-nonblocking-reader.h: New file.
5979         * tests/test-nonblocking-misc.h: New file.
5980         * modules/nonblocking-pipe-tests: New file.
5981         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
5982
5983 2011-04-16  Bruno Haible  <bruno@clisp.org>
5984
5985         gettext: Clarify the needed programmer actions.
5986         * modules/gettext (Notice): New field.
5987         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5988
5989 2011-04-16  Bruno Haible  <bruno@clisp.org>
5990
5991         strchrnul: Tweak last commit.
5992         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
5993         bug.
5994         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
5995         as in _GL_FUNCDECL_SYS.
5996         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
5997         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
5998
5999 2011-04-15  Eric Blake  <eblake@redhat.com>
6000
6001         strchrnul: work around cygwin bug
6002         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6003         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6005         * modules/string (Makefile.am): Substitute it.
6006         * lib/string.in.h (strchrnul): Use it.
6007
6008 2011-04-15  Bruno Haible  <bruno@clisp.org>
6009
6010         Don't require lib/stdio-write.c when only module 'stdio' is used.
6011         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6012         invocation.
6013         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6014
6015 2011-04-14  Bruno Haible  <bruno@clisp.org>
6016
6017         Support non-blocking pipe I/O in read() on native Windows.
6018         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6019         (read): New declaration.
6020         * lib/read.c: New file.
6021         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6022         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6023         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6024         vscanf): New declarations.
6025         * lib/stdio-read.c: New file.
6026         * m4/read.m4: New file.
6027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6028         REPLACE_READ.
6029         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6030         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6031         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6032         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6033         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6034         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6035         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6036         * modules/read: New file.
6037         * modules/nonblocking (Files): Add lib/stdio-read.c.
6038         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6039         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6040         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6041         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6042         * modules/pread (Depends-on): Add read.
6043         * modules/safe-read (Depends-on): Likewise.
6044         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6045         gets, scanf, vfscanf, vscanf): Verify signatures.
6046         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6047         problem with non-blocking pipes.
6048         * doc/posix-functions/fgetc.texi: Likewise.
6049         * doc/posix-functions/fgets.texi: Likewise.
6050         * doc/posix-functions/fread.texi: Likewise.
6051         * doc/posix-functions/fscanf.texi: Likewise.
6052         * doc/posix-functions/getc.texi: Likewise.
6053         * doc/posix-functions/getchar.texi: Likewise.
6054         * doc/posix-functions/gets.texi: Likewise.
6055         * doc/posix-functions/scanf.texi: Likewise.
6056         * doc/posix-functions/vfscanf.texi: Likewise.
6057         * doc/posix-functions/vscanf.texi: Likewise.
6058
6059 2011-04-14  Bruno Haible  <bruno@clisp.org>
6060
6061         Support non-blocking pipe I/O in write() on native Windows.
6062         * lib/write.c (rpl_write): Split a write request that failed merely
6063         because the byte count was larger than the pipe buffer's size.
6064         * doc/posix-functions/write.texi: Mention the problem with large byte
6065         counts.
6066
6067 2011-04-14  Bruno Haible  <bruno@clisp.org>
6068
6069         wchar: Ensure that wchar_t gets defined on uClibc.
6070         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6071         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6072
6073 2011-04-13  Bruno Haible  <bruno@clisp.org>
6074
6075         safe-write, full-read: Avoid unnecessary compilation units.
6076         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6077         (Depends-on): Remove safe-read. Add ssize_t.
6078         * modules/full-read (Files): Add lib/full-write.c.
6079         (Depends-on): Add full-write.
6080
6081 2011-04-13  Bruno Haible  <bruno@clisp.org>
6082
6083         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6084         * modules/pwrite (Depends-on): Add 'write'.
6085
6086 2011-04-13  Bruno Haible  <bruno@clisp.org>
6087
6088         Support non-blocking pipe I/O in write() on native Windows.
6089         * lib/unistd.in.h (write): Enable replacement also if
6090         GNULIB_UNISTD_H_NONBLOCKING is 1.
6091         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6092         (rpl_write): When failing to write on a non-blocking pipe, change
6093         errno from ENOSPC to EAGAIN.
6094         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6095         putchar, puts, vfprintf, vprintf): Enable replacement also if
6096         GNULIB_STDIO_H_NONBLOCKING is 1.
6097         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6098         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6099         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6100         CALL_WITH_SIGPIPE_EMULATION.
6101         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6102         * m4/nonblocking.m4: New file.
6103         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6104         for non-blocking I/O support.
6105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6106         GNULIB_UNISTD_H_NONBLOCKING.
6107         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6108         required for non-blocking I/O support.
6109         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6110         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6111         lib/stdio-write.c, m4/asm-underscore.m4.
6112         (Depends-on): Add stdio, unistd.
6113         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6114         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6115         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6116         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6117         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6118         problem with non-blocking pipes.
6119         * doc/posix-functions/fputc.texi: Likewise.
6120         * doc/posix-functions/fputs.texi: Likewise.
6121         * doc/posix-functions/fwrite.texi: Likewise.
6122         * doc/posix-functions/printf.texi: Likewise.
6123         * doc/posix-functions/putc.texi: Likewise.
6124         * doc/posix-functions/putchar.texi: Likewise.
6125         * doc/posix-functions/puts.texi: Likewise.
6126         * doc/posix-functions/vfprintf.texi: Likewise.
6127         * doc/posix-functions/vprintf.texi: Likewise.
6128         * doc/posix-functions/write.texi: Likewise.
6129
6130 2011-04-10  Jim Meyering  <meyering@redhat.com>
6131
6132         maint.mk: prohibit doubled words
6133         Detect them also when they're separated by a newline.
6134         There are 3 ways to customize it:
6135           - disable the test on a per file basis, as usual with rules using
6136             $(VC_LIST_EXCEPT)
6137           - replace the default doubled-word-selecting regexp (affects all files)
6138           - ignore a particular file-vs-doubled-word match
6139         I nearly used that last one to ignore the "is is" match in
6140         coreutils' NEWS file, since the text was "ls -is is ..."
6141         To do that, I would have added this line to cfg.mk:
6142           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6143         but it would have ignored any "is is" match in NEWS.
6144         Low probability, but still...
6145         Instead, I changed the text, slightly:
6146           -  ls -is is now consistent with ls -lis in ignoring values returned
6147           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6148         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6149         (prohibit_doubled_word_): Define.
6150         (sc_prohibit_doubled_word): New rule.
6151         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6152
6153 2011-04-10  Jim Meyering  <meyering@redhat.com>
6154
6155         maint: fix doubled-word typo in comment
6156         * m4/gethostname.m4: s/is is/it is/
6157         * m4/getdomainname.m4: Likewise.
6158
6159 2011-04-10  Jim Meyering  <meyering@redhat.com>
6160
6161         maint: remove doubled word: s/it it/it/
6162         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6163
6164 2011-04-10  Jim Meyering  <meyering@redhat.com>
6165
6166         maint.mk: remove useless semicolon and backslash
6167         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6168         semicolon and backslash.
6169
6170 2011-04-10  Bruno Haible  <bruno@clisp.org>
6171
6172         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6173         * modules/stdint-tests (Depends-on): Add wchar.
6174
6175 2011-04-10  Jim Meyering  <meyering@redhat.com>
6176
6177         maint: remove doubled words in comments, e.g., s/a a/a/
6178         * lib/strptime.c (day_of_the_week): s/the the/the/
6179         * tests/test-chown.h (test_chown): s/a a/a/
6180
6181         test-chown.h: correct a cast
6182         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6183         when the destination is a stat.st_gid.
6184
6185 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6186
6187         getaddrinfo: Fix test for sa_len member.
6188         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6189         include <sys/types.h> before <sys/socket.h>.
6190
6191 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6192
6193         maint: change "can not" to "cannot"
6194         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6195         boundaries.
6196
6197 2011-04-09  Jim Meyering  <meyering@redhat.com>
6198
6199         maint: change "a a" to "a"
6200         * tests/test-lchown.h (test_lchown): s/a a/a/
6201
6202         maint.mk: prohibit \<the the\>
6203         * top/maint.mk (sc_prohibit_the_the): New rule.
6204
6205         maint: fix "the the" in comment
6206         * lib/count-one-bits.h: s/the the/the/
6207
6208         maint: change "can not" to "cannot"
6209         But do not change the occurrences in maintain.texi or in
6210         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6211         * doc/gnulib-tool.texi: s/can not/cannot/
6212         * doc/posix-functions/accept.texi (accept): Likewise.
6213         * doc/posix-functions/socket.texi (socket): Likewise.
6214         * lib/mbrtowc.c: Likewise.
6215
6216         maint.mk: prohibit use of "can not"
6217         * top/maint.mk (sc_prohibit_can_not): New rule.
6218         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6219
6220 2011-04-09  Bruno Haible  <bruno@clisp.org>
6221
6222         careadlinkat: Guard against misuse of careadlinkatcwd.
6223         * lib/careadlinkat.c: Include <stdlib.h>.
6224         (careadlinkatcwd): Check that the fd argument is as expected.
6225
6226 2011-04-09  Bruno Haible  <bruno@clisp.org>
6227
6228         careadlinkat: Use common coding style.
6229         * lib/careadlinkat.c: Move gnulib includes after system includes.
6230
6231 2011-04-09  Bruno Haible  <bruno@clisp.org>
6232
6233         careadlinkat: Clarify specification.
6234         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6235         (careadlinkatcwd): Add comment.
6236         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6237
6238 2011-04-09  Bruno Haible  <bruno@clisp.org>
6239
6240         areadlinkat: Avoid link error on many platforms.
6241         * modules/areadlinkat (Depends-on): Add areadlink.
6242
6243 2011-04-09  Bruno Haible  <bruno@clisp.org>
6244
6245         allocator, careadlinkat: Fix double-inclusion guard.
6246         * lib/allocator.h: Fix double-inclusion guard.
6247         * lib/careadlinkat.h: Likewise.
6248
6249 2011-04-09  Bruno Haible  <bruno@clisp.org>
6250
6251         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6252         * lib/relocwrapper.c: Update dependencies hierarchy.
6253         * build-aux/install-reloc: Update list of files to be compiled.
6254         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6255         lib/allocator.[hc].
6256
6257 2011-04-08  Eric Blake  <eblake@redhat.com>
6258
6259         strftime: silence gnulib-tool warning
6260         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6261
6262 2011-04-08  Bruno Haible  <bruno@clisp.org>
6263
6264         verify: Fix syntax error with GCC 4.6 in C++ mode.
6265         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6266         (HAVE_STATIC_ASSERT): New macro.
6267         (verify_true, verify): Use 'static_assert' if it is supported and
6268         '_Static_assert' is not supported.
6269
6270 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6271
6272         allocator: New module.
6273         * modules/allocator, lib/allocator.c: New files.
6274         * lib/allocator.h (stdlib_allocator): New decl.
6275         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6276         Remove.  Do not include <stdlib.h>.
6277         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6278         * modules/careadlinkat (Files): Remove lib/allocator.h.
6279         (Depends-on): Add allocator.
6280
6281         stdlib: let modules use system malloc, realloc
6282         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6283         if !_GL_USE_STDLIB_ALLOC.
6284         (malloc, realloc): Limit this change to a smaller scope.
6285
6286         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6287         (malloc, realloc): Don't #undef; no longer needed.
6288         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6289         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6290         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6291         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6292         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6293         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6294         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6295         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6296
6297         careadlinkat: rename members to avoid problem
6298         * lib/allocator.h (struct allocator): Rename members from
6299         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6300         and realloc are #define'd.  Reported by Eric Blake in
6301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6302         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6303
6304 2011-04-08  Eric Blake  <eblake@redhat.com>
6305
6306         nonblocking: reduce dependency
6307         * tests/test-nonblocking.c: Only test sockets when in use.
6308         * modules/nonblocking-tests (Depends-on): Drop socket.
6309         (Makefile.am): Link even if sockets are not present.
6310         * modules/pipe2-tests (Makefile.am): Likewise.
6311         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6312
6313         pipe2: fix O_NONBLOCK support on mingw
6314         * modules/pipe2 (Depends-on): Add nonblocking.
6315         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6316         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6317         * tests/test-nonblocking.c (main): Likewise.
6318         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6319
6320         fcntl-h: fix O_ACCMODE on cygwin
6321         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6322         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6323
6324         pipe-filter: drop O_NONBLOCK workarounds
6325         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6326         * modules/pipe-filter-ii (Depends-on): Likewise.
6327         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6328
6329         nonblocking: provide O_NONBLOCK for mingw
6330         * modules/nonblocking (Depends-on): Add open.
6331         (configure.ac): Set new witness macro.
6332         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6333         * modules/fcntl-h (Makefile.am): Substitute it.
6334         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6335         nonblocking module is in use.
6336         * lib/nonblocking.c: Adjust portability test.
6337         * lib/open.c (open): Don't let native open see gnulib flag.
6338         * tests/test-fcntl-h.c (main): Enhance test.
6339         * tests/test-open.h (test_open): Likewise.
6340         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6341
6342         careadlinkat: fix compilation error on mingw
6343         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6344         within struct allocator.
6345
6346 2011-04-06  Eric Blake  <eblake@redhat.com>
6347
6348         binary-io: relicense under LGPLv2+
6349         * modules/binary-io (License): Relax to LGPLv2+.
6350         Requested for libvirt, and required by pipe2.
6351
6352 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6353
6354         verify: use _Static_assert if available
6355         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6356         (verify_true, verify): Use it if available.  This generates better
6357         diagnostics with GCC 4.6.0 and later.
6358
6359 2011-04-05  Bruno Haible  <bruno@clisp.org>
6360
6361         Remove leftover generated .h files after config.status changed.
6362
6363         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6364         GL_GENERATE_ALLOCA_H.
6365         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6366         GL_GENERATE_ALLOCA_H evaluates to false.
6367
6368         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6369         GL_GENERATE_ARGZ_H.
6370         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6371         evaluates to false.
6372
6373         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6374         GL_GENERATE_BYTESWAP_H.
6375         * modules/byteswap (Makefile.am): Remove byteswap.h if
6376         GL_GENERATE_BYTESWAP_H evaluates to false.
6377
6378         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6379         GL_GENERATE_ERRNO_H.
6380         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6381         evaluates to false.
6382
6383         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6384         GL_GENERATE_FLOAT_H.
6385         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6386         evaluates to false.
6387
6388         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6389         GL_GENERATE_FNMATCH_H.
6390         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6391         GL_GENERATE_FNMATCH_H evaluates to false.
6392
6393         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6394         GL_GENERATE_GLOB_H.
6395         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6396         evaluates to false.
6397
6398         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6399         automake conditional GL_GENERATE_ICONV_H.
6400         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6401         evaluates to false.
6402
6403         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6404         GL_GENERATE_NETINET_IN_H.
6405         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6406         GL_GENERATE_NETINET_IN_H evaluates to false.
6407
6408         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6409         conditional GL_GENERATE_PTHREAD_H.
6410         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6411         * modules/pthread (Makefile.am): Remove pthread.h if
6412         GL_GENERATE_PTHREAD_H evaluates to false.
6413
6414         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6415         GL_GENERATE_SCHED_H.
6416         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6417         evaluates to false.
6418
6419         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6420         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6421         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6422         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6423
6424         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6425         GL_GENERATE_STDARG_H.
6426         * modules/stdarg (Makefile.am): Remove stdarg.h if
6427         GL_GENERATE_STDARG_H evaluates to false.
6428
6429         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6430         GL_GENERATE_STDBOOL_H.
6431         * modules/stdbool (Makefile.am): Remove stdbool.h if
6432         GL_GENERATE_STDBOOL_H evaluates to false.
6433
6434         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6435         conditional GL_GENERATE_STDDEF_H.
6436         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6437         * modules/stddef (Makefile.am): Remove stddef.h if
6438         GL_GENERATE_STDDEF_H evaluates to false.
6439
6440         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6441         GL_GENERATE_STDINT_H.
6442         * modules/stdint (Makefile.am): Remove stdint.h if
6443         GL_GENERATE_STDINT_H evaluates to false.
6444
6445         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6446         GL_GENERATE_SYSEXITS_H.
6447         * modules/sysexits (Makefile.am): Remove sysexits.h if
6448         GL_GENERATE_SYSEXITS_H evaluates to false.
6449
6450         Reported by Karl Berry and Ralf Wildenhues.
6451
6452 2011-04-05  Bruno Haible  <bruno@clisp.org>
6453
6454         Ensure to rebuild generated .h files when config.status has changed.
6455         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
6456         config.status.
6457         * modules/ctype (Makefile.am): Likewise.
6458         * modules/dirent (Makefile.am): Likewise.
6459         * modules/errno (Makefile.am): Likewise.
6460         * modules/fcntl-h (Makefile.am): Likewise.
6461         * modules/float (Makefile.am): Likewise.
6462         * modules/getopt-posix (Makefile.am): Likewise.
6463         * modules/glob (Makefile.am): Likewise.
6464         * modules/iconv-h (Makefile.am): Likewise.
6465         * modules/inttypes (Makefile.am): Likewise.
6466         * modules/langinfo (Makefile.am): Likewise.
6467         * modules/locale (Makefile.am): Likewise.
6468         * modules/math (Makefile.am): Likewise.
6469         * modules/netdb (Makefile.am): Likewise.
6470         * modules/netinet_in (Makefile.am): Likewise.
6471         * modules/poll-h (Makefile.am): Likewise.
6472         * modules/pthread (Makefile.am): Likewise.
6473         * modules/pty (Makefile.am): Likewise.
6474         * modules/sched (Makefile.am): Likewise.
6475         * modules/search (Makefile.am): Likewise.
6476         * modules/selinux-h (Makefile.am): Likewise.
6477         * modules/signal (Makefile.am): Likewise.
6478         * modules/spawn (Makefile.am): Likewise.
6479         * modules/stdarg (Makefile.am): Likewise.
6480         * modules/stdbool (Makefile.am): Likewise.
6481         * modules/stddef (Makefile.am): Likewise.
6482         * modules/stdint (Makefile.am): Likewise.
6483         * modules/stdio (Makefile.am): Likewise.
6484         * modules/stdlib (Makefile.am): Likewise.
6485         * modules/string (Makefile.am): Likewise.
6486         * modules/strings (Makefile.am): Likewise.
6487         * modules/sys_file (Makefile.am): Likewise.
6488         * modules/sys_ioctl (Makefile.am): Likewise.
6489         * modules/sys_select (Makefile.am): Likewise.
6490         * modules/sys_socket (Makefile.am): Likewise.
6491         * modules/sys_stat (Makefile.am): Likewise.
6492         * modules/sys_time (Makefile.am): Likewise.
6493         * modules/sys_times (Makefile.am): Likewise.
6494         * modules/sys_utsname (Makefile.am): Likewise.
6495         * modules/sys_wait (Makefile.am): Likewise.
6496         * modules/sysexits (Makefile.am): Likewise.
6497         * modules/termios (Makefile.am): Likewise.
6498         * modules/time (Makefile.am): Likewise.
6499         * modules/unistd (Makefile.am): Likewise.
6500         * modules/wchar (Makefile.am): Likewise.
6501         * modules/wctype-h (Makefile.am): Likewise.
6502         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6503
6504 2011-04-05  Bruno Haible  <bruno@clisp.org>
6505
6506         pipe2: Relicense under LGPLv2+.
6507         * modules/pipe2 (License): Change to LGPLv2+.
6508         Requested by Eric Blake, for libvirt.
6509
6510 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6511
6512         bootstrap: compute gnulib_extra_files after updating build_aux
6513         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6514         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6515
6516 2011-04-05  Eric Blake  <eblake@redhat.com>
6517
6518         bootstrap: preserve git whitelist item sorting
6519         * build-aux/bootstrap (sort_patterns): New function.
6520         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6521
6522 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6523
6524         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6525         sc_space_tab check.
6526
6527 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6528
6529         areadlink, areadlinkat: rewrite in terms of careadlinkat
6530         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6531         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6532         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6533         (malloc, realloc): Remove #undefs.
6534         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6535         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6536         readlink, ssize_t, stdint, unistd.
6537         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
6538         areadlink, stdint.
6539
6540         careadlinkat: new module
6541         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
6542         * modules/careadlinkat: New files, written by me with
6543         a review and feedback from Ben Pfaff in
6544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
6545
6546 2011-04-01  Bruno Haible  <bruno@clisp.org>
6547
6548         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
6549         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
6550         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6551         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
6552         Reported by Bruce Korb <bruce.korb@gmail.com>.
6553
6554 2011-04-01  Bruno Haible  <bruno@clisp.org>
6555
6556         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
6557         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
6558         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
6559         * modules/wcpcpy (Depends-on): Add extensions.
6560         * modules/wcpncpy (Depends-on): Likewise.
6561         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
6562         systems.
6563         * doc/posix-functions/wcpncpy.texi: Likewise.
6564         * doc/posix-functions/wcwidth.texi: Likewise.
6565
6566 2011-03-31  Eric Blake  <eblake@redhat.com>
6567
6568         nonblocking: fix mingw test failures
6569         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
6570         non-blocking flag on regular file.
6571         (get_nonblocking_flag): Set errno on invalid fd.
6572         * tests/test-nonblocking.c (main): Avoid test failure on
6573         directories if fchdir is not active.
6574         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
6575
6576 2011-03-31  Bruno Haible  <bruno@clisp.org>
6577
6578         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
6579         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
6580         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
6581         Reported by Simon Josefsson <simon@josefsson.org>.
6582
6583 2011-03-31  Bruno Haible  <bruno@clisp.org>
6584         and Eric Blake  <eblake@redhat.com>
6585
6586         nonblocking: new module
6587         * modules/nonblocking: New module.
6588         * modules/nonblocking-tests: Likewise.
6589         * lib/nonblocking.h: New file.
6590         * lib/nonblocking.c: Likewise.
6591         * tests/test-nonblocking.c: New test.
6592         * lib/ioctl.c (ioctl) [mingw]: Update comment.
6593
6594 2011-03-30  Bruno Haible  <bruno@clisp.org>
6595
6596         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
6597         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
6598         instead of 'printf' format for GCC >= 4.4.
6599         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
6600         (fprintf, printf, vfprintf, vprintf): Declare with
6601         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
6602         the system's vfprintf() function.
6603         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
6604
6605 2011-03-30  Eric Blake  <eblake@redhat.com>
6606
6607         passfd: fix scoping bug
6608         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
6609         before sendmsg/recvmsg.
6610
6611         passfd: standardize coding conventions
6612         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
6613         can be learned at compile time.
6614         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
6615         ifdefs.
6616         (sendfd, recvfd): Follow gnulib code conventions.
6617
6618         passfd: fix incorrect sendmsg arguments
6619         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
6620         incorrect msg_controllen value.
6621         * modules/passfd-tests (Depends-on): Check for alarm.
6622         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
6623         Reported by Bastien ROUCARIES.
6624
6625 2011-03-30  Bruno Haible  <bruno@clisp.org>
6626
6627         c-strcasestr: Relicense under LGPLv2+.
6628         * modules/c-strcasestr (License): Change to LGPLv2+.
6629         Requested by Eric Blake, for libvirt.
6630
6631 2011-03-30  Simon Josefsson  <simon@josefsson.org>
6632
6633         * users.txt: Add libidn2.  Fix libtasn1 link.
6634
6635 2011-03-30  Jim Meyering  <meyering@redhat.com>
6636
6637         tests: readlink* ("",... fails with EINVAL on newer kernels
6638         readlink and readlinkat have typically failed with ENOENT for
6639         the invalid, empty file name,  "".  However, with the advent
6640         of linux-2.6.39, they fail with EINVAL.
6641         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
6642         when operating on the empty file name.
6643         * tests/test-readlink.h (test_readlink): Likewise.
6644
6645 2011-03-29  Bruno Haible  <bruno@clisp.org>
6646
6647         Relicense some modules under LGPLv2+, for libidn2.
6648         * modules/array-mergesort (License): Change to LGPLv2+.
6649         * modules/c-strcaseeq (License): Likewise.
6650         * modules/striconveh (License): Likewise.
6651         * modules/striconveha (License): Likewise.
6652         * modules/uniconv/base (License): Likewise.
6653         * modules/uniconv/u8-conv-from-enc (License): Likewise.
6654         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
6655         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
6656         * modules/unictype/base (License): Likewise.
6657         * modules/unictype/bidiclass-of (License): Likewise.
6658         * modules/unictype/category-M (License): Likewise.
6659         * modules/unictype/category-none (License): Likewise.
6660         * modules/unictype/category-of (License): Likewise.
6661         * modules/unictype/category-test (License): Likewise.
6662         * modules/unictype/category-test-withtable (License): Likewise.
6663         * modules/unictype/combining-class (License): Likewise.
6664         * modules/unictype/joiningtype-of (License): Likewise.
6665         * modules/unictype/scripts (License): Likewise.
6666         * modules/uninorm/base (License): Likewise.
6667         * modules/uninorm/canonical-decomposition (License): Likewise.
6668         * modules/uninorm/composition (License): Likewise.
6669         * modules/uninorm/decompose-internal (License): Likewise.
6670         * modules/uninorm/decomposition-table (License): Likewise.
6671         * modules/uninorm/nfc (License): Likewise.
6672         * modules/uninorm/nfd (License): Likewise.
6673         * modules/uninorm/u32-normalize (License): Likewise.
6674         * modules/unistr/base (License): Likewise.
6675         * modules/unistr/u32-cpy (License): Likewise.
6676         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
6677         * modules/unistr/u32-to-u8 (License): Likewise.
6678         * modules/unistr/u32-uctomb (License): Likewise.
6679         * modules/unistr/u8-check (License): Likewise.
6680         * modules/unistr/u8-mblen (License): Likewise.
6681         * modules/unistr/u8-mbtouc (License): Likewise.
6682         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
6683         * modules/unistr/u8-mbtoucr (License): Likewise.
6684         * modules/unistr/u8-prev (License): Likewise.
6685         * modules/unistr/u8-strlen (License): Likewise.
6686         * modules/unistr/u8-to-u32 (License): Likewise.
6687         * modules/unistr/u8-uctomb (License): Likewise.
6688         * modules/unitypes (License): Likewise.
6689         Requested by Simon Josefsson.
6690
6691 2011-03-29  Simon Josefsson  <simon@josefsson.org>
6692
6693         lib-symbol-visibility: Add a notice.
6694         * modules/lib-symbol-visibility (Notice): New field.
6695
6696 2011-03-29  Bruno Haible  <bruno@clisp.org>
6697
6698         getaddrinfo: Doc fix.
6699         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
6700         section "fixed in Gnulib".
6701
6702 2011-03-28  Simon Josefsson  <simon@josefsson.org>
6703
6704         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
6705         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
6706
6707 2011-03-26  Bruno Haible  <bruno@clisp.org>
6708
6709         unictype/property-byname: Reduce the number of load-time relocations.
6710         * lib/unictype/pr_byname.c: Include <stdlib.h>.
6711         (UC_PROPERTY_INDEX_*): New enumeration values.
6712         (uc_property_byname): Convert an index from the lookup table to an
6713         uc_property_t.
6714         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
6715         values.
6716
6717 2011-03-26  Bruno Haible  <bruno@clisp.org>
6718
6719         unictype/property-byname: Allow omitted word separators and aliases.
6720         * lib/unictype/pr_byname.gperf: Add property names without word
6721         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
6722         for 'space'.
6723
6724 2011-03-26  Bruno Haible  <bruno@clisp.org>
6725
6726         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
6727         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
6728         also hyphens to space.
6729         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
6730         without spaces.
6731         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
6732
6733 2011-03-26  Bruno Haible  <bruno@clisp.org>
6734
6735         unictype/joiningtype-byname: Recognize long names as well.
6736         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
6737         a long name.
6738         * lib/unictype/joiningtype_byname.c: Include <string.h>,
6739         unictype/joiningtype_byname.h.
6740         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
6741         * lib/unictype/joiningtype_byname.gperf: New file.
6742         * modules/unictype/joiningtype-byname (Files): Add
6743         lib/unictype/joiningtype_byname.gperf.
6744         (Depends-on): Add gperf.
6745         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
6746         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
6747         long names.
6748
6749         Tests for module 'unictype/joiningtype-longname'.
6750         * modules/unictype/joiningtype-longname-tests: New file.
6751         * tests/unictype/test-joiningtype_longname.c: New file.
6752
6753         New module 'unictype/joiningtype-longname'.
6754         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
6755         * lib/unictype/joiningtype_longname.c: New file.
6756         * modules/unictype/joiningtype-longname: New file.
6757         * modules/unictype/joiningtype-all (Depends-on): Add
6758         unictype/joiningtype-longname.
6759
6760 2011-03-26  Bruno Haible  <bruno@clisp.org>
6761
6762         unictype/bidiclass-byname: Recognize long names as well.
6763         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
6764         name.
6765         * lib/unictype/bidi_byname.c: Include <string.h>,
6766         unictype/bidi_byname.h.
6767         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
6768         * lib/unictype/bidi_byname.gperf: New file.
6769         * modules/unictype/bidiclass-byname (Files): Add
6770         lib/unictype/bidi_byname.gperf.
6771         (Depends-on): Add gperf.
6772         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
6773         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
6774         long names.
6775
6776         Tests for module 'unictype/bidiclass-longname'.
6777         * modules/unictype/bidiclass-longname-tests: New file.
6778         * tests/unictype/test-bidi_longname.c: New file.
6779
6780         New module 'unictype/bidiclass-longname'.
6781         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
6782         * lib/unictype/bidi_longname.c: New file.
6783         * modules/unictype/bidiclass-longname: New file.
6784         * modules/unictype/bidiclass-all (Depends-on): Add
6785         unictype/bidiclass-longname.
6786
6787 2011-03-26  Bruno Haible  <bruno@clisp.org>
6788
6789         unictype/bidi*: Rename modules.
6790         * modules/unictype/bidiclass-all: Renamed from
6791         modules/unictype/bidicategory-all.
6792         * modules/unictype/bidiclass-name: Renamed from
6793         modules/unictype/bidiclass-name.
6794         (Description): Update.
6795         * modules/unictype/bidiclass-name-tests: Renamed from
6796         modules/unictype/bidicategory-name-tests.
6797         * modules/unictype/bidiclass-byname: Renamed from
6798         modules/unictype/bidicategory-byname.
6799         (Description): Update.
6800         * modules/unictype/bidiclass-byname-tests: Renamed from
6801         modules/unictype/bidicategory-byname-tests.
6802         * modules/unictype/bidiclass-of: Renamed from
6803         modules/unictype/bidicategory-of.
6804         (Description): Update.
6805         * modules/unictype/bidiclass-of-tests: Renamed from
6806         modules/unictype/bidicategory-of-tests.
6807         * modules/unictype/bidiclass-test: Renamed from
6808         modules/unictype/bidicategory-test.
6809         (Description): Update.
6810         * modules/unictype/bidiclass-test-tests: Renamed from
6811         modules/unictype/bidicategory-test-tests.
6812         * modules/unictype/bidicategory-all: New file, a simple redirection.
6813         * modules/unictype/bidicategory-name: Likewise.
6814         * modules/unictype/bidicategory-byname: Likewise.
6815         * modules/unictype/bidicategory-of: Likewise.
6816         * modules/unictype/bidicategory-test: Likewise.
6817         * modules/unictype/property-bidi-* (Dependencies): Update.
6818         * lib/unictype/bidi_*.c: Update comment.
6819
6820 2011-03-26  Bruno Haible  <bruno@clisp.org>
6821
6822         unictype/bidi*: Rename functions, part 2.
6823         * modules/unictype/bidicategory-name (configure.ac): Update required
6824         libunistring version.
6825         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
6826
6827 2011-03-25  Bruno Haible  <bruno@clisp.org>
6828
6829         New module 'unictype/combining-class-all'.
6830         * modules/unictype/combining-class-all: New file.
6831
6832         Tests for module 'unictype/combining-class-byname'.
6833         * modules/unictype/combining-class-byname-tests: New file.
6834         * tests/unictype/test-combiningclass_byname.c: New file.
6835
6836         New module 'unictype/combining-class-byname'.
6837         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
6838         * lib/unictype/combiningclass_byname.c: New file.
6839         * lib/unictype/combiningclass_byname.gperf: New file.
6840         * modules/unictype/combining-class-byname: New file.
6841
6842         Tests for module 'unictype/combining-class-longname'.
6843         * modules/unictype/combining-class-longname-tests: New file.
6844         * tests/unictype/test-combiningclass_longname.c: New file.
6845
6846         New module 'unictype/combining-class-longname'.
6847         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
6848         * lib/unictype/combiningclass_longname.c: New file.
6849         * modules/unictype/combining-class-longname: New file.
6850
6851         Tests for module 'unictype/combining-class-name'.
6852         * modules/unictype/combining-class-name-tests: New file.
6853         * tests/unictype/test-combiningclass_name.c: New file.
6854
6855         New module 'unictype/combining-class-name'.
6856         * lib/unictype.in.h (uc_combining_class_name): New declaration.
6857         * lib/unictype/combiningclass_name.c: New file.
6858         * modules/unictype/combining-class-name: New file.
6859
6860 2011-03-25  Bruno Haible  <bruno@clisp.org>
6861
6862         unictype/combining-class: Rename source files.
6863         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
6864         of unictype/combining.h.
6865         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
6866         Update.
6867         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
6868         * modules/unictype/combining-class (Description): Fix.
6869         (Files, Makefile.am): Update.
6870         * tests/unictype/test-combiningclass.c: Renamed from
6871         tests/unictype/test-combining.c.
6872         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
6873
6874 2011-03-25  Bruno Haible  <bruno@clisp.org>
6875
6876         unictype: Update list of canonical combining classes.
6877         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
6878
6879 2011-03-25  Bruno Haible  <bruno@clisp.org>
6880
6881         unictype/category-byname: Recognize long names as well.
6882         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
6883         a long name.
6884         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
6885         unictype/categ_byname.h.
6886         (UC_CATEGORY_INDEX_*): New enumeration values.
6887         (uc_general_category_byname): Use uc_general_category_lookup and
6888         convert from index to value.
6889         * lib/unictype/categ_byname.gperf: New file.
6890         * modules/unictype/category-byname (Files): Add
6891         lib/unictype/categ_byname.gperf.
6892         (Depends-on): Add gperf.
6893         (Makefile.am): Add rule for generating unictype/categ_byname.h.
6894         * tests/unictype/test-categ_byname.c (main): Test the recognition of
6895         long names.
6896
6897         Tests for module 'unictype/category-longname'.
6898         * modules/unictype/category-longname-tests: New file.
6899         * tests/unictype/test-categ_longname.c: New file.
6900
6901         New module 'unictype/category-longname'.
6902         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
6903         * lib/unictype/categ_longname.c: New file.
6904         * modules/unictype/category-longname: New file.
6905         * modules/unictype/category-all (Depends-on): Add it.
6906
6907 2011-03-25  Bruno Haible  <bruno@clisp.org>
6908
6909         Tests for module 'unictype/category-LC'.
6910         * modules/unictype/category-LC-tests: New file.
6911         * tests/unictype/test-categ_LC.c: New file, automatically generated.
6912
6913         New module 'unictype/category-LC'.
6914         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
6915         (UC_CATEGORY_LC): New declaration.
6916         (UC_CASED_LETTER): New macro.
6917         * lib/gen-uni-tables.c (is_category_LC): New function.
6918         (output_categories): Also handle category LC.
6919         (UC_CATEGORY_MASK_LC): New enumeration value.
6920         (general_category_byname): Also handle category LC.
6921         * lib/unictype/categ_LC.c: New file.
6922         * lib/unictype/categ_LC.h: New file, automatically generated.
6923         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
6924         category LC.
6925         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
6926         * modules/unictype/category-LC: New file.
6927         * modules/unictype/category-byname (Depends-on): Add
6928         unictype/category-LC.
6929         * modules/unictype/category-all (Depends-on): Likewise.
6930
6931 2011-03-25  Eric Blake  <eblake@redhat.com>
6932
6933         xmalloc: revert yesterday's regression
6934         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
6935         realloc's underlying behavior (allowing allocation of zero-size
6936         objects, especially if malloc-gnu is also in use).
6937
6938 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
6939
6940         maint.mk: add missing version to VC-tag
6941         * top/maint.mk: git tag was missing actual tag name; add it.
6942
6943         valgrind: do leak checking, and exit with code 1 on error (not 0)
6944         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
6945         to VALGRIND.
6946
6947 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
6948
6949         posix-modules: say what it does.
6950         * posix-modules: Add a line to the --help output saying what it does.
6951
6952 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
6953
6954         xmalloc: Do not leak if underlying realloc is C99 compatible.
6955         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
6956         This avoids a leak on C99-based systems.  See
6957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
6958
6959 2011-03-24  Eric Blake  <eblake@redhat.com>
6960
6961         realloc: document portability problem
6962         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
6963         passing 0 size to realloc.
6964
6965 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
6966
6967         doc: update users.txt
6968         * users.txt: Add cvsps, tmpwatch
6969
6970 2011-03-23  Matt Rice  <ratmice@gmail.com>
6971
6972         doc: update users.txt
6973         * users.txt: Add gdb.
6974
6975 2011-03-23  Jim Meyering  <meyering@redhat.com>
6976
6977         doc: update users.txt
6978         Looking through matches up to the following URL (there are still
6979         several more pages), I found several projects that use gnulib:
6980         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
6981         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
6982         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
6983
6984 2011-03-22  Bruno Haible  <bruno@clisp.org>
6985
6986         unictype/bidi*: Rename functions.
6987         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
6988         uc_bidi_class, uc_is_bidi_class): New declarations.
6989         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
6990         uc_bidi_category_byname.
6991         (uc_bidi_category_byname): New function.
6992         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
6993         u_bidi_category_name.
6994         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
6995         (uc_bidi_category_name): New function.
6996         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
6997         uc_bidi_category.
6998         (uc_bidi_category): New function.
6999         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7000         uc_is_bidi_category. Invoke uc_bidi_class.
7001         (uc_is_bidi_category): New function.
7002         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7003         instead of uc_bidi_category_byname.
7004         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7005         instead of uc_bidi_category_name.
7006         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7007         uc_bidi_category.
7008         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7009         instead of uc_is_bidi_category.
7010
7011 2011-03-21  Bruno Haible  <bruno@clisp.org>
7012
7013         New module 'unictype/joininggroup-all'.
7014         * modules/unictype/joininggroup-all: New file.
7015
7016         Tests for module 'unictype/joininggroup-of'.
7017         * modules/unictype/joininggroup-of-tests: New file.
7018         * tests/unictype/test-joininggroup_of.c: New file.
7019         * tests/unictype/test-joininggroup_of.h: New file, automatically
7020         generated by gen-uni-tables.
7021
7022         New module 'unictype/joininggroup-of'.
7023         * modules/unictype/joininggroup-of: New file.
7024         * lib/unictype/joininggroup_of.c: New file.
7025         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7026         gen-uni-tables.
7027
7028         Tests for module 'unictype/joininggroup-byname'.
7029         * modules/unictype/joininggroup-byname-tests: New file.
7030         * tests/unictype/test-joininggroup_byname.c: New file.
7031
7032         New module 'unictype/joininggroup-byname'.
7033         * modules/unictype/joininggroup-byname: New file.
7034         * lib/unictype/joininggroup_byname.c: New file.
7035         * lib/unictype/joininggroup_byname.gperf: New file.
7036
7037         Tests for module 'unictype/joininggroup-name'.
7038         * modules/unictype/joininggroup-name-tests: New file.
7039         * tests/unictype/test-joininggroup_name.c: New file.
7040
7041         New module 'unictype/joininggroup-name'.
7042         * modules/unictype/joininggroup-name: New file.
7043         * lib/unictype/joininggroup_name.c: New file.
7044         * lib/unictype/joininggroup_name.h: New file.
7045
7046         New module 'unictype/joiningtype-all'.
7047         * modules/unictype/joiningtype-all: New file.
7048
7049         Tests for module 'unictype/joiningtype-of'.
7050         * modules/unictype/joiningtype-of-tests: New file.
7051         * tests/unictype/test-joiningtype_of.c: New file.
7052         * tests/unictype/test-joiningtype_of.h: New file, automatically
7053         generated by gen-uni-tables.
7054
7055         New module 'unictype/joiningtype-of'.
7056         * modules/unictype/joiningtype-of: New file.
7057         * lib/unictype/joiningtype_of.c: New file.
7058         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7059         gen-uni-tables.
7060
7061         Tests for module 'unictype/joiningtype-byname'.
7062         * modules/unictype/joiningtype-byname-tests: New file.
7063         * tests/unictype/test-joiningtype_byname.c: New file.
7064
7065         New module 'unictype/joiningtype-byname'.
7066         * modules/unictype/joiningtype-byname: New file.
7067         * lib/unictype/joiningtype_byname.c: New file.
7068
7069         Tests for module 'unictype/joiningtype-name'.
7070         * modules/unictype/joiningtype-name-tests: New file.
7071         * tests/unictype/test-joiningtype_name.c: New file.
7072
7073         New module 'unictype/joiningtype-name'.
7074         * modules/unictype/joiningtype-name: New file.
7075         * lib/unictype/joiningtype_name.c: New file.
7076
7077         unictype: Add support for Arabic shaping properties.
7078         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7079         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7080         declarations.
7081         (UC_JOINING_GROUP_*): New enumeration values.
7082         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7083         declarations.
7084         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7085         (unicode_joining_type): New variable.
7086         (UC_JOINING_GROUP_*): New enumeration values.
7087         (unicode_joining_group): New variable.
7088         (fill_arabicshaping, joining_type_as_c_identifier,
7089         output_joining_type_test, output_joining_type,
7090         joining_group_as_c_identifier, output_joining_group_test,
7091         output_joining_group): New functions.
7092         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7093         fill_arabicshaping and output_joining_type_test, output_joining_type,
7094         output_joining_group_test, output_joining_group.
7095         Reported by Simon Josefsson.
7096
7097 2011-03-21  Jim Meyering  <meyering@redhat.com>
7098
7099         strftime: fix a bug in yesterday's change
7100         * lib/strftime.c (add): Accommodate width's initial value of -1.
7101         Otherwise, nstrftime would copy uninitialized data into
7102         the result buffer.
7103
7104 2011-03-21  Jim Meyering  <meyering@redhat.com>
7105
7106         tests: add strftime-tests module
7107         * tests/test-strftime.c: New file.
7108         * modules/strftime-tests: New module.
7109
7110 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7111
7112         strftime: don't assume a byte count fits in 'int'
7113         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7114         found this problem by static analysis, using gcc -Wstrict-overflow
7115         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7116         on an integer overflow having undefined behavior, but it turns out
7117         that the argument is a size, which might not fit in 'int' anyway,
7118
7119 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7120
7121         stdio: don't require ignore_value around fwrite
7122
7123         This patch works around libc bug 11959
7124         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7125         Without this patch, applications must often write
7126         ignore_value (fwrite (...)) even though the ignore_value is
7127         not helpful here.  It's common to write many objects, using
7128         fwrite/printf/etc., and then use ferror to detect output error.
7129
7130         I considered making this patch optional, but decided against it,
7131         because libc is obviously being inconsistent here: there is no
7132         reason libc should insist that user code must inspect fwrite
7133         return's value without also insisting that it inspect printf's,
7134         putchar's, etc.  If user code wants to have a strict style where
7135         all these functions' values are checked (so that ferror need not
7136         be checked), we could add support for that style in a new gnulib
7137         module, but in the meantime it's better to be consistent and to
7138         support common usage.
7139
7140         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7141         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7142         that we are compiling in checking mode, and if not C++, and
7143         if not already wrapping fwrite for some other reason.
7144         (fwrite): #define to rpl_fwrite if the latter is defined.
7145
7146 2011-03-20  Bruno Haible  <bruno@clisp.org>
7147
7148         verror: Fix compilation error introduced on 2011-02-13.
7149         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7150         instead of __attribute__.
7151         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7152
7153 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7154             Bruno Haible  <bruno@clisp.org>
7155
7156         socklen: do not depend on sys_socket
7157         While trying to modify Emacs to use gnulib's socklen module,
7158         I discovered a circular dependency: socklen depends on sys_socket
7159         and vice versa.  Emacs can use socklen, but it does not need
7160         sys_socket because it has its own substitute for sys/socket.h.
7161         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7162         gl_TYPE_SOCKLEN_T.
7163         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7164         gl_PREREQ_SYS_H_SOCKET.
7165         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7166         gl_PREREQ_SYS_H_SOCKET.
7167         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7168         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7169         * modules/socklen (Depends-on): Do not depend on sys_socket.
7170         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7171
7172 2011-03-20  Jim Meyering  <meyering@redhat.com>
7173
7174         maint.mk: sort file names *after* new transformation
7175         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7176         prefix would have led to an unwarranted failure in GNU parted.
7177         Sort after that transformation.
7178
7179 2011-03-19  Jim Meyering  <meyering@redhat.com>
7180
7181         maint.mk: fix po-file syntax-check rule
7182         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7183         Patch by Bruno Haible.
7184
7185 2011-03-19  Bruno Haible  <bruno@clisp.org>
7186
7187         socklen: Update comment.
7188         * m4/socklen.m4: Update comment about platforms.
7189
7190 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7191             Bruno Haible  <bruno@clisp.org>
7192
7193         inet_ntop, inet_pton: Simplify.
7194         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7195         documented to provide socklen_t and we already depend on sys_socket.
7196         * modules/inet_pton (Depends-on): Likewise.
7197         * lib/arpa_inet.in.h: Adjust comment.
7198
7199 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7200             Bruno Haible  <bruno@clisp.org>
7201
7202         netdb: Simplify.
7203         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7204         documented to provide socklen_t and we already depend on sys_socket.
7205         * lib/netdb.in.h: Adjust comment.
7206
7207 2011-03-19  Bruno Haible  <bruno@clisp.org>
7208
7209         sys_socket, netdb: Document problem with socklen_t.
7210         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7211         platforms.
7212         * doc/posix-headers/netdb.texi: Likewise.
7213
7214 2011-03-18  Eric Blake  <eblake@redhat.com>
7215
7216         maint.mk: let po check work in VPATH build
7217         * top/maint.mk (po_file): Allow cfg.mk override.
7218         (sc_po_check): Allow VPATH use.
7219         Reported by Jiri Denemark.
7220
7221 2011-03-16  Jim Meyering  <meyering@redhat.com>
7222
7223         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7224         Before, you would have had to create one .x-sc_ file per rule in order
7225         to exempt offending files.  Now, you may instead use a Make variable --
7226         usually defined in cfg.mk -- whose name identifies the affected rule.
7227         * top/maint.mk (_sc_excl): Define.
7228         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7229         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7230
7231 2011-03-13  Bruno Haible  <bruno@clisp.org>
7232
7233         ignore-value tests: Avoid warnings.
7234         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7235         empty for gcc < 3.4.
7236
7237 2011-03-13  Bruno Haible  <bruno@clisp.org>
7238
7239         passfd: Fix link error on Solaris.
7240         * modules/passfd (Description): Correct.
7241         (Depends-on): Add socketlib.
7242         (Link): New section.
7243         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7244
7245 2011-03-13  Bruno Haible  <bruno@clisp.org>
7246
7247         passfd: Fix link error on AIX 5.2.
7248         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7249
7250 2011-03-13  Bruno Haible  <bruno@clisp.org>
7251
7252         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7253         * lib/sys_socket.in.h: Include <stddef.h>.
7254         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7255         CMSG_FIRSTHDR. Remove unused variable.
7256
7257 2011-03-13  Bruno Haible  <bruno@clisp.org>
7258
7259         passfd: Fix compilation error on OpenBSD.
7260         * lib/passfd.c: Include <sys/uio.h>.
7261
7262 2011-03-13  Bruno Haible  <bruno@clisp.org>
7263
7264         passfd test: Fix warnings.
7265         * tests/test-passfd.c: Include <sys/wait.h>.
7266         (main): Fix typo.
7267
7268 2011-03-13  Bruno Haible  <bruno@clisp.org>
7269
7270         passfd module, part 4, tweaks.
7271         * tests/test-passfd.c: Reorder includes.
7272         (main): Fix perror and printf calls.
7273
7274 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7275
7276         passfd module, part 4.
7277         * modules/passfd-tests: New file.
7278         * tests/test-passfd.c: New file.
7279
7280 2011-03-13  Jim Meyering  <meyering@redhat.com>
7281
7282         Makefile: rely on GNU make; derive syntax-check rule names
7283         Rather than requiring that each sc_ rule be listed as a dependent
7284         of "check", use features of GNU make to derive the list.
7285         * Makefile (syntax-check-rules): Define.
7286         (check): Depend on the new variable, not the hard-coded list.
7287
7288 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7289             Bruno Haible  <bruno@clisp.org>
7290
7291         passfd module, part 3.
7292         * lib/passfd.h (recvfd): Add a flags argument.
7293         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7294         (recvfd): Add a flags argument.
7295         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7296         exists.
7297         * modules/passfd (Depends-on): Add cloexec.
7298         Suggested by Eric Blake.
7299
7300 2011-03-13  Bruno Haible  <bruno@clisp.org>
7301
7302         passfd module, part 2, tweaks.
7303         * modules/passfd (Files): Reorder.
7304         (Depends-on): Remove errno.
7305         (Include): Remove <sys/socket.h>, <sys/un.h>.
7306         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7307         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7308         specification header. Include <sys/socket.h> always. Don't include
7309         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7310         (sendfd): Clarify that it sets errno when it fails.
7311         (recvfd): Fix specification.
7312
7313 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7314
7315         passfd module, part 2.
7316         * modules/passfd: New file.
7317         * lib/passfd.h: New file.
7318         * lib/passfd.c: New file.
7319
7320 2011-03-12  Bruno Haible  <bruno@clisp.org>
7321
7322         wcswidth, mbswidth: Avoid integer overflow.
7323         * lib/wcswidth.c: Include <limits.h>.
7324         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7325         * lib/mbswidth.c: Include <limits.h>.
7326         (mbsnwidth): Avoid 'int' overflow.
7327         Reported by Jim Meyering.
7328
7329 2011-03-12  Bruno Haible  <bruno@clisp.org>
7330
7331         futimens, utimensat: Avoid endless recursion on Solaris 10.
7332         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7333         Solaris.
7334         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7335         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7336
7337 2011-03-11  Jim Meyering  <meyering@redhat.com>
7338
7339         maint.mk: relax a regexp to accommodate other formatting styles
7340         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7341         between "ngettext" and the following "(".
7342
7343 2011-03-11  Pádraig Brady <P@draigBrady.com>
7344
7345         maint.mk: suppress a false positive warning
7346         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7347         diagnostics are marked with ngettext.
7348
7349 2011-03-10  Eric Blake  <eblake@redhat.com>
7350
7351         wchar: add explicit dependencies, for Tru64
7352         * modules/mbmemcasecoll (Depends-on): Add wchar.
7353         * modules/mbtowc (Depends-on): Likewise.
7354         * modules/vasnprintf (Depends-on): Likewise.
7355         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7356         * modules/wctomb (Depends-on): Likewise.
7357         Reported by Peter O'Gorman.
7358
7359 2011-03-08  Bruno Haible  <bruno@clisp.org>
7360
7361         passfd module, part 1, tweaks.
7362         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7363         Improve indentation. Improve AC_MSG_CHECKING messages.
7364         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7365         gl_SOCKET_FAMILIES.
7366
7367 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7368
7369         passfd module, part 1.
7370         * m4/afunix.m4: New file.
7371         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7372         sockets.
7373
7374 2011-03-08  Bruno Haible  <bruno@clisp.org>
7375
7376         regex-quote: New API.
7377         * lib/regex-quote.h: Include <stdbool.h>.
7378         (struct regex_quote_spec): New type.
7379         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7380         New declarations.
7381         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7382         'const struct regex_quote_spec *' argument.
7383         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7384         (pcre_special): New constant.
7385         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7386         New functions.
7387         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7388         'const struct regex_quote_spec *' argument.
7389         * modules/regex-quote (Depends-on): Add stdbool.
7390         * tests/test-regex-quote.c (check): Update for new API. Add test for
7391         anchored results.
7392         * NEWS: Mention the API change.
7393         Reported by Reuben Thomas and Eric Blake.
7394
7395 2011-03-06  Bruno Haible  <bruno@clisp.org>
7396
7397         regex-quote: Fix creation of POSIX extended regular expressions.
7398         * lib/regex-quote.c (ere_special): Add grouping and alternation
7399         operators.
7400
7401 2011-03-05  Bruno Haible  <bruno@clisp.org>
7402
7403         doc: Improve doc regarding autopoint vs. gnulib.
7404         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7405         disable autopoint while running autoreconf.
7406         Suggested by Ralf Wildenhues.
7407
7408 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7409
7410         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7411         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7412
7413 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7414
7415         parse-duration: remove xalloc.h dependency
7416         * lib/parse-duration.c (parse_period): handle NULL return from
7417         strdup instead of calling xstrdup().
7418         * modules/parse-duration: remove "xalloc" dependency
7419
7420 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7421
7422         bootstrap: honor m4_base when running aclocal
7423         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7424
7425 2011-03-02  Jim Meyering  <meyering@redhat.com>
7426
7427         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7428         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7429         on request from Matt Booth.
7430
7431 2011-03-01  Eric Blake  <eblake@redhat.com>
7432
7433         test-link: work on Hurd
7434         * tests/test-link.h (test_link): Hurd rejects linking directories
7435         with EISDIR instead of the POSIX-mandated EPERM.
7436
7437 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7438
7439         stdio: simplify by moving files to printf-posix, sigpipe
7440         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7441         since this symbol is needed only if printf is replaced.
7442         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7443         Require gl_ASM_SYMBOL_PREFIX.
7444         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7445         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7446         (Depends-on): Add 'raise'.
7447         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7448         * modules/stdio (Files): Remove lib/stdio-write.c,
7449         m4/asm-underscore.m4.
7450         (Depends-on): Remove 'raise'.
7451
7452         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
7453         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
7454         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
7455         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
7456
7457 2011-02-28  Bruno Haible  <bruno@clisp.org>
7458
7459         localcharset: Assume ANSI C behaviour of free().
7460         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
7461         calling free().
7462         Suggested by Simon Josefsson <simon@josefsson.org>.
7463
7464 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
7465             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
7466             Bruno Haible  <bruno@clisp.org>  (tiny change)
7467
7468         On Cygwin, use /proc file system instead of win32 API.
7469         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
7470         Win32 file names.
7471         (DllMain): Simplify by removing Cygwin specific code.
7472         (find_shared_library_fullname): Use Linux specific implementation also
7473         for Cygwin.
7474         (get_shared_library_fullname): Update accordingly.
7475         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7476         Win32 file names.
7477         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7478         Cygwin specific code.
7479
7480 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7481             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7482
7483         Fix OpenMP flag detection for various Fortran compilers.
7484         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7485         OpenMP-conditional compilation construct, to force compile
7486         failure with missing OpenMP flag.
7487         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7488
7489 2011-02-25  Eric Blake  <eblake@redhat.com>
7490
7491         strstr: expand test coverage
7492         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7493         compilation.
7494         * tests/test-memmem.c (main): Duplicate tests.
7495         * tests/test-strcasestr.c (main): Likewise.
7496         * tests/test-c-strcasestr.c (main): Likewise.
7497
7498 2011-02-25  Jim Meyering  <meyering@redhat.com>
7499
7500         maint.mk: detect missing-NL-at-EOF, too
7501         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7502         it also detects when a file lacks a newline at EOF.
7503         (require_exactly_one_NL_at_EOF_): Renamed from
7504         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7505         since people may well have .x-sc_... file names tied to the
7506         existing name.  Suggested by Eric Blake.
7507
7508 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7509
7510         dirname: move m4/dos.m4 functionality into lib/dosname.h
7511
7512         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7513         extracts symbols from it, puts them into config.h; but it's much
7514         easier to use the symbols directly.  filename.h already does this,
7515         but it disagrees with dos.m4 in some respects.  This patch
7516         introduces a different include file dosname.h that packages up
7517         dos.m4, and then later we can work on merging filename.h and
7518         dosname.h.  Applications that need only the easy-to-configure
7519         symbols should consider including dosname.h rather than dirname.h.
7520         * NEWS: Mention incompatible changes.
7521         * m4/dos.m4: Remove.
7522         * lib/dosname.h, modules/dosname: New files.
7523         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7524         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7525         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7526         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7527         Include dosname.h, not dirname.h.
7528         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7529         Include dosname.h, for definitions of symbols like ISSLASH
7530         that used to be in config.h.
7531         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7532         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7533         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7534         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7535         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7536         * modules/rmdir (Files): Likewise.
7537         * modules/stat (Files): Likewise.
7538         * modules/unlink (Files): Likewise.
7539         * modules/dirname-lgpl (Depends-on): Add dosname.
7540         * modules/lstat (Depends-on): Likewise.
7541         * modules/openat (Depends-on): Likewise.
7542         * modules/rmdir (Depends-on): Likewise.
7543         * modules/savewd (Depends-on): Likewise.
7544         * modules/stat (Depends-on): Likewise.
7545         * modules/unlink (Depends-on): Likewise.
7546         * modules/openat (Depends-on): Remove dirname-lgpl.
7547         * modules/savewd (Depends-on): Likewise.
7548         * tests/test-dirname.c: Do not use removed symbols like
7549         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
7550         the remaining symbols, e.g., ISSLASH ('\\').
7551
7552 2011-02-25  Eric Blake  <eblake@redhat.com>
7553
7554         strstr: revert patches that introduced bug and pessimization
7555         * lib/str-two-way.h: Add another reference.
7556         (two_way_short_needle, two_way_long_needle): Revert changes from
7557         2011-02-24; they pessimize search speed.
7558         (critical_factorization): Partially revert changes from
7559         2010-06-22; they violate the requirement that the left half of the
7560         needle be smaller than the period of the needle.
7561
7562 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7563
7564         filenamecat: remove unnecessary dependency on dirname-lgpl
7565         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
7566         is no direct dependency, just an indirect one via filenamecat-lgpl.
7567
7568         remove: remove unnecessary use of m4/dos.m4
7569         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
7570         * modules/remove (FILES): Remove m4/dos.m4.
7571
7572         * lib/openat-proc.c: Don't include dirname.h; not needed.
7573
7574         backupfile: remove unnecessary use of m4/dos.m4
7575         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
7576         of its symbols are used by the backupfile code.  backupfile.c does
7577         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
7578         for the rare case of programs that want all their backup file
7579         names to live within 8+3 limits, and dos.m4 doesn't address that.
7580         * modules/backupfile (Files): Remove m4/dos.m4.
7581
7582 2011-02-24  Jim Meyering  <meyering@redhat.com>
7583
7584         strstr: fix a bug whereby strstr would mistakenly return NULL
7585         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
7586         in period calculation.
7587         (two_way_long_needle): Likewise.
7588         The original problem was reported by Mike Stump in
7589         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
7590         Ralf Wildenhues provided the short needle and haystack.
7591         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
7592         Add a more involved test to trigger the bug in two_way_long_needle.
7593
7594 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7595
7596         gnulib-tool: remove use of bold display in help screen
7597         * gnulib-tool (func_usage): Do not use bold display anymore in the
7598         help screen.  That was just meant to be a temporary emphasis for a
7599         backward-incompatible change.
7600
7601 2011-02-23  Bruno Haible  <bruno@clisp.org>
7602
7603         Fix misindentation of preprocessor directives.
7604         * lib/argp-namefrob.h: Reindent preprocessor directives.
7605         * lib/getopt_int.h (struct _getopt_data): Likewise.
7606         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
7607         * lib/vasnprintf.c (decode_long_double): Likewise.
7608         * tests/test-argmatch.c: Insert blank lines, for clarity.
7609         * tests/test-exclude.c: Likewise.
7610
7611 2011-02-22  Bruno Haible  <bruno@clisp.org>
7612
7613         ioctl: Fix for MacOS X in 64-bit mode.
7614         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
7615         value.
7616         Suggested by Eric Blake.
7617         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
7618
7619 2011-02-22  Jim Meyering  <meyering@redhat.com>
7620
7621         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
7622         * Makefile (sc_cpp_indent_check): Don't limit the check to files
7623         in lib/.
7624
7625 2011-02-22  Eric Blake  <eblake@redhat.com>
7626
7627         maint: avoid any CDPATH issue
7628         * Makefile (sc_cpp_indent_check): Anchor cd argument.
7629
7630         maint: adjust cpp indentation for my modules, as well
7631         * Makefile (sc_cpp_indent_check): Add my name.
7632         * lib/fbufmode.c: Filter through cppi.
7633         * lib/fpurge.c: Likewise.
7634         * lib/freadable.c: Likewise.
7635         * lib/freading.c: Likewise.
7636         * lib/fwritable.c: Likewise.
7637         * lib/fwriting.c: Likewise.
7638         * lib/sigaction.c: Likewise.
7639
7640 2011-02-22  Jim Meyering  <meyering@redhat.com>
7641
7642         maint: adjust cpp indentation to reflect nesting depth
7643         I.e., in a block of code that begins with an unnested "#if",
7644         put one space between the "#" in column 1 and following token.
7645         For example,
7646         -#include <sys/vfs.h>
7647         +# include <sys/vfs.h>
7648         Do this only in .c files that are part of a module I maintain.
7649         * lib/linkat.c: Filter through cppi.
7650         * lib/nanosleep.c: Likewise.
7651         * lib/openat.c: Likewise.
7652         * lib/openat-die.c: Likewise.
7653         * lib/dup3.c: Likewise.
7654         * lib/fchownat.c: Likewise.
7655         * lib/flock.c: Likewise.
7656         * lib/fsync.c: Likewise.
7657         * lib/fts.c: Likewise.
7658         * lib/getpass.c: Likewise.
7659         * lib/gettimeofday.c: Likewise.
7660         * lib/userspec.c: Likewise.
7661         * Makefile (sc_cpp_indent_check): New rule, to check this.
7662
7663 2011-02-22  Bruno Haible  <bruno@clisp.org>
7664
7665         New module 'wctomb'.
7666         * lib/stdlib.in.h (wctomb): New declaration.
7667         * lib/wctomb.c: New file.
7668         * lib/wctomb-impl.h: New file.
7669         * m4/wctomb.m4: New file.
7670         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
7671         REPLACE_WCTOMB.
7672         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
7673         REPLACE_WCTOMB.
7674         * modules/wctomb: New file.
7675         * tests/test-stdlib-c++.cc: Test signature of wctomb.
7676         * doc/posix-functions/wctomb.texi: Mention the new module.
7677         * modules/wctob (Depends-on): Add wctomb.
7678
7679 2011-02-22  Bruno Haible  <bruno@clisp.org>
7680
7681         New module 'mbtowc'.
7682         * lib/stdlib.in.h (mbtowc): New declaration.
7683         * lib/mbtowc.c: New file.
7684         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
7685         * m4/mbtowc.m4: New file.
7686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
7687         REPLACE_MBTOWC.
7688         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
7689         REPLACE_MBTOWC.
7690         * modules/mbtowc: New file.
7691         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
7692         * doc/posix-functions/mbtowc.texi: Mention the new module.
7693         * modules/btowc (Depends-on): Add mbtowc.
7694
7695 2011-02-22  Bruno Haible  <bruno@clisp.org>
7696
7697         wcrtomb: Add more tests for native Windows platforms.
7698         * tests/test-wcrtomb-w32-1.sh: New file.
7699         * tests/test-wcrtomb-w32-2.sh: New file.
7700         * tests/test-wcrtomb-w32-3.sh: New file.
7701         * tests/test-wcrtomb-w32-4.sh: New file.
7702         * tests/test-wcrtomb-w32-5.sh: New file.
7703         * tests/test-wcrtomb-w32.c: New file.
7704         * modules/wcrtomb-tests (Files): Add them.
7705         (Makefile.am): Arrange to run these tests.
7706         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
7707         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
7708
7709 2011-02-20  Bruno Haible  <bruno@clisp.org>
7710
7711         wcrtomb: Enhance test.
7712         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
7713
7714 2011-02-20  Bruno Haible  <bruno@clisp.org>
7715
7716         mbrtowc: Tiny optimization.
7717         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
7718
7719 2011-02-20  Jim Meyering  <meyering@redhat.com>
7720
7721         test-exclude.c: remove unmatched #endif
7722         * tests/test-exclude.c: Remove stray #endif, left over from
7723         the change of a week ago.
7724
7725 2011-02-19  Jim Meyering  <meyering@redhat.com>
7726
7727         git-version-gen: skip "-dirty" check when appropriate
7728         * build-aux/git-version-gen: Don't run any git commands when the
7729         version string comes from .tarball-version.  Prior to this, we
7730         would run git update-index --refresh even from a just-unpacked
7731         tarball directory, and that could affect a .git/ directory in a
7732         parent of the build directory.  Reported by Mike Frysinger.
7733
7734 2011-02-19  Bruno Haible  <bruno@clisp.org>
7735
7736         unictype/property-byname: Reduce the size of the 'data' segment.
7737         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
7738
7739 2011-02-19  Bruno Haible  <bruno@clisp.org>
7740
7741         unictype/scripts: Reduce the size of the 'data' segment.
7742         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
7743         '%pic'.
7744         * lib/unictype/scripts_byname.gperf: Regenerated.
7745
7746 2011-02-19  Bruno Haible  <bruno@clisp.org>
7747
7748         stdint: Update documentation.
7749         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
7750
7751 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
7752
7753         stdint: omit redundant check for wchar.h
7754         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
7755         always tests whether wchar.h exists, so remove the now-redundant test.
7756
7757 2011-02-18  Bruno Haible  <bruno@clisp.org>
7758
7759         stdint: Cut dependency to module 'wchar'.
7760         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
7761         include the necessary prerequisites.
7762         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
7763         * modules/stdint (Depends-on): Remove wchar.
7764         (Makefile.am): Substitute HAVE_WCHAR_H.
7765         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
7766
7767 2011-02-18  Eric Blake  <eblake@redhat.com>
7768
7769         longlong: skip, rather than fail, on cross-compilation
7770         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
7771         when cross-compiling; regression from 2011-02-16.
7772
7773 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7774
7775         * NEWS: Mention 2011-02-08 change to stdlib.
7776
7777 2011-02-17  Bruno Haible  <bruno@clisp.org>
7778
7779         getloadavg: Add comments about platforms.
7780         * m4/getloadavg.m4: Add comment.
7781         * lib/getloadavg.c: Likewise.
7782
7783 2011-02-17  Bruno Haible  <bruno@clisp.org>
7784
7785         getloadavg: Fix link error on Solaris 2.6.
7786         * modules/getloadavg (Link): New section.
7787         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
7788         linking test-getloadavg.
7789         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
7790         getloadavg.
7791
7792 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7793
7794         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
7795         It was 'int', but this doesn't match the IRIX 6.5 manual.
7796         Suggested by Bruno Haible in
7797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
7798
7799 2011-02-17  Bruno Haible  <bruno@clisp.org>
7800
7801         havelib: Fix comments.
7802         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
7803         change.
7804
7805 2011-02-17  Bruno Haible  <bruno@clisp.org>
7806
7807         havelib: Update config.rpath.
7808         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
7809
7810 2011-02-17  Bruno Haible  <bruno@clisp.org>
7811
7812         getloadavg test: Add some plausibility checks.
7813         * tests/test-getloadavg.c (check_avg): Print a warning when the value
7814         is improbable.
7815
7816 2011-02-16  Eric Blake  <eblake@redhat.com>
7817
7818         maintainer-makefile: make syntax-check a no-op from tarballs
7819         * top/maint.mk (no-vc-detected): New rule.
7820         (local-checks-available): Use it to avoid hanging if someone tries
7821         'make syntax-check' from a tarball.  Also append to any non-syntax
7822         checks already defined in cfg.mk.
7823
7824 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7825
7826         longlong: tune, particularly for common case of c99
7827
7828         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
7829         or running anything if c99, or if unsigned long long int does not
7830         work.  In either case, we know the answer without further tests.
7831         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
7832         it at most once, and use its results for both long long int and
7833         unsigned long long int.  This is more likely to be efficient in
7834         the common case where the program wants to check for both long
7835         long int and unsigned long long int.
7836         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
7837         since the answer is already known.
7838
7839 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
7840
7841         getloadavg: set errno
7842         * lib/getloadavg.c: Set errno when returning -1.  If no other
7843         error number looks appropriate, set it to ENOSYS if the getloadavg
7844         looks like it can't possibly ever work, ENOTSUP otherwise.
7845         Suggested by Bruno Haible in
7846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
7847
7848         getloadavg: trim unused parts and speed up 'configure'
7849         * NEWS: Document this.
7850         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
7851         always compiled if getloadavg is absent.
7852         Move test code to ...
7853         * tests/test-getloadavg.c: New file, containing previous
7854         contents of test from lib/getloadavg.c.  It also contains
7855         suggestions by Bruno Haible in
7856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
7857         * modules/getloadavg-tests: New file.
7858         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
7859         Do tests in the same order as they're needed for getloadavg.c.
7860         Omit setgid-related tests that generate symbols KMEM_GROUP,
7861         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
7862         Do only the tests that are needed to see whether the system has
7863         getloadavg, moving the other tests into ...
7864         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
7865         NLIST_NAME_UNION; nobody should be using it.  Do not define
7866         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
7867         relevant, as the user of this module shouldn't care how getloadavg
7868         is implemented.
7869
7870         getloadavg: omit unused var
7871         * lib/getloadavg.c (getloadavg): Omit unused local variable.
7872
7873 2011-02-15  Jim Meyering  <meyering@redhat.com>
7874
7875         doc: update users.txt
7876         * users.txt: Update iwhd's URL.
7877
7878 2011-02-13  Bruno Haible  <bruno@clisp.org>
7879
7880         Consistent macro naming for macros that use GCC __attribute__.
7881         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
7882         _ATTRIBUTE_NONNULL_.
7883         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
7884         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
7885         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
7886         ATTRIBUTE_DEPRECATED.
7887         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
7888         ATTRIBUTE_NORETURN.
7889         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7890         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7891         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7892         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7893         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
7894         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
7895         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
7896         ATTRIBUTE_SENTINEL.
7897         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
7898         ATTRIBUTE_RETURN_CHECK.
7899         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
7900         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
7901         ATTRIBUTE_NORETURN.
7902         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
7903         Reported by Paul Eggert.
7904
7905 2011-02-13  Bruno Haible  <bruno@clisp.org>
7906
7907         Don't interfere with a program's definition of __attribute__.
7908         * lib/argp.h (__attribute__): Remove definition.
7909         (_GL_ATTRIBUTE_FORMAT): New macro.
7910         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
7911         * lib/argp-fmtstream.h (__attribute__): Remove definition.
7912         (_GL_ATTRIBUTE_FORMAT): New macro.
7913         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
7914         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
7915         GCC 3 or newer.
7916         * lib/error.h (__attribute__): Remove definition.
7917         (_GL_ATTRIBUTE_FORMAT): New macro.
7918         (error, error_at_line): Use it.
7919         * lib/hash.h (__attribute__): Remove definition.
7920         (ATTRIBUTE_WUR): Update definition. Define always.
7921         * lib/openat.h (__attribute__): Remove definition.
7922         (ATTRIBUTE_NORETURN): Update definition. Define always.
7923         * lib/sigpipe-die.h (__attribute__): Remove definition.
7924         (ATTRIBUTE_NORETURN): Update definition. Define always.
7925         * lib/vasnprintf.h (__attribute__): Remove definition.
7926         (_GL_ATTRIBUTE_FORMAT): New macro.
7927         (asnprintf, vasnprintf): Use it.
7928         * lib/xalloc.h (__attribute__): Remove definition.
7929         (ATTRIBUTE_NORETURN): Update definition. Define always.
7930         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
7931         * lib/xmemdup0.h (__attribute__): Remove definition.
7932         (ATTRIBUTE_NORETURN): Update definition. Define always.
7933         * lib/xprintf.h (__attribute__): Remove definition.
7934         (_GL_ATTRIBUTE_FORMAT): New macro.
7935         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
7936         * lib/xstrtol.h (__attribute__): Remove definition.
7937         (ATTRIBUTE_NORETURN): Update definition. Define always.
7938         * lib/xvasprintf.h (__attribute__): Remove definition.
7939         (_GL_ATTRIBUTE_FORMAT): New macro.
7940         (xasprintf, xvasprintf): Use it.
7941         * tests/test-argmatch.c (__attribute__): Remove definition.
7942         (ATTRIBUTE_NORETURN): Update definition. Define always.
7943         * tests/test-exclude.c (__attribute__): Remove definition.
7944         (ATTRIBUTE_NORETURN): Update definition. Define always.
7945         Reported by Paul Eggert.
7946
7947 2011-02-13  Bruno Haible  <bruno@clisp.org>
7948
7949         mbrtowc: Add more tests for native Windows platforms.
7950         * tests/test-mbrtowc-w32-1.sh: New file.
7951         * tests/test-mbrtowc-w32-2.sh: New file.
7952         * tests/test-mbrtowc-w32-3.sh: New file.
7953         * tests/test-mbrtowc-w32-4.sh: New file.
7954         * tests/test-mbrtowc-w32-5.sh: New file.
7955         * tests/test-mbrtowc-w32.c: New file.
7956         * modules/mbrtowc-tests (Files): Add them.
7957         (Makefile.am): Arrange to run these tests.
7958         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
7959         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
7960
7961 2011-02-13  Bruno Haible  <bruno@clisp.org>
7962
7963         mbrtowc: Work around native Windows bug.
7964         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
7965         guess when no suitable locale for testing was found.
7966         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
7967
7968 2011-02-13  Bruno Haible  <bruno@clisp.org>
7969
7970         mbsinit: Work around mingw bug.
7971         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
7972         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
7973         Windows.
7974         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
7975
7976 2011-02-13  Bruno Haible  <bruno@clisp.org>
7977
7978         mbsinit: Don't crash for a NULL argument.
7979         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
7980         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
7981
7982 2011-02-13  Bruno Haible  <bruno@clisp.org>
7983
7984         Don't interfere with a program's definition of __attribute__.
7985         * lib/stdio.in.h (__attribute__): Remove definition.
7986         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
7987         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
7988         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
7989         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
7990         * lib/string.in.h (__attribute__): Remove definition.
7991         Reported by Paul Eggert.
7992
7993 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7994
7995         stdlib: don't get in the way of non-GCC __attribute__
7996         See thread starting at
7997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
7998         Revert previous stdlib change, installing the following instead:
7999         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8000         to get in the way of a non-GCC compiler that supports __attribute__.
8001         (_GL_ATTRIBUTE_RETURN): New macro.
8002         (_Exit): Use it instead of __attribute__.
8003
8004 2011-02-12  Bruno Haible  <bruno@clisp.org>
8005
8006         quotearg test: Avoid test failure on mingw.
8007         * tests/test-quotearg.sh: Convert the locale identifier from native
8008         Windows syntax to Unix syntax.
8009
8010 2011-02-12  Bruno Haible  <bruno@clisp.org>
8011
8012         setlocale: Prefer gnulib's override over libintl's override.
8013         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8014         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8015         GNULIB_defined_setlocale is set.
8016
8017 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8018
8019         stdlib: support non-GCC __attribute__
8020
8021         Fix a serious and tricky problem encountered when attempting to
8022         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8023         5.5, but it crashed due to memory corruption on Solaris 10 with
8024         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8025         bits that are otherwise zero.  This tagging is optional inside
8026         Emacs but is preferred and is used when __attribute__ ((__aligned
8027         (8))) works, as it does with both recent-enough GCC and with Sun C
8028         5.11.  However, Sun C 5.11 is not GCC and does not #define
8029         __GNUC__ and __GNUC_MINOR__.
8030
8031         When I added the getloadavg module to Emacs, it brought in
8032         stdlib.in.h, which contained this fragment:
8033
8034            #ifndef __attribute__
8035            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8036            #  define __attribute__(Spec)   /* empty */
8037            # endif
8038            #endif
8039
8040         When files that include <stdlib.h> were compiled with Sun C 5.11,
8041         the above code disabled __attribute__ ((__aligned (8))), which
8042         caused variables to not be properly aligned, which eventually led
8043         to the pointer corruption mentioned above.  (This was a bit hard
8044         to diagnose, unfortunately.)
8045
8046         Several "#define __attribute__(X) /* empty */" code snippets need
8047         to be eradicated from Gnulib to work with non-GCC compilers that
8048         support __attribute__.  The Autoconf way to do this is to test for
8049         each kind of attribute that we want support for, and selectively
8050         enable that in source code.
8051
8052         Fix this problem just for stdlib.h, by adding a test for the
8053         __noreturn__ attribute, and change stdlib.in.h to use that test
8054         when needed.  This technique can be easily generalized to the
8055         other *.in.h files and attributes, and a similar technique can be
8056         used for *.h and *.c files.  This patch is enough to solve the
8057         problem for Emacs + getloadavg, and I thought I'd publish it for
8058         feedback before undertaking further, similar fixes in other
8059         modules.
8060
8061         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8062         because it's not needed for stdlib.h.  It merely substitutes the
8063         value directly into stdlib.h.  We may well need to #define it, or
8064         similar symbols, for other modules, but it's nice to also have an
8065         option to not #define it for applications like Emacs that do not
8066         need it.
8067
8068         * lib/stdlib.in.h (__attribute__): Do not #define.
8069         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8070         be defined only if the _Exit module is also used.
8071         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8073         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8074         platforms.
8075         * modules/_Exit (Files): Add m4/attribute.m4.
8076         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8077         * m4/attribute.m4: New file.
8078
8079 2011-02-12  Bruno Haible  <bruno@clisp.org>
8080
8081         wcsrtombs: Work around bug on native Windows.
8082         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8083         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8084         instead of len.
8085         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8086
8087 2011-02-12  Bruno Haible  <bruno@clisp.org>
8088
8089         mbsrtowcs: Work around bug on native Windows.
8090         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8091         against mingw bug.
8092         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8093
8094 2011-02-12  Bruno Haible  <bruno@clisp.org>
8095
8096         Avoid setlocale bugs in tests.
8097         * modules/btowc (Dependencies): Add setlocale.
8098         * modules/c-strcase (Dependencies): Likewise.
8099         * modules/mbmemcasecmp (Dependencies): Likewise.
8100         * modules/mbmemcasecoll (Dependencies): Likewise.
8101         * modules/mbrtowc (Dependencies): Likewise.
8102         * modules/mbscasecmp (Dependencies): Likewise.
8103         * modules/mbscasestr (Dependencies): Likewise.
8104         * modules/mbschr (Dependencies): Likewise.
8105         * modules/mbscspn (Dependencies): Likewise.
8106         * modules/mbsinit (Dependencies): Likewise.
8107         * modules/mbsncasecmp (Dependencies): Likewise.
8108         * modules/mbsnrtowcs (Dependencies): Likewise.
8109         * modules/mbspbrk (Dependencies): Likewise.
8110         * modules/mbspcasecmp (Dependencies): Likewise.
8111         * modules/mbsrchr (Dependencies): Likewise.
8112         * modules/mbsrtowcs (Dependencies): Likewise.
8113         * modules/mbsspn (Dependencies): Likewise.
8114         * modules/mbsstr (Dependencies): Likewise.
8115         * modules/nl_langinfo (Dependencies): Likewise.
8116         * modules/quotearg (Dependencies): Likewise.
8117         * modules/unicase/locale-language (Dependencies): Likewise.
8118         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8119         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8120         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8121         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8122         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8123         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8124         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8125         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8126         * modules/vasnprintf-posix (Dependencies): Likewise.
8127         * modules/wcrtomb (Dependencies): Likewise.
8128         * modules/wcsnrtombs (Dependencies): Likewise.
8129         * modules/wcsrtombs (Dependencies): Likewise.
8130
8131 2011-02-12  Bruno Haible  <bruno@clisp.org>
8132
8133         setlocale: Workaround native Windows bug.
8134         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8135         succeeds but sets LC_CTYPE to "C", report a failure.
8136         * tests/test-setlocale2.sh: New file.
8137         * tests/test-setlocale2.c: New file.
8138         * modules/setlocale-tests (Files): Add the new files.
8139         (Makefile.am): Enable test-setlocale2.sh test.
8140         * doc/posix-functions/setlocale.texi: Mention workaround.
8141
8142 2011-02-11  Bruno Haible  <bruno@clisp.org>
8143
8144         Tests for module 'setlocale'.
8145         * modules/setlocale-tests: New file.
8146         * tests/test-setlocale1.sh: New file.
8147         * tests/test-setlocale1.c: New file.
8148
8149         New module 'setlocale'.
8150         * lib/locale.in.h (setlocale): New declaration.
8151         * lib/setlocale.c: New file, based on
8152         gettext/gettext-runtime/intl/setlocale.c.
8153         * m4/setlocale.m4: New file.
8154         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8155         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8156         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8157         REPLACE_SETLOCALE.
8158         * modules/setlocale: New file.
8159         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8160         * doc/posix-functions/setlocale.texi: Mention the new module.
8161
8162 2011-02-11  Bruno Haible  <bruno@clisp.org>
8163
8164         Prepare for locale dependent tests on mingw.
8165         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8166         because it has the wrong locale encoding.
8167         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8168         French_France.1252 instead of "fr".
8169         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8170         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8171         because it has the wrong locale encoding.
8172         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8173         native Windows, try Turkish_Turkey.65001.
8174         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8175         Chinese_China.54936.
8176
8177         Prepare for locale dependent tests on mingw.
8178         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8179         differently.
8180         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8181         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8182         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8183         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8184
8185 2011-02-11  Eric Blake  <eblake@redhat.com>
8186
8187         strptime: avoid compiler warnings
8188         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8189         compiler warnings about dead code.
8190         Reported by Daniel P. Berrange.
8191
8192 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8193
8194         doc: update users.txt
8195         * users.txt: Add rcs.
8196
8197 2011-02-10  John W. Eaton  <jwe@gnu.org>
8198
8199         doc: update users.txt
8200         * users.txt: Add octave.
8201
8202 2011-02-10  Jim Meyering  <meyering@redhat.com>
8203
8204         doc: update users.txt
8205         * users.txt: Add iwhd.
8206
8207 2011-02-09  Bruno Haible  <bruno@clisp.org>
8208
8209         gnulib-tool: Make copyright notice adjustment more robust.
8210         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8211         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8212         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8213         License".
8214         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8215
8216 2011-02-06  Bruno Haible  <bruno@clisp.org>
8217
8218         New module 'towctrans'.
8219         * modules/towctrans: New file.
8220         * lib/wctype.in.h (towctrans): New declaration.
8221         * lib/towctrans.c: New file.
8222         * lib/towctrans-impl.h: New file.
8223         * m4/towctrans.m4: New file.
8224         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8225         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8226         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8227         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8228         * doc/posix-functions/towctrans.texi: Mention the new module.
8229
8230 2011-02-06  Bruno Haible  <bruno@clisp.org>
8231
8232         New module 'wctrans'.
8233         * modules/wctrans: New file.
8234         * lib/wctype.in.h (wctrans): New declaration.
8235         * lib/wctrans.c: New file.
8236         * lib/wctrans-impl.h: New file.
8237         * m4/wctrans.m4: New file.
8238         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8239         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8240         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8241         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8242         * doc/posix-functions/wctrans.texi: Mention the new module.
8243
8244 2011-02-06  Bruno Haible  <bruno@clisp.org>
8245
8246         New module 'iswctype'.
8247         * modules/iswctype: New file.
8248         * lib/wctype.in.h (iswctype): New declaration.
8249         * lib/iswctype.c: New file.
8250         * lib/iswctype-impl.h: New file.
8251         * m4/iswctype.m4: New file.
8252         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8253         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8254         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8255         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8256         * doc/posix-functions/iswctype.texi: Mention the new module and the
8257         HP-UX 11.00 problem.
8258
8259 2011-02-06  Bruno Haible  <bruno@clisp.org>
8260
8261         New module 'wctype'.
8262         * modules/wctype: Change to represent the wctype() substitute.
8263         * lib/wctype.in.h (wctype): New declaration.
8264         * lib/wctype.c: New file.
8265         * lib/wctype-impl.h: New file.
8266         * m4/wctype.m4: New file.
8267         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8268         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8269         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8270         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8271         * doc/posix-functions/wctype.texi: Mention the new module and the
8272         HP-UX 11.00 problem.
8273
8274 2011-02-06  Bruno Haible  <bruno@clisp.org>
8275
8276         wctype-h: Ensure wctype_t and wctrans_t are defined.
8277         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8278         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8279         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8280         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8281         HAVE_WCTRANS_T.
8282         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8283
8284 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8285
8286         flock: fix license typo
8287
8288         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8289         omitted.
8290
8291 2011-02-08  Bruno Haible  <bruno@clisp.org>
8292
8293         Split large sed scripts, for HP-UX sed.
8294         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8295         to avoid HP-UX limit of 99 commands, in the near future.
8296         * modules/stdlib (Makefile.am): Likewise.
8297         * modules/unistd (Makefile.am): Likewise.
8298         * modules/wchar (Makefile.am): Likewise.
8299         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8300         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8301         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8302
8303 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8304             Bruno Haible  <bruno@clisp.org>
8305
8306         stdlib: improve random_r modularization
8307         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8308         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8309         you also need the random_r module to get this material right.
8310         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8311         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8312         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8313
8314 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8315
8316         stdlib: don't depend on stdint
8317         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8318         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8319         be independent of whether stdint.h is needed.
8320         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8321         here, instead of ...
8322         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8323         struct random_data should be using the random_r module, not just
8324         the stdlib module (which wouldn't make sense: what package needs
8325         just struct random_data without also needing random_r?).
8326         * modules/stdlib (Depends-on): Remove stdint.
8327
8328         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8329         See the thread rooted at
8330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8331         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8332         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8333         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8334         __VMS)); previously it was always included (via fcntl--.h).
8335         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8336         hand; this is good enough for load averages.  Also, do not use
8337         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8338         flags directly if available and don't bother otherwise.  (Packages
8339         that need the extra reliability should use the modules that define
8340         these flags on older platforms that lack them.)
8341         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8342         fcntl-safer.
8343
8344 2011-02-08  Jim Meyering  <meyering@redhat.com>
8345
8346         di-set.h, ino-map.h: add multiple-inclusion guard
8347         Technically, the guard is required only for ino-map.h, due to its
8348         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8349         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8350         * lib/ino-map.h: Likewise.
8351
8352 2011-02-06  Bruno Haible  <bruno@clisp.org>
8353
8354         iswblank: Ensure declaration on glibc systems.
8355         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8356         * modules/iswblank (Dependencies): Add 'extensions'.
8357         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8358
8359 2011-02-06  Bruno Haible  <bruno@clisp.org>
8360
8361         New module 'iswblank'.
8362         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8363         * modules/iswblank: New file.
8364         * modules/wctype-h (Files): Remove lib/iswblank.c.
8365         (Makefile.am): Substitute GNULIB_ISWBLANK.
8366         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8367         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8368         (gl_WCTYPE_H_DEFAULTS): New macro.
8369         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8370         * modules/iswblank-tests: New file.
8371         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8372         * tests/test-wctype-h.c (main): Remove iswblank tests.
8373         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8374         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8375         of 'wctype-h'.
8376         * NEWS: Mention the change.
8377         * modules/mbchar (Depends-on): Add iswblank.
8378
8379 2011-02-08  Bruno Haible  <bruno@clisp.org>
8380
8381         di-set tests: Refactor.
8382         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8383         unnecessary includes.
8384         (ASSERT): Remove macro.
8385         (main): Make C90 compliant by avoiding variable declaration after
8386         statement.
8387         * modules/di-set-tests (Files): Add tests/macros.h.
8388
8389 2011-02-08  Bruno Haible  <bruno@clisp.org>
8390
8391         ino-map tests: Refactor.
8392         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8393         unnecessary includes.
8394         (ASSERT): Remove macro.
8395         (main): Make C90 compliant by avoiding variable declaration after
8396         statement.
8397         * modules/ino-map-tests (Files): Add tests/macros.h.
8398
8399 2011-02-08  Jim Meyering  <meyering@redhat.com>
8400
8401         di-set: add "const" to a cast
8402         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8403         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8404
8405 2011-02-06  Bruno Haible  <bruno@clisp.org>
8406
8407         Rename module 'wctype' to 'wctype-h'.
8408         * modules/wctype-h: Renamed from modules/wctype.
8409         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8410         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8411         (Files, Depends-on, Makefile.am): Update.
8412         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8413         (Files, Makefile.am): Update.
8414         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8415         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8416         * doc/posix-headers/wctype.texi: Update.
8417         * doc/posix-functions/iswalnum.texi: Update.
8418         * doc/posix-functions/iswalpha.texi: Update.
8419         * doc/posix-functions/iswblank.texi: Update.
8420         * doc/posix-functions/iswcntrl.texi: Update.
8421         * doc/posix-functions/iswdigit.texi: Update.
8422         * doc/posix-functions/iswgraph.texi: Update.
8423         * doc/posix-functions/iswlower.texi: Update.
8424         * doc/posix-functions/iswprint.texi: Update.
8425         * doc/posix-functions/iswpunct.texi: Update.
8426         * doc/posix-functions/iswspace.texi: Update.
8427         * doc/posix-functions/iswupper.texi: Update.
8428         * doc/posix-functions/iswxdigit.texi: Update.
8429         * doc/posix-functions/towlower.texi: Update.
8430         * doc/posix-functions/towupper.texi: Update.
8431         * NEWS: Mention the change.
8432         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8433         * modules/mbchar (Dependencies): Likewise.
8434         * modules/mbswidth (Dependencies): Likewise.
8435         * modules/quotearg (Dependencies): Likewise.
8436         * modules/regex (Dependencies): Likewise.
8437         * modules/wcscasecmp (Dependencies): Likewise.
8438         * modules/wcsncasecmp (Dependencies): Likewise.
8439         * modules/wcwidth (Dependencies): Likewise.
8440
8441 2011-02-06  Bruno Haible  <bruno@clisp.org>
8442
8443         New module 'wcswidth'.
8444         * modules/wcswidth: New file.
8445         * lib/wchar.in.h (wcswidth): New declaration.
8446         * lib/wcswidth.c: New file.
8447         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8448         * m4/wcswidth.m4: New file.
8449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8451         REPLACE_WCSWIDTH.
8452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
8453         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
8454         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
8455         * doc/posix-functions/wcswidth.texi: Mention the new module.
8456
8457 2011-02-06  Bruno Haible  <bruno@clisp.org>
8458
8459         New module 'wcstok'.
8460         * modules/wcstok: New file.
8461         * lib/wchar.in.h (wcstok): New declaration.
8462         * lib/wcstok.c: New file.
8463         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
8464         * m4/wcstok.m4: New file.
8465         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
8466         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
8467         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
8468         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
8469         * doc/posix-functions/wcstok.texi: Mention the new module.
8470
8471 2011-02-06  Bruno Haible  <bruno@clisp.org>
8472
8473         New module 'wcsstr'.
8474         * modules/wcsstr: New file.
8475         * lib/wchar.in.h (wcsstr): New declaration.
8476         * lib/wcsstr.c: New file.
8477         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8478         * m4/wcsstr.m4: New file.
8479         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8480         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8481         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8482         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8483         * doc/posix-functions/wcsstr.texi: Mention the new module.
8484
8485 2011-02-06  Bruno Haible  <bruno@clisp.org>
8486
8487         New module 'wcspbrk'.
8488         * modules/wcspbrk: New file.
8489         * lib/wchar.in.h (wcspbrk): New declaration.
8490         * lib/wcspbrk.c: New file.
8491         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8492         * m4/wcspbrk.m4: New file.
8493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8496         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8497         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8498
8499 2011-02-06  Bruno Haible  <bruno@clisp.org>
8500
8501         New module 'wcsspn'.
8502         * modules/wcsspn: New file.
8503         * lib/wchar.in.h (wcsspn): New declaration.
8504         * lib/wcsspn.c: New file.
8505         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8506         * m4/wcsspn.m4: New file.
8507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8509         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8510         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8511         * doc/posix-functions/wcsspn.texi: Mention the new module.
8512
8513 2011-02-06  Bruno Haible  <bruno@clisp.org>
8514
8515         New module 'wcscspn'.
8516         * modules/wcscspn: New file.
8517         * lib/wchar.in.h (wcscspn): New declaration.
8518         * lib/wcscspn.c: New file.
8519         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8520         * m4/wcscspn.m4: New file.
8521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8523         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8524         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8525         * doc/posix-functions/wcscspn.texi: Mention the new module.
8526
8527 2011-02-06  Bruno Haible  <bruno@clisp.org>
8528
8529         New module 'wcsrchr'.
8530         * modules/wcsrchr: New file.
8531         * lib/wchar.in.h (wcsrchr): New declaration.
8532         * lib/wcsrchr.c: New file.
8533         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8534         * m4/wcsrchr.m4: New file.
8535         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8536         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
8537         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
8538         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
8539         * doc/posix-functions/wcsrchr.texi: Mention the new module.
8540
8541 2011-02-06  Bruno Haible  <bruno@clisp.org>
8542
8543         New module 'wcschr'.
8544         * modules/wcschr: New file.
8545         * lib/wchar.in.h (wcschr): New declaration.
8546         * lib/wcschr.c: New file.
8547         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
8548         * m4/wcschr.m4: New file.
8549         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
8550         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
8551         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
8552         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
8553         * doc/posix-functions/wcschr.texi: Mention the new module.
8554
8555 2011-02-06  Bruno Haible  <bruno@clisp.org>
8556
8557         New module 'wcsdup'.
8558         * modules/wcsdup: New file.
8559         * lib/wchar.in.h (wcsdup): New declaration.
8560         * lib/wcsdup.c: New file.
8561         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
8562         * m4/wcsdup.m4: New file.
8563         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
8564         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
8565         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
8566         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
8567         * doc/posix-functions/wcsdup.texi: Mention the new module.
8568
8569 2011-02-06  Bruno Haible  <bruno@clisp.org>
8570
8571         New module 'wcsxfrm'.
8572         * modules/wcsxfrm: New file.
8573         * lib/wchar.in.h (wcsxfrm): New declaration.
8574         * lib/wcsxfrm.c: New file.
8575         * lib/wcsxfrm-impl.h: New file.
8576         * m4/wcsxfrm.m4: New file.
8577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
8578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
8579         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
8580         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
8581         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
8582
8583 2011-02-06  Bruno Haible  <bruno@clisp.org>
8584
8585         New module 'wcscoll'.
8586         * modules/wcscoll: New file.
8587         * lib/wchar.in.h (wcscoll): New declaration.
8588         * lib/wcscoll.c: New file.
8589         * lib/wcscoll-impl.h: New file.
8590         * m4/wcscoll.m4: New file.
8591         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
8592         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
8593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
8594         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
8595         * doc/posix-functions/wcscoll.texi: Mention the new module.
8596
8597 2011-02-06  Bruno Haible  <bruno@clisp.org>
8598
8599         New module 'wcsncasecmp'.
8600         * modules/wcsncasecmp: New file.
8601         * lib/wchar.in.h (wcsncasecmp): New declaration.
8602         * lib/wcsncasecmp.c: New file.
8603         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
8604         * m4/wcsncasecmp.m4: New file.
8605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
8606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
8607         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
8608         HAVE_WCSNCASECMP.
8609         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
8610         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
8611
8612 2011-02-06  Bruno Haible  <bruno@clisp.org>
8613
8614         New module 'wcscasecmp'.
8615         * modules/wcscasecmp: New file.
8616         * lib/wchar.in.h (wcscasecmp): New declaration.
8617         * lib/wcscasecmp.c: New file.
8618         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
8619         * m4/wcscasecmp.m4: New file.
8620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
8621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
8622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
8623         HAVE_WCSCASECMP.
8624         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
8625         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
8626
8627 2011-02-05  Bruno Haible  <bruno@clisp.org>
8628
8629         New module 'wcsncmp'.
8630         * modules/wcsncmp: New file.
8631         * lib/wchar.in.h (wcsncmp): New declaration.
8632         * lib/wcsncmp.c: New file.
8633         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
8634         * m4/wcsncmp.m4: New file.
8635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
8636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
8637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
8638         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
8639         * doc/posix-functions/wcsncmp.texi: Mention the new module.
8640
8641 2011-02-05  Bruno Haible  <bruno@clisp.org>
8642
8643         New module 'wcscmp'.
8644         * modules/wcscmp: New file.
8645         * lib/wchar.in.h (wcscmp): New declaration.
8646         * lib/wcscmp.c: New file.
8647         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
8648         * m4/wcscmp.m4: New file.
8649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
8650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
8651         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
8652         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
8653         * doc/posix-functions/wcscmp.texi: Mention the new module.
8654
8655 2011-02-05  Bruno Haible  <bruno@clisp.org>
8656
8657         New module 'wcsncat'.
8658         * modules/wcsncat: New file.
8659         * lib/wchar.in.h (wcsncat): New declaration.
8660         * lib/wcsncat.c: New file.
8661         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
8662         * m4/wcsncat.m4: New file.
8663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
8664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
8665         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
8666         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
8667         * doc/posix-functions/wcsncat.texi: Mention the new module.
8668
8669 2011-02-05  Bruno Haible  <bruno@clisp.org>
8670
8671         New module 'wcscat'.
8672         * modules/wcscat: New file.
8673         * lib/wchar.in.h (wcscat): New declaration.
8674         * lib/wcscat.c: New file.
8675         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
8676         * m4/wcscat.m4: New file.
8677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
8678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
8679         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
8680         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
8681         * doc/posix-functions/wcscat.texi: Mention the new module.
8682
8683 2011-02-05  Bruno Haible  <bruno@clisp.org>
8684
8685         New module 'wcpncpy'.
8686         * modules/wcpncpy: New file.
8687         * lib/wchar.in.h (wcpncpy): New declaration.
8688         * lib/wcpncpy.c: New file.
8689         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
8690         * m4/wcpncpy.m4: New file.
8691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
8692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
8693         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
8694         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
8695         * doc/posix-functions/wcpncpy.texi: Mention the new module.
8696
8697 2011-02-05  Bruno Haible  <bruno@clisp.org>
8698
8699         New module 'wcsncpy'.
8700         * modules/wcsncpy: New file.
8701         * lib/wchar.in.h (wcsncpy): New declaration.
8702         * lib/wcsncpy.c: New file.
8703         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
8704         * m4/wcsncpy.m4: New file.
8705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
8706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
8707         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
8708         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
8709         * doc/posix-functions/wcsncpy.texi: Mention the new module.
8710
8711 2011-02-05  Bruno Haible  <bruno@clisp.org>
8712
8713         New module 'wcpcpy'.
8714         * modules/wcpcpy: New file.
8715         * lib/wchar.in.h (wcpcpy): New declaration.
8716         * lib/wcpcpy.c: New file.
8717         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
8718         * m4/wcpcpy.m4: New file.
8719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
8720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
8721         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
8722         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
8723         * doc/posix-functions/wcpcpy.texi: Mention the new module.
8724
8725 2011-02-05  Bruno Haible  <bruno@clisp.org>
8726
8727         New module 'wcscpy'.
8728         * modules/wcscpy: New file.
8729         * lib/wchar.in.h (wcscpy): New declaration.
8730         * lib/wcscpy.c: New file.
8731         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
8732         * m4/wcscpy.m4: New file.
8733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
8734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
8735         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
8736         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
8737         * doc/posix-functions/wcscpy.texi: Mention the new module.
8738
8739 2011-02-05  Bruno Haible  <bruno@clisp.org>
8740
8741         New module 'wcsnlen'.
8742         * modules/wcsnlen: New file.
8743         * lib/wchar.in.h (wcsnlen): New declaration.
8744         * lib/wcsnlen.c: New file.
8745         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
8746         * m4/wcsnlen.m4: New file.
8747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
8748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
8749         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
8750         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
8751         * doc/posix-functions/wcsnlen.texi: Mention the new module.
8752
8753 2011-02-05  Bruno Haible  <bruno@clisp.org>
8754
8755         New module 'wcslen'.
8756         * modules/wcslen: New file.
8757         * lib/wchar.in.h (wcslen): New declaration.
8758         * lib/wcslen.c: New file.
8759         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
8760         * m4/wcslen.m4: New file.
8761         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
8762         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
8763         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
8764         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
8765         * doc/posix-functions/wcslen.texi: Mention the new module.
8766
8767 2011-02-05  Bruno Haible  <bruno@clisp.org>
8768
8769         New module 'wmemset'.
8770         * modules/wmemset: New file.
8771         * lib/wchar.in.h (wmemset): New declaration.
8772         * lib/wmemset.c: New file.
8773         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
8774         * m4/wmemset.m4: New file.
8775         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
8776         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
8777         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
8778         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
8779         * doc/posix-functions/wmemset.texi: Mention the new module.
8780
8781 2011-02-05  Bruno Haible  <bruno@clisp.org>
8782
8783         New module 'wmemmove'.
8784         * modules/wmemmove: New file.
8785         * lib/wchar.in.h (wmemmove): New declaration.
8786         * lib/wmemmove.c: New file.
8787         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
8788         * m4/wmemmove.m4: New file.
8789         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
8790         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
8791         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
8792         HAVE_WMEMMOVE.
8793         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
8794         * doc/posix-functions/wmemmove.texi: Mention the new module.
8795
8796 2011-02-05  Bruno Haible  <bruno@clisp.org>
8797
8798         New module 'wmemcpy'.
8799         * modules/wmemcpy: New file.
8800         * lib/wchar.in.h (wmemcpy): New declaration.
8801         * lib/wmemcpy.c: New file.
8802         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
8803         * m4/wmemcpy.m4: New file.
8804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
8805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
8806         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
8807         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
8808         * doc/posix-functions/wmemcpy.texi: Mention the new module.
8809
8810 2011-02-05  Bruno Haible  <bruno@clisp.org>
8811
8812         New module 'wmemcmp'.
8813         * modules/wmemcmp: New file.
8814         * lib/wchar.in.h (wmemcmp): New declaration.
8815         * lib/wmemcmp.c: New file.
8816         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
8817         * m4/wmemcmp.m4: New file.
8818         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
8819         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
8820         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
8821         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
8822         * doc/posix-functions/wmemcmp.texi: Mention the new module.
8823
8824 2011-02-07  Jim Meyering  <meyering@redhat.com>
8825
8826         di-set, ino-map: new modules, from coreutils
8827         * lib/di-set.c: New file.
8828         * lib/di-set.h: Likewise.
8829         * lib/ino-map.c: Likewise.
8830         * lib/ino-map.h: Likewise.
8831         * modules/di-set: Likewise.
8832         * modules/di-set-tests: Likewise.
8833         * modules/ino-map: Likewise.
8834         * modules/ino-map-tests: Likewise.
8835         * tests/test-di-set.c: Likewise.
8836         * tests/test-ino-map.c: Likewise.
8837
8838 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
8839
8840         getloadavg: merge minor changes from Emacs
8841
8842         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
8843         (getloadavg): Use memset, not bzero.
8844
8845         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
8846         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8847         clash (bug#86).
8848
8849 2010-11-14  Bruno Haible  <bruno@clisp.org>
8850
8851         Allow multiple gnulib generated replacements to coexist.
8852         * lib/getopt.in.h (struct option): Avoid identical redefinition.
8853         * lib/inttypes.in.h (imaxdiv_t): Likewise.
8854         * lib/langinfo.in.h (nl_item): Likewise.
8855         * lib/math.in.h (_NaN, NAN): Likewise.
8856         * lib/netdb.in.h (struct addrinfo): Likewise.
8857         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
8858         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
8859         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
8860         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
8861         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
8862         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
8863         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
8864         pthread_mutexattr_init, pthread_mutexattr_settype,
8865         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
8866         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
8867         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
8868         pthread_spin_trylock, pthread_spin_unlock): Likewise.
8869         * lib/sched.in.h (struct sched_param): Likewise.
8870         * lib/se-selinux.in.h (security_class_t, security_context_t,
8871         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
8872         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
8873         lsetfilecon, fsetfilecon, security_check_context,
8874         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
8875         Likewise.
8876         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
8877         Likewise.
8878         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
8879         _gl_function_taking_int_returning_void_t, union sigval,
8880         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
8881         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
8882         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8883         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
8884         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
8885         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
8886         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
8887         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
8888         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
8889         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
8890         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
8891         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
8892         socklen_t, rpl_fd_isset): Likewise.
8893         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
8894         * lib/sys_time.in.h (struct timeval): Likewise.
8895         * lib/sys_times.in.h (struct tms): Likewise.
8896         * lib/sys_utsname.in.h (struct utsname):
8897         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
8898         * lib/unistd.in.h (getpagesize): Likewise.
8899         * lib/wchar.in.h (mbstate_t): Likewise.
8900         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
8901         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
8902         towlower, towupper): Likewise.
8903         Reported by Sam Steingold <sds@gnu.org>.
8904
8905 2011-02-05  Eric Blake  <eblake@redhat.com>
8906
8907         unsetenv: work around Haiku issues
8908         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
8909         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
8910
8911 2010-12-30  Bruce Korb  <bkorb@gnu.org>
8912
8913         libposix: avoid calling error() within libposix
8914         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
8915         is defined.
8916
8917 2011-02-05  Eric Blake  <eblake@redhat.com>
8918
8919         strerror_r-posix: port to cygwin
8920         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
8921         implementation.
8922         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
8923         * tests/test-strerror_r.c (main): Fix test.
8924         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8925         issue.
8926
8927 2011-02-05  Bruno Haible  <bruno@clisp.org>
8928
8929         New module 'wmemchr'.
8930         * modules/wmemchr: New file.
8931         * lib/wchar.in.h (wmemchr): New declaration.
8932         * lib/wmemchr.c: New file.
8933         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
8934         * m4/wmemchr.m4: New file.
8935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
8936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
8937         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
8938         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
8939         * doc/posix-functions/wmemchr.texi: Mention the new module.
8940
8941 2011-02-04  Eric Blake  <eblake@redhat.com>
8942
8943         fdopendir: detect FreeBSD bug
8944         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
8945         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
8946
8947 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8948
8949         stdbool: do not define HAVE_STDBOOL_H
8950         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
8951         AC_HEADER_STDBOOL.  All uses changed.  Do not define
8952         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
8953         imported from the latest Autoconf git.  It was motivated by Emacs,
8954         which uses gnulib but does not need HAVE_STDBOOL_H.
8955
8956 2011-02-04  Bruno Haible  <bruno@clisp.org>
8957
8958         wcsnrtombs: Prepare for new module wwcsnrtombs.
8959         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
8960         * lib/wcsnrtombs.c: Include it.
8961         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
8962
8963         wcsrtombs: Prepare for new module wwcsrtombs.
8964         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
8965         * lib/wcsrtombs.c: Include it.
8966         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
8967
8968         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
8969         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
8970         * lib/mbsnrtowcs.c: Include it.
8971         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
8972
8973         mbsrtowcs: Prepare for new module mbsrtowwcs.
8974         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
8975         * lib/mbsrtowcs.c: Include it.
8976         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
8977
8978 2011-02-04  Bruno Haible  <bruno@clisp.org>
8979
8980         vasnprintf: Reduce use of malloc for small format strings.
8981         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
8982         (arguments): Add room for the first 7 arguments.
8983         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
8984         (char_directives, u8_directives, u16_directives, u32_directives): Add
8985         room for the first 7 directives.
8986         * lib/printf-parse.c: Include <string.h>.
8987         (PRINTF_PARSE): Change memory handling code so that it uses the first
8988         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
8989         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
8990         Reported by Pádraig Brady <P@draigbrady.com>.
8991
8992 2011-01-31  Eric Blake  <eblake@redhat.com>
8993
8994         dup2: work around Haiku bug
8995         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
8996         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
8997         * doc/posix-functions/dup2.texi (dup2): Document the bug.
8998         * tests/test-dup2.c (main): Enhance test.
8999
9000 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9001
9002         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9003         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9004         declared by eglibc 2.11.2.
9005         * lib/stdio.in.h: Likewise.
9006
9007 2011-01-31  Eric Blake  <eblake@redhat.com>
9008
9009         ignore-value: add missing test dependency
9010         * tests/test-ignore-value.c: Revert previous change; stdio.h
9011         provides off_t.
9012         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9013
9014 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9015
9016         mktime: clarify long_int width checking
9017         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9018         the top level, to make it clearer that the assumption about
9019         long_int width is being checked.  See
9020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9021
9022 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9023
9024         ignore-value: Fix self-test.
9025         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9026
9027 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9028
9029         TYPE_MAXIMUM: avoid theoretically undefined behavior
9030         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9031         negative number, which the C Standard says has undefined behavior.
9032         In practice this is not a problem, but might as well do it by the book.
9033         Reported by Rich Felker and Eric Blake; see
9034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9035         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9036         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9037         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9038         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9039         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9040         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9041
9042         mktime: #undef mktime before #defining it
9043         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9044
9045         mktime: systematically normalize tm_isdst comparisons
9046         * lib/mktime.c (isdst_differ): New function.
9047         (__mktime_internal): Use it systematically for all isdst comparisons.
9048         This completes the fix for libc BZ #6723, and removes the need for
9049         normalizing tm_isdst.  See
9050         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9051         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9052
9053         mktime: fix some integer overflow issues and sidestep the rest
9054
9055         This was prompted by a bug report by Benjamin Lindner for MinGW
9056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9057         His bug is due to signed integer overflow (0 - INT_MIN), and I
9058         I scanned through mktime.c looking for other integer overflow
9059         problems, fixing all the bugs I found.
9060
9061         Although the C Standard says the resulting code is still not safe
9062         in the presence of integer overflow, in practice it should be good
9063         enough for all real-world two's-complement implementations, except
9064         for debugging environments that deliberately trap on integer
9065         overflow (e.g., gcc -ftrapv).
9066
9067         * lib/mktime.c (WRAPV): New macro.
9068         (SHR): Also check that long_int and time_t shift right in the
9069         usual way, before using the fast-but-unportable method.
9070         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9071         used.  The code already assumed two's complement, so there's
9072         no need to test for alternatives.  All uses removed.
9073         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9074         the C standard.  Problem reported by Rich Felker in
9075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9076         (twos_complement_arithmetic): Also check long_int and time_t.
9077         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9078         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9079         (__mktime_internal): Avoid integer overflow with unary subtraction
9080         in two instances where -1 - X is an adequate replacement for -X,
9081         since the calculations are approximate.
9082
9083 2011-01-29  Eric Blake  <eblake@redhat.com>
9084
9085         mktime: avoid infinite loop
9086         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9087         type; behavior is still undefined but portable to all known targets.
9088         Reported by Rich Felker.
9089
9090 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9091
9092         rename, unlink, same-inode: Relicense.
9093         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9094         * modules/unlink (License): Likewise.
9095         * modules/same-inode (License): Likewise.
9096
9097 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9098
9099         mktime: avoid problems on NetBSD 5 / i386
9100         * lib/mktime.c (long_int): New type.  This works around a problem
9101         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9102         but time_t is 64 bits, and where I expect the existing code is
9103         wrong in some cases.
9104         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9105         (ydhms_diff): Bring back the compile-time check for wide-enough
9106         year and yday.
9107
9108         mktime: fix misspelling in comment
9109         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9110         This merges all recent glibc changes of importance.
9111
9112 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9113
9114         move-if-change: cope with concurrent mv of identical file.
9115         * build-aux/move-if-change (CMPPROG): Accept environment
9116         variable as an override for `cmp'.
9117         (usage): Document CMPPROG.
9118         Adjust comparison to drop stdout.  Cope with failure of mv if
9119         the target file exists and is identical to the source, for
9120         parallel builds.
9121         Report from H.J. Lu against binutils in PR binutils/12283.
9122
9123 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9124
9125         * users.txt: Mention sharutils.
9126
9127 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9128
9129         * users.txt: Mention OATH Toolkit.
9130
9131 2011-01-27  Bruno Haible  <bruno@clisp.org>
9132
9133         Prepare for supporting FreeBSD 10.
9134         * build-aux/config.libpath: Remove handling of freebsd1*.
9135
9136 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9137
9138         Prepare for supporting FreeBSD 10.
9139         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9140         match FreeBSD 10.0.
9141
9142 2011-01-27  Bruno Haible  <bruno@clisp.org>
9143
9144         vma-iter, get-rusage-as: Add OpenBSD support.
9145         * modules/vma-iter (configure.ac): Test for mquery.
9146         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9147         * lib/vma-iter.c: Include <sys/mman.h>.
9148         (vma_iterate): Add an implementation based on mquery().
9149         * lib/resource-ext.h (get_rusage_as): Update comments.
9150         * lib/get-rusage-as.c: Likewise.
9151         * lib/get-rusage-data.c: Likewise.
9152
9153 2011-01-26  Karl Berry  <karl@gnu.org>
9154
9155         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9156         variables to make it easier to override the makeinfo program used.
9157
9158 2011-01-26  Eric Blake  <eblake@redhat.com>
9159
9160         fcntl: work around Haiku F_DUPFD bugs
9161         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9162         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9163         cloexec bit on duplication.
9164         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9165
9166 2011-01-26  Bruno Haible  <bruno@clisp.org>
9167
9168         Enable memory leak tests on AIX.
9169         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9170         * tests/test-fprintf-posix3.c (main): Likewise.
9171
9172 2011-01-26  Bruno Haible  <bruno@clisp.org>
9173
9174         Tests for module 'get-rusage-data'.
9175         * modules/get-rusage-data-tests: New file.
9176         * tests/test-get-rusage-data.c: New file.
9177
9178         New module 'get-rusage-data'.
9179         * lib/resource-ext.h (get_rusage_data): New declaration.
9180         * lib/get-rusage-data.c: New file.
9181         * modules/get-rusage-data: New file.
9182
9183 2011-01-25  Bruno Haible  <bruno@clisp.org>
9184
9185         get-rusage-as: Allow for easier testing.
9186         * lib/resource-ext.h (get_rusage_as): Add comment.
9187         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9188         (main): New function for interactive testing.
9189
9190 2011-01-25  Bruno Haible  <bruno@clisp.org>
9191
9192         vma-iter: Treat Haiku like BeOS.
9193         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9194         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9195
9196 2011-01-25  Eric Blake  <eblake@redhat.com>
9197
9198         c-stack: fix regression on cygwin when libsigsegv is present
9199         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9200
9201 2011-01-24  Bruno Haible  <bruno@clisp.org>
9202
9203         vma-iter: Avoid empty intervals.
9204         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9205         on an empty interval.
9206
9207 2011-01-24  Jim Meyering  <meyering@redhat.com>
9208
9209         u64: remove unnecessary #include
9210         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9211
9212 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9213
9214         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9215         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9216
9217 2011-01-23  Bruno Haible  <bruno@clisp.org>
9218
9219         New module 'vma-iter'.
9220         * lib/vma-iter.h: New file.
9221         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9222         * modules/vma-iter: New file.
9223         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9224         for get_rusage_as_via_iterator.
9225         (vma_iterate_callback): New function.
9226         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9227         * modules/get-rusage-as (Depends-on): Add vma-iter.
9228
9229 2011-01-23  Bruno Haible  <bruno@clisp.org>
9230
9231         uninorm: Tweak includes.
9232         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9233         Reported by Jim Meyering.
9234
9235 2011-01-23  Bruno Haible  <bruno@clisp.org>
9236
9237         get-rusage-as: Improve on NetBSD.
9238         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9239         /proc, like on FreeBSD.
9240
9241 2011-01-23  Jim Meyering  <meyering@redhat.com>
9242
9243         xreadlink.h: remove unnecessary #include
9244         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9245
9246         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9247         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9248
9249 2011-01-23  Bruno Haible  <bruno@clisp.org>
9250
9251         get-rusage-as: Fix bug.
9252         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9253         original limit when aborting the first loop.
9254
9255 2011-01-23  Bruno Haible  <bruno@clisp.org>
9256
9257         wctype: Ensure valid C syntax.
9258         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9259         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9260
9261 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9262
9263         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9264         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9265         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9266         as they are needed only for configure's test case.
9267         This removes two unnecessary symbols from config.h.
9268
9269         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9270         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9271         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9272         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9273         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9274         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9275         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9276         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9277         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9278         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9279         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9280         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9281         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9282         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9283         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9284         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9285         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9286         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9287
9288 2011-01-21  Eric Blake  <eblake@redhat.com>
9289
9290         maintainer-makefile: work with older git for submodule check
9291         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9292         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9293         Reported by Matthias Bolte.
9294
9295         bootstrap: minor portability fixes
9296         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9297         (usage): Omit leading capital and trailing . on help phrases, per
9298         GNU Coding Standards.
9299         (check_versions, top level): Prefix messages with script name.
9300
9301 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9302
9303         bootstrap: support --no-git option
9304         * build-aux/bootstrap: Add --no-git option, to be used when
9305         --gnulib-srcdir points to the exact desired checkout.
9306
9307 2011-01-21  Eric Blake  <eblake@redhat.com>
9308
9309         strerror_r-posix: work with glibc 2.13
9310         * lib/strerror_r.c (strerror_r): Fix return type.
9311
9312 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9313             Bruno Haible  <bruno@clisp.org>
9314
9315         uN_strstr: New unit tests.
9316         * modules/unistr/u8-strstr-tests: New file.
9317         * modules/unistr/u16-strstr-tests: New file.
9318         * modules/unistr/u32-strstr-tests: New file.
9319         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9320         * tests/unistr/test-u8-strstr.c: New file.
9321         * tests/unistr/test-u16-strstr.c: New file.
9322         * tests/unistr/test-u32-strstr.c: New file.
9323
9324 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9325             Bruno Haible  <bruno@clisp.org>
9326
9327         Make uN_strstr functions O(n) worst-case.
9328         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9329         16-bit and 32-bit unit cases, use the unibyte algorithm from
9330         lib/mbsstr.c.
9331         * lib/unistr/u8-strstr.c: Include <string.h>.
9332         (UNIT_IS_UINT8_T): New macro.
9333         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9334         (U_STRLEN, U_STRNLEN): New macros.
9335         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9336         (U_STRLEN, U_STRNLEN): New macros.
9337         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9338         (configure.ac): Update required libunistring version.
9339         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9340         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9341         malloca.
9342         (configure.ac): Update required libunistring version.
9343         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9344         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9345         malloca.
9346         (configure.ac): Update required libunistring version.
9347
9348 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9349             Bruno Haible  <bruno@clisp.org>
9350
9351         Prepare for faster uN_strstr functions.
9352         * lib/str-kmp.h: Support definable UNITs.
9353         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9354         needle_len argument.
9355         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9356         * lib/mbscasestr.c (mbscasestr): Likewise.
9357
9358 2011-01-21  Pádraig Brady <P@draigBrady.com>
9359
9360         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9361         * tests/test-malloca.c (main): Unset the environment variable
9362         to greatly speed up the test.
9363         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9364         * modules/malloca-tests: Depend on unsetenv.
9365
9366 2011-01-21  Pádraig Brady <P@draigBrady.com>
9367
9368         ignore-value: remove stdint dependency
9369         * lib/ignore-value.h: Remove <stdint.h>
9370         * modules/ignore-value: Remove stdint dependency.
9371
9372 2011-01-21  Jim Meyering  <meyering@redhat.com>
9373
9374         maint.mk: adjust variable name to be consistent with other gl_ vars
9375         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9376         to be lower case.
9377
9378 2011-01-20  Jim Meyering  <meyering@redhat.com>
9379
9380         maint.mk: make "check" depend on public-submodule-commit by default
9381         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9382
9383 2011-01-20  Bruno Haible  <bruno@clisp.org>
9384
9385         mbfile, mbiter: Complete change from 2008-12-21.
9386         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9387         * m4/mbiter.m4 (gl_MBITER): Likewise.
9388
9389 2011-01-20  Jim Meyering  <meyering@redhat.com>
9390
9391         init.sh: insert space between each function name and "()"
9392         * tests/init.sh: Make it a little easier to see that a function's
9393         name is "warn_", and not "warn" when looking at the first part of
9394         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9395
9396 2011-01-20  Jim Meyering  <meyering@redhat.com>
9397
9398         mountlist: clean up code formatting
9399         * lib/mountlist.c (read_file_system_list): Split a long line,
9400         correct bracing style, use NULL in place of "(struct statfs *)0",
9401         don't parenthesize return value, add spaces around "=" and after
9402         ";-in-for-stmt".
9403
9404 2011-01-14  Markus Duft <mduft@gentoo.org>
9405
9406         mountlist: add support for Interix
9407         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9408         Apply statvfs to all entries of /dev/fs.
9409         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9410         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9411
9412 2011-01-20  Jim Meyering  <meyering@redhat.com>
9413
9414         maint.mk: improve the public-submodule-commit rule
9415         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9416         to suppress printing of its commands... unless V=1.
9417         Add git submodule's --quiet option to suppress printing of e.g.,
9418         "Entering gnulib" output.
9419         "cd" into $(srcdir) before running git submodule.
9420
9421 2011-01-20  Bruno Haible  <bruno@clisp.org>
9422
9423         include_next: Fix bug introduced on 2011-01-18.
9424         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9425         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9426         ac_cv_header_... variable if the second argument is not 'check'.
9427         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9428         gl_NEXT_HEADERS_INTERNAL.
9429
9430 2011-01-20  Bruno Haible  <bruno@clisp.org>
9431
9432         Allow the user to avoid the GNULIB_TEST_* macros.
9433         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9434         Suggested by Paul Eggert.
9435
9436 2011-01-14  Jim Meyering  <meyering@redhat.com>
9437
9438         bootstrap: avoid failure when there is no .gitmodules file
9439         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9440         has been assigned to, even when its value is the empty string.
9441         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9442         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9443         Reported by John W. Eaton <jwe@gnu.org>.
9444
9445 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9446
9447         assume <ctype.h>, ..., <time.h> exist
9448         For years gnulib has been assuming the existence of the headers
9449         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9450         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9451         them, since they don't appear to be needed.
9452         * README (Portability guidelines): Document this.
9453         * lib/flock.c: Assume <fcntl.h> exists.
9454         * lib/regex_internal.h: Assume <locale.h> exists.
9455         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
9456         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
9457         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
9458         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
9459         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
9460         * m4/regex.m4 (gl_REGEX): Likewise.
9461         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
9462         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
9463         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
9464         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
9465         * tests/test-argp.c: Likewise.
9466         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
9467
9468         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
9469         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
9470         AA_APPLE_UNIVERSAL_BUILD.  See
9471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9472         * NEWS: Document this.
9473
9474 2011-01-19  Eric Blake  <eblake@redhat.com>
9475
9476         c-stack: assume stack overflow if SA_SIGINFO unsupported
9477         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9478         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9479         sigaction will work.
9480         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9481         behavior match Linux.
9482         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9483
9484         stdbool-tests: accomodate Haiku
9485         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9486
9487         binary-io: fix O_TEXT on Haiku
9488         * modules/binary-io (Depends-on): Add fcntl-h.
9489         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9490         than blindly undefining O_TEXT.
9491         Reported by Scott McCreary.
9492
9493 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9494
9495         include_next: do not check for standard headers like stddef.h
9496
9497         I found this problem when modifying Emacs to use gnulib.
9498         I noticed that it added HAVE_STDDEF_H to config.h, even though
9499         gnulib always assumes <stddef.h> exists as per README and this
9500         symbol is unnecessary.
9501         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9502         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9503         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9504         faster for headers like stddef.h that are known to exist.
9505         (gl_CHECK_NEXT_HEADERS): Use it.
9506         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9507         rather than gl_CHECK_NEXT_HEADERS.
9508         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9509         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9510
9511 2011-01-18  Eric Blake  <eblake@redhat.com>
9512
9513         ansi-c++-opt: skip C++ dependency style if C++ is unused
9514         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9515         tests when we know C++ compilation is not desired.
9516         Reported by Scott McCreary.
9517
9518 2011-01-18  Bruno Haible  <bruno@clisp.org>
9519
9520         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9521         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9522         (main): Perform test also when getrlimit and setrlimit don't exist or
9523         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9524         limiting the address space size using setrlimit, compare the address
9525         space size before and after the the test.
9526         * tests/test-dprintf-posix2.c: Likewise.
9527         * tests/test-fprintf-posix3.sh: Update skip messages.
9528         * tests/test-dprintf-posix2.sh: Likewise.
9529         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9530         * modules/dprintf-posix-tests (Depends-on): Likewise.
9531         Reported by Bruce Korb <bkorb@gnu.org> and
9532         Gary V. Vaughan <gary@gnu.org>.
9533
9534 2011-01-18  Bruno Haible  <bruno@clisp.org>
9535
9536         get-rusage-as: Improvement for Cygwin.
9537         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
9538         areas that are merely reserved.
9539
9540 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9541
9542         strftime: remove dependencies on multibyte modules
9543
9544         strftime depended on mbrlen, mbsinit, and wchar, but these modules
9545         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
9546         only if __osf__ is defined, and I suspect OSF doesn't need these
9547         other modules.  If my guess is wrong, we'll need to come up with a
9548         variant of strftime that doesn't need the multibyte modules.
9549
9550         I discovered this problem when attempting modify Emacs to use the
9551         strftime module.  With the previous gnulib, this caused Emacs to
9552         need 31 new files, ranging from lib/config.charset to
9553         m4/wint_t.m4.  This was overkill and I expect would be offputting
9554         to the Emacs maintainers.  After this change, only 6 new files are
9555         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
9556         stdbool.m4, and tm_gmtoff.m4.
9557
9558         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
9559         Suggested by Bruno Haible in
9560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
9561         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
9562         and do not check for wchar.h.
9563         * modules/strftime (Files): Remove m4/mbstate_t.m4.
9564         (Depends-on): Remove mbrlen, mbsinit, wchar.
9565
9566 2011-01-18  Bruno Haible  <bruno@clisp.org>
9567
9568         Tests for module 'get-rusage-as'.
9569         * modules/get-rusage-as-tests: New file.
9570         * tests/test-get-rusage-as.c: New file.
9571
9572         New module 'get-rusage-as'.
9573         * modules/get-rusage-as: New file.
9574         * lib/resource-ext.h: New file.
9575         * lib/get-rusage-as.c: New file.
9576
9577 2011-01-17  Eric Blake  <eblake@redhat.com>
9578
9579         sigaction: relax license from LGPLv3+ to LGPLv2+
9580         * modules/sigaction (License): Relax to LGPLv2+.
9581
9582 2011-01-14  Bruno Haible  <bruno@clisp.org>
9583
9584         filemode: Make function declarations usable in C++ mode.
9585         * lib/filemode.h: Enclose function declarations in extern "C" block.
9586         Reported by John W. Eaton <jwe@gnu.org>.
9587
9588 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
9589
9590         save-cwd: no longer include "xgetcwd.h"
9591         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
9592         This avoids a compilation failure in projects that use save-cwd
9593         without also using the xgetcwd module.
9594
9595 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9596
9597         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
9598         This is so that a program like Emacs, which needs only dtoastr,
9599         does not have to bother with distributing and compiling ftoastr
9600         and ldtoastr.
9601         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
9602         * modules/dtoastr, modules/ldtoastr: New files.
9603         * modules/ftoastr: Now works just for 'float'.
9604         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
9605         (Makefile.am): Remove ftoastr.h (not needed and no effect),
9606         dtoastr.c, ldtoastr.c.
9607
9608 2011-01-11  Jim Meyering  <meyering@redhat.com>
9609
9610         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
9611         There is no need to work around the lack of the fchdir function,
9612         since gnulib can now provide a replacement when required.
9613         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
9614         * modules/save-cwd (Depends-on): Add fchdir.
9615
9616 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9617
9618         openat, save-cwd: avoid xmalloc
9619
9620         This removes a direct (but undocumented) dependency of openat on
9621         xalloc, along with an indirect dependency via save-cwd.  It also
9622         removes a dependency of save-cwd on xgetcwd, and thereby
9623         indirectly on xalloc.  This change causes the openat substitute
9624         to fall back on save_cwd when memory is tight, and for save_cwd to
9625         fail instead of dying when memory is tight, but that's good enough.
9626         Problem and initial idea for fix reported by Bastien Roucaries in
9627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
9628
9629         * lib/openat-proc.c: Include stdlib.h (for malloc), not
9630         xalloc.h (for xmalloc).
9631         (openat_proc_name): Use malloc, not xmalloc.
9632         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
9633         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
9634
9635         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
9636         This avoids heap allocation for file names whose lengths are in
9637         the range 512..1023, with the upper bound increasing to at most
9638         4031 depending on the platform's PATH_MAX.  (We do not want
9639         pathmax.h here as it might supply a non-constant PATH_MAX.)
9640         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
9641         Perhaps they should be moved to malloca.h?
9642         (OPENAT_BUFFER_SIZE): Use them.
9643
9644 2011-01-10  Bruno Haible  <bruno@clisp.org>
9645
9646         doc: Update users.txt.
9647         * users.txt: Add recutils.
9648
9649 2011-01-09  Karl Berry  <karl@gnu.org>
9650
9651         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
9652
9653         * doc/configmake.texi: New file.
9654         * doc/gnulib.texi: Include it.
9655         * modules/configmake: Move documentation from here.
9656
9657 2011-01-09  Bruno Haible  <bruno@clisp.org>
9658
9659         Update to Unicode 6.0.0.
9660         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
9661         (get_lbp): Update for Unicode 6.0.0.
9662         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
9663         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
9664         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
9665         U+11001, U+11038..U+11046. Remove U+06DE.
9666         (uc_width): Fix bounds of planes.
9667         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9668         lib/uniwidth/width.c.
9669         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
9670         trailing whitespace removed.
9671         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
9672         without comments, but with the original copyright notice.
9673         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
9674         * lib/unicase/ignorable.h: Likewise.
9675         * lib/unicase/tocasefold.h: Likewise.
9676         * lib/unicase/tolower.h: Likewise.
9677         * lib/unicase/totitle.h: Likewise.
9678         * lib/unicase/toupper.h: Likewise.
9679         * lib/unictype/bidi_of.h: Likewise.
9680         * lib/unictype/blocks.h: Likewise.
9681         * lib/unictype/categ_C.h: Likewise.
9682         * lib/unictype/categ_Cn.h: Likewise.
9683         * lib/unictype/categ_L.h: Likewise.
9684         * lib/unictype/categ_Ll.h: Likewise.
9685         * lib/unictype/categ_Lm.h: Likewise.
9686         * lib/unictype/categ_Lo.h: Likewise.
9687         * lib/unictype/categ_Lu.h: Likewise.
9688         * lib/unictype/categ_M.h: Likewise.
9689         * lib/unictype/categ_Mc.h: Likewise.
9690         * lib/unictype/categ_Me.h: Likewise.
9691         * lib/unictype/categ_Mn.h: Likewise.
9692         * lib/unictype/categ_N.h: Likewise.
9693         * lib/unictype/categ_Nd.h: Likewise.
9694         * lib/unictype/categ_No.h: Likewise.
9695         * lib/unictype/categ_P.h: Likewise.
9696         * lib/unictype/categ_Po.h: Likewise.
9697         * lib/unictype/categ_S.h: Likewise.
9698         * lib/unictype/categ_Sc.h: Likewise.
9699         * lib/unictype/categ_Sk.h: Likewise.
9700         * lib/unictype/categ_Sm.h: Likewise.
9701         * lib/unictype/categ_So.h: Likewise.
9702         * lib/unictype/categ_of.h: Likewise.
9703         * lib/unictype/combining.h: Likewise.
9704         * lib/unictype/ctype_alnum.h: Likewise.
9705         * lib/unictype/ctype_alpha.h: Likewise.
9706         * lib/unictype/ctype_graph.h: Likewise.
9707         * lib/unictype/ctype_lower.h: Likewise.
9708         * lib/unictype/ctype_print.h: Likewise.
9709         * lib/unictype/ctype_punct.h: Likewise.
9710         * lib/unictype/ctype_upper.h: Likewise.
9711         * lib/unictype/decdigit.h: Likewise.
9712         * lib/unictype/digit.h: Likewise.
9713         * lib/unictype/numeric.h: Likewise.
9714         * lib/unictype/pr_alphabetic.h: Likewise.
9715         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9716         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9717         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9718         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9719         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9720         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9721         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9722         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9723         * lib/unictype/pr_case_ignorable.h: Likewise.
9724         * lib/unictype/pr_cased.h: Likewise.
9725         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
9726         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
9727         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
9728         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
9729         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
9730         * lib/unictype/pr_combining.h: Likewise.
9731         * lib/unictype/pr_composite.h: Likewise.
9732         * lib/unictype/pr_currency_symbol.h: Likewise.
9733         * lib/unictype/pr_decimal_digit.h: Likewise.
9734         * lib/unictype/pr_deprecated.h: Likewise.
9735         * lib/unictype/pr_format_control.h: Likewise.
9736         * lib/unictype/pr_grapheme_base.h: Likewise.
9737         * lib/unictype/pr_grapheme_extend.h: Likewise.
9738         * lib/unictype/pr_grapheme_link.h: Likewise.
9739         * lib/unictype/pr_id_continue.h: Likewise.
9740         * lib/unictype/pr_id_start.h: Likewise.
9741         * lib/unictype/pr_ideographic.h: Likewise.
9742         * lib/unictype/pr_lowercase.h: Likewise.
9743         * lib/unictype/pr_math.h: Likewise.
9744         * lib/unictype/pr_numeric.h: Likewise.
9745         * lib/unictype/pr_other_alphabetic.h: Likewise.
9746         * lib/unictype/pr_other_id_continue.h: Likewise.
9747         * lib/unictype/pr_other_math.h: Likewise.
9748         * lib/unictype/pr_punctuation.h: Likewise.
9749         * lib/unictype/pr_sentence_terminal.h: Likewise.
9750         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9751         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9752         * lib/unictype/pr_unified_ideograph.h: Likewise.
9753         * lib/unictype/pr_uppercase.h: Likewise.
9754         * lib/unictype/pr_xid_continue.h: Likewise.
9755         * lib/unictype/pr_xid_start.h: Likewise.
9756         * lib/unictype/scripts.h: Likewise.
9757         * lib/unictype/scripts_byname.gperf: Likewise.
9758         * lib/unictype/sy_java_ident.h: Likewise.
9759         * lib/unigbrk/gbrkprop.h: Likewise.
9760         * lib/unilbrk/lbrkprop1.h: Likewise.
9761         * lib/unilbrk/lbrkprop2.h: Likewise.
9762         * lib/uninorm/decomposition-table2.h: Likewise.
9763         * lib/uniwbrk/wbrkprop.h: Likewise.
9764         * tests/unicase/test-cased.c: Likewise.
9765         * tests/unicase/test-ignorable.c: Likewise.
9766         * tests/unicase/test-uc_tolower.c: Likewise.
9767         * tests/unicase/test-uc_totitle.c: Likewise.
9768         * tests/unicase/test-uc_toupper.c: Likewise.
9769         * tests/unictype/test-categ_C.c: Likewise.
9770         * tests/unictype/test-categ_Cn.c: Likewise.
9771         * tests/unictype/test-categ_L.c: Likewise.
9772         * tests/unictype/test-categ_Ll.c: Likewise.
9773         * tests/unictype/test-categ_Lm.c: Likewise.
9774         * tests/unictype/test-categ_Lo.c: Likewise.
9775         * tests/unictype/test-categ_Lu.c: Likewise.
9776         * tests/unictype/test-categ_M.c: Likewise.
9777         * tests/unictype/test-categ_Mc.c: Likewise.
9778         * tests/unictype/test-categ_Me.c: Likewise.
9779         * tests/unictype/test-categ_Mn.c: Likewise.
9780         * tests/unictype/test-categ_N.c: Likewise.
9781         * tests/unictype/test-categ_Nd.c: Likewise.
9782         * tests/unictype/test-categ_No.c: Likewise.
9783         * tests/unictype/test-categ_P.c: Likewise.
9784         * tests/unictype/test-categ_Po.c: Likewise.
9785         * tests/unictype/test-categ_S.c: Likewise.
9786         * tests/unictype/test-categ_Sc.c: Likewise.
9787         * tests/unictype/test-categ_Sk.c: Likewise.
9788         * tests/unictype/test-categ_Sm.c: Likewise.
9789         * tests/unictype/test-categ_So.c: Likewise.
9790         * tests/unictype/test-ctype_alnum.c: Likewise.
9791         * tests/unictype/test-ctype_alpha.c: Likewise.
9792         * tests/unictype/test-ctype_graph.c: Likewise.
9793         * tests/unictype/test-ctype_lower.c: Likewise.
9794         * tests/unictype/test-ctype_print.c: Likewise.
9795         * tests/unictype/test-ctype_punct.c: Likewise.
9796         * tests/unictype/test-ctype_upper.c: Likewise.
9797         * tests/unictype/test-decdigit.h: Likewise.
9798         * tests/unictype/test-digit.h: Likewise.
9799         * tests/unictype/test-numeric.h: Likewise.
9800         * tests/unictype/test-pr_alphabetic.c: Likewise.
9801         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9802         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9803         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9804         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9805         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9806         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9807         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9808         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9809         * tests/unictype/test-pr_case_ignorable.c: Likewise.
9810         * tests/unictype/test-pr_cased.c: Likewise.
9811         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
9812         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
9813         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
9814         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
9815         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
9816         * tests/unictype/test-pr_combining.c: Likewise.
9817         * tests/unictype/test-pr_composite.c: Likewise.
9818         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9819         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9820         * tests/unictype/test-pr_deprecated.c: Likewise.
9821         * tests/unictype/test-pr_format_control.c: Likewise.
9822         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9823         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9824         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9825         * tests/unictype/test-pr_id_continue.c: Likewise.
9826         * tests/unictype/test-pr_id_start.c: Likewise.
9827         * tests/unictype/test-pr_ideographic.c: Likewise.
9828         * tests/unictype/test-pr_lowercase.c: Likewise.
9829         * tests/unictype/test-pr_math.c: Likewise.
9830         * tests/unictype/test-pr_numeric.c: Likewise.
9831         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9832         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9833         * tests/unictype/test-pr_other_math.c: Likewise.
9834         * tests/unictype/test-pr_punctuation.c: Likewise.
9835         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9836         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9837         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9838         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9839         * tests/unictype/test-pr_uppercase.c: Likewise.
9840         * tests/unictype/test-pr_xid_continue.c: Likewise.
9841         * tests/unictype/test-pr_xid_start.c: Likewise.
9842         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9843         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9844         changes.
9845         * lib/unictype/categ_Cc.h: Likewise.
9846         * lib/unictype/categ_Cf.h: Likewise.
9847         * lib/unictype/categ_Co.h: Likewise.
9848         * lib/unictype/categ_Cs.h: Likewise.
9849         * lib/unictype/categ_Lt.h: Likewise.
9850         * lib/unictype/categ_Nl.h: Likewise.
9851         * lib/unictype/categ_Pc.h: Likewise.
9852         * lib/unictype/categ_Pd.h: Likewise.
9853         * lib/unictype/categ_Pe.h: Likewise.
9854         * lib/unictype/categ_Pf.h: Likewise.
9855         * lib/unictype/categ_Pi.h: Likewise.
9856         * lib/unictype/categ_Ps.h: Likewise.
9857         * lib/unictype/categ_Z.h: Likewise.
9858         * lib/unictype/categ_Zl.h: Likewise.
9859         * lib/unictype/categ_Zp.h: Likewise.
9860         * lib/unictype/categ_Zs.h: Likewise.
9861         * lib/unictype/ctype_blank.h: Likewise.
9862         * lib/unictype/ctype_cntrl.h: Likewise.
9863         * lib/unictype/ctype_digit.h: Likewise.
9864         * lib/unictype/ctype_space.h: Likewise.
9865         * lib/unictype/ctype_xdigit.h: Likewise.
9866         * lib/unictype/mirror.h: Likewise.
9867         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9868         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9869         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9870         * lib/unictype/pr_bidi_control.h: Likewise.
9871         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9872         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9873         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9874         * lib/unictype/pr_bidi_pdf.h: Likewise.
9875         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9876         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9877         * lib/unictype/pr_dash.h: Likewise.
9878         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9879         * lib/unictype/pr_diacritic.h: Likewise.
9880         * lib/unictype/pr_extender.h: Likewise.
9881         * lib/unictype/pr_hex_digit.h: Likewise.
9882         * lib/unictype/pr_hyphen.h: Likewise.
9883         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9884         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9885         * lib/unictype/pr_ignorable_control.h: Likewise.
9886         * lib/unictype/pr_iso_control.h: Likewise.
9887         * lib/unictype/pr_join_control.h: Likewise.
9888         * lib/unictype/pr_left_of_pair.h: Likewise.
9889         * lib/unictype/pr_line_separator.h: Likewise.
9890         * lib/unictype/pr_logical_order_exception.h: Likewise.
9891         * lib/unictype/pr_non_break.h: Likewise.
9892         * lib/unictype/pr_not_a_character.h: Likewise.
9893         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9894         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9895         * lib/unictype/pr_other_id_start.h: Likewise.
9896         * lib/unictype/pr_other_lowercase.h: Likewise.
9897         * lib/unictype/pr_other_uppercase.h: Likewise.
9898         * lib/unictype/pr_paired_punctuation.h: Likewise.
9899         * lib/unictype/pr_paragraph_separator.h: Likewise.
9900         * lib/unictype/pr_pattern_syntax.h: Likewise.
9901         * lib/unictype/pr_pattern_white_space.h: Likewise.
9902         * lib/unictype/pr_private_use.h: Likewise.
9903         * lib/unictype/pr_quotation_mark.h: Likewise.
9904         * lib/unictype/pr_radical.h: Likewise.
9905         * lib/unictype/pr_soft_dotted.h: Likewise.
9906         * lib/unictype/pr_space.h: Likewise.
9907         * lib/unictype/pr_titlecase.h: Likewise.
9908         * lib/unictype/pr_variation_selector.h: Likewise.
9909         * lib/unictype/pr_white_space.h: Likewise.
9910         * lib/unictype/pr_zero_width.h: Likewise.
9911         * lib/unictype/sy_c_ident.h: Likewise.
9912         * lib/unictype/sy_c_whitespace.h: Likewise.
9913         * lib/unictype/sy_java_whitespace.h: Likewise.
9914         * lib/uninorm/composition-table.gperf: Likewise.
9915         * lib/uninorm/decomposition-table1.h: Likewise.
9916         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
9917         LB8.
9918         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9919         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9920         * modules/unictype/*: Bump version number of expected libunistring
9921         version.
9922
9923 2011-01-09  Bruno Haible  <bruno@clisp.org>
9924
9925         Update to Unicode 5.2.0.
9926         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
9927         trailing whitespace removed.
9928
9929 2011-01-09  Bruno Haible  <bruno@clisp.org>
9930
9931         New Unicode character properties, from Unicode 5.2.0.
9932         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
9933         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
9934         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
9935         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
9936         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
9937         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
9938         uc_is_property_cased, uc_is_property_case_ignorable,
9939         uc_is_property_changes_when_lowercased,
9940         uc_is_property_changes_when_uppercased,
9941         uc_is_property_changes_when_titlecased,
9942         uc_is_property_changes_when_casefolded,
9943         uc_is_property_changes_when_casemapped): New declarations.
9944         * lib/unictype/pr_byname.gperf: Add the new properties.
9945         * modules/unictype/property-byname (Depends-on): Depend on the new
9946         properties modules.
9947         * modules/unictype/property-all (Depends-on): Likewise.
9948         * MODULES.html.sh (Unicode string functions): Add
9949         unictype/property-case-ignorable, unictype/property-cased,
9950         unictype/property-changes-when-casefolded,
9951         unictype/property-changes-when-casemapped,
9952         unictype/property-changes-when-lowercased,
9953         unictype/property-changes-when-titlecased,
9954         unictype/property-changes-when-uppercased.
9955
9956         New module 'unictype/property-changes-when-casemapped'.
9957         * modules/unictype/property-changes-when-casemapped: New file.
9958         * lib/unictype/pr_changes_when_casemapped.c: New file.
9959         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
9960         generated by gen-uni-tables.
9961         * modules/unictype/property-changes-when-casemapped-tests: New file.
9962         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
9963         automatically generated by gen-uni-tables.
9964
9965         New module 'unictype/property-changes-when-casefolded'.
9966         * modules/unictype/property-changes-when-casefolded: New file.
9967         * lib/unictype/pr_changes_when_casefolded.c: New file.
9968         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
9969         generated by gen-uni-tables.
9970         * modules/unictype/property-changes-when-casefolded-tests: New file.
9971         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
9972         automatically generated by gen-uni-tables.
9973
9974         New module 'unictype/property-changes-when-titlecased'.
9975         * modules/unictype/property-changes-when-titlecased: New file.
9976         * lib/unictype/pr_changes_when_titlecased.c: New file.
9977         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
9978         generated by gen-uni-tables.
9979         * modules/unictype/property-changes-when-titlecased-tests: New file.
9980         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
9981         automatically generated by gen-uni-tables.
9982
9983         New module 'unictype/property-changes-when-uppercased'.
9984         * modules/unictype/property-changes-when-uppercased: New file.
9985         * lib/unictype/pr_changes_when_uppercased.c: New file.
9986         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
9987         generated by gen-uni-tables.
9988         * modules/unictype/property-changes-when-uppercased-tests: New file.
9989         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
9990         automatically generated by gen-uni-tables.
9991
9992         New module 'unictype/property-changes-when-lowercased'.
9993         * modules/unictype/property-changes-when-lowercased: New file.
9994         * lib/unictype/pr_changes_when_lowercased.c: New file.
9995         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
9996         generated by gen-uni-tables.
9997         * modules/unictype/property-changes-when-lowercased-tests: New file.
9998         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
9999         automatically generated by gen-uni-tables.
10000
10001         New module 'unictype/property-case-ignorable'.
10002         * modules/unictype/property-case-ignorable: New file.
10003         * lib/unictype/pr_case_ignorable.c: New file.
10004         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10005         by gen-uni-tables.
10006         * modules/unictype/property-case-ignorable-tests: New file.
10007         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10008         generated by gen-uni-tables.
10009
10010         New module 'unictype/property-cased'.
10011         * modules/unictype/property-cased: New file.
10012         * lib/unictype/pr_cased.c: New file.
10013         * lib/unictype/pr_cased.h: New file, automatically generated by
10014         gen-uni-tables.
10015         * modules/unictype/property-cased-tests: New file.
10016         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10017         gen-uni-tables.
10018
10019 2011-01-09  Bruno Haible  <bruno@clisp.org>
10020
10021         Update to Unicode 5.2.0.
10022         * lib/gen-uni-tables.c (output_predicate, output_category,
10023         output_combclass, output_bidi_category, output_decimal_digit_test,
10024         output_decimal_digit, output_digit_test, output_digit,
10025         output_numeric_test, output_numeric, output_mirror, output_scripts,
10026         output_scripts_byname, output_blocks, output_ident_category): Fix
10027         comment header.
10028         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10029         get_wbp.
10030         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10031         items.
10032         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10033         Changes_When_Lowercased, Changes_When_Uppercased,
10034         Changes_When_Titlecased, Changes_When_Casefolded,
10035         Changes_When_Casemapped.
10036         (is_property_alphabetic, is_property_default_ignorable_code_point):
10037         Update for Unicode 5.2.0.
10038         (is_property_cased, is_property_case_ignorable,
10039         is_property_changes_when_lowercased,
10040         is_property_changes_when_uppercased,
10041         is_property_changes_when_titlecased,
10042         is_property_changes_when_casefolded,
10043         is_property_changes_when_casemapped): New functions.
10044         (output_properties): Output also the properties cased, case_ignorable,
10045         changes_when_lowercased, changes_when_uppercased,
10046         changes_when_titlecased, changes_when_casefolded,
10047         changes_when_casemapped.
10048         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10049         Unicode TR#11 revision 17 -> 19.
10050         (LBP_CP): New enumeration value.
10051         (LBP_*): Adjust values accordingly.
10052         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10053         TR#14 revision 22 -> 24.
10054         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10055         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10056         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10057         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10058         is_WBP_MIDLETTER.
10059         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10060         the code1 and code2 of each composition rule.
10061         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10062         * lib/unicase/ignorable.h: Likewise.
10063         * lib/unicase/tocasefold.h: Likewise.
10064         * lib/unicase/tolower.h: Likewise.
10065         * lib/unicase/totitle.h: Likewise.
10066         * lib/unicase/toupper.h: Likewise.
10067         * lib/unictype/bidi_of.h: Likewise.
10068         * lib/unictype/blocks.h: Likewise.
10069         * lib/unictype/categ_C.h: Likewise.
10070         * lib/unictype/categ_Cf.h: Likewise.
10071         * lib/unictype/categ_Cn.h: Likewise.
10072         * lib/unictype/categ_L.h: Likewise.
10073         * lib/unictype/categ_Ll.h: Likewise.
10074         * lib/unictype/categ_Lm.h: Likewise.
10075         * lib/unictype/categ_Lo.h: Likewise.
10076         * lib/unictype/categ_Lu.h: Likewise.
10077         * lib/unictype/categ_M.h: Likewise.
10078         * lib/unictype/categ_Mc.h: Likewise.
10079         * lib/unictype/categ_Mn.h: Likewise.
10080         * lib/unictype/categ_N.h: Likewise.
10081         * lib/unictype/categ_Nd.h: Likewise.
10082         * lib/unictype/categ_Nl.h: Likewise.
10083         * lib/unictype/categ_No.h: Likewise.
10084         * lib/unictype/categ_P.h: Likewise.
10085         * lib/unictype/categ_Pd.h: Likewise.
10086         * lib/unictype/categ_Po.h: Likewise.
10087         * lib/unictype/categ_S.h: Likewise.
10088         * lib/unictype/categ_Sc.h: Likewise.
10089         * lib/unictype/categ_So.h: Likewise.
10090         * lib/unictype/categ_of.h: Likewise.
10091         * lib/unictype/combining.h: Likewise.
10092         * lib/unictype/ctype_alnum.h: Likewise.
10093         * lib/unictype/ctype_alpha.h: Likewise.
10094         * lib/unictype/ctype_graph.h: Likewise.
10095         * lib/unictype/ctype_lower.h: Likewise.
10096         * lib/unictype/ctype_print.h: Likewise.
10097         * lib/unictype/ctype_punct.h: Likewise.
10098         * lib/unictype/ctype_upper.h: Likewise.
10099         * lib/unictype/decdigit.h: Likewise.
10100         * lib/unictype/digit.h: Likewise.
10101         * lib/unictype/numeric.h: Likewise.
10102         * lib/unictype/pr_alphabetic.h: Likewise.
10103         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10104         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10105         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10106         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10107         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10108         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10109         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10110         * lib/unictype/pr_combining.h: Likewise.
10111         * lib/unictype/pr_composite.h: Likewise.
10112         * lib/unictype/pr_currency_symbol.h: Likewise.
10113         * lib/unictype/pr_dash.h: Likewise.
10114         * lib/unictype/pr_decimal_digit.h: Likewise.
10115         * lib/unictype/pr_deprecated.h: Likewise.
10116         * lib/unictype/pr_diacritic.h: Likewise.
10117         * lib/unictype/pr_extender.h: Likewise.
10118         * lib/unictype/pr_grapheme_base.h: Likewise.
10119         * lib/unictype/pr_grapheme_extend.h: Likewise.
10120         * lib/unictype/pr_grapheme_link.h: Likewise.
10121         * lib/unictype/pr_id_continue.h: Likewise.
10122         * lib/unictype/pr_id_start.h: Likewise.
10123         * lib/unictype/pr_ideographic.h: Likewise.
10124         * lib/unictype/pr_ignorable_control.h: Likewise.
10125         * lib/unictype/pr_logical_order_exception.h: Likewise.
10126         * lib/unictype/pr_lowercase.h: Likewise.
10127         * lib/unictype/pr_numeric.h: Likewise.
10128         * lib/unictype/pr_other_alphabetic.h: Likewise.
10129         * lib/unictype/pr_punctuation.h: Likewise.
10130         * lib/unictype/pr_sentence_terminal.h: Likewise.
10131         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10132         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10133         * lib/unictype/pr_unified_ideograph.h: Likewise.
10134         * lib/unictype/pr_uppercase.h: Likewise.
10135         * lib/unictype/pr_xid_continue.h: Likewise.
10136         * lib/unictype/pr_xid_start.h: Likewise.
10137         * lib/unictype/pr_zero_width.h: Likewise.
10138         * lib/unictype/scripts.h: Likewise.
10139         * lib/unictype/scripts_byname.gperf: Likewise.
10140         * lib/unictype/sy_java_ident.h: Likewise.
10141         * lib/unigbrk/gbrkprop.h: Likewise.
10142         * lib/unilbrk/lbrkprop1.h: Likewise.
10143         * lib/unilbrk/lbrkprop2.h: Likewise.
10144         * lib/unilbrk/lbrktables.h: Likewise.
10145         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10146         LBP_CP. Implement rule LB30.
10147         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10148         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10149         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10150         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10151         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10152         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10153         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10154         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10155         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10156         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10157         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10158         bits instead of 16 bits in the code1 and code2 of each composition
10159         rule.
10160         (uc_composition): Update for Unicode 5.2.0.
10161         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10162         * lib/uninorm/decomposition-table2.h: Likewise.
10163         * lib/uniwbrk/wbrkprop.h: Likewise.
10164         * tests/unicase/test-cased.c: Likewise.
10165         * tests/unicase/test-ignorable.c: Likewise.
10166         * tests/unicase/test-uc_tolower.c: Likewise.
10167         * tests/unicase/test-uc_totitle.c: Likewise.
10168         * tests/unicase/test-uc_toupper.c: Likewise.
10169         * tests/unictype/test-categ_C.c: Likewise.
10170         * tests/unictype/test-categ_Cf.c: Likewise.
10171         * tests/unictype/test-categ_Cn.c: Likewise.
10172         * tests/unictype/test-categ_L.c: Likewise.
10173         * tests/unictype/test-categ_Ll.c: Likewise.
10174         * tests/unictype/test-categ_Lm.c: Likewise.
10175         * tests/unictype/test-categ_Lo.c: Likewise.
10176         * tests/unictype/test-categ_Lu.c: Likewise.
10177         * tests/unictype/test-categ_M.c: Likewise.
10178         * tests/unictype/test-categ_Mc.c: Likewise.
10179         * tests/unictype/test-categ_Mn.c: Likewise.
10180         * tests/unictype/test-categ_N.c: Likewise.
10181         * tests/unictype/test-categ_Nd.c: Likewise.
10182         * tests/unictype/test-categ_Nl.c: Likewise.
10183         * tests/unictype/test-categ_No.c: Likewise.
10184         * tests/unictype/test-categ_P.c: Likewise.
10185         * tests/unictype/test-categ_Pd.c: Likewise.
10186         * tests/unictype/test-categ_Po.c: Likewise.
10187         * tests/unictype/test-categ_S.c: Likewise.
10188         * tests/unictype/test-categ_Sc.c: Likewise.
10189         * tests/unictype/test-categ_So.c: Likewise.
10190         * tests/unictype/test-ctype_alnum.c: Likewise.
10191         * tests/unictype/test-ctype_alpha.c: Likewise.
10192         * tests/unictype/test-ctype_graph.c: Likewise.
10193         * tests/unictype/test-ctype_lower.c: Likewise.
10194         * tests/unictype/test-ctype_print.c: Likewise.
10195         * tests/unictype/test-ctype_punct.c: Likewise.
10196         * tests/unictype/test-ctype_upper.c: Likewise.
10197         * tests/unictype/test-decdigit.h: Likewise.
10198         * tests/unictype/test-digit.h: Likewise.
10199         * tests/unictype/test-numeric.h: Likewise.
10200         * tests/unictype/test-pr_alphabetic.c: Likewise.
10201         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10202         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10203         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10204         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10205         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10206         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10207         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10208         * tests/unictype/test-pr_combining.c: Likewise.
10209         * tests/unictype/test-pr_composite.c: Likewise.
10210         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10211         * tests/unictype/test-pr_dash.c: Likewise.
10212         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10213         * tests/unictype/test-pr_deprecated.c: Likewise.
10214         * tests/unictype/test-pr_diacritic.c: Likewise.
10215         * tests/unictype/test-pr_extender.c: Likewise.
10216         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10217         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10218         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10219         * tests/unictype/test-pr_id_continue.c: Likewise.
10220         * tests/unictype/test-pr_id_start.c: Likewise.
10221         * tests/unictype/test-pr_ideographic.c: Likewise.
10222         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10223         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10224         * tests/unictype/test-pr_lowercase.c: Likewise.
10225         * tests/unictype/test-pr_numeric.c: Likewise.
10226         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10227         * tests/unictype/test-pr_punctuation.c: Likewise.
10228         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10229         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10230         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10231         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10232         * tests/unictype/test-pr_uppercase.c: Likewise.
10233         * tests/unictype/test-pr_xid_continue.c: Likewise.
10234         * tests/unictype/test-pr_xid_start.c: Likewise.
10235         * tests/unictype/test-pr_zero_width.c: Likewise.
10236         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10237         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10238         changed behaviour: line breaking is now disallowed between a letter
10239         or '=' and '('.
10240         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10241         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10242         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10243         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10244         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10245         lib/uniwidth/width.c.
10246         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10247         without comments, but with the original copyright notice.
10248         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10249         changes.
10250         * lib/unictype/categ_Cc.h: Likewise.
10251         * lib/unictype/categ_Co.h: Likewise.
10252         * lib/unictype/categ_Cs.h: Likewise.
10253         * lib/unictype/categ_Lt.h: Likewise.
10254         * lib/unictype/categ_Me.h: Likewise.
10255         * lib/unictype/categ_Pc.h: Likewise.
10256         * lib/unictype/categ_Pe.h: Likewise.
10257         * lib/unictype/categ_Pf.h: Likewise.
10258         * lib/unictype/categ_Pi.h: Likewise.
10259         * lib/unictype/categ_Ps.h: Likewise.
10260         * lib/unictype/categ_Sk.h: Likewise.
10261         * lib/unictype/categ_Sm.h: Likewise.
10262         * lib/unictype/categ_Z.h: Likewise.
10263         * lib/unictype/categ_Zl.h: Likewise.
10264         * lib/unictype/categ_Zp.h: Likewise.
10265         * lib/unictype/categ_Zs.h: Likewise.
10266         * lib/unictype/ctype_blank.h: Likewise.
10267         * lib/unictype/ctype_cntrl.h: Likewise.
10268         * lib/unictype/ctype_digit.h: Likewise.
10269         * lib/unictype/ctype_space.h: Likewise.
10270         * lib/unictype/ctype_xdigit.h: Likewise.
10271         * lib/unictype/mirror.h: Likewise.
10272         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10273         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10274         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10275         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10276         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10277         * lib/unictype/pr_bidi_control.h: Likewise.
10278         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10279         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10280         * lib/unictype/pr_bidi_pdf.h: Likewise.
10281         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10282         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10283         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10284         * lib/unictype/pr_format_control.h: Likewise.
10285         * lib/unictype/pr_hex_digit.h: Likewise.
10286         * lib/unictype/pr_hyphen.h: Likewise.
10287         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10288         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10289         * lib/unictype/pr_iso_control.h: Likewise.
10290         * lib/unictype/pr_join_control.h: Likewise.
10291         * lib/unictype/pr_left_of_pair.h: Likewise.
10292         * lib/unictype/pr_line_separator.h: Likewise.
10293         * lib/unictype/pr_math.h: Likewise.
10294         * lib/unictype/pr_non_break.h: Likewise.
10295         * lib/unictype/pr_not_a_character.h: Likewise.
10296         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10297         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10298         * lib/unictype/pr_other_id_continue.h: Likewise.
10299         * lib/unictype/pr_other_id_start.h: Likewise.
10300         * lib/unictype/pr_other_lowercase.h: Likewise.
10301         * lib/unictype/pr_other_math.h: Likewise.
10302         * lib/unictype/pr_other_uppercase.h: Likewise.
10303         * lib/unictype/pr_paired_punctuation.h: Likewise.
10304         * lib/unictype/pr_paragraph_separator.h: Likewise.
10305         * lib/unictype/pr_pattern_syntax.h: Likewise.
10306         * lib/unictype/pr_pattern_white_space.h: Likewise.
10307         * lib/unictype/pr_private_use.h: Likewise.
10308         * lib/unictype/pr_quotation_mark.h: Likewise.
10309         * lib/unictype/pr_radical.h: Likewise.
10310         * lib/unictype/pr_soft_dotted.h: Likewise.
10311         * lib/unictype/pr_space.h: Likewise.
10312         * lib/unictype/pr_titlecase.h: Likewise.
10313         * lib/unictype/pr_variation_selector.h: Likewise.
10314         * lib/unictype/pr_white_space.h: Likewise.
10315         * lib/unictype/sy_c_ident.h: Likewise.
10316         * lib/unictype/sy_c_whitespace.h: Likewise.
10317         * lib/unictype/sy_java_whitespace.h: Likewise.
10318         * modules/uni*/*: Bump version number of expected libunistring version.
10319         Reported by Simon Josefsson.
10320
10321 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10322
10323         useless-if-before-free: fix typo in --help and make the internal,
10324         automatic version date update process work once again.
10325         --help output contained a NUL character instead of the
10326         backslash-zero that was intended.  Also, the "must lie within
10327         the first 8 lines" line is on line 9, and hence not getting
10328         automatically updated.
10329         * build-aux/useless-if-before-free: Fix the former by adding a
10330         backslash, and the latter by condensing the three lines of what-it-does
10331         to a single line, leaving one line of slack for the future.
10332
10333 2011-01-09  Bruno Haible  <bruno@clisp.org>
10334
10335         uniwidth/width: Fix width of U+1D173..U+1D17A.
10336         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10337         symbolic_width, output_width_property_test): New functions.
10338         (main): Invoke output_nonspacing_property, output_width_property_test.
10339         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10340         U+1D173..U+1D17A.
10341         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10342         1.
10343         * modules/uniwidth/*: Bump version number of expected libunistring
10344         version.
10345         * modules/unilbrk/*: Likewise.
10346
10347 2011-01-08  Bruno Haible  <bruno@clisp.org>
10348
10349         uninorm tests: Preserve copyright of Unicode data file.
10350         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10351         Mention modifications.
10352
10353 2011-01-08  Bruno Haible  <bruno@clisp.org>
10354
10355         gen-uni-tables: Prepare for Unicode 5.2.0.
10356         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10357         (debug_output_lbp, output_lbp): Update.
10358
10359 2011-01-08  Bruno Haible  <bruno@clisp.org>
10360
10361         unilbrk: Clarify gen-uni-tables.c code.
10362         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10363         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10364         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10365
10366 2011-01-07  Bruno Haible  <bruno@clisp.org>
10367
10368         strtod: Restore errno when successfully parsing Infinity or NaN.
10369         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10370         restore the original errno.
10371
10372 2011-01-07  Bruno Haible  <bruno@clisp.org>
10373
10374         remove test: Avoid failure on HP-UX 11.
10375         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10376
10377 2011-01-07  Bruno Haible  <bruno@clisp.org>
10378
10379         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10380         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10381         error code.
10382
10383 2011-01-07  Pádraig Brady <P@draigBrady.com>
10384
10385         ignore-value: fixup comments, and add Eric Blake
10386         as an author since he rewrote the macros.
10387         * lib/ignore-value.h (ignore_value):  State that
10388         we now support aggregates.  Also specify exactly
10389         when the GCC warn_unused_result feature was added.
10390
10391 2011-01-06  Eric Blake  <eblake@redhat.com>
10392
10393         ignore-value: support aggregate types
10394         * lib/ignore-value.h (ignore_value): Provide separate gcc
10395         definition.
10396         * modules/ignore-value-tests: New test module.
10397         * tests/test-ignore-value.c: New test.
10398
10399         maint.mk: improve sc_prohibit_strcmp regex
10400         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10401         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10402         definition of STRNEQ.
10403
10404         signal: work around Haiku issue with SIGBUS
10405         * lib/siglist.h: Add comment.
10406         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10407         strsignal's favoring of SIGSEGV.
10408         * tests/test-signal.c (main): Avoid test failure.
10409         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10410         Reported by Scott McCreary.
10411
10412         maint.mk: add pre-release check to ensure submodule commits are public
10413         * top/maint.mk (public-submodule-commit): New rule.
10414         (submodule-checks): New variable.
10415         (alpha beta stable): Depend on the variable.
10416
10417 2011-01-05  Pádraig Brady <P@draigBrady.com>
10418         and Jim Meyering  <meyering@redhat.com>
10419
10420         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10421         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10422         (ATTRIBUTE_DEPRECATED): Define.
10423         (_ignore_case): New function.
10424         (ignore_value): New macro, to replace the old function.
10425         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10426         * modules/ignore-value (Depends-on): Add stdint.
10427
10428 2011-01-04  Eric Blake  <eblake@redhat.com>
10429
10430         doc: regenerate INSTALL
10431         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10432         @firstparagraphindent support, now that autoconf dropped it.
10433         (INSTALL_PRELUDE): Reinstate old macro.
10434         * doc/install.texi: Resync from autoconf.
10435         * doc/INSTALL: Reflect recent autoconf update.
10436         * doc/INSTALL.ISO: Likewise.
10437         * doc/INSTALL.UTF-8: Likewise.
10438         Reported by Karl Berry.
10439
10440 2011-01-04  Bruce Korb  <address@hidden>
10441
10442         git-version-gen: avoid a sub-shell
10443         * build-aux/git-version-gen: Redirect stderr in `...` via
10444         "exec 2>...", rather than via an added sub-shell.
10445
10446 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10447
10448         git-version-gen: use (...) rather than sh -c '...'
10449         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10450         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10451
10452 2011-01-03  Jim Meyering  <meyering@redhat.com>
10453
10454         git-version-gen: convert leading TABs to spaces
10455         * build-aux/git-version-gen: Expand leading TABs.
10456
10457         git-version-gen: handle failed "git rev-list"
10458         * build-aux/git-version-gen: Rather than leaking a "fatal" error
10459         from git and proceeding as if it had succeeded but printed no SHA1
10460         checksums, suppress the diagnostic and handle the failure.
10461         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
10462
10463         git-version-gen: include command name in one more diagnostic
10464         * build-aux/git-version-gen: When the required .tarball-version file
10465         was missing or unreadable, you might see the diagnostic from "cat",
10466         but no trace of the name of the invoking script.  Now, you still see
10467         the diagnostic from cat, but also get one from "git-version-gen: ".
10468         Inspired by a patch from Bruce Korb.
10469
10470         update-copyright: adjust test to match changed code
10471         * tests/test-update-copyright.sh: Change test's expected output
10472         to match new actual output.
10473
10474 2011-01-02  Bruno Haible  <bruno@clisp.org>
10475
10476         getlogin_r: Avoid test failure on HP-UX 11.
10477         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10478         ERANGE when the second argument is zero.
10479         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10480         portability problem.
10481
10482 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10483
10484         * build-aux/update-copyright: doc Simon's changes
10485
10486 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10487
10488         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10489         environment variable.
10490
10491 2011-01-02  Bruno Haible  <bruno@clisp.org>
10492
10493         unigbrk: Avoid gcc warnings.
10494         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10495         unused variable.
10496         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10497         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10498         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10499         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10500         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10501         Change type of first argument to 'const char *'.
10502         (main): Remove unused variable.
10503         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10504         type of first argument to 'const char *'.
10505         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10506         Likewise.
10507         (main): Change type of variable 's'.
10508         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10509         to 'int'.
10510
10511 2011-01-02  Bruno Haible  <bruno@clisp.org>
10512
10513         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10514         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10515         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10516         bug.
10517         * lib/pwrite.c: Undo 2010-12-31 patch.
10518         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10519
10520 2011-01-02  Bruno Haible  <bruno@clisp.org>
10521
10522         pread: Fix test whether it works.
10523         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10524
10525 2011-01-02  Bruno Haible  <bruno@clisp.org>
10526
10527         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10528         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10529         ends in "6". Don't require a specific month name. Try also the locale
10530         names found on HP-UX 11 and Solaris 7.
10531
10532 2011-01-02  Bruno Haible  <bruno@clisp.org>
10533
10534         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10535         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10536         C linkage.
10537         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
10538
10539 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10540
10541         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
10542         for consistency, since the "cluster" term is not used elsewhere.
10543         * lib/unigbrk.in.h: Update name.
10544         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
10545         * lib/unigbrk/u16-grapheme-next.c: Update name.
10546         * lib/unigbrk/u16-grapheme-prev.c: Update name.
10547         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
10548         * lib/unigbrk/u32-grapheme-next.c: Update name.
10549         * lib/unigbrk/u32-grapheme-prev.c: Update name.
10550         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
10551         * lib/unigbrk/u8-grapheme-next.c: Update name.
10552         * lib/unigbrk/u8-grapheme-prev.c: Update name.
10553         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
10554         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
10555         Suggested by Bruno Haible.
10556
10557 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10558
10559         Remove module 'u8-grapheme-len' as too redundant with
10560         'u8-grapheme-next'.
10561         * modules/unigbrk/u8-grapheme-len: Delete file.
10562         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
10563         * lib/unigbrk.in.h: Remove prototype for deleted function.
10564         * lib/unigbrk/u8-grapheme-len.c: Delete file.
10565         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
10566
10567         Remove module 'u16-grapheme-len' as too redundant with
10568         'u16-grapheme-next'.
10569         * modules/unigbrk/u16-grapheme-len: Delete file.
10570         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
10571         * lib/unigbrk.in.h: Remove prototype for deleted function.
10572         * lib/unigbrk/u16-grapheme-len.c: Delete file.
10573         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
10574
10575         Remove module 'u32-grapheme-len' as too redundant with
10576         'u32-grapheme-next'.
10577         * modules/unigbrk/u32-grapheme-len: Delete file.
10578         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
10579         * lib/unigbrk.in.h: Remove prototype for deleted function.
10580         * lib/unigbrk/u32-grapheme-len.c: Delete file.
10581         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
10582
10583         Suggested by Bruno Haible.
10584
10585 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10586
10587         * unigbrk.in.h: Fix typo: "ben" => "been".
10588         Reported by Bruno Haible.
10589
10590 2011-01-01  Jim Meyering  <meyering@redhat.com>
10591
10592         maint: update almost all copyright ranges to include 2011
10593         Run the new "make update-copyright" rule.
10594
10595 2011-01-01  Jim Meyering  <meyering@redhat.com>
10596
10597         maint: update-copyright: exempt doc/INSTALL*
10598         * Makefile (update-copyright): Also exclude doc/INSTALL*,
10599         since they are generated.  Suggested by Bruno Haible.
10600
10601 2011-01-01  Jim Meyering  <meyering@redhat.com>
10602
10603         maint: refine the update-copyright rule
10604         * Makefile (update-copyright): Also exclude any file that includes
10605         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
10606         code that merely generates the comment.
10607
10608 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10609
10610         New module 'u8-grapheme-len'.
10611         * modules/unigbrk/u8-grapheme-len: New file.
10612         * modules/unigbrk/u8-grapheme-len-tests: New file.
10613         * lib/unigbrk.in.h: Add prototype for new function.
10614         * lib/unigbrk/u8-grapheme-len.c: New file.
10615         * tests/unigbrk/test-u8-grapheme-len.c: New file.
10616
10617         New module 'u16-grapheme-len'.
10618         * modules/unigbrk/u16-grapheme-len: New file.
10619         * modules/unigbrk/u16-grapheme-len-tests: New file.
10620         * lib/unigbrk.in.h: Add prototype for new function.
10621         * lib/unigbrk/u16-grapheme-len.c: New file.
10622         * tests/unigbrk/test-u16-grapheme-len.c: New file.
10623
10624         New module 'u32-grapheme-len'.
10625         * modules/unigbrk/u32-grapheme-len: New file.
10626         * modules/unigbrk/u32-grapheme-len-tests: New file.
10627         * lib/unigbrk.in.h: Add prototype for new function.
10628         * lib/unigbrk/u32-grapheme-len.c: New file.
10629         * tests/unigbrk/test-u32-grapheme-len.c: New file.
10630
10631         New module 'u8-grapheme-next'.
10632         * modules/unigbrk/u8-grapheme-next: New file.
10633         * modules/unigbrk/u8-grapheme-next-tests: New file.
10634         * lib/unigbrk.in.h: Add prototype for new function.
10635         * lib/unigbrk/u8-grapheme-next.c: New file.
10636         * tests/unigbrk/test-u8-grapheme-next.c: New file.
10637
10638         New module 'u16-grapheme-next'.
10639         * modules/unigbrk/u16-grapheme-next: New file.
10640         * modules/unigbrk/u16-grapheme-next-tests: New file.
10641         * lib/unigbrk.in.h: Add prototype for new function.
10642         * lib/unigbrk/u16-grapheme-next.c: New file.
10643         * tests/unigbrk/test-u16-grapheme-next.c: New file.
10644
10645         New module 'u32-grapheme-next'.
10646         * modules/unigbrk/u32-grapheme-next: New file.
10647         * modules/unigbrk/u32-grapheme-next-tests: New file.
10648         * lib/unigbrk.in.h: Add prototype for new function.
10649         * lib/unigbrk/u32-grapheme-next.c: New file.
10650         * tests/unigbrk/test-u32-grapheme-next.c: New file.
10651
10652         New module 'u8-grapheme-prev'.
10653         * modules/unigbrk/u8-grapheme-prev: New file.
10654         * modules/unigbrk/u8-grapheme-prev-tests: New file.
10655         * lib/unigbrk.in.h: Add prototype for new function.
10656         * lib/unigbrk/u8-grapheme-prev.c: New file.
10657         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
10658
10659         New module 'u16-grapheme-prev'.
10660         * modules/unigbrk/u16-grapheme-prev: New file.
10661         * modules/unigbrk/u16-grapheme-prev-tests: New file.
10662         * lib/unigbrk.in.h: Add prototype for new function.
10663         * lib/unigbrk/u16-grapheme-prev.c: New file.
10664         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
10665
10666         New module 'u32-grapheme-prev'.
10667         * modules/unigbrk/u32-grapheme-prev: New file.
10668         * modules/unigbrk/u32-grapheme-prev-tests: New file.
10669         * lib/unigbrk.in.h: Add prototype for new function.
10670         * lib/unigbrk/u32-grapheme-prev.c: New file.
10671         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
10672
10673         New module 'u8-grapheme-breaks'.
10674         * modules/unigbrk/u8-grapheme-breaks: New file.
10675         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
10676         * lib/unigbrk.in.h: Add prototype for new function.
10677         * lib/unigbrk/u8-grapheme-breaks.c: New file.
10678         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
10679
10680         New module 'u16-grapheme-breaks'.
10681         * modules/unigbrk/u16-grapheme-breaks: New file.
10682         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
10683         * lib/unigbrk.in.h: Add prototype for new function.
10684         * lib/unigbrk/u16-grapheme-breaks.c: New file.
10685         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
10686
10687         New module 'u32-grapheme-breaks'.
10688         * modules/unigbrk/u32-grapheme-breaks: New file.
10689         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
10690         * lib/unigbrk.in.h: Add prototype for new function.
10691         * lib/unigbrk/u32-grapheme-breaks.c: New file.
10692         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
10693
10694         New module 'ulc-grapheme-breaks'.
10695         * modules/unigbrk/ulc-grapheme-breaks: New file.
10696         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
10697         * m4/locale-ar.m4: New file.
10698         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
10699         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
10700         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
10701
10702 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10703
10704         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
10705         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
10706         modified how this file was generated before I initially submitted
10707         the module, but failed to regenerate it.  This meant that several
10708         of the level2 entries were wrong.
10709         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
10710         Remove the division-by-2 that is folded into the table now that
10711         gbrkprop.h has been regenerated properly.  Now -1 entries are
10712         handled correctly.
10713
10714         New module 'unigbrk/uc-gbrk-prop-tests'.
10715         * modules/unigbrk/uc-gbrk-prop-tests: New file.
10716         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
10717         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
10718         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
10719
10720 2011-01-01  Bruno Haible  <bruno@clisp.org>
10721
10722         Avoid use of hexadecimal escapes.
10723         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
10724         instead of hexadecimal escapes.
10725
10726 2011-01-01  Jim Meyering  <meyering@redhat.com>
10727
10728         maint: new rule to update copyright year ranges
10729         * Makefile (update-copyright): New rule.
10730
10731         maint: indent with TABs in Makefile
10732         * Makefile: Expand leading sequences of spaces to TABs
10733
10734         version-etc: update the copyright year it reports
10735         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
10736
10737 2010-12-31  Bruno Haible  <bruno@clisp.org>
10738
10739         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
10740         * lib/isfinite.c (zerof, zerod, zerol): New variables.
10741         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
10742         zero.
10743
10744 2010-12-31  Bruno Haible  <bruno@clisp.org>
10745
10746         pwrite: Work around HP-UX 11.11 bug.
10747         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
10748         works and set REPLACE_PWRITE if not.
10749         * lib/pwrite.c (pwrite): Add an implementation that uses the system
10750         function.
10751         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
10752
10753 2010-12-31  Bruno Haible  <bruno@clisp.org>
10754
10755         pread: Work around HP-UX 11 bugs.
10756         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
10757         and set REPLACE_PREAD if not.
10758         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
10759
10760 2010-12-31  Eric Blake  <eblake@redhat.com>
10761
10762         nl_langinfo: fix YESEXPR on Irix 6.5
10763         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
10764         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
10765         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
10766         it.
10767
10768 2010-12-31  Bruno Haible  <bruno@clisp.org>
10769
10770         iconv: Document HP-UX 11 bug.
10771         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
10772
10773 2010-12-31  Bruno Haible  <bruno@clisp.org>
10774
10775         ldexpl: Fix link error on HP-UX 11.
10776         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
10777         LDEXPL_LIBM, using $ISNANL_LIBM.
10778
10779 2010-12-31  Eric Blake  <eblake@redhat.com>
10780
10781         ftello: avoid compilation failure with SunStudio c89
10782         * lib/ftello.c (ftello): Use lseek, not llseek.
10783
10784         tests: avoid failing coreutils tests on cygwin
10785         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
10786         (create_exe_shims_): Return 0 when skipping.
10787
10788 2010-12-31  Bruno Haible  <bruno@clisp.org>
10789
10790         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
10791         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
10792
10793 2010-12-31  Bruno Haible  <bruno@clisp.org>
10794
10795         waitpid: Fix link error in C++ mode.
10796         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
10797
10798 2010-12-31  Bruno Haible  <bruno@clisp.org>
10799
10800         isnan: Use GCC built-ins when possible.
10801         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
10802         __builtin_isnan.
10803         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
10804         (isnan): Define using GCC built-ins for GCC >= 4.0.
10805
10806 2010-12-31  Bruno Haible  <bruno@clisp.org>
10807
10808         isnand: Fix mistake.
10809         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
10810         __builtin_isnand.
10811
10812 2010-12-31  Bruno Haible  <bruno@clisp.org>
10813
10814         open: Avoid C++ error on HP-UX 11.
10815         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
10816
10817 2010-12-31  Bruno Haible  <bruno@clisp.org>
10818
10819         time_r: Add missing declarations on HP-UX 11.
10820         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
10821         instead of HAVE_LOCALTIME_R.
10822         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
10823         HAVE_LOCALTIME_R always.
10824         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
10825         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
10826         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
10827         HAVE_LOCALTIME_R.
10828         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
10829         * doc/posix-functions/localtime_r.texi: Likewise.
10830
10831 2010-12-29  Eric Blake  <eblake@redhat.com>
10832
10833         mountlist: tweak previous commit
10834         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
10835         Reported by Paul Eggert.
10836
10837         mountlist: fix local drive detection on cygwin
10838         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
10839         that works for cygwin.
10840
10841 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10842
10843         ftoastr, snprintf: ftoastr + snprintf module
10844         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
10845         since the snprintf module now should be good enough here.
10846         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
10847         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
10848         and gl_MODULE_INDICATOR([snprintf]), but the former enables
10849         GNULIB_SNPRINTF only for the test directory, and the latter
10850         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
10851         seems to suffice by itself.
10852
10853 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
10854
10855         alloca: one step towards thread-safety
10856         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
10857         need for a static variable.  All callers changed.  This does not
10858         make the alloca replacement thread-safe, but it's one step.
10859
10860         tests: minor indenting change
10861         * tests/init.sh: Sync from coreutils housekeeping patch
10862         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
10863         to keep lines within 80 columns.
10864
10865 2010-12-28  Jim Meyering  <meyering@redhat.com>
10866
10867         regex: don't infloop on persistent failing calloc
10868         * lib/regexec.c (build_trtable): Return failure indication upon
10869         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10870         In glibc, this was fixed for version 2.13:
10871         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
10872
10873 2010-12-28  Bruno Haible  <bruno@clisp.org>
10874             Paul Eggert <eggert@cs.ucla.edu>
10875
10876         linkat: Make implementation robust against system behaviour variations.
10877         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
10878         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
10879         way, and to -2 if it needs a generic runtime test.
10880         * lib/linkat.c (solaris_optimized_link_immediate,
10881         solaris_optimized_link_follow): New functions.
10882         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
10883         (check_same_link): Use it.
10884
10885 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
10886
10887         New module 'unigbrk/base'.
10888         * modules/unigbrk/base: New file.
10889         * lib/unigbrk.in.h: New file.
10890
10891         New module 'unigbrk/uc-gbrk-prop'.
10892         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
10893         * modules/unigbrk/uc-gbrk-prop: New file.
10894         * lib/unigbrk/gbrkprop.h: New file.
10895         * lib/unigbrk/uc-gbrk-prop.c: New file.
10896
10897         New module 'unigbrk/uc-is-grapheme-break'.
10898         * modules/unigbrk/uc-is-grapheme-break: New file.
10899         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
10900         * lib/unigbrk/uc-is-grapheme-break.c: New file.
10901         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
10902         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
10903         * tests/unigbrk/GraphemeBreakTest.txt: New file.
10904
10905         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
10906
10907 2010-12-27  Bruno Haible  <bruno@clisp.org>
10908
10909         linkat test: Avoid failure on Solaris 11 2010-11.
10910         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
10911
10912 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10913
10914         utimens: work around glibc rounding bug on more platforms
10915         * lib/utimens.c (fdutimens): Work around rounding bug even if
10916         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
10917         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
10918
10919 2010-12-27  Bruno Haible  <bruno@clisp.org>
10920
10921         select tests: Improve comments.
10922         * tests/test-select.c (do_select): Add comments.
10923
10924 2010-12-27  Bruno Haible  <bruno@clisp.org>
10925
10926         select tests: Safer way of handling timeout.
10927         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
10928         at every invocation.
10929
10930 2010-12-27  Bruno Haible  <bruno@clisp.org>
10931
10932         select tests: Use 'bool' where appropriate.
10933         * tests/test-select.c (connect_to_socket): Change argument type to
10934         'bool'.
10935
10936 2010-12-27  Bruno Haible  <bruno@clisp.org>
10937
10938         select tests: Use existing modules.
10939         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
10940         (configure.ac): Don't test for unistd.h.
10941         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
10942         declared in <unistd.h>.
10943
10944 2010-12-27  Bruno Haible  <bruno@clisp.org>
10945
10946         mbrtowc: Work around a Solaris 7 bug.
10947         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
10948         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
10949         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
10950         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
10951         MBRTOWC_NULL_ARG1_BUG.
10952         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
10953         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
10954         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
10955         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
10956
10957 2010-12-27  Jim Meyering  <meyering@redhat.com>
10958
10959         read-file.c: tweak syntax
10960         * lib/read-file.c (fread_file): Remove space after "*" in function
10961         definitions.
10962
10963 2010-12-27  Bruno Haible  <bruno@clisp.org>
10964
10965         times test: Avoid gcc warnings on OSF/1.
10966         * tests/test-times.c (main): Cast printf arguments from clock_t to
10967         'long int'.
10968
10969 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10970
10971         utimens: work around glibc rounding bug on older Linux kernels
10972         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
10973         on Linux with a glibc whose utimes might not work, then work
10974         around a longstanding glibc bug involving rounding rather than
10975         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
10976         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10977
10978 2010-12-26  Bruno Haible  <bruno@clisp.org>
10979
10980         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
10981         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
10982         _GL_CXXALIAS_SYS.
10983         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10984
10985 2010-12-26  Bruno Haible  <bruno@clisp.org>
10986
10987         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
10988         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
10989         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10990         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
10991         looking for the declaration.
10992         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
10993         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
10994         problem.
10995         * doc/posix-functions/inet_pton.texi: Likewise.
10996
10997 2010-12-26  Bruno Haible  <bruno@clisp.org>
10998
10999         arpa_inet: Use the common idioms with C++ support.
11000         * lib/arpa_inet.in.h: Include c++defs.h.
11001         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11002         support.
11003         * modules/arpa_inet (Depends-on): Add c++defs.
11004         (Makefile.am): Substitute the contents of c++defs.h.
11005         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11006         * modules/arpa_inet-c++-tests: New file.
11007         * tests/test-arpa_inet-c++.cc: New file.
11008
11009 2010-12-25  Bruno Haible  <bruno@clisp.org>
11010
11011         Fix more C++ link errors on Solaris 8.
11012         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11013         $(LIB_EACCESS).
11014         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11015         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11016         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11017         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11018         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11019
11020 2010-12-25  Bruno Haible  <bruno@clisp.org>
11021
11022         printf-posix: Fix link error when a non-GCC compiler is used.
11023         * lib/stdio.in.h (printf): When not using GCC, override printf
11024         correctly.
11025         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11026
11027 2010-12-25  Bruno Haible  <bruno@clisp.org>
11028
11029         strerror_r-posix: Update doc.
11030         * doc/posix-functions/strerror_r.texi: Update doc about the return
11031         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11032
11033 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11034
11035         utimens: simplify the logic of the previous change
11036         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11037         This should not affect whether the test succeeds or fails.
11038
11039         utimens: configure better on hosts with NFS clock skew
11040         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11041         uses the clock of the local host.  It might use the clock of the
11042         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11043         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11044
11045 2010-12-25  Bruno Haible  <bruno@clisp.org>
11046
11047         ptsname test: Avoid failure on Solaris.
11048         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11049         open a pseudo-terminal; don't use BSD-style ptys.
11050         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11051
11052 2010-12-25  Bruno Haible  <bruno@clisp.org>
11053
11054         ptsname: Avoid ERANGE failure on some systems.
11055         * lib/ptsname.c (buffer): Increase size.
11056
11057 2010-12-25  Bruno Haible  <bruno@clisp.org>
11058
11059         rename, renameat: Avoid test failures at NFS mounted locations.
11060         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11061         so that subsequent mkdir calls succeed.
11062
11063 2010-12-25  Bruno Haible  <bruno@clisp.org>
11064
11065         iswblank: Fix C++ link error on Solaris 8.
11066         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11067         _GL_FUNCDECL_SYS.
11068
11069 2010-12-25  Bruno Haible  <bruno@clisp.org>
11070
11071         unistd: Fix C++ link error on Solaris 8.
11072         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11073
11074 2010-12-25  Bruno Haible  <bruno@clisp.org>
11075
11076         readlink doc: Mention an old glibc bug.
11077         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11078
11079 2010-12-25  Bruno Haible  <bruno@clisp.org>
11080
11081         fcntl-h: Fix for use of C++ on glibc systems.
11082         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11083         also on glibc systems in C++ mode.
11084         Reported by Gary V. Vaughan <gary@gnu.org>.
11085
11086 2010-12-25  Bruno Haible  <bruno@clisp.org>
11087
11088         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11089         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11090
11091 2010-12-25  Bruno Haible  <bruno@clisp.org>
11092
11093         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11094         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11095         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11096         test whether truncl works according to ISO C 99 with IEC 60559.
11097         * m4/truncl-ieee.m4: New file.
11098         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11099         m4/signbit.m4.
11100         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11101
11102 2010-12-25  Bruno Haible  <bruno@clisp.org>
11103
11104         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11105         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11106         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11107         test whether ceill works according to ISO C 99 with IEC 60559.
11108         * m4/ceill-ieee.m4: New file.
11109         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11110         m4/signbit.m4.
11111         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11112
11113 2010-12-25  Bruno Haible  <bruno@clisp.org>
11114
11115         Ensure all prerequisites of <wchar.h> are included.
11116         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11117         before <wchar.h>.
11118         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11119         gl_MBRLEN_NUL_RETVAL): Likewise.
11120         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11121         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11122         AC_FUNC_MBRTOWC): Likewise.
11123         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11124         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11125         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11126         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11127         Likewise.
11128         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11129         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11130         (gl_WCHAR_H): Improve comments.
11131         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11132
11133 2010-12-25  Bruno Haible  <bruno@clisp.org>
11134
11135         strtok_r: Fix C syntax error in autoconf macro.
11136         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11137         characters in test program.
11138
11139 2010-12-24  Bruno Haible  <bruno@clisp.org>
11140
11141         ceil, trunc, round: Fix gcc warnings.
11142         * lib/ceil.c (MIN): Undefine before redefining.
11143         * lib/trunc.c (MIN): Likewise.
11144         * lib/round.c (MIN): Likewise.
11145         Include <math.h> first.
11146
11147 2010-12-24  Bruno Haible  <bruno@clisp.org>
11148
11149         select tests: Avoid failures on OSF/1 5.1.
11150         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11151         failure of closing the last socket; it may fail with ECONNRESET.
11152
11153 2010-12-24  Eric Blake  <eblake@redhat.com>
11154
11155         stdint: avoid HP-UX 10.20 preprocessor bug
11156         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11157         than #if.
11158         * tests/test-floor2.c (main): Likewise.
11159         Reported by Peter O'Gorman.
11160
11161         pipe: make obsoletion transition easier
11162         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11163         * modules/pipe (Files): Include revived file.
11164         (Include): Drop reference, to mirror getdate's behavior.
11165
11166 2010-12-24  Bruno Haible  <bruno@clisp.org>
11167
11168         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11169         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11170         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11171         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11172
11173 2010-12-24  Bruno Haible  <bruno@clisp.org>
11174
11175         gethostname: Ensure declaration on NonStop Kernel.
11176         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11177         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11178
11179 2010-12-24  Bruno Haible  <bruno@clisp.org>
11180
11181         sys_select: Ensure all necessary types on NonStop Kernel.
11182         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11183         include <sys/time.h>.
11184         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11185         NonStop Kernel.
11186         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11187
11188 2010-12-24  Bruno Haible  <bruno@clisp.org>
11189
11190         sys_select: Remove unneeded include.
11191         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11192         have <sys/select.h>.
11193
11194 2010-12-24  Bruno Haible  <bruno@clisp.org>
11195
11196         gethostname: Provide a fallback for HOST_NAME_MAX.
11197         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11198         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11199         instead.
11200         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11201
11202 2010-12-24  Bruno Haible  <bruno@clisp.org>
11203
11204         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11205         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11206         (SA_RESTART): Likewise.
11207         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11208
11209 2010-12-24  Bruno Haible  <bruno@clisp.org>
11210
11211         signal: Define NSIG.
11212         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11213         * tests/test-signal.c (nsig): New variable.
11214         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11215
11216 2010-12-24  Bruno Haible  <bruno@clisp.org>
11217
11218         rename, renameat: Avoid test failures on OSF/1 5.1.
11219         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11220         alternative error codes.
11221         * tests/test-renameat.c (main): Likewise.
11222
11223 2010-12-24  Bruno Haible  <bruno@clisp.org>
11224
11225         *printf: Detect large precisions bug on Solaris 10/SPARC.
11226         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11227         by Paul Eggert.
11228         * tests/test-snprintf-posix.h (test_function): Add this test code here
11229         too.
11230         * tests/test-sprintf-posix.h (test_function): Likewise.
11231         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11232         * tests/test-vasprintf-posix.c (test_function): Likewise.
11233         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11234         around by gnulib.
11235         * doc/posix-functions/printf.texi: Likewise.
11236         * doc/posix-functions/snprintf.texi: Likewise.
11237         * doc/posix-functions/sprintf.texi: Likewise.
11238         * doc/posix-functions/vfprintf.texi: Likewise.
11239         * doc/posix-functions/vprintf.texi: Likewise.
11240         * doc/posix-functions/vsnprintf.texi: Likewise.
11241         * doc/posix-functions/vsprintf.texi: Likewise.
11242         * doc/posix-functions/dprintf.texi: Undo last commit.
11243         * doc/posix-functions/vdprintf.texi: Likewise.
11244
11245 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11246
11247         tests: port test-fdutimensat.c to Solaris 8
11248         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11249         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11250         On Solaris 8, it fails with errno == ENOSYS, because there is no
11251         futimens (so it can't use the fd), and there is no lutimens (so it
11252         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11253
11254         vsnprintf: make more consistent with snprintf; doc fixes
11255
11256         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11257         the byte count return problem was promoted from the snprintf-posix
11258         to the snprintf module.
11259         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11260         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11261         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11262         * tests/test-snprintf.c (main): Check the byte count returned.
11263         * tests/test-vsnprintf.c (main): Likewise.
11264
11265 2010-12-23  Eric Blake  <eblake@redhat.com>
11266
11267         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11268         * modules/sigpipe (License): Relax license.
11269
11270 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11271
11272         doc: document Solaris printf bug with large float precisions
11273         * doc/posix-functions/dprintf.texi (dprintf):
11274         * doc/posix-functions/fprintf.texi (fprintf):
11275         * doc/posix-functions/printf.texi (printf):
11276         * doc/posix-functions/snprintf.texi (snprintf):
11277         * doc/posix-functions/sprintf.texi (sprintf):
11278         * doc/posix-functions/vdprintf.texi (vdprintf):
11279         * doc/posix-functions/vfprintf.texi (vfprintf):
11280         * doc/posix-functions/vprintf.texi (vprintf):
11281         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11282         * doc/posix-functions/vsprintf.texi (vsprintf):
11283         Mention that these functions mishandle large floating point
11284         precisions on Solaris 10.  The same bug is also present in Solaris
11285         8, and I assume earlier.  This causes "cd gnulib-tests; make
11286         check" to fail on Solaris 8 (and I assume, later) when building
11287         the latest coreutils, in test-vasprintf-posix's call to
11288         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11289         the wide flavors (e.g., wprintf) so this patch just updates the
11290         documentation for the narrow ones.
11291
11292         test-posixtm.c: add two tests
11293         * tests/test-posixtm.c: Add two tests, to highlight the
11294         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11295         around this bug; this is merely to document it.
11296
11297 2010-12-22  Bruno Haible  <bruno@clisp.org>
11298
11299         getlogin_r: Work around portability problem on OSF/1.
11300         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11301         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11302         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11303         test for a truncated result.
11304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11305         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11306         * modules/getlogin_r (Depends-on): Add memchr.
11307         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11308
11309 2010-12-22  Bruno Haible  <bruno@clisp.org>
11310
11311         ptsname: Avoid test failure on OSF/1 5.1.
11312         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11313         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11314         (same_slave): New function.
11315         (main): Use it to compare ptsname's result with the expected file name.
11316
11317 2010-12-22  Bruno Haible  <bruno@clisp.org>
11318
11319         Port extended stdio modules to HP NonStop Kernel.
11320         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11321         macros.
11322         * lib/fbufmode.c: Update comments.
11323         * lib/fflush.c: Likewise.
11324         * lib/fpurge.c: Likewise.
11325         * lib/freadable.c: Likewise.
11326         * lib/freadahead.c: Likewise.
11327         * lib/freading.c: Likewise.
11328         * lib/freadptr.c: Likewise.
11329         * lib/freadseek.c: Likewise.
11330         * lib/fseeko.c: Likewise.
11331         * lib/fseterr.c: Likewise.
11332         * lib/fwritable.c: Likewise.
11333         * lib/fwriting.c: Likewise.
11334         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11335
11336 2010-12-22  Bruno Haible  <bruno@clisp.org>
11337
11338         ttyname_r: Work around bug on OSF/1 5.1.
11339         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11340         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11341         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11342         present.
11343         * lib/ttyname_r.c (ttyname_r): Update comments.
11344
11345 2010-12-22  Bruno Haible  <bruno@clisp.org>
11346
11347         round: Implement result sign according to IEEE 754.
11348         * lib/round.c (MIN, MINUS_ZERO): New macros.
11349         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11350         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11351         * tests/test-round-ieee.c (main): Likewise.
11352         * tests/test-roundl-ieee.c (main): Likewise.
11353
11354         trunc: Implement result sign according to IEEE 754.
11355         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11356         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11357         * tests/test-trunc2.c: Include minus-zero.h.
11358         (MINUS_ZERO): New macro.
11359         (trunc_reference): Keep in sync with lib/trunc.c.
11360         * tests/test-truncf2.c: Include minus-zero.h.
11361         (MINUS_ZERO): New macro.
11362         (truncf_reference): Keep in sync with lib/trunc.c.
11363         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11364         * tests/test-trunc-ieee.c (main): Likewise.
11365         * tests/test-truncl-ieee.c (main): Likewise.
11366
11367         ceil: Implement result sign according to IEEE 754.
11368         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11369         (FUNC): Return -0.0 for -1 < x < 0.
11370         * tests/test-ceil2.c: Include minus-zero.h.
11371         (MINUS_ZERO): New macro.
11372         (ceil_reference): Keep in sync with lib/ceil.c.
11373         * tests/test-ceilf2.c: Include minus-zero.h.
11374         (MINUS_ZERO): New macro.
11375         (ceilf_reference): Keep in sync with lib/ceil.c.
11376         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11377         * tests/test-ceil-ieee.c (main): Likewise.
11378         * tests/test-ceill-ieee.c (main): Likewise.
11379
11380         floor: Implement result sign according to IEEE 754.
11381         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11382         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11383         * tests/test-floorf2.c (floorf_reference): Likewise.
11384         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11385         * tests/test-floor-ieee.c (main): Likewise.
11386         * tests/test-floorl-ieee.c (main): Likewise.
11387
11388 2010-12-22  Bruno Haible  <bruno@clisp.org>
11389
11390         getaddrinfo: Update doc.
11391         * doc/posix-functions/gai_strerror.texi: Return type is also different
11392         on AIX and HP-UX.
11393
11394 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11395
11396         getaddrinfo, inet_ntop: Update doc for Solaris.
11397         * doc/posix-functions/gai_strerror.texi: Return type is also an
11398         issue on Solaris 9 and earlier.
11399         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11400         on Solaris 10 and earlier.
11401
11402 2010-12-21  Bruno Haible  <bruno@clisp.org>
11403
11404         New module 'roundl-ieee'.
11405         * modules/roundl-ieee: New file.
11406         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11407         test whether roundl works according to ISO C 99 with IEC 60559.
11408         * m4/roundl-ieee.m4: New file.
11409         * modules/roundl-ieee-tests: New file.
11410         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11411         * tests/test-roundl.c (main): Remove signbit tests.
11412         * modules/roundl-tests (Depends-on): Remove signbit.
11413         * doc/posix-functions/roundl.texi: Mention the new module.
11414
11415 2010-12-21  Bruno Haible  <bruno@clisp.org>
11416
11417         New module 'truncl-ieee'.
11418         * modules/truncl-ieee: New file.
11419         * modules/truncl-ieee-tests: New file.
11420         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11421         * tests/test-truncl.c (main): Remove signbit tests.
11422         * modules/truncl-tests (Depends-on): Remove signbit.
11423         * doc/posix-functions/truncl.texi: Mention the new module.
11424
11425 2010-12-21  Bruno Haible  <bruno@clisp.org>
11426
11427         New module 'ceill-ieee'.
11428         * modules/ceill-ieee: New file.
11429         * modules/ceill-ieee-tests: New file.
11430         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11431         * tests/test-ceill.c (main): Remove signbit tests.
11432         * modules/ceill-tests (Depends-on): Remove signbit.
11433         * doc/posix-functions/ceill.texi: Mention the new module.
11434
11435 2010-12-21  Bruno Haible  <bruno@clisp.org>
11436
11437         New module 'floorl-ieee'.
11438         * modules/floorl-ieee: New file.
11439         * modules/floorl-ieee-tests: New file.
11440         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11441         * tests/test-floorl.c (main): Remove signbit tests.
11442         * modules/floorl-tests (Depends-on): Remove signbit.
11443         * doc/posix-functions/floorl.texi: Mention the new module.
11444
11445 2010-12-21  Bruno Haible  <bruno@clisp.org>
11446
11447         New module 'round-ieee'.
11448         * modules/round-ieee: New file.
11449         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11450         whether round works according to ISO C 99 with IEC 60559.
11451         * m4/round-ieee.m4: New file.
11452         * modules/round-ieee-tests: New file.
11453         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
11454         * tests/test-round1.c (main): Remove signbit tests.
11455         * modules/round-tests (Depends-on): Remove 'signbit'.
11456         * doc/posix-functions/round.texi: Mention the new module.
11457
11458 2010-12-21  Bruno Haible  <bruno@clisp.org>
11459
11460         New module 'trunc-ieee'.
11461         * modules/trunc-ieee: New file.
11462         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
11463         whether trunc works according to ISO C 99 with IEC 60559.
11464         * m4/trunc-ieee.m4: New file.
11465         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
11466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
11467         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
11468         * modules/trunc-ieee-tests: New file.
11469         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
11470         * tests/test-trunc1.c (main): Remove signbit tests.
11471         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11472         * doc/posix-functions/trunc.texi: Mention the new module.
11473
11474 2010-12-21  Bruno Haible  <bruno@clisp.org>
11475
11476         New module 'ceil-ieee'.
11477         * modules/ceil-ieee: New file.
11478         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11479         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11480         ISO C 99 with IEC 60559.
11481         * m4/ceil-ieee.m4: New file.
11482         * modules/ceil (Files): Add lib/ceil.c.
11483         (Depends-on): Add 'float'.
11484         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11485         * lib/math.in.h (ceil): New declaration.
11486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11487         REPLACE_CEIL.
11488         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11489         * modules/ceil-ieee-tests: New file.
11490         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11491         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11492         * doc/posix-functions/ceil.texi: Mention the new module.
11493
11494 2010-12-21  Bruno Haible  <bruno@clisp.org>
11495
11496         New module 'floor-ieee'.
11497         * modules/floor-ieee: New file.
11498         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11499         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11500         ISO C 99 with IEC 60559.
11501         * m4/floor-ieee.m4: New file.
11502         * modules/floor (Files): Add lib/floor.c.
11503         (Depends-on): Add 'float'.
11504         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11505         * lib/math.in.h (floor): New declaration.
11506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11507         REPLACE_FLOOR.
11508         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11509         * modules/floor-ieee-tests: New file.
11510         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11511         * tests/test-math-c++.cc: Check the signature of 'floor'.
11512         * doc/posix-functions/floor.texi: Mention the new module.
11513
11514 2010-12-21  Bruno Haible  <bruno@clisp.org>
11515
11516         New module 'roundf-ieee'.
11517         * modules/roundf-ieee: New file.
11518         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11519         test whether roundf works according to ISO C 99 with IEC 60559.
11520         * m4/roundf-ieee.m4: New file.
11521         * modules/roundf-ieee-tests: New file.
11522         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11523         * tests/test-roundf1.c (main): Remove signbit tests.
11524         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11525         * doc/posix-functions/roundf.texi: Mention the new module.
11526
11527 2010-12-21  Bruno Haible  <bruno@clisp.org>
11528
11529         New module 'truncf-ieee'.
11530         * modules/truncf-ieee: New file.
11531         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11532         test whether truncf works according to ISO C 99 with IEC 60559.
11533         * m4/truncf-ieee.m4: New file.
11534         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11536         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
11537         * modules/truncf-ieee-tests: New file.
11538         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
11539         * tests/test-truncf1.c (main): Remove signbit tests.
11540         * modules/truncf-tests (Depends-on): Remove 'signbit'.
11541         * doc/posix-functions/truncf.texi: Mention the new module.
11542
11543 2010-12-21  Bruno Haible  <bruno@clisp.org>
11544
11545         New module 'ceilf-ieee'.
11546         * modules/ceilf-ieee: New file.
11547         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
11548         test whether ceilf works according to ISO C 99 with IEC 60559.
11549         * m4/ceilf-ieee.m4: New file.
11550         * modules/ceilf-ieee-tests: New file.
11551         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
11552         * tests/test-ceilf1.c (main): Remove signbit tests.
11553         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
11554         * doc/posix-functions/ceilf.texi: Mention the new module.
11555
11556 2010-12-21  Bruno Haible  <bruno@clisp.org>
11557
11558         New module 'floorf-ieee'.
11559         * modules/floorf-ieee: New file.
11560         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
11561         test whether floorf works according to ISO C 99 with IEC 60559.
11562         * m4/floorf-ieee.m4: New file.
11563         * modules/floorf-ieee-tests: New file.
11564         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
11565         * tests/test-floorf1.c (main): Remove signbit tests.
11566         * modules/floorf-tests (Depends-on): Remove 'signbit'.
11567         * doc/posix-functions/floorf.texi: Mention the new module.
11568
11569 2010-12-21  Bruno Haible  <bruno@clisp.org>
11570
11571         Support for minus zero in autoconf macros.
11572         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
11573         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
11574         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
11575         * tests/minus-zero.h: Update comments.
11576
11577 2010-12-21  Bruno Haible  <bruno@clisp.org>
11578
11579         Tests for module 'ceil'.
11580         * modules/ceil-tests: New file.
11581         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
11582         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
11583
11584 2010-12-21  Bruno Haible  <bruno@clisp.org>
11585
11586         Tests for module 'floor'.
11587         * modules/floor-tests: New file.
11588         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
11589         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
11590
11591 2010-12-21  Bruno Haible  <bruno@clisp.org>
11592
11593         math: Fix indentation.
11594         * lib/math.in.h (floorf): Fix indentation.
11595
11596 2010-12-21  Bruno Haible  <bruno@clisp.org>
11597
11598         Fix cross-compilation guesses on Solaris.
11599         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
11600         not match "solaris2.10".
11601         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11602         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
11603         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11604
11605 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11606
11607         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
11608         This fixes a problem observed with the latest coreutils snapshot
11609         that caused a test to fail on Solaris 8.  src/csplit.c's call
11610         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
11611         earlier, instead of returning the number of bytes that would have
11612         been generated; this causes csplit to incorrectly report memory
11613         exhaustion.
11614         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
11615         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
11616         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
11617         comments to match.
11618         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
11619         Fix typo in matching older versions of Solaris: "solaris2.10"
11620         is matched by the shell pattern "solaris2.[0-9]*".  This matters
11621         only for guessing while cross-compiling.
11622         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
11623
11624 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11625
11626         ftoastr: fix comment again
11627         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11628         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
11629         Also, simplify example a bit by using flags = 0.
11630
11631 2010-12-20  Bruno Haible  <bruno@clisp.org>
11632
11633         round*, trunc*: Update documentation regarding glibc.
11634         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
11635         * doc/posix-functions/round.texi: Likewise.
11636         * doc/posix-functions/roundl.texi: Likewise.
11637         * doc/posix-functions/truncf.texi: Likewise.
11638         * doc/posix-functions/trunc.texi: Likewise.
11639         * doc/posix-functions/truncl.texi: Likewise.
11640
11641 2010-12-20  Bruno Haible  <bruno@clisp.org>
11642
11643         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
11644         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
11645         * doc/posix-functions/round.texi: Likewise.
11646         * doc/posix-functions/roundl.texi: Likewise.
11647
11648 2010-12-20  Bruno Haible  <bruno@clisp.org>
11649
11650         ttyname_r: Add missing declaration on HP-UX 11.
11651         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
11652         HAVE_TTYNAME_R.
11653         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
11654         declared. Set HAVE_TTYNAME_R always.
11655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11656         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
11657         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
11658         HAVE_TTYNAME_R.
11659         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
11660
11661 2010-12-20  Bruno Haible  <bruno@clisp.org>
11662
11663         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
11664         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
11665         * doc/posix-functions/getlogin_r.texi: Likewise.
11666         * tests/test-getlogin.c: Include <errno.h>.
11667         (main): Avoid test failure on HP-UX 11.11.
11668         * tests/test-getlogin_r.c (main): Likewise.
11669
11670 2010-12-20  Bruno Haible  <bruno@clisp.org>
11671
11672         getlogin_r: Add missing declaration on HP-UX 11.
11673         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
11674         declared also when it exists as a function.
11675         * doc/posix-functions/getlogin_r.texi: Document this workaround.
11676
11677 2010-12-20  Bruno Haible  <bruno@clisp.org>
11678
11679         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
11680         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
11681         through wcrtomb.
11682
11683 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
11684
11685         ftoastr: fix comment
11686         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11687         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
11688
11689 2010-12-19  Bruno Haible  <bruno@clisp.org>
11690
11691         isnan: Ensure it is a macro.
11692         * lib/math.in.h (isnan): Define as a macro if not already a macro.
11693         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
11694         Solaris.
11695
11696 2010-12-19  Bruno Haible  <bruno@clisp.org>
11697
11698         ldexpl test: Fix link error on OSF/1 5.1.
11699         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
11700
11701 2010-12-19  Bruno Haible  <bruno@clisp.org>
11702
11703         wctype: Make it work in C++ mode on OSF/1 5.1.
11704         * lib/wctype.in.h (iswblank): Declare but not define here.
11705         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
11706         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
11707         * modules/wctype (Files): Add lib/iswblank.c.
11708
11709 2010-12-19  Bruno Haible  <bruno@clisp.org>
11710
11711         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
11712         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
11713         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
11714
11715 2010-12-19  Bruno Haible  <bruno@clisp.org>
11716
11717         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
11718         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
11719         _POSIX_PII_SOCKET.
11720         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
11721         * doc/posix-functions/recvfrom.texi: Likewise.
11722         * doc/posix-functions/send.texi: Likewise.
11723         * doc/posix-functions/sendto.texi: Likewise.
11724
11725 2010-12-19  Bruno Haible  <bruno@clisp.org>
11726
11727         tcgetsid: Add missing declaration on OSF/1 5.1.
11728         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
11729         HAVE_TCGETSID.
11730         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
11731         Don't set HAVE_TCGETSID.
11732         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
11733         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
11734         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
11735         HAVE_TCGETSID.
11736         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
11737
11738 2010-12-19  Bruno Haible  <bruno@clisp.org>
11739
11740         stdio: Fix problem with popen() declaration on OSF/1 5.1.
11741         * lib/stdio.in.h: During the include_next statement, let recursive
11742         includes of this file include only the system header file.
11743
11744 2010-12-19  Bruno Haible  <bruno@clisp.org>
11745
11746         iconv_open: Fix regression from 2010-12-04.
11747         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
11748         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
11749
11750 2010-12-19  Bruno Haible  <bruno@clisp.org>
11751
11752         stdbool test: Avoid a gcc warning.
11753         * tests/test-stdbool.c (main): Fail if e1 is false.
11754         Reported by Jim Meyering.
11755
11756 2010-12-19  Jim Meyering  <meyering@redhat.com>
11757
11758         setenv: restore to working order
11759         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
11760         mistakenly removed.
11761         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
11762         HAVE_SETENV.
11763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
11764         HAVE_SETENV.
11765
11766 2010-12-19  Bruno Haible  <bruno@clisp.org>
11767
11768         Document some different function declarations on OSF/1 5.1.
11769         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
11770         * doc/posix-functions/inet_ntop.texi: Likewise.
11771         * doc/posix-functions/gethostname.texi: Likewise.
11772         * lib/unistd.in.h (gethostname): Update comment.
11773
11774 2010-12-19  Bruno Haible  <bruno@clisp.org>
11775
11776         doc: Mention vasprintf-posix module.
11777         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
11778         the 'vasprintf-posix' module.
11779         * doc/glibc-functions/vasprintf.texi: Likewise.
11780
11781 2010-12-19  Bruno Haible  <bruno@clisp.org>
11782
11783         unsetenv: Add missing declaration on OSF/1 5.1.
11784         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
11785         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
11786         Don't set HAVE_UNSETENV. In the test program, set _BSD.
11787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
11788         not HAVE_UNSETENV.
11789         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
11790         HAVE_UNSETENV.
11791         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
11792
11793 2010-12-19  Bruno Haible  <bruno@clisp.org>
11794
11795         setenv: Add missing declaration on OSF/1 5.1.
11796         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
11797         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
11798         declared. Don't set HAVE_SETENV.
11799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
11800         not HAVE_SETENV.
11801         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
11802         HAVE_SETENV.
11803         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
11804
11805 2010-12-19  Bruno Haible  <bruno@clisp.org>
11806
11807         nl_langinfo tests: Avoid gcc warning.
11808         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
11809
11810 2010-12-19  Bruno Haible  <bruno@clisp.org>
11811
11812         mknod: Avoid error in C++ mode on OSF/1 with GCC.
11813         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
11814         _GL_CXXALIAS_SYS.
11815
11816 2010-12-19  Bruno Haible  <bruno@clisp.org>
11817
11818         stdbool: Relax test.
11819         * tests/test-stdbool.c (e): Don't require that casts from a variable's
11820         address to 'bool' work in static initializer, for compilers other than
11821         GCC.
11822
11823 2010-12-19  Bruno Haible  <bruno@clisp.org>
11824
11825         ftello: Add missing declaration on OSF/1 5.1.
11826         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
11827         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
11828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
11829         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
11830         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
11831
11832 2010-12-19  Bruno Haible  <bruno@clisp.org>
11833
11834         fseeko: Add missing declaration on OSF/1 5.1.
11835         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
11836         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
11837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
11838         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
11839         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
11840
11841 2010-12-19  Bruno Haible  <bruno@clisp.org>
11842
11843         fchdir: Add missing declaration on OSF/1 5.1.
11844         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
11845         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
11846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
11847         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
11848         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
11849
11850 2010-12-19  Bruno Haible  <bruno@clisp.org>
11851
11852         relocatable-prog-wrapper: Separate from relocatable-prog.
11853         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
11854         uninstall-relocwrapper rule here.
11855         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
11856         Reported by Ian Beckwith <ianb@erislabs.net>.
11857
11858 2010-12-19  Bruno Haible  <bruno@clisp.org>
11859
11860         unistr/u8-mbsnlen: Add missing dependency.
11861         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
11862         Reported by Ian Beckwith <ianb@erislabs.net>.
11863
11864 2010-12-19  Bruno Haible  <bruno@clisp.org>
11865
11866         iconv: Make it possible again to use this module without 'iconv-h'.
11867         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
11868         if it is not defined.
11869         Reported by Ian Beckwith <ianb@erislabs.net>.
11870
11871 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
11872
11873         acl: port to Solaris 8 when copying from tmpfs to ufs
11874         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
11875         error number.  Problem observed on Solaris 8 with latest
11876         coreutils, with "mv A B", where A is on a tmpfs file system and B
11877         is on a ufs file system.  This caused coreutils' mv/part-symlink
11878         test to fail.
11879
11880         tests: set fail=0 at start
11881         * tests/init.sh (setup_): Move fail=0 initialization here ...
11882         (mktempd_): ... from here, so that tests can rely on fail being
11883         set to 0 initially.  This fixes a problem in coreutils; see:
11884         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
11885
11886 2010-12-18  Bruno Haible  <bruno@clisp.org>
11887
11888         memmem-simple: Stylistic changes.
11889         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
11890         Fix preprocessor directive indentation.
11891
11892 2010-12-15  Pádraig Brady <P@draigBrady.com>
11893
11894         memmem, memmem-simple: reorganize and expand empty needle check
11895         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
11896         functional checks to memmem-simple so that one has a fully functional
11897         memmem by using just this module.
11898         Restrict the performance only check to the memmem module.
11899         Also expand the empty needle check to ensure the correct
11900         pointer is returned, not just a non NULL pointer.
11901         * doc/glibc-functions/memmem.texi: Rearrange the portability
11902         documentation to correlate with the rearranged checks.
11903         Clarify exactly how the memmem and memmem-simple modules
11904         relate to each other.
11905
11906 2010-12-15  Pádraig Brady <P@draigBrady.com>
11907             Bruno Haible  <bruno@clisp.org>
11908
11909         Improve cross-compilation guesses for uClibc.
11910         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
11911         that uClibc does not have the glibc bug.
11912         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
11913         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
11914
11915 2010-12-14  Eric Blake  <eblake@redhat.com>
11916
11917         configmake: provide fallbacks for oldest supported autotools
11918         * m4/configmake.m4: New file.
11919         * modules/configmake (Files): Ship it.
11920         (configure.ac): Use it to guarantee fallbacks.
11921
11922 2010-12-13  Pádraig Brady <P@draigBrady.com>
11923
11924         read-file: Improve handling of large files
11925         * lib/read-file.c (fread_file): Minimize realloc()s
11926         for regular files, and better manage sizes around SIZE_MAX.
11927
11928 2010-12-13  Eric Blake  <eblake@redhat.com>
11929
11930         cloexec, fcntl: relax license
11931         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
11932         consent from all contributors.
11933         * modules/fcntl (License): Likewise.
11934
11935 2010-12-10  Bruno Haible  <bruno@clisp.org>
11936
11937         Tests for module 'pipe-posix'.
11938         * modules/pipe-posix-tests: New file.
11939         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
11940
11941 2010-12-10  Bruno Haible  <bruno@clisp.org>
11942
11943         pipe-posix: Make it work in C++ mode.
11944         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
11945         (pipe): Use common idiom, not a macro definition.
11946         * lib/pipe.c: New file.
11947         * m4/pipe.m4: New file.
11948         * modules/pipe-posix (Description): Enhance.
11949         (Files): Add lib/pipe.c, m4/pipe.m4.
11950         (configure.ac): Invoke gl_FUNC_PIPE.
11951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
11952         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
11953         * tests/test-unistd-c++.cc: Check the signature of pipe.
11954
11955 2010-12-10  Bruno Haible  <bruno@clisp.org>
11956
11957         Rename module 'pipe' to 'spawn-pipe'.
11958         * modules/spawn-pipe: New file, renamed from modules/pipe.
11959         (Files, configure.ac, Makefile.am): Update.
11960         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
11961         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
11962         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
11963         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
11964         "spawn-pipe.h" instead of "pipe.h".
11965         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
11966         to gl_SPAWN_PIPE.
11967         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
11968         (Files, Makefile.am): Update.
11969         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
11970         Update.
11971         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
11972         Include "spawn-pipe.h" instead of "pipe.h".
11973         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
11974         * lib/javacomp.c: Likewise.
11975         * lib/javaversion.c: Likewise.
11976         * lib/pipe-filter-gi.c: Likewise.
11977         * lib/pipe-filter-ii.c: Likewise.
11978         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
11979         * modules/javacomp (Depends-on): Likewise.
11980         * modules/javaversion (Depends-on): Likewise.
11981         * modules/pipe-filter-gi (Depends-on): Likewise.
11982         * modules/pipe-filter-ii (Depends-on): Likewise.
11983         * MODULES.html.sh (Executing programs): Update.
11984         * NEWS: Mention the change.
11985
11986 2010-12-10  Eric Blake  <eblake@redhat.com>
11987
11988         pipe-posix: new module
11989         * modules/pipe-posix: New file.
11990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
11991         (gl_UNISTD_H): Check for declaration.
11992         * modules/unistd (Makefile.am): Substitute it.
11993         * lib/unistd.in.h (pipe): Provide it for mingw.
11994         * doc/posix-functions/pipe.texi (pipe): Update documentation.
11995         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
11996
11997 2010-12-07  Bruno Haible  <bruno@clisp.org>
11998
11999         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12000         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12001         u8_strcmp_gnu.
12002         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12003
12004 2010-12-06  Bruno Haible  <bruno@clisp.org>
12005
12006         Update internal documentation.
12007         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12008
12009 2010-12-04  Bruno Haible  <bruno@clisp.org>
12010
12011         Put more information about failed tests into the test return codes.
12012         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12013         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12014         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12015         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12016         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12017         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12018         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12019         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12020         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12022         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12023         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12024         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12025         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12026         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12027         returns a bit mask.
12028         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12029         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12030         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12031         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12032         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12033         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12034         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12036         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12037         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12038         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12039         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12040         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12041         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12042         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12043         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12044         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12045         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12046         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12047         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12048         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12049         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12050         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12051         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12052         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12053         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12054         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12055         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12056         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12057         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12058         gl_PRINTF_PRECISION): Likewise.
12059         * m4/regex.m4 (gl_REGEX): Likewise.
12060         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12061         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12062         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12063         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12064         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12065         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12066         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12067         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12068         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12069         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12070         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12071         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12072         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12073         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12074         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12075         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12076         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12077         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12078         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12079         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12080         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12081         enumerated value.
12082         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12083
12084 2010-12-04  Bruno Haible  <bruno@clisp.org>
12085
12086         Update for Solaris 11 2010-11.
12087         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12088         Express, released in November 2010.
12089
12090 2010-12-04  Bruno Haible  <bruno@clisp.org>
12091
12092         nproc: Relax license.
12093         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12094         and Paul Eggert.
12095         Requested by Ludovic Courtès <ludo@gnu.org>.
12096
12097 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12098
12099         utimecmp: fine-grained src to nearby coarse-grained dest
12100
12101         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12102         and the source is on a file system with higher-resolution time
12103         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12104         not work, and the time stamps are close together, the algorithm to
12105         determine the exact resolution from the read-back mtime was buggy:
12106         it had a "!=" where it should have had an "==".  This bug has been
12107         in the code ever since it was introduced to gnulib.
12108         Problem reported by Dan Jacobson in
12109         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12110
12111 2010-11-30  Bruno Haible  <bruno@clisp.org>
12112
12113         strerror_r-posix: Fix autoconf test.
12114         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12115
12116 2010-11-28  Bruno Haible  <bruno@clisp.org>
12117             Paul Eggert  <eggert@cs.ucla.edu>
12118
12119         Tests for module 'getdomainname'.
12120         * modules/getdomainname-tests: New file.
12121         * tests/test-getdomainname.c: New file, based on
12122         tests/test-gethostname.c.
12123
12124 2010-11-28  Bruno Haible  <bruno@clisp.org>
12125             Paul Eggert  <eggert@cs.ucla.edu>
12126
12127         getdomainname: Use the system function when possible.
12128         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12129         (getdomainname): Replace if needed. Provide the declaration if it is
12130         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12131         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12132         (getdomainname): When the system has getdomainname, call the system
12133         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12134         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12135         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12136         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12137         the function if its second argument is of type 'int' or if it is found
12138         in libnsl.
12139         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12140         <sys/systeminfo.h> and sysinfo().
12141         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12143         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12144         HAVE_GETDOMAINNAME.
12145         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12146         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12147         * doc/glibc-functions/getdomainname.texi: Document the problems with
12148         the getdomainname declaration.
12149
12150 2010-11-28  Bruno Haible  <bruno@clisp.org>
12151
12152         sys_socket: Ensure ss_family field on AIX.
12153         * lib/sys_socket.in.h (ss_family): New macro definition.
12154         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12155         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12156         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12157         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12158         * modules/sys_socket (Makefile.am): Substitute
12159         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12160         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12161
12162 2010-11-27  Bruno Haible  <bruno@clisp.org>
12163
12164         readline: Improve configure output.
12165         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12166         "checking for readline..." result understandable.
12167
12168 2010-11-27  Bruno Haible  <bruno@clisp.org>
12169
12170         *printf-posix: Detect a bug on Solaris 10/x86.
12171         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12172         for floating-point output.
12173         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12174         directive.
12175         * tests/test-snprintf-posix.h (test_function): Likewise.
12176         * tests/test-sprintf-posix.h (test_function): Likewise.
12177         * tests/test-vasprintf-posix.c (test_function): Likewise.
12178         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12179         * doc/posix-functions/printf.texi: Likewise.
12180         * doc/posix-functions/snprintf.texi: Likewise.
12181         * doc/posix-functions/sprintf.texi: Likewise.
12182         * doc/posix-functions/vfprintf.texi: Likewise.
12183         * doc/posix-functions/vprintf.texi: Likewise.
12184         * doc/posix-functions/vsnprintf.texi: Likewise.
12185         * doc/posix-functions/vsprintf.texi: Likewise.
12186         * doc/glibc-functions/obstack_printf.texi: Likewise.
12187         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12188
12189 2010-11-27  Bruno Haible  <bruno@clisp.org>
12190
12191         Fix link error when module libunistring-optional is in use.
12192         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12193         * modules/striconveha-tests (Makefile.am): Likewise.
12194
12195 2010-11-27  Bruno Haible  <bruno@clisp.org>
12196
12197         regex: Mention link dependencies.
12198         * modules/regex (Link): New section.
12199         * modules/rpmatch (Link): Likewise.
12200         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12201
12202 2010-11-27  Bruno Haible  <bruno@clisp.org>
12203
12204         ftoastr: Fix compilation error on Solaris.
12205         * lib/ftoastr.c: Include <config.h>.
12206
12207 2010-11-27  Bruno Haible  <bruno@clisp.org>
12208
12209         getloadavg: Update documentation.
12210         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12211
12212 2010-11-27  Bruno Haible  <bruno@clisp.org>
12213
12214         sys_socket: Fix test whether the functions are declared.
12215         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12216         not <sys/select.h>.
12217
12218 2010-11-27  Bruno Haible  <bruno@clisp.org>
12219
12220         getpass: Make sure to get system declaration on some platforms.
12221         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12222         gl_USE_SYSTEM_EXTENSIONS.
12223         * modules/getpass (Depends-on): Add extensions.
12224
12225 2010-11-26  Bruno Haible  <bruno@clisp.org>
12226
12227         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12228         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12229         'iconv' module is present.
12230         (ICONV_CONST): New macro.
12231         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12232         ICONV_CONST.
12233         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12234         set ICONV_CONST.
12235         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12236         here.
12237         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12238         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12239         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12240         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12241         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12242         present.
12243
12244 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12245
12246         ftoastr: comment fix
12247         * lib/ftoastr.c: "little" -> "little or no" in comment
12248
12249 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12250
12251         stdint: port to GCC 4.3 + OSX + Octave
12252         On this platform, stdint.h is buggy and defines int64_t to long
12253         long int.  The replacement defined it to long int, causing
12254         problems with C++ style name mangling.  Instead, trust the system
12255         definition if INT64_MAX is defined, and likewise for the unsigned
12256         variant.   Problem reported by Jarno Rajahalme in
12257         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12258         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12259         and don't mess with int64_t and INT64_MAX in this case.
12260         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12261
12262 2010-11-24  Bruno Haible  <bruno@clisp.org>
12263
12264         doc: Corrections regarding MacOS X 10.4 and 10.5.
12265         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12266         MacOS X.
12267         Reported by Simon Josefsson.
12268
12269 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12270
12271         Uninstall ".bin" files installed by relocwrapper.
12272         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12273         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12274         unless it is already there.
12275
12276 2010-11-21  Bruno Haible  <bruno@clisp.org>
12277
12278         Update for NetBSD 5.0.
12279         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12280         NetBSD; the test fails on NetBSD 5.0.
12281         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12282         about NetBSD.
12283
12284 2010-11-21  Bruno Haible  <bruno@clisp.org>
12285
12286         Update for HP-UX 11.23 and HP-UX 11.31.
12287         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12288         HP-UX.
12289
12290 2010-11-21  Bruno Haible  <bruno@clisp.org>
12291
12292         Update for MacOS X 10.5.
12293         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12294         MacOS X; the test fails on MacOS X 10.5.8.
12295         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12296         about MacOS X.
12297
12298 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12299
12300         bootstrap: add bootstrap_sync option.
12301         See discussion at
12302         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12303         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12304         * build-aux/bootstrap: Accept --bootstrap-sync to update
12305         bootstrap if it is not identical to the local gnulib's
12306         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12307         enable this by default.  Accept --no-bootstrap-sync to disable
12308         it.
12309
12310 2010-11-20  Bruno Haible  <bruno@clisp.org>
12311
12312         Ensure that <features.h> is included before __GLIBC__ is tested.
12313         * lib/printf-parse.h: Include <features.h>.
12314         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12315         Reported by Mike Frysinger <vapier@gentoo.org>.
12316
12317         Ensure that <features.h> is included before __GLIBC__ is tested.
12318         * lib/wchar.in.h: Include <features.h>.
12319         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12320         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12321         Reported by Mike Frysinger <vapier@gentoo.org>.
12322
12323         Ensure that <features.h> is included before __GLIBC__ is tested.
12324         * lib/arpa_inet.in.h: Include <features.h>.
12325         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12326         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12327         Reported by Mike Frysinger <vapier@gentoo.org>.
12328
12329         Ensure that <features.h> is included before __GLIBC__ is tested.
12330         * build-aux/link-warning.h: Include <features.h>.
12331         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12332         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12333         Reported by Mike Frysinger <vapier@gentoo.org>.
12334
12335         Ensure that <features.h> is included before __GLIBC__ is tested.
12336         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12337         Reported by Mike Frysinger <vapier@gentoo.org>.
12338
12339 2010-11-20  Bruno Haible  <bruno@clisp.org>
12340
12341         memmem: Fix autoconf test.
12342         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12343
12344 2010-11-20  Bruno Haible  <bruno@clisp.org>
12345
12346         Port to uClibc.
12347         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12348         * lib/fcntl.in.h: Likewise.
12349         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12350         * lib/mbrtowc.c (mbrtowc): Likewise.
12351         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12352         * lib/strerror_r.c: Likewise.
12353         * lib/unistr/u8-strnlen.c: Likewise.
12354         * lib/vasnprintf.c (decimal_point_char): Likewise.
12355         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12356         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12357         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12358         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12359         * tests/test-sigaction.c (handler, main): Likewise.
12360         * lib/freading.h: Treat uClibc like a non-glibc platform.
12361         * lib/freading.c: Likewise.
12362         * lib/gettext.h: Likewise.
12363         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12364         Likewise.
12365         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12366         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12367         * lib/propername.c (proper_name_utf8): Likewise.
12368         * lib/spawn.in.h: Likewise.
12369         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12370         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12371         mem_cd_iconveh_internal): Likewise.
12372         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12373         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12374         strstr, strcasestr): Likewise.
12375         * lib/unicodeio.c (unicode_to_mb): Likewise.
12376         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12377         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12378         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12379         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12380         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12381         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12382         * lib/unistr/u8-stpncpy.c: Likewise.
12383         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12384         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12385         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12386         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12387         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12388         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12389         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12390         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12392         Likewise.
12393         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12394         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12395         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12396         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12397         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12398         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12399         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12400         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12401         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12402         * tests/test-striconveha.c (main): Likewise.
12403         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12404         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12405         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12406         * doc/posix-functions/getline.texi: Likewise.
12407         Reported by Mike Frysinger <vapier@gentoo.org>.
12408
12409 2010-11-20  Bruno Haible  <bruno@clisp.org>
12410
12411         nproc: Fix condition.
12412         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12413         HAVE_PTHREAD_AFFINITY_NP.
12414
12415 2010-11-20  Bruno Haible  <bruno@clisp.org>
12416
12417         Fix a comment.
12418         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12419
12420 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12421
12422         ftoastr: don't assume snprintf
12423         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12424         Implement a subset of snprintf here, by using sprintf safely.
12425         * modules/ftoastr (Depends-on): Remove snprintf.
12426
12427 2010-11-19  Jim Meyering  <meyering@redhat.com>
12428
12429         test-rename.h: fix compilation failure
12430         * tests/test-rename.h (test_rename): Add omitted "}".
12431
12432 2010-11-17  Jim Meyering  <meyering@redhat.com>
12433
12434         maint.mk: add a URL discussing the no-@acronym policy
12435         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12436
12437 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12438
12439         ftoastr: depend on snprintf, improve comments
12440         * lib/ftoastr.c: Also mention Loitsch's draft.
12441         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12442         needed in the current implementation, but it might simplify
12443         speeding up the code later.
12444         * modules/ftoastr: Depend on snprintf; this improves portability.
12445         Suggested by Bruno Haible in the same email.
12446
12447         ftoastr: port to hosts lacking strtof and strtold
12448         Problem reported by Bruno Haible in
12449         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12450         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12451         environment and strtold (and presumably strtof) are not available.
12452         * modules/ftoastr (Files): Add m4/c-strtod.m4.
12453         (configure.ac): Require gl_C99_STRTOLD.
12454
12455 2010-11-18  Bruno Haible  <bruno@clisp.org>
12456
12457         c-strtold: Avoid link error on AIX 7.
12458         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
12459         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
12460         (gl_C_STRTOLD): Test whether strtold_l exists.
12461         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12462
12463 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12464
12465         intprops: new macro INT_BITS_STRLEN_BOUND
12466         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
12467         ftoastr.h.  This exposes an internal of intprops.h that was formerly
12468         not exposed.  Also, it uses a slightly tighter bound than before;
12469         though this makes no practical difference, we might as well be as
12470         tight as we easily can.
12471
12472         ftoastr: new module, for lossless conversion of floats to short strings
12473         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12474         * modules/ftoastr: New files.
12475
12476 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12477
12478         bootstrap: port to Solaris sed
12479         * build-aux/bootstrap (get_version): Port to Solaris sed.
12480         See Ralf Wildenhues's note in
12481         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12482
12483 2010-11-14  Jim Meyering  <meyering@redhat.com>
12484
12485         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12486         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12487         and move definition closer to sole use.
12488
12489 2010-11-13  Jim Meyering  <meyering@redhat.com>
12490
12491         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12492         Now we require at least autoconf-2.59, which means the work-around
12493         is no longer needed.
12494         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12495         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12496         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12497         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12498         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12499
12500 2010-11-13  Bruno Haible  <bruno@clisp.org>
12501
12502         rename, renameat: Avoid test failures at NFS mounted locations.
12503         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12504         functions.
12505         (test_rename): Use assert_nonexistent.
12506         * tests/test-rename.c: Include <dirent.h>.
12507         * tests/test-renameat.c: Likewise.
12508         Reported by Gary V. Vaughan <gary@gnu.org>.
12509
12510         rename, renameat: Document Linux bug with NFS
12511         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12512         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12513         * doc/posix-functions/renameat.texi: Likewise.
12514         Suggested by Eric Blake.
12515
12516 2010-11-13  Bruno Haible  <bruno@clisp.org>
12517
12518         rename test: Add comments.
12519         * tests/test-rename.h (test_rename): Add structure and comments.
12520
12521 2010-11-13  Eric Blake  <eblake@redhat.com>
12522
12523         maintainer-makefile: cover a few more files
12524         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12525         scripts generated within C files, for libvirt.
12526
12527 2010-11-13  Bruno Haible  <bruno@clisp.org>
12528
12529         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12530         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12531         character, return the number of bytes that belong together, not always
12532         1.
12533         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12534         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12535         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12536         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
12537         number of bytes of an invalid character.
12538         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
12539         (main): Invoke it.
12540         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
12541         results.
12542         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
12543         malformed byte sequences.
12544         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
12545         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
12546         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
12547         Reported by Ben Pfaff and Paolo Bonzini.
12548
12549 2010-11-13  Bruno Haible  <bruno@clisp.org>
12550
12551         openat: Work around glibc bug with fchownat() and empty file names.
12552         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
12553         (gl_FUNC_FCHOWNAT): Invoke it.
12554         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
12555         * doc/posix-functions/fchownat.texi: Document the glibc bug.
12556         Reported by Gary V. Vaughan <gary@gnu.org>.
12557
12558 2010-11-13  Bruno Haible  <bruno@clisp.org>
12559
12560         openat: Ensure autoconf macro ordering.
12561         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
12562         gl_USE_SYSTEM_EXTENSIONS.
12563         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
12564
12565 2010-11-13  Bruno Haible  <bruno@clisp.org>
12566
12567         Update comments.
12568         * lib/unistr/u8-check.c: Update file name in comments.
12569         * lib/unistr/u8-mblen.c: Likewise.
12570         * lib/unistr/u8-prev.c: Likewise.
12571         * lib/unistr/u8-strmblen.c: Likewise.
12572         * lib/unistr/u8-strmbtouc.c: Likewise.
12573
12574 2010-11-13  Jim Meyering  <meyering@redhat.com>
12575
12576         tests: avoid test failure on Solaris 10 due to lack of PATH export
12577         * tests/test-update-copyright.sh: Don't forget to export PATH.
12578
12579         init.sh: ensure that IFS is defined, just in case...
12580         * tests/init.sh (setup_): Ensure that IFS is defined,
12581         so that saving and restoring it works as expected.  This
12582         appears to be useful at least for an old version of dash
12583         from a long time ago (RH 6).  See here for details:
12584         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
12585
12586         maint.mk: tighten "test a == b" check
12587         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
12588         test to files that contain something like #!/bin/sh.
12589         Without this, coreutils would get two false positives in
12590         the comments of C source files.
12591
12592 2010-11-12  Eric Blake  <eblake@redhat.com>
12593
12594         bootstrap: fix typo in previous attempt
12595         * build-aux/bootstrap (buildreq): Correct the grouping.
12596         Reported by Paul Eggert.
12597
12598         maintainer-makefile: prohibit test x == x
12599         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
12600         Based on a report by Matthias Bolte.
12601
12602         bootstrap: allow FreeBSD gzip
12603         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
12604         which has no '.' and goes to stderr.
12605         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
12606         Reported by Matthias Bolte.
12607
12608         maintainer-makefile: check for i18n setup
12609         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
12610         will likely work.
12611
12612 2010-11-12  Bruno Haible  <bruno@clisp.org>
12613
12614         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
12615         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
12616         * lib/nanosleep.c (nanosleep): Likewise.
12617
12618 2010-11-11  Bruno Haible  <bruno@clisp.org>
12619
12620         fcntl-h: Fix for use of C++ on glibc systems.
12621         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12622         also on glibc systems in C++ mode.
12623         Reported by Gary V. Vaughan <gary@gnu.org>.
12624
12625 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12626
12627         mknod: avoid false failure with dash
12628         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
12629
12630 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12631
12632         unlink: Fix "is it should" typo in diagnostic.
12633         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
12634         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
12635
12636 2010-11-11  Bruno Haible  <bruno@clisp.org>
12637
12638         Tests for module 'strerror_r-posix'.
12639         * modules/strerror_r-posix-tests: New file.
12640         * tests/test-strerror_r.c: New file.
12641         * tests/test-string-c++.cc: Check the signature of strerror_r.
12642
12643         New module 'strerror_r-posix'.
12644         * lib/string.in.h (strerror_r): New declaration.
12645         * lib/strerror_r.c: New file.
12646         * m4/strerror_r.m4: New file.
12647         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
12648         of strerror_r.
12649         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
12650         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12651         * modules/strerror_r-posix: New file.
12652         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
12653         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12654         * doc/posix-functions/strerror_r.texi: Mention the new module and the
12655         portability problems.
12656
12657 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
12658
12659         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
12660         line is also considered for output. Quoted function name in shell
12661         command, so temporary files for functions like MyClass::operator()
12662         are removed correctly without errors.
12663
12664 2010-11-09  Bruno Haible  <bruno@clisp.org>
12665
12666         * doc/posix-functions/strerror.texi: List more failing platforms.
12667
12668         * doc/posix-functions/strerror.texi: Add a comment.
12669
12670 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
12671
12672         fdopendir: fix bug on MacOS X when low on file descriptors
12673
12674         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
12675         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
12676         All callers changed.
12677         (fdopendir): Invoke save_cwd at the top level, not after using
12678         multiple dup() calls to use up file descriptors.  Then retry
12679         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
12680         less than the maximum number of open file descriptors, because
12681         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
12682         on Mac OS X 10.6.4 for tar 1.24
12683         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
12684         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
12685         and for tar 1.25
12686         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
12687
12688 2010-11-07  Bruno Haible  <bruno@clisp.org>
12689
12690         vasnprintf: Support I flag on glibc systems.
12691         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
12692         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
12693         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
12694         snprintf function.
12695         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
12696         glibc systems.
12697         * tests/test-vasnprintf-posix3.c: New file.
12698         * modules/vasnprintf-posix-tests (Files): Add it.
12699         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
12700
12701 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12702
12703         [html] Fix copy/paste bug: Use unique name for compiler warnings.
12704         * MODULES.html.sh: For compiler warnings, use name
12705         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
12706
12707 2010-11-05  Eric Blake  <eblake@redhat.com>
12708
12709         ceil, floor: avoid spurious failure with icc
12710         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
12711         [denormals-as-zero] when optimizing without -mieee-fp option.
12712         * tests/test-floorf2.c (floorf_reference): Likewise.
12713         * tests/test-ceilf1.c (dummy): New function.
12714         (main): Use it to outsmart icc's optimization.
12715         * tests/test-floorf1.c (dummy, main): Likewise.
12716
12717         tests: require working signbit
12718         * modules/ceilf-tests (Depends-on): Add signbit.
12719         * modules/ceill-tests (Depends-on): Likewise.
12720         * modules/floorf-tests (Depends-on): Likewise.
12721         * modules/floorl-tests (Depends-on): Likewise.
12722         * modules/round-tests (Depends-on): Likewise.
12723         * modules/roundf-tests (Depends-on): Likewise.
12724         * modules/roundl-tests (Depends-on): Likewise.
12725         * modules/trunc-tests (Depends-on): Likewise.
12726         * modules/truncf-tests (Depends-on): Likewise.
12727         * modules/truncl-tests (Depends-on): Likewise.
12728
12729         strtod: work around icc bug
12730         * lib/strtod.c (minus_zero): Define to working value.
12731         (strtod): Use it to avoid icc bug.
12732
12733         copysign: enhance tests
12734         * modules/copysign-tests (Files): Add minus-zero.h.
12735         * tests/test-copysign.c (main): Also test zeros.
12736
12737 2010-11-04  Eric Blake  <eblake@redhat.com>
12738
12739         ceil, floor, round, trunc: enhance tests of -0
12740         * tests/test-ceilf1.c (main): Ensure correct sign of result.
12741         * tests/test-ceill.c (main): Likewise.
12742         * tests/test-floorf1.c (main): Likewise.
12743         * tests/test-floorl.c (main): Likewise.
12744         * tests/test-round1.c (main): Likewise.
12745         * tests/test-roundf1.c (main): Likewise.
12746         * tests/test-roundl.c (main): Likewise.
12747         * tests/test-trunc1.c (main): Likewise.
12748         * tests/test-truncf1.c (main): Likewise.
12749         * tests/test-truncl.c (main): Likewise.
12750
12751 2010-11-04  Eric Blake  <eblake@redhat.com>
12752
12753         frexp, tests: work around ICC bug with -zero
12754         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
12755         works with more compilers.
12756         * tests/minus-zero.h: New file.
12757         * modules/ceilf-tests (Files): Include it.
12758         * modules/ceill-tests (Files): Likewise.
12759         * modules/floorf-tests (Files): Likewise.
12760         * modules/floorl-tests (Files): Likewise.
12761         * modules/frexp-nolibm-tests (Files): Likewise.
12762         * modules/frexp-tests (Files): Likewise.
12763         * modules/frexpl-nolibm-tests (Files): Likewise.
12764         * modules/frexpl-tests (Files): Likewise.
12765         * modules/isnan-tests (Files): Likewise.
12766         * modules/isnand-nolibm-tests (Files): Likewise.
12767         * modules/isnand-tests (Files): Likewise.
12768         * modules/isnanf-nolibm-tests (Files): Likewise.
12769         * modules/isnanf-tests (Files): Likewise.
12770         * modules/isnanl-nolibm-tests (Files): Likewise.
12771         * modules/isnanl-tests (Files): Likewise.
12772         * modules/round-tests (Files): Likewise.
12773         * modules/roundf-tests (Files): Likewise.
12774         * modules/roundl-tests (Files): Likewise.
12775         * modules/ldexpl-tests (Files): Likewise.
12776         * modules/signbit-tests (Files): Likewise.
12777         * modules/snprintf-posix-tests (Files): Likewise.
12778         * modules/sprintf-posix-tests (Files): Likewise.
12779         * modules/strtod-tests (Files): Likewise.
12780         * modules/trunc-tests (Files): Likewise.
12781         * modules/truncf-tests (Files): Likewise.
12782         * modules/truncl-tests (Files): Likewise.
12783         * modules/vsnprintf-posix-tests (Files): Likewise.
12784         * modules/vsprintf-posix-tests (Files): Likewise.
12785         * modules/vasnprintf-posix-tests (Files): Likewise.
12786         * modules/vasprintf-posix-tests (Files): Likewise.
12787         * tests/test-ceilf1.c (main): Use it.
12788         * tests/test-ceill.c (main): Likewise.
12789         * tests/test-floorf1.c (main): Likewise.
12790         * tests/test-floorl.c (main): Likewise.
12791         * tests/test-frexp.c (main): Likewise.
12792         * tests/test-frexpl.c (main): Likewise.
12793         * tests/test-isnan.c (main): Likewise.
12794         * tests/test-isnand.h (main): Likewise.
12795         * tests/test-isnanf.h (main): Likewise.
12796         * tests/test-isnanl.h (main): Likewise.
12797         * tests/test-ldexpl.c (main): Likewise.
12798         * tests/test-round.c (main): Likewise.
12799         * tests/test-roundf.c (main): Likewise.
12800         * tests/test-roundl.c (main): Likewise.
12801         * tests/test-signbit.c (test_signbitf, test_signbitd)
12802         (test_signbitl): Likewise.
12803         * tests/test-snprintf-posix.h (test_function): Likewise.
12804         * tests/test-sprintf-posix.h (test_function): Likewise.
12805         * tests/test-strtod.c (main): Likewise.
12806         * tests/test-trunc1.c (main): Likewise.
12807         * tests/test-truncf1.c (main): Likewise.
12808         * tests/test-truncl.c (main): Likewise.
12809
12810         isnanl: work around icc bug
12811         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
12812
12813 2010-11-03  Eric Blake  <eblake@redhat.com>
12814
12815         tests: fix compiler warnings
12816         * tests/test-getopt.h (test_getopt): Fix condition.
12817         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12818         * tests/test-pipe2.c (main): Likewise.
12819         * tests/test-quotearg-simple.c (main): Avoid icc warning.
12820
12821         utimens: fix broken m4 test
12822         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
12823
12824 2010-10-28  Bruno Haible  <bruno@clisp.org>
12825
12826         posix_spawn*, getdtablesize: Relax license.
12827         * modules/posix_spawn (License): Change to LGPLv2+.
12828         * modules/posix_spawnp (License): Likewise.
12829         * modules/posix_spawn-internal (License): Likewise.
12830         * modules/posix_spawnattr_init (License): Likewise.
12831         * modules/posix_spawnattr_getflags (License): Likewise.
12832         * modules/posix_spawnattr_setflags (License): Likewise.
12833         * modules/posix_spawnattr_getpgroup (License): Likewise.
12834         * modules/posix_spawnattr_setpgroup (License): Likewise.
12835         * modules/posix_spawnattr_getschedparam (License): Likewise.
12836         * modules/posix_spawnattr_setschedparam (License): Likewise.
12837         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
12838         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
12839         * modules/posix_spawnattr_getsigdefault (License): Likewise.
12840         * modules/posix_spawnattr_setsigdefault (License): Likewise.
12841         * modules/posix_spawnattr_getsigmask (License): Likewise.
12842         * modules/posix_spawnattr_setsigmask (License): Likewise.
12843         * modules/posix_spawnattr_destroy (License): Likewise.
12844         * modules/posix_spawn_file_actions_init (License): Likewise.
12845         * modules/posix_spawn_file_actions_addclose (License): Likewise.
12846         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
12847         * modules/posix_spawn_file_actions_addopen (License): Likewise.
12848         * modules/posix_spawn_file_actions_destroy (License): Likewise.
12849         * modules/getdtablesize (License): Likewise.
12850         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
12851
12852 2010-10-26  Bruno Haible  <bruno@clisp.org>
12853
12854         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
12855         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
12856         Cygwin and mingw.
12857         Suggested by Eric Blake.
12858
12859 2010-10-26  Bruno Haible  <bruno@clisp.org>
12860
12861         stdio: Work around compilation error due to renameat() on Solaris 10.
12862         * lib/stdio.in.h: Include <unistd.h> on Solaris.
12863         * lib/renameat.c: Don't include <unistd.h> here.
12864         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
12865         Reported by Paul Eggert and Eric Blake.
12866
12867 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
12868
12869         renameat: port to Solaris 10, which declares renameat in unistd.h
12870
12871         * lib/renameat.c: Include unistd.h before stdio.h, because
12872         Solaris 10 declares renameat in unistd.h.  Problem encountered
12873         when building GNU tar 1.24 on Solaris 10.
12874
12875 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12876
12877         fdopendir: fix C89 compilation
12878         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
12879         compilers.
12880
12881 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12882
12883         inttostr: simplify by removing unnecessary redundancy
12884         * lib/anytostr.c: Don't include verify.h.
12885         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
12886         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
12887         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
12888         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
12889         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
12890         Likewise.
12891         * modules/inttostr (Depends-on): Remove 'verify'.
12892
12893 2010-10-23  Bruno Haible  <bruno@clisp.org>
12894
12895         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
12896         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
12897         Reported by Eric Blake.
12898
12899 2010-10-23  Bruno Haible  <bruno@clisp.org>
12900
12901         Tests: Fix LOCALE_JA on MirBSD 10.
12902         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
12903         to an UTF-8 locale.
12904         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
12905         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12906         Reported by Eric Blake.
12907
12908 2010-10-21  Bruno Haible  <bruno@clisp.org>
12909
12910         nl_langinfo test: Avoid test failure on NetBSD 5.
12911         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
12912         Reported by Eric Blake.
12913
12914 2010-10-21  Eric Blake  <eblake@redhat.com>
12915
12916         c-stack: work around libsigsegv 2.8 bug
12917         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
12918         overflow on at least PowerPC64.
12919
12920 2010-10-17  Bruno Haible  <bruno@clisp.org>
12921
12922         userspec: Drop redundant file.
12923         * modules/userspec (Files): Remove lib/inttostr.h.
12924
12925 2010-10-17  Bruno Haible  <bruno@clisp.org>
12926
12927         nl_langinfo tests: Silence some warnings.
12928         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
12929         Reported by Jim Meyering.
12930
12931 2010-10-17  Bruno Haible  <bruno@clisp.org>
12932
12933         Make use of GCC's attribute __alloc_size__.
12934         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
12935         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
12936         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
12937         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
12938         __alloc_size__.
12939         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
12940         Suggested by Jim Meyering.
12941
12942 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
12943
12944         bootstrap: anchor .gitignore entries.
12945         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
12946         with...
12947         (insert_vc_ignore): ... this new function, which prepends `/' to
12948         all .gitignore entries before passing them to
12949         insert_sorted_if_absent.
12950
12951 2010-10-16  Bruno Haible  <bruno@clisp.org>
12952
12953         nextafter: Fix configure check.
12954         * modules/nextafter (configure.ac): Correct expected prototype.
12955
12956 2010-10-16  Bruno Haible  <bruno@clisp.org>
12957
12958         termios: Update documentation.
12959         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
12960
12961 2010-10-16  Bruno Haible  <bruno@clisp.org>
12962
12963         tests: Make them compile with TinyCC.
12964         * tests/test-strstr.c (main): Remove parentheses around array
12965         initializer.
12966
12967 2010-10-15  Eric Blake  <eblake@redhat.com>
12968
12969         ignore-value: make header idempotent
12970         * lib/ignore-value.h: Add double-inclusion guards.
12971         Reported by Stefan Berger.
12972
12973 2010-10-15  Jim Meyering  <meyering@redhat.com>
12974
12975         GNUmakefile: handle "stable" target, not "major"
12976         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
12977         lists in maint.mk and announce-gen.  Without this, "make stable"
12978         would fail to ensure that $(VERSION) is up to date.
12979
12980 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
12981
12982         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
12983         & co.
12984
12985 2010-10-14  Bruno Haible  <bruno@clisp.org>
12986
12987         vasnprintf: Don't set errno to 0.
12988         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
12989         block that sets it to 0.
12990         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
12991
12992 2010-10-14  Bruno Haible  <bruno@clisp.org>
12993
12994         socketlib: Fix.
12995         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
12996         gl_PREREQ_SYS_H_WINSOCK2.
12997         Reported by Ian Beckwith <ianb@erislabs.net>.
12998
12999 2010-10-13  Jim Meyering  <meyering@redhat.com>
13000
13001         test-select-stdin.c: avoid warn_unused_result warnings
13002         * tests/test-select-stdin.c: Include "macros.h".
13003         ASSERT that read and fflush succeed.
13004
13005 2010-10-13  Jim Meyering  <meyering@redhat.com>
13006
13007         git-version-gen: do require git-VC'd files in cwd
13008         * build-aux/git-version-gen: Reject a git version string
13009         if there are no commits associated with the current directory.
13010         This avoids an unlikely false-positive (unrelated dir whose parent
13011         repository also contains a tag matching v*), as pointed out
13012         by Giuseppe Scrivano in
13013         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13014
13015 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13016
13017         argv-iter: omit nonconforming declaration
13018         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13019         enum arg_iter_err declaration, which doesn't conform to C99.
13020         Solaris 10 cc warns about this.
13021
13022 2010-10-13  Eric Blake  <eblake@redhat.com>
13023
13024         termios: fix compilation on mingw
13025         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13026         (gl_TERMIOS_H): Adjust it on mingw.
13027         * modules/termios (Makefile.am): Substitute new key.
13028         * lib/termios.in.h (includes): Make include_next conditional.
13029         * doc/posix-headers/termios.texi (termios.h): Update
13030         documentation.
13031         Reported by Daniel P. Berrange.
13032
13033 2010-10-13  Jim Meyering  <meyering@redhat.com>
13034
13035         git-version-gen: don't require that .git/ be in the current dir
13036         * build-aux/git-version-gen: Adjust this script so that it works
13037         when run from any working directory beneath the top-level .git/-
13038         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13039         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13040
13041         test-select: avoid warn_unused_result warnings
13042         * tests/test-select.c: Include "macros.h".
13043         ASSERT that each call to read, write, and pipe succeeds.
13044         While not technically required, also check each "close".
13045         * modules/select-tests (Files): Add tests/macros.h.
13046
13047         test-symlinkat: remove declaration of unused local
13048         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13049
13050         test-inttostr: avoid shadowing warnings
13051         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13052         and use malloc rather than the stack for the same reason as
13053         mentioned in the comment justifying the other allocation.
13054
13055 2010-10-11  Bruno Haible  <bruno@clisp.org>
13056
13057         stdlib: Allow multiple gnulib generated replacements to coexist.
13058         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13059         Reported by Sam Steingold <sds@gnu.org>.
13060
13061 2010-10-11  Jim Meyering  <meyering@redhat.com>
13062
13063         fix a documentation typo
13064         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13065
13066 2010-10-11  Eric Blake  <eblake@redhat.com>
13067
13068         futimens: work around Solaris 11 bug
13069         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13070         * tests/test-futimens.h (test_futimens): Enhance, rather than
13071         weaken test.
13072         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13073
13074 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13075
13076         Indentation.
13077         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13078         higher-level operators more to the left.
13079
13080 2010-10-11  Jim Meyering  <meyering@redhat.com>
13081
13082         test-futimens: avoid unwarranted test failure on Solaris 5.11
13083         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13084         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13085         because it tries to dereference the NULL name argument.
13086
13087 2010-10-11  Bruno Haible  <bruno@clisp.org>
13088
13089         Indentation.
13090         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13091         indentation.
13092
13093 2010-10-11  Jim Meyering  <meyering@redhat.com>
13094
13095         spawn.in.h: make indentation consistent with parentheses
13096         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13097         Make indentation consistent with parentheses.
13098
13099 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13100
13101         Fix mismatched parens in previous commit
13102         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13103         parens.
13104
13105 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13106
13107         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13108
13109         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13110         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13111         * lib/malloca.c: Include "verify.h".
13112         (verify1): Remove, replacing with a verify call.
13113         * lib/relocwrapper.c (verify1): Likewise.
13114         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13115         Likewise.
13116         * modules/malloca (Depends-on): Add 'verify'.
13117         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13118         * modules/vasnprintf (Depends-on): Add 'verify'.
13119         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13120         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13121         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13122         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13123         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13124         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13125         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13126
13127         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13128
13129         Formerly the style was sometimes 2*X - 1, because the C standard
13130         was wrongly thought to disallow ?: in integral constant expressions.
13131         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13132         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13133         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13134         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13135         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13136         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13137         verify that time_t cannot be floating.
13138
13139 2010-10-08  Eric Blake  <eblake@redhat.com>
13140
13141         time: enforce recent POSIX ruling that time_t is integral
13142         * lib/time.in.h (__time_t_must_be_integral): Detect any
13143         problematic systems, allowing the rest of gnulib to assume POSIX.
13144
13145 2010-10-08  Jim Meyering  <meyering@redhat.com>
13146
13147         fdopendir: fix a bug on systems lacking openat and /proc support
13148         OpenBSD 4.7 is one such system.  The most noticeable effect was
13149         failure of any application making nontrivial use of fts: rm, du,
13150         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13151           ./rm: traversal failed: `a': Bad file descriptor
13152         Debugging that, you see that even though FD 6 was closed just
13153         prior to the opendir call in fd_clone_opendir, its resulting
13154         dir->dd_fd was 8, rather than the expected value of 6:
13155
13156         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13157         93                close (fd);
13158         (gdb) n
13159         94                dir = fd_clone_opendir (dupfd);
13160         (gdb) n
13161         95                saved_errno = errno;
13162         (gdb) p dir->dd_fd
13163         $11 = 8
13164
13165         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13166         The problem is that on OpenBSD, fd_clone_opendir has to resort
13167         to using the old-style save/restore CWD mechanism, due to its
13168         lack of openat/proc support, and *that* would steal the FD (6)
13169         that opendir was supposed to use.
13170
13171         The fix is to squirrel away the desired FD so that save_cwd uses a
13172         different one, and then free the dest FD right before calling opendir.
13173         That guarantees opendir will use the required file descriptor.
13174
13175         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13176
13177 2010-10-08  Bruno Haible  <bruno@clisp.org>
13178
13179         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13180         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13181
13182 2010-10-08  Bruno Haible  <bruno@clisp.org>
13183
13184         nanosleep: Make replacement POSIX compliant.
13185         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13186         is out of range.
13187         Reported by Jim Meyering.
13188
13189 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13190
13191         bootstrap: add hook for altering gnulib.mk, for Bison
13192         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13193         the Bison bootstrapping process can rewrite file names and variables
13194         in this file before later parts of 'bootstrap' use the file.
13195         Bison wants to include lib/gnulib.mk from the top-level makefile,
13196         so it needs the file names in this file to be relative to the top
13197         level, not relative to lib; plus it needs variable names to be
13198         rewritten.
13199         (slurp): Use the new function.
13200
13201         bootstrap: reformat for readability
13202         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13203
13204 2010-10-08  Eric Blake  <eblake@redhat.com>
13205
13206         docs: update cygwin progress
13207         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13208         1.7.7.
13209         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13210         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13211         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13212         * doc/posix-functions/carg.texi (carg): Likewise.
13213         * doc/posix-functions/cargf.texi (cargf): Likewise.
13214         * doc/posix-functions/casin.texi (casin): Likewise.
13215         * doc/posix-functions/casinf.texi (casinf): Likewise.
13216         * doc/posix-functions/casinh.texi (casinh): Likewise.
13217         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13218         * doc/posix-functions/catan.texi (catan): Likewise.
13219         * doc/posix-functions/catanf.texi (catanf): Likewise.
13220         * doc/posix-functions/catanh.texi (catanh): Likewise.
13221         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13222         * doc/posix-functions/ccos.texi (ccos): Likewise.
13223         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13224         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13225         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13226         * doc/posix-functions/cexp.texi (cexp): Likewise.
13227         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13228         * doc/posix-functions/cimag.texi (cimag): Likewise.
13229         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13230         * doc/posix-functions/clog.texi (clog): Likewise.
13231         * doc/posix-functions/clogf.texi (clogf): Likewise.
13232         * doc/posix-functions/conj.texi (conj): Likewise.
13233         * doc/posix-functions/conjf.texi (conjf): Likewise.
13234         * doc/posix-functions/cpow.texi (cpow): Likewise.
13235         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13236         * doc/posix-functions/cproj.texi (cproj): Likewise.
13237         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13238         * doc/posix-functions/creal.texi (creal): Likewise.
13239         * doc/posix-functions/crealf.texi (crealf): Likewise.
13240         * doc/posix-functions/csin.texi (csin): Likewise.
13241         * doc/posix-functions/csinf.texi (csinf): Likewise.
13242         * doc/posix-functions/csinh.texi (csinh): Likewise.
13243         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13244         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13245         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13246         * doc/posix-functions/ctan.texi (ctan): Likewise.
13247         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13248         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13249         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13250         * doc/posix-headers/complex.texi (complex.h): Likewise.
13251
13252 2010-10-07  Jim Meyering  <meyering@redhat.com>
13253
13254         parse-datetime: avoid compilation failure on OpenBSD 4.7
13255         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13256         This works around a compilation failure on OpenBSD 4.7:
13257         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13258
13259 2010-10-07  Eric Blake  <eblake@redhat.com>
13260
13261         docs: update cygwin progress
13262         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13263         1.7.6.
13264         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13265         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13266         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13267         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13268         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13269         Likewise.
13270         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13271         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13272         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13273         Likewise.
13274         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13275         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13276         Likewise.
13277         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13278         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13279         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13280         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13281         Likewise.
13282         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13283         Likewise.
13284         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13285
13286         docs: update parse-datetime history
13287         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13288         documentation of this function's history and alternatives.
13289
13290         cygwin: use more robust version check
13291         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13292         exclude an eventual cygwin 1.9.1.
13293         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13294         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13295         (gl_FUNC_STRCASESTR): Likewise.
13296         Reported by Bruno Haible.
13297
13298 2010-10-06  Bruno Haible  <bruno@clisp.org>
13299
13300         string, sys_select: Avoid #including large headers unless necessary.
13301         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13302         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13303         OSF/1, BeOS, Haiku.
13304         Reported by Jim Meyering.
13305
13306 2010-10-05  Eric Blake  <eblake@redhat.com>
13307
13308         memmem, strstr, strcasestr: fix bug with long periodic needle
13309         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13310         periodic needle having false positive.
13311         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13312         and cygwin 1.7.7.
13313         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13315         (gl_FUNC_STRCASESTR): Likewise.
13316         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13317         * tests/test-memmem.c (main): Expose the bug.
13318         * tests/test-strcasestr.c (main): Likewise.
13319         * tests/test-strstr.c (main): Likewise.
13320         * tests/test-c-strcasestr.c (main): Likewise.
13321         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13322         * doc/posix-functions/strstr.texi (strstr): Likewise.
13323         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13324         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13325
13326 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13327
13328         parse-datetime: do some more renaming
13329         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13330         parse_datetime, not get_date.  Mention the renaming.
13331         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13332         in comments.
13333         * m4/bison.m4: Likewise.
13334
13335 2010-10-05  Eric Blake  <eblake@redhat.com>
13336
13337         parse-datetime: better name than get_date
13338         * NEWS: Reword the deprecation notice.
13339         * modules/get_date: Rename to modules/parse-datetime.
13340         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13341         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13342         * lib/get_date.y: Rename to lib/parse-datetime.y.
13343         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13344         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13345         * doc/getdate.texi: Provide fallback wrapper.
13346         * lib/getdate.h: Move guts, and wrap...
13347         * lib/parse-datetime.h: ...new file.
13348         * lib/parse-datetime.y (get_date): Rename...
13349         (parse_datetime): ...to this.
13350         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13351         (gl_PARSE_DATETIME): ...to this.
13352         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13353         documentation.
13354         * modules/getdate (Files): Provide fallback docs and header.
13355         (Notice, Depends-on): Update references.
13356         * tests/test-parse-datetime.c: Likewise.
13357         * DEPENDENCIES: Likewise.
13358         * MODULES.html.sh (Date and time <time.h>): Likewise.
13359         * doc/parse-datetime.texi (Date input formats)
13360         (Authors of parse_datetime): Likewise.
13361         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13362         (Include): Likewise.
13363         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13364         * gnulib-tool: Likewise.
13365         * m4/bison.m4 (gl_BISON): Likewise.
13366         Suggested by Bruno Haible.
13367
13368 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13369
13370         more ports to Solaris tr, which needs [] around ranges
13371         * gnulib-tool: Solaris tr needs [] around ranges.
13372         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13373         * tests/test-pipe-filter-gi1.c (main): Likewise.
13374         * tests/test-pipe-filter-ii1.c (main): Likewise.
13375
13376 2010-10-05  Eric Blake  <eblake@redhat.com>
13377
13378         bootstrap: fix Solaris regression
13379         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13380         around ranges.
13381         Reported by Pádraig Brady.
13382
13383         bootstrap: work with pkg-config
13384         * build-aux/bootstrap (check_versions): Also transliterate - in
13385         prerequisite name.
13386         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13387         prerequisites that were already found, to avoid confusion.
13388         Reported by Justin Clift.
13389
13390         faccessat: remove unused wrappers
13391         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13392         presence of these wrappers dragged in -lgen on Solaris.
13393         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13394
13395 2010-10-05  Jim Meyering  <meyering@redhat.com>
13396
13397         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13398         * Makefile (sc_pragma_columns): New syntax-check rule.
13399
13400 2010-10-04  Bruno Haible  <bruno@clisp.org>
13401
13402         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13403         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13404         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13405         Reported by Bruce Korb and Eric Blake.
13406
13407 2010-10-04  Bruno Haible  <bruno@clisp.org>
13408
13409         threadlib: Make option --with-libpth-prefix work.
13410         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13411         use $LIBPTH, not just -lpth.
13412
13413 2010-10-04  Bruno Haible  <bruno@clisp.org>
13414
13415         Avoid line length limitation from HP NonStop system header files.
13416         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13417         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13418         * lib/ctype.in.h: Likewise.
13419         * lib/dirent.in.h: Likewise.
13420         * lib/errno.in.h: Likewise.
13421         * lib/fcntl.in.h: Likewise.
13422         * lib/float.in.h: Likewise.
13423         * lib/getopt.in.h: Likewise.
13424         * lib/iconv.in.h: Likewise.
13425         * lib/inttypes.in.h: Likewise.
13426         * lib/langinfo.in.h: Likewise.
13427         * lib/locale.in.h: Likewise.
13428         * lib/math.in.h: Likewise.
13429         * lib/netdb.in.h: Likewise.
13430         * lib/netinet_in.in.h: Likewise.
13431         * lib/poll.in.h: Likewise.
13432         * lib/pthread.in.h: Likewise.
13433         * lib/pty.in.h: Likewise.
13434         * lib/sched.in.h: Likewise.
13435         * lib/se-selinux.in.h: Likewise.
13436         * lib/search.in.h: Likewise.
13437         * lib/signal.in.h: Likewise.
13438         * lib/spawn.in.h: Likewise.
13439         * lib/stdarg.in.h: Likewise.
13440         * lib/stddef.in.h: Likewise.
13441         * lib/stdint.in.h: Likewise.
13442         * lib/stdio.in.h: Likewise.
13443         * lib/stdlib.in.h: Likewise.
13444         * lib/string.in.h: Likewise.
13445         * lib/strings.in.h: Likewise.
13446         * lib/sys_file.in.h: Likewise.
13447         * lib/sys_ioctl.in.h: Likewise.
13448         * lib/sys_select.in.h: Likewise.
13449         * lib/sys_socket.in.h: Likewise.
13450         * lib/sys_stat.in.h: Likewise.
13451         * lib/sys_time.in.h: Likewise.
13452         * lib/sys_times.in.h: Likewise.
13453         * lib/sys_utsname.in.h: Likewise.
13454         * lib/sys_wait.in.h: Likewise.
13455         * lib/sysexits.in.h: Likewise.
13456         * lib/termios.in.h: Likewise.
13457         * lib/time.in.h: Likewise.
13458         * lib/unistd.in.h: Likewise.
13459         * lib/wchar.in.h: Likewise.
13460         * lib/wctype.in.h: Likewise.
13461         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
13462         * modules/ctype (Makefile.am): Likewise.
13463         * modules/dirent (Makefile.am): Likewise.
13464         * modules/errno (Makefile.am): Likewise.
13465         * modules/fcntl-h (Makefile.am): Likewise.
13466         * modules/float (Makefile.am): Likewise.
13467         * modules/getopt-posix (Makefile.am): Likewise.
13468         * modules/iconv-h (Makefile.am): Likewise.
13469         * modules/inttypes (Makefile.am): Likewise.
13470         * modules/langinfo (Makefile.am): Likewise.
13471         * modules/locale (Makefile.am): Likewise.
13472         * modules/math (Makefile.am): Likewise.
13473         * modules/netdb (Makefile.am): Likewise.
13474         * modules/netinet_in (Makefile.am): Likewise.
13475         * modules/poll-h (Makefile.am): Likewise.
13476         * modules/pthread (Makefile.am): Likewise.
13477         * modules/pty (Makefile.am): Likewise.
13478         * modules/sched (Makefile.am): Likewise.
13479         * modules/search (Makefile.am): Likewise.
13480         * modules/selinux-h (Makefile.am): Likewise.
13481         * modules/signal (Makefile.am): Likewise.
13482         * modules/spawn (Makefile.am): Likewise.
13483         * modules/stdarg (Makefile.am): Likewise.
13484         * modules/stddef (Makefile.am): Likewise.
13485         * modules/stdint (Makefile.am): Likewise.
13486         * modules/stdio (Makefile.am): Likewise.
13487         * modules/stdlib (Makefile.am): Likewise.
13488         * modules/string (Makefile.am): Likewise.
13489         * modules/strings (Makefile.am): Likewise.
13490         * modules/sys_file (Makefile.am): Likewise.
13491         * modules/sys_ioctl (Makefile.am): Likewise.
13492         * modules/sys_select (Makefile.am): Likewise.
13493         * modules/sys_socket (Makefile.am): Likewise.
13494         * modules/sys_stat (Makefile.am): Likewise.
13495         * modules/sys_time (Makefile.am): Likewise.
13496         * modules/sys_times (Makefile.am): Likewise.
13497         * modules/sys_utsname (Makefile.am): Likewise.
13498         * modules/sys_wait (Makefile.am): Likewise.
13499         * modules/sysexits (Makefile.am): Likewise.
13500         * modules/termios (Makefile.am): Likewise.
13501         * modules/time (Makefile.am): Likewise.
13502         * modules/unistd (Makefile.am): Likewise.
13503         * modules/wchar (Makefile.am): Likewise.
13504         * modules/wctype (Makefile.am): Likewise.
13505
13506 2010-10-04  Bruno Haible  <bruno@clisp.org>
13507
13508         read-file tests: Avoid a test failure on NonStop Kernel.
13509         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13510         a regular file.
13511         Reported by Joachim Schmitz <schmitz@hp.com>.
13512
13513 2010-10-03  Bruno Haible  <bruno@clisp.org>
13514
13515         gnulib-tool: Fixes for --create-testdir with --libtool.
13516         * gnulib-tool (func_get_automake_snippet): Don't augment
13517         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13518         an executable.
13519         (func_create_testdir): Handle module 'alloca' like func_import.
13520         Reported by Bruce Korb <bruce.korb@gmail.com>.
13521
13522 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13523
13524         Avoid some lines longer than 80 characters.
13525         * lib/stdint.in.h: Break long comment lines.
13526         * lib/math.in.h: Likewise.
13527         (_GL_NUM_UINT_WORDS): New macro, for readability.
13528         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13529         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13530         * lib/stdlib.in.h: Likewise.
13531         * lib/spawn.in.h: Likewise.
13532         * lib/sys_socket.in.h: Update an URL.
13533         * lib/sys_stat.in.h: Break long line.
13534
13535 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13536
13537         Improve pmccabe2html.
13538         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
13539         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
13540         when the sources change. Remove the line in the HTML about "Used
13541         ranges" (which implied that there might be other unused ranges),
13542         rename "Resume" to "Summary" (easier to understand for more users).
13543         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
13544         styles, and some unnecessary blank lines.
13545
13546 2010-10-03  Bruno Haible  <bruno@clisp.org>
13547             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13548
13549         acl: Add support for ACLs on NonStop Kernel.
13550         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
13551         Check whether the function aclsort() exists.
13552         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
13553         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
13554         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13555         (acl_nontrivial [HAVE_ACLSORT]: New function.
13556         (file_has_acl): Implement for NonStop Kernel.
13557         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13558         (qset_acl): Implement for NonStop Kernel.
13559         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
13560         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13561         (main): Implement for NonStop Kernel.
13562         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
13563         Kernel. Handle this flavor.
13564         * tests/test-set-mode-acl.sh: Likewise.
13565         * tests/test-copy-acl.sh: Likewise.
13566         * tests/test-copy-file.sh: Likewise.
13567
13568 2010-10-03  Bruno Haible  <bruno@clisp.org>
13569
13570         Info about ACLs on NonStop Kernel.
13571         * doc/acl-resources.txt: Add info about NonStop Kernel.
13572         References by Joachim Schmitz <schmitz@hp.com>.
13573
13574 2010-10-02  Bruno Haible  <bruno@clisp.org>
13575
13576         Define missing EDQUOT on NonStop Kernel.
13577         * lib/errno.in.h (EDQUOT): Assign a value if missing.
13578         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
13579         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
13580         missing.
13581         * doc/posix-headers/errno.texi: Mention the NSK bug.
13582         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
13583         Reported by Joachim Schmitz <schmitz@hp.com>.
13584
13585 2010-10-02  Bruno Haible  <bruno@clisp.org>
13586
13587         Update doc for POSIX:2008.
13588         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
13589         Update URL of POSIX specification.
13590
13591 2010-10-02  Bruno Haible  <bruno@clisp.org>
13592
13593         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
13594         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
13595         from gnulib, not from Automake.
13596
13597 2010-10-02  Bruno Haible  <bruno@clisp.org>
13598
13599         New module 'system-posix'.
13600         * modules/system-posix: New file.
13601         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
13602         module is present.
13603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13604         GNULIB_SYSTEM_POSIX.
13605         * modules/stdlib (Depends-on): Remove sys_wait.
13606         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
13607         * doc/posix-functions/system.texi: Mention the new module.
13608         * doc/posix-headers/stdlib.texi: Likewise.
13609         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
13610         define test_sys_wait_macros to a no-op.
13611         Reported by Sam Steingold <sds@gnu.org>.
13612
13613 2010-09-30  Bruno Haible  <bruno@clisp.org>
13614
13615         More renaming from 'getdate' to 'get_date'.
13616         * doc/get_date.texi: Renamed from doc/getdate.texi.
13617         * modules/get_date (Files): Update.
13618         * MODULES.html.sh (Date and time <time.h>): Update.
13619         * DEPENDENCIES: Update.
13620         * gnulib-tool: Update comment.
13621         * m4/bison.m4 (gl_BISON): Likewise.
13622         * m4/get_date.m4 (gl_GET_DATE): Likewise.
13623
13624 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
13625
13626         bootstrap: support ACLOCAL_FLAGS during aclocal
13627         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
13628         can add additional -I dir for third-party .m4 files.
13629
13630 2010-09-30  Eric Blake  <eblake@redhat.com>
13631
13632         bootstrap: use glibtoolize on MacOS
13633         * build-aux/bootstrap (check_versions): Convert libtool into
13634         libtoolize.
13635         (tool search): Move libtool check earlier, and look for
13636         glibtoolize for MacOS.
13637         (gnulib_tool_options): Auto-add --libtool when appropriate.
13638         Reported by Justin Clift.
13639
13640         poll: fix typo that broke test on MacOS
13641         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
13642         Reported by Justin Clift.
13643
13644         getdate: rename to get_date
13645         Note: getdate.h is not renamed, to minimize client impact.
13646         * modules/getdate: Mark obsolete.  Move old contents...
13647         * modules/get_date: ...to new module name.
13648         * modules/getdate-tests: Move...
13649         * modules/get_date-tests: ...here.
13650         * m4/getdate.m4: Move...
13651         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
13652         * lib/getdate.y: Move...
13653         * lib/get_date.y: ...here.
13654         * tests/test-getdate.c: Move...
13655         * tests/test-get_date.c: ...here.
13656         * doc/posix-functions/getdate.texi (getdate): Update name.
13657         * NEWS: Mention the change.
13658
13659 2010-09-29  Bruno Haible  <bruno@clisp.org>
13660
13661         Separate the module 'waitpid' from the module 'sys_wait'.
13662         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
13663         present.
13664         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
13665         gl_MODULE_INDICATOR_FOR_TESTS.
13666         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
13667         * modules/sys_wait (Depends-on): Remove waitpid.
13668         (Makefile.am): Substitute GNULIB_WAITPID.
13669         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
13670         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
13671         signature only if the 'waitpid' module is present.
13672         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
13673         * NEWS: Mention the change.
13674         * modules/grantpt (Depends-on): Add waitpid.
13675         * modules/wait-process (Depends-on): Likewise.
13676
13677 2010-09-29  Bruno Haible  <bruno@clisp.org>
13678
13679         More tests for module 'sys_wait'.
13680         * modules/sys_wait-c++-tests: New file.
13681         * tests/test-sys_wait-c++.cc: New file.
13682         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
13683         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13684
13685 2010-09-29  Bruno Haible  <bruno@clisp.org>
13686
13687         New module 'waitpid'.
13688         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
13689         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
13690         Don't include <process.h>.
13691         (waitpid): Declare only, using modern idiom.
13692         * m4/waitpid.m4: New file.
13693         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
13694         * modules/waitpid: New file.
13695         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
13696         (Makefile.am): Update.
13697         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13698
13699 2010-09-28  Bruno Haible  <bruno@clisp.org>
13700
13701         poll: Assume ANSI C.
13702         * lib/poll.c (poll): Use an ANSI C declaration.
13703
13704 2010-09-28  Bruno Haible  <bruno@clisp.org>
13705
13706         poll-h: Create poll.h on all platforms.
13707         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
13708         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
13709         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
13710         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
13711         (gl_REPLACE_POLL_H): Don't set POLL_H.
13712         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
13713         * modules/poll-h (Depends-on): Add include_next.
13714         (Makefile.am): Create poll.h unconditionally. Substitute also
13715         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
13716
13717 2010-09-28  Bruno Haible  <bruno@clisp.org>
13718
13719         Tests for module 'poll-h'.
13720         * modules/poll-h-c++-tests: New file.
13721         * tests/test-poll-h-c++.cc: New file.
13722
13723         Tests for module 'poll-h'.
13724         * modules/poll-h-tests: New file.
13725         * tests/test-poll-h.c: New file.
13726
13727 2010-09-28  Bruno Haible  <bruno@clisp.org>
13728
13729         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
13730         * modules/poll-h (Depends-on): Add 'extensions'.
13731
13732 2010-09-28  Bruno Haible  <bruno@clisp.org>
13733
13734         New module 'poll-h'.
13735         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
13736         (poll): Use modern idiom.
13737         * modules/poll-h: New file.
13738         * modules/poll (Files): Remove lib/poll.in.h.
13739         (Depends-on): Add poll-h.
13740         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
13741         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
13742         * m4/poll_h.m4: New file.
13743         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
13744         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
13745         and invoke gl_REPLACE_POLL_H.
13746         * lib/poll.c: Use common idiom.
13747         * tests/test-poll.c: Likewise.
13748         * doc/posix-headers/poll.texi: Mention the poll-h module.
13749         Suggested by Eric Blake.
13750
13751 2010-09-26  Bruno Haible  <bruno@clisp.org>
13752
13753         sys_wait: Implement WSTOPSIG.
13754         * lib/sys_wait.in.h (WSTOPSIG): New macro.
13755         Reported by Simon Josefsson.
13756
13757 2010-09-26  Simon Josefsson  <simon@josefsson.org>
13758
13759         stdlib, sys_wait: Avoid compilation error on mingw.
13760         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
13761
13762 2010-09-26  Bruno Haible  <bruno@clisp.org>
13763
13764         stdlib tests: Avoid code duplication.
13765         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
13766         * modules/sys_wait-tests (Files): Likewise.
13767         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
13768         * tests/test-stdlib.c: Include test-sys_wait.h.
13769         (main): Invoke test_sys_wait_macros.
13770         * tests/test-sys_wait.c: Include test-sys_wait.h.
13771         (main): Invoke test_sys_wait_macros.
13772
13773 2010-09-25  Simon Josefsson  <simon@josefsson.org>
13774
13775         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
13776         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
13777         sure Windows sockets are working before calling getaddrinfo.
13778         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
13779         * doc/gnulib.texi (Windows sockets): Fix typo.
13780
13781 2010-09-25  Bruno Haible  <bruno@clisp.org>
13782
13783         Tests for module 'regex-quote'.
13784         * modules/regex-quote-tests: New file.
13785         * tests/test-regex-quote.c: New file.
13786
13787         New module 'regex-quote'.
13788         * lib/regex-quote.h: New file.
13789         * lib/regex-quote.c: New file.
13790         * modules/regex-quote: New file.
13791         Suggested by Reuben Thomas <rrt@sc3d.org>.
13792
13793 2010-09-24  Bruno Haible  <bruno@clisp.org>
13794
13795         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
13796         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
13797
13798 2010-09-23  Bruno Haible  <bruno@clisp.org>
13799
13800         setenv: Relax license.
13801         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
13802         Blake.
13803         Requested by Eric Blake.
13804
13805 2010-09-22  Bruno Haible  <bruno@clisp.org>
13806
13807         termios: Relax license.
13808         * modules/termios (License): Change to LGPLv2+.
13809         Requested by Eric Blake.
13810
13811 2010-09-22  Bruno Haible  <bruno@clisp.org>
13812
13813         threadlib: Allow the package to change the default to 'no'.
13814         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
13815         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
13816         Reported by Paul Eggert.
13817
13818 2010-09-22  Pádraig Brady  <P@draigbrady.com>
13819             Bruno Haible  <bruno@clisp.org>
13820
13821         Fix endless loop in mbmemcasecoll.
13822         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
13823         byte.
13824         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
13825
13826 2010-09-22  Bruno Haible  <bruno@clisp.org>
13827
13828         Tests for module 'memcoll'.
13829         * modules/memcoll-tests: New file.
13830         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
13831
13832         memcoll, xmemcoll: Clarify size vs. length.
13833         * modules/memcoll.c (memcoll0): Clarify specification.
13834         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
13835         passed to collate_error.
13836
13837 2010-09-22  Bruno Haible  <bruno@clisp.org>
13838
13839         Tests for module 'memcasecmp'.
13840         * modules/memcasecmp-tests: New file.
13841         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
13842
13843 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13844
13845         * lib/pthread.in.h: Add split double-inclusion guard, and include
13846         system <pthread.h> if there is one.  Use @@-style as in other
13847         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
13848         pthread.h doesn't.
13849         (pthread_mutexattr_destroy, pthread_mutexattr_init):
13850         (pthread_mutexattr_settype, pthread_mutex_trylock):
13851         New static inline functions, if there's no system <pthread.h>.
13852         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
13853         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
13854         Approximate with mutexes if the system lacks spinlocks, as in
13855         MacOS.
13856         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
13857         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
13858         @@-style.  Check for spinlocks separately.
13859         (gl_PTHREAD_DEFAULTS): New macro.
13860         * modules/pthread: Redo to use a more typical style for in.h files.
13861
13862 2010-09-21  Eric Blake  <eblake@redhat.com>
13863
13864         net_if: enhance tests
13865         * tests/test-net_if.c (main): Move signature checks earlier.
13866         Print failures to stderr.
13867         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
13868         Document the bug that we do not yet fix.
13869
13870 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13871
13872         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
13873         about gnulib, not GSS.
13874
13875 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13876
13877         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
13878         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
13879         for Emacs.
13880         * build-aux/pmccabe2html: Make Makefile.am example code more
13881         cut-and-paste friendly.
13882
13883 2010-09-21  Simon Josefsson  <simon@josefsson.org>
13884
13885         * tests/test-net_if.c: New file.
13886         * modules/net_if-tests: New file.
13887
13888 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13889
13890         pthread: add pthread_spin_destroy
13891         * lib/pthread.in.h (pthread_spin_destroy): New function.
13892
13893 2010-09-19  Bruno Haible  <bruno@clisp.org>
13894
13895         gnulib-tool: Fix --help output.
13896         * gnulib-tool (func_usage): Fix help message.
13897         Reported by Reuben Thomas <rrt@sc3d.org>.
13898
13899 2010-09-18  Jim Meyering  <meyering@redhat.com>
13900
13901         maint.mk: avoid unexpanded \n in two diagnostics
13902         * top/maint.mk (sc_prohibit_always_true_header_tests):
13903         Don't use a literal \n in a halt=... assignment.  It would not be
13904         expanded, and the two \n bytes would appear in the diagnostic output
13905         rather than the desired newline.  Use halt=$$(printf ... instead.
13906         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13907
13908 2010-09-18  Bruno Haible  <bruno@clisp.org>
13909
13910         netinet_in: Doc tweak.
13911         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
13912         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13913
13914 2010-09-18  Jim Meyering  <meyering@redhat.com>
13915
13916         init.sh: correct an outdated comment
13917         * tests/init.sh (create_exe_shims_):  s/function/alias/
13918
13919         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
13920         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
13921         a file named "*.exe" is removed between the glob expansion and the
13922         processing of that oddly named file.
13923
13924 2010-09-17  Eric Blake  <eblake@redhat.com>
13925
13926         mirbsd: add some more support
13927         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
13928         in BSD family.
13929         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
13930         devices as OpenBSD.
13931         * m4/host-os.m4 (mirbsd): Add MirBSD.
13932
13933         tests: fix unportable assumption on sys/wait.h
13934         * tests/test-sys_wait.c (main): Relax test.
13935         * tests/test-stdlib.c (main): Likewise.
13936
13937         init.sh: accomodate directory with no .exes
13938         * tests/init.sh: Accomodate directory containing only scripts.
13939
13940         tests: avoid compiler warning
13941         * tests/test-stdlib.c (main): Use the variable.
13942
13943         fdutimens, fdutimensat: update signature, again
13944         * lib/utimens.h (gl_futimens): Delete, and move signature...
13945         (fdutimens): ...here.
13946         (fdutimensat): Rearrange signature.
13947         (lutimensat): Rename variable for clarity.
13948         * lib/fdutimensat.c (fdutimensat): Update signature.
13949         * lib/utimens.c (fdutimens): Likewise.
13950         (gl_futimens): Delete.
13951         (utimens, lutimens): Update callers.
13952         * lib/futimens.c (futimens): Likewise.
13953         * tests/test-fdutimensat.c: Likewise.
13954         * tests/test-utimens.c: Likewise.
13955         * tests/test-futimens.h: Update comment.
13956         * NEWS: Mention this.
13957         Suggested by Paul Eggert.
13958
13959 2010-09-17  Bruno Haible  <bruno@clisp.org>
13960
13961         Take over the maintenance of some older macros from Autoconf.
13962         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
13963         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
13964         GNU Autoconf.
13965         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
13966         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
13967
13968 2010-09-17  Eric Blake  <eblake@redhat.com>
13969
13970         fdutimensat: drop atflag validation
13971         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
13972         with valid fd, to close a race scenario where futimens is
13973         unsupported and FILE was replaced by a symlink.
13974         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
13975         accordingly.
13976         Suggested by Paul Eggert.
13977
13978 2010-09-16  Bruno Haible  <bruno@clisp.org>
13979
13980         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
13981         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
13982
13983 2010-09-16  Bruno Haible  <bruno@clisp.org>
13984
13985         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
13986         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
13987         login_tty exists.
13988         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13989
13990 2010-09-16  Bruno Haible  <bruno@clisp.org>
13991
13992         login_tty: Make the replacement code work on BSD systems.
13993         * lib/login_tty.c: Include <sys/ioctl.h>.
13994         (login_tty): Use ioctl TIOCSCTTY when available.
13995         * modules/login_tty (Depends-on): Add sys_ioctl.
13996         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13997
13998 2010-09-16  Bruno Haible  <bruno@clisp.org>
13999
14000         login_tty: Stricter unit test.
14001         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14002         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14003         and tcgetsid() after login_tty.
14004         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14005
14006 2010-09-16  Bruno Haible  <bruno@clisp.org>
14007
14008         New module 'tcgetsid'.
14009         * lib/tcgetsid.c: New file.
14010         * m4/tcgetsid.m4: New file.
14011         * modules/tcgetsid: New file.
14012         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14013         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14014         GNULIB_TCGETSID, HAVE_TCGETSID.
14015         * lib/termios.in.h: Include <sys/types.h>.
14016         (tcgetsid): New declaration.
14017         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14018         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14019         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14020         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14021
14022 2010-09-16  Bruno Haible  <bruno@clisp.org>
14023
14024         Tests for module 'termios'.
14025         * modules/termios-c++-tests: New file.
14026         * modules/termios-tests: New file.
14027         * tests/test-termios-c++.cc: New file.
14028         * tests/test-termios.c: New file.
14029
14030         New module 'termios'.
14031         * modules/termios: New file.
14032         * lib/termios.in.h: New file.
14033         * m4/termios_h.m4: New file.
14034         * doc/posix-headers/termios.texi: Mention the new module.
14035
14036 2010-09-16  Eric Blake  <eblake@redhat.com>
14037
14038         fdutimensat: add an atflag parameter
14039         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14040         * lib/utimens.h (fdutimensat): Update prototype.
14041         * tests/test-fdutimensat.c: Adjust test to match.
14042         * NEWS: Document the change.
14043         Suggested by Paul Eggert.
14044
14045 2010-09-16  Bruno Haible  <bruno@clisp.org>
14046
14047         Fix typos in comments.
14048         * lib/striconveh.h: Fix typo in comment.
14049         * lib/login_tty.c (login_tty): Likewise.
14050
14051 2010-09-15  Bruno Haible  <bruno@clisp.org>
14052
14053         stdlib: clarify MirBSD WEXITSTATUS bug
14054         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14055         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14056
14057 2010-09-15  Eric Blake  <eblake@redhat.com>
14058
14059         stdlib: work around MirBSD WEXITSTATUS bug
14060         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14061         * modules/stdlib (Depends-on): Add sys_wait.
14062         * tests/test-sys_wait.c (main): Enhance test.
14063         * tests/test-stdlib.c (main): Likewise.
14064         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14065
14066         docs: mention MacOS issue with WEXITSTATUS(constant)
14067         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14068         issue.
14069         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14070
14071         strnlen: add tests
14072         * modules/strnlen-tests: New file.
14073         * tests/test-strnlen.c: Likewise.
14074
14075 2010-09-14  Bruno Haible  <bruno@clisp.org>
14076
14077         unistr/base: Avoid link errors when module 'libunistring' is also used.
14078         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14079         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14080         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14081         Declare also when HAVE_LIBUNISTRING is set.
14082         Reported by Pádraig Brady <P@draigbrady.com>.
14083
14084 2010-09-14  Eric Blake  <eblake@redhat.com>
14085
14086         test-rawmemchr: make more robust
14087         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14088         (Depends-on, configure.ac): Add needed prerequisites to use it.
14089         * modules/memchr-tests (Files, Depends-on, configure.ac):
14090         Likewise, to avoid implicit reliance on memchr module prereqs.
14091         * tests/test-memchr.c (main): Ensure proper masking.
14092         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14093         reads.
14094
14095         memchr: detect glibc Alpha bug
14096         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14097         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14098         Alpha.
14099         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14100         * tests/test-memchr.c (main): Enhance test.
14101         Reported by Nelson H. F. Beebe.
14102
14103 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14104
14105         fts, getcwd, glob: audit for dirfd returning -1
14106         * lib/fts.c (opendir): Remove #define; no longer used.
14107         (opendirat): New arg PDIR_FD.  All callers changed.
14108         (fts_build, _opendir2): Use new opendirat to avoid the need for
14109         dirfd, or for checking whether dirfd returns a negative value.
14110         Don't use opendir; always use openat followed by fdopendir.
14111         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14112         it.
14113         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14114         returns -1 here.
14115         * modules/fts (Depends-on): Remove dirfd.
14116         * modules/getcwd (Depends-on): Likewise.
14117
14118 2010-09-13  Eric Blake  <eblake@redhat.com>
14119
14120         float: fix broken MirBSD header
14121         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14122         * doc/posix-headers/float.texi (float.h): Document it.
14123
14124 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14125
14126         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14127         * lib/fts.c (opendirat): New arg extra_flags.
14128         (__opendir2): Use it to avoid following symlinks when opening
14129         a directory, if symlinks are not supposed to be followed.  See
14130         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14131
14132         fdopendir: preserve argument fd before returning
14133         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14134         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14135         (fdopendir): Use them, arranging for FD to be open to the same
14136         directory that it was when it started.  (It might be temporarily
14137         closed while fdopendir is running, so this not thread- or
14138         signal-safe.)  Be careful to do the right thing even when file
14139         descriptors are scarce and dup fails with errno == EMFILE.  See
14140         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14141
14142 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14143
14144         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14145         * NEWS: Document change.
14146         * m4/regex.m4: Disable test for regoff_t size.
14147
14148 2010-09-13  Jim Meyering  <meyering@redhat.com>
14149
14150         fts: don't operate on an invalid file descriptor after failed dup
14151         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14152         negative file descriptor.
14153
14154 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14155
14156         savedir: add streamsavedir, deprecate fdsavedir
14157         * NEWS: Mention deprecation of fdsavedir.
14158         * lib/savedir.c (streamsavedir): New extern function, whose name
14159         ends in "savedir" to be consistent with the others.  This differs
14160         from savedirstream in that it doesn't close its argument.  The
14161         next version of GNU tar will use this instead of fdsavedir, to
14162         avoid some race conditions and conserve file descriptors.
14163         (savedirstream): Reimplement as a wrapper around streamsavedir.
14164         (fdsavedir): Add a comment deprecating this function.  As far as
14165         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14166         * lib/savedir.h (streamsavedir): New decl.
14167         (fdsavedir): Add a comment deprecating this.
14168
14169 2010-09-10  Bruno Haible  <bruno@clisp.org>
14170
14171         langinfo: Fix last commit.
14172         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14173         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14175
14176 2010-09-10  Bruno Haible  <bruno@clisp.org>
14177
14178         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14179         * lib/progreloc.c (O_EXEC): Define fallback.
14180
14181 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14182
14183         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14184         * NEWS: Document recent changes to fcntl-h.
14185         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14186         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14187         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14188         Similarly for O_SEARCH; this last was already true, but not documented.
14189         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14190         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14191         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14192         Likewise.
14193         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14194         is zero, not whether it is defined.
14195         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14196         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14197         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14198
14199 2010-09-10  Bruno Haible  <bruno@clisp.org>
14200
14201         langinfo, nl_langinfo: Fix for IRIX 5.3.
14202         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14203         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14204         HAVE_LANGINFO_YESEXPR.
14205         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14206         HAVE_LANGINFO_YESEXPR.
14207         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14208         HAVE_LANGINFO_T_FMT_AMPM is 0.
14209         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14210         HAVE_LANGINFO_YESEXPR is 0.
14211         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14212         NOEXPR.
14213         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14214         * doc/posix-functions/nl_langinfo.texi: Likewise.
14215         Reported by Eric Blake.
14216
14217 2010-09-10  Bruno Haible  <bruno@clisp.org>
14218
14219         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14220         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14221         on FreeBSD 8.0 and OpenBSD 4.6.
14222         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14223         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14224         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14225         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14226         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14227         ac_includes_default.
14228         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14229
14230 2010-09-09  Eric Blake  <eblake@redhat.com>
14231
14232         strsignal: work around NetBSD bug
14233         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14234         * lib/string.in.h (includes): Likewise.
14235         * doc/posix-functions/strsignal.texi (strsignal): Document the
14236         bug.
14237         Reported by Nelson H. F. Beebe.
14238
14239         gnulib-tool: work with NetBSD /bin/sh
14240         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14241         (func_get_description, func_get_comment, func_get_status)
14242         (func_get_notice, func_get_applicability, func_get_filelist)
14243         (func_get_dependencies, func_get_autoconf_early_snippet)
14244         (func_get_autoconf_snippet, func_get_automake_snippet)
14245         (func_get_include_directive, func_get_link_directive)
14246         (func_get_license, func_get_maintainer, func_import): Avoid
14247         shell syntax errors from parsing syntax extensions.
14248
14249 2010-09-09  Bruno Haible  <bruno@clisp.org>
14250
14251         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14252         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14253         a reliable way to determine whether the 'alias' command works.
14254
14255 2010-09-08  Jim Meyering  <meyering@redhat.com>
14256
14257         init.sh: penalize a set-x-impaired shell; don't disqualify it
14258         * tests/init.sh: Too many shells corrupt application stderr when
14259         you set -x, so we can't afford to disqualify them, since at least
14260         on Irix-6.5, that would disqualify all bourne shells.
14261         Instead, use a two-pass approach.
14262         On the first pass, try to find a shell that meets the stricter
14263         condition that set -x does not corrupt stderr.
14264         If no shell meets the stricter condition, retest each candidate
14265         shell, but without that extra condition.  Finally, when
14266         VERBOSE=yes is requested and set -x might cause trouble, simply
14267         issue a warning and refrain from enabling debug output.
14268
14269 2010-09-08  Eric Blake  <eblake@redhat.com>
14270
14271         unsetenv: fix OpenBSD bug
14272         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14273         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14274         documentation.
14275         Reported by Jim Meyering.
14276
14277         strtod: work around IRIX 6.5 bug
14278         * lib/strtod.c (strtod): Reparse number on shorter string if
14279         exponent parse was invalid.
14280         * tests/test-strtod.c (main): Add check for "0x1p 2".
14281         Reported by Tom G. Christensen.
14282
14283         getopt: optimize previous patch
14284         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14285         empty variable.  Speed up awk script.
14286         Reported by Paolo Bonzini.
14287
14288 2010-09-08  Jim Meyering  <meyering@redhat.com>
14289
14290         test.sh: disqualify shells for which set -x corrupts stderr
14291         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14292         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14293         appear in stderr output.  For example, this command:
14294             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14295         prints "P=1" on those two systems:
14296
14297 2010-09-08  Bruno Haible  <bruno@clisp.org>
14298
14299         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14300         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14301         commands, because some shells ignore redirections when there is an
14302         error in the command lookup.
14303         Reported by Eric Blake.
14304
14305 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14306
14307         * lib/regex.h: Fix a mention of `regex_compile' (should be
14308         `re_compile_pattern').
14309         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14310         (re_set_registers): Correct name of parameter in comment.
14311
14312         * doc/regex.texi: Add documentation for missing syntax flags.
14313         Remove commented-out documentation of defunct syntax option
14314         RE_NO_EMPTY_ALTS.
14315         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14316         Add documentation of re_set_registers.
14317         Document trick to re-use a pattern buffer by setting fastmap manually.
14318         Update documentation of struct re_pattern_buffer per public members.
14319         Uncomment documentation of equivalence class operators and
14320         collating symbol operators, since they are now implemented,
14321         Explain leftmost-longest matching in relation to alternatives.
14322         Tidy documentation of substring matching.
14323         Remove POSIX documentation, which is done better in
14324         glibc, and refer the reader there. Keep BSD API documentation, as
14325         that is not readily available elsewhere.
14326
14327 2010-09-07  Eric Blake  <eblake@redhat.com>
14328
14329         getopt: handle POSIXLY_CORRECT set but not exported
14330         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14331         export state of POSIXLY_CORRECT, due to bash set -o posix.
14332         Reported by Dustin J. Mitchell.
14333
14334 2010-09-05  Bruno Haible  <bruno@clisp.org>
14335
14336         gnulib-tool: Highlight the changed options.
14337         * gnulib-tool (func_usage): Display the --import, --add-import,
14338         --remove-import explanations in bold font.
14339
14340 2010-09-06  Karl Berry  <karl@gnu.org>
14341
14342         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14343
14344 2010-09-05  Bruno Haible  <bruno@clisp.org>
14345
14346         uniwidth/width: Update comment.
14347         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14348         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14349
14350 2010-09-05  Bruno Haible  <bruno@clisp.org>
14351
14352         isinf, isnan: Relax license.
14353         * modules/isinf (License): Change from GPL to LGPL, with consent from
14354         Ben Pfaff.
14355         * modules/isnan (License): Likewise.
14356         Requested by Ludovic Courtès.
14357
14358 2010-09-04  Bruno Haible  <bruno@clisp.org>
14359
14360         gnulib-tool: Help migration from --import to --add-import or --update.
14361         * gnulib-tool: Emit a verbose error message when --import is used
14362         without any module name.
14363
14364 2010-09-04  Bruno Haible  <bruno@clisp.org>
14365
14366         Update doc about gnulib-tool.
14367         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14368         'gnulib-tool --update' in more detail.
14369         Reported by Eric Blake.
14370
14371 2010-09-04  Bruno Haible  <bruno@clisp.org>
14372
14373         gnulib-tool: Change --import. New options --add/remove-import.
14374         * gnulib-tool: New options --add-import, --remove-import.
14375         (func_usage): Document them.
14376         (have_associative): Define always.
14377         (func_import): In import mode, don't merge the specified settings with
14378         the cached settings. Implement remove-import mode.
14379         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14380         Explain when to use them versus --import.
14381         (Simple update): Use --add-import instead of --import.
14382         * NEWS: Mention the change.
14383
14384 2010-09-04  Bruno Haible  <bruno@clisp.org>
14385
14386         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14387         separate gnulib.mk.
14388
14389 2010-09-04  Bruno Haible  <bruno@clisp.org>
14390
14391         gnulib-tool: Don't talk about CVS any more.
14392         * gnulib-tool (func_usage, func_import): Write "version control"
14393         instead of CVS.
14394
14395 2010-09-04  Jim Meyering  <meyering@redhat.com>
14396
14397         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14398         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14399         false positives (whose names may be ill-chosen) when searching
14400         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14401         would cause a false-positive.
14402
14403         avoid coreutils "make distcheck" failure
14404         Coreutils tests with an absolute build directory name that contains
14405         a space.  Not quoting this directory name caused a failure.
14406         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14407         * tests/test-vc-list-files-cvs.sh: Likewise.
14408
14409 2010-09-04  Bruno Haible  <bruno@clisp.org>
14410
14411         gnulib-tool: Avoid error when run in a package without Makefile.am.
14412         * gnulib-tool: When collecting the m4dirs in a package that does not
14413         have a Makefile.am, eliminate those directories that contain no
14414         gnulib-cache.m4. Fix expression that counts these directories.
14415
14416 2010-09-04  Bruno Haible  <bruno@clisp.org>
14417
14418         update-copyright test: Improve output when perl is missing or too old.
14419         * tests/test-update-copyright.sh: Move test of Perl version down after
14420         the test whether Perl exists. Provide an explanation relating Perl's
14421         error message to Automake's SKIP: message.
14422
14423 2010-09-04  Bruno Haible  <bruno@clisp.org>
14424
14425         Don't augment PATH in TESTS_ENVIRONMENT.
14426         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14427         set abs_aux_dir instead of augmenting PATH.
14428         * modules/vc-list-files-tests (Makefile.am): Likewise.
14429         * tests/test-update-copyright.sh: Augment PATH here.
14430         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14431         path_prepend_.
14432         * tests/test-vc-list-files-git.sh: Likewise.
14433
14434 2010-09-04  Jim Meyering  <meyering@redhat.com>
14435
14436         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14437         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14438
14439 2010-09-04  Bruno Haible  <bruno@clisp.org>
14440
14441         strdup: Fix compilation error in C++ mode.
14442         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14443         the macro.
14444
14445 2010-09-04  Bruno Haible  <bruno@clisp.org>
14446
14447         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14448         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14449         macro into a function.
14450         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14451
14452 2010-09-04  Bruno Haible  <bruno@clisp.org>
14453
14454         Set PATH_SEPARATOR the same way autoconf does.
14455         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
14456         the value of PATH_SEPARATOR the same way autoconf-generated configure
14457         scripts do.
14458         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
14459         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14460
14461 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14462
14463         Set PATH_SEPARATOR the same way autoconf does.
14464         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
14465         the same way autoconf-generated configure scripts do.
14466         * posix-modules: Likewise.
14467
14468 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14469
14470         hash: fix safe_hasher const typo
14471         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14472         const; otherwise, there is a type error later.
14473
14474 2010-09-02  Jim Meyering  <meyering@redhat.com>
14475
14476         test-update-copyright.sh: require perl 5.8.0
14477         * tests/test-update-copyright.sh: Require 5.8.0,
14478         which Tom G. Christensen has confirmed is adequate,
14479         while 5.6.1 is not.
14480
14481 2010-09-02  Eric Blake  <eblake@redhat.com>
14482
14483         tests: init.sh improvements for re-exec'ing with zsh
14484         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14485         -vx through shell re-exec.
14486         Reported by Tom G. Christensen.
14487
14488         wctype: fix typo in previous commit
14489         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14490         Reported by Ludovic Courtès.
14491
14492 2010-09-02  Jim Meyering  <meyering@redhat.com>
14493
14494         test-update-copyright.sh: skip test if Perl is too old
14495         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14496         Reported by Tom G. Christensen.
14497
14498 2010-09-02  Bruno Haible  <bruno@clisp.org>
14499
14500         wctype: Avoid compilation error on IRIX 6.5.30.
14501         * lib/wctype.in.h (iswblank): Declare with a replacement if
14502         REPLACE_ISWBLANK is set.
14503         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14504         declared. Set REPLACE_ISWBLANK.
14505         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14506         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14507         * doc/posix-headers/wctype.texi: Likewise.
14508         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14509
14510 2010-09-01  Bruno Haible  <bruno@clisp.org>
14511
14512         New module 'socketlib'.
14513         * modules/socketlib: New file.
14514         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14515         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14516         * modules/sockets (Depends-on): Add socketlib.
14517         Suggested by Sam Steingold <sds@gnu.org>.
14518
14519 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14520
14521         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14522
14523         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14524         when one needs search access to a directory but not read access.
14525         On systems where it is available, it works in some cases where
14526         O_RDONLY does not, namely on directories that are searchable but
14527         not readable, and which need only to be searchable.  If O_SEARCH
14528         is not available, fall back to the traditional method of using
14529         O_RDONLY.
14530
14531         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14532         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14533         when opening a directory that needs only to be searchable.
14534         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14535         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14536         * lib/openat-proc.c (openat_proc_name): Likewise.
14537         * lib/openat.c (openat_needs_fchdir): Likewise.
14538         * lib/save-cwd.c (save_cwd): Likewise.
14539         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
14540
14541 2010-08-28  Bruno Haible  <bruno@clisp.org>
14542
14543         New module 'host-cpu-c-abi'.
14544         * modules/host-cpu-c-abi: New file.
14545         * m4/host-cpu-c-abi.m4: New file, based on part of
14546         clisp/src/m4/general.m4.
14547         Requested by Sam Steingold <sds@gnu.org>.
14548
14549 2010-08-31  Eric Blake  <eblake@redhat.com>
14550         and Jim Meyering  <meyering@redhat.com>
14551
14552         hash: factor, and guard against misbehaving hasher function
14553         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
14554         of table->hasher's return value.  Also protect against a hash value
14555         so large that adding it to table->bucket results in a NULL pointer.
14556         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
14557         Use it in place of open-coded check-and-abort.
14558
14559 2010-08-30  Bruno Haible  <bruno@clisp.org>
14560
14561         hash: silence spurious clang warning
14562         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
14563         Reported by Eric Blake.
14564
14565 2010-08-30  Eric Blake  <eblake@redhat.com>
14566
14567         strstr, memmem, strcasestr: avoid leaked shell message
14568         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
14569         FreeBSD.
14570         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14571         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14572
14573         tests: silence clang warning
14574         * tests/test-malloca.c (do_allocation): Avoid dead store.
14575
14576 2010-08-29  Bruno Haible  <bruno@clisp.org>
14577
14578         gettext: Fix recent mistake.
14579         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
14580
14581 2010-08-29  Bruno Haible  <bruno@clisp.org>
14582
14583         selinux-h: Offer a --without-selinux option.
14584         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
14585         --without-selinux was specified, skip all tests and define
14586         HAVE_SELINUX_SELINUX_H to 0.
14587         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
14588         set LIB_SELINUX to empty.
14589         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
14590         gl_LIBSELINUX. If --without-selinux was specified, replace
14591         selinux/context.h.
14592         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
14593
14594 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14595             Bruno Haible  <bruno@clisp.org>
14596
14597         Make the module 'realloc-gnu' work again on AIX and OSF/1.
14598         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
14599         of HAVE_REALLOC.
14600         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
14601         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
14602         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
14603         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14604
14605 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14606             Bruno Haible  <bruno@clisp.org>
14607
14608         Make the module 'calloc-gnu' work again on AIX and OSF/1.
14609         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
14610         HAVE_CALLOC.
14611         * lib/xmalloc.c: Update accordingly.
14612         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
14613         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
14614         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14615
14616 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14617             Bruno Haible  <bruno@clisp.org>
14618
14619         Make the module 'malloc-gnu' work again on AIX and OSF/1.
14620         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
14621         HAVE_MALLOC.
14622         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
14623         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
14624         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14625
14626 2010-08-29  Bruno Haible  <bruno@clisp.org>
14627
14628         Update modules list.
14629         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14630         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
14631         (String handling <string.h>): Add astrxfrm.
14632         (File system functions): Add readlinkat.
14633
14634 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14635
14636         Tests for module 'realloc-gnu'.
14637         * modules/realloc-gnu-tests: New file.
14638         * tests/test-realloc-gnu.c: New file.
14639
14640         Tests for module 'calloc-gnu'.
14641         * modules/calloc-gnu-tests: New file.
14642         * tests/test-calloc-gnu.c: New file.
14643
14644         Tests for module 'malloc-gnu'.
14645         * modules/malloc-gnu-tests: New file.
14646         * tests/test-malloc-gnu.c: New file.
14647
14648 2010-08-28  Bruno Haible  <bruno@clisp.org>
14649
14650         Rename module 'realloc' -> 'realloc-gnu'.
14651         * modules/realloc-gnu: New file, copied from modules/realloc.
14652         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
14653         obsolete.
14654         * modules/mgetgroups (Depends-on): Update.
14655         * doc/posix-functions/realloc.texi: Update.
14656         * NEWS: Mention the change.
14657
14658         Rename module 'calloc' -> 'calloc-gnu'.
14659         * modules/calloc-gnu: New file, copied from modules/calloc.
14660         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
14661         obsolete.
14662         * doc/posix-functions/calloc.texi: Update.
14663         * NEWS: Mention the change.
14664
14665         Rename module 'malloc' -> 'malloc-gnu'.
14666         * modules/malloc-gnu: New file, copied from modules/malloc.
14667         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
14668         obsolete.
14669         * modules/argp (Depends-on): Update.
14670         * modules/regex (Depends-on): Update.
14671         * doc/posix-functions/malloc.texi: Update.
14672         * NEWS: Mention the change.
14673
14674 2010-08-28  Eric Blake  <eblake@redhat.com>
14675
14676         pread, pwrite: add missing dependency
14677         * modules/pread (Depends-on): Add extensions.
14678         * modules/pwrite (Depends-on): Likewise.
14679
14680 2010-08-28  Bruno Haible  <bruno@clisp.org>
14681
14682         unistr/u*-strchr: Fix tests dependencies.
14683         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
14684         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
14685         Reported by Ian Beckwith <ianb@erislabs.net>.
14686
14687 2010-08-28  Bruno Haible  <bruno@clisp.org>
14688
14689         read-file: Don't occupy too much unused memory.
14690         * lib/read-file.c (fread_file): Shrink the buffer at the end.
14691
14692 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
14693             Eric Blake  <eblake@redhat.com>
14694             Bruno Haible  <bruno@clisp.org>
14695
14696         read-file: Avoid memory reallocations with regular files.
14697         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
14698         (fread_file): With regular files, use the remaining length as the
14699         initial buffer size.  Check against overflow.
14700         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
14701         sys_stat.
14702
14703 2010-08-28  Bruno Haible  <bruno@clisp.org>
14704
14705         ftello: Relax license.
14706         * modules/ftello (License): Relax to LGPLv2+.
14707         Reported by Eric Blake.
14708
14709 2010-08-28  Bruno Haible  <bruno@clisp.org>
14710
14711         Avoid relocwrapper link errors due to gnulib replacement functions.
14712         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
14713         function.
14714         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14715
14716 2010-08-28  Bruno Haible  <bruno@clisp.org>
14717
14718         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
14719         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
14720         defined.
14721         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
14722         Suggested by Eric Blake.
14723
14724 2010-08-28  Bruno Haible  <bruno@clisp.org>
14725
14726         sys_socket, netdb: Ensure socklen_t gets defined.
14727         * modules/sys_socket (Depends-on): Add socklen.
14728         * modules/netdb (Depends-on): Likewise.
14729         * modules/getaddrinfo (Depends-on): Remove socklen.
14730         * modules/getsockopt (Depends-on): Likewise.
14731         * modules/setsockopt (Depends-on): Likewise.
14732         * tests/test-sys_socket.c: Check that socklen_t is defined.
14733         * tests/test-netdb.c: Likewise.
14734         * m4/socklen.m4: Update comments.
14735         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14736
14737 2010-08-27  Eric Blake  <eblake@redhat.com>
14738
14739         login_tty: add missing dependency
14740         * modules/login_tty (Depends-on): Add pty.
14741
14742 2010-08-26  Eric Blake  <eblake@redhat.com>
14743
14744         lib-symbol-versions: fix m4 quoting
14745         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
14746         format for AC_LINK_IFELSE.
14747
14748         glob: fix compile test
14749         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
14750
14751         btowc: fix missing file
14752         * modules/btowc (Files): Also ship locale-fr.m4.
14753
14754         lseek: fix link test
14755         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
14756         AC_LINK_IFELSE.
14757
14758         include_next: silence autoconf 2.68 warning
14759         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
14760         AC_COMPILE_IFELSE as special.
14761         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
14762         autoconf < 2.68.
14763
14764         acl: fix compilation test
14765         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
14766         AC_COMPILE_IFELSE.
14767
14768 2010-08-26  Bruno Haible  <bruno@clisp.org>
14769
14770         Modernize AC_TRY_RUN invocations.
14771         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
14772         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14773         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
14774         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
14775         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
14776         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14777         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14778         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14779         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14780         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14781         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14782         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14783         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14784         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14785         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14786         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14787         gl_MBRLEN_NUL_RETVAL): Likewise.
14788         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14789         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14790         Likewise.
14791         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14792         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14793         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14794         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14795         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
14796         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
14797         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
14798         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14799         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
14800         Likewise.
14801         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14802         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
14803         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14804         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14805         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14806         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14807         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14808         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
14809         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14811
14812 2010-08-26  Bruno Haible  <bruno@clisp.org>
14813
14814         Modernize AC_TRY_LINK invocations.
14815         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
14816         AC_TRY_LINK.
14817         * m4/argp.m4 (gl_ARGP): Likewise.
14818         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14819         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14820         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
14821         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14822         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14823         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
14824         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14825         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14826         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14827         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14828         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14829         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
14830         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
14831         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14832         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14833         * m4/hostent.m4 (gl_HOSTENT): Likewise.
14834         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14835         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
14836         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14837         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
14838         Likewise.
14839         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
14840         Likewise.
14841         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
14842         Likewise.
14843         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14844         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
14845         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
14846         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14847         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14848         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14849         * m4/servent.m4 (gl_SERVENT): Likewise.
14850         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14851         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14852         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14853         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14854         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14855         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14856         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14857         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14858         * modules/tsearch-tests (configure.ac): Likewise.
14859
14860 2010-08-26  Bruno Haible  <bruno@clisp.org>
14861
14862         Modernize AC_TRY_COMPILE invocations.
14863         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
14864         AC_TRY_COMPILE.
14865         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
14866         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
14867         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14868         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
14869         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14870         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14871         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14872         * m4/lock.m4 (gl_LOCK): Likewise.
14873         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
14874         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14875         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
14876         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14877         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14878         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
14879         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14880         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
14881         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14882         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14883         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14884         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14885         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
14886         extraneous semicolon.
14887
14888 2010-08-26  Jim Meyering  <meyering@redhat.com>
14889
14890         stat-time: relax license LGPL
14891         * modules/stat-time (License): Change from GPL to LGPL,
14892         with consent from all contributors, for use in libguile.
14893         Requested by Ludovic Courtès.
14894
14895 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
14896
14897         poll: return immediately on POLLHUP.
14898         * lib/poll.c (poll): Always set timeout before wait_timeout is
14899         computed.
14900
14901 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14902
14903         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
14904         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
14905         rmdir ("dir/.//"), unlinkat.
14906
14907 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14908
14909         stdbool: avoid spurious failure with modern xlc
14910         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14911
14912 2010-08-24  Bruno Haible  <bruno@clisp.org>
14913
14914         getloadavg: simplify code
14915         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
14916         gl_have_func. Update comments.
14917
14918 2010-08-24  Eric Blake  <eblake@redhat.com>
14919
14920         getloadavg: don't define SVR4 on cygwin
14921         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
14922         only define SVR4 when -lkvm is required.
14923         Reported by Yaakov Selkowitz.
14924
14925 2010-08-24  Bruno Haible  <bruno@clisp.org>
14926
14927         priv-set: fix comment
14928         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
14929
14930 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14931
14932         priv-set: fix comments
14933         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
14934         to match code, as suggested by David Bartley in:
14935         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
14936
14937 2010-08-23  Eric Blake  <eblake@redhat.com>
14938
14939         stdbool: avoid rejecting clang
14940         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14941         * tests/test-stdbool.c: Enable more tests if using the system
14942         <stdbool.h> instead of the gnulib replacement.
14943         (main): Move xlc bug test to a runtime test for all compilers.
14944         Reported by Anders Kaseorg.
14945
14946         argz: fix shell quoting issue
14947         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
14948         Reported by Charles Wilson.
14949
14950 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
14951             Erik Faye-Lund <kusmabite@gmail.com>
14952
14953         poll, select: handle ERROR_BROKEN_PIPE.
14954         * lib/poll.c (win32_compute_revents): Return POLLHUP when
14955         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14956         * lib/select.c (win32_compute_revents): Do not mark a pipe
14957         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14958
14959 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
14960
14961         fts: allow compilation with C++
14962         * lib/fts_.h: Specify extern "C" linkage with C++.
14963
14964 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14965
14966         Fix gnulib-tool sed script de-commentation for AIX sed.
14967         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
14968         sed.
14969
14970 2010-08-17  Eric Blake  <eblake@redhat.com>
14971
14972         test-stddef: test for (some) offsetof bugs
14973         * tests/test-stddef.c: Enhance test to ensure correct type of
14974         offsetof.
14975         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
14976         that we are not fixing at this time.
14977
14978 2010-08-15  Bruno Haible  <bruno@clisp.org>
14979
14980         stpncpy: Allow stpncpy to be defined as a macro.
14981         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
14982         if it's already correctly declared.
14983         * lib/string.in.h (stpncpy): Undefine before redefining.
14984         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
14985
14986 2010-08-14  Bruno Haible  <bruno@clisp.org>
14987
14988         Rename module 'memxfrm' to 'amemxfrm'.
14989         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
14990         (amemxfrm): Renamed from memxfrm.
14991         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
14992         (amemxfrm): Renamed from memxfrm.
14993         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
14994         * NEWS: Mention the change.
14995         * MODULES.html.sh (String handling <string.h>): Update.
14996         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
14997         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
14998         * lib/unicase/u16-casexfrm.c: Likewise.
14999         * lib/unicase/u32-casexfrm.c: Likewise.
15000         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15001         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15002         * lib/uninorm/u16-normxfrm.c: Likewise.
15003         * lib/uninorm/u32-normxfrm.c: Likewise.
15004         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15005         memxfrm.
15006         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15007         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15008         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15009         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15010         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15011         Suggested by Paul Eggert.
15012
15013 2010-08-14  Bruno Haible  <bruno@clisp.org>
15014
15015         Tests for module 'astrxfrm'.
15016         * modules/astrxfrm-tests: New file.
15017         * tests/test-astrxfrm.c: New file.
15018
15019         New module 'astrxfrm'.
15020         * lib/astrxfrm.h: New file.
15021         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15022         * modules/astrxfrm: New file.
15023
15024 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15025
15026         regex: Tweak doc.
15027         * doc/regex.texi (Overview): Don't mention regex.c.
15028         (GNU Regular Expression Compiling): Likewise.
15029         (Match-end-of-line Operator): Mention 'not_eol'.
15030
15031 2010-08-14  Brian Gough  <bjg@gnu.org>
15032             Bruno Haible  <bruno@clisp.org>
15033
15034         git-merge-changelog: add doc relating to use with bzr and hg.
15035         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15036
15037 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15038
15039         pthread: fix pthread.h creation for srcdir != builddir
15040         * modules/pthread (Makefile.am): Fix the rule to work also in a
15041         non-srcdir build.
15042
15043 2010-08-13  Karl Berry  <karl@gnu.org>
15044
15045         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15046         * doc/posix-*/*: force line break before @url of POSIX
15047         specifications.
15048         Suggested by Werner Lemberg.
15049
15050 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15051
15052         strtod: fix const diagnostic
15053         * lib/strtod.c (strtod): Don't assign const char * to char *,
15054         as this elicits a warning from GCC when warnings are enabled.
15055
15056 2010-08-10  Pádraig Brady <P@draigbrady.com>
15057         and Eric Blake  <eblake@redhat.com>
15058
15059         copy-acl: ignore ENOTSUP on HP-UX
15060         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15061         so that it is available for HP-UX.
15062         * lib/copy-acl.c (qcopy_acl): Use it.
15063         Reported by Patrick M. Callahan.
15064
15065 2010-08-10  Eric Blake  <eblake@redhat.com>
15066
15067         open, chown: relax license
15068         * modules/open (License): Change to LGPLv2+, with consent by all
15069         authors, for use in augeas.
15070         * modules/chown (License): Likewise.
15071         * modules/lchown (Likewise): Likewise.
15072         Requested by Adam Stokes.
15073
15074 2010-08-09  Karl Berry  <karl@gnu.org>
15075
15076         * build-aux/ar-lib: new file, import from Automake.
15077         * config/srclist.txt: autocheck for updates.
15078
15079 2010-08-09  Eric Blake  <eblake@redhat.com>
15080
15081         readlinkat: adjust client modules
15082         * modules/areadlinkat (Depends-on): Use readlinkat, not
15083         symlinkat.
15084         * modules/areadlinkat-with-size (Depends-on): Likewise.
15085
15086         mknod: be more vocal about danger of running tests as root
15087         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15088         root, since that is just asking for problems.
15089         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15090
15091         readlinkat: split into its own module
15092         * modules/symlinkat: Split readlinkat...
15093         * modules/readlinkat: ...into separate module.
15094         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15095         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15096         * lib/symlinkat.c (readlinkat): Move...
15097         * lib/readlinkat.c: ...into new file.
15098         * modules/symlinkat-tests: Split readlinkat test...
15099         * modules/readlinkat-tests: ...into separate module.
15100         * tests/test-symlinkat.c: Split...
15101         * tests/test-readlinkat.c: ...into new file.
15102         * NEWS: Document the split.
15103         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15104         * lib/unistd.in.h (readlinkat): Likewise.
15105         Suggested by Bruno Haible.
15106
15107 2010-08-08  Bruno Haible  <bruno@clisp.org>
15108
15109         memxfrm: Speed up.
15110         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15111         that usually only one call to strxfrm is necessary for each string
15112         part.
15113         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15114
15115 2010-08-07  Karl Berry  <karl@gnu.org>
15116
15117         * doc/posix-headers/limits.texi,
15118         * doc/posix-functions/malloc.texi,
15119         * doc/posix-functions/strsignal.texi: missing @item.
15120         * doc/ld-version-script.texi: spurious leading i.
15121         * doc/regex.texi (Interval Operators): no commas inside @var.
15122
15123 2010-08-01  Bruno Haible  <bruno@clisp.org>
15124
15125         Integrate the regex documentation.
15126         * doc/gnulib.texi: Define 'cn' index.
15127         (Regular expressions): New a chapter that includes regex.texi and
15128         regexprops-generic.texi.
15129         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15130         syntax.
15131
15132         Whitespace cleanup.
15133         * doc/regex.texi: Remove trailing spaces.
15134
15135         Add regex documentation.
15136         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15137         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15138         Written by Kathy A. Hargreaves and Karl Berry.
15139
15140 2010-08-01  Bruno Haible  <bruno@clisp.org>
15141
15142         link: Update documentation.
15143         * doc/posix-functions/link.texi: Update regarding Solaris.
15144
15145 2010-07-31  Bruno Haible  <bruno@clisp.org>
15146
15147         Update modules list.
15148         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15149         (String handling <string.h>): Add memcmp2, memxfrm.
15150         (Container data structures): Add xlist, xsublist, xoset.
15151         (Core language properties): Add alignof, unused-parameter.
15152         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15153         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15154         (Unibyte characters <ctype.h>): New section.
15155         (String handling <string.h>): New section.
15156         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15157         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15158         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15159         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15160         tan, tanh, tanl, y0, y1, yn.
15161         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15162         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15163         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15164         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15165         unlockpt, vdprintf, vdprintf-posix.
15166         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15167         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15168         xconcat-filename.
15169         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15170         getdtablesize, pipe2, pipe2-safer.
15171         (Security): New section.
15172         (Networking functions): Add accept4.
15173         (Signal handling): Add sigpipe.
15174         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15175         mbmemcasecoll.
15176         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15177         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15178         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15179         pipe-filter-ii.
15180         (Misc): Add argp-version-etc, login_tty, parse-duration.
15181
15182 2010-07-31  Bruno Haible  <bruno@clisp.org>
15183
15184         Improve doc in MODULES.html.
15185         * modules/linkat (Description): Add the word "function".
15186         * modules/mkfifo (Description): Likewise.
15187         * modules/mknod (Description): Likewise.
15188         * modules/remove (Description): Likewise.
15189         * modules/renameat (Description): Likewise.
15190         * modules/stat (Description): Likewise.
15191         * modules/symlink (Description): Likewise.
15192         * modules/unlink (Description): Likewise.
15193
15194 2010-07-31  Bruno Haible  <bruno@clisp.org>
15195
15196         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15197         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15198         option --enable/disable-c++ instead of --enable/disable-cxx.
15199         * NEWS: Mention the change.
15200
15201 2010-07-31  Bruno Haible  <bruno@clisp.org>
15202
15203         readlink, areadlink: Relax test a bit.
15204         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15205         alternative to ENOTDIR.
15206         * tests/test-areadlink.h (test_areadlink): Likewise.
15207         Reported by Rainer Tammer.
15208
15209 2010-07-31  Bruno Haible  <bruno@clisp.org>
15210
15211         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15212         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15213         character, perform the search using U_STRCHR.
15214         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15215         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15216         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15217         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15218         Suggested by Paolo Bonzini.
15219
15220 2010-07-31  Bruno Haible  <bruno@clisp.org>
15221
15222         unistr/u*-strstr: Fix dependencies.
15223         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15224         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15225         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15226
15227 2010-07-31  Bruno Haible  <bruno@clisp.org>
15228
15229         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15230         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15231         the beginning of the loop.
15232         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15233         cases in 'switch' statement.
15234
15235         unistr/u8-strchr: Fix several bugs.
15236         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15237         the string. When not found, return NULL, not a pointer near the end.
15238
15239         More tests for unistr/u8-strchr.
15240         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15241         that the function does not read past the first occurrence of the byte
15242         being searched.
15243         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15244         * tests/unistr/test-u16-strchr.c (main): New function.
15245         * tests/unistr/test-u32-strchr.c (main): New function.
15246
15247 2010-07-31  Bruno Haible  <bruno@clisp.org>
15248
15249         posix-modules: Ignore backup files of documentation files.
15250         * posix-modules: grep only through files named *.texi.
15251
15252 2010-07-31  Bruno Haible  <bruno@clisp.org>
15253
15254         symlinkat: Fix documentation.
15255         * doc/posix-functions/readlinkat.texi: Fix module name.
15256
15257 2010-07-31  Bruno Haible  <bruno@clisp.org>
15258
15259         fchownat: Replace also when chown has the trailing slash bug.
15260         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15261         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15262         introduced on 2010-04-10.
15263         Reported by Rainer Tammer.
15264
15265 2010-07-31  Bruno Haible  <bruno@clisp.org>
15266
15267         linkat: Work around AIX 7.1 bug.
15268         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15269         whether linkat handles trailing slash correctly. If not, replace linkat
15270         and define LINKAT_TRAILING_SLASH_BUG.
15271         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15272         check whether (fd1,file1) points to a directory if file1 or file2 ends
15273         in a slash. Code taken from lib/link.c.
15274         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15275         Reported by Rainer Tammer.
15276
15277 2010-07-31  Bruno Haible  <bruno@clisp.org>
15278
15279         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15280         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15281         This disables an xlc optimization that was causing wrong test results.
15282         Reported by Rainer Tammer.
15283
15284 2010-07-31  Bruno Haible  <bruno@clisp.org>
15285
15286         iconv: Work around AIX 6.1..7.1 bug.
15287         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15288         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15289         cross-compiling, guess no on all versions of AIX.
15290         Reported by Rainer Tammer.
15291
15292 2010-07-31  Bruno Haible  <bruno@clisp.org>
15293
15294         readlink: Relax test a bit.
15295         * tests/test-readlink.h (test_readlink): Allow different errno value
15296         when readlink is called with a file name that ends in / and refers to
15297         a file.
15298         Suggested by Eric Blake.
15299         Reported by Rainer Tammer.
15300
15301 2010-07-31  Bruno Haible  <bruno@clisp.org>
15302
15303         copysign: Does not require -lm on glibc systems.
15304         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15305         gl_COMMON_DOUBLE_MATHFUNC.
15306         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15307
15308 2010-07-31  Bruno Haible  <bruno@clisp.org>
15309
15310         duplocale: Work around AIX 7.1 bug.
15311         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15312         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15313         * lib/duplocale.c (rpl_duplocale): Update comment.
15314         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15315         Reported by Rainer Tammer.
15316
15317 2010-07-30  Bruno Haible  <bruno@clisp.org>
15318
15319         dirfd: Avoid link error on AIX 7.1.
15320         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15321         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15322         exist, set REPLACE_DIRFD.
15323         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15324         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15325         * doc/posix-functions/dirfd.texi: Update.
15326         Reported by Rainer Tammer.
15327
15328 2010-07-30  Eric Blake  <eblake@redhat.com>
15329
15330         strtod: next round of AIX fixes
15331         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15332         exponent.
15333         * tests/test-strtod.c (main): Enhance tests.
15334         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15335         Reported by Rainer Tammer.
15336
15337         futimens: fix configure check
15338         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15339         Reported by Bruno Haible.
15340
15341 2010-07-30  Bruno Haible  <bruno@clisp.org>
15342
15343         getline: Update regarding AIX.
15344         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15345         Reported by Rainer Tammer.
15346
15347 2010-07-30  Bruno Haible  <bruno@clisp.org>
15348
15349         wcwidth: Drop replacement on AIX 7.
15350         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15351         AIX 7.
15352         Reported by Rainer Tammer.
15353
15354 2010-07-30  Bruno Haible  <bruno@clisp.org>
15355
15356         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15357         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15358         a 'char *'.
15359         Reported by Rainer Tammer.
15360
15361 2010-07-30  Bruno Haible  <bruno@clisp.org>
15362
15363         unlink: Update regarding AIX.
15364         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15365         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15366         Reported by Rainer Tammer.
15367
15368 2010-07-30  Bruno Haible  <bruno@clisp.org>
15369
15370         symlink: Update regarding AIX.
15371         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15372         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15373         Reported by Rainer Tammer.
15374
15375 2010-07-30  Bruno Haible  <bruno@clisp.org>
15376
15377         strndup: Update regarding AIX.
15378         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15379         AIX 7.
15380         Reported by Rainer Tammer.
15381
15382 2010-07-30  Bruno Haible  <bruno@clisp.org>
15383
15384         stat: Update regarding AIX.
15385         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15386         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15387         Reported by Rainer Tammer.
15388
15389 2010-07-30  Bruno Haible  <bruno@clisp.org>
15390
15391         truncl: Fix autoconf test.
15392         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15393         whether truncl works.
15394         Reported by Rainer Tammer.
15395
15396 2010-07-30  Bruno Haible  <bruno@clisp.org>
15397
15398         round: Update regarding AIX.
15399         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15400         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15401         Reported by Rainer Tammer.
15402
15403 2010-07-30  Bruno Haible  <bruno@clisp.org>
15404
15405         rename: Update regarding AIX.
15406         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15407         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15408         Reported by Rainer Tammer.
15409
15410 2010-07-30  Bruno Haible  <bruno@clisp.org>
15411
15412         printf.m4: Update regarding AIX.
15413         * m4/printf.m4: Update comments regarding AIX.
15414         Reported by Rainer Tammer.
15415
15416 2010-07-30  Bruno Haible  <bruno@clisp.org>
15417
15418         iconv: Update regarding AIX.
15419         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15420         AIX 7.
15421         Reported by Rainer Tammer.
15422
15423 2010-07-30  Bruno Haible  <bruno@clisp.org>
15424
15425         getopt: Update regarding AIX.
15426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15427         no on AIX.
15428         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15429         Reported by Rainer Tammer.
15430
15431 2010-07-30  Bruno Haible  <bruno@clisp.org>
15432
15433         ldexpl; Update regarding AIX.
15434         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15435         on AIX 7.
15436         Reported by Rainer Tammer.
15437
15438 2010-07-30  Bruno Haible  <bruno@clisp.org>
15439
15440         frexpl: Update regarding AIX.
15441         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15442         on AIX 7.
15443         Reported by Rainer Tammer.
15444
15445 2010-07-30  Bruno Haible  <bruno@clisp.org>
15446
15447         open, fopen: Update regarding AIX.
15448         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15449         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15450         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15451         * doc/posix-functions/fopen.texi: Likewise.
15452         Reported by Rainer Tammer.
15453
15454 2010-07-30  Bruno Haible  <bruno@clisp.org>
15455
15456         chown: Update doc regarding AIX.
15457         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
15458         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
15459         Reported by Rainer Tammer.
15460
15461 2010-07-30  Eric Blake  <eblake@redhat.com>
15462
15463         strtod: fix bug in replacement function on AIX
15464         * lib/strtod.c (strtod): Special case broken "0x" parse in
15465         underlying strtod.
15466         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
15467         * doc/posix-functions/strtod.texi (strtod): Likewise.
15468         Reported by Rainer Tammer.
15469
15470 2010-07-30  Bruno Haible  <bruno@clisp.org>
15471
15472         mbrlen: Fix cross-compilation guess for AIX.
15473         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15474         guess. Leftover from 2008-12-22.
15475
15476 2010-07-30  Bruno Haible  <bruno@clisp.org>
15477
15478         mbrtowc: Fix cross-compilation guess for AIX.
15479         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15480         guess. Leftover from 2008-12-21.
15481
15482 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15483
15484         init.sh: work around trap limitation of some shells
15485         * tests/init.sh (setup_): Move exit trap outside of shell function.
15486
15487 2010-07-29  Eric Blake  <eblake@redhat.com>
15488
15489         strtod: aid debugging
15490         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15491         understanding why strtod is rejected.
15492
15493 2010-07-28  Bruno Haible  <bruno@clisp.org>
15494
15495         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15496         * lib/unistr/u8-chr.c: Include <string.h>.
15497         * tests/unistr/test-u8-chr.c: Likewise.
15498         * tests/unistr/test-u16-chr.c: Likewise.
15499         * tests/unistr/test-u32-chr.c: Likewise.
15500         * tests/unistr/test-u8-strchr.c: Likewise.
15501         * tests/unistr/test-u16-strchr.c: Likewise.
15502         * tests/unistr/test-u32-strchr.c: Likewise.
15503         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15504         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15505         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15506         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15507
15508 2010-07-28  Bruno Haible  <bruno@clisp.org>
15509
15510         Use spaces for indentation, not tabs.
15511         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15512
15513 2010-07-27  Bruno Haible  <bruno@clisp.org>
15514
15515         mbspcasecmp: Fix function specification.
15516         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15517         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15518         Reported by Eric Blake <eblake@redhat.com>.
15519
15520 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15521
15522         timespec: use cast and not conditional, as truncation isn't possible
15523         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15524         instead of a conditional.  Comment about the situation in more detail.
15525         This undoes most of the 2009-10-29 patch.
15526
15527 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15528
15529         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15530         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15531         * lib/unistr/u8-strchr.c: Likewise.
15532         * modules/unistr/u8-chr: Depend on memchr.
15533
15534         unistr/u*-strchr: add tests
15535         * modules/unistr/u8-strchr-tests: New file.
15536         * modules/unistr/u16-strchr-tests: New file.
15537         * modules/unistr/u32-strchr-tests: New file.
15538         * tests/unistr/test-strchr.h: New file.
15539         * tests/unistr/test-u8-strchr.c: New file.
15540         * tests/unistr/test-u16-strchr.c: New file.
15541         * tests/unistr/test-u32-strchr.c: New file.
15542
15543         unistr/u*-chr: test multibyte sequences more
15544         * tests/unistr/test-chr.h: Do complete testing of the characters in the
15545         test vector.
15546         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
15547         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
15548         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
15549
15550         unistr/u*-chr: test multibyte sequences
15551         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
15552
15553         unistr/u*-chr: prepare for multibyte tests
15554         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
15555         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
15556         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
15557         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
15558         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
15559         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
15560
15561 2010-07-18  Bruno Haible  <bruno@clisp.org>
15562
15563         unistr/u8-strchr: Optimize non-ASCII argument case.
15564         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
15565         because the first byte often matches anyway.
15566         Reported by Pádraig Brady <P@draigbrady.com>.
15567
15568 2010-07-15  Karl Berry  <karl@gnu.org>
15569
15570         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
15571
15572 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
15573
15574         getcwd: on Solaris, work better if ancestors are inaccessible
15575         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
15576         buffer and size, try again with a large buffer.  This works better
15577         on Solaris, since its getcwd succeeds even if the path to the root
15578         is inaccessible, and this is helpful in common cases such as .zfs
15579         hidden directories.  Problem reported by J Chapman Flack in
15580         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
15581         Use system getcwd if it's declared, not merely if it's partly
15582         working; use the partly-working test only to avoid needless effort
15583         if the system getcwd fails.
15584         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
15585         comment that was already obsolete and is now even more obsolete.
15586         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
15587         now might call strdup.
15588
15589 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
15590
15591         pthread: Add enough so that coreutils/src/sort.c compiles.
15592         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
15593         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
15594         gnulib. Include <sched.h> and <time.h>, as per POSIX.
15595         Include <sys/types.h>, in case it defines pthread_t.
15596         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
15597         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
15598         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
15599         (pthread_rwlockattr_t, pthread_spinlock_t):
15600         New typedefs, if HAVE_PTHREAD_T is not defined.
15601         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
15602         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
15603         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
15604         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
15605         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
15606         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
15607         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
15608         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
15609         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
15610         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
15611         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
15612         New macros.
15613         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
15614         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
15615         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
15616         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
15617         (pthread_spin_unlock): New dummy functions.
15618         (pthread_create): Return EAGAIN; don't set errno.
15619         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
15620         require AC_C_INLINE.
15621         * modules/pthread (Depends-on): Add sched, time.
15622         (pthread.h): Use AM_V_GEN.
15623
15624 2010-07-13  Bruno Haible  <bruno@clisp.org>
15625
15626         striconveh: Don't malloc memory if the result buffer is sufficient.
15627         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
15628         buffer if its size is sufficient.
15629         Reported by Ludovic Courtès <ludo@gnu.org>.
15630
15631 2010-07-13  Bruno Haible  <bruno@clisp.org>
15632
15633         strtod: Add safety check.
15634         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
15635
15636 2010-07-12  Bruno Haible  <bruno@clisp.org>
15637
15638         Unify tests that set gl_cv_func_ldexpl_no_libm.
15639         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
15640         gl_FUNC_LDEXPL.
15641         (gl_FUNC_LDEXPL): Invoke it.
15642         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15643
15644 2010-07-12  Bruno Haible  <bruno@clisp.org>
15645
15646         Unify tests that set gl_cv_func_ldexp_no_libm.
15647         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
15648         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
15649         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
15650         (configure.ac): Simply invoke gl_FUNC_LDEXP.
15651         * modules/strtod (Files): Add m4/ldexp.m4.
15652
15653 2010-07-12  Bruno Haible  <bruno@clisp.org>
15654
15655         Unify tests that set gl_cv_func_frexpl_no_libm.
15656         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
15657         gl_FUNC_FREXPL_NO_LIBM.
15658         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
15659         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15660
15661 2010-07-12  Bruno Haible  <bruno@clisp.org>
15662
15663         Unify tests that set gl_cv_func_frexp_no_libm.
15664         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
15665         gl_FUNC_FREXP_NO_LIBM.
15666         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
15667         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15668
15669 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15670
15671         memcoll: clarify sizes versus lengths, document better, and tweak perf
15672         * lib/memcoll.c (strcoll_loop, memcoll0):
15673         Improve quality of descriptive comments.  Name variables
15674         consistently as to whether they are lengths (which do not include
15675         terminating null) versus sizes (which do).
15676         * lib/xmemcoll.c (xmemcoll0): Likewise.
15677         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
15678         returned when s1size == 0; this is easier to compile and saves
15679         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
15680
15681 2010-07-12  Bruno Haible  <bruno@clisp.org>
15682
15683         Tests for module '_Exit'.
15684         * modules/_Exit-tests: New file.
15685         * tests/test-_Exit.sh: New file.
15686         * tests/test-_Exit.c: New file.
15687
15688         New module '_Exit'.
15689         * lib/stdlib.in.h (__attribute__): New macro.
15690         (_Exit): New declaration.
15691         * lib/_Exit.c: New file.
15692         * m4/_Exit.m4: New file.
15693         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
15694         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
15695         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
15696         * modules/_Exit: New file.
15697         * tests/test-stdlib-c++.cc (_Exit): Check signature.
15698         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
15699
15700 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15701
15702         strtod: make it more-accurate typically, and don't require libm
15703         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
15704         Include limits.h.  Don't include string.h.
15705         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
15706         (locale_isspace): New function, so that no casts are needed to
15707         check whether *s is a space.
15708         (ldexp): Provide an unused dummy if not available.
15709         (scale_radix_exp, parse_number, underlying_strtod): New functions.
15710         (strtod): Use them.  This implementation prefers to use the
15711         underlying strtod if available, falling back on our own code
15712         only to fix known bugs.  This is more likely to produce an
15713         accurate result.  Also, it avoids the use of libm functions.
15714         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
15715         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
15716         was absent, but it caused a test failure with coreutils.
15717         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
15718         with libm.
15719         * modules/strtod (Makefile.am, Link): libm is no longer needed.
15720         * modules/strtod-tests (Makefile.am): Likewise.
15721
15722 2010-07-11  Pádraig Brady  <P@draigBrady.com>
15723             Bruno Haible  <bruno@clisp.org>
15724
15725         unistr/u8-strchr: Optimize ASCII argument case.
15726         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
15727
15728 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15729
15730         (x)memcoll: minor tweaks
15731         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
15732         is after the type that it qualifies.
15733         (memcoll0): Likewise.
15734         * lib/memcoll.h (memcoll0): Likewise.
15735         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
15736         * lib/xmemcoll.h (xmemcoll0): Likewise.
15737         * lib/memcoll.c (memcoll0): Correct the comment.  This function
15738         differs from memcoll in that the NUL byte is part of the argument.
15739         Omit the abort-checks, as performance is a real issue here.  Plus,
15740         the checks were wrong anyway (an off-by-one error).  Omit local
15741         variable 'diff', as it's a bit clearer that way.
15742         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
15743         no longer needed.
15744
15745 2010-07-08  Chen Guo <chenguo4@yahoo.com>
15746
15747         (x)memcoll: speedup when input is known to be NUL delimited
15748         * lib/memcoll.c: Include stdlib.
15749         (memcoll0): New function.
15750         (strcoll_loop): New function, refactored for use in both memcoll
15751         and memcoll0.
15752         * lib/memcoll.h (memcoll0): Add prototype.
15753         * lib/xmemcoll.c (xmemcoll0): New function.
15754         (collate_error): New function, refactored for use in both xmemcoll
15755         and xmemcoll0.
15756         * lib/xmemcoll.h (xmemcoll0): Add prototype.
15757         * m4/memcoll.m4: add inline invocation.
15758
15759 2010-07-06  Pádraig Brady  <P@draigBrady.com>
15760
15761         * build-aux/bootstrap: Remove any local translations
15762         from the translation project synchronization directory,
15763         so that local only translations are not distributed.
15764
15765 2010-07-04  Bruno Haible  <bruno@clisp.org>
15766
15767         fsusage: Clarify which code applies to which platforms.
15768         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
15769         platform.
15770         * lib/fsusage.c (get_fs_usage): Likewise.
15771
15772 2010-07-04  Bruno Haible  <bruno@clisp.org>
15773
15774         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
15775         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
15776         Reported by Martin Lambers <marlam@marlam.de>.
15777
15778 2010-07-04  Jim Meyering  <meyering@redhat.com>
15779
15780         hash: once again explicitly disallow insertion of NULL
15781         * lib/hash.c (hash_insert0): Reinstate just-removed test:
15782         inserting a NULL pointer cannot work with these functions.
15783         Add a comment with details.
15784         This reverts part of the 2010-07-01 commit, 5bef1a35
15785         "hash: extend module to deal with non-pointer keys".
15786
15787 2010-07-01  Bruno Haible  <bruno@clisp.org>
15788
15789         stdbool: Update doc.
15790         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
15791         Info from Christian Weisgerber <naddy@mips.inka.de>.
15792
15793 2010-07-01  Jim Meyering  <meyering@redhat.com>
15794
15795         hash: extend module to deal with non-pointer keys
15796         * lib/hash.c (hash_insert0): New interface, much like hash_insert
15797         but that allows insertion of non-pointer entries.
15798         Do not disallow an ENTRY value of NULL.
15799         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
15800         * lib/hash.h (hash_insert0): Declare.
15801
15802 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15803
15804         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
15805         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
15806         not present (i.e. with autoconf 2.59 and when using gettextize, not
15807         gnulib), require AC_GNU_SOURCE instead.
15808
15809 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
15810
15811         idpriv-drop: Fix tests.
15812         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
15813         not to the test-idpriv-droptemp program.
15814
15815 2010-06-29  Bruno Haible  <bruno@clisp.org>
15816
15817         string: Fix syntax error with g++ 2.96.
15818         * lib/string.in.h (__pure__): Remove definition.
15819         (_GL_ATTRIBUTE_PURE): New macro.
15820         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
15821         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
15822         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15823
15824 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
15825
15826         unitypes: Fix bug introduced on 2010-05-18.
15827         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
15828
15829 2010-06-22  Eric Blake  <eblake@redhat.com>
15830
15831         memmem: slight optimization
15832         * lib/str-two-way.h (critical_factorization): Update comments.
15833         Reduce work during factorization phase.
15834         Reported by Carlos Bueno <carlos@bueno.org>.
15835
15836 2010-06-21  Bruno Haible  <bruno@clisp.org>
15837
15838         Fix HAVE_CALLOC_POSIX misnomer.
15839         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
15840         !HAVE_CALLOC_POSIX.
15841         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
15842         HAVE_CALLOC_POSIX.
15843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
15844         instead of HAVE_CALLOC_POSIX.
15845         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
15846         HAVE_CALLOC_POSIX.
15847
15848         Use modern idiom for calloc() replacement.
15849         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
15850         AC_FUNC_CALLOC.
15851         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
15852         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
15853         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15854         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
15855         (gl_REPLACE_CALLOC): New macro.
15856
15857 2010-06-21  Bruno Haible  <bruno@clisp.org>
15858
15859         Fix HAVE_REALLOC_POSIX misnomer.
15860         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
15861         !HAVE_REALLOC_POSIX.
15862         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
15863         HAVE_REALLOC_POSIX.
15864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
15865         instead of HAVE_REALLOC_POSIX.
15866         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
15867         HAVE_REALLOC_POSIX.
15868
15869         Use modern idiom for realloc() replacement.
15870         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
15871         AC_FUNC_REALLOC.
15872         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
15873         Autoconf's AC_FUNC_REALLOC.
15874         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15875         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
15876         (gl_REPLACE_REALLOC): New macro.
15877         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15878
15879 2010-06-21  Bruno Haible  <bruno@clisp.org>
15880
15881         Fix HAVE_MALLOC_POSIX misnomer.
15882         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
15883         !HAVE_MALLOC_POSIX.
15884         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
15885         HAVE_MALLOC_POSIX.
15886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
15887         instead of HAVE_MALLOC_POSIX.
15888         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
15889         HAVE_MALLOC_POSIX.
15890
15891         Use modern idiom for malloc() replacement.
15892         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
15893         AC_FUNC_MALLOC.
15894         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
15895         Autoconf's AC_FUNC_MALLOC.
15896         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15897         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
15898         (gl_REPLACE_MALLOC): New macro.
15899         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15900
15901 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
15902
15903         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
15904         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
15905         This macro takes 3 arguments, not 4.
15906
15907 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
15908
15909         ipv6: fix detection under mingw
15910         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
15911         in6_addr.
15912
15913 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
15914
15915         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
15916         that strtod() works when cross-compiling to a glibc version known
15917         to work.
15918
15919 2010-06-15  Bruno Haible  <bruno@clisp.org>
15920
15921         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
15922
15923 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
15924
15925         select: Correct timeout.
15926         * lib/select.c (rpl_select): Compute wait_timeout correctly.
15927
15928 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15929
15930         git-version-gen: init shell var to avoid env var influence
15931         * build-aux/git-version-gen (v): Init shell var to empty.
15932
15933 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
15934
15935         priv-set: Don't assume that priv.h exists merely because getppriv does.
15936         See Jan Andersen's bug report about AIX 5L in
15937         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
15938         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
15939         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
15940         * lib/priv-set.h: Likewise.
15941         * tests/test-priv-set.c: Likewise.
15942
15943 2010-06-13  Bruno Haible  <bruno@clisp.org>
15944
15945         relocatable: Make it easier to test whether to install wrappers.
15946         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
15947         RELOCATABLE_VIA_WRAPPER.
15948
15949 2010-06-13  Bruno Haible  <bruno@clisp.org>
15950
15951         gnulib-tool: Display specified modules and dependencies differently.
15952         * gnulib-tool (func_show_module_list): New function.
15953         (func_import, func_create_testdir): Invoke it.
15954         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15955
15956 2010-06-13  Bruno Haible  <bruno@clisp.org>
15957
15958         gnulib-tool: Align code of func_import and func_create_testdir.
15959         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
15960         specified_modules.
15961
15962 2010-06-12  Jim Meyering  <meyering@redhat.com>
15963
15964         test-inttostr: avoid spurious failure on Solaris 9
15965         * tests/test-inttostr.c (main): Skip the test when snprintf fails
15966         to accept "%ju".  Reported by Bruno Haible.
15967
15968 2010-06-11  Jim Meyering  <meyering@redhat.com>
15969
15970         test-sys_socket: mark variables as used more readably
15971         * tests/test-sys_socket.c (main): Mark otherwise unused variables
15972         as "used" explicitly via (void) statement casts.  This is more
15973         readable than using them in an artificial return expression.
15974         Suggestion from Bruno Haible.
15975
15976 2010-06-11  Bruno Haible  <bruno@clisp.org>
15977
15978         Avoid some more warnings from "gcc -Wwrite-strings".
15979         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
15980         to 'const char *'.
15981         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
15982         * tests/test-c-strcasestr.c (main): Likewise.
15983         * tests/test-mbscasestr1.c (main): Likewise.
15984         * tests/test-mbscasestr2.c (main): Likewise.
15985         * tests/test-memmem.c (main): Likewise.
15986         * tests/test-strstr.c (main): Likewise.
15987         * tests/test-strcasestr.c (main): Likewise.
15988
15989 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15990
15991         init.sh: change framework_failure_ to fail with status 99, not 1
15992         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
15993         automake's parallel-tests rule that this is an unexpected failure,
15994         even if the test is listed in XFAIL_TESTS.
15995
15996 2010-06-11  Jim Meyering  <meyering@redhat.com>
15997
15998         test-inttostr: avoid warnings about 4-6KB literal strings
15999         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16000         Include "macros.h", for its definition of ASSERT.
16001         (CK): s/assert/ASSERT/
16002         * modules/inttostr-tests (Files): Add macros.h.
16003
16004         init.sh: don't use $ME_ or skip_ before they are defined
16005         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16006         their first uses.  Also hoist their companions: warn_, fail_,
16007         framework_failure_, $stderr_fileno.  Prompted by a patch from
16008         Stefano Lattarini.
16009
16010         test-sys_socket: avoid set-but-not-used warnings from gcc
16011         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16012         avoid warning about set-but-not-used variables.
16013
16014         test-xvasprintf: avoid 'const' discard warnings
16015         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16016         "const" when assigning from literal strings.
16017         (test_xasprintf): Add "void" in function argument list to placate
16018         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16019
16020         tests: avoid compilation warnings in argmatch and exclude tests...
16021         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16022         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16023         Since it always exits, declare with the "noreturn" attribute.
16024         * tests/test-argmatch.c: Likewise.
16025
16026         tests: avoid 'const' discard warnings in mbsstr tests
16027         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16028         * tests/test-mbsstr2.c (main): Likewise.
16029
16030         test-verify: avoid warning from gcc's -Wmissing-declarations
16031         * tests/test-verify.c (function): Declare to be static.
16032
16033         test-inttostr.c: include <string.h> for use of strcmp
16034         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16035
16036         test-linkat: avoid failed assertion on "other" architectures
16037         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16038         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16039         sparc: https://bugs.launchpad.net/bugs/591968
16040
16041 2010-06-11  Jim Meyering  <meyering@redhat.com>
16042
16043         printf.m4: avoid autoconf's "Expanded Before Required" warning
16044         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16045         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16046         autoconf warning.
16047
16048 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16049
16050         Replacement header templates are now named with ".in", not "_".
16051         * doc/gnulib-intro.texi: Correct.
16052
16053 2010-06-10  Jim Meyering  <meyering@redhat.com>
16054
16055         inttostr-tests: depend on snprintf, not snprintf-posix
16056         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16057         snprintf-posix, to avoid this aclocal failure:
16058           missing file gnulib-tests/vasnprintf.c
16059           configure.ac:45: error: expected source file, required through \
16060           AC_LIBSOURCES, not found
16061
16062 2010-06-10  Jim Meyering  <meyering@redhat.com>
16063
16064         inttostr: add a new function, inttostr, and tests
16065         The namesake function was not available.  The existence of the
16066         template file, inttostr.c makes its addition nontrivial.
16067         * lib/anytostr.c: Rename from inttostr.c.
16068         (anytostr): Rename from inttostr.
16069         * lib/inttostr.c: New file.
16070         * modules/inttostr (Files): Add anytostr.c.
16071         (Makefile.am): Set lib_SOURCES instead of ...
16072         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16073         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16074         * lib/offtostr.c: Likewise.
16075         * lib/uinttostr.c: Likewise.
16076         * lib/umaxtostr.c: Likewise.
16077         * modules/inttostr-tests: New file.
16078         * tests/test-inttostr.c: New file.  Test these functions.
16079
16080 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16081             Bruno Haible  <bruno@clisp.org>
16082
16083         Add "Extending Gnulib" chapter to manual.
16084         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16085         chapter.
16086         (Extending Gnulib): New chapter.
16087         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16088         chapter.
16089
16090 2010-06-09  Bruno Haible  <bruno@clisp.org>
16091
16092         Avoid relocwrapper link errors due to gnulib replacement functions.
16093         * lib/areadlink.c: Use the system's malloc, realloc functions.
16094         (areadlink): Set errno to ENOMEM explicitly.
16095         * modules/areadlink (Depends-on): Remove malloc-posix.
16096         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16097
16098 2010-06-09  Bruno Haible  <bruno@clisp.org>
16099
16100         Avoid relocwrapper link errors due to gnulib replacement functions.
16101         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16102         * lib/malloca.c: Likewise.
16103         * lib/relocatable.c: Likewise.
16104         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16105         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16106         * lib/setenv.c: Use the system's malloc, realloc functions.
16107         * lib/strerror.c: Use the system's sprintf function.
16108         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16109
16110 2010-06-04  Bruno Haible  <bruno@clisp.org>
16111
16112         Prefer documented low-level autoconf macro names.
16113         * m4/lib-link.m4: Use m4_translit instead of translit.
16114         * m4/environ.m4: Likewise.
16115         * m4/mathfunc.m4: Likewise.
16116         * m4/onceonly.m4: Likewise.
16117         * m4/stdint.m4: Likewise.
16118         Suggested by Eric Blake.
16119
16120 2010-06-04  Martin Lambers  <marlam@marlam.de>
16121             Bruno Haible  <bruno@clisp.org>
16122
16123         havelib: Allow library names with '+' characters.
16124         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16125         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16126
16127 2010-06-09  Bruno Haible  <bruno@clisp.org>
16128
16129         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16130         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16131         realloc failed.
16132
16133 2010-06-08  Peter Simons  <simons@cryp.to>
16134
16135         maint.mk: make the news-check rule more configurable
16136         * top/maint.mk (news-check-lines-spec): New variable.
16137         (news-check): Use "sed -n 1,10p" in place of "head".
16138
16139 2010-06-07  Jim Meyering  <meyering@redhat.com>
16140
16141         do-release-commit-and-tag: fix typo in --help
16142         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16143
16144         regex: avoid new dead-code warning with gcc-4.6.0
16145         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16146         if-block containing a while-loop.  It's been unused for at least
16147         5 years.
16148
16149 2010-06-05  Bruno Haible  <bruno@clisp.org>
16150
16151         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16152         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16153
16154 2010-06-04  Bruno Haible  <bruno@clisp.org>
16155
16156         Update to GNU gettext 0.18.1.
16157         * modules/gettext (configure.ac): Require gettext infrastructure from
16158         version 0.18.1.
16159
16160 2010-06-03  Bruno Haible  <bruno@clisp.org>
16161
16162         Don't use AC_LIBOBJ with file names in subdirectories.
16163         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16164         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16165         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16166         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16167         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16168         gl_LIBUNISTRING_LIBSOURCE.
16169         (Makefile.am): Augment lib_SOURCES here, conditionally.
16170         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16171
16172 2010-06-03  Bruno Haible  <bruno@clisp.org>
16173
16174         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16175         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16176         expansion does not end with a newline.
16177         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16178         unnecessary newline.
16179
16180 2010-06-03  Bruno Haible  <bruno@clisp.org>
16181
16182         Reduce dependencies.
16183         * tests/test-quotearg.h: New file, extracted from
16184         tests/test-quotearg.c.
16185         * tests/test-quotearg-simple.c: New file, extracted from
16186         tests/test-quotearg.c.
16187         * tests/test-quotearg.c: Don't include <ctype.h>.
16188         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16189         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16190         use_quote_double_quotes, use_quotearg_colon): Moved to
16191         tests/test-quotearg.h.
16192         (results_g, flag_results, custom_quotes, custom_results): Moved
16193         to tests/test-quotearg-simple.c.
16194         (main): Moved the part that does not depend on gettext to
16195         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16196         performed.
16197         * modules/quotearg-simple: New file.
16198         * modules/quotearg-simple-tests: New file.
16199         * modules/quotearg (Depends-on): Add quotearg-simple.
16200         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16201         (Files): Add tests/test-quotearg.h.
16202         Reported by Paolo Bonzini.
16203
16204 2010-06-03  Bruno Haible  <bruno@clisp.org>
16205
16206         Reduce dependencies.
16207         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16208
16209 2010-06-03  Bruno Haible  <bruno@clisp.org>
16210
16211         time: Undefine more broken macros.
16212         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16213         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16214         Reported by Eric Blake.
16215
16216 2010-06-03  Bruno Haible  <bruno@clisp.org>
16217
16218         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16219         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16220         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16221         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16222         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16223         Reported by Ludovic Courtès <ludo@gnu.org>.
16224
16225 2010-06-02  Eric Blake  <eblake@redhat.com>
16226
16227         time: work with mingw + pthreads-win32 library
16228         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16229         if timespec is defined only in pthread.h.
16230         * modules/time (Makefile.am): Substitute it.
16231         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16232         <pthread.h>, when needed.
16233         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16234         from the library.
16235
16236 2010-05-31  Bruno Haible  <bruno@clisp.org>
16237
16238         Avoid expanding two macros in the wrong order.
16239         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16240         gl_LIBUNISTRING if it is defined.
16241         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16242         autoconf >= 2.64.
16243         Reported by Ludovic Courtès <ludo@gnu.org>.
16244
16245 2010-05-27  Jim Meyering  <meyering@redhat.com>
16246
16247         maint.mk: also prohibit "#undef" of always-defined symbols
16248         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16249         Allow more than one space before the symbol name.
16250         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16251         the regexp uses alternation.
16252
16253 2010-05-26  Eric Blake  <eblake@redhat.com>
16254
16255         maint.mk: avoid echo -e
16256         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16257         Convert all uses of echo -* to printf.
16258         Reported by Matthias Bolte.
16259
16260 2010-05-25  Bruno Haible  <bruno@clisp.org>
16261
16262         Update to GNU gettext 0.18, part 2.
16263         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16264         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16265
16266 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16267
16268         Add missing include in test-pwrite.c.
16269         * tests/test-pwrite.c: Include string.h, for strcmp.
16270
16271 2010-05-24  Bruno Haible  <bruno@clisp.org>
16272
16273         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16274
16275 2010-05-24  Bruno Haible  <bruno@clisp.org>
16276
16277         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16278         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16279         iconveh_error argument.
16280         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16281         U_STRCONV_TO_LOCALE.
16282         * lib/unistr/u16-strcoll.c: Likewise.
16283         * lib/unistr/u32-strcoll.c: Likewise.
16284         * modules/unistr/u8-strcoll (Depends-on): Add
16285         uniconv/u8-strconv-to-enc, localcharset. Remove
16286         uniconv/u8-strconv-to-locale.
16287         (configure.ac): Bump version number.
16288         * modules/unistr/u16-strcoll (Depends-on): Add
16289         uniconv/u16-strconv-to-enc, localcharset. Remove
16290         uniconv/u16-strconv-to-locale.
16291         (configure.ac): Bump version number.
16292         * modules/unistr/u32-strcoll (Depends-on): Add
16293         uniconv/u32-strconv-to-enc, localcharset. Remove
16294         uniconv/u32-strconv-to-locale.
16295         (configure.ac): Bump version number.
16296
16297 2010-05-24  Bruno Haible  <bruno@clisp.org>
16298
16299         Avoid a test failure on NetBSD 5.0.
16300         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16301         an iconv() bug.
16302
16303 2010-05-24  Bruno Haible  <bruno@clisp.org>
16304
16305         Adjust #include directive style.
16306         * modules/regex (Includes): Recommend to write <regex.h>.
16307
16308 2010-05-24  Bruno Haible  <bruno@clisp.org>
16309
16310         regex: Don't require alloca.
16311         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16312         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16313         only inside if (0).
16314
16315 2010-05-23  Jim Meyering  <meyering@redhat.com>
16316
16317         test-renameat.c: include <sys/stat.h>
16318         * tests/test-renameat.c: Include <sys/stat.h>; required for
16319         definition of S_IS* macros.
16320
16321 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16322
16323         Update maintainer documentation for 'relocatable-prog' module.
16324         * doc/relocatable-maint.texi: Update.
16325         Comments by Bruno Haible.
16326
16327 2010-05-23  Bruno Haible  <bruno@clisp.org>
16328
16329         git-merge-changelog: Enable --split-merged-entry by default.
16330         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16331         (usage): Don't mention this option any more.
16332         Reported by Ralf Wildenhues.
16333
16334 2010-05-23  Jim Meyering  <meyering@redhat.com>
16335
16336         test-pwrite: do not leave behind a test file named "out"
16337         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16338         The trivial-looking use of init.sh is really necessary.
16339         It ensures that the temporary file, "out", is created in
16340         a temporary directory, and removed upon termination.
16341         * tests/test-pwrite.sh: Re-add file.
16342         * modules/pwrite-tests: Reference it.
16343
16344 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16345
16346         Fix output redirection buglet in init.sh.
16347         * tests/init.sh: Fix redirection of stderr.
16348
16349 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16350
16351         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16352
16353 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16354
16355         * modules/valgrind-tests: New file.
16356         * m4/valgrind-tests.m4: New file.
16357         * doc/valgrind-tests.texi: New file.
16358         * doc/gnulib.texi (Running self-tests under valgrind): New
16359         section.
16360
16361 2010-05-19  Bruno Haible  <bruno@clisp.org>
16362
16363         Clean up dead code in recent commit.
16364         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16365         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16366         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16367         Suggested by Paolo Bonzini.
16368
16369 2010-05-19  Bruno Haible  <bruno@clisp.org>
16370
16371         Avoid valgrind error reports from libunistring.
16372         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16373         * modules/libunistring (Files): Add it.
16374         * modules/libunistring-optional (Files): Likewise.
16375
16376 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16377             Bruno Haible  <bruno@clisp.org>
16378
16379         New module 'libunistring-optional'.
16380         * modules/libunistring-optional: New file.
16381         * m4/libunistring-base.m4: New file.
16382         * m4/libunistring-optional.m4: New file.
16383         * lib/unicase.in.h: Renamed from lib/unicase.h.
16384         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16385         * lib/unictype.in.h: Renamed from lib/unictype.h.
16386         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16387         * lib/uniname.in.h: Renamed from lib/uniname.h.
16388         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16389         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16390         * lib/unistr.in.h: Renamed from lib/unistr.h.
16391         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16392         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16393         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16394         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16395         gl_LIBUNISTRING. If the library was found, determine the installed
16396         version and set LIBUNISTRING_VERSION.
16397         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16398         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16399         handle a configuration option --with-included-libunistring.
16400         * modules/libunistring (Files): Add m4/absolute-header.m4.
16401         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16402         Add m4/libunistring-base.m4.
16403         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16404         (Makefile.am): Build unicase.h from unicase.in.h.
16405         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16406         Add m4/libunistring-base.m4.
16407         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16408         (Makefile.am): Build uniconv.h from uniconv.in.h.
16409         * modules/unictype/base (Files): Use unictype.in.h instead of
16410         unictype.h. Add m4/libunistring-base.m4.
16411         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16412         (Makefile.am): Build unictype.h from unictype.in.h.
16413         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16414         Add m4/libunistring-base.m4.
16415         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16416         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16417         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16418         Add m4/libunistring-base.m4.
16419         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16420         (Makefile.am): Build uniname.h from uniname.in.h.
16421         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16422         Add m4/libunistring-base.m4.
16423         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16424         (Makefile.am): Build uninorm.h from uninorm.in.h.
16425         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16426         unistdio.h. Add m4/libunistring-base.m4.
16427         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16428         (Makefile.am): Build unistdio.h from unistdio.in.h.
16429         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16430         Add m4/libunistring-base.m4.
16431         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16432         (Makefile.am): Build unistr.h from unistr.in.h.
16433         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16434         Add m4/libunistring-base.m4.
16435         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16436         (Makefile.am): Build unitypes.h from unitypes.in.h.
16437         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16438         Add m4/libunistring-base.m4.
16439         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16440         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16441         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16442         uniwidth.h. Add m4/libunistring-base.m4.
16443         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16444         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16445         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16446         instead of augmenting lib_SOURCES.
16447         * modules/unicase/empty-suffix-context: Likewise.
16448         * modules/unicase/locale-language: Likewise.
16449         * modules/unicase/tolower: Likewise.
16450         * modules/unicase/totitle: Likewise.
16451         * modules/unicase/toupper: Likewise.
16452         * modules/unicase/u8-casecmp: Likewise.
16453         * modules/unicase/u8-casecoll: Likewise.
16454         * modules/unicase/u8-casefold: Likewise.
16455         * modules/unicase/u8-casexfrm: Likewise.
16456         * modules/unicase/u8-ct-casefold: Likewise.
16457         * modules/unicase/u8-ct-tolower: Likewise.
16458         * modules/unicase/u8-ct-totitle: Likewise.
16459         * modules/unicase/u8-ct-toupper: Likewise.
16460         * modules/unicase/u8-is-cased: Likewise.
16461         * modules/unicase/u8-is-casefolded: Likewise.
16462         * modules/unicase/u8-is-lowercase: Likewise.
16463         * modules/unicase/u8-is-titlecase: Likewise.
16464         * modules/unicase/u8-is-uppercase: Likewise.
16465         * modules/unicase/u8-prefix-context: Likewise.
16466         * modules/unicase/u8-suffix-context: Likewise.
16467         * modules/unicase/u8-tolower: Likewise.
16468         * modules/unicase/u8-totitle: Likewise.
16469         * modules/unicase/u8-toupper: Likewise.
16470         * modules/unicase/u16-casecmp: Likewise.
16471         * modules/unicase/u16-casecoll: Likewise.
16472         * modules/unicase/u16-casefold: Likewise.
16473         * modules/unicase/u16-casexfrm: Likewise.
16474         * modules/unicase/u16-ct-casefold: Likewise.
16475         * modules/unicase/u16-ct-tolower: Likewise.
16476         * modules/unicase/u16-ct-totitle: Likewise.
16477         * modules/unicase/u16-ct-toupper: Likewise.
16478         * modules/unicase/u16-is-cased: Likewise.
16479         * modules/unicase/u16-is-casefolded: Likewise.
16480         * modules/unicase/u16-is-lowercase: Likewise.
16481         * modules/unicase/u16-is-titlecase: Likewise.
16482         * modules/unicase/u16-is-uppercase: Likewise.
16483         * modules/unicase/u16-prefix-context: Likewise.
16484         * modules/unicase/u16-suffix-context: Likewise.
16485         * modules/unicase/u16-tolower: Likewise.
16486         * modules/unicase/u16-totitle: Likewise.
16487         * modules/unicase/u16-toupper: Likewise.
16488         * modules/unicase/u32-casecmp: Likewise.
16489         * modules/unicase/u32-casecoll: Likewise.
16490         * modules/unicase/u32-casefold: Likewise.
16491         * modules/unicase/u32-casexfrm: Likewise.
16492         * modules/unicase/u32-ct-casefold: Likewise.
16493         * modules/unicase/u32-ct-tolower: Likewise.
16494         * modules/unicase/u32-ct-totitle: Likewise.
16495         * modules/unicase/u32-ct-toupper: Likewise.
16496         * modules/unicase/u32-is-cased: Likewise.
16497         * modules/unicase/u32-is-casefolded: Likewise.
16498         * modules/unicase/u32-is-lowercase: Likewise.
16499         * modules/unicase/u32-is-titlecase: Likewise.
16500         * modules/unicase/u32-is-uppercase: Likewise.
16501         * modules/unicase/u32-prefix-context: Likewise.
16502         * modules/unicase/u32-suffix-context: Likewise.
16503         * modules/unicase/u32-tolower: Likewise.
16504         * modules/unicase/u32-totitle: Likewise.
16505         * modules/unicase/u32-toupper: Likewise.
16506         * modules/unicase/ulc-casecmp: Likewise.
16507         * modules/unicase/ulc-casecoll: Likewise.
16508         * modules/unicase/ulc-casexfrm: Likewise.
16509         * modules/uniconv/u8-conv-from-enc: Likewise.
16510         * modules/uniconv/u8-conv-to-enc: Likewise.
16511         * modules/uniconv/u8-strconv-from-enc: Likewise.
16512         * modules/uniconv/u8-strconv-from-locale: Likewise.
16513         * modules/uniconv/u8-strconv-to-enc: Likewise.
16514         * modules/uniconv/u8-strconv-to-locale: Likewise.
16515         * modules/uniconv/u16-conv-from-enc: Likewise.
16516         * modules/uniconv/u16-conv-to-enc: Likewise.
16517         * modules/uniconv/u16-strconv-from-enc: Likewise.
16518         * modules/uniconv/u16-strconv-from-locale: Likewise.
16519         * modules/uniconv/u16-strconv-to-enc: Likewise.
16520         * modules/uniconv/u16-strconv-to-locale: Likewise.
16521         * modules/uniconv/u32-conv-from-enc: Likewise.
16522         * modules/uniconv/u32-conv-to-enc: Likewise.
16523         * modules/uniconv/u32-strconv-from-enc: Likewise.
16524         * modules/uniconv/u32-strconv-from-locale: Likewise.
16525         * modules/uniconv/u32-strconv-to-enc: Likewise.
16526         * modules/uniconv/u32-strconv-to-locale: Likewise.
16527         * modules/unictype/bidicategory-byname: Likewise.
16528         * modules/unictype/bidicategory-name: Likewise.
16529         * modules/unictype/bidicategory-of: Likewise.
16530         * modules/unictype/bidicategory-test: Likewise.
16531         * modules/unictype/block-list: Likewise.
16532         * modules/unictype/block-test: Likewise.
16533         * modules/unictype/category-C: Likewise.
16534         * modules/unictype/category-Cc: Likewise.
16535         * modules/unictype/category-Cf: Likewise.
16536         * modules/unictype/category-Cn: Likewise.
16537         * modules/unictype/category-Co: Likewise.
16538         * modules/unictype/category-Cs: Likewise.
16539         * modules/unictype/category-L: Likewise.
16540         * modules/unictype/category-Ll: Likewise.
16541         * modules/unictype/category-Lm: Likewise.
16542         * modules/unictype/category-Lo: Likewise.
16543         * modules/unictype/category-Lt: Likewise.
16544         * modules/unictype/category-Lu: Likewise.
16545         * modules/unictype/category-M: Likewise.
16546         * modules/unictype/category-Mc: Likewise.
16547         * modules/unictype/category-Me: Likewise.
16548         * modules/unictype/category-Mn: Likewise.
16549         * modules/unictype/category-N: Likewise.
16550         * modules/unictype/category-Nd: Likewise.
16551         * modules/unictype/category-Nl: Likewise.
16552         * modules/unictype/category-No: Likewise.
16553         * modules/unictype/category-P: Likewise.
16554         * modules/unictype/category-Pc: Likewise.
16555         * modules/unictype/category-Pd: Likewise.
16556         * modules/unictype/category-Pe: Likewise.
16557         * modules/unictype/category-Pf: Likewise.
16558         * modules/unictype/category-Pi: Likewise.
16559         * modules/unictype/category-Po: Likewise.
16560         * modules/unictype/category-Ps: Likewise.
16561         * modules/unictype/category-S: Likewise.
16562         * modules/unictype/category-Sc: Likewise.
16563         * modules/unictype/category-Sk: Likewise.
16564         * modules/unictype/category-Sm: Likewise.
16565         * modules/unictype/category-So: Likewise.
16566         * modules/unictype/category-Z: Likewise.
16567         * modules/unictype/category-Zl: Likewise.
16568         * modules/unictype/category-Zp: Likewise.
16569         * modules/unictype/category-Zs: Likewise.
16570         * modules/unictype/category-and: Likewise.
16571         * modules/unictype/category-and-not: Likewise.
16572         * modules/unictype/category-byname: Likewise.
16573         * modules/unictype/category-name: Likewise.
16574         * modules/unictype/category-none: Likewise.
16575         * modules/unictype/category-of: Likewise.
16576         * modules/unictype/category-or: Likewise.
16577         * modules/unictype/category-test: Likewise.
16578         * modules/unictype/combining-class: Likewise.
16579         * modules/unictype/ctype-alnum: Likewise.
16580         * modules/unictype/ctype-alpha: Likewise.
16581         * modules/unictype/ctype-blank: Likewise.
16582         * modules/unictype/ctype-cntrl: Likewise.
16583         * modules/unictype/ctype-digit: Likewise.
16584         * modules/unictype/ctype-graph: Likewise.
16585         * modules/unictype/ctype-lower: Likewise.
16586         * modules/unictype/ctype-print: Likewise.
16587         * modules/unictype/ctype-punct: Likewise.
16588         * modules/unictype/ctype-space: Likewise.
16589         * modules/unictype/ctype-upper: Likewise.
16590         * modules/unictype/ctype-xdigit: Likewise.
16591         * modules/unictype/decimal-digit: Likewise.
16592         * modules/unictype/digit: Likewise.
16593         * modules/unictype/mirror: Likewise.
16594         * modules/unictype/numeric: Likewise.
16595         * modules/unictype/property-alphabetic: Likewise.
16596         * modules/unictype/property-ascii-hex-digit: Likewise.
16597         * modules/unictype/property-bidi-arabic-digit: Likewise.
16598         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
16599         * modules/unictype/property-bidi-block-separator: Likewise.
16600         * modules/unictype/property-bidi-boundary-neutral: Likewise.
16601         * modules/unictype/property-bidi-common-separator: Likewise.
16602         * modules/unictype/property-bidi-control: Likewise.
16603         * modules/unictype/property-bidi-embedding-or-override: Likewise.
16604         * modules/unictype/property-bidi-eur-num-separator: Likewise.
16605         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
16606         * modules/unictype/property-bidi-european-digit: Likewise.
16607         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
16608         * modules/unictype/property-bidi-left-to-right: Likewise.
16609         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
16610         * modules/unictype/property-bidi-other-neutral: Likewise.
16611         * modules/unictype/property-bidi-pdf: Likewise.
16612         * modules/unictype/property-bidi-segment-separator: Likewise.
16613         * modules/unictype/property-bidi-whitespace: Likewise.
16614         * modules/unictype/property-byname: Likewise.
16615         * modules/unictype/property-combining: Likewise.
16616         * modules/unictype/property-composite: Likewise.
16617         * modules/unictype/property-currency-symbol: Likewise.
16618         * modules/unictype/property-dash: Likewise.
16619         * modules/unictype/property-decimal-digit: Likewise.
16620         * modules/unictype/property-default-ignorable-code-point: Likewise.
16621         * modules/unictype/property-deprecated: Likewise.
16622         * modules/unictype/property-diacritic: Likewise.
16623         * modules/unictype/property-extender: Likewise.
16624         * modules/unictype/property-format-control: Likewise.
16625         * modules/unictype/property-grapheme-base: Likewise.
16626         * modules/unictype/property-grapheme-extend: Likewise.
16627         * modules/unictype/property-grapheme-link: Likewise.
16628         * modules/unictype/property-hex-digit: Likewise.
16629         * modules/unictype/property-hyphen: Likewise.
16630         * modules/unictype/property-id-continue: Likewise.
16631         * modules/unictype/property-id-start: Likewise.
16632         * modules/unictype/property-ideographic: Likewise.
16633         * modules/unictype/property-ids-binary-operator: Likewise.
16634         * modules/unictype/property-ids-trinary-operator: Likewise.
16635         * modules/unictype/property-ignorable-control: Likewise.
16636         * modules/unictype/property-iso-control: Likewise.
16637         * modules/unictype/property-join-control: Likewise.
16638         * modules/unictype/property-left-of-pair: Likewise.
16639         * modules/unictype/property-line-separator: Likewise.
16640         * modules/unictype/property-logical-order-exception: Likewise.
16641         * modules/unictype/property-lowercase: Likewise.
16642         * modules/unictype/property-math: Likewise.
16643         * modules/unictype/property-non-break: Likewise.
16644         * modules/unictype/property-not-a-character: Likewise.
16645         * modules/unictype/property-numeric: Likewise.
16646         * modules/unictype/property-other-alphabetic: Likewise.
16647         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
16648         * modules/unictype/property-other-grapheme-extend: Likewise.
16649         * modules/unictype/property-other-id-continue: Likewise.
16650         * modules/unictype/property-other-id-start: Likewise.
16651         * modules/unictype/property-other-lowercase: Likewise.
16652         * modules/unictype/property-other-math: Likewise.
16653         * modules/unictype/property-other-uppercase: Likewise.
16654         * modules/unictype/property-paired-punctuation: Likewise.
16655         * modules/unictype/property-paragraph-separator: Likewise.
16656         * modules/unictype/property-pattern-syntax: Likewise.
16657         * modules/unictype/property-pattern-white-space: Likewise.
16658         * modules/unictype/property-private-use: Likewise.
16659         * modules/unictype/property-punctuation: Likewise.
16660         * modules/unictype/property-quotation-mark: Likewise.
16661         * modules/unictype/property-radical: Likewise.
16662         * modules/unictype/property-sentence-terminal: Likewise.
16663         * modules/unictype/property-soft-dotted: Likewise.
16664         * modules/unictype/property-space: Likewise.
16665         * modules/unictype/property-terminal-punctuation: Likewise.
16666         * modules/unictype/property-test: Likewise.
16667         * modules/unictype/property-titlecase: Likewise.
16668         * modules/unictype/property-unassigned-code-value: Likewise.
16669         * modules/unictype/property-unified-ideograph: Likewise.
16670         * modules/unictype/property-uppercase: Likewise.
16671         * modules/unictype/property-variation-selector: Likewise.
16672         * modules/unictype/property-white-space: Likewise.
16673         * modules/unictype/property-xid-continue: Likewise.
16674         * modules/unictype/property-xid-start: Likewise.
16675         * modules/unictype/property-zero-width: Likewise.
16676         * modules/unictype/scripts: Likewise.
16677         * modules/unictype/syntax-c-ident: Likewise.
16678         * modules/unictype/syntax-c-whitespace: Likewise.
16679         * modules/unictype/syntax-java-ident: Likewise.
16680         * modules/unictype/syntax-java-whitespace: Likewise.
16681         * modules/unilbrk/u8-possible-linebreaks: Likewise.
16682         * modules/unilbrk/u8-width-linebreaks: Likewise.
16683         * modules/unilbrk/u16-possible-linebreaks: Likewise.
16684         * modules/unilbrk/u16-width-linebreaks: Likewise.
16685         * modules/unilbrk/u32-possible-linebreaks: Likewise.
16686         * modules/unilbrk/u32-width-linebreaks: Likewise.
16687         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
16688         * modules/unilbrk/ulc-width-linebreaks: Likewise.
16689         * modules/uniname/uniname: Likewise.
16690         * modules/uninorm/canonical-decomposition: Likewise.
16691         * modules/uninorm/composition: Likewise.
16692         * modules/uninorm/decomposing-form: Likewise.
16693         * modules/uninorm/decomposition: Likewise.
16694         * modules/uninorm/filter: Likewise.
16695         * modules/uninorm/nfc: Likewise.
16696         * modules/uninorm/nfd: Likewise.
16697         * modules/uninorm/nfkc: Likewise.
16698         * modules/uninorm/nfkd: Likewise.
16699         * modules/uninorm/u8-normalize: Likewise.
16700         * modules/uninorm/u8-normcmp: Likewise.
16701         * modules/uninorm/u8-normcoll: Likewise.
16702         * modules/uninorm/u8-normxfrm: Likewise.
16703         * modules/uninorm/u16-normalize: Likewise.
16704         * modules/uninorm/u16-normcmp: Likewise.
16705         * modules/uninorm/u16-normcoll: Likewise.
16706         * modules/uninorm/u16-normxfrm: Likewise.
16707         * modules/uninorm/u32-normalize: Likewise.
16708         * modules/uninorm/u32-normcmp: Likewise.
16709         * modules/uninorm/u32-normcoll: Likewise.
16710         * modules/uninorm/u32-normxfrm: Likewise.
16711         * modules/unistdio/u8-asnprintf: Likewise.
16712         * modules/unistdio/u8-asprintf: Likewise.
16713         * modules/unistdio/u8-snprintf: Likewise.
16714         * modules/unistdio/u8-sprintf: Likewise.
16715         * modules/unistdio/u8-u8-asnprintf: Likewise.
16716         * modules/unistdio/u8-u8-asprintf: Likewise.
16717         * modules/unistdio/u8-u8-snprintf: Likewise.
16718         * modules/unistdio/u8-u8-sprintf: Likewise.
16719         * modules/unistdio/u8-u8-vasnprintf: Likewise.
16720         * modules/unistdio/u8-u8-vasprintf: Likewise.
16721         * modules/unistdio/u8-u8-vsnprintf: Likewise.
16722         * modules/unistdio/u8-u8-vsprintf: Likewise.
16723         * modules/unistdio/u8-vasnprintf: Likewise.
16724         * modules/unistdio/u8-vasprintf: Likewise.
16725         * modules/unistdio/u8-vsnprintf: Likewise.
16726         * modules/unistdio/u8-vsprintf: Likewise.
16727         * modules/unistdio/u16-asnprintf: Likewise.
16728         * modules/unistdio/u16-asprintf: Likewise.
16729         * modules/unistdio/u16-snprintf: Likewise.
16730         * modules/unistdio/u16-sprintf: Likewise.
16731         * modules/unistdio/u16-u16-asnprintf: Likewise.
16732         * modules/unistdio/u16-u16-asprintf: Likewise.
16733         * modules/unistdio/u16-u16-snprintf: Likewise.
16734         * modules/unistdio/u16-u16-sprintf: Likewise.
16735         * modules/unistdio/u16-u16-vasnprintf: Likewise.
16736         * modules/unistdio/u16-u16-vasprintf: Likewise.
16737         * modules/unistdio/u16-u16-vsnprintf: Likewise.
16738         * modules/unistdio/u16-u16-vsprintf: Likewise.
16739         * modules/unistdio/u16-vasnprintf: Likewise.
16740         * modules/unistdio/u16-vasprintf: Likewise.
16741         * modules/unistdio/u16-vsnprintf: Likewise.
16742         * modules/unistdio/u16-vsprintf: Likewise.
16743         * modules/unistdio/u32-asnprintf: Likewise.
16744         * modules/unistdio/u32-asprintf: Likewise.
16745         * modules/unistdio/u32-snprintf: Likewise.
16746         * modules/unistdio/u32-sprintf: Likewise.
16747         * modules/unistdio/u32-u32-asnprintf: Likewise.
16748         * modules/unistdio/u32-u32-asprintf: Likewise.
16749         * modules/unistdio/u32-u32-snprintf: Likewise.
16750         * modules/unistdio/u32-u32-sprintf: Likewise.
16751         * modules/unistdio/u32-u32-vasnprintf: Likewise.
16752         * modules/unistdio/u32-u32-vasprintf: Likewise.
16753         * modules/unistdio/u32-u32-vsnprintf: Likewise.
16754         * modules/unistdio/u32-u32-vsprintf: Likewise.
16755         * modules/unistdio/u32-vasnprintf: Likewise.
16756         * modules/unistdio/u32-vasprintf: Likewise.
16757         * modules/unistdio/u32-vsnprintf: Likewise.
16758         * modules/unistdio/u32-vsprintf: Likewise.
16759         * modules/unistdio/ulc-asnprintf: Likewise.
16760         * modules/unistdio/ulc-asprintf: Likewise.
16761         * modules/unistdio/ulc-fprintf: Likewise.
16762         * modules/unistdio/ulc-snprintf: Likewise.
16763         * modules/unistdio/ulc-sprintf: Likewise.
16764         * modules/unistdio/ulc-vasnprintf: Likewise.
16765         * modules/unistdio/ulc-vasprintf: Likewise.
16766         * modules/unistdio/ulc-vfprintf: Likewise.
16767         * modules/unistdio/ulc-vsnprintf: Likewise.
16768         * modules/unistdio/ulc-vsprintf: Likewise.
16769         * modules/unistr/u8-check: Likewise.
16770         * modules/unistr/u8-chr: Likewise.
16771         * modules/unistr/u8-cmp: Likewise.
16772         * modules/unistr/u8-cmp2: Likewise.
16773         * modules/unistr/u8-cpy: Likewise.
16774         * modules/unistr/u8-cpy-alloc: Likewise.
16775         * modules/unistr/u8-endswith: Likewise.
16776         * modules/unistr/u8-mblen: Likewise.
16777         * modules/unistr/u8-mbsnlen: Likewise.
16778         * modules/unistr/u8-mbtouc: Likewise.
16779         * modules/unistr/u8-mbtouc-unsafe: Likewise.
16780         * modules/unistr/u8-mbtoucr: Likewise.
16781         * modules/unistr/u8-move: Likewise.
16782         * modules/unistr/u8-next: Likewise.
16783         * modules/unistr/u8-prev: Likewise.
16784         * modules/unistr/u8-set: Likewise.
16785         * modules/unistr/u8-startswith: Likewise.
16786         * modules/unistr/u8-stpcpy: Likewise.
16787         * modules/unistr/u8-stpncpy: Likewise.
16788         * modules/unistr/u8-strcat: Likewise.
16789         * modules/unistr/u8-strchr: Likewise.
16790         * modules/unistr/u8-strcmp: Likewise.
16791         * modules/unistr/u8-strcoll: Likewise.
16792         * modules/unistr/u8-strcpy: Likewise.
16793         * modules/unistr/u8-strcspn: Likewise.
16794         * modules/unistr/u8-strdup: Likewise.
16795         * modules/unistr/u8-strlen: Likewise.
16796         * modules/unistr/u8-strmblen: Likewise.
16797         * modules/unistr/u8-strmbtouc: Likewise.
16798         * modules/unistr/u8-strncat: Likewise.
16799         * modules/unistr/u8-strncmp: Likewise.
16800         * modules/unistr/u8-strncpy: Likewise.
16801         * modules/unistr/u8-strnlen: Likewise.
16802         * modules/unistr/u8-strpbrk: Likewise.
16803         * modules/unistr/u8-strrchr: Likewise.
16804         * modules/unistr/u8-strspn: Likewise.
16805         * modules/unistr/u8-strstr: Likewise.
16806         * modules/unistr/u8-strtok: Likewise.
16807         * modules/unistr/u8-to-u16: Likewise.
16808         * modules/unistr/u8-to-u32: Likewise.
16809         * modules/unistr/u8-uctomb: Likewise.
16810         * modules/unistr/u16-check: Likewise.
16811         * modules/unistr/u16-chr: Likewise.
16812         * modules/unistr/u16-cmp: Likewise.
16813         * modules/unistr/u16-cmp2: Likewise.
16814         * modules/unistr/u16-cpy: Likewise.
16815         * modules/unistr/u16-cpy-alloc: Likewise.
16816         * modules/unistr/u16-endswith: Likewise.
16817         * modules/unistr/u16-mblen: Likewise.
16818         * modules/unistr/u16-mbsnlen: Likewise.
16819         * modules/unistr/u16-mbtouc: Likewise.
16820         * modules/unistr/u16-mbtouc-unsafe: Likewise.
16821         * modules/unistr/u16-mbtoucr: Likewise.
16822         * modules/unistr/u16-move: Likewise.
16823         * modules/unistr/u16-next: Likewise.
16824         * modules/unistr/u16-prev: Likewise.
16825         * modules/unistr/u16-set: Likewise.
16826         * modules/unistr/u16-startswith: Likewise.
16827         * modules/unistr/u16-stpcpy: Likewise.
16828         * modules/unistr/u16-stpncpy: Likewise.
16829         * modules/unistr/u16-strcat: Likewise.
16830         * modules/unistr/u16-strchr: Likewise.
16831         * modules/unistr/u16-strcmp: Likewise.
16832         * modules/unistr/u16-strcoll: Likewise.
16833         * modules/unistr/u16-strcpy: Likewise.
16834         * modules/unistr/u16-strcspn: Likewise.
16835         * modules/unistr/u16-strdup: Likewise.
16836         * modules/unistr/u16-strlen: Likewise.
16837         * modules/unistr/u16-strmblen: Likewise.
16838         * modules/unistr/u16-strmbtouc: Likewise.
16839         * modules/unistr/u16-strncat: Likewise.
16840         * modules/unistr/u16-strncmp: Likewise.
16841         * modules/unistr/u16-strncpy: Likewise.
16842         * modules/unistr/u16-strnlen: Likewise.
16843         * modules/unistr/u16-strpbrk: Likewise.
16844         * modules/unistr/u16-strrchr: Likewise.
16845         * modules/unistr/u16-strspn: Likewise.
16846         * modules/unistr/u16-strstr: Likewise.
16847         * modules/unistr/u16-strtok: Likewise.
16848         * modules/unistr/u16-to-u32: Likewise.
16849         * modules/unistr/u16-to-u8: Likewise.
16850         * modules/unistr/u16-uctomb: Likewise.
16851         * modules/unistr/u32-check: Likewise.
16852         * modules/unistr/u32-chr: Likewise.
16853         * modules/unistr/u32-cmp: Likewise.
16854         * modules/unistr/u32-cmp2: Likewise.
16855         * modules/unistr/u32-cpy: Likewise.
16856         * modules/unistr/u32-cpy-alloc: Likewise.
16857         * modules/unistr/u32-endswith: Likewise.
16858         * modules/unistr/u32-mblen: Likewise.
16859         * modules/unistr/u32-mbsnlen: Likewise.
16860         * modules/unistr/u32-mbtouc: Likewise.
16861         * modules/unistr/u32-mbtouc-unsafe: Likewise.
16862         * modules/unistr/u32-mbtoucr: Likewise.
16863         * modules/unistr/u32-move: Likewise.
16864         * modules/unistr/u32-next: Likewise.
16865         * modules/unistr/u32-prev: Likewise.
16866         * modules/unistr/u32-set: Likewise.
16867         * modules/unistr/u32-startswith: Likewise.
16868         * modules/unistr/u32-stpcpy: Likewise.
16869         * modules/unistr/u32-stpncpy: Likewise.
16870         * modules/unistr/u32-strcat: Likewise.
16871         * modules/unistr/u32-strchr: Likewise.
16872         * modules/unistr/u32-strcmp: Likewise.
16873         * modules/unistr/u32-strcoll: Likewise.
16874         * modules/unistr/u32-strcpy: Likewise.
16875         * modules/unistr/u32-strcspn: Likewise.
16876         * modules/unistr/u32-strdup: Likewise.
16877         * modules/unistr/u32-strlen: Likewise.
16878         * modules/unistr/u32-strmblen: Likewise.
16879         * modules/unistr/u32-strmbtouc: Likewise.
16880         * modules/unistr/u32-strncat: Likewise.
16881         * modules/unistr/u32-strncmp: Likewise.
16882         * modules/unistr/u32-strncpy: Likewise.
16883         * modules/unistr/u32-strnlen: Likewise.
16884         * modules/unistr/u32-strpbrk: Likewise.
16885         * modules/unistr/u32-strrchr: Likewise.
16886         * modules/unistr/u32-strspn: Likewise.
16887         * modules/unistr/u32-strstr: Likewise.
16888         * modules/unistr/u32-strtok: Likewise.
16889         * modules/unistr/u32-to-u16: Likewise.
16890         * modules/unistr/u32-to-u8: Likewise.
16891         * modules/unistr/u32-uctomb: Likewise.
16892         * modules/uniwbrk/u8-wordbreaks: Likewise.
16893         * modules/uniwbrk/u16-wordbreaks: Likewise.
16894         * modules/uniwbrk/u32-wordbreaks: Likewise.
16895         * modules/uniwbrk/ulc-wordbreaks: Likewise.
16896         * modules/uniwbrk/wordbreak-property: Likewise.
16897         * modules/uniwidth/u8-strwidth: Likewise.
16898         * modules/uniwidth/u8-width: Likewise.
16899         * modules/uniwidth/u16-strwidth: Likewise.
16900         * modules/uniwidth/u16-width: Likewise.
16901         * modules/uniwidth/u32-strwidth: Likewise.
16902         * modules/uniwidth/u32-width: Likewise.
16903         * modules/uniwidth/width: Likewise.
16904         * modules/unicase/cased-tests (Makefile.am): Link all test programs
16905         with $(LIBUNISTRING).
16906         * modules/unicase/ignorable-tests: Likewise.
16907         * modules/unicase/locale-language-tests: Likewise.
16908         * modules/unicase/tolower-tests: Likewise.
16909         * modules/unicase/totitle-tests: Likewise.
16910         * modules/unicase/toupper-tests: Likewise.
16911         * modules/unicase/u8-casecmp-tests: Likewise.
16912         * modules/unicase/u8-casecoll-tests: Likewise.
16913         * modules/unicase/u8-casefold-tests: Likewise.
16914         * modules/unicase/u8-is-cased-tests: Likewise.
16915         * modules/unicase/u8-is-casefolded-tests: Likewise.
16916         * modules/unicase/u8-is-lowercase-tests: Likewise.
16917         * modules/unicase/u8-is-titlecase-tests: Likewise.
16918         * modules/unicase/u8-is-uppercase-tests: Likewise.
16919         * modules/unicase/u8-tolower-tests: Likewise.
16920         * modules/unicase/u8-totitle-tests: Likewise.
16921         * modules/unicase/u8-toupper-tests: Likewise.
16922         * modules/unicase/u16-casecmp-tests: Likewise.
16923         * modules/unicase/u16-casecoll-tests: Likewise.
16924         * modules/unicase/u16-casefold-tests: Likewise.
16925         * modules/unicase/u16-is-cased-tests: Likewise.
16926         * modules/unicase/u16-is-casefolded-tests: Likewise.
16927         * modules/unicase/u16-is-lowercase-tests: Likewise.
16928         * modules/unicase/u16-is-titlecase-tests: Likewise.
16929         * modules/unicase/u16-is-uppercase-tests: Likewise.
16930         * modules/unicase/u16-tolower-tests: Likewise.
16931         * modules/unicase/u16-totitle-tests: Likewise.
16932         * modules/unicase/u16-toupper-tests: Likewise.
16933         * modules/unicase/u32-casecmp-tests: Likewise.
16934         * modules/unicase/u32-casecoll-tests: Likewise.
16935         * modules/unicase/u32-casefold-tests: Likewise.
16936         * modules/unicase/u32-is-cased-tests: Likewise.
16937         * modules/unicase/u32-is-casefolded-tests: Likewise.
16938         * modules/unicase/u32-is-lowercase-tests: Likewise.
16939         * modules/unicase/u32-is-titlecase-tests: Likewise.
16940         * modules/unicase/u32-is-uppercase-tests: Likewise.
16941         * modules/unicase/u32-tolower-tests: Likewise.
16942         * modules/unicase/u32-totitle-tests: Likewise.
16943         * modules/unicase/u32-toupper-tests: Likewise.
16944         * modules/unicase/ulc-casecmp-tests: Likewise.
16945         * modules/unicase/ulc-casecoll-tests: Likewise.
16946         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
16947         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
16948         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
16949         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
16950         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
16951         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
16952         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
16953         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
16954         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
16955         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
16956         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
16957         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
16958         * modules/unictype/bidicategory-byname-tests: Likewise.
16959         * modules/unictype/bidicategory-name-tests: Likewise.
16960         * modules/unictype/bidicategory-of-tests: Likewise.
16961         * modules/unictype/bidicategory-test-tests: Likewise.
16962         * modules/unictype/block-list-tests: Likewise.
16963         * modules/unictype/block-of-tests: Likewise.
16964         * modules/unictype/block-test-tests: Likewise.
16965         * modules/unictype/category-C-tests: Likewise.
16966         * modules/unictype/category-Cc-tests: Likewise.
16967         * modules/unictype/category-Cf-tests: Likewise.
16968         * modules/unictype/category-Cn-tests: Likewise.
16969         * modules/unictype/category-Co-tests: Likewise.
16970         * modules/unictype/category-Cs-tests: Likewise.
16971         * modules/unictype/category-L-tests: Likewise.
16972         * modules/unictype/category-Ll-tests: Likewise.
16973         * modules/unictype/category-Lm-tests: Likewise.
16974         * modules/unictype/category-Lo-tests: Likewise.
16975         * modules/unictype/category-Lt-tests: Likewise.
16976         * modules/unictype/category-Lu-tests: Likewise.
16977         * modules/unictype/category-M-tests: Likewise.
16978         * modules/unictype/category-Mc-tests: Likewise.
16979         * modules/unictype/category-Me-tests: Likewise.
16980         * modules/unictype/category-Mn-tests: Likewise.
16981         * modules/unictype/category-N-tests: Likewise.
16982         * modules/unictype/category-Nd-tests: Likewise.
16983         * modules/unictype/category-Nl-tests: Likewise.
16984         * modules/unictype/category-No-tests: Likewise.
16985         * modules/unictype/category-P-tests: Likewise.
16986         * modules/unictype/category-Pc-tests: Likewise.
16987         * modules/unictype/category-Pd-tests: Likewise.
16988         * modules/unictype/category-Pe-tests: Likewise.
16989         * modules/unictype/category-Pf-tests: Likewise.
16990         * modules/unictype/category-Pi-tests: Likewise.
16991         * modules/unictype/category-Po-tests: Likewise.
16992         * modules/unictype/category-Ps-tests: Likewise.
16993         * modules/unictype/category-S-tests: Likewise.
16994         * modules/unictype/category-Sc-tests: Likewise.
16995         * modules/unictype/category-Sk-tests: Likewise.
16996         * modules/unictype/category-Sm-tests: Likewise.
16997         * modules/unictype/category-So-tests: Likewise.
16998         * modules/unictype/category-Z-tests: Likewise.
16999         * modules/unictype/category-Zl-tests: Likewise.
17000         * modules/unictype/category-Zp-tests: Likewise.
17001         * modules/unictype/category-Zs-tests: Likewise.
17002         * modules/unictype/category-and-not-tests: Likewise.
17003         * modules/unictype/category-and-tests: Likewise.
17004         * modules/unictype/category-byname-tests: Likewise.
17005         * modules/unictype/category-name-tests: Likewise.
17006         * modules/unictype/category-none-tests: Likewise.
17007         * modules/unictype/category-of-tests: Likewise.
17008         * modules/unictype/category-or-tests: Likewise.
17009         * modules/unictype/category-test-withtable-tests: Likewise.
17010         * modules/unictype/combining-class-tests: Likewise.
17011         * modules/unictype/ctype-alnum-tests: Likewise.
17012         * modules/unictype/ctype-alpha-tests: Likewise.
17013         * modules/unictype/ctype-blank-tests: Likewise.
17014         * modules/unictype/ctype-cntrl-tests: Likewise.
17015         * modules/unictype/ctype-digit-tests: Likewise.
17016         * modules/unictype/ctype-graph-tests: Likewise.
17017         * modules/unictype/ctype-lower-tests: Likewise.
17018         * modules/unictype/ctype-print-tests: Likewise.
17019         * modules/unictype/ctype-punct-tests: Likewise.
17020         * modules/unictype/ctype-space-tests: Likewise.
17021         * modules/unictype/ctype-upper-tests: Likewise.
17022         * modules/unictype/ctype-xdigit-tests: Likewise.
17023         * modules/unictype/decimal-digit-tests: Likewise.
17024         * modules/unictype/digit-tests: Likewise.
17025         * modules/unictype/mirror-tests: Likewise.
17026         * modules/unictype/numeric-tests: Likewise.
17027         * modules/unictype/property-alphabetic-tests: Likewise.
17028         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17029         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17030         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17031         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17032         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17033         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17034         * modules/unictype/property-bidi-control-tests: Likewise.
17035         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17036         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17037         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17038         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17039         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17040         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17041         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17042         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17043         * modules/unictype/property-bidi-pdf-tests: Likewise.
17044         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17045         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17046         * modules/unictype/property-byname-tests: Likewise.
17047         * modules/unictype/property-combining-tests: Likewise.
17048         * modules/unictype/property-composite-tests: Likewise.
17049         * modules/unictype/property-currency-symbol-tests: Likewise.
17050         * modules/unictype/property-dash-tests: Likewise.
17051         * modules/unictype/property-decimal-digit-tests: Likewise.
17052         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17053         * modules/unictype/property-deprecated-tests: Likewise.
17054         * modules/unictype/property-diacritic-tests: Likewise.
17055         * modules/unictype/property-extender-tests: Likewise.
17056         * modules/unictype/property-format-control-tests: Likewise.
17057         * modules/unictype/property-grapheme-base-tests: Likewise.
17058         * modules/unictype/property-grapheme-extend-tests: Likewise.
17059         * modules/unictype/property-grapheme-link-tests: Likewise.
17060         * modules/unictype/property-hex-digit-tests: Likewise.
17061         * modules/unictype/property-hyphen-tests: Likewise.
17062         * modules/unictype/property-id-continue-tests: Likewise.
17063         * modules/unictype/property-id-start-tests: Likewise.
17064         * modules/unictype/property-ideographic-tests: Likewise.
17065         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17066         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17067         * modules/unictype/property-ignorable-control-tests: Likewise.
17068         * modules/unictype/property-iso-control-tests: Likewise.
17069         * modules/unictype/property-join-control-tests: Likewise.
17070         * modules/unictype/property-left-of-pair-tests: Likewise.
17071         * modules/unictype/property-line-separator-tests: Likewise.
17072         * modules/unictype/property-logical-order-exception-tests: Likewise.
17073         * modules/unictype/property-lowercase-tests: Likewise.
17074         * modules/unictype/property-math-tests: Likewise.
17075         * modules/unictype/property-non-break-tests: Likewise.
17076         * modules/unictype/property-not-a-character-tests: Likewise.
17077         * modules/unictype/property-numeric-tests: Likewise.
17078         * modules/unictype/property-other-alphabetic-tests: Likewise.
17079         * modules/unictype/property-other-default-ignorable-code-point-tests:
17080         Likewise.
17081         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17082         * modules/unictype/property-other-id-continue-tests: Likewise.
17083         * modules/unictype/property-other-id-start-tests: Likewise.
17084         * modules/unictype/property-other-lowercase-tests: Likewise.
17085         * modules/unictype/property-other-math-tests: Likewise.
17086         * modules/unictype/property-other-uppercase-tests: Likewise.
17087         * modules/unictype/property-paired-punctuation-tests: Likewise.
17088         * modules/unictype/property-paragraph-separator-tests: Likewise.
17089         * modules/unictype/property-pattern-syntax-tests: Likewise.
17090         * modules/unictype/property-pattern-white-space-tests: Likewise.
17091         * modules/unictype/property-private-use-tests: Likewise.
17092         * modules/unictype/property-punctuation-tests: Likewise.
17093         * modules/unictype/property-quotation-mark-tests: Likewise.
17094         * modules/unictype/property-radical-tests: Likewise.
17095         * modules/unictype/property-sentence-terminal-tests: Likewise.
17096         * modules/unictype/property-soft-dotted-tests: Likewise.
17097         * modules/unictype/property-space-tests: Likewise.
17098         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17099         * modules/unictype/property-test-tests: Likewise.
17100         * modules/unictype/property-titlecase-tests: Likewise.
17101         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17102         * modules/unictype/property-unified-ideograph-tests: Likewise.
17103         * modules/unictype/property-uppercase-tests: Likewise.
17104         * modules/unictype/property-variation-selector-tests: Likewise.
17105         * modules/unictype/property-white-space-tests: Likewise.
17106         * modules/unictype/property-xid-continue-tests: Likewise.
17107         * modules/unictype/property-xid-start-tests: Likewise.
17108         * modules/unictype/property-zero-width-tests: Likewise.
17109         * modules/unictype/scripts-tests: Likewise.
17110         * modules/unictype/syntax-c-ident-tests: Likewise.
17111         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17112         * modules/unictype/syntax-java-ident-tests: Likewise.
17113         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17114         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17115         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17116         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17117         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17118         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17119         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17120         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17121         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17122         * modules/uniname/uniname-tests: Likewise.
17123         * modules/uninorm/canonical-decomposition-tests: Likewise.
17124         * modules/uninorm/compat-decomposition-tests: Likewise.
17125         * modules/uninorm/composition-tests: Likewise.
17126         * modules/uninorm/decomposing-form-tests: Likewise.
17127         * modules/uninorm/decomposition-tests: Likewise.
17128         * modules/uninorm/filter-tests: Likewise.
17129         * modules/uninorm/nfc-tests: Likewise.
17130         * modules/uninorm/nfd-tests: Likewise.
17131         * modules/uninorm/nfkc-tests: Likewise.
17132         * modules/uninorm/nfkd-tests: Likewise.
17133         * modules/uninorm/u8-normcmp-tests: Likewise.
17134         * modules/uninorm/u8-normcoll-tests: Likewise.
17135         * modules/uninorm/u16-normcmp-tests: Likewise.
17136         * modules/uninorm/u16-normcoll-tests: Likewise.
17137         * modules/uninorm/u32-normcmp-tests: Likewise.
17138         * modules/uninorm/u32-normcoll-tests: Likewise.
17139         * modules/unistdio/u8-asnprintf-tests: Likewise.
17140         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17141         * modules/unistdio/u8-vasprintf-tests: Likewise.
17142         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17143         * modules/unistdio/u8-vsprintf-tests: Likewise.
17144         * modules/unistdio/u16-asnprintf-tests: Likewise.
17145         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17146         * modules/unistdio/u16-vasprintf-tests: Likewise.
17147         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17148         * modules/unistdio/u16-vsprintf-tests: Likewise.
17149         * modules/unistdio/u32-asnprintf-tests: Likewise.
17150         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17151         * modules/unistdio/u32-vasprintf-tests: Likewise.
17152         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17153         * modules/unistdio/u32-vsprintf-tests: Likewise.
17154         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17155         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17156         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17157         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17158         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17159         * modules/unistr/u8-check-tests: Likewise.
17160         * modules/unistr/u8-chr-tests: Likewise.
17161         * modules/unistr/u8-cmp-tests: Likewise.
17162         * modules/unistr/u8-cmp2-tests: Likewise.
17163         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17164         * modules/unistr/u8-cpy-tests: Likewise.
17165         * modules/unistr/u8-mblen-tests: Likewise.
17166         * modules/unistr/u8-mbsnlen-tests: Likewise.
17167         * modules/unistr/u8-mbtouc-tests: Likewise.
17168         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17169         * modules/unistr/u8-mbtoucr-tests: Likewise.
17170         * modules/unistr/u8-move-tests: Likewise.
17171         * modules/unistr/u8-next-tests: Likewise.
17172         * modules/unistr/u8-prev-tests: Likewise.
17173         * modules/unistr/u8-set-tests: Likewise.
17174         * modules/unistr/u8-stpcpy-tests: Likewise.
17175         * modules/unistr/u8-stpncpy-tests: Likewise.
17176         * modules/unistr/u8-strcat-tests: Likewise.
17177         * modules/unistr/u8-strcmp-tests: Likewise.
17178         * modules/unistr/u8-strcoll-tests: Likewise.
17179         * modules/unistr/u8-strcpy-tests: Likewise.
17180         * modules/unistr/u8-strdup-tests: Likewise.
17181         * modules/unistr/u8-strlen-tests: Likewise.
17182         * modules/unistr/u8-strmblen-tests: Likewise.
17183         * modules/unistr/u8-strmbtouc-tests: Likewise.
17184         * modules/unistr/u8-strncat-tests: Likewise.
17185         * modules/unistr/u8-strncmp-tests: Likewise.
17186         * modules/unistr/u8-strncpy-tests: Likewise.
17187         * modules/unistr/u8-strnlen-tests: Likewise.
17188         * modules/unistr/u8-to-u16-tests: Likewise.
17189         * modules/unistr/u8-to-u32-tests: Likewise.
17190         * modules/unistr/u8-uctomb-tests: Likewise.
17191         * modules/unistr/u16-check-tests: Likewise.
17192         * modules/unistr/u16-chr-tests: Likewise.
17193         * modules/unistr/u16-cmp-tests: Likewise.
17194         * modules/unistr/u16-cmp2-tests: Likewise.
17195         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17196         * modules/unistr/u16-cpy-tests: Likewise.
17197         * modules/unistr/u16-mblen-tests: Likewise.
17198         * modules/unistr/u16-mbsnlen-tests: Likewise.
17199         * modules/unistr/u16-mbtouc-tests: Likewise.
17200         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17201         * modules/unistr/u16-mbtoucr-tests: Likewise.
17202         * modules/unistr/u16-move-tests: Likewise.
17203         * modules/unistr/u16-next-tests: Likewise.
17204         * modules/unistr/u16-prev-tests: Likewise.
17205         * modules/unistr/u16-set-tests: Likewise.
17206         * modules/unistr/u16-stpcpy-tests: Likewise.
17207         * modules/unistr/u16-stpncpy-tests: Likewise.
17208         * modules/unistr/u16-strcat-tests: Likewise.
17209         * modules/unistr/u16-strcmp-tests: Likewise.
17210         * modules/unistr/u16-strcoll-tests: Likewise.
17211         * modules/unistr/u16-strcpy-tests: Likewise.
17212         * modules/unistr/u16-strdup-tests: Likewise.
17213         * modules/unistr/u16-strlen-tests: Likewise.
17214         * modules/unistr/u16-strmblen-tests: Likewise.
17215         * modules/unistr/u16-strmbtouc-tests: Likewise.
17216         * modules/unistr/u16-strncat-tests: Likewise.
17217         * modules/unistr/u16-strncmp-tests: Likewise.
17218         * modules/unistr/u16-strncpy-tests: Likewise.
17219         * modules/unistr/u16-strnlen-tests: Likewise.
17220         * modules/unistr/u16-to-u32-tests: Likewise.
17221         * modules/unistr/u16-to-u8-tests: Likewise.
17222         * modules/unistr/u16-uctomb-tests: Likewise.
17223         * modules/unistr/u32-check-tests: Likewise.
17224         * modules/unistr/u32-chr-tests: Likewise.
17225         * modules/unistr/u32-cmp-tests: Likewise.
17226         * modules/unistr/u32-cmp2-tests: Likewise.
17227         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17228         * modules/unistr/u32-cpy-tests: Likewise.
17229         * modules/unistr/u32-mblen-tests: Likewise.
17230         * modules/unistr/u32-mbsnlen-tests: Likewise.
17231         * modules/unistr/u32-mbtouc-tests: Likewise.
17232         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17233         * modules/unistr/u32-mbtoucr-tests: Likewise.
17234         * modules/unistr/u32-move-tests: Likewise.
17235         * modules/unistr/u32-next-tests: Likewise.
17236         * modules/unistr/u32-prev-tests: Likewise.
17237         * modules/unistr/u32-set-tests: Likewise.
17238         * modules/unistr/u32-stpcpy-tests: Likewise.
17239         * modules/unistr/u32-stpncpy-tests: Likewise.
17240         * modules/unistr/u32-strcat-tests: Likewise.
17241         * modules/unistr/u32-strcmp-tests: Likewise.
17242         * modules/unistr/u32-strcoll-tests: Likewise.
17243         * modules/unistr/u32-strcpy-tests: Likewise.
17244         * modules/unistr/u32-strdup-tests: Likewise.
17245         * modules/unistr/u32-strlen-tests: Likewise.
17246         * modules/unistr/u32-strmblen-tests: Likewise.
17247         * modules/unistr/u32-strmbtouc-tests: Likewise.
17248         * modules/unistr/u32-strncat-tests: Likewise.
17249         * modules/unistr/u32-strncmp-tests: Likewise.
17250         * modules/unistr/u32-strncpy-tests: Likewise.
17251         * modules/unistr/u32-strnlen-tests: Likewise.
17252         * modules/unistr/u32-to-u16-tests: Likewise.
17253         * modules/unistr/u32-to-u8-tests: Likewise.
17254         * modules/unistr/u32-uctomb-tests: Likewise.
17255         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17256         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17257         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17258         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17259         * modules/uniwidth/u8-strwidth-tests: Likewise.
17260         * modules/uniwidth/u8-width-tests: Likewise.
17261         * modules/uniwidth/u16-strwidth-tests: Likewise.
17262         * modules/uniwidth/u16-width-tests: Likewise.
17263         * modules/uniwidth/u32-strwidth-tests: Likewise.
17264         * modules/uniwidth/u32-width-tests: Likewise.
17265         * modules/uniwidth/width-tests: Likewise.
17266
17267 2010-05-18  Richard Jones  <rjones@redhat.com>
17268
17269         doc: users.txt: list hivex
17270         * users.txt: Add hivex.
17271
17272 2010-05-18  Richard Jones  <rjones@redhat.com>
17273
17274         doc: users.txt: list febootstrap
17275         * users.txt: Add febootstrap.
17276
17277 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17278
17279         bootstrap: fix an error when gnulib is not used as a git submodule
17280         * build-aux/bootstrap (gnulib_path): If its length is zero then
17281         assign "gnulib" to it.
17282         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17283
17284 2010-05-16  Bruno Haible  <bruno@clisp.org>
17285
17286         Avoid autoconf warnings about AM_ICONV.
17287         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17288         2.64.
17289
17290 2010-05-16  Bruno Haible  <bruno@clisp.org>
17291
17292         absolute-header: Make the macro usable in more situations.
17293         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17294         from gl_ABSOLUTE_HEADER.
17295         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17296
17297 2010-05-16  James Youngman  <jay@gnu.org>
17298
17299         doc: update users.txt
17300         * users.txt: Add CSSC.
17301
17302 2010-05-16  Jim Meyering  <meyering@redhat.com>
17303
17304         init.sh: fix an error in the previous change; add more comments
17305         * tests/init.sh: Compare exit code in loop against 9, not 2.
17306         Patch by Bruno Haible.
17307         Make the two tests more similar by adding an empty "then" clause.
17308         Add comments.
17309
17310         init.sh: avoid unnecessary shell re-exec
17311         * tests/init.sh: Improve the re-exec-required check to first test the
17312         current shell.  If it passes the test, do not search for a shell that
17313         does pass, and do not re-exec.  This test is particularly contorted to
17314         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17315         of $(...) evokes a syntax error and causes immediate shell exit with
17316         status 2.  Bruno Haible reported that the re-exec made it impossible
17317         to single-step through any init.sh-using script.
17318
17319 2010-05-16  Bruno Haible  <bruno@clisp.org>
17320
17321         Fix collision between gnulib's and libintl's printf replacements.
17322         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17323         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17324         (printf): When using GNU C, map the __printf__ function to rpl_printf
17325         via __asm__. When not using GNU C, define rpl_printf instead of
17326         __printf__.
17327         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17328         commit.
17329         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17330         commit.
17331         * m4/asm-underscore.m4: New file.
17332         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17333         * modules/stdio (Files): Add m4/asm-underscore.m4.
17334         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17335         Reported by Ben Pfaff.
17336
17337 2010-05-16  Bruno Haible  <bruno@clisp.org>
17338
17339         verify: Avoid skipping the test on openSUSE 11.0.
17340         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17341
17342 2010-05-13  Bruno Haible  <bruno@clisp.org>
17343
17344         Avoid useless warnings from G++.
17345         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17346         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17347         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17348
17349 2010-05-11  Jim Meyering  <meyering@redhat.com>
17350
17351         maint.mk: tweak preceding change
17352         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17353         regexps tighter by anchoring at EOL, and make the new group "shy"
17354         for slightly decreased overhead.
17355
17356 2010-05-11  Eric Blake  <eblake@redhat.com>
17357
17358         maint.mk: gnulib doesn't guarantee NSIG
17359         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17360
17361 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17362
17363         test-pwrite.c: Remove unused variable declaration.
17364         * tests/test-pwrite.c (main): Remove read_buf declaration.
17365
17366         Remove useless test-pwrite.sh file.
17367         * tests/test-pwrite.sh: Delete file.
17368         * modules/pwrite-tests: Remove references.
17369         Reported by Bruno Haible.
17370
17371 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17372
17373         init.sh: fix a typo
17374         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17375
17376 2010-05-10  Jim Meyering  <meyering@redhat.com>
17377
17378         maint.mk: avoid using a temporary file in the always-defined-macros check
17379         * top/maint.mk (.re-defmac): Remove rule.
17380         (gl_trap_): Remove definition.
17381         (sc_prohibit_always-defined_macros): Rewrite not to create and
17382         depend on a temporary file.  Instead, depend on GNU grep's ability
17383         to read a list of regular expressions from stdin when given "-f -".
17384
17385 2010-05-09  Bruno Haible  <bruno@clisp.org>
17386
17387         Update to GNU gettext 0.18, part 1.
17388         * m4/gettext.m4: Update to GNU gettext 0.18.
17389         * m4/intl.m4: Likewise.
17390         * m4/po.m4: Likewise.
17391         * modules/gettext (Files): Add m4/fcntl-o.m4.
17392         (configure.ac): Require gettext infrastructure from version 0.18.
17393
17394 2010-05-09  Jim Meyering  <meyering@redhat.com>
17395
17396         init.sh: enable MALLOC_PERTURB_
17397         * tests/init.sh: Enable glibc's malloc-perturbing option.
17398
17399         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17400         With my recent change in init.sh from the two-line form:
17401             -#   : ${srcdir=.}
17402             -#   . "$srcdir/init.sh"; path_prepend_ .
17403             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17404         I noticed that using the one-line form would cause this test
17405         to fail with a false-positive, or to stop working altogether,
17406         depending on whether help-version changed or all the tests did.
17407         * top/maint.mk (_hv_regex): Remove this definition.
17408         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17409         (_hv_regex_strong): Use a stronger regex to check for conformance.
17410         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17411         Give a separate diagnostic for lack of conforming use.
17412
17413         maint.mk: prohibit definition of symbols defined by gnulib
17414         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17415         definition of symbols defined by gnulib.
17416
17417 2010-05-09  Bruno Haible  <bruno@clisp.org>
17418
17419         acl: Avoid test failure on Cygwin-hosted mingw.
17420         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17421
17422 2010-05-09  Bruno Haible  <bruno@clisp.org>
17423
17424         error: Use system's fcntl function.
17425         * lib/error.c (fcntl): Undefine.
17426
17427 2010-05-09  Jim Meyering  <meyering@redhat.com>
17428
17429         verify: adjust formatting to be more consistent
17430         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17431         argument-list '('s, and after one comma.
17432
17433 2010-05-09  Bruno Haible  <bruno@clisp.org>
17434
17435         error: More reliable output on mingw.
17436         * lib/error.c: Include <windows.h>.
17437         (is_open): New function.
17438         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17439         defined.
17440
17441 2010-05-09  Bruno Haible  <bruno@clisp.org>
17442
17443         vasnprintf: Fix syntax errors in libintl build on mingw.
17444         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17445         pad_ourselves and prec_ourselves after use.
17446
17447 2010-05-08  Bruno Haible  <bruno@clisp.org>
17448
17449         * lib/config.charset: Update comments for Cygwin 1.7.
17450         * lib/localcharset.c: Likewise.
17451
17452 2010-05-07  Jim Meyering  <meyering@redhat.com>
17453
17454         init.sh: improve comments
17455         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
17456         . "${srcdir=.}/init.sh"; path_prepend_ .
17457         Add a note about path_prepend_ and the alternative of using
17458         TESTS_ENVIRONMENT.
17459
17460 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17461
17462         exclude: Unescape hashed patterns in wildcard mode.
17463         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
17464         to the hash list.
17465         * tests/test-exclude8.sh: New test case.
17466         * modules/exclude-tests: Add new test.
17467
17468 2010-05-05  Eric Blake  <eblake@redhat.com>
17469
17470         verify: automate tests
17471         * modules/verify-tests: New module.
17472         * tests/test-verify.sh: New file.
17473         * tests/test-verify.c: Guard each negative test with a unique id.
17474         Also avoid warning about unused left hand of comma expressions.
17475
17476 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17477
17478         Further improvements to verify.h, suggested by Eric Blake.
17479         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17480         the GL_* versions, to avoid collision with OpenGL.
17481         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17482         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17483         than testing merely whether it's defined.
17484
17485         Modify verify.h to pacify gcc -Wredundant_decls.
17486         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17487         These use the prefix "GL_" since they're likely to be useful elsewhere.
17488         We may need to break them out into a different .h file.
17489         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17490         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17491         of verify_function__.
17492
17493 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17494
17495         Tests for module pwrite.
17496         * modules/pwrite-tests: New file.
17497         * tests/test-pwrite.sh: New file.
17498         * tests/test-pwrite.c: New file.
17499
17500         New module pwrite.
17501         * lib/unistd.in.h (pwrite): New declaration.
17502         * lib/pwrite.c: New file, from glibc with modifications.
17503         * m4/pwrite.m4: New file.
17504         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17505         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17506         REPLACE_PWRITE.
17507         * modules/pwrite: New file.
17508         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17509         REPLACE_PWRITE.
17510         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17511         * doc/posix-functions/pwrite.texi: Mention the new module.
17512
17513 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17514
17515         pread: Update documentation.
17516         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17517
17518 2010-05-04  Eric Blake  <eblake@redhat.com>
17519
17520         docs: update cygwin progress
17521         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17522         this bug.
17523         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17524         Added in cygwin 1.7.2.
17525         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17526         Likewise.
17527         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17528         Likewise.
17529         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17530         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17531         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17532         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17533         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17534         Mention nproc module.
17535         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17536         bug in cygwin 1.7.5 addition.
17537         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
17538         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
17539         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
17540         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
17541         1.7.5.
17542         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
17543         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
17544         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
17545         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
17546         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
17547         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
17548         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
17549         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
17550         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
17551         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
17552         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
17553         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
17554         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
17555         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
17556         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
17557         Likewise.
17558         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
17559         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
17560         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
17561         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
17562         Likewise.
17563         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
17564         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
17565         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
17566         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
17567         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
17568         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
17569         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
17570         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
17571         Likewise.
17572         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
17573         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
17574         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
17575         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
17576         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
17577         Likewise.
17578         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
17579         Likewise.
17580         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
17581         Likewise.
17582         * doc/glibc-functions/xdrrec_endofrecord.texi
17583         (xdrrec_endofrecord): Likewise.
17584         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
17585         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
17586         Likewise.
17587         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
17588         Likewise.
17589
17590 2010-05-04  Jim Meyering  <meyering@redhat.com>
17591
17592         gendocs.sh: make its "-s FILE" option more useful
17593         * build-aux/gendocs.sh: When honoring the -s FILE option, update
17594         $PACKAGE to reflect the probably-different basename of "FILE".
17595
17596 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17597
17598         bootstrap: don't ignore download_po_files failure
17599         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
17600         failure.
17601
17602 2010-05-03  Jim Meyering  <meyering@redhat.com>
17603
17604         maint.mk: allow to pass options to gendocs.sh
17605         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
17606         (gendocs_options_): New overridable variable.
17607
17608         gnu-web-doc-update: don't ignore configure or build failure
17609         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
17610
17611         announce-gen: backslash-escape '@'s in --help output
17612         * build-aux/announce-gen: Fix syntax errors.
17613
17614         maint.mk, announce-gen: allow project-specific announcement mail headers
17615         * top/maint.mk (translation_project_): Define default.
17616         (announcement_Cc_, announcement_mail_headers_): Likewise.
17617         (announcement): Invoke announce-gen with new --mail-headers option.
17618         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
17619
17620         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
17621         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
17622         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
17623         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
17624         line in the "err2" output file when running "make check" in verbose
17625         mode (i.e., with set -x enabled).
17626
17627 2010-05-03  Bruno Haible  <bruno@clisp.org>
17628
17629         wctob: Fix for weird platforms.
17630         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
17631         argument value.
17632
17633 2010-05-03  Jim Meyering  <meyering@redhat.com>
17634
17635         maint.mk: prohibit unwarranted use of <strings.h>
17636         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
17637         strings.h in a file that does not also use strcasecmp, strncasecmp,
17638         ffs or ffsll.
17639
17640         maint.mk: remove obsolete comments
17641         * top/maint.mk: Remove stale, commented-out rules.
17642
17643 2010-05-02  Bruno Haible  <bruno@clisp.org>
17644
17645         wcwidth: Declare also when it's aliased.
17646         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
17647         macro.
17648
17649 2010-05-02  Bruno Haible  <bruno@clisp.org>
17650
17651         Fix regression from 2010-04-25.
17652         * gnulib-tool (func_modules_transitive_closure): Check the status of
17653         all modules, not only of the tests that are of the form foo-tests where
17654         foo is a module.
17655
17656 2010-05-02  Bruno Haible  <bruno@clisp.org>
17657
17658         wctob: Work around nasty Cygwin 1.7.2 bug.
17659         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
17660         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
17661
17662 2010-05-01  Bruno Haible  <bruno@clisp.org>
17663
17664         fpurge: Sharper test.
17665         * tests/test-fpurge.c (main): Add one more ftell check.
17666         * modules/fpurge-tests (Depends-on): Add ftell.
17667         Suggested by Eric Blake.
17668
17669 2010-05-01  Bruno Haible  <bruno@clisp.org>
17670
17671         ftello: Another test.
17672         * tests/test-ftello3.c: New file.
17673         * modules/ftello-tests (Files): Add it.
17674         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17675         MOSTLYCLEANFILES.
17676
17677         ftell: Another test.
17678         * tests/test-ftell3.c: New file.
17679         * modules/ftell-tests (Files): Add it.
17680         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17681         MOSTLYCLEANFILES.
17682
17683 2010-05-01  Bruno Haible  <bruno@clisp.org>
17684
17685         ftell, ftello: Work around Solaris bug.
17686         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
17687         * lib/ftello.c: Include stdio-impl.h.
17688         (ftello): On Solaris, when _IOWRT is set, compute the result without
17689         looking at _IOREAD.
17690         * modules/ftello (Files): Add lib/stdio-impl.h.
17691         * doc/posix-functions/ftell.texi: Mention Solaris bug.
17692         * doc/posix-functions/ftello.texi: Likewise.
17693         Reported by Eric Blake.
17694
17695 2010-05-01  Bruno Haible  <bruno@clisp.org>
17696
17697         freading: Adapt to special meaning of _IOREAD flag on Solaris.
17698         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
17699         the _IOWRT flag is also set.
17700
17701 2010-05-01  Bruno Haible  <bruno@clisp.org>
17702
17703         Fix doc about a HP-UX stdio bug.
17704         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
17705         * doc/posix-functions/ftello.texi: Likewise.
17706
17707 2010-05-01  Bruno Haible  <bruno@clisp.org>
17708
17709         lseek test: Fix failure on Solaris.
17710         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
17711         output.
17712
17713 2010-04-30  Jim Meyering  <meyering@redhat.com>
17714
17715         bootstrap: don't ignore failure to generate po*/Makevars
17716         * build-aux/bootstrap (with_gettext): Don't ignore failure
17717         to create po/Makevars or runtime-po/Makevars.
17718
17719 2010-04-29  Eric Blake  <eblake@redhat.com>
17720
17721         headers: relax license to LGPLv2+
17722         * modules/fcntl-h (License): Relax license.
17723         * modules/getopt-posix (License): Likewise.
17724         * modules/locale (License): Likewise.
17725         * modules/math (License): Likewise.
17726         * modules/pty (License): Likewise.
17727         * modules/sched (License): Likewise.
17728         * modules/search (License): Likewise.
17729         * modules/spawn (License): Likewise.
17730         * modules/stdarg (License): Likewise.
17731         * modules/sysexits (License): Likewise.
17732
17733 2010-04-29  Jim Meyering  <meyering@redhat.com>
17734
17735         inttypes: relax license to LGPLv2+
17736         * modules/inttypes (License): Relax license.
17737
17738 2010-04-29  Simon Josefsson  <simon@josefsson.org>
17739
17740         * top/maint.mk (indent): Run twice to produce idempotent results.
17741
17742 2010-04-28  Bruno Haible  <bruno@clisp.org>
17743
17744         getdate: Generate getdate.c in the source directory.
17745         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
17746         MOSTLYCLEANFILES.
17747         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
17748
17749 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
17750
17751         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
17752         is not declared as a const *; avoid warnings in that case.
17753
17754 2010-04-28  Eric Blake  <eblake@redhat.com>
17755
17756         canonicalize-lgpl: avoid compiler warning
17757         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
17758         declaration' / 'extraneous semicolon' warning with some compilers.
17759         Reported by Andreas Gruenbacher.
17760
17761 2010-04-28  Jim Meyering  <meyering@redhat.com>
17762
17763         init.sh: ensure a more reliable exit status when exiting via trap
17764         * tests/init.sh (setup_): Don't rely on $? in signal handler.
17765         Inspired by patches from Dmitry V. Levin.
17766         Also trap on signal 3 (SIGQUIT).
17767
17768 2010-04-27  Bruno Haible  <bruno@clisp.org>
17769
17770         Update doc about utimes().
17771         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
17772         'utimens' module.
17773         Reported by Andreas Gruenbacher <agruen@suse.de>.
17774
17775 2010-04-27  Eric Blake  <eblake@redhat.com>
17776
17777         full-read, full-write: relax license
17778         * modules/full-read (License): Drop to LGPLv2+.
17779         * modules/full-write (License): Likewise.
17780         * modules/safe-read (License): Likewise.
17781         * modules/safe-write (License): Likewise.
17782
17783         pthread: mention library for linking
17784         * modules/pthread (Link): Mention $(LIB_PTHREAD).
17785
17786 2010-04-27  Jim Meyering  <meyering@redhat.com>
17787
17788         maint.mk: fix a bug introduced in last change
17789         * top/maint.mk (gl_assured_headers_): Now that all names are on
17790         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
17791         is not anchored to end of word, it should be adequate.
17792
17793         maint.mk: avoid side-effect in latest syntax-check
17794         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
17795         to run commands via $(shell...), and hence to incur cost only when
17796         the new rule is actually run.
17797
17798         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
17799         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
17800         and use that to create a regexp used to detect all #if HAVE_..._H uses.
17801         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
17802         (gl_assured_headers_, az_, AZ_): Define.
17803         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
17804
17805 2010-04-26  Jim Meyering  <jim@meyering.net>
17806             Bruno Haible  <bruno@clisp.org>
17807
17808         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
17809         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
17810         Prompted by an exchange with Gilles Espinasse.
17811
17812 2010-04-26  Jim Meyering  <meyering@redhat.com>
17813
17814         git-version-gen: aesthetic tweak
17815         * build-aux/git-version-gen: Use "$nl" rather than a literal,
17816         so that the command remains on a single line.
17817
17818 2010-04-26  Eric Blake  <eblake@redhat.com>
17819
17820         git-version-gen: allow use on EBCDIC hosts
17821         * build-aux/git-version-gen (dirty): Use literal rather than tying
17822         ourselves to ascii.
17823         Reported by Steve Goetze.
17824
17825 2010-04-25  Bruno Haible  <bruno@clisp.org>
17826
17827         netdb: Add support for GNULIB_POSIXCHECK.
17828         * lib/netdb.in.h: Include warn-on-use.h.
17829         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
17830         functions are used when GNULIB_POSIXCHECK is defined and the
17831         getaddrinfo module is not in use.
17832         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
17833         freeaddrinfo, gai_strerror, getnameinfo are declared.
17834         * modules/netdb (Depends-on): Add warn-on-use.
17835         (Makefile.am): Include warn-on-use.h in netdb.h.
17836
17837 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
17838
17839         build: avoid "make check" failure without .git/ directory
17840         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
17841         there is no .git/ directory.
17842
17843 2010-04-25  Bruno Haible  <bruno@clisp.org>
17844
17845         ptsname: Fix misuse of ttyname_r.
17846         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
17847         of errno.
17848
17849 2010-04-25  Bruno Haible  <bruno@clisp.org>
17850
17851         ttyname_r: Make it work on Solaris 10.
17852         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
17853         if the system function has the POSIX declaration. Test whether the
17854         function fails if the buffer is less than 128 bytes large.
17855         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
17856         system's ttyname_r function. Provide a reasonably large buffer.
17857         * modules/ttyname_r (Depends-on): Add extensions.
17858         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
17859
17860 2010-04-25  Bruno Haible  <bruno@clisp.org>
17861
17862         Use the 'extensions' module for some more functions on Solaris.
17863         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
17864         module.
17865         * doc/posix-functions/ctime_r.texi: Likewise.
17866         * doc/posix-functions/getgrgid_r.texi: Likewise.
17867         * doc/posix-functions/getgrnam_r.texi: Likewise.
17868         * doc/posix-functions/getpwnam_r.texi: Likewise.
17869         * doc/posix-functions/getpwuid_r.texi: Likewise.
17870         * doc/posix-functions/readdir_r.texi: Likewise.
17871         * doc/posix-functions/sigwait.texi: Likewise.
17872         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
17873         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
17874
17875 2010-04-25  Bruno Haible  <bruno@clisp.org>
17876
17877         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
17878         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
17879         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
17880         * lib/ttyname_r.c: Include <limits.h>.
17881         (ttyname_r): Define using the system's ttyname_r function, if it exists
17882         and not on Solaris.
17883         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
17884         set.
17885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
17886         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
17887         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
17888         Reported by Simon Josefsson.
17889
17890 2010-04-25  Bruno Haible  <bruno@clisp.org>
17891
17892         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
17893         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
17894         * doc/posix-functions/ctime_r.texi: Likewise.
17895         * doc/posix-functions/getgrgid_r.texi: Likewise.
17896         * doc/posix-functions/getgrnam_r.texi: Likewise.
17897         * doc/posix-functions/getlogin_r.texi: Likewise.
17898         * doc/posix-functions/getpwnam_r.texi: Likewise.
17899         * doc/posix-functions/getpwuid_r.texi: Likewise.
17900         * doc/posix-functions/readdir_r.texi: Likewise.
17901         * doc/posix-functions/sigwait.texi: Likewise.
17902         * doc/posix-functions/ttyname_r.texi: Likewise.
17903         Reported by Simon Josefsson.
17904
17905 2010-04-25  Bruno Haible  <bruno@clisp.org>
17906
17907         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
17908         * gnulib-tool (func_usage): Document that --with-*-tests options apply
17909         also to --create-testdir.
17910         (func_acceptable): Don't consider the status of *-tests modules here.
17911         (func_modules_transitive_closure): Consider it here, before including a
17912         test module.
17913         (func_import, func_create_testdir): Set inc_all_direct_tests,
17914         inc_all_indirect_tests.
17915         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
17916         --create-testdir and --create-megatestdir.
17917
17918 2010-04-25  Bruno Haible  <bruno@clisp.org>
17919
17920         gnulib-tool: Add --without-*-tests options.
17921         * gnulib-tool (func_usage): Document the --without-*-tests options.
17922         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
17923         excl_unportable_tests): New variables.
17924         Fail if they are specified with --import or --update.
17925         (func_acceptable): Respect the excl_*_tests variables.
17926         (func_import): Set the excl_*_tests variables to empty.
17927
17928 2010-04-25  Simon Josefsson  <simon@josefsson.org>
17929             Bruno Haible  <bruno@clisp.org>
17930
17931         Work around a MacOS X 10.4 bug with openpty.
17932         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
17933         * tests/test-openpty.c (main): Close the master side explicitly.
17934
17935 2010-04-25  Bruno Haible  <bruno@clisp.org>
17936
17937         strnlen: Fix a C++ test error on MacOS X and Solaris.
17938         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
17939         the function is not declared.
17940         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
17941         Simon Josefsson.
17942
17943 2010-04-24  Bruno Haible  <bruno@clisp.org>
17944
17945         Avoid a gcc warning.
17946         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
17947         of correct type for %08lx directive.
17948         Reported by Eric Blake.
17949
17950 2010-04-24  Bruno Haible  <bruno@clisp.org>
17951
17952         vasnprintf: Correct errno value in case of out-of-memory.
17953         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
17954         or sprintf. Use the errno value from SNPRINTF or sprintf.
17955         Reported by Ian Beckwith <ianb@erislabs.net>.
17956
17957 2010-04-24  Bruno Haible  <bruno@clisp.org>
17958
17959         ansi-c++-opt: Find correct compiler when cross-compiling.
17960         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
17961         AC_CHECK_PROGS.
17962         Reported by Simon Josefsson.
17963
17964 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
17965
17966         vc-list-files: Add support for subversion
17967         * build-aux/vc-list-files: Use "svn list" to generate the list of
17968         files controlled by subversion.
17969
17970 2010-04-23  Jim Meyering  <meyering@redhat.com>
17971
17972         vc-list-files tests: convert to use init.sh
17973         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
17974         path_prepend_.
17975         Use Exit, not exit.
17976         Use skip_ rather than open coding it.
17977         Remove trap set-up and compare definitions.
17978         * tests/test-vc-list-files-git.sh: Likewise.
17979         * modules/vc-list-files-tests (Files): Add tests/init.sh.
17980
17981 2010-04-22  Simon Josefsson  <simon@josefsson.org>
17982
17983         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
17984         backup files.
17985
17986 2010-04-21  Simon Josefsson  <simon@josefsson.org>
17987
17988         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
17989
17990 2010-04-20  Eric Blake  <eblake@redhat.com>
17991
17992         tests: be robust to ignored SIGPIPE
17993         * tests/test-select-in.sh: Consume all output.
17994         * tests/test-lseek.sh: Check correct exit status, while avoiding
17995         EPIPE.
17996
17997 2010-04-20  Simon Josefsson  <simon@josefsson.org>
17998             Bruno Haible  <bruno@clisp.org>
17999
18000         visibility: Don't use -fvisibility if it leads to a warning.
18001         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18002         yes, don't pretend that visibility works if it leads to a warning.
18003         Reported by Mike Gran <spk121@yahoo.com>.
18004
18005 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18006
18007         * build-aux/bootstrap: Use "git -h" for testing for supported options
18008         instead of "git --help".  The short-form option only shows a summary,
18009         and doesn't layout the full man page.  Grep for the full option name
18010         in the summary, too.
18011
18012 2010-04-19  Bruno Haible  <bruno@clisp.org>
18013
18014         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18015         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18016         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18017         mention of RELOCATABLE_STRIP.
18018         Reported by Sylvain Beucler <beuc@beuc.net>.
18019
18020 2010-04-19  Bruno Haible  <bruno@clisp.org>
18021
18022         * lib/diffseq.h: Fix typo in comment.
18023         Reported by Eric Blake.
18024
18025 2010-04-19  Bruno Haible  <bruno@clisp.org>
18026
18027         ioctl: Move autoconf macro to a .m4 file.
18028         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18029         * modules/ioctl (Files): Add it.
18030         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18031         Reported by Ian Beckwith <ianb@erislabs.net>.
18032
18033 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18034             Bruno Haible  <bruno@clisp.org>
18035
18036         diffseq: Accommodate use-case with abstract arrays.
18037         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18038         is not defined.
18039         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18040         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18041
18042 2010-04-18  Bruno Haible  <bruno@clisp.org>
18043
18044         * doc/posix-headers/stdbool.texi: More precise wording.
18045
18046 2010-04-17  Jim Meyering  <meyering@redhat.com>
18047
18048         maint.mk: use gnu-style indentation in an embedded perl script
18049         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18050         Rename variable: s/two/last_two_bytes/
18051
18052 2010-04-16  Eric Blake  <eblake@redhat.com>
18053
18054         test-stdbool: skip test that fails with Solaris CC
18055         * tests/test-stdbool.c (f): Skip test that causes compilation
18056         error under buggy C++ compiler.
18057         * lib/stdbool.in.h: Document the limitation.
18058         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18059
18060         setenv: allow compilation with C++
18061         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18062         register keyword.
18063
18064         stdint: allow test to pass with C++
18065         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18066
18067         getopt: allow compilation with C++
18068         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18069         struct.
18070         * lib/getopt.c (_getopt_internal_r): Use correct type.
18071         Reported by Dagobert Michelson, via Joel E. Denny.
18072
18073 2010-04-16  Bruno Haible  <bruno@clisp.org>
18074
18075         Override netdb.h always.
18076         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18077         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18078         Reported by Ludovic Courtès <ludo@gnu.org>.
18079
18080 2010-04-15  Bruno Haible  <bruno@clisp.org>
18081
18082         openpty: Fix mistake from 2010-03-21.
18083         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18084         Reported by Simon Josefsson.
18085
18086 2010-04-15  Eric Blake  <eblake@redhat.com>
18087
18088         test-forkpty: fix expected signature
18089         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18090         Reported by Simon Josefsson.
18091
18092 2010-04-15  Jim Meyering  <meyering@redhat.com>
18093
18094         maint.mk: texinfo_suffix_re_: correct the default regexp
18095         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18096
18097         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18098         make it configurable via texinfo_suffix_re_.
18099
18100 2010-04-14  Eric Blake  <eblake@redhat.com>
18101
18102         strtok_r: relax license to LGPLv2+
18103         * modules/strtok_r (License): Relax license.
18104         Reported by Matthias Bolte.
18105
18106 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18107
18108         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18109         version 1.4.4 by default instead of requiring the libgcrypt
18110         version used during build.  This makes it possible to use the
18111         application with older but still binary compatible libgcrypt
18112         versions.
18113
18114 2010-04-13  Eric Blake  <eblake@redhat.com>
18115
18116         getopt-gnu: match recent glibc fixes and posix ruling
18117         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18118         '+' handling, when requesting extensions.
18119         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18120         'W;' handling.
18121         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18122         * doc/posix-functions/getopt.texi (getopt): Document this.
18123         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18124         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18125         Likewise.
18126
18127         getopt: merge bug fixes from glibc
18128         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18129         diagnostics.  Honor '+:' correctly.  Reject ';'.
18130
18131         getopt-posix: detect MacOS bug
18132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18133         optind when missing a required argument.
18134         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18135         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18136         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18137         Likewise.
18138
18139         getopt-posix: avoid spurious failure on Solaris
18140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18141         an indicator that setting optind=1 is sufficient for reset.
18142
18143         getopt-posix: avoid spurious failure on FreeBSD
18144         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18145         in POSIX mode, since the m4 test uses it.
18146
18147         gnulib-tool: silence warning on BSD sh
18148         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18149
18150 2010-04-13  Jim Meyering  <meyering@redhat.com>
18151
18152         doc: users.txt: GNU patch now uses gnulib
18153         * users.txt: Add patch.
18154
18155 2010-04-12  Jim Meyering  <meyering@redhat.com>
18156
18157         maint.mk: generate more concise timing data for syntax-check rules
18158         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18159         " done" from each line that reports a syntax-check test duration.
18160
18161 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18162
18163         git-version-gen: use "git update-index..." rather than "git status"
18164         * build-aux/git-version-gen: Use git update-index --refresh, not
18165         "git status".  With some versions of git, "git status" would fail
18166         to update the index and result in an unwarranted "-dirty" suffix.
18167
18168 2010-04-11  Jim Meyering  <meyering@redhat.com>
18169
18170         openat: correct formatting (no semantic change)
18171         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18172         Suggested by Bruno Haible.
18173
18174 2010-04-11  Bruno Haible  <bruno@clisp.org>
18175
18176         Stricter declaration checking in testdirs.
18177         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18178         If for_tests is true, augment AM_CPPFLAGS to define
18179         GNULIB_STRICT_CHECKING.
18180         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18181         GNULIB_STRICT_CHECKING is defined, verify that the function is
18182         declared.
18183
18184 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18185             Bruno Haible  <bruno@clisp.org>
18186
18187         libunistring: Improve configure output.
18188         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18189         Don't say "consider installing GNU libunistring" when checking again
18190         with libiconv.
18191
18192 2010-04-11  Bruno Haible  <bruno@clisp.org>
18193
18194         libunistring: Correct value of $LTLIBUNISTRING.
18195         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18196         correct the value of $LTLIBUNISTRING.
18197
18198 2010-04-11  Bruno Haible  <bruno@clisp.org>
18199
18200         havelib: Add static libraries to LIBS in the right order.
18201         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18202         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18203
18204 2010-04-11  Bruno Haible  <bruno@clisp.org>
18205
18206         libunistring: Detect libunistring also when it depends on libiconv.
18207         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18208         the second AC_LIB_HAVE_LINKFLAGS invocation.
18209
18210 2010-04-11  James Youngman  <jay@gnu.org>
18211
18212         close-stream: declare local scalars to be "const"
18213         * lib/close-stream.c (close_stream): Make boolean variables const
18214         to document the fact that we set but do not change them.
18215
18216 2010-04-11  Bruno Haible  <bruno@clisp.org>
18217
18218         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18219
18220 2010-04-11  Jim Meyering  <meyering@redhat.com>
18221
18222         maint.mk: don't include dist-check.mk
18223         * top/maint.mk: Remove bogus include directive.
18224
18225         maint.mk: improve empty-line-at-EOF check
18226         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18227         solution, rather than tail+Perl-based one.  The latter would read
18228         a few kilobytes from the end of each file, and did not handle empty
18229         files properly.
18230
18231         maint.mk: print the elapsed time for each syntax-check rule
18232         * top/maint.mk (sc_m_rules_): Save start time in a file.
18233         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18234         (local-check): Interpose the .z rules
18235
18236 2010-04-11  Jim Meyering  <meyering@redhat.com>
18237
18238         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18239         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18240         empty file with one that ends in an empty line.
18241
18242 2010-04-10  Bruno Haible  <bruno@clisp.org>
18243
18244         mkdir: Make it work on mingw64.
18245         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18246         * lib/mkdir.c: Update comment.
18247         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
18248
18249 2010-04-10  Bruno Haible  <bruno@clisp.org>
18250
18251         Don't override improved macro from newer autoconf.
18252         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18253         autoconf >= 2.62.
18254         Reported by Joel E. Denny <jdenny@clemson.edu>.
18255
18256 2010-04-10  Jim Meyering  <meyering@redhat.com>
18257
18258         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18259         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18260
18261         maint.mk: correct a diagnostic
18262         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18263         in diagnostic; now use $prohibit.
18264
18265 2010-04-10  Bruno Haible  <address@hidden>
18266
18267         fchownat: Fix a C++ test error on Solaris 8.
18268         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18269         the function does not exist.
18270
18271 2010-04-10  Bruno Haible  <bruno@clisp.org>
18272
18273         vasnprintf: Add more tests.
18274         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18275         (test_function): Test converting an invalid wide string.
18276
18277         vasnprintf: Correct handling of unconvertible wide string arguments.
18278         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18279         VASNPRINTF.
18280         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18281         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18282         smaller than the expected maximum need for the directive. Set errno to
18283         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18284         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18285         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18286         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18287         * modules/vasnprintf (Files): Add m4/printf.m4.
18288         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18289
18290 2010-04-10  Bruno Haible  <bruno@clisp.org>
18291
18292         vasnprintf: Fix crash in %ls directive.
18293         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18294         string is passed as argument to %ls, with no precision and no width.
18295         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18296
18297 2010-04-10  Bruno Haible  <bruno@clisp.org>
18298
18299         vasnprintf: Fix multiple test failures on mingw.
18300         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18301         _snprintf, or snwprintf, not _snwprintf.
18302
18303 2010-04-10  Bruno Haible  <bruno@clisp.org>
18304
18305         write: Fix a C++ test error on mingw.
18306         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18307
18308 2010-04-10  Bruno Haible  <bruno@clisp.org>
18309
18310         vasnprintf test: Reduce code duplication.
18311         * tests/test-vasnprintf.c (test_function): New function, extracted from
18312         test_vasnprintf.
18313         (test_vasnprintf, test_asnprintf): Invoke it.
18314
18315 2010-04-10  Bruno Haible  <bruno@clisp.org>
18316
18317         strnlen: Fix warning in C++ mode on MacOS X.
18318         * lib/string.in.h (strnlen): Use the modern idiom.
18319         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18320         defining strnlen as a macro already in <config.h>.
18321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18322         REPLACE_STRNLEN.
18323         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18324         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18325
18326 2010-04-08  James Youngman  <jay@gnu.org>
18327
18328         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18329         the example.
18330
18331 2010-04-09  Jim Meyering  <meyering@redhat.com>
18332
18333         maint.mk: print better diagnostic when there is no $(_hv_file)
18334         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18335         announce that when $(_hv_file) (aka help-version) does not exist.
18336
18337         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18338         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18339         not try to interpret its random input bytes.  Jarno Rajahalme reported
18340         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18341         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18342         (mktempd_): Likewise, just in case.
18343
18344         ftruncate: add two years to projected module removal date: 2012
18345         * m4/ftruncate.m4: Adjust comments.
18346
18347         ftruncate: mark module as obsolete; even MinGW provides it, now
18348         * modules/ftruncate (Status): Obsolete.
18349         (Notice): Say that.
18350         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18351         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18352
18353 2010-04-08  Bruno Haible  <bruno@clisp.org>
18354
18355         Fix side effects from tests-related modules.
18356         * modules/dprintf-posix (Comment): New section.
18357         * modules/fprintf-posix (Comment): Likewise.
18358         * modules/obstack-printf-posix (Comment): Likewise.
18359         * modules/printf-posix (Comment): Likewise.
18360         * modules/snprintf-posix (Comment): Likewise.
18361         * modules/sprintf-posix (Comment): Likewise.
18362         * modules/vasnprintf-posix (Comment): Likewise.
18363         * modules/vasprintf-posix (Comment): Likewise.
18364         * modules/vdprintf-posix (Comment): Likewise.
18365         * modules/vfprintf-posix (Comment): Likewise.
18366         * modules/vprintf-posix (Comment): Likewise.
18367         * modules/vsnprintf-posix (Comment): Likewise.
18368         * modules/vsprintf-posix (Comment): Likewise.
18369         * modules/xprintf-posix (Comment): Likewise.
18370         * modules/xvasprintf-posix (Comment): Likewise.
18371         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18372         * modules/floorf-tests (Depends-on): Likewise.
18373         * modules/round-tests (Depends-on): Likewise.
18374         * modules/roundf-tests (Depends-on): Likewise.
18375         * modules/trunc-tests (Depends-on): Likewise.
18376         * modules/truncf-tests (Depends-on): Likewise.
18377         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18378         'fprintf-posix' module is not present.
18379         * tests/test-floorf2.c (check): Likewise.
18380         * tests/test-trunc2.c (check): Likewise.
18381         * tests/test-truncf2.c (check): Likewise.
18382         * tests/test-round2.c (equal): Likewise.
18383         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18384
18385 2010-04-07  Karl Berry  <karl@gnu.org>
18386
18387         * config/srclist.txt,
18388         * config/srclistvars.sh,
18389         * config/srclist-update: doc fixes.
18390
18391 2010-04-07  Jim Meyering  <meyering@redhat.com>
18392
18393         maint.mk: add a PATH crosschecking syntax-check rule
18394         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18395         Useful if you use a test like the one in help-version (coreutils,
18396         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18397         printed by prog --version.
18398
18399 2010-04-06  Bruno Haible  <bruno@clisp.org>
18400
18401         Fix link error on mingw.
18402         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18403         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18404
18405 2010-04-06  Bruno Haible  <bruno@clisp.org>
18406
18407         Assume rmdir exists.
18408         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18409
18410 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18411
18412         doc: update users.txt
18413         * users.txt: Add gcal.
18414
18415 2010-04-06  Jim Meyering  <meyering@redhat.com>
18416
18417         init.sh: simply unset TMPDIR rather than risking env -i
18418         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18419         although it probably works fine on all Unix-based systems, some
18420         systems (Cygwin?) cannot tolerate a totally cleared environment.
18421         Suggestion from Eric Blake.
18422
18423 2010-04-06  Jim Meyering  <meyering@redhat.com>
18424
18425         init.sh: portability fix: use env's POSIX-specified -i option not -u
18426         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18427         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18428
18429 2010-04-05  Bruno Haible  <bruno@clisp.org>
18430
18431         btowc: Work around Cygwin 1.7.2 bug.
18432         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18433         does not map NUL to 0.
18434         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18435
18436 2010-04-05  Bruno Haible  <bruno@clisp.org>
18437
18438         Make the multithread modules work on Cygwin 1.7.2.
18439         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18440         imported symbols can be declared weak, so that it returns "no" on
18441         Cygwin 1.7.2.
18442
18443 2010-04-05  Bruno Haible  <bruno@clisp.org>
18444
18445         Use the module 'strncat'.
18446         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18447
18448         Tests for module 'strncat'.
18449         * modules/strncat-tests: New file.
18450         * tests/test-strncat.c: New file.
18451
18452         New module 'strncat'.
18453         * lib/string.in.h (strncat): New declaration.
18454         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
18455         * m4/strncat.m4: New file, based on m4/memchr.m4.
18456         * modules/strncat: New file.
18457         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
18458         is declared.
18459         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
18460         REPLACE_STRNCAT.
18461         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
18462         REPLACE_STRNCAT.
18463         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
18464         module.
18465         * tests/test-string-c++.cc: Check signature of strncat.
18466
18467 2010-04-05  Jim Meyering  <meyering@redhat.com>
18468
18469         xstrtoumax-tests: convert to use init.sh
18470         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18471         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18472         Use Exit, not exit.
18473         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18474
18475         xstrtoimax-tests: convert to use init.sh
18476         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18477         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18478         Use Exit, not exit.
18479         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18480
18481 2010-04-05  Bruno Haible  <bruno@clisp.org>
18482
18483         sys_socket: Avoid #define replacements in C++ mode.
18484         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18485         warning to the function if possible, rather than #defining the symbol
18486         to a dysfunctional alias.
18487
18488 2010-04-05  Bruno Haible  <bruno@clisp.org>
18489
18490         fseeko: Fix C++ test error on mingw.
18491         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18492         gl_FUNC_FSEEKO.
18493         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18494         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18495         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18496         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18497
18498 2010-04-05  Bruno Haible  <bruno@clisp.org>
18499
18500         duplocale: Improve test output.
18501         * tests/test-duplocale.c (main): Print reason for skipped test.
18502
18503 2010-04-05  Bruno Haible  <bruno@clisp.org>
18504
18505         Assume rmdir exists.
18506         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18507         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18508
18509 2010-04-05  Bruno Haible  <bruno@clisp.org>
18510
18511         Fix link error on Solaris 8 with cc.
18512         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18513
18514 2010-04-05  Bruno Haible  <bruno@clisp.org>
18515
18516         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18517         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18518
18519 2010-04-05  Bruno Haible  <bruno@clisp.org>
18520
18521         vasprintf: Update documentation.
18522         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18523
18524 2010-04-05  Bruno Haible  <bruno@clisp.org>
18525
18526         ptsname: Improve test.
18527         * tests/test-ptsname.c (main): Also try the various master names of BSD
18528         systems.
18529
18530 2010-04-05  Bruno Haible  <bruno@clisp.org>
18531
18532         memchr: Avoid a possible C++ test error.
18533         * lib/string.in.h (memchr): Provide declaration if function is missing.
18534         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18535         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
18537         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
18538
18539 2010-04-05  Bruno Haible  <bruno@clisp.org>
18540
18541         strtok_r: Improve idiom.
18542         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
18543         AC_LIBOBJ is used.
18544
18545 2010-04-05  Bruno Haible  <bruno@clisp.org>
18546
18547         strdup: Improve idiom.
18548         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
18549         AC_LIBOBJ is used.
18550         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
18551         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
18552         when AC_LIBOBJ is used.
18553
18554 2010-04-05  Bruno Haible  <bruno@clisp.org>
18555
18556         mbsinit, mbrtowc, wcrtomb: Improve idioms.
18557         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
18558         don't set REPLACE_MBSINIT to 1.
18559         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
18560         don't set REPLACE_MBRTOWC to 1.
18561         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
18562         exist, don't set REPLACE_MBSRTOWCS to 1.
18563         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
18564         exist, don't set REPLACE_MBSNRTOWCS to 1.
18565         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
18566         don't set REPLACE_WCRTOMB to 1.
18567         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
18568         exist, don't set REPLACE_WCSRTOMBS to 1.
18569         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
18570         exist, don't set REPLACE_WCSNRTOMBS to 1.
18571
18572 2010-04-05  Bruno Haible  <bruno@clisp.org>
18573
18574         ldexpl: Improve idiom.
18575         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
18576         make sure to set HAVE_DECL_LDEXPL to 0.
18577
18578 2010-04-05  Jim Meyering  <meyering@redhat.com>
18579
18580         xstrtol-tests: convert to use init.sh
18581         * modules/xstrtol-tests (Files): Add tests/init.sh.
18582         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18583         Use Exit, not exit.
18584         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18585
18586         atexit-tests: convert to use init.sh
18587         * modules/atexit-tests (Files): Add tests/init.sh.
18588         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18589         Use Exit, not exit.
18590         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18591
18592         init.sh: fix typo
18593         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
18594
18595         init.sh: make it easier for a test script to write to the tty, ...
18596         when using automake's parallel-tests mode.
18597         * tests/init.sh (stderr_fileno_): Define overridable variable.
18598         (warn_): New function, to use it.
18599         (fail_, skip_, framework_failure_): Use warn_.
18600
18601 2010-04-04  Bruno Haible  <bruno@clisp.org>
18602
18603         btowc: Avoid warning.
18604         * lib/btowc.c: Include <stdlib.h>.
18605         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
18606
18607 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18608             Bruno Haible  <bruno@clisp.org>
18609
18610         wchar: Port to NetBSD 1.5.
18611         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
18612         * lib/wctype.in.h (WEOF): Likewise.
18613
18614 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18615             Bruno Haible  <bruno@clisp.org>
18616
18617         Port extended stdio to NetBSD 1.5.
18618         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
18619         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
18620         older.
18621
18622 2010-04-04  Bruno Haible  <bruno@clisp.org>
18623
18624         string: Remove unused substitution.
18625         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18626         HAVE_DECL_STRERROR.
18627         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
18628
18629 2010-04-04  Bruno Haible  <bruno@clisp.org>
18630
18631         strtod: Avoid a possible C++ test error.
18632         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
18633         set REPLACE_STRTOD.
18634
18635 2010-04-04  Bruno Haible  <bruno@clisp.org>
18636
18637         strerror: Update documentation.
18638         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
18639
18640 2010-04-04  Bruno Haible  <bruno@clisp.org>
18641
18642         stdio: Fix some C++ test errors on Solaris 8 with GCC.
18643         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
18644         _GL_CXXALIAS_SYS_CAST.
18645
18646 2010-04-04  Bruno Haible  <bruno@clisp.org>
18647
18648         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18649         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
18650         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
18651         REPLACE_FREXPL to 1.
18652         * doc/posix-functions/frexpl.texi: Update documentation.
18653
18654 2010-04-04  Bruno Haible  <bruno@clisp.org>
18655
18656         math: Fix some C++ test errors on Solaris 8 and Cygwin.
18657         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
18658
18659 2010-04-04  Bruno Haible  <bruno@clisp.org>
18660
18661         Implement nanosleep for native Windows.
18662         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
18663
18664 2010-04-04  Bruno Haible  <bruno@clisp.org>
18665
18666         math: Fix some C++ test errors on Solaris 8.
18667         * lib/math.in.h (truncf, trunc): Use simpler idiom.
18668
18669 2010-04-04  Bruno Haible  <bruno@clisp.org>
18670
18671         math: Fix some C++ test errors on Cygwin.
18672         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
18673         truncl): Provide declaration if the system does not have it.
18674         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
18675         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
18676         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
18677         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
18678         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
18679         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
18680         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
18681         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
18682         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
18683         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
18684         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
18685         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
18686         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
18687         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
18688         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
18689         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
18690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
18691         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18692         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18693         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
18694         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18695         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18696
18697 2010-04-04  Bruno Haible  <bruno@clisp.org>
18698
18699         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
18700         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18701         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18702         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
18703         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
18704         * m4/isinf.m4 (gl_ISINF): Likewise.
18705         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18706
18707 2010-04-04  Bruno Haible  <bruno@clisp.org>
18708
18709         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
18710         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18711
18712 2010-04-04  Bruno Haible  <bruno@clisp.org>
18713
18714         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
18715         * modules/tmpfile (configure.ac): Update.
18716
18717         tmpfile: Fix C++ test error on mingw.
18718         * lib/stdio.in.h (tmpfile): New declaration.
18719         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
18720         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
18721         * modules/tmpfile (Depends-on): Add stdio.
18722         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18723         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
18724         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
18725         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
18726         REPLACE_TMPFILE.
18727         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
18728
18729 2010-04-04  Bruno Haible  <bruno@clisp.org>
18730
18731         ioctl: Fix C++ test error on mingw.
18732         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
18733         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
18734         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
18735
18736 2010-04-03  Bruno Haible  <bruno@clisp.org>
18737
18738         wcwidth: Fix C++ test error on mingw.
18739         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
18740         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
18741         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
18742
18743 2010-04-03  Bruno Haible  <bruno@clisp.org>
18744
18745         nanosleep: Fix C++ test error on mingw.
18746         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
18747         * lib/time.in.h (nanosleep): Use modern idiom.
18748         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
18749         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
18750         REPLACE_NANOSLEEP to 1.
18751         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
18752         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
18753
18754 2010-04-03  Bruno Haible  <bruno@clisp.org>
18755
18756         strptime: Fix C++ test error on mingw.
18757         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
18758         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
18759         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
18760         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
18761         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
18762         not REPLACE_STRPTIME.
18763         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
18764         REPLACE_STRPTIME.
18765
18766 2010-04-03  Bruno Haible  <bruno@clisp.org>
18767
18768         timegm: Fix C++ test error on mingw.
18769         * lib/time.in.h (timegm): Use modern idiom.
18770         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
18771         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
18772         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
18773         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
18774
18775 2010-04-03  Bruno Haible  <bruno@clisp.org>
18776
18777         timegm: Assume declaration if function exists.
18778         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
18779         if it exists. Don't clobber ac_cv_func_timegm.
18780
18781 2010-04-03  Bruno Haible  <bruno@clisp.org>
18782
18783         time_r: Fix C++ test error on mingw.
18784         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
18785         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
18786         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
18787         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
18788         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
18789
18790 2010-04-03  Bruno Haible  <bruno@clisp.org>
18791
18792         time_r: Minor updates.
18793         * modules/time_r (Description): Mention the provided functions.
18794         * lib/time_r.c: Don't include <string.h>.
18795         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
18796         * doc/posix-functions/localtime_r.texi: Likewise.
18797
18798 2010-04-03  Bruno Haible  <bruno@clisp.org>
18799
18800         time: Fix regression introduced on 2010-03-08.
18801         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
18802         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
18803
18804 2010-04-03  Jim Meyering  <meyering@redhat.com>
18805
18806         maint.mk: don't silently disable project-specific syntax-check rules
18807         * top/maint.mk (_prohibit_regexp): Define, to help people realize
18808         that they need to convert their project-specific syntax-check rules
18809         to use the new _sc_search_regexp.
18810
18811 2010-04-03  Bruno Haible  <bruno@clisp.org>
18812
18813         fchdir: Fix regression introduced on 2010-03-08.
18814         * lib/unistd.in.h (fchdir): Fix declaration.
18815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
18816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
18817         REPLACE_FCHDIR.
18818         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
18819         REPLACE_FCHDIR.
18820
18821 2010-04-03  Bruno Haible  <bruno@clisp.org>
18822
18823         getpagesize: Fix C++ test error on mingw.
18824         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
18825         system does not declare the function.
18826         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
18827         declared.
18828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18829         HAVE_DECL_GETPAGESIZE.
18830         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
18831
18832 2010-04-03  Bruno Haible  <bruno@clisp.org>
18833
18834         stdio: Make C++ tests work on mingw.
18835         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
18836         does not declare the function.
18837
18838 2010-04-03  Bruno Haible  <bruno@clisp.org>
18839
18840         ftello: Fix C++ test error on mingw.
18841         * lib/stdio.in.h (ftello): Use modern idiom.
18842         * lib/ftello.c (ftello): Renamed from rpl_ftello.
18843         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
18844         is missing and that it needs to be replaced.
18845         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
18846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
18847         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
18848
18849 2010-04-03  Bruno Haible  <bruno@clisp.org>
18850
18851         fseeko: Fix C++ test error on mingw.
18852         * lib/stdio.in.h (fseeko): Use modern idiom.
18853         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
18854         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
18855         is missing and that it needs to be replaced.
18856         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
18857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
18858         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
18859
18860 2010-04-03  Bruno Haible  <bruno@clisp.org>
18861
18862         mkstemp: Fix C++ test error on mingw.
18863         * lib/stdlib.in.h (mkstemp): Use modern idiom.
18864         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
18865         function is missing and that it needs to be replaced.
18866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
18867         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
18868
18869 2010-04-03  Bruno Haible  <bruno@clisp.org>
18870
18871         stpncpy: Fix C++ test error on mingw.
18872         * lib/string.in.h (stpncpy): Use modern idiom.
18873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
18874         function is missing and that it needs to be replaced.
18875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18876         REPLACE_STPNCPY.
18877         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
18878
18879 2010-04-03  Bruno Haible  <bruno@clisp.org>
18880
18881         sys_stat: Fix C++ test error on mingw.
18882         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
18883         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
18884
18885 2010-04-03  Bruno Haible  <bruno@clisp.org>
18886
18887         pty: Update doc.
18888         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
18889
18890 2010-04-03  Bruno Haible  <bruno@clisp.org>
18891
18892         unistd: Fix C++ test error on mingw.
18893         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
18894
18895 2010-04-03  Bruno Haible  <bruno@clisp.org>
18896
18897         Update doc regarding mingw.
18898         * doc/glibc-functions/openpty.texi: Update regarding mingw.
18899         * doc/glibc-functions/login_tty.texi: Likewise.
18900         * doc/glibc-functions/forkpty.texi: Likewise.
18901
18902 2010-04-03  Bruno Haible  <bruno@clisp.org>
18903
18904         stdlib: Avoid compilation failure of c-strtold on mingw.
18905         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
18906
18907 2010-04-03  Bruno Haible  <bruno@clisp.org>
18908
18909         locale: Make C++ tests work on Cygwin and mingw.
18910         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
18911         cannot provide the function.
18912         Reported by Simon Josefsson.
18913
18914 2010-04-03  Bruno Haible  <bruno@clisp.org>
18915
18916         localename: Port to MacOS X 10.6.
18917         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
18918         memory layout of the locales in MacOS X 10.6 as well.
18919         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
18920
18921 2010-04-02  Bruno Haible  <bruno@clisp.org>
18922
18923         gnulib-tool: Ensure that long-running tests are executed last.
18924         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
18925         running tests after the one for the other tests.
18926
18927 2010-04-02  Bruno Haible  <bruno@clisp.org>
18928
18929         gnulib-tool: Ensure the tests in the main directory are executed first.
18930         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
18931         start with the current directory.
18932
18933 2010-04-02  Bruno Haible  <bruno@clisp.org>
18934
18935         Tests for module 'havelib', moved here from GNU gettext.
18936         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
18937         modifications.
18938         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
18939         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
18940         with modifications.
18941         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
18942         modifications.
18943         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
18944         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
18945         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
18946         with modifications.
18947         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
18948         with modifications.
18949         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
18950         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
18951         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
18952         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
18953         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
18954         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
18955         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
18956         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
18957         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
18958         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
18959         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
18960         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
18961         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
18962         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
18963         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
18964         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
18965         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
18966         with modifications.
18967         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
18968         with modifications.
18969         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
18970         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
18971         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
18972         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
18973         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
18974         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
18975         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
18976         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
18977         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
18978         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
18979         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
18980         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
18981         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
18982         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
18983         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
18984         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
18985         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
18986         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
18987         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
18988         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
18989         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
18990         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
18991         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
18992         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
18993         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
18994         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
18995         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
18996         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
18997         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
18998         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
18999         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19000         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19001         * tests/havelib/rpathx/rpathx.c: New file, from
19002         gettext/autoconf-lib-link.
19003         * tests/havelib/rpathx/Makefile.am: New file, from
19004         gettext/autoconf-lib-link.
19005         * tests/havelib/rpathx/configure.ac: New file, from
19006         gettext/autoconf-lib-link with modifications.
19007         * tests/havelib/rpathy/rpathy.c: New file, from
19008         gettext/autoconf-lib-link.
19009         * tests/havelib/rpathy/Makefile.am: New file, from
19010         gettext/autoconf-lib-link.
19011         * tests/havelib/rpathy/configure.ac: New file, from
19012         gettext/autoconf-lib-link with modifications.
19013         * tests/havelib/rpathz/rpathz.c: New file, from
19014         gettext/autoconf-lib-link.
19015         * tests/havelib/rpathz/Makefile.am: New file, from
19016         gettext/autoconf-lib-link.
19017         * tests/havelib/rpathz/configure.ac: New file, from
19018         gettext/autoconf-lib-link with modifications.
19019         * tests/havelib/rpathlx/usex.c: New file, from
19020         gettext/autoconf-lib-link.
19021         * tests/havelib/rpathlx/Makefile.am: New file, from
19022         gettext/autoconf-lib-link.
19023         * tests/havelib/rpathlx/configure.ac: New file, from
19024         gettext/autoconf-lib-link with modifications.
19025         * tests/havelib/rpathly/usey.c: New file, from
19026         gettext/autoconf-lib-link.
19027         * tests/havelib/rpathly/Makefile.am: New file, from
19028         gettext/autoconf-lib-link.
19029         * tests/havelib/rpathly/configure.ac: New file, from
19030         gettext/autoconf-lib-link with modifications.
19031         * tests/havelib/rpathlz/usez.c: New file, from
19032         gettext/autoconf-lib-link.
19033         * tests/havelib/rpathlz/Makefile.am: New file, from
19034         gettext/autoconf-lib-link.
19035         * tests/havelib/rpathlz/configure.ac: New file, from
19036         gettext/autoconf-lib-link with modifications.
19037         * tests/havelib/rpathlyx/usey.c: New file, from
19038         gettext/autoconf-lib-link.
19039         * tests/havelib/rpathlyx/Makefile.am: New file, from
19040         gettext/autoconf-lib-link.
19041         * tests/havelib/rpathlyx/configure.ac: New file, from
19042         gettext/autoconf-lib-link with modifications.
19043         * tests/havelib/rpathlzyx/usez.c: New file, from
19044         gettext/autoconf-lib-link.
19045         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19046         gettext/autoconf-lib-link.
19047         * tests/havelib/rpathlzyx/configure.ac: New file, from
19048         gettext/autoconf-lib-link with modifications.
19049         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19050         with modifications.
19051
19052 2010-04-02  Bruno Haible  <bruno@clisp.org>
19053
19054         gnulib-tool: Create distributed built sources also for the tests.
19055         * gnulib-tool (func_create_testdir): Also generate distributed built
19056         sources in the tests directory.
19057
19058 2010-04-02  Bruno Haible  <bruno@clisp.org>
19059
19060         gnulib-tool: Obey user's environment variables.
19061         * gnulib-tool (func_create_testdir): When creating built sources,
19062         respect the environment variables for autoconf, automake, etc. given by
19063         the user.
19064
19065 2010-04-02  Bruno Haible  <bruno@clisp.org>
19066
19067         gnulib-tool: Provide the value of --m4-base to modules.
19068         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19069         of gl_m4_base.
19070
19071 2010-04-02  Eric Blake  <eblake@redhat.com>
19072
19073         maint.mk: fix some fallout
19074         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19075         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19076
19077 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19078
19079         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19080         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19081         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19082         (sc_cast_of_x_alloc_return_value): Likewise.
19083         (sc_cast_of_alloca_return_value): Likewise.
19084         (sc_space_tab): Likewise.
19085         (sc_prohibit_atoi_atof): Likewise.
19086         (sc_prohibit_magic_number_exit): Likewise.
19087         (sc_error_exit_success): Likewise.
19088         (sc_file_system): Likewise.
19089         (sc_prohibit_have_config_h): Likewise.
19090         (sc_require_config_h): Likewise.
19091         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19092         (sc_obsolete_symbols): Likewise.
19093         (sc_changelog): Likewise.
19094         (sc_program_name): Likewise.
19095         (sc_the_the): Likewise.
19096         (sc_trailing_blank): Likewise.
19097         (sc_two_space_separator_in_usage): Likewise.
19098         (sc_useless_cpp_parens): Likewise.
19099         (sc_GPL_version): Likewise.
19100         (sc_GFDL_version): Likewise.
19101         (sc_texinfo_acronym): Likewise.
19102         (sc_prohibit_cvs_keyword): Likewise.
19103         (sc_prohibit_stat_st_blocks): Likewise.
19104         (sc_prohibit_S_IS_definition): Likewise.
19105         (sc_redundant_const): Likewise.
19106         (sc_makefile_TAB_only_indentation): Likewise.
19107         (sc_m4_quote_check): Likewise.
19108         (sc_makefile_path_separator_check): Likewise.
19109         (sc_copyright_check): Likewise.
19110         (sc_Wundef_boolean): Likewise.
19111         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19112
19113         maint.mk: match 0 or more whitespace-before-function-call '('
19114         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19115         that have zero or two-and-more spaces between the function name
19116         and the open parenthesis.
19117         (sc_error_message_warn_fatal): Likewise.
19118         (sc_error_message_uppercase): Likewise.
19119         (sc_error_message_period): Likewise.
19120
19121 2010-03-31  Eric Blake  <eblake@redhat.com>
19122
19123         maint.mk: check for [ as well as test
19124         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19125         Based on a libvirt report by Matthias Bolte.
19126
19127         gnumakefile: don't squelch _version output
19128         * top/GNUmakefile (_version): Create one-shot dependency rather
19129         than using $(shell) when version must be regenerated.
19130         (_autoreconf): Run verbosely, by default.
19131
19132         sys_time: avoid compiler warnings
19133         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19134         unconditional, fixing regression from 2010-03-29.
19135         Reported by Simon Josefsson.
19136
19137 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19138
19139         maint.mk: s/_header_without_use/_sc_header_without_use/
19140         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19141         (sc_prohibit_assert_without_use): Use the new name.
19142         (sc_prohibit_close_stream_without_use): Likewise.
19143         (sc_prohibit_getopt_without_use): Likewise.
19144         (sc_prohibit_quotearg_without_use): Likewise.
19145         (sc_prohibit_quote_without_use): Likewise.
19146         (sc_prohibit_long_options_without_use): Likewise.
19147         (sc_prohibit_inttostr_without_use): Likewise.
19148         (sc_prohibit_ignore_value_without_use): Likewise.
19149         (sc_prohibit_error_without_use): Likewise.
19150         (sc_prohibit_xalloc_without_use): Likewise.
19151         (sc_prohibit_hash_without_use): Likewise.
19152         (sc_prohibit_hash_pjw_without_use): Likewise.
19153         (sc_prohibit_safe_read_without_use): Likewise.
19154         (sc_prohibit_argmatch_without_use): Likewise.
19155         (sc_prohibit_canonicalize_without_use): Likewise.
19156         (sc_prohibit_root_dev_ino_without_use): Likewise.
19157         (sc_prohibit_openat_without_use): Likewise.
19158         (sc_prohibit_c_ctype_without_use): Likewise.
19159         (sc_prohibit_signal_without_use): Likewise.
19160         (sc_prohibit_intprops_without_use): Likewise.
19161
19162 2010-03-30  Eric Blake  <eblake@redhat.com>
19163
19164         maint: improve module indicators
19165         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19166         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19167         columns, and avoid extra macro expansion.
19168
19169         fdopendir: work around FreeBSD bug
19170         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19171         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19172         * modules/dirent (Makefile.am): Substitute it.
19173         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19174         declaration.
19175         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19176         fix.
19177         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19178
19179 2010-03-29  Bruno Haible  <bruno@clisp.org>
19180
19181         Emit #pragma system_header after the inclusion guard, not before.
19182         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19183         guard that spans the entire file, not before. This enables an
19184         optimization in GCC's preprocessor.
19185         * lib/ctype.in.h: Likewise.
19186         * lib/dirent.in.h: Likewise.
19187         * lib/errno.in.h: Likewise.
19188         * lib/float.in.h: Likewise.
19189         * lib/getopt.in.h: Likewise.
19190         * lib/iconv.in.h: Likewise.
19191         * lib/langinfo.in.h: Likewise.
19192         * lib/locale.in.h: Likewise.
19193         * lib/math.in.h: Likewise.
19194         * lib/netdb.in.h: Likewise.
19195         * lib/netinet_in.in.h: Likewise.
19196         * lib/pty.in.h: Likewise.
19197         * lib/sched.in.h: Likewise.
19198         * lib/se-selinux.in.h: Likewise.
19199         * lib/search.in.h: Likewise.
19200         * lib/spawn.in.h: Likewise.
19201         * lib/stdarg.in.h: Likewise.
19202         * lib/stdint.in.h: Likewise.
19203         * lib/string.in.h: Likewise.
19204         * lib/strings.in.h: Likewise.
19205         * lib/sys_file.in.h: Likewise.
19206         * lib/sys_ioctl.in.h: Likewise.
19207         * lib/sys_time.in.h: Likewise.
19208         * lib/sys_times.in.h: Likewise.
19209         * lib/sys_utsname.in.h: Likewise.
19210         * lib/sys_wait.in.h: Likewise.
19211         * lib/sysexits.in.h: Likewise.
19212         * lib/wctype.in.h: Likewise.
19213
19214 2010-03-28  James Youngman  <jay@gnu.org>
19215
19216         save-cwd: don't leak a file descriptor when the caller execs.
19217         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19218         saved file descriptor.
19219         * modules/save-cwd (Depends-on): Depend on cloexec.
19220
19221 2010-03-29  Bruno Haible  <bruno@clisp.org>
19222
19223         Remove vestiges of fts-lgpl module.
19224         * lib/fts_.h: Assume GNULIB_FTS is 1.
19225         * lib/fts.c: Likewise.
19226         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19227
19228 2010-03-28  Bruno Haible  <bruno@clisp.org>
19229
19230         Fix definition of tests witness macro.
19231         * gnulib-tool (func_import): Fix definition of witness macro.
19232
19233 2010-03-28  Bruno Haible  <bruno@clisp.org>
19234
19235         Fix ioctl's protoype on glibc systems.
19236         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19237         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19238         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19239         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19240         signature. If not, arrange to replace the ioctl function.
19241         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19242         REPLACE_IOCTL.
19243         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19244         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19245         Reported by Ludovic Courtès <ludo@gnu.org>.
19246
19247 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19248
19249         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19250         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19251         made it so grep -r --include=GLOB* ... did not work.
19252
19253 2010-03-26  Jim Meyering  <meyering@redhat.com>
19254             Eric Blake  <eblake@redhat.com>
19255
19256         maint.mk: prohibit use of test's -o and -a operators
19257         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19258
19259 2010-03-28  Bruno Haible  <bruno@clisp.org>
19260
19261         Remove unused GNULIB_XYZ macro definitions.
19262         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19263         invocation.
19264
19265 2010-03-28  Bruno Haible  <bruno@clisp.org>
19266
19267         Mark privileged tests modules.
19268         * modules/idpriv-drop-tests (Status): New section.
19269         * modules/idpriv-droptemp-tests (Status): New section.
19270
19271 2010-03-28  Bruno Haible  <bruno@clisp.org>
19272
19273         Split C++ tests into separate tests modules.
19274         * modules/dirent-c++-tests: New file, extracted from
19275         modules/dirent-tests.
19276         * modules/dirent-tests: Depend on it.
19277         * modules/fcntl-h-c++-tests: New file, extracted from
19278         modules/fcntl-h-tests.
19279         * modules/fcntl-h-tests: Depend on it.
19280         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19281         * modules/glob-tests: Depend on it.
19282         * modules/iconv-h-c++-tests: New file, extracted from
19283         modules/iconv-h-tests.
19284         * modules/iconv-h-tests: Depend on it.
19285         * modules/langinfo-c++-tests: New file, extracted from
19286         modules/langinfo-tests.
19287         * modules/langinfo-tests: Depend on it.
19288         * modules/locale-c++-tests: New file, extracted from
19289         modules/locale-tests.
19290         * modules/locale-tests: Depend on it.
19291         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19292         * modules/math-tests: Depend on it.
19293         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19294         * modules/pty-tests: Depend on it.
19295         * modules/search-c++-tests: New file, extracted from
19296         modules/search-tests.
19297         * modules/search-tests: Depend on it.
19298         * modules/signal-c++-tests: New file, extracted from
19299         modules/signal-tests.
19300         * modules/signal-tests: Depend on it.
19301         * modules/spawn-c++-tests: New file, extracted from
19302         modules/spawn-tests.
19303         * modules/spawn-tests: Depend on it.
19304         * modules/stdio-c++-tests: New file, extracted from
19305         modules/stdio-tests.
19306         * modules/stdio-tests: Depend on it.
19307         * modules/stdlib-c++-tests: New file, extracted from
19308         modules/stdlib-tests.
19309         * modules/stdlib-tests: Depend on it.
19310         * modules/string-c++-tests: New file, extracted from
19311         modules/string-tests.
19312         * modules/string-tests: Depend on it.
19313         * modules/sys_ioctl-c++-tests: New file, extracted from
19314         modules/sys_ioctl-tests.
19315         * modules/sys_ioctl-tests: Depend on it.
19316         * modules/sys_select-c++-tests: New file, extracted from
19317         modules/sys_select-tests.
19318         * modules/sys_select-tests: Depend on it.
19319         * modules/sys_socket-c++-tests: New file, extracted from
19320         modules/sys_socket-tests.
19321         * modules/sys_socket-tests: Depend on it.
19322         * modules/sys_stat-c++-tests: New file, extracted from
19323         modules/sys_stat-tests.
19324         * modules/sys_stat-tests: Depend on it.
19325         * modules/sys_time-c++-tests: New file, extracted from
19326         modules/sys_time-tests.
19327         * modules/sys_time-tests: Depend on it.
19328         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19329         * modules/time-tests: Depend on it.
19330         * modules/unistd-c++-tests: New file, extracted from
19331         modules/unistd-tests.
19332         * modules/unistd-tests: Depend on it.
19333         * modules/wchar-c++-tests: New file, extracted from
19334         modules/wchar-tests.
19335         * modules/wchar-tests: Depend on it.
19336         * modules/wctype-c++-tests: New file, extracted from
19337         modules/wctype-tests.
19338         * modules/wctype-tests: Depend on it.
19339         Reported by Simon Josefsson.
19340
19341 2010-03-28  Bruno Haible  <bruno@clisp.org>
19342
19343         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19344         * gnulib-tool (func_exists_module): New function, extracted from
19345         func_verify_module.
19346         (func_verify_module): Use it.
19347         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19348         'foo' only if 'foo' exists.
19349         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19350         module.
19351
19352 2010-03-28  Bruno Haible  <bruno@clisp.org>
19353
19354         gnulib-tool: Add support for special categories of tests.
19355         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19356         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19357         (func_usage): Document them.
19358         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19359         inc_unportable_tests, inc_all_tests): New variables.
19360         (func_acceptable): Consider these variables.
19361         (func_modules_transitive_closure): Make it work when the 'Status' field
19362         consists of multiple words.
19363         (func_import): Store and restore the values of inc_cxx_tests,
19364         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19365         inc_all_tests in gnulib-comp.m4.
19366         (func_create_testdir): Set inc_all_tests to true.
19367         * doc/gnulib.texi (Extra tests modules): New section.
19368         Suggested by Jim Meyering.
19369
19370 2010-03-28  Bruno Haible  <bruno@clisp.org>
19371
19372         ansi-c++-opt: Allow turning off the C++ build by default.
19373         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19374         gl_CXX_CHOICE_DEFAULT_NO is defined.
19375         Requested by Eric Blake.
19376
19377 2010-03-28  Bruno Haible  <bruno@clisp.org>
19378
19379         unistd: Avoid #define replacements in C++ mode.
19380         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19381         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19382         setsockopt, shutdown, select): In C++, attach a warning to the function
19383         if possible, rather than #defining the symbol to a dysfunctional alias.
19384         Reported by John W. Eaton <jwe@gnu.org>.
19385
19386 2010-03-28  Bruno Haible  <bruno@clisp.org>
19387
19388         Fix link errors on mingw.
19389         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19390         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19391         $(LIBSOCKET).
19392         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19393         $(LIBSOCKET).
19394
19395 2010-03-28  Bruno Haible  <bruno@clisp.org>
19396             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19397
19398         lib-ignore: Determine different options for different compilers.
19399         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19400         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19401         Add comments.
19402         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19403         * NEWS: Mention the change.
19404
19405 2010-03-27  Bruno Haible  <bruno@clisp.org>
19406
19407         Remove unused GNULIB_XYZ macro definitions.
19408         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19409         * modules/fseek (configure.ac): Likewise.
19410         * modules/ioctl (configure.ac): Likewise.
19411         * modules/open (configure.ac): Likewise.
19412         * modules/stdlib-safer (configure.ac): Likewise.
19413
19414 2010-03-27  Bruno Haible  <bruno@clisp.org>
19415
19416         Add a remark about certain modules.
19417         * modules/malloc (Comment): New section.
19418         * modules/realloc (Comment): Likewise.
19419         * modules/sigpipe (Comment): Likewise.
19420
19421 2010-03-27  Bruno Haible  <bruno@clisp.org>
19422
19423         Resolve conflict between the two kinds of module indicators.
19424         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19425         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19426         * modules/canonicalize (configure.ac): Invoke
19427         gl_MODULE_INDICATOR_FOR_TESTS.
19428         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19429         GNULIB_XYZ.
19430         * tests/test-dirent-c++.cc: Likewise.
19431         * tests/test-dirent-safer.c: Likewise.
19432         * tests/test-dup2.c: Likewise.
19433         * tests/test-fchdir.c: Likewise.
19434         * tests/test-fcntl-h-c++.cc: Likewise.
19435         * tests/test-getopt.c: Likewise.
19436         * tests/test-getopt.h: Likewise.
19437         * tests/test-langinfo-c++.cc: Likewise.
19438         * tests/test-locale-c++.cc: Likewise.
19439         * tests/test-math-c++.cc: Likewise.
19440         * tests/test-pty-c++.cc: Likewise.
19441         * tests/test-search-c++.cc: Likewise.
19442         * tests/test-signal-c++.cc: Likewise.
19443         * tests/test-spawn-c++.cc: Likewise.
19444         * tests/test-stdio-c++.cc: Likewise.
19445         * tests/test-stdlib-c++.cc: Likewise.
19446         * tests/test-string-c++.cc: Likewise.
19447         * tests/test-sys_ioctl-c++.cc: Likewise.
19448         * tests/test-sys_select-c++.cc: Likewise.
19449         * tests/test-sys_socket-c++.cc: Likewise.
19450         * tests/test-sys_stat-c++.cc: Likewise.
19451         * tests/test-sys_time-c++.cc: Likewise.
19452         * tests/test-time-c++.cc: Likewise.
19453         * tests/test-unistd-c++.cc: Likewise.
19454         * tests/test-wchar-c++.cc: Likewise.
19455         * tests/uninorm/test-u8-nfc.c: Likewise.
19456         * tests/uninorm/test-u8-nfd.c: Likewise.
19457         * tests/uninorm/test-u8-nfkc.c: Likewise.
19458         * tests/uninorm/test-u8-nfkd.c: Likewise.
19459         * tests/uninorm/test-u16-nfc.c: Likewise.
19460         * tests/uninorm/test-u16-nfd.c: Likewise.
19461         * tests/uninorm/test-u16-nfkc.c: Likewise.
19462         * tests/uninorm/test-u16-nfkd.c: Likewise.
19463         * tests/uninorm/test-u32-nfc.c: Likewise.
19464         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19465         * tests/uninorm/test-u32-nfd.c: Likewise.
19466         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19467         * tests/uninorm/test-u32-nfkc.c: Likewise.
19468         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19469         * tests/uninorm/test-u32-nfkd.c: Likewise.
19470         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19471         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19472
19473 2010-03-27  Bruno Haible  <bruno@clisp.org>
19474
19475         Distinguish two kinds of module indicators.
19476         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19477         gl_MODULE_INDICATOR.
19478         (gl_MODULE_INDICATOR): New macro.
19479         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19480         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19481         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19482         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19483         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19484         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19485         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19486         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19487         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19488         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19489         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19490         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19491         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19492         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19493         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19494         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19495         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19496         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19497         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19498         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19499         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19500         * modules/cloexec (configure.ac): Likewise.
19501         * modules/getopt-gnu (configure.ac): Likewise.
19502         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19503         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19504         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19505         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19506
19507 2010-03-27  Bruno Haible  <bruno@clisp.org>
19508
19509         New module description field 'Comment'.
19510         * gnulib-tool: New option --extract-comment.
19511         (func_usage): Document it.
19512         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19513         (func_get_comment): New function.
19514         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19515
19516 2010-03-27  Bruno Haible  <bruno@clisp.org>
19517
19518         Addendum to 2010-02-07 commit.
19519         * gnulib-tool (func_usage): Document --extract-applicability option.
19520
19521 2010-03-27  Bruno Haible  <bruno@clisp.org>
19522
19523         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19524         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19525         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19526         rather than link errors.
19527
19528 2010-03-27  Bruno Haible  <bruno@clisp.org>
19529
19530         Avoid side effects from tests-related modules on the compilation of lib.
19531         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19532         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19533         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19534         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19535         macro.
19536         (func_import): Define a witness macro. Assign it a value that depends
19537         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
19538         tests-related modules.
19539         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
19540         Reported by Jim Meyering.
19541
19542 2010-03-27  Bruno Haible  <bruno@clisp.org>
19543
19544         Factorize common .m4 code.
19545         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19546         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
19547         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
19548         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
19549         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19550         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
19551         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
19552         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19553         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19554         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19555         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
19556         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19557         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19558         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19559         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19560         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
19561         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19562         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19563         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19564         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
19565         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
19566         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19567         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19568         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19569         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19570         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19571         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
19572         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
19573         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
19574         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19575         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19576         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19577
19578 2010-03-27  Bruno Haible  <bruno@clisp.org>
19579
19580         Fix a compilation error on Cygwin with g++ >= 4.3.
19581         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
19582         if it is undefined or if we alias it to chmod.
19583         (lstat): Don't warn about the use of this function if it is undefined
19584         or if we alias it to stat.
19585         Reported by Simon Josefsson.
19586
19587 2010-03-27  Bruno Haible  <bruno@clisp.org>
19588
19589         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
19590         * modules/getlogin (configure.ac): Update.
19591
19592         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
19593         * modules/getlogin_r (configure.ac): Update.
19594
19595         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
19596         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
19597         * modules/inet_ntop (configure.ac): Update.
19598
19599         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
19600         * modules/inet_pton (configure.ac): Update.
19601
19602         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
19603         * modules/mbslen (configure.ac): Update.
19604
19605         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
19606         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
19607         * modules/forkpty (configure.ac): Update.
19608         * modules/openpty (configure.ac): Update.
19609
19610 2010-03-26  Simon Josefsson  <simon@josefsson.org>
19611
19612         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
19613         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
19614
19615 2010-03-25  Eric Blake  <eblake@redhat.com>
19616
19617         maint: use pragma consistently across replacement headers
19618         * lib/ctype.in.h (system_header): Hoist for consistent placement.
19619         * lib/dirent.in.h (system_header): Likewise.
19620         * lib/errno.in.h (system_header): Likewise.
19621         * lib/float.in.h (system_header): Likewise.
19622         * lib/getopt.in.h (system_header): Likewise.
19623         * lib/iconv.in.h (system_header): Likewise.
19624         * lib/inttypes.in.h (system_header): Likewise.
19625         * lib/langinfo.in.h (system_header): Likewise.
19626         * lib/locale.in.h (system_header): Likewise.
19627         * lib/math.in.h (system_header): Likewise.
19628         * lib/netdb.in.h (system_header): Likewise.
19629         * lib/netinet_in.in.h (system_header): Likewise.
19630         * lib/pty.in.h (system_header): Likewise.
19631         * lib/sched.in.h (system_header): Likewise.
19632         * lib/se-selinux.in.h (system_header): Likewise.
19633         * lib/search.in.h (system_header): Likewise.
19634         * lib/spawn.in.h (system_header): Likewise.
19635         * lib/stdarg.in.h (system_header): Likewise.
19636         * lib/stdint.in.h (system_header): Likewise.
19637         * lib/string.in.h (system_header): Likewise.
19638         * lib/strings.in.h (system_header): Likewise.
19639         * lib/sys_file.in.h (system_header): Likewise.
19640         * lib/sys_ioctl.in.h (system_header): Likewise.
19641         * lib/sys_socket.in.h (system_header): Likewise.
19642         * lib/sys_times.in.h (system_header): Likewise.
19643         * lib/sys_utsname.in.h (system_header): Likewise.
19644         * lib/sys_wait.in.h (system_header): Likewise.
19645         * lib/sysexits.in.h (system_header): Likewise.
19646         * lib/unistd.in.h (system_header): Likewise.
19647         * lib/wctype.in.h (system_header): Likewise.
19648
19649         arpa/inet: fix mingw compilation warning
19650         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
19651         Reported by Matthew Bolte.
19652
19653 2010-03-25  Bruno Haible  <bruno@clisp.org>
19654
19655         Avoid collision between gnulib wrapper and libintl wrapper.
19656         * lib/printf.c (printf): Don't define if a printf wrapper is already
19657         defined in intl/printf.c.
19658         Reported by Michel Boaventura <michel@michelboaventura.com>.
19659
19660 2010-03-25  Bruno Haible  <bruno@clisp.org>
19661
19662         Use ANSI C.
19663         * lib/readutmp.h (getutent): Provide ANSI C prototype.
19664
19665 2010-03-25  Bruno Haible  <bruno@clisp.org>
19666
19667         Minor formatting changes.
19668         * lib/acosl.c: Insert space before function argument list.
19669         * lib/argz.c: Likewise.
19670         * lib/asinl.c: Likewise.
19671         * lib/expl.c: Likewise.
19672         * lib/gen-uni-tables.c: Likewise.
19673         * lib/gettext.h: Likewise.
19674         * lib/glthread/lock.h: Likewise.
19675         * lib/tanl.c: Likewise.
19676         * lib/uniname/uniname.c: Likewise.
19677         * tests/test-idpriv-drop.c: Likewise.
19678         * tests/test-idpriv-droptemp.c: Likewise.
19679         * tests/test-lock.c: Likewise.
19680         * tests/test-tls.c: Likewise.
19681         * lib/argp-help.c: Insert space before function-like macro argument
19682         list.
19683         * lib/memcmp.c: Likewise.
19684         * tests/test-base64.c: Likewise.
19685         * lib/localename.c: Insert space before sizeof's argument list.
19686         * lib/safe-alloc.h: Likewise.
19687         * lib/file-set.h: Insert space before macro argument list.
19688         * tests/test-argp.c: Likewise.
19689         * lib/argp-namefrob.h: Insert space before function parameter list.
19690         * lib/getaddrinfo.c: Likewise.
19691         * lib/netdb.in.h: Likewise.
19692         * lib/parse-duration.h: Likewise.
19693         * lib/parse-duration.c: Likewise.
19694         * lib/poll.c: Likewise.
19695         * lib/select.c: Likewise.
19696         * lib/trim.h: Likewise.
19697         * tests/test-usleep.c: Likewise.
19698         * lib/ldexpl.c: Insert space before function parameter list and before
19699         function argument list.
19700         * lib/logl.c: Likewise.
19701         * lib/sqrtl.c: Likewise.
19702         * lib/trim.c: Likewise.
19703         * lib/cosl.c: Use GNU style indentation. Insert space before function
19704         argument list.
19705         * lib/sinl.c: Likewise.
19706         * lib/tsearch.c: Insert space after 'for'.
19707         Reported by Jim Meyering.
19708
19709 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
19710
19711         * maint.mk (sc_Wundef_boolean): Check for the presence of the
19712         config header before grepping, as it's not present before
19713         autoreconf/configure are run.  Reported by Simon Josefsson.
19714
19715 2010-03-23  Bruno Haible  <bruno@clisp.org>
19716
19717         pt_chown: Make it work with automake < 1.11.
19718         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
19719         Reported by Simon Josefsson.
19720
19721 2010-03-23  Bruno Haible  <bruno@clisp.org>
19722
19723         pt_chown: Don't depend on GPLed modules.
19724         * lib/pt_chown.c: Don't include idpriv.h.
19725         (main): Don't drop privileges.
19726         * modules/pt_chown (Depends-on): Remove idpriv-drop.
19727         Reported by Simon Josefsson.
19728
19729 2010-03-24  Simon Josefsson  <simon@josefsson.org>
19730
19731         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
19732         suggestions from karl@freefriends.org (Karl Berry).
19733
19734 2010-03-22  Eric Blake  <eblake@redhat.com>
19735
19736         gethostname: further tweaks
19737         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
19738         are overriding gethostname.
19739         Suggested by Bruno Haible.
19740
19741 2010-03-21  Bruno Haible  <bruno@clisp.org>
19742
19743         Fix comments.
19744         * lib/forkpty.c (rpl_forkpty): Fix comment.
19745         * lib/openpty.c (rpl_openpty): Likewise.
19746         Reported by Eric Blake.
19747
19748 2010-03-22  Eric Blake  <eblake@redhat.com>
19749
19750         gethostname: fix build on mingw
19751         * lib/unistd.in.h (includes): Work around fact that mingw
19752         <winsock2.h> re-includes <unistd.h>, by avoiding any
19753         redeclarations if we are being included by <winsock2.h>.
19754         Reported by Matthias Bolte.
19755
19756 2010-03-21  Bruno Haible  <bruno@clisp.org>
19757
19758         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19759         * lib/forkpty.c (forkpty): New replacement function, from glibc with
19760         modifications.
19761         * lib/pty.in.h (forkpty): Update declaration. Add comments.
19762         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
19763         provide the replacement.
19764         * modules/forkpty (Depends-on): Add openpty, login_tty.
19765         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
19766         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
19767         * doc/glibc-functions/forkpty.texi: More supported platforms.
19768         * config/srclist.txt: Add forkpty.c (commented).
19769
19770 2010-03-21  Bruno Haible  <bruno@clisp.org>
19771
19772         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
19773         (Makefile.am): Verify that PTY_LIB is defined.
19774
19775         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
19776
19777 2010-03-21  Bruno Haible  <bruno@clisp.org>
19778
19779         Tests for module 'login_tty'.
19780         * modules/login_tty-tests: New file.
19781         * tests/test-login_tty.c: New file.
19782
19783         New module 'login_tty'.
19784         * lib/login_tty.c: New file.
19785         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
19786         * modules/login_tty: New file.
19787         * doc/glibc-functions/login_tty.texi: Mention the new module.
19788
19789 2010-03-21  Bruno Haible  <bruno@clisp.org>
19790
19791         login_tty: Documentation.
19792         * doc/glibc-functions/login_tty.texi: New file.
19793         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
19794
19795 2010-03-21  Bruno Haible  <bruno@clisp.org>
19796
19797         pty: Consistent macro naming.
19798         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
19799         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
19800         * modules/pty (configure.ac): Update.
19801
19802 2010-03-21  Bruno Haible  <bruno@clisp.org>
19803
19804         Tests for openpty: Make stricter.
19805         * tests/test-openpty.c (main): Add test of canonical processing and
19806         erase.
19807         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
19808
19809         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19810         * lib/openpty.c (openpty): New replacement function.
19811         * lib/pty.in.h: Include <termios.h>.
19812         (openpty): Update declaration. Add comments.
19813         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
19814         is not declared, arrange to provide the replacement. Check for _getpty
19815         and posix_openpt.
19816         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
19817         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
19818         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
19819         * modules/pty-tests (test_pty_c___LDADD): New variable.
19820         * doc/glibc-functions/openpty.texi: More supported platforms.
19821
19822 2010-03-21  Bruno Haible  <bruno@clisp.org>
19823
19824         setenv: Tweaks.
19825         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
19826         the test program.
19827         * doc/posix-functions/setenv.texi: Update platforms list.
19828
19829 2010-03-21  Bruno Haible  <bruno@clisp.org>
19830
19831         New module 'unlockpt'.
19832         * lib/unlockpt.c: New file, from glibc with modifications.
19833         * m4/unlockpt.m4: New file.
19834         * modules/unlockpt: New file.
19835         * lib/stdlib.in.h (unlockpt): New declaration.
19836         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
19837         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
19838         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
19839         HAVE_UNLOCKPT.
19840         * doc/posix-functions/unlockpt.texi: Mention the new module.
19841         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
19842         * config/srclist.txt: Add unlockpt.c (commented).
19843
19844 2010-03-21  Jim Meyering  <meyering@redhat.com>
19845
19846         maint.mk: prohibit inclusion of "intprops.h" without use
19847         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
19848
19849 2010-03-21  Bruno Haible  <bruno@clisp.org>
19850
19851         New module 'grantpt'.
19852         * lib/grantpt.c: New file, from glibc with modifications.
19853         * m4/grantpt.m4: New file.
19854         * modules/grantpt: New file.
19855         * lib/stdlib.in.h (grantpt): New declaration.
19856         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
19857         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
19858         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
19859         HAVE_GRANTPT.
19860         * doc/posix-functions/grantpt.texi: Mention the new module.
19861         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
19862         * config/srclist.txt: Add grantpt.c (commented).
19863
19864 2010-03-21  Bruno Haible  <bruno@clisp.org>
19865
19866         New module 'pt_chown'.
19867         * lib/pt_chown.c: New file, from glibc with modifications.
19868         * lib/pty-private.h: New file, from glibc with modifications.
19869         * modules/pt_chown: New file.
19870         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
19871
19872 2010-03-21  Bruno Haible  <bruno@clisp.org>
19873
19874         Tests for module 'ptsname'.
19875         * modules/ptsname-tests: New file.
19876         * tests/test-ptsname.c: New file.
19877
19878         New module 'ptsname'.
19879         * lib/ptsname.c: New file, from glibc with modifications.
19880         * m4/ptsname.m4: New file.
19881         * modules/ptsname: New file.
19882         * lib/stdlib.in.h (ptsname): New declaration.
19883         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
19884         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
19885         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
19886         HAVE_PTSNAME.
19887         * doc/posix-functions/ptsname.texi: Mention the new module.
19888         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
19889         * config/srclist.txt: Add ptsname.c (commented).
19890
19891 2010-03-21  Bruno Haible  <bruno@clisp.org>
19892
19893         Tests for module 'ttyname_r'.
19894         * modules/ttyname_r-tests: New file.
19895         * tests/test-ttyname_r.c: New file.
19896
19897         New module 'ttyname_r'.
19898         * lib/ttyname_r.c: New file.
19899         * m4/ttyname_r.m4: New file.
19900         * modules/ttyname_r: New file.
19901         * lib/unistd.in.h (ttyname_r): New declaration.
19902         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
19903         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
19904         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
19905         HAVE_TTYNAME_R.
19906         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
19907         * doc/posix-functions/ttyname_r.texi: Mention the new module.
19908
19909 2010-03-20  Bruno Haible  <bruno@clisp.org>
19910
19911         signal: Undefine macro definitions in C++ mode.
19912         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
19913         sigfillset): Undefine macro definitions from the system header in C++
19914         mode.
19915         Reported by John W. Eaton <jwe@gnu.org>.
19916
19917 2010-03-20  Bruno Haible  <bruno@clisp.org>
19918
19919         Ensure no #include statements inside extern "C" { ... }.
19920         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
19921         contain #include statements.
19922         * lib/time.in.h: Likewise.
19923
19924 2010-03-20  Bruno Haible  <bruno@clisp.org>
19925
19926         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
19927         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
19928         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
19929         Reported by John W. Eaton <jwe@gnu.org>.
19930
19931 2010-03-20  Bruno Haible  <bruno@clisp.org>
19932
19933         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
19934         Reported by Jim Meyering.
19935
19936 2010-03-20  Bruno Haible  <bruno@clisp.org>
19937
19938         pipe: Set errno upon failure.
19939         * lib/pipe.h: Specify that when -1 is returned, errno is set.
19940         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
19941         errno value in error message.
19942
19943 2010-03-20  Bruno Haible  <bruno@clisp.org>
19944             Jim Meyering  <meyering@redhat.com>
19945
19946         lchown: Avoid "unused variable" warning.
19947         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
19948
19949 2010-03-20  Bruno Haible  <bruno@clisp.org>
19950
19951         Work around unlink() bug on MacOS X 10.5.6.
19952         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
19953         attempting to unlink a parent directory.
19954         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
19955         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
19956         activate for the replacement function.
19957         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
19958
19959 2010-03-20  Bruno Haible  <bruno@clisp.org>
19960
19961         Fix link errors on Solaris 8.
19962         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
19963         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
19964
19965 2010-03-19  Jim Meyering  <meyering@redhat.com>
19966
19967         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
19968         The _LIBC implementation of build_range_exp correctly honors the
19969         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
19970         However, the non-_LIBC implementation would ignore that syntax-bit
19971         flag and return REG_ERANGE unconditionally.
19972         This change makes it honor that flag.
19973         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
19974         Make two pointer parameters "const".
19975         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
19976         (parse_bracket_exp): Update caller.
19977
19978         regex.m4: correct the reversed range endpoint ([b-a]) test
19979         * m4/regex.m4: When requiring that [b-a] evoke failure,
19980         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
19981         test pass once again for x86-based systems.
19982
19983 2010-03-19  Bruno Haible  <bruno@clisp.org>
19984
19985         scandir: Fix link error on Solaris 8.
19986         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
19987         macros.
19988
19989 2010-03-19  Bruno Haible  <bruno@clisp.org>
19990
19991         getusershell: Fix documentation.
19992         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
19993         module.
19994         * doc/glibc-functions/setusershell.texi: Likewise.
19995
19996         getusershell: Provide declaration, missing on Solaris 9.
19997         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
19998         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
19999         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20000         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20002         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20003         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20004         HAVE_GETUSERSHELL.
20005         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20006
20007 2010-03-19  Bruno Haible  <bruno@clisp.org>
20008
20009         wctype: Provide iswblank function.
20010         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20011         exists and is fine.
20012         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20013         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20014         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20015         * doc/posix-functions/iswblank.texi: Update.
20016
20017 2010-03-19  Bruno Haible  <bruno@clisp.org>
20018
20019         Tests of module 'pty' in C++ mode.
20020         * modules/pty-tests: New file.
20021         * tests/test-pty-c++.cc: New file.
20022         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20023
20024 2010-03-19  Eric Blake  <eblake@redhat.com>
20025
20026         logb: fix documentation
20027         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20028         1.5 declaration bug.
20029
20030         forkpty, openpty: prefer glibc's const-safe prototype
20031         * lib/forkpty.c (rpl_forkpty): New file.
20032         * lib/openpty.c (rpl_openpty): Likewise.
20033         * modules/forkpty (Files): Distribute it.
20034         * modules/openpty (Files): Likewise.
20035         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20036         check...
20037         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20038         replacement for for non-const BSD signature.
20039         * modules/pty (Makefile.am): Substitute witnesses.
20040         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20041         * tests/test-forkpty.c: Update signature check.
20042         * tests/test-openpty.c: Likewise.
20043         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20044         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20045
20046         forkpty, openpty: split functions into new modules
20047         * modules/pty (Makefile.am): Substitute new witnesses.
20048         (Libraries): Move library detection...
20049         * modules/forkpty: ...into new module.
20050         * modules/openpty: Another new module.
20051         * modules/pty-tests: Rename and split...
20052         * modules/forkpty-tests: ...to this...
20053         * modules/openpty-tests: ...and this.
20054         * tests/test-pty.c: Rename and split...
20055         * tests/test-forkpty.c: ...to this...
20056         * tests/test-openpty.c: ...and this.
20057         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20058         (gl_PTY): Split library searching...
20059         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20060         (gl_FORKPTY, gl_OPENPTY): New macros.
20061         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20062         * NEWS: Mention the split.
20063         * MODULES.html.sh (Misc): Document the modules.
20064         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20065         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20066
20067         pty: improve replacement header
20068         * lib/pty.in.h: New file.
20069         * modules/pty (Files): Ship it.
20070         (Makefile.am): Always build replacement.
20071         * m4/pty.m4: Rename...
20072         * m4/pty_h.m4: ...to this.
20073         (gl_PTY): Modernize setting of witness macros; update check of
20074         forkpty to take proper advantage of cache.
20075         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20076
20077         getopt: avoid compiler warning
20078         * lib/getopt.c (attribute_hidden): Remove unused macro.
20079
20080 2010-03-18  Bruno Haible  <bruno@clisp.org>
20081
20082         Fix link errors on Solaris 8.
20083         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20084         * modules/search-tests (test_search_c___LDADD): Likewise.
20085         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20086         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20087         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20088         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20089         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20090         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20091         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20092
20093 2010-03-18  Bruno Haible  <bruno@clisp.org>
20094
20095         Fix bug introduced on 2010-03-14.
20096         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20097         (gl_SPAWN_H): Require it.
20098         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20099         Reported by Simon Josefsson.
20100
20101 2010-03-18  Bruno Haible  <bruno@clisp.org>
20102
20103         Fix typo introduced on 2009-12-31.
20104         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20105         posix_spawn_file_actions_adddup2.
20106
20107 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20108         and Eric Blake  <eblake@redhat.com>
20109
20110         test-vc-list-files-git: make more robust
20111         * tests/test-vc-list-files-git.sh: Unset problematic environment
20112         variables.  Chain commands together.
20113
20114 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20115
20116         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20117         `AC_CHECK_DECL' invocation.
20118
20119 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20120
20121         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20122         appears before executable statements. Suggested by Petr Sumbera
20123         <Petr.Sumbera@Sun.COM>.
20124
20125 2010-03-14  Bruno Haible  <bruno@clisp.org>
20126
20127         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20128         portability problems. Instead use a simpler test.
20129         (main): Check that invalid arguments are rejected only on Linux.
20130
20131 2010-03-14  Bruno Haible  <bruno@clisp.org>
20132
20133         Fix bug introduced on 2009-12-31.
20134         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20135         gl_PREREQ_SYS_H_WINSOCK2 always.
20136         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20137         SYS_SOCKET_H variable.
20138         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20139         Update comments.
20140         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20141         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20142         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20143         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20144         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20145
20146 2010-03-14  Bruno Haible  <bruno@clisp.org>
20147
20148         Fix values returned by sinl, cosl.
20149         * lib/trigl.h: Add specification comments.
20150         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20151         that combines the values from the precomputed table with the values of
20152         the Chebyshev polynomials.
20153
20154 2010-03-14  Bruno Haible  <bruno@clisp.org>
20155
20156         Fix compilation error when modules 'posix_spawn[p]' are not used.
20157         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20158         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20159
20160 2010-03-14  Bruno Haible  <bruno@clisp.org>
20161
20162         Fix compilation error on mingw when module 'time_r' is not used.
20163         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20164         is 1.
20165         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20166         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20167         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20168         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20169
20170 2010-03-14  Bruno Haible  <bruno@clisp.org>
20171
20172         Fix compilation error with Sun C.
20173         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20174         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20175         instead of GCC specific ULONG_LONG_MAX.
20176         * lib/xstrtoll.c: Likewise.
20177         * lib/xstrtoull.c: Likewise.
20178
20179 2010-03-13  Bruno Haible  <bruno@clisp.org>
20180
20181         Allow the user to disable C++ code and tests.
20182         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20183         (gl_PROG_ANSI_CXX): Require it.
20184
20185 2010-03-13  Bruno Haible  <bruno@clisp.org>
20186
20187         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20188         cases.
20189
20190 2010-03-13  Bruno Haible  <bruno@clisp.org>
20191
20192         Test that gnulib does not break the standard C++ headers.
20193         * tests/test-locale-c++2.cc: New file.
20194         * modules/locale-tests (Files): Add it.
20195         (Makefile.am): Compile it for test-locale-c++.
20196         * tests/test-math-c++2.cc: New file.
20197         * modules/math-tests (Files): Add it.
20198         (Makefile.am): Compile it for test-math-c++.
20199         * tests/test-signal-c++2.cc: New file.
20200         * modules/signal-tests (Files): Add it.
20201         (Makefile.am): Compile it for test-signal-c++.
20202         * tests/test-stdio-c++2.cc: New file.
20203         * modules/stdio-tests (Files): Add it.
20204         (Makefile.am): Compile it for test-stdio-c++.
20205         * tests/test-stdlib-c++2.cc: New file.
20206         * modules/stdlib-tests (Files): Add it.
20207         (Makefile.am): Compile it for test-stdlib-c++.
20208         * tests/test-string-c++2.cc: New file.
20209         * modules/string-tests (Files): Add it.
20210         (Makefile.am): Compile it for test-string-c++.
20211         * tests/test-time-c++2.cc: New file.
20212         * modules/time-tests (Files): Add it.
20213         (Makefile.am): Compile it for test-time-c++.
20214         Reported by John W. Eaton <jwe@gnu.org>.
20215
20216 2010-03-13  Bruno Haible  <bruno@clisp.org>
20217
20218         * gnulib-tool (func_usage): Clarify which options are available for
20219         --create-testdir and --create-megatestdir.
20220
20221 2010-03-13  Bruno Haible  <bruno@clisp.org>
20222
20223         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20224         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20225         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20226         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20227         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20228         when appropriate.
20229         Reported by Jim Meyering.
20230
20231 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20232
20233         * gnulib-tool (func_import): Explain origin of code.
20234
20235 2010-03-12  Bruno Haible  <bruno@clisp.org>
20236
20237         Fix problem with automake's definition of CXXLINK.
20238         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20239         Reported by Simon Josefsson and Ludovic Courtès.
20240
20241 2010-03-12  Bruno Haible  <bruno@clisp.org>
20242
20243         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20244         stable releases.
20245
20246 2010-03-11  Bruno Haible  <bruno@clisp.org>
20247
20248         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20249         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20250         whether the system provides one variant or multiple variants of the
20251         function.
20252         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20253         C++ compilers.
20254         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20255         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20256         Reported by Jim Meyering.
20257
20258 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20259
20260         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20261
20262 2010-03-08  Bruno Haible  <bruno@clisp.org>
20263
20264         gnulib-tool: Add support for --libtool in --create-testdir.
20265         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20266         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20267
20268 2010-03-08  Eric Blake  <eblake@redhat.com>
20269
20270         gnulib-tool.texi: mention possibility of git submodule
20271         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20272         submodules.
20273         * doc/.gitignore: Ignore another generated file.
20274
20275 2010-03-08  Karl Berry  <karl@gnu.org>
20276
20277         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20278         of committing gnulib files while skipping others.
20279
20280 2010-03-07  Bruno Haible  <bruno@clisp.org>
20281
20282         Tests of module 'wctype' in C++ mode.
20283         * tests/test-wctype-c++.cc: New file.
20284         * modules/wctype-tests (Files): Add it and tests/signature.h.
20285         (Depends-on): Add ansi-c++-opt.
20286         (Makefile.am): Arrange to compile and run test-wctype-c++.
20287
20288         Tests of module 'wchar' in C++ mode.
20289         * tests/test-wchar-c++.cc: New file.
20290         * modules/wchar-tests (Files): Add it and tests/signature.h.
20291         (Depends-on): Add ansi-c++-opt.
20292         (Makefile.am): Arrange to compile and run test-wchar-c++.
20293         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20294         gl_MODULE_INDICATOR.
20295
20296         Tests of module 'unistd' in C++ mode.
20297         * tests/test-unistd-c++.cc: New file.
20298         * modules/unistd-tests (Files): Add it and tests/signature.h.
20299         (Depends-on): Add ansi-c++-opt.
20300         (Makefile.am): Arrange to compile and run test-unistd-c++.
20301         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20302         gl_MODULE_INDICATOR.
20303
20304         Tests of module 'time' in C++ mode.
20305         * tests/test-time-c++.cc: New file.
20306         * modules/time-tests (Files): Add it and tests/signature.h.
20307         (Depends-on): Add ansi-c++-opt.
20308         (Makefile.am): Arrange to compile and run test-time-c++.
20309         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20310
20311         Tests of module 'sys_time' in C++ mode.
20312         * tests/test-sys_time-c++.cc: New file.
20313         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20314         (Depends-on): Add ansi-c++-opt.
20315         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20316         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20317         gl_MODULE_INDICATOR.
20318
20319         Tests of module 'sys_stat' in C++ mode.
20320         * tests/test-sys_stat-c++.cc: New file.
20321         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20322         (Depends-on): Add ansi-c++-opt.
20323         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20324         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20325         gl_MODULE_INDICATOR.
20326
20327         Tests of module 'sys_socket' in C++ mode.
20328         * tests/test-sys_socket-c++.cc: New file.
20329         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20330         (Depends-on): Add ansi-c++-opt.
20331         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20332         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20333         gl_MODULE_INDICATOR.
20334
20335         Tests of module 'sys_select' in C++ mode.
20336         * tests/test-sys_select-c++.cc: New file.
20337         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20338         (Depends-on): Add ansi-c++-opt.
20339         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20340         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20341         gl_MODULE_INDICATOR.
20342
20343         Tests of module 'sys_ioctl' in C++ mode.
20344         * tests/test-sys_ioctl-c++.cc: New file.
20345         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20346         (Depends-on): Add ansi-c++-opt.
20347         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20348         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20349         gl_MODULE_INDICATOR.
20350
20351         Tests of module 'string' in C++ mode.
20352         * tests/test-string-c++.cc: New file.
20353         * modules/string-tests (Files): Add it and tests/signature.h.
20354         (Depends-on): Add ansi-c++-opt.
20355         (Makefile.am): Arrange to compile and run test-string-c++.
20356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20357         gl_MODULE_INDICATOR.
20358
20359         Tests of module 'stdlib' in C++ mode.
20360         * tests/test-stdlib-c++.cc: New file.
20361         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20362         (Depends-on): Add ansi-c++-opt.
20363         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20364         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20365         gl_MODULE_INDICATOR.
20366
20367         Tests of module 'stdio' in C++ mode.
20368         * tests/test-stdio-c++.cc: New file.
20369         * modules/stdio-tests (Files): Add it and tests/signature.h.
20370         (Depends-on): Add ansi-c++-opt.
20371         (Makefile.am): Arrange to compile and run test-stdio-c++.
20372         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20373         gl_MODULE_INDICATOR.
20374
20375         Tests of module 'spawn' in C++ mode.
20376         * tests/test-spawn-c++.cc: New file.
20377         * modules/spawn-tests (Files): Add it and tests/signature.h.
20378         (Depends-on): Add ansi-c++-opt.
20379         (Makefile.am): Arrange to compile and run test-spawn-c++.
20380         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20381         gl_MODULE_INDICATOR.
20382
20383         Tests of module 'signal' in C++ mode.
20384         * tests/test-signal-c++.cc: New file.
20385         * modules/signal-tests (Files): Add it and tests/signature.h.
20386         (Depends-on): Add ansi-c++-opt.
20387         (Makefile.am): Arrange to compile and run test-signal-c++.
20388         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20389         gl_MODULE_INDICATOR.
20390
20391         Tests of module 'search' in C++ mode.
20392         * tests/test-search-c++.cc: New file.
20393         * modules/search-tests (Files): Add it and tests/signature.h.
20394         (Depends-on): Add ansi-c++-opt.
20395         (Makefile.am): Arrange to compile and run test-search-c++.
20396         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20397         gl_MODULE_INDICATOR.
20398
20399         Tests of module 'math' in C++ mode.
20400         * tests/test-math-c++.cc: New file.
20401         * modules/math-tests (Files): Add it and tests/signature.h.
20402         (Depends-on): Add ansi-c++-opt.
20403         (Makefile.am): Arrange to compile and run test-math-c++.
20404         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20405
20406         Tests of module 'locale' in C++ mode.
20407         * tests/test-locale-c++.cc: New file.
20408         * modules/locale-tests (Files): Add it and tests/signature.h.
20409         (Depends-on): Add ansi-c++-opt.
20410         (Makefile.am): Arrange to compile and run test-locale-c++.
20411         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20412         gl_MODULE_INDICATOR.
20413
20414         Tests of module 'langinfo' in C++ mode.
20415         * tests/test-langinfo-c++.cc: New file.
20416         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20417         (Depends-on): Add ansi-c++-opt.
20418         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20419         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20420         gl_MODULE_INDICATOR.
20421
20422         Tests of module 'iconv-h' in C++ mode.
20423         * tests/test-iconv-h-c++.cc: New file.
20424         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20425         (Depends-on): Add ansi-c++-opt.
20426         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20427
20428         Tests of module 'glob' in C++ mode.
20429         * tests/test-glob-c++.cc: New file.
20430         * modules/glob-tests (Files): Add it.
20431         (Depends-on): Add ansi-c++-opt.
20432         (Makefile.am): Arrange to compile and run test-glob-c++.
20433
20434         Tests of module 'fcntl-h' in C++ mode.
20435         * tests/test-fcntl-h-c++.cc: New file.
20436         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20437         (Depends-on): Add ansi-c++-opt.
20438         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20439         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20440         gl_MODULE_INDICATOR.
20441
20442         Tests of module 'dirent' in C++ mode.
20443         * tests/test-dirent-c++.cc: New file.
20444         * modules/dirent-tests (Files): Add it and tests/signature.h.
20445         (Depends-on): Add ansi-c++-opt.
20446         (Makefile.am): Arrange to compile and run test-dirent-c++.
20447         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20448         gl_MODULE_INDICATOR.
20449
20450         New module 'ansi-c++-opt'.
20451         * modules/ansi-c++-opt: New file.
20452         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
20453
20454         Document C++ namespace mode.
20455         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
20456
20457         wctype: Avoid #define replacements in C++ mode.
20458         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
20459         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
20460         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
20461         In C++, define a namespaced alias symbol.
20462         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
20463         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
20464         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
20465         rule.
20466
20467         wchar: Avoid #define replacements in C++ mode.
20468         * lib/wchar.in.h: Include c++defs.h.
20469         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
20470         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20471         symbol.
20472         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20473         * modules/wchar (Depends-on): Add c++defs.
20474         (Makefile.am): Update wchar.h rule.
20475
20476         unistd: Avoid #define replacements in C++ mode.
20477         * lib/unistd.in.h: Include c++defs.h.
20478         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20479         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20480         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20481         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20482         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20483         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20484         symbol.
20485         (environ): Update.
20486         * modules/unistd (Depends-on): Add c++defs.
20487         (Makefile.am): Update unistd.h rule.
20488
20489         time: Avoid #define replacements in C++ mode.
20490         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20491         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20492         define a namespaced alias symbol.
20493         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20494         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20495         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20496         * modules/time (Depends-on): Add c++defs, warn-on-use.
20497         (Makefile.am): Update time.h rule.
20498         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20499         * modules/nanosleep (configure.ac): Likewise.
20500         * modules/strptime (configure.ac): Likewise.
20501         * modules/timegm (configure.ac): Likewise.
20502
20503         sys_time: Avoid #define replacements in C++ mode.
20504         * lib/sys_time.in.h: Include c++defs.h.
20505         (gettimeofday): In C++, define a namespaced alias symbol.
20506         * modules/sys_time (Depends-on): Add c++defs.
20507         (Makefile.am): Update sys/time.h rule.
20508
20509         sys_stat: Avoid #define replacements in C++ mode.
20510         * lib/sys_stat.in.h: Include c++defs.h.
20511         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20512         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20513         namespaced alias symbol.
20514         In C++, define a namespaced alias symbol.
20515         * modules/sys_stat (Depends-on): Add c++defs.
20516         (Makefile.am): Update sys/stat.h rule.
20517
20518         sys_socket: Avoid #define replacements in C++ mode.
20519         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20520         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20521         definitions also when the system has a <sys/socket.h>.
20522         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20523         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20524         In C++, define a namespaced alias symbol.
20525         * modules/sys_socket (Depends-on): Add c++defs.
20526         (Makefile.am): Update sys/socket.h rule.
20527
20528         sys_select: Avoid #define replacements in C++ mode.
20529         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20530         definitions also when the system has a <sys/select.h>.
20531         (select): In C++, define a namespaced alias symbol.
20532         * modules/sys_select (Depends-on): Add c++defs.
20533         (Makefile.am): Update sys/select.h rule.
20534
20535         sys_ioctl: Avoid #define replacements in C++ mode.
20536         * lib/sys_ioctl.in.h: Include c++defs.h.
20537         (ioctl): In C++, define a namespaced alias symbol.
20538         * modules/sys_ioctl (Depends-on): Add c++defs.
20539         (Makefile.am): Update sys/ioctl.h rule.
20540
20541         string: Avoid #define replacements in C++ mode.
20542         * lib/string.in.h: Include c++defs.h.
20543         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
20544         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20545         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20546         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
20547         strsignal, strverscmp): In C++, define a namespaced alias symbol.
20548         * modules/string (Depends-on): Add c++defs.
20549         (Makefile.am): Update string.h rule.
20550
20551         stdlib: Avoid #define replacements in C++ mode.
20552         * lib/stdlib.in.h: Include c++defs.h.
20553         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
20554         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
20555         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
20556         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
20557         symbol.
20558         * modules/stdlib (Depends-on): Add c++defs.
20559         (Makefile.am): Update stdlib.h rule.
20560
20561         stdio: Avoid #define replacements in C++ mode.
20562         * lib/stdio.in.h: Include c++defs.h.
20563         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
20564         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
20565         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
20566         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
20567         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
20568         namespaced alias symbol.
20569         * modules/stdio (Depends-on): Add c++defs.
20570         (Makefile.am): Update stdio.h rule.
20571
20572         spawn: Avoid #define replacements in C++ mode.
20573         * lib/spawn.in.h: Include c++defs.h.
20574         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20575         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20576         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20577         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20578         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20579         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20580         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20581         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20582         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20583         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20584         In C++, define a namespaced alias symbol.
20585         * modules/spawn (Depends-on): Add c++defs.
20586         (Makefile.am): Update spawn.h rule.
20587
20588         signal: Avoid #define replacements in C++ mode.
20589         * lib/signal.in.h: Include c++defs.h.
20590         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20591         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
20592         namespaced alias symbol.
20593         * modules/signal (Depends-on): Add c++defs.
20594         (Makefile.am): Update signal.h rule.
20595
20596         search: Avoid #define replacements in C++ mode.
20597         * lib/search.in.h: Include c++defs.h.
20598         (_gl_search_compar_fn, _gl_search_action_fn): New types.
20599         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
20600         symbol.
20601         * modules/search (Depends-on): Add c++defs.
20602         (Makefile.am): Update search.h rule.
20603
20604         math: Avoid #define replacements in C++ mode.
20605         * lib/math.in.h: Include c++defs.h.
20606         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
20607         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
20608         trunc, truncl): In C++, define a namespaced alias symbol.
20609         * modules/math (Depends-on): Add c++defs.
20610         (Makefile.am): Update math.h rule.
20611
20612         locale: Avoid #define replacements in C++ mode.
20613         * lib/locale.in.h: Include c++defs.h.
20614         (duplocale): In C++, define a namespaced alias symbol.
20615         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
20616         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
20617         * modules/locale (Depends-on): Add c++defs.
20618         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
20619
20620         langinfo: Avoid #define replacements in C++ mode.
20621         * lib/langinfo.in.h: Include c++defs.h.
20622         (nl_langinfo): In C++, define a namespaced alias symbol.
20623         * modules/langinfo (Depends-on): Add c++defs.
20624         (Makefile.am): Update langinfo.h rule.
20625
20626         iconv-h: Avoid #define replacements in C++ mode.
20627         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
20628         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
20629         symbol.
20630         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20631         whenever iconv is present.
20632         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
20633         (Makefile.am): Update iconv.h rule.
20634
20635         glob: Avoid #define replacements in C++ mode.
20636         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
20637         (_gl_glob_errfunc_fn): New type.
20638         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
20639         symbol.
20640         * modules/glob (Depends-on): Add c++defs, warn-on-use.
20641         (Makefile.am): Update glob.h rule.
20642
20643         fcntl-h: Avoid #define replacements in C++ mode.
20644         * lib/fcntl.in.h: Include c++defs.h.
20645         (fcntl, open, openat): In C++, define a namespaced alias symbol.
20646         * modules/fcntl-h (Depends-on): Add c++defs.
20647         (Makefile.am): Update fcntl.h rule.
20648
20649         dirent: Avoid #define replacements in C++ mode.
20650         * lib/dirent.in.h: Include c++defs.h.
20651         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
20652         namespaced alias symbol.
20653         (dirfd): Update declaration.
20654         * modules/dirent (Depends-on): Add c++defs.
20655         (Makefile.am): Update dirent.h rule.
20656
20657         ctype: Make it usable in C++ code.
20658         * lib/ctype.in.h: Include c++defs.h.
20659         (isblank): Declare as extern "C".
20660         * modules/ctype (Depends-on): Add c++defs.
20661         (Makefile.am): Update ctype.h rule.
20662
20663         New module 'c++defs'.
20664         * modules/c++defs: New file.
20665         * build-aux/c++defs.h: New file.
20666         Reported by John W. Eaton <jwe@gnu.org>.
20667
20668 2010-03-07  Bruno Haible  <bruno@clisp.org>
20669
20670         logb: Provide missing declaration for Cygwin.
20671         * lib/math.in.h (logb): New declaration.
20672         * m4/logb.m4: New file.
20673         * modules/logb (Files): Add m4/logb.m4.
20674         (Depends-on): Add math.
20675         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
20676         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
20677         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
20678         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
20679         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
20680
20681 2010-03-07  Bruno Haible  <bruno@clisp.org>
20682
20683         Fix test-cond link error.
20684         * tests/test-cond.c: Include <stdio.h>.
20685
20686 2010-03-07  Bruno Haible  <bruno@clisp.org>
20687
20688         Fix test-dirent-safer link error.
20689         * modules/dirent-safer-tests (Makefile.am): Define
20690         test_dirent_safer_LDADD.
20691
20692 2010-03-07  Bruno Haible  <bruno@clisp.org>
20693
20694         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
20695         among default module list.
20696
20697 2010-03-07  Bruno Haible  <bruno@clisp.org>
20698
20699         Fix link error on platforms with GNU libiconv.
20700         * modules/unistr/u8-strcoll-tests (Makefile): Define
20701         test_u8_strcoll_LDADD.
20702         * modules/unistr/u16-strcoll-tests (Makefile): Define
20703         test_u16_strcoll_LDADD.
20704         * modules/unistr/u32-strcoll-tests (Makefile): Define
20705         test_u32_strcoll_LDADD.
20706
20707 2010-03-07  Bruno Haible  <bruno@clisp.org>
20708
20709         Use POSIX declarations for socket functions.
20710         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
20711         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
20712         rpl_sendto): Change declaration to match POSIX.
20713         * lib/connect.c (rpl_connect): Likewise.
20714         * lib/accept.c (rpl_accept): Likewise.
20715         * lib/bind.c (rpl_bind): Likewise.
20716         * lib/getpeername.c (rpl_getpeername): Likewise.
20717         * lib/getsockname.c (rpl_getsockname): Likewise.
20718         * lib/recv.c (rpl_recv): Likewise.
20719         * lib/send.c (rpl_send): Likewise.
20720         * lib/recvfrom.c (rpl_recvfrom): Likewise.
20721         * lib/sendto.c (rpl_sendto): Likewise.
20722
20723 2010-03-06  Bruno Haible  <bruno@clisp.org>
20724
20725         Clarify access, euidaccess, faccessat.
20726         * doc/posix-functions/faccessat.texi: Mention security problem under
20727         "Other problems", not "Portability problems".
20728         * doc/posix-functions/access.texi: Likewise. Mention a related security
20729         problem.
20730         * doc/glibc-functions/euidaccess.texi: Mention security problems.
20731         * lib/euidaccess.c: Add comments about platforms.
20732         * lib/unistd.in.h (access, euidaccess): Add warnings.
20733
20734 2010-03-07  Bruno Haible  <bruno@clisp.org>
20735
20736         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
20737         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
20738         (POSIX_SPAWN_SETSCHEDULER): Likewise.
20739         (POSIX_SPAWN_USEVFORK): Define in a way that works when
20740         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20741         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
20742         declare when POSIX_SPAWN_SETSCHEDULER is zero.
20743         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
20744         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
20745         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
20746         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
20747         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
20748         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
20749         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
20750         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
20751         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
20752         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
20753         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
20754         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
20755         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
20756         Likewise.
20757         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
20758         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
20759         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
20760         Likewise.
20761         * tests/test-spawn.c (main): Make it work when
20762         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20763
20764 2010-03-07  Bruno Haible  <bruno@clisp.org>
20765
20766         Fix incorrect Makefile.am generation in German locale.
20767         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20768         Execute sed command with character range in C locale.
20769
20770 2010-03-06  Bruno Haible  <bruno@clisp.org>
20771
20772         Tests for module 'iconv-h'.
20773         * modules/iconv-h-tests: New file.
20774         * tests/test-iconv-h.c: New file.
20775
20776         New module 'iconv-h'.
20777         * modules/iconv-h: New file.
20778         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
20779         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
20780         (configure.ac): Remove gl_ICONV_H.
20781         (Makefile.am): Remove rule for iconv.h.
20782
20783 2010-03-06  Bruno Haible  <bruno@clisp.org>
20784
20785         More consistent naming of *.m4 files.
20786         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
20787         * modules/wctype (Files): Update.
20788
20789         More consistent naming of *.m4 files.
20790         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
20791         * modules/wchar (Files): Update.
20792
20793 2010-03-06  Jim Meyering  <meyering@redhat.com>
20794
20795         euidaccess: relax license to LGPLv2+
20796         * modules/euidaccess (License): Relax to LGPLv2+.
20797
20798 2010-03-06  Bruno Haible  <bruno@clisp.org>
20799
20800         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
20801         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
20802         (Makefile.am): Augment lib_SOURCES instead.
20803
20804 2010-03-04  Jim Meyering  <meyering@redhat.com>
20805
20806         utime: remove obsolete module
20807         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
20808         unnecessary for years, and has been marked as obsolete for 10 months.
20809         * modules/utime: Remove file.
20810         * lib/utime.c: Remove file.
20811         * m4/utime.m4: Remove file.
20812         * m4/utimes-null.m4: Remove file.
20813         * doc/posix-functions/utime.texi (utime): Remove reference to
20814         the module.  Move the sole "fixed by gnulib" item into the
20815         "problems not fixed by Gnulib" list.
20816         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
20817
20818 2010-03-05  Simon Josefsson  <simon@josefsson.org>
20819
20820         * modules/exit (License): Relax license to LGPLv2+.
20821         (Status): Mark as obsolete.
20822         * NEWS: Mention deprecated 'exit' module.
20823         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
20824         of now obsolete 'exit'.
20825
20826 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20827
20828         fts-lgpl: remove unused module
20829         * modules/fts-lgpl: Remove.
20830         * MODULES.html.sh (func_all_modules): Adjust.
20831         * check-module (find_included_lib_files): Adjust.
20832         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
20833
20834 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
20835
20836         copy-acl: enhance Solaris ACL error handling
20837         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
20838         * lib/set-mode-acl.c (qset_acl): Likewise.
20839
20840 2010-03-02  Bruno Haible  <bruno@clisp.org>
20841
20842         spawn: Don't override the system defined values on FreeBSD 8.
20843         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
20844         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
20845         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
20846         if HAVE_POSIX_SPAWN is 1.
20847         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
20848
20849 2010-03-01  Bruno Haible  <bruno@clisp.org>
20850
20851         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
20852         regarding Automake.
20853
20854 2010-02-25  Bruno Haible  <bruno@clisp.org>
20855
20856         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
20857         * gnulib-tool: Define 'echo' as a function only before the ksh alias
20858         setting, not afterwards.
20859         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
20860
20861 2010-02-24  Eric Blake  <eblake@redhat.com>
20862
20863         bootstrap, git-version-gen: use timestamp
20864         * build-aux/git-version-gen (scriptversion): Force UTC.
20865         * build-aux/bootstrap (scriptversion): New variable.
20866
20867         bootstrap: allow older git
20868         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
20869         older than 1.6.4.  Requested by the libvirt project.
20870
20871 2010-02-23  Eric Blake  <eblake@redhat.com>
20872
20873         warn-on-use: work with old autoconf
20874         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
20875         AS_VAR semantics of autoconf 2.60.
20876         Reported by Bruno Haible.
20877
20878         bootstrap: improve some comments
20879         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
20880         clarification comments.
20881
20882         gettimeofday: provide correct function
20883         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
20884         when replacement is declared, otherwise provide gettimeofday.
20885         Reported by Michael Goffioul.
20886
20887 2010-02-23  Jim Meyering  <meyering@redhat.com>
20888
20889         lib-ignore: relax license to "unlimited", not LGPLv2+
20890         * modules/lib-ignore (License): Relax to "unlimited".
20891
20892 2010-02-23  Jim Meyering  <meyering@redhat.com>
20893
20894         lib-ignore: relax license to LGPLv2+
20895         * modules/lib-ignore (License): Relax to LGPLv2+.
20896
20897 2010-02-22  Eric Blake  <eblake@redhat.com>
20898
20899         lseek: avoid bash 3.2 broken pipe bug
20900         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
20901         warning from bash 3.2.
20902         Reported by Ben Pfaff, with analysis from Bruno Haible.
20903
20904         bootstrap: support non-FSF copyright holder
20905         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
20906         bootstrap.conf override of COPYRIGHT_HOLDER.
20907         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
20908
20909         bootstrap: interoperate with gettext 0.14.1
20910         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
20911
20912         bootstrap: allow for alternate submodule location
20913         * build-aux/bootstrap (gnulib_path): New variable; use instead of
20914         hardcoding submodule location.
20915         (gnulib_mk): Allow direct use of Makefile.am.
20916
20917         bootstrap: use GNULIB_SRCDIR to reduce disk usage
20918         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
20919         rather than reconfiguring where the submodule points.
20920
20921         gettimeofday: restore support for platforms that lack function
20922         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
20923         replacement if function is missing.
20924         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
20925         * modules/sys_time (Makefile.am): Substitute it.
20926         * lib/sys_time.in.h (gettimeofday): Check it.
20927         Reported by Michael Goffioul.
20928
20929 2010-02-21  Bruno Haible  <bruno@clisp.org>
20930
20931         * lib/stdio.in.h (obstack_printf): Fix typo.
20932
20933 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
20934
20935         vc-list-files: use bzr ls's -R option
20936         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
20937         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
20938
20939 2010-02-21  Jim Meyering  <meyering@redhat.com>
20940
20941         init.sh: fix EXEEXT shims to work also for names like test-prog
20942         * tests/init.sh: Re-exec a better shell, when needed.
20943         If the current shell lacks support for posix $(...), an init.sh-using
20944         test will now try to find a shell that supports that.  If EXEEXT is
20945         nonempty, we also require support for hyphen-in-alias-name and shell
20946         substitutions like ${var#glob}.  Failure to find such a shell results
20947         in a skipped test.
20948
20949 2010-02-21  Bruno Haible  <bruno@clisp.org>
20950
20951         Really work around around "broken pipe" error message from bash 3.2.
20952         * gnulib-tool (func_reset_sigpipe): Remove function.
20953         (echo): In bash 3.2, define to a function that uses printf.
20954         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
20955
20956 2010-02-20  Bruno Haible  <bruno@clisp.org>
20957
20958         Restore support for automake 1.9.6 with autoconf 2.61.
20959         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
20960         Reported by James Youngman <jay@gnu.org>.
20961
20962 2010-02-20  Bruno Haible  <bruno@clisp.org>
20963
20964         Improve *printf warning condition.
20965         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
20966         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
20967         and the function is overridden due to SIGPIPE emulation.
20968
20969 2010-02-20  Bruno Haible  <bruno@clisp.org>
20970
20971         * lib/stdio.in.h: Tweak comments.
20972
20973 2010-02-19  Bruno Haible  <bruno@clisp.org>
20974
20975         Make it easier to find modules. New gnulib-tool option '--find'.
20976         * gnulib-tool: New option --find.
20977         (func_usage): Document it.
20978         (func_sanitize_modulelist): New function, extracted from
20979         func_all_modules.
20980         (func_all_modules): Invoke it.
20981         * doc/gnulib-tool.texi (Which modules?): New node.
20982
20983 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
20984
20985         * lib/sys_select.in.h: Provide select replacement even if
20986         sys/select.h exists on a system, for Interix.
20987
20988 2010-02-18  Jim Meyering  <meyering@redhat.com>
20989
20990         init.sh: don't use $(...) just yet
20991         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
20992         to accommodate e.g., Solaris' /bin/sh.
20993
20994 2010-02-17  Bruno Haible  <bruno@clisp.org>
20995
20996         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
20997         Reported by Ludovic Courtès <ludo@gnu.org>.
20998
20999 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21000
21001         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21002         linking with -lintl.
21003
21004 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21005
21006         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21007         if not provided by the system's netdb.h.  Reported by
21008         ludo@gnu.org (Ludovic Courtès).
21009
21010 2010-02-15  Jim Meyering  <meyering@redhat.com>
21011
21012         init.sh: improve portability and efficiency
21013         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21014         "dummy" in a for loop.
21015         Use '!', not '^' to select the complement of a character set used
21016         in a "case" statement.
21017         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21018         Suggestions from Eric Blake.
21019
21020         init.sh: automatically accommodate programs with the .exe suffix
21021         Automatically arrange for an invocation of "prog" to execute the
21022         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21023         may use the simpler "prog", yet still work when built on a system
21024         that requires specifying the added suffix.
21025         Do this by constructing a function named "prog" that invokes
21026         "prog.exe" for each .exe file in selected directories.
21027         * tests/init.sh (find_exe_basenames_): New function.
21028         (create_exe_shim_functions_): New function.
21029         (path_prepend_): Use it.
21030
21031         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21032         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21033         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21034
21035 2010-02-14  Jim Meyering  <meyering@redhat.com>
21036
21037         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21038         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21039         (sc_prohibit_hash_pjw_without_use): New rule.
21040
21041         maint.mk: allow the default upload destination dir to be overridden
21042         * top/maint.mk (upload_dest_dir_): Define with a default that
21043         preserves the status quo.
21044         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21045         Reported by Peter Simons.
21046
21047         maint.mk: prohibit inclusion of "hash.h" without_use
21048         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21049
21050 2010-02-10  Jim Meyering  <meyering@redhat.com>
21051
21052         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21053         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21054
21055 2010-02-09  Eric Blake  <ebb9@byu.net>
21056         and Bruno Haible  <bruno@clisp.org>
21057
21058         obstack-printf-posix: ensure declaration
21059         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21060         extracted from gl_FUNC_OBSTACK_PRINTF.
21061         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21062         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21063         Likewise.
21064         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21065         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21066         0.
21067
21068 2010-02-08  Bruno Haible  <bruno@clisp.org>
21069
21070         gnulib-tool: Fix typo in 2010-02-07 commit.
21071         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21072         Reported by Eric Blake.
21073
21074 2010-02-07  Bruno Haible  <bruno@clisp.org>
21075
21076         gnulib-tool: Fix up caching patches.
21077         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21078         option --no-cache. Use associative arrays when supported by the shell.
21079         (sed_comments): New variable.
21080         (modcache): Renamed from do_cache.
21081         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21082         abbreviate unnecessarily.
21083         (have_associative): New variable.
21084         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21085         way also for ksh and zsh.
21086         (func_init_sed_convert_to_cache_statements): New function, extracted
21087         from func_cache_lookup_module. Add support for associative arrays.
21088         Don't set the c_MODULE_cached variable here. Ignore all lines before
21089         the first field header. Remove only the final newline, not all trailing
21090         newlines. Support empty fields correctly. Limit the use of 'eval' to
21091         assignments.
21092         (func_get_description, func_get_status, func_get_notice,
21093         func_get_applicability, func_get_filelist, func_get_dependencies,
21094         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21095         func_get_automake_snippet, func_get_include_directive,
21096         func_get_link_directive, func_get_license, func_get_maintainer):
21097         Update documentation. List the unoptimized code first. Add support for
21098         associative arrays. Limit the use of 'eval' to assignments.
21099         (func_get_applicability): Undo stylistic pessimisations.
21100         (func_get_automake_snippet, func_get_include_directive): Reduce code
21101         duplication.
21102         (func_modules_transitive_closure, func_modules_add_dummy,
21103         func_modules_notice, func_modules_to_filelist, func_add_file,
21104         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21105         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21106         func_create_testdir, func_create_megatestdir): Update documentation.
21107
21108 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21109
21110         * gnulib-tool (func_cache_lookup_module): Store the module name
21111         belonging to the cache variable; error out if two different
21112         module names map to the same cache variable name.
21113
21114 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21115
21116         gnulib-tool: Make caching optional.
21117         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21118         Update matching short versions of --no-changelog.
21119         (func_usage): Update.
21120         (sed_extract_cache_prog): Renamed from ...
21121         (sed_extract_prog): ... this; revert to old extraction script.
21122         (func_get_description, func_get_status)
21123         (func_get_notice, func_get_applicability, func_get_filelist)
21124         (func_get_dependencies, func_get_autoconf_early_snippet)
21125         (func_get_autoconf_snippet, func_get_automake_snippet)
21126         (func_get_include_directive, func_get_link_directive)
21127         (func_get_license, func_get_maintainer): If $do_cache is false,
21128         use old, non-caching extraction scripts.
21129         Suggestion by Bruno Haible.
21130
21131 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21132
21133         gnulib-tool: cache module metainformation.
21134         * gnulib-tool (sed_extract_prog): Match newline before each
21135         header, and rewrite header to a shell variable suffix.
21136         (func_cache_var, func_cache_lookup_module): New functions,
21137         to turn a module name into a cache variable prefix, and to
21138         look up and cache module metainformation.
21139         (func_get_description, func_get_status)
21140         (func_get_notice, func_get_applicability, func_get_filelist)
21141         (func_get_dependencies, func_get_autoconf_early_snippet)
21142         (func_get_autoconf_snippet, func_get_automake_snippet)
21143         (func_get_include_directive, func_get_link_directive)
21144         (func_get_license, func_get_maintainer): Use
21145         func_cache_lookup_module.
21146
21147 2010-02-07  Bruno Haible  <bruno@clisp.org>
21148
21149         fnctl: Fix missing dependency.
21150         * modules/fcntl (Depends-on): Add getdtablesize.
21151         Reported by John W. Eaton <jwe@gnu.org>.
21152
21153 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21154
21155         Argp: fix recognition of short alias options.
21156
21157         * lib/argp-parse.c (convert_options): Fix improper use of
21158         `|' between character values.
21159         * tests/test-argp.c (group1_option): New alias option
21160         --read (-r).
21161         (group1_parser): Special handling for 'r'.
21162         (test15): New test case.
21163         (test_fun): Add test15.
21164         * tests/test-argp-2.sh: Update expected --help and --usage
21165         outputs.
21166
21167 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21168
21169         * tests/test-argp.c: Fix indentation.
21170
21171 2010-02-04  Eric Blake  <ebb9@byu.net>
21172
21173         gettimeofday: expose type of second argument
21174         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21175         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21176         * tests/test-gettimeofday.c: Use it to silence warning.
21177         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21178         the issue.
21179
21180 2010-02-03  Jim Meyering  <meyering@redhat.com>
21181
21182         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21183         * lib/regcomp.c (TYPE_SIGNED): Define.
21184         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21185
21186         regcomp.c: avoid a new -Wshadow warning
21187         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21188
21189 2010-02-01  Jim Meyering  <meyering@redhat.com>
21190
21191         removing useless parentheses in cpp #define directives
21192         For motivation, see commit c0221df4, "define STREQ(a,b)
21193         consistently, removing useless parentheses"
21194         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21195         * lib/mountlist.c (MNT_IGNORE): Likewise.
21196         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21197
21198 2010-02-01  Eric Blake  <ebb9@byu.net>
21199
21200         sys_time: use link-warning
21201         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21202         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21203         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21204         * modules/sys_time (Depends-on): Add warn-on-use.
21205         (Makefile.am): Always build replacement.
21206         (configure.ac): Update substitutions.
21207         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21208         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21209         bother with SYS_TIME_H.
21210         * modules/gettimeofday (configure.ac): Declare indicator.
21211         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21212         in use.
21213
21214         closein-tests: silence compiler warning
21215         * tests/test-closein.c (main): Ignore fread result.
21216         * modules/closein-tests (Depends-on): Add ignore-value.
21217
21218         tests: silence warning about system return
21219         * tests/test-areadlink-with-size.c (main): Ignore system result.
21220         * tests/test-areadlink.c (main): Likewise.
21221         * tests/test-areadlinkat-with-size.c (main): Likewise.
21222         * tests/test-areadlinkat.c (main): Likewise.
21223         * tests/test-canonicalize-lgpl.c (main): Likewise.
21224         * tests/test-canonicalize.c (main): Likewise.
21225         * tests/test-chown.c (main): Likewise.
21226         * tests/test-fchownat.c (main): Likewise.
21227         * tests/test-fdutimensat.c (main): Likewise.
21228         * tests/test-fstatat.c (main): Likewise.
21229         * tests/test-futimens.c (main): Likewise.
21230         * tests/test-lchown.c (main): Likewise.
21231         * tests/test-link.c (main): Likewise.
21232         * tests/test-linkat.c (main): Likewise.
21233         * tests/test-lstat.c (main): Likewise.
21234         * tests/test-mkdir.c (main): Likewise.
21235         * tests/test-mkdirat.c (main): Likewise.
21236         * tests/test-mkfifo.c (main): Likewise.
21237         * tests/test-mkfifoat.c (main): Likewise.
21238         * tests/test-mknod.c (main): Likewise.
21239         * tests/test-readlink.c (main): Likewise.
21240         * tests/test-remove.c (main): Likewise.
21241         * tests/test-rename.c (main): Likewise.
21242         * tests/test-renameat.c (main): Likewise.
21243         * tests/test-rmdir.c (main): Likewise.
21244         * tests/test-symlink.c (main): Likewise.
21245         * tests/test-symlinkat.c (main): Likewise.
21246         * tests/test-unlink.c (main): Likewise.
21247         * tests/test-unlinkat.c (main): Likewise.
21248         * tests/test-utimens.c (main): Likewise.
21249         * tests/test-utimensat.c (main): Likewise.
21250         * modules/areadlink-tests (Depends-on): Add ignore-value.
21251         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21252         * modules/areadlinkat-tests (Depends-on): Likewise.
21253         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21254         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21255         * modules/canonicalize-tests (Depends-on): Likewise.
21256         * modules/chown-tests (Depends-on): Likewise.
21257         * modules/fdutimensat-tests (Depends-on): Likewise.
21258         * modules/futimens-tests (Depends-on): Likewise.
21259         * modules/lchown-tests (Depends-on): Likewise.
21260         * modules/link-tests (Depends-on): Likewise.
21261         * modules/linkat-tests (Depends-on): Likewise.
21262         * modules/lstat-tests (Depends-on): Likewise.
21263         * modules/mkdir-tests (Depends-on): Likewise.
21264         * modules/mkfifo-tests (Depends-on): Likewise.
21265         * modules/mkfifoat-tests (Depends-on): Likewise.
21266         * modules/mknod-tests (Depends-on): Likewise.
21267         * modules/openat-tests (Depends-on): Likewise.
21268         * modules/readlink-tests (Depends-on): Likewise.
21269         * modules/remove-tests (Depends-on): Likewise.
21270         * modules/rename-tests (Depends-on): Likewise.
21271         * modules/renameat-tests (Depends-on): Likewise.
21272         * modules/rmdir-tests (Depends-on): Likewise.
21273         * modules/symlink-tests (Depends-on): Likewise.
21274         * modules/symlinkat-tests (Depends-on): Likewise.
21275         * modules/unlink-tests (Depends-on): Likewise.
21276         * modules/utimens-tests (Depends-on): Likewise.
21277         * modules/utimensat-tests (Depends-on): Likewise.
21278
21279 2010-01-31  Bruno Haible  <bruno@clisp.org>
21280
21281         Perform the same test for many <math.h> functions.
21282         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21283         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21284         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21285         of gl_MATHFUNC.
21286         * modules/acos (configure.ac): Likewise.
21287         * modules/asin (configure.ac): Likewise.
21288         * modules/atan (configure.ac): Likewise.
21289         * modules/atan2 (configure.ac): Likewise.
21290         * modules/cbrt (configure.ac): Likewise.
21291         * modules/copysign (configure.ac): Likewise.
21292         * modules/cos (configure.ac): Likewise.
21293         * modules/cosh (configure.ac): Likewise.
21294         * modules/erf (configure.ac): Likewise.
21295         * modules/erfc (configure.ac): Likewise.
21296         * modules/exp (configure.ac): Likewise.
21297         * modules/fmod (configure.ac): Likewise.
21298         * modules/hypot (configure.ac): Likewise.
21299         * modules/j0 (configure.ac): Likewise.
21300         * modules/j1 (configure.ac): Likewise.
21301         * modules/jn (configure.ac): Likewise.
21302         * modules/lgamma (configure.ac): Likewise.
21303         * modules/log (configure.ac): Likewise.
21304         * modules/log10 (configure.ac): Likewise.
21305         * modules/log1p (configure.ac): Likewise.
21306         * modules/pow (configure.ac): Likewise.
21307         * modules/remainder (configure.ac): Likewise.
21308         * modules/sin (configure.ac): Likewise.
21309         * modules/sinh (configure.ac): Likewise.
21310         * modules/tan (configure.ac): Likewise.
21311         * modules/tanh (configure.ac): Likewise.
21312         * modules/y0 (configure.ac): Likewise.
21313         * modules/y1 (configure.ac): Likewise.
21314         * modules/yn (configure.ac): Likewise.
21315         Suggested by Paolo Bonzini.
21316
21317 2010-01-31  Bruno Haible  <bruno@clisp.org>
21318
21319         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21320
21321 2010-01-31  Bruno Haible  <bruno@clisp.org>
21322
21323         Work around getdelim() bug on FreeBSD 8.0.
21324         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21325         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21326         not work.
21327         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21328         is 1.
21329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21330         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21331         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21332         a non-zero size.
21333         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21334
21335 2010-01-31  Bruno Haible  <bruno@clisp.org>
21336
21337         Work around getline() bug on FreeBSD 8.0.
21338         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21339         and a non-zero size.
21340         * tests/test-getline.c (main): Likewise.
21341         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21342         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21343
21344 2010-01-28  Eric Blake  <ebb9@byu.net>
21345
21346         regex: fix build failure
21347         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21348         platforms.
21349
21350 2010-01-28  Jim Meyering  <meyering@redhat.com>
21351
21352         regex: do not ignore memory allocation failure
21353         * lib/regex_internal.c (create_cd_newstate): Detect
21354         re_node_set_init_copy failure.   Extracted from glibc commit
21355         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21356
21357         regex: sync more white-space changes from libc
21358         * lib/regex_internal.c: White-space only changes.
21359         * lib/regexec.c: Likewise.
21360
21361         regex: add many uses of __attribute_warn_unused_result__
21362         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21363         * lib/regexec.c: Likewise.
21364         Extracted from a messy glibc commit.
21365
21366         regcomp.c: spelling and merge-artifact from glibc
21367         * lib/regcomp.c: Merge remainder of glibc's
21368         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21369
21370         regcomp.c: sync white-space changes from glibc
21371         * lib/regcomp.c: Merge to accommodate white space
21372         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21373
21374         regcomp.c: do not ignore internal return values
21375         * lib/regcomp.c: Do not ignore internal return values.
21376         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21377         but without its white-space changes and spelling fixes.
21378
21379         regex_internal.h: define __attribute_warn_unused_result__
21380         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21381
21382         maint: add a syntax-check rule to check for vulnerable Makefile.in
21383         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21384
21385 2010-01-27  Jim Meyering  <meyering@redhat.com>
21386
21387         ncftpput-ftp: clean up spaces
21388         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21389         Remove trailing blanks.
21390
21391 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21392
21393         * build-aux/git-version-gen: Fix copyright statement.
21394         * build-aux/gnupload: Likewise.
21395         * tests/test-arcfour.c: Likewise.
21396         * tests/test-arctwo.c: Likewise.
21397         * tests/test-count-one-bits.c: Likewise.
21398         * tests/test-crc.c: Likewise.
21399         * tests/test-des.c: Likewise.
21400         * tests/test-gc-arcfour.c: Likewise.
21401         * tests/test-gc-arctwo.c: Likewise.
21402         * tests/test-gc-des.c: Likewise.
21403         * tests/test-gc-hmac-md5.c: Likewise.
21404         * tests/test-gc-hmac-sha1.c: Likewise.
21405         * tests/test-gc-md2.c: Likewise.
21406         * tests/test-gc-md4.c: Likewise.
21407         * tests/test-gc-md5.c: Likewise.
21408         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21409         * tests/test-gc-rijndael.c: Likewise.
21410         * tests/test-gc-sha1.c: Likewise.
21411         * tests/test-gc.c: Likewise.
21412         * tests/test-gethostname.c: Likewise.
21413         * tests/test-gettimeofday.c: Likewise.
21414         * tests/test-hash.c: Likewise.
21415         * tests/test-hmac-md5.c: Likewise.
21416         * tests/test-hmac-sha1.c: Likewise.
21417         * tests/test-md2.c: Likewise.
21418         * tests/test-md4.c: Likewise.
21419         * tests/test-md5.c: Likewise.
21420         * tests/test-memchr.c: Likewise.
21421         * tests/test-memchr2.c: Likewise.
21422         * tests/test-memcmp.c: Likewise.
21423         * tests/test-memmem.c: Likewise.
21424         * tests/test-memrchr.c: Likewise.
21425         * tests/test-rawmemchr.c: Likewise.
21426         * tests/test-read-file.c: Likewise.
21427         * tests/test-rijndael.c: Likewise.
21428         * tests/test-sockets.c: Likewise.
21429         * tests/test-strchrnul.c: Likewise.
21430         * tests/test-strstr.c: Likewise.
21431         * tests/test-strtod.c: Likewise.
21432         * build-aux/ncftpput-ftp: Likewise.
21433
21434 2010-01-26  Eric Blake  <ebb9@byu.net>
21435
21436         ignore-value: update recommended header name
21437         * modules/ignore-value (Include): Only use <> for headers that
21438         exist in glibc.
21439
21440 2010-01-26  Jim Meyering  <meyering@redhat.com>
21441
21442         test-userspec.c: avoid compiler warnings
21443         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21444         and "initialization discards qualifiers..." warnings.
21445         Put the first "uid" in its own scope, and make char* members "const".
21446
21447 2010-01-25  Bruno Haible  <bruno@clisp.org>
21448
21449         gnulib-tool: Make warning diagnostics consistent.
21450         * gnulib-tool (func_warning): New function.
21451         Use it everywhere where gnulib-tool produces output to stderr and it is
21452         not a fatal error.
21453
21454 2010-01-25  Bruno Haible  <bruno@clisp.org>
21455
21456         Fix test dependencies.
21457         * modules/xstrtol-tests (Depends-on): Add inttypes.
21458         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
21459
21460 2010-01-25 Pádraig Brady <P@draigBrady.com>
21461
21462         syntax-check: detect incorrect boolean macro values in config.h
21463         * modules/maintainer-makefile (configure.ac): Parameterize the location
21464         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
21465         The logic is from Eric Blake and the location indicated by Jim Meyering.
21466         Note the more natural CONFIG_HEADER name is prohibited by automake
21467         for backwards compatibility reasons.
21468         * top/maint.mk (sc_Wundef_boolean): New rule.
21469
21470 2010-01-25  Jim Meyering  <meyering@redhat.com>
21471
21472         bootstrap: detect MacOS 10.6's shasum, too
21473         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21474         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21475
21476 2010-01-23  Jim Meyering  <meyering@redhat.com>
21477
21478         xstrtoll: new module
21479         * modules/xstrtoll: New file.
21480         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21481         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21482         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21483         ./configure fails if you use this module and lack "long long".
21484         * modules/xstrtoll-tests: New module.
21485         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21486         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21487         new init.sh-based test framework.
21488
21489 2010-01-24  Bruno Haible  <bruno@clisp.org>
21490
21491         Tests for module 'yn'.
21492         * modules/yn-tests: New file.
21493         * tests/test-yn.c: New file.
21494
21495         Tests for module 'y1'.
21496         * modules/y1-tests: New file.
21497         * tests/test-y1.c: New file.
21498
21499         Tests for module 'y0'.
21500         * modules/y0-tests: New file.
21501         * tests/test-y0.c: New file.
21502
21503         Tests for module 'tanh'.
21504         * modules/tanh-tests: New file.
21505         * tests/test-tanh.c: New file.
21506
21507         Tests for module 'tan'.
21508         * modules/tan-tests: New file.
21509         * tests/test-tan.c: New file.
21510
21511         Tests for module 'sqrt'.
21512         * modules/sqrt-tests: New file.
21513         * tests/test-sqrt.c: New file.
21514
21515         Tests for module 'sinh'.
21516         * modules/sinh-tests: New file.
21517         * tests/test-sinh.c: New file.
21518
21519         Tests for module 'sin'.
21520         * modules/sin-tests: New file.
21521         * tests/test-sin.c: New file.
21522
21523         Tests for module 'rint'.
21524         * modules/rint-tests: New file.
21525         * tests/test-rint.c: New file.
21526
21527         Tests for module 'remainder'.
21528         * modules/remainder-tests: New file.
21529         * tests/test-remainder.c: New file.
21530
21531         Tests for module 'pow'.
21532         * modules/pow-tests: New file.
21533         * tests/test-pow.c: New file.
21534
21535         Tests for module 'nextafter'.
21536         * modules/nextafter-tests: New file.
21537         * tests/test-nextafter.c: New file.
21538
21539         Tests for module 'modf'.
21540         * modules/modf-tests: New file.
21541         * tests/test-modf.c: New file.
21542
21543         Tests for module 'logb'.
21544         * modules/logb-tests: New file.
21545         * tests/test-logb.c: New file.
21546
21547         Tests for module 'log1p'.
21548         * modules/log1p-tests: New file.
21549         * tests/test-log1p.c: New file.
21550
21551         Tests for module 'log10'.
21552         * modules/log10-tests: New file.
21553         * tests/test-log10.c: New file.
21554
21555         Tests for module 'log'.
21556         * modules/log-tests: New file.
21557         * tests/test-log.c: New file.
21558
21559         Tests for module 'lgamma'.
21560         * modules/lgamma-tests: New file.
21561         * tests/test-lgamma.c: New file.
21562
21563         Tests for module 'ldexp'.
21564         * modules/ldexp-tests: New file.
21565         * tests/test-ldexp.c: New file.
21566
21567         Tests for module 'jn'.
21568         * modules/jn-tests: New file.
21569         * tests/test-jn.c: New file.
21570
21571         Tests for module 'j1'.
21572         * modules/j1-tests: New file.
21573         * tests/test-j1.c: New file.
21574
21575         Tests for module 'j0'.
21576         * modules/j0-tests: New file.
21577         * tests/test-j0.c: New file.
21578
21579         Tests for module 'hypot'.
21580         * modules/hypot-tests: New file.
21581         * tests/test-hypot.c: New file.
21582
21583         Tests for module 'fmod'.
21584         * modules/fmod-tests: New file.
21585         * tests/test-fmod.c: New file.
21586
21587         Tests for module 'fabs'.
21588         * modules/fabs-tests: New file.
21589         * tests/test-fabs.c: New file.
21590
21591         Tests for module 'exp'.
21592         * modules/exp-tests: New file.
21593         * tests/test-exp.c: New file.
21594
21595         Tests for module 'erfc'.
21596         * modules/erfc-tests: New file.
21597         * tests/test-erfc.c: New file.
21598
21599         Tests for module 'erf'.
21600         * modules/erf-tests: New file.
21601         * tests/test-erf.c: New file.
21602
21603         Tests for module 'cosh'.
21604         * modules/cosh-tests: New file.
21605         * tests/test-cosh.c: New file.
21606
21607         Tests for module 'cos'.
21608         * modules/cos-tests: New file.
21609         * tests/test-cos.c: New file.
21610
21611         Tests for module 'copysign'.
21612         * modules/copysign-tests: New file.
21613         * tests/test-copysign.c: New file.
21614
21615         Tests for module 'cbrt'.
21616         * modules/cbrt-tests: New file.
21617         * tests/test-cbrt.c: New file.
21618
21619         Tests for module 'atan2'.
21620         * modules/atan2-tests: New file.
21621         * tests/test-atan2.c: New file.
21622
21623         Tests for module 'atan'.
21624         * modules/atan-tests: New file.
21625         * tests/test-atan.c: New file.
21626
21627         Tests for module 'asin'.
21628         * modules/asin-tests: New file.
21629         * tests/test-asin.c: New file.
21630
21631         Tests for module 'acos'.
21632         * modules/acos-tests: New file.
21633         * tests/test-acos.c: New file.
21634
21635 2010-01-24  Bruno Haible  <bruno@clisp.org>
21636
21637         Fix tests for common <math.h> functions.
21638         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
21639         code snippet that references the function pointer, rather than merely
21640         calling the function. Substitute the FUNC_LIBM variable.
21641         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
21642         * modules/acos (configure.ac): Likewise.
21643         * modules/asin (configure.ac): Likewise.
21644         * modules/atan (configure.ac): Likewise.
21645         * modules/atan2 (configure.ac): Likewise.
21646         * modules/cbrt (configure.ac): Likewise.
21647         * modules/copysign (configure.ac): Likewise.
21648         * modules/cos (configure.ac): Likewise.
21649         * modules/cosh (configure.ac): Likewise.
21650         * modules/erf (configure.ac): Likewise.
21651         * modules/erfc (configure.ac): Likewise.
21652         * modules/exp (configure.ac): Likewise.
21653         * modules/fabs (configure.ac): Likewise.
21654         * modules/fmod (configure.ac): Likewise.
21655         * modules/hypot (configure.ac): Likewise.
21656         * modules/j0 (configure.ac): Likewise.
21657         * modules/j1 (configure.ac): Likewise.
21658         * modules/jn (configure.ac): Likewise.
21659         * modules/ldexp (configure.ac): Likewise.
21660         * modules/lgamma (configure.ac): Likewise.
21661         * modules/log (configure.ac): Likewise.
21662         * modules/log10 (configure.ac): Likewise.
21663         * modules/log1p (configure.ac): Likewise.
21664         * modules/logb (configure.ac): Likewise.
21665         * modules/modf (configure.ac): Likewise.
21666         * modules/nextafter (configure.ac): Likewise.
21667         * modules/pow (configure.ac): Likewise.
21668         * modules/remainder (configure.ac): Likewise.
21669         * modules/rint (configure.ac): Likewise.
21670         * modules/sin (configure.ac): Likewise.
21671         * modules/sinh (configure.ac): Likewise.
21672         * modules/tan (configure.ac): Likewise.
21673         * modules/tanh (configure.ac): Likewise.
21674         * modules/y0 (configure.ac): Likewise.
21675         * modules/y1 (configure.ac): Likewise.
21676         * modules/yn (configure.ac): Likewise.
21677
21678 2010-01-24  Bruno Haible  <bruno@clisp.org>
21679
21680         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
21681         * tests/test-acosl.c (x): New variable.
21682         (main): Store argument in x and fetch it from x.
21683         * tests/test-asinl.c (x): New variable.
21684         (main): Store argument in x and fetch it from x.
21685         * tests/test-atanl.c (x): New variable.
21686         (main): Store argument in x and fetch it from x.
21687         * tests/test-cosl.c (x): New variable.
21688         (main): Store argument in x and fetch it from x.
21689         * tests/test-expl.c (x): New variable.
21690         (main): Store argument in x and fetch it from x.
21691         * tests/test-logl.c (x): New variable.
21692         (main): Store argument in x and fetch it from x.
21693         * tests/test-sinl.c (x): New variable.
21694         (main): Store argument in x and fetch it from x.
21695         * tests/test-sqrtl.c (x): New variable.
21696         (main): Store argument in x and fetch it from x.
21697         * tests/test-tanl.c (x): New variable.
21698         (main): Store argument in x and fetch it from x.
21699
21700 2010-01-24  Bruno Haible  <bruno@clisp.org>
21701
21702         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
21703         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
21704         assignments to the initial TESTS_ENVIRONMENT.
21705         * doc/gnulib.texi (Unit test modules): Document it.
21706         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
21707         TESTS_ENVIRONMENT.
21708         * modules/btowc-tests (Makefile.am): Likewise.
21709         * modules/c-stack-tests (Makefile.am): Likewise.
21710         * modules/c-strcase-tests (Makefile.am): Likewise.
21711         * modules/copy-file-tests (Makefile.am): Likewise.
21712         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
21713         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
21714         * modules/mbrtowc-tests (Makefile.am): Likewise.
21715         * modules/mbscasecmp-tests (Makefile.am): Likewise.
21716         * modules/mbscasestr-tests (Makefile.am): Likewise.
21717         * modules/mbschr-tests (Makefile.am): Likewise.
21718         * modules/mbscspn-tests (Makefile.am): Likewise.
21719         * modules/mbsinit-tests (Makefile.am): Likewise.
21720         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
21721         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
21722         * modules/mbspbrk-tests (Makefile.am): Likewise.
21723         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
21724         * modules/mbsrchr-tests (Makefile.am): Likewise.
21725         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
21726         * modules/mbsspn-tests (Makefile.am): Likewise.
21727         * modules/mbsstr-tests (Makefile.am): Likewise.
21728         * modules/nl_langinfo-tests (Makefile.am): Likewise.
21729         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
21730         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
21731         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
21732         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
21733         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
21734         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
21735         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
21736         * modules/wcrtomb-tests (Makefile.am): Likewise.
21737         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
21738         * modules/wcsrtombs-tests (Makefile.am): Likewise.
21739         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
21740         assignments from TESTS_ENVIRONMENT.
21741         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
21742         augmentation.
21743         * modules/argp-version-etc-tests (Makefile.am): Likewise.
21744         * modules/atexit-tests (Makefile.am): Likewise.
21745         * modules/binary-io-tests (Makefile.am): Likewise.
21746         * modules/closein-tests (Makefile.am): Likewise.
21747         * modules/dprintf-posix-tests (Makefile.am): Likewise.
21748         * modules/exclude-tests (Makefile.am): Likewise.
21749         * modules/fflush-tests (Makefile.am): Likewise.
21750         * modules/fpending-tests (Makefile.am): Likewise.
21751         * modules/fprintf-posix-tests (Makefile.am): Likewise.
21752         * modules/freadahead-tests (Makefile.am): Likewise.
21753         * modules/freadptr-tests (Makefile.am): Likewise.
21754         * modules/freadseek-tests (Makefile.am): Likewise.
21755         * modules/fseek-tests (Makefile.am): Likewise.
21756         * modules/fseeko-tests (Makefile.am): Likewise.
21757         * modules/ftell-tests (Makefile.am): Likewise.
21758         * modules/ftello-tests (Makefile.am): Likewise.
21759         * modules/idpriv-drop-tests (Makefile.am): Likewise.
21760         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
21761         * modules/lseek-tests (Makefile.am): Likewise.
21762         * modules/parse-duration-tests (Makefile.am): Likewise.
21763         * modules/perror-tests (Makefile.am): Likewise.
21764         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
21765         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
21766         * modules/pipe-tests (Makefile.am): Likewise.
21767         * modules/pread-tests (Makefile.am): Likewise.
21768         * modules/printf-posix-tests (Makefile.am): Likewise.
21769         * modules/select-tests (Makefile.am): Likewise.
21770         * modules/sigpipe-tests (Makefile.am): Likewise.
21771         * modules/tsearch-tests (Makefile.am): Likewise.
21772         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
21773         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
21774         * modules/uniname/uniname-tests (Makefile.am): Likewise.
21775         * modules/uniwidth/width-tests (Makefile.am): Likewise.
21776         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
21777         * modules/version-etc-tests (Makefile.am): Likewise.
21778         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
21779         * modules/vprintf-posix-tests (Makefile.am): Likewise.
21780         * modules/xalloc-die-tests (Makefile.am): Likewise.
21781         * modules/xprintf-posix-tests (Makefile.am): Likewise.
21782         * modules/xstrtoimax-tests (Makefile.am): Likewise.
21783         * modules/xstrtol-tests (Makefile.am): Likewise.
21784         * modules/xstrtoumax-tests (Makefile.am): Likewise.
21785         * modules/yesno-tests (Makefile.am): Likewise.
21786         Suggested by Jim Meyering.
21787
21788 2010-01-24  Bruno Haible  <bruno@clisp.org>
21789
21790         More documentation.
21791         * doc/gnulib.texi (Writing modules): New chapter.
21792         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
21793         the new chapter.
21794
21795 2010-01-24  Jim Meyering  <meyering@redhat.com>
21796
21797         maint.mk: do not prepend "./" after filtering
21798         * top/maint.mk (_prepend_srcdir_prefix): New variable
21799         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
21800         "./" when $(srcdir) is ".".
21801
21802         define STREQ(a,b) consistently, removing useless parentheses
21803         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
21804         since the only risk is that "a" or "b" contains an unparenthesized
21805         comma, but if either did that, STREQ would have 3 or more arguments.
21806         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
21807         * lib/fts.c (STREQ): Remove unnecessary parentheses.
21808         * lib/hash-triple.c (STREQ): Likewise.
21809         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
21810         * lib/getugroups.c (STREQ): Likewise.
21811
21812 2010-01-23  Jim Meyering  <meyering@redhat.com>
21813
21814         maint.mk: fix syntax-check in a non-srcdir build directory
21815         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
21816         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
21817
21818 2010-01-22  Jim Meyering  <meyering@redhat.com>
21819
21820         userspec: add unit tests
21821         * tests/test-userspec.c: New file.
21822         * modules/userspec-tests: Likewise.
21823
21824 2010-01-21  Jim Meyering  <meyering@redhat.com>
21825
21826         maint.mk: handle source file names containing "." robustly
21827         * top/maint.mk (_dot_escaped_srcdir): Define.
21828         (VC_LIST): Use it in LHS of sed substitution.
21829
21830 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
21831
21832         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
21833         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
21834         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
21835         from a non-srcdir build.
21836
21837 2010-01-20  Eric Blake  <ebb9@byu.net>
21838
21839         warn-on-use: use instead of link-warning
21840         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
21841         * modules/unistd (Depends-on, Makefile.am): Likewise.
21842         * modules/arpa_inet (Depends-on): Replace link-warning with
21843         warn-on-use.
21844         (Makefile.am): Update rules accordingly.
21845         * modules/ctype (Depends-on, Makefile.am): Likewise.
21846         * modules/dirent (Depends-on, Makefile.am): Likewise.
21847         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
21848         * modules/inttypes (Depends-on, Makefile.am): Likewise.
21849         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21850         * modules/locale (Depends-on, Makefile.am): Likewise.
21851         * modules/math (Depends-on, Makefile.am): Likewise.
21852         * modules/search (Depends-on, Makefile.am): Likewise.
21853         * modules/signal (Depends-on, Makefile.am): Likewise.
21854         * modules/spawn (Depends-on, Makefile.am): Likewise.
21855         * modules/stdlib (Depends-on, Makefile.am): Likewise.
21856         * modules/string (Depends-on, Makefile.am): Likewise.
21857         * modules/strings (Depends-on, Makefile.am): Likewise.
21858         * modules/sys_file (Depends-on, Makefile.am): Likewise.
21859         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
21860         * modules/sys_select (Depends-on, Makefile.am): Likewise.
21861         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
21862         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
21863         * modules/sys_times (Depends-on, Makefile.am): Likewise.
21864         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21865         * modules/wchar (Depends-on, Makefile.am): Likewise.
21866         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
21867         should be poisoned.
21868         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
21869         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
21870         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
21871         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21872         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21873         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21874         * m4/math_h.m4 (gl_MATH_H): Likewise.
21875         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21876         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
21877         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21878         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
21879         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21880         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
21881         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
21882         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
21883         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21884         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21885         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21886         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
21887         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21888         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21889         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21890         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21891         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
21892         GL_LINK_WARNING.
21893         * lib/ctype.in.h: Likewise.
21894         * lib/dirent.in.h: Likewise.
21895         * lib/fcntl.in.h: Likewise.
21896         * lib/inttypes.in.h: Likewise.
21897         * lib/langinfo.in.h: Likewise.
21898         * lib/locale.in.h: Likewise.
21899         * lib/math.in.h: Likewise.
21900         * lib/search.in.h: Likewise.
21901         * lib/signal.in.h: Likewise.
21902         * lib/spawn.in.h: Likewise.
21903         * lib/stdio.in.h: Likewise.
21904         * lib/stdlib.in.h: Likewise.
21905         * lib/string.in.h: Likewise.
21906         * lib/strings.in.h: Likewise.
21907         * lib/sys_file.in.h: Likewise.
21908         * lib/sys_ioctl.in.h: Likewise.
21909         * lib/sys_select.in.h: Likewise.
21910         * lib/sys_socket.in.h: Likewise.
21911         * lib/sys_stat.in.h: Likewise.
21912         * lib/sys_times.in.h: Likewise.
21913         * lib/sys_utsname.in.h: Likewise.
21914         * lib/unistd.in.h: Likewise.
21915         * lib/wchar.in.h: Likewise.
21916
21917 2010-01-20  Bruno Haible  <bruno@clisp.org>
21918
21919         Avoid duplicate -lm.
21920         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
21921         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
21922         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
21923         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
21924         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
21925         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
21926         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
21927         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
21928         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
21929         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
21930         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
21931         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21932         Reported by Paolo Bonzini.
21933
21934 2010-01-19  Bruno Haible  <bruno@clisp.org>
21935
21936         langinfo, nl_langinfo: Relicense under LGPLv2+.
21937         * modules/langinfo (License): Change to LGPLv2+.
21938         * modules/nl_langinfo (License): Likewise.
21939         Patch by David Lutterkort <lutter@redhat.com>.
21940
21941 2010-01-19  Bruno Haible  <bruno@clisp.org>
21942
21943         Avoid compilation error with cc on OSF/1 5.1.
21944         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
21945         statement, not before.
21946         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21947
21948 2010-01-18  Bruno Haible  <bruno@clisp.org>
21949
21950         Avoid a link error due to the __printf__ symbol.
21951         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
21952         and 2.6.x.
21953         (__format__, __printf__): Remove definitions.
21954         * lib/argp-fmtstream.h: Likewise.
21955         * lib/argp.h: Likewise.
21956         * lib/error.h: Likewise.
21957         * lib/vasnprintf.h: Likewise.
21958         * lib/xprintf.h: Likewise.
21959         * lib/xvasprintf.h: Likewise.
21960         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21961
21962 2010-01-18  Bruno Haible  <bruno@clisp.org>
21963
21964         Tests for module 'tanl'.
21965         * modules/tanl-tests: New file.
21966         * tests/test-tanl.c: New file.
21967
21968         Tests for module 'sqrtl'.
21969         * modules/sqrtl-tests: New file.
21970         * tests/test-sqrtl.c: New file.
21971
21972         Tests for module 'sinl'.
21973         * modules/sinl-tests: New file.
21974         * tests/test-sinl.c: New file.
21975
21976         Tests for module 'logl'.
21977         * modules/logl-tests: New file.
21978         * tests/test-logl.c: New file.
21979
21980         Tests for module 'expl'.
21981         * modules/expl-tests: New file.
21982         * tests/test-expl.c: New file.
21983
21984         Tests for module 'cosl'.
21985         * modules/cosl-tests: New file.
21986         * tests/test-cosl.c: New file.
21987
21988         Tests for module 'atanl'.
21989         * modules/atanl-tests: New file.
21990         * tests/test-atanl.c: New file.
21991
21992         Tests for module 'asinl'.
21993         * modules/asinl-tests: New file.
21994         * tests/test-asinl.c: New file.
21995
21996         Tests for module 'acosl'.
21997         * modules/acosl-tests: New file.
21998         * tests/test-acosl.c: New file.
21999
22000         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22001         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22002         tanl): Use the standard gnulib idiom.
22003         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22004         * lib/sinl.c: Likewise.
22005         * lib/tanl.c: Don't include trigl.c.
22006         (kernel_tanl): Make static.
22007         * lib/sincosl.c: Include trigl.h first.
22008         * lib/trigl.c: Likewise.
22009         * m4/acosl.m4: New file.
22010         * m4/asinl.m4: New file.
22011         * m4/atanl.m4: New file.
22012         * m4/cosl.m4: New file.
22013         * m4/expl.m4: New file.
22014         * m4/logl.m4: New file.
22015         * m4/sinl.m4: New file.
22016         * m4/sqrtl.m4: New file.
22017         * m4/tanl.m4: New file.
22018         * m4/mathl.m4: Remove file.
22019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22020         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22021         Don't initialize GNULIB_MATHL.
22022         * modules/acosl: New file.
22023         * modules/asinl: New file.
22024         * modules/atanl: New file.
22025         * modules/cosl: New file.
22026         * modules/expl: New file.
22027         * modules/logl: New file.
22028         * modules/sinl: New file.
22029         * modules/sqrtl: New file.
22030         * modules/tanl: New file.
22031         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22032         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22033         substitute GNULIB_MATHL.
22034         * modules/mathl: Rewritten.
22035         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22036         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22037         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22038         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22039         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22040         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22041         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22042         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22043         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22044
22045 2010-01-18  Bruno Haible  <bruno@clisp.org>
22046
22047         sqrt: Make gl_FUNC_SQRT requirable.
22048         * m4/sqrt.m4: New file.
22049         * modules/sqrt (Files): Add it.
22050         (configure.ac): Invoke gl_FUNC_SQRT.
22051
22052 2010-01-18  Bruno Haible  <bruno@clisp.org>
22053
22054         New modules for common <math.h> functions.
22055         * m4/mathfunc.m4: New file.
22056         * modules/acos: New file.
22057         * modules/asin: New file.
22058         * modules/atan: New file.
22059         * modules/atan2: New file.
22060         * modules/cbrt: New file.
22061         * modules/copysign: New file.
22062         * modules/cos: New file.
22063         * modules/cosh: New file.
22064         * modules/erf: New file.
22065         * modules/erfc: New file.
22066         * modules/exp: New file.
22067         * modules/fabs: New file.
22068         * modules/fmod: New file.
22069         * modules/hypot: New file.
22070         * modules/j0: New file.
22071         * modules/j1: New file.
22072         * modules/jn: New file.
22073         * modules/ldexp: New file.
22074         * modules/lgamma: New file.
22075         * modules/log: New file.
22076         * modules/log10: New file.
22077         * modules/log1p: New file.
22078         * modules/logb: New file.
22079         * modules/modf: New file.
22080         * modules/nextafter: New file.
22081         * modules/pow: New file.
22082         * modules/remainder: New file.
22083         * modules/rint: New file.
22084         * modules/sin: New file.
22085         * modules/sinh: New file.
22086         * modules/sqrt: New file.
22087         * modules/tan: New file.
22088         * modules/tanh: New file.
22089         * modules/y0: New file.
22090         * modules/y1: New file.
22091         * modules/yn: New file.
22092         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22093         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22094         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22095         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22096         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22097         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22098         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22099         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22100         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22101         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22102         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22103         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22104         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22105         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22106         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22107         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22108         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22109         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22110         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22111         * doc/posix-functions/log.texi: Mention the 'log' module.
22112         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22113         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22114         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22115         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22116         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22117         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22118         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22119         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22120         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22121         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22122         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22123         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22124         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22125         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22126         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22127         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22128
22129 2010-01-18  Jim Meyering  <meyering@redhat.com>
22130
22131         ignore-value: relax license to LGPLv2+
22132         * modules/ignore-value (License): Relax to LGPLv2+.
22133
22134         getdate: don't leak when TZ contains two or more '"'s
22135         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22136         double quote in TZ after the first one.
22137
22138         readtokens: do not leak internal token_lengths buffer
22139         * lib/readtokens.c (readtokens): Free the local, lengths,
22140         when the supplied "token_lengths" parameter is NULL.
22141
22142 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22143
22144         Fix a couple of missing LIBTHREAD link failures on AIX.
22145         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22146         $(LIBTHREAD).
22147         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22148
22149         Link test-poll against INET_PTON_LIB.
22150         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22151         for inet_pton on Solaris 10.
22152
22153 2010-01-17  Bruno Haible  <bruno@clisp.org>
22154
22155         unistdio/*-sprintf: Fix typo in module description.
22156         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22157         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22158         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22159         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22160         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22161         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22162         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22163         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22164
22165 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22166
22167         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22168         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22169         variables in shell case patterns, for AIX and HP-UX ksh.
22170
22171         Split large sed scripts, for HP-UX sed.
22172         * modules/stdio: Split sed scripts around 50 sed commands,
22173         to avoid HP-UX limit of 99 commands, in the near future.
22174         * modules/string: Likewise.
22175         * modules/unistd: Likewise.
22176
22177         gnulib-tool: avoid writing in the current directory.
22178         * gnulib-tool (func_emit_lib_Makefile_am)
22179         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22180         not in the current directory, so concurrent gnulib-tool
22181         instances do not interfere.
22182
22183 2010-01-16  Jim Meyering  <meyering@redhat.com>
22184
22185         doc: update users.txt
22186         * users.txt: Add grep.
22187         (diffutils, gzip): Update URLs.
22188
22189 2010-01-12  Bruno Haible  <bruno@clisp.org>
22190
22191         posix_spawn: Avoid test failure on Cygwin.
22192         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22193         characters.
22194         Reported by Simon Josefsson.
22195
22196 2010-01-12  Bruno Haible  <bruno@clisp.org>
22197
22198         * tests/test-cond.c (main): When skipping the test, show the reason.
22199
22200 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22201
22202         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22203
22204 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22205
22206         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22207         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22208
22209 2010-01-12  Eric Blake  <ebb9@byu.net>
22210
22211         build: guarantee AS_VAR_IF
22212         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22213         (gl_AS_VAR_IF): Move...
22214         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22215         Reported by Simon Josefsson.
22216
22217 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22218
22219         * lib/stdio.in.h: Fix typo.
22220
22221 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22222
22223         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22224         libgpg-error.
22225
22226 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22227
22228         * tests/test-xalloc-die.sh: Use $EXEEXT.
22229
22230 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22231             Bruno Haible  <bruno@clisp.org>
22232
22233         getlogin, getlogin_r: Avoid test failure.
22234         * tests/test-getlogin.c: Include <stdio.h>.
22235         (main): Skip the test when the function fails because stdin is not a
22236         tty.
22237         * tests/test-getlogin_r.c: Include <stdio.h>.
22238         (main): Skip the test when the function fails because stdin is not a
22239         tty.
22240
22241 2010-01-11  Eric Blake  <ebb9@byu.net>
22242
22243         tests: avoid more large file warnings
22244         * tests/test-fflush.c: Avoid warning about ftell use.
22245         * tests/test-fseek.c: Avoid warning about fseek use.
22246
22247 2010-01-10  Bruno Haible  <bruno@clisp.org>
22248
22249         nproc: Work better on Linux when /proc and /sys are not mounted.
22250         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22251         as lower bound when, on glibc/Linux systems,
22252         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22253         Suggested by Pádraig Brady <P@draigbrady.com>.
22254         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22255
22256         nproc: Refactor.
22257         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22258         extracted from num_processors.
22259         (num_processors): Call it.
22260
22261 2010-01-11  Jim Meyering  <meyering@redhat.com>
22262
22263         utimecmp: avoid new warning from upcoming gcc-4.5.0
22264         * lib/utimecmp.c (BILLION): Define using #define rather than an
22265         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22266
22267 2010-01-11  Eric Blake  <ebb9@byu.net>
22268
22269         math: add portability warnings for classification macros
22270         * modules/math (Depends-on): Add warn-on-use.
22271         (Makefile.am): Provide new substitutions.
22272         * m4/math_h.m4 (gl_MATH_H): Require inline.
22273         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22274         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22275         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22276         implement warnings.
22277
22278         unistd: warn on use of environ without module
22279         * modules/unistd (Depends-on): Add warn-on-use.
22280         (Makefile.am): Provide new substitutions.
22281         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22282         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22283
22284         stdio: warn on suspicious uses
22285         * modules/stdio (Depends-on): Add warn-on-use.
22286         (Makefile.am): Provide new substitutions.
22287         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22288         fseeko.
22289         * lib/stdio.in.h (gets): Always warn on use.
22290         (fseek, ftell): Adjust when warnings are issued, and honor
22291         _GL_NO_LARGE_FILES as a way to silence the warning.
22292         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22293         any warning about large file offsets.
22294         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22295         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22296         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22297         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22298         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22299         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22300         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22301         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22302
22303         warn-on-use: new module
22304         * modules/warn-on-use: New file.
22305         * build-aux/warn-on-use.h: Likewise.
22306         * m4/warn-on-use.m4: Likewise.
22307         * MODULES.html.sh (Support for building): Mention it.
22308
22309 2010-01-10  Bruno Haible  <bruno@clisp.org>
22310
22311         Tests for module 'unistr/u32-strdup'.
22312         * modules/unistr/u32-strdup-tests: New file.
22313         * tests/unistr/test-u32-strdup.c: New file.
22314
22315         Tests for module 'unistr/u16-strdup'.
22316         * modules/unistr/u16-strdup-tests: New file.
22317         * tests/unistr/test-u16-strdup.c: New file.
22318
22319         Tests for module 'unistr/u8-strdup'.
22320         * modules/unistr/u8-strdup-tests: New file.
22321         * tests/unistr/test-u8-strdup.c: New file.
22322         * tests/unistr/test-strdup.h: New file.
22323
22324         Tests for module 'unistr/u32-strncmp'.
22325         * modules/unistr/u32-strncmp-tests: New file.
22326         * tests/unistr/test-u32-strncmp.c: New file.
22327
22328         Tests for module 'unistr/u16-strncmp'.
22329         * modules/unistr/u16-strncmp-tests: New file.
22330         * tests/unistr/test-u16-strncmp.c: New file.
22331
22332         Tests for module 'unistr/u8-strncmp'.
22333         * modules/unistr/u8-strncmp-tests: New file.
22334         * tests/unistr/test-u8-strncmp.c: New file.
22335         * tests/unistr/test-strncmp.h: New file.
22336
22337         Tests for module 'unistr/u32-strcoll'.
22338         * modules/unistr/u32-strcoll-tests: New file.
22339         * tests/unistr/test-u32-strcoll.c: New file.
22340
22341         Tests for module 'unistr/u16-strcoll'.
22342         * modules/unistr/u16-strcoll-tests: New file.
22343         * tests/unistr/test-u16-strcoll.c: New file.
22344
22345         Tests for module 'unistr/u8-strcoll'.
22346         * modules/unistr/u8-strcoll-tests: New file.
22347         * tests/unistr/test-u8-strcoll.c: New file.
22348
22349         Tests for module 'unistr/u32-strcmp'.
22350         * modules/unistr/u32-strcmp-tests: New file.
22351         * tests/unistr/test-u32-strcmp.c: New file.
22352         * tests/unistr/test-u32-strcmp.h: New file.
22353
22354         Tests for module 'unistr/u16-strcmp'.
22355         * modules/unistr/u16-strcmp-tests: New file.
22356         * tests/unistr/test-u16-strcmp.c: New file.
22357         * tests/unistr/test-u16-strcmp.h: New file.
22358
22359         Tests for module 'unistr/u8-strcmp'.
22360         * modules/unistr/u8-strcmp-tests: New file.
22361         * tests/unistr/test-u8-strcmp.c: New file.
22362         * tests/unistr/test-u8-strcmp.h: New file.
22363         * tests/unistr/test-strcmp.h: New file.
22364
22365         Tests for module 'unistr/u32-strncat'.
22366         * modules/unistr/u32-strncat-tests: New file.
22367         * tests/unistr/test-u32-strncat.c: New file.
22368
22369         Tests for module 'unistr/u16-strncat'.
22370         * modules/unistr/u16-strncat-tests: New file.
22371         * tests/unistr/test-u16-strncat.c: New file.
22372
22373         Tests for module 'unistr/u8-strncat'.
22374         * modules/unistr/u8-strncat-tests: New file.
22375         * tests/unistr/test-u8-strncat.c: New file.
22376         * tests/unistr/test-strncat.h: New file.
22377
22378         Tests for module 'unistr/u32-strcat'.
22379         * modules/unistr/u32-strcat-tests: New file.
22380         * tests/unistr/test-u32-strcat.c: New file.
22381
22382         Tests for module 'unistr/u16-strcat'.
22383         * modules/unistr/u16-strcat-tests: New file.
22384         * tests/unistr/test-u16-strcat.c: New file.
22385
22386         Tests for module 'unistr/u8-strcat'.
22387         * modules/unistr/u8-strcat-tests: New file.
22388         * tests/unistr/test-u8-strcat.c: New file.
22389         * tests/unistr/test-strcat.h: New file.
22390
22391         Tests for module 'unistr/u32-stpncpy'.
22392         * modules/unistr/u32-stpncpy-tests: New file.
22393         * tests/unistr/test-u32-stpncpy.c: New file.
22394
22395         Tests for module 'unistr/u16-stpncpy'.
22396         * modules/unistr/u16-stpncpy-tests: New file.
22397         * tests/unistr/test-u16-stpncpy.c: New file.
22398
22399         Tests for module 'unistr/u8-stpncpy'.
22400         * modules/unistr/u8-stpncpy-tests: New file.
22401         * tests/unistr/test-u8-stpncpy.c: New file.
22402         * tests/unistr/test-stpncpy.h: New file.
22403
22404         Tests for module 'unistr/u32-strncpy'.
22405         * modules/unistr/u32-strncpy-tests: New file.
22406         * tests/unistr/test-u32-strncpy.c: New file.
22407
22408         Tests for module 'unistr/u16-strncpy'.
22409         * modules/unistr/u16-strncpy-tests: New file.
22410         * tests/unistr/test-u16-strncpy.c: New file.
22411
22412         Tests for module 'unistr/u8-strncpy'.
22413         * modules/unistr/u8-strncpy-tests: New file.
22414         * tests/unistr/test-u8-strncpy.c: New file.
22415         * tests/unistr/test-strncpy.h: New file.
22416
22417         Tests for module 'unistr/u32-stpcpy'.
22418         * modules/unistr/u32-stpcpy-tests: New file.
22419         * tests/unistr/test-u32-stpcpy.c: New file.
22420
22421         Tests for module 'unistr/u16-stpcpy'.
22422         * modules/unistr/u16-stpcpy-tests: New file.
22423         * tests/unistr/test-u16-stpcpy.c: New file.
22424
22425         Tests for module 'unistr/u8-stpcpy'.
22426         * modules/unistr/u8-stpcpy-tests: New file.
22427         * tests/unistr/test-u8-stpcpy.c: New file.
22428         * tests/unistr/test-stpcpy.h: New file.
22429
22430         Tests for module 'unistr/u32-strcpy'.
22431         * modules/unistr/u32-strcpy-tests: New file.
22432         * tests/unistr/test-u32-strcpy.c: New file.
22433
22434         Tests for module 'unistr/u16-strcpy'.
22435         * modules/unistr/u16-strcpy-tests: New file.
22436         * tests/unistr/test-u16-strcpy.c: New file.
22437
22438         Tests for module 'unistr/u8-strcpy'.
22439         * modules/unistr/u8-strcpy-tests: New file.
22440         * tests/unistr/test-u8-strcpy.c: New file.
22441         * tests/unistr/test-strcpy.h: New file.
22442
22443         Tests for module 'unistr/u32-strnlen'.
22444         * modules/unistr/u32-strnlen-tests: New file.
22445         * tests/unistr/test-u32-strnlen.c: New file.
22446
22447         Tests for module 'unistr/u16-strnlen'.
22448         * modules/unistr/u16-strnlen-tests: New file.
22449         * tests/unistr/test-u16-strnlen.c: New file.
22450
22451         Tests for module 'unistr/u8-strnlen'.
22452         * modules/unistr/u8-strnlen-tests: New file.
22453         * tests/unistr/test-u8-strnlen.c: New file.
22454         * tests/unistr/test-strnlen.h: New file.
22455
22456         Tests for module 'unistr/u32-strlen'.
22457         * modules/unistr/u32-strlen-tests: New file.
22458         * tests/unistr/test-u32-strlen.c: New file.
22459
22460         Tests for module 'unistr/u16-strlen'.
22461         * modules/unistr/u16-strlen-tests: New file.
22462         * tests/unistr/test-u16-strlen.c: New file.
22463
22464         Tests for module 'unistr/u8-strlen'.
22465         * modules/unistr/u8-strlen-tests: New file.
22466         * tests/unistr/test-u8-strlen.c: New file.
22467
22468         Tests for module 'unistr/u32-prev'.
22469         * modules/unistr/u32-prev-tests: New file.
22470         * tests/unistr/test-u32-prev.c: New file.
22471
22472         Tests for module 'unistr/u16-prev'.
22473         * modules/unistr/u16-prev-tests: New file.
22474         * tests/unistr/test-u16-prev.c: New file.
22475
22476         Tests for module 'unistr/u8-prev'.
22477         * modules/unistr/u8-prev-tests: New file.
22478         * tests/unistr/test-u8-prev.c: New file.
22479
22480         Tests for module 'unistr/u32-next'.
22481         * modules/unistr/u32-next-tests: New file.
22482         * tests/unistr/test-u32-next.c: New file.
22483
22484         Tests for module 'unistr/u16-next'.
22485         * modules/unistr/u16-next-tests: New file.
22486         * tests/unistr/test-u16-next.c: New file.
22487
22488         Tests for module 'unistr/u8-next'.
22489         * modules/unistr/u8-next-tests: New file.
22490         * tests/unistr/test-u8-next.c: New file.
22491
22492         Tests for module 'unistr/u32-strmbtouc'.
22493         * modules/unistr/u32-strmbtouc-tests: New file.
22494         * tests/unistr/test-u32-strmbtouc.c: New file.
22495
22496         Tests for module 'unistr/u16-strmbtouc'.
22497         * modules/unistr/u16-strmbtouc-tests: New file.
22498         * tests/unistr/test-u16-strmbtouc.c: New file.
22499
22500         Tests for module 'unistr/u8-strmbtouc'.
22501         * modules/unistr/u8-strmbtouc-tests: New file.
22502         * tests/unistr/test-u8-strmbtouc.c: New file.
22503
22504         Tests for module 'unistr/u32-strmblen'.
22505         * modules/unistr/u32-strmblen-tests: New file.
22506         * tests/unistr/test-u32-strmblen.c: New file.
22507
22508         Tests for module 'unistr/u16-strmblen'.
22509         * modules/unistr/u16-strmblen-tests: New file.
22510         * tests/unistr/test-u16-strmblen.c: New file.
22511
22512         Tests for module 'unistr/u8-strmblen'.
22513         * modules/unistr/u8-strmblen-tests: New file.
22514         * tests/unistr/test-u8-strmblen.c: New file.
22515
22516         Tests for module 'unistr/u32-cpy-alloc'.
22517         * modules/unistr/u32-cpy-alloc-tests: New file.
22518         * tests/unistr/test-u32-cpy-alloc.c: New file.
22519
22520         Tests for module 'unistr/u16-cpy-alloc'.
22521         * modules/unistr/u16-cpy-alloc-tests: New file.
22522         * tests/unistr/test-u16-cpy-alloc.c: New file.
22523
22524         Tests for module 'unistr/u8-cpy-alloc'.
22525         * modules/unistr/u8-cpy-alloc-tests: New file.
22526         * tests/unistr/test-u8-cpy-alloc.c: New file.
22527         * tests/unistr/test-cpy-alloc.h: New file.
22528
22529         Tests for module 'unistr/u32-mbsnlen'.
22530         * modules/unistr/u32-mbsnlen-tests: New file.
22531         * tests/unistr/test-u32-mbsnlen.c: New file.
22532
22533         Tests for module 'unistr/u16-mbsnlen'.
22534         * modules/unistr/u16-mbsnlen-tests: New file.
22535         * tests/unistr/test-u16-mbsnlen.c: New file.
22536
22537         Tests for module 'unistr/u8-mbsnlen'.
22538         * modules/unistr/u8-mbsnlen-tests: New file.
22539         * tests/unistr/test-u8-mbsnlen.c: New file.
22540
22541         Tests for module 'unistr/u32-chr'.
22542         * modules/unistr/u32-chr-tests: New file.
22543         * tests/unistr/test-u32-chr.c: New file.
22544
22545         Tests for module 'unistr/u16-chr'.
22546         * modules/unistr/u16-chr-tests: New file.
22547         * tests/unistr/test-u16-chr.c: New file.
22548
22549         Tests for module 'unistr/u8-chr'.
22550         * modules/unistr/u8-chr-tests: New file.
22551         * tests/unistr/test-u8-chr.c: New file.
22552         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
22553
22554         Tests for module 'unistr/u32-cmp2'.
22555         * modules/unistr/u32-cmp2-tests: New file.
22556         * tests/unistr/test-u32-cmp2.c: New file.
22557
22558         Tests for module 'unistr/u16-cmp2'.
22559         * modules/unistr/u16-cmp2-tests: New file.
22560         * tests/unistr/test-u16-cmp2.c: New file.
22561
22562         Tests for module 'unistr/u8-cmp2'.
22563         * modules/unistr/u8-cmp2-tests: New file.
22564         * tests/unistr/test-u8-cmp2.c: New file.
22565         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
22566
22567         Tests for module 'unistr/u32-cmp'.
22568         * modules/unistr/u32-cmp-tests: New file.
22569         * tests/unistr/test-u32-cmp.c: New file.
22570
22571         Tests for module 'unistr/u16-cmp'.
22572         * modules/unistr/u16-cmp-tests: New file.
22573         * tests/unistr/test-u16-cmp.c: New file.
22574
22575         Tests for module 'unistr/u8-cmp'.
22576         * modules/unistr/u8-cmp-tests: New file.
22577         * tests/unistr/test-u8-cmp.c: New file.
22578         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
22579
22580         Tests for module 'unistr/u32-set'.
22581         * modules/unistr/u32-set-tests: New file.
22582         * tests/unistr/test-u32-set.c: New file.
22583
22584         Tests for module 'unistr/u16-set'.
22585         * modules/unistr/u16-set-tests: New file.
22586         * tests/unistr/test-u16-set.c: New file.
22587
22588         Tests for module 'unistr/u8-set'.
22589         * modules/unistr/u8-set-tests: New file.
22590         * tests/unistr/test-u8-set.c: New file.
22591         * tests/unistr/test-set.h: New file.
22592
22593         Tests for module 'unistr/u32-move'.
22594         * modules/unistr/u32-move-tests: New file.
22595         * tests/unistr/test-u32-move.c: New file.
22596
22597         Tests for module 'unistr/u16-move'.
22598         * modules/unistr/u16-move-tests: New file.
22599         * tests/unistr/test-u16-move.c: New file.
22600
22601         Tests for module 'unistr/u8-move'.
22602         * modules/unistr/u8-move-tests: New file.
22603         * tests/unistr/test-u8-move.c: New file.
22604         * tests/unistr/test-move.h: New file.
22605
22606         Tests for module 'unistr/u32-cpy'.
22607         * modules/unistr/u32-cpy-tests: New file.
22608         * tests/unistr/test-u32-cpy.c: New file.
22609
22610         Tests for module 'unistr/u16-cpy'.
22611         * modules/unistr/u16-cpy-tests: New file.
22612         * tests/unistr/test-u16-cpy.c: New file.
22613
22614         Tests for module 'unistr/u8-cpy'.
22615         * modules/unistr/u8-cpy-tests: New file.
22616         * tests/unistr/test-u8-cpy.c: New file.
22617         * tests/unistr/test-cpy.h: New file.
22618
22619 2010-01-09  Bruno Haible  <bruno@clisp.org>
22620
22621         Tests for module 'unistr/u32-uctomb'.
22622         * modules/unistr/u32-uctomb-tests: New file.
22623         * tests/unistr/test-u32-uctomb.c: New file.
22624
22625         Tests for module 'unistr/u16-uctomb'.
22626         * modules/unistr/u16-uctomb-tests: New file.
22627         * tests/unistr/test-u16-uctomb.c: New file.
22628
22629         Tests for module 'unistr/u8-uctomb'.
22630         * modules/unistr/u8-uctomb-tests: New file.
22631         * tests/unistr/test-u8-uctomb.c: New file.
22632
22633         Tests for module 'unistr/u32-mbtoucr'.
22634         * modules/unistr/u32-mbtoucr-tests: New file.
22635         * tests/unistr/test-u32-mbtoucr.c: New file.
22636
22637         Tests for module 'unistr/u16-mbtoucr'.
22638         * modules/unistr/u16-mbtoucr-tests: New file.
22639         * tests/unistr/test-u16-mbtoucr.c: New file.
22640
22641         Tests for module 'unistr/u8-mbtoucr'.
22642         * modules/unistr/u8-mbtoucr-tests: New file.
22643         * tests/unistr/test-u8-mbtoucr.c: New file.
22644
22645         Tests for module 'unistr/u32-mbtouc'.
22646         * modules/unistr/u32-mbtouc-tests: New file.
22647         * tests/unistr/test-u32-mbtouc.c: New file.
22648
22649         Tests for module 'unistr/u16-mbtouc'.
22650         * modules/unistr/u16-mbtouc-tests: New file.
22651         * tests/unistr/test-u16-mbtouc.c: New file.
22652
22653         Tests for module 'unistr/u8-mbtouc'.
22654         * modules/unistr/u8-mbtouc-tests: New file.
22655         * tests/unistr/test-u8-mbtouc.c: New file.
22656
22657         Tests for module 'unistr/u32-mbtouc-unsafe'.
22658         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
22659         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
22660         * tests/unistr/test-u32-mbtouc.h: New file.
22661
22662         Tests for module 'unistr/u16-mbtouc-unsafe'.
22663         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
22664         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
22665         * tests/unistr/test-u16-mbtouc.h: New file.
22666
22667         Tests for module 'unistr/u8-mbtouc-unsafe'.
22668         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
22669         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
22670         * tests/unistr/test-u8-mbtouc.h: New file.
22671
22672         Tests for module 'unistr/u32-mblen'.
22673         * modules/unistr/u32-mblen-tests: New file.
22674         * tests/unistr/test-u32-mblen.c: New file.
22675
22676         Tests for module 'unistr/u16-mblen'.
22677         * modules/unistr/u16-mblen-tests: New file.
22678         * tests/unistr/test-u16-mblen.c: New file.
22679
22680         Tests for module 'unistr/u8-mblen'.
22681         * modules/unistr/u8-mblen-tests: New file.
22682         * tests/unistr/test-u8-mblen.c: New file.
22683
22684         Tests for module 'unistr/u32-to-u16'.
22685         * modules/unistr/u32-to-u16-tests: New file.
22686         * tests/unistr/test-u32-to-u16.c: New file.
22687
22688         Tests for module 'unistr/u32-to-u8'.
22689         * modules/unistr/u32-to-u8-tests: New file.
22690         * tests/unistr/test-u32-to-u8.c: New file.
22691
22692         Tests for module 'unistr/u16-to-u32'.
22693         * modules/unistr/u16-to-u32-tests: New file.
22694         * tests/unistr/test-u16-to-u32.c: New file.
22695
22696         Tests for module 'unistr/u16-to-u8'.
22697         * modules/unistr/u16-to-u8-tests: New file.
22698         * tests/unistr/test-u16-to-u8.c: New file.
22699
22700         Tests for module 'unistr/u8-to-u32'.
22701         * modules/unistr/u8-to-u32-tests: New file.
22702         * tests/unistr/test-u8-to-u32.c: New file.
22703
22704         Tests for module 'unistr/u8-to-u16'.
22705         * modules/unistr/u8-to-u16-tests: New file.
22706         * tests/unistr/test-u8-to-u16.c: New file.
22707
22708         Tests for module 'unistr/u32-check'.
22709         * modules/unistr/u32-check-tests: New file.
22710         * tests/unistr/test-u32-check.c: New file.
22711
22712         Tests for module 'unistr/u16-check'.
22713         * modules/unistr/u16-check-tests: New file.
22714         * tests/unistr/test-u16-check.c: New file.
22715
22716         Tests for module 'unistr/u8-check'.
22717         * modules/unistr/u8-check-tests: New file.
22718         * tests/unistr/test-u8-check.c: New file.
22719
22720         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
22721         (category_equals): New function.
22722         (main): Add more tests.
22723         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
22724
22725         * tests/unictype/test-bidi_byname.c (main): Add more tests.
22726
22727 2010-01-10  Bruno Haible  <bruno@clisp.org>
22728
22729         unistr/u*-strcoll: Try harder to distinguish different strings.
22730         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
22731         compare s1 and s2 to see if they are different.
22732
22733 2010-01-10  Bruno Haible  <bruno@clisp.org>
22734
22735         unistr/u*-stpncpy: Fix the return value.
22736         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
22737         description of the return value consistent with stpncpy in glibc.
22738         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
22739         written non-NUL unit.
22740
22741 2010-01-10  Bruno Haible  <bruno@clisp.org>
22742
22743         unistr/u*-next: Add missing dependencies.
22744         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
22745         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
22746         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
22747
22748 2010-01-10  Bruno Haible  <bruno@clisp.org>
22749
22750         unistr/u8-mbsnlen: Fix return value for incomplete character.
22751         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
22752         u8_mblen.
22753         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
22754         Remove unistr/u8-mblen.
22755         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
22756         u16_mblen.
22757         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
22758         Remove unistr/u16-mblen.
22759
22760 2010-01-10  Bruno Haible  <bruno@clisp.org>
22761
22762         wchar: Fix compilation error when <wchar.h> is used from coreutils.
22763         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
22764         Reported by Brian Gough <bjg@gnu.org> and
22765         Chris Clayton <chris2553@googlemail.com> via
22766         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
22767
22768 2010-01-09  Bruno Haible  <bruno@clisp.org>
22769
22770         unistr/u16-to-u32: Reject invalid input.
22771         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
22772         u16_mbtouc.
22773         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
22774         Remove unistr/u16-mbtouc.
22775
22776         unistr/u16-to-u8: Reject invalid input.
22777         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
22778         u16_mbtouc.
22779         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
22780         Remove unistr/u16-mbtouc.
22781
22782         unistr/u8-to-u32: Reject invalid input.
22783         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
22784         u8_mbtouc.
22785         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
22786         Remove unistr/u8-mbtouc.
22787
22788         unistr/u8-to-u16: Reject invalid input.
22789         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
22790         u8_mbtouc.
22791         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
22792         Remove unistr/u8-mbtouc.
22793
22794 2010-01-09  Bruno Haible  <bruno@clisp.org>
22795
22796         Tests for module 'getlogin'.
22797         * modules/getlogin-tests: New file.
22798         * tests/test-getlogin.c: New file.
22799
22800         New module 'getlogin'.
22801         * lib/unistd.in.h (getlogin): New declaration.
22802         * lib/getlogin.c: New file.
22803         * m4/getlogin.m4: New file.
22804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
22805         HAVE_GETLOGIN.
22806         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
22807         HAVE_GETLOGIN.
22808         * modules/getlogin: New file.
22809         * doc/posix-functions/getlogin.texi: Mention the new module.
22810         Reported by John W. Eaton <jwe@gnu.org>.
22811
22812 2010-01-09  Bruno Haible  <bruno@clisp.org>
22813
22814         getlogin_r: Support for native Windows.
22815         * lib/getlogin_r.c: Include <windows.h>
22816         (getlogin_r): Implement for native Windows.
22817         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
22818         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
22819         via John W. Eaton <jwe@gnu.org>.
22820
22821 2010-01-09  Bruno Haible  <bruno@clisp.org>
22822
22823         getlogin_r: Small fixes.
22824         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
22825         succeeds.
22826         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
22827         before testing whether getlogin_r is declared. No need to set
22828         HAVE_DECL_GETLOGIN_R to 1.
22829         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
22830
22831 2010-01-09  Bruno Haible  <bruno@clisp.org>
22832
22833         * lib/unistd.in.h (getlogin_r): Add comment.
22834
22835 2010-01-09  Bruno Haible  <bruno@clisp.org>
22836
22837         Tests for module 'getlogin_r'.
22838         * modules/getlogin_r-tests: New file.
22839         * tests/test-getlogin_r.c: New file.
22840
22841 2010-01-09  Jim Meyering  <meyering@redhat.com>
22842
22843         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
22844         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
22845         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
22846
22847 2010-01-08  Simon Josefsson  <simon@josefsson.org>
22848
22849         * lib/dup2.c (rpl_dup2): Improve comment.
22850
22851 2010-01-08  Eric Blake  <ebb9@byu.net>
22852
22853         maint.mk: allow packages to add makefile @@ exceptions
22854         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
22855         (sc_makefile_check): Rename...
22856         (sc_makefile_at_at_check): ...to this, and use hook.
22857
22858         dup2: work around mingw bug
22859         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
22860         Reported by Simon Josefsson.
22861
22862 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
22863
22864         glob: Fix C++ compilation.
22865         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
22866         C++.
22867
22868 2010-01-07  Bruno Haible  <bruno@clisp.org>
22869
22870         Fix indentation of wctype.in.h, broken since 2007-01-06.
22871         * lib/wctype.in.h: Fix indentation of preprocessor directives.
22872
22873 2010-01-07  Bruno Haible  <bruno@clisp.org>
22874
22875         mbslen: Avoid collision with system function.
22876         * lib/string.in.h [MirBSD]: Include <wchar.h>.
22877         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
22878         * m4/mbslen.m4: New file.
22879         * modules/mbslen (Files): Add it.
22880         (configure.ac): Invoke gl_MBSLEN.
22881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
22882         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
22883         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
22884         via Ian Beckwith <ianb@erislabs.net>.
22885
22886 2010-01-07  Bruno Haible  <bruno@clisp.org>
22887
22888         dirent: Document the last fix.
22889         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
22890
22891 2010-01-07  Bruno Haible  <bruno@clisp.org>
22892
22893         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
22894         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
22895         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
22896         va_list are defined.
22897         * doc/posix-headers/stdio.texi: Document the bug of missing types.
22898         Reported by Eric Blake.
22899
22900 2010-01-07  Bruno Haible  <bruno@clisp.org>
22901
22902         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
22903         * modules/xlist (Depends-on): Add 'list',
22904         * modules/xoset (Depends-on): Add 'oset'.
22905         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22906
22907 2010-01-07  Bruno Haible  <bruno@clisp.org>
22908
22909         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
22910         * doc/posix-functions/strncasecmp.texi: Likewise.
22911
22912 2010-01-07  Bruno Haible  <bruno@clisp.org>
22913
22914         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
22915
22916 2010-01-07  John W. Eaton  <jwe@octave.org>
22917
22918         wctype: allow C++ use
22919         * lib/wctype.in.h: Add extern "C" block for C++.
22920
22921 2010-01-06  Eric Blake  <ebb9@byu.net>
22922
22923         maint.mk: detect incorrect GFDL usage
22924         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
22925
22926 2010-01-06  Jim Meyering  <meyering@redhat.com>
22927         and Eric Blake  <ebb9@byu.net>
22928
22929         maint.mk: ignore multi-line copyright in NEWS
22930         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
22931
22932 2010-01-06  Eric Blake  <ebb9@byu.net>
22933
22934         select: add missing dependency
22935         * modules/select-tests (Depends-on): Move sockets dependency...
22936         * modules/select (Depends-on): ...here.
22937         Reported by Ian Beckwith.
22938
22939         doc: regenerate INSTALL
22940         * doc/INSTALL: Reflect recent autoconf update.
22941         * doc/INSTALL.ISO: Likewise.
22942         * doc/INSTALL.UTF-8: Likewise.
22943
22944         pread: fix compilation on glibc
22945         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
22946         Reported by Ralf Wildenhues.
22947
22948         dirent: fix test failure
22949         * lib/dirent.in.h (includes): Guarantee ino_t.
22950         Reported by Ralf Wildenhues.
22951
22952 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
22953
22954         linkat, renameat: avoid bad free
22955         * lib/at-func2.c (at_func2): Fix typo.
22956         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
22957
22958 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22959
22960         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
22961         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
22962         to avoid failure of symlink test later.
22963
22964 2010-01-06  Eric Blake  <ebb9@byu.net>
22965
22966         stdio, unistd: guarantee ssize_t
22967         * lib/unistd.in.h (includes): Ensure that types required by POSIX
22968         2008 are exposed when needed.
22969         * lib/stdio.in.h (includes): Likewise.
22970         Reported by Ralf Wildenhues.
22971
22972 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
22973
22974         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
22975         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
22976         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
22977
22978 2010-01-06  Jim Meyering  <meyering@redhat.com>
22979
22980         readtokens: this module *does* require xalloc.h
22981         It uses only functions that were omitted by the old syntax-check rule.
22982         * lib/readtokens.c: Include "xalloc.h" once again.
22983         * modules/readtokens (Depends-on): Add xalloc.
22984         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
22985
22986 2010-01-05  Eric Blake  <ebb9@byu.net>
22987
22988         maint: support 'make announcement' from a VPATH build
22989         * top/maint.mk (announcement): Look for correct NEWS file.
22990
22991 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
22992
22993         utimens (fdutimens): ignore a negative FD, per contract
22994         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
22995         when we have a valid file descriptor.  Otherwise, using a brand
22996         new glibc (with just-patched futimens that now fails with EBADF)
22997         would cause this function to fail with ENOSYS.
22998         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
22999         See also http://bugzilla.redhat.com/552320.
23000
23001 2010-01-05  Eric Blake  <ebb9@byu.net>
23002
23003         strcase: document what it provides
23004         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23005         gnulib module.
23006         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23007         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23008
23009 2010-01-05  Jim Meyering  <meyering@redhat.com>
23010
23011         maint: remove useless inclusions of "xalloc.h"
23012         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23013         * lib/readtokens.c: Likewise.
23014         * lib/same.c: Likewise.
23015         * modules/getloadavg (Depends-on): Remove xalloc.
23016         * modules/readtokens: Likewise.
23017         * modules/same: Likewise.
23018
23019         maint.mk: include 4 more function names in alloca.h-checking regexp
23020         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23021         regexp.  Before, we would give a false-positive (saying alloca.h
23022         is included unnecessarily) when the only uses involved omitted symbols.
23023
23024         xalloc.h: use consistent formatting
23025         * lib/xalloc.h: Move declarations to start in the first column.
23026
23027 2010-01-05  Eric Blake  <ebb9@byu.net>
23028
23029         mkdir: avoid xalloc
23030         * lib/mkdir.c (includes): Drop unused header.
23031         Reported by John W. Eaton.
23032
23033 2010-01-04  Jim Meyering  <meyering@redhat.com>
23034
23035         nl_langinfo: avoid configure-time syntax error
23036         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23037         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23038         the empty string.  Don't let that provoke a shell syntax error.
23039
23040         regcomp, regexec, fnmatch: avoid array bounds read error
23041         * lib/regcomp.c (build_equiv_class): From glibc:
23042         Use only the low 24 bits of a findidx return value as an index
23043         into the weights array.  Patch by Ulrich Drepper:
23044         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23045         * lib/regexec.c (check_node_accept_bytes): Likewise.
23046         * lib/fnmatch_loop.c (FCT): Likewise.
23047
23048         regcomp: skip collseq lookup when there are no rules
23049         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23050         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23051
23052         regcomp: recognize ill-formed { } expressions
23053         * lib/regcomp.c (parse_dup_op): From glibc:
23054         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23055
23056         regcomp: fix typo in comment
23057         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23058         s/satisfy/satisfies/.
23059
23060         regcomp: sync from glibc: remove dead store
23061         * lib/regcomp.c (duplicate_node_closure): Remove useless
23062         search_duplicated_node call and dead store.
23063
23064         regcomp: sync from glibc; always use nl_langinfo
23065         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23066         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23067         * modules/regex (Depends-on): Add nl_langinfo.
23068
23069 2010-01-04  Eric Blake  <ebb9@byu.net>
23070
23071         fdopendir: fix configure test
23072         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23073
23074 2010-01-01  Bruno Haible  <bruno@clisp.org>
23075
23076         wchar: Remove unused configure check.
23077         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23078
23079 2010-01-01  Eric Blake  <ebb9@byu.net>
23080
23081         headers: make check of system header explicit
23082         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23083         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23084         ourselves.
23085         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23086         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23087         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23088         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23089         internals.
23090         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23091         missing.
23092         Suggested by Bruno Haible.
23093
23094 2010-01-01  Jim Meyering  <meyering@redhat.com>
23095
23096         ChangeLog: tweak to eliminate unnecessary copyright line
23097         * ChangeLog: Remove a copyright line that was mistakenly updated
23098         by today's update-copyright run.  Reported by Eric Blake.
23099
23100         test-update-copyright: don't let envvar setting cause test failure
23101         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23102
23103 2010-01-01  Bruno Haible  <bruno@clisp.org>
23104
23105         localename: Avoid gcc warning.
23106         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23107         function if it is not used.
23108
23109 2010-01-01  Jim Meyering  <meyering@redhat.com>
23110
23111         update nearly all FSF copyright year lists to include 2010
23112         Use the same procedure as for 2009, outlined in
23113         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23114
23115         version-etc: set COPYRIGHT_YEAR to 2010
23116         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23117
23118 2009-12-31  Eric Blake  <ebb9@byu.net>
23119
23120         doc: correct availability of cygwin 1.5.x getopt
23121         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23122         variables.
23123         * doc/posix-functions/opterr.texi (opterr): Likewise.
23124         * doc/posix-functions/optind.texi (optind): Likewise.
23125         * doc/posix-functions/optopt.texi (optopt): Likewise.
23126         * doc/posix-functions/tzname.texi (tzname): Likewise.
23127
23128         openat: update maintainer
23129         * modules/openat (Maintainer): Add myself.
23130
23131         utimens: avoid shadowing warning
23132         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23133         buffers into one, to avoid shadowing, as well as avoiding a
23134         redundant stat.
23135         Reported by Jim Meyering.
23136
23137         test-dup2: avoid compiler warning
23138         * tests/test-dup2.c (is_inheritable): Only define if used.
23139
23140 2010-01-01  Bruno Haible  <bruno@clisp.org>
23141
23142         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23143         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23144         defined, use wctomb instead of wcrtomb.
23145
23146 2010-01-01  Bruno Haible  <bruno@clisp.org>
23147
23148         iconv: Reject native Solaris iconv.
23149         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23150         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23151
23152 2009-12-31  Bruno Haible  <bruno@clisp.org>
23153
23154         * tests/test-signal.c (main): Remove test of 'SIG'.
23155
23156 2009-12-31  Bruno Haible  <bruno@clisp.org>
23157
23158         spawn: Fix incomplete fix.
23159         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23160         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23161         warnings for GNULIB_POSIXCHECK again.
23162         Reported by Eric Blake.
23163
23164 2009-12-31  Bruno Haible  <bruno@clisp.org>
23165
23166         Avoid namespace pollution on glibc systems.
23167         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23168         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23169         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23170         glibc systems.
23171
23172 2009-12-31  Bruno Haible  <bruno@clisp.org>
23173
23174         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23175         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23176         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23177         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23178         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23179         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23180         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23181
23182 2009-12-31  Bruno Haible  <bruno@clisp.org>
23183
23184         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23185         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23186         afterwards.
23187
23188 2009-12-31  Bruno Haible  <bruno@clisp.org>
23189
23190         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23191         SYS_UTSNAME_H.
23192
23193 2009-12-31  Bruno Haible  <bruno@clisp.org>
23194
23195         spawn: Fix misapplied patch.
23196         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23197         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23198         warnings for GNULIB_POSIXCHECK.
23199
23200 2009-12-31  Bruno Haible  <bruno@clisp.org>
23201
23202         times: Update after sys_times changed.
23203         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23204         * modules/times (Files): Add it.
23205         (configure.ac): Invoke gl_FUNC_TIMES.
23206
23207 2009-12-31  Bruno Haible  <bruno@clisp.org>
23208
23209         Use AC_C_INLINE where necessary.
23210         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23211         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23212         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23213         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23214         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23215         * m4/mbiter.m4 (gl_MBITER): Likewise.
23216         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23217         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23218         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23219         * modules/u64 (configure.ac): Likewise.
23220
23221 2009-12-31  Bruno Haible  <bruno@clisp.org>
23222
23223         Use AC_C_INLINE instead of module 'inline' where possible.
23224         * modules/inline (Description): Clarify purpose.
23225         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23226         * modules/count-one-bits (Depends-on): Remove inline.
23227         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23228         * modules/openat (Depends-on): Remove inline.
23229         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23230         instead of depending on module 'inline'.
23231         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23232         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23233         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23234         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23235         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23236         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23237         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23238         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23239         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23240         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23241         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23242         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23243         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23244         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23245         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23246         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23247         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23248         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23249         Likewise.
23250         * modules/unictype/property-ascii-hex-digit (Depends-on,
23251         configure.ac): Likewise.
23252         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23253         configure.ac): Likewise.
23254         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23255         configure.ac): Likewise.
23256         * modules/unictype/property-bidi-block-separator (Depends-on,
23257         configure.ac): Likewise.
23258         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23259         configure.ac): Likewise.
23260         * modules/unictype/property-bidi-common-separator (Depends-on,
23261         configure.ac): Likewise.
23262         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23263         Likewise.
23264         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23265         configure.ac): Likewise.
23266         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23267         configure.ac): Likewise.
23268         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23269         configure.ac): Likewise.
23270         * modules/unictype/property-bidi-european-digit (Depends-on,
23271         configure.ac): Likewise.
23272         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23273         configure.ac): Likewise.
23274         * modules/unictype/property-bidi-left-to-right (Depends-on,
23275         configure.ac): Likewise.
23276         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23277         configure.ac): Likewise.
23278         * modules/unictype/property-bidi-other-neutral (Depends-on,
23279         configure.ac): Likewise.
23280         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23281         Likewise.
23282         * modules/unictype/property-bidi-segment-separator (Depends-on,
23283         configure.ac): Likewise.
23284         * modules/unictype/property-bidi-whitespace (Depends-on,
23285         configure.ac): Likewise.
23286         * modules/unictype/property-combining (Depends-on, configure.ac):
23287         Likewise.
23288         * modules/unictype/property-composite (Depends-on, configure.ac):
23289         Likewise.
23290         * modules/unictype/property-currency-symbol (Depends-on,
23291         configure.ac): Likewise.
23292         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23293         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23294         Likewise.
23295         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23296         configure.ac): Likewise.
23297         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23298         Likewise.
23299         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23300         Likewise.
23301         * modules/unictype/property-extender (Depends-on, configure.ac):
23302         Likewise.
23303         * modules/unictype/property-format-control (Depends-on, configure.ac):
23304         Likewise.
23305         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23306         Likewise.
23307         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23308         Likewise.
23309         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23310         Likewise.
23311         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23312         Likewise.
23313         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23314         Likewise.
23315         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23316         Likewise.
23317         * modules/unictype/property-id-start (Depends-on, configure.ac):
23318         Likewise.
23319         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23320         Likewise.
23321         * modules/unictype/property-ids-binary-operator (Depends-on,
23322         configure.ac): Likewise.
23323         * modules/unictype/property-ids-trinary-operator (Depends-on,
23324         configure.ac): Likewise.
23325         * modules/unictype/property-ignorable-control (Depends-on,
23326         configure.ac): Likewise.
23327         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23328         Likewise.
23329         * modules/unictype/property-join-control (Depends-on, configure.ac):
23330         Likewise.
23331         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23332         Likewise.
23333         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23334         Likewise.
23335         * modules/unictype/property-logical-order-exception (Depends-on,
23336         configure.ac): Likewise.
23337         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23338         Likewise.
23339         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23340         * modules/unictype/property-non-break (Depends-on, configure.ac):
23341         Likewise.
23342         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23343         Likewise.
23344         * modules/unictype/property-numeric (Depends-on, configure.ac):
23345         Likewise.
23346         * modules/unictype/property-other-alphabetic (Depends-on,
23347         configure.ac): Likewise.
23348         * modules/unictype/property-other-default-ignorable-code-point
23349         (Depends-on, configure.ac): Likewise.
23350         * modules/unictype/property-other-grapheme-extend (Depends-on,
23351         configure.ac): Likewise.
23352         * modules/unictype/property-other-id-continue (Depends-on,
23353         configure.ac): Likewise.
23354         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23355         Likewise.
23356         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23357         Likewise.
23358         * modules/unictype/property-other-math (Depends-on, configure.ac):
23359         Likewise.
23360         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23361         Likewise.
23362         * modules/unictype/property-paired-punctuation (Depends-on,
23363         configure.ac): Likewise.
23364         * modules/unictype/property-paragraph-separator (Depends-on,
23365         configure.ac): Likewise.
23366         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23367         Likewise.
23368         * modules/unictype/property-pattern-white-space (Depends-on,
23369         configure.ac): Likewise.
23370         * modules/unictype/property-private-use (Depends-on, configure.ac):
23371         Likewise.
23372         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23373         Likewise.
23374         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23375         Likewise.
23376         * modules/unictype/property-radical (Depends-on, configure.ac):
23377         Likewise.
23378         * modules/unictype/property-sentence-terminal (Depends-on,
23379         configure.ac): Likewise.
23380         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23381         Likewise.
23382         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23383         * modules/unictype/property-terminal-punctuation (Depends-on,
23384         configure.ac): Likewise.
23385         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23386         Likewise.
23387         * modules/unictype/property-unassigned-code-value (Depends-on,
23388         configure.ac): Likewise.
23389         * modules/unictype/property-unified-ideograph (Depends-on,
23390         configure.ac): Likewise.
23391         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23392         Likewise.
23393         * modules/unictype/property-variation-selector (Depends-on,
23394         configure.ac): Likewise.
23395         * modules/unictype/property-white-space (Depends-on, configure.ac):
23396         Likewise.
23397         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23398         Likewise.
23399         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23400         Likewise.
23401         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23402         Likewise.
23403         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23404         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23405         Likewise.
23406
23407 2009-12-31  Bruno Haible  <bruno@clisp.org>
23408
23409         Remove unnecessary AC_C_INLINE invocation.
23410         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23411         since 2009-08-21.
23412
23413 2009-12-31  Jim Meyering  <meyering@redhat.com>
23414
23415         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23416         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23417         With this change, we can all remove the gpg_key_ID = ... definition
23418         from our respective cfg.mk files.
23419
23420         maint.mk: create announcement template in ~/, not in /tmp
23421         * top/maint.mk (emit_upload_commands): Adjust.
23422         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23423         Remove temporary file, .ci-msg.
23424
23425 2009-12-31  Eric Blake  <ebb9@byu.net>
23426
23427         link-warning: always build headers with link warnings
23428         * modules/arpa_inet (Makefile.am): Always build replacement
23429         header.
23430         * modules/ctype (Makefile.am): Likewise.
23431         * modules/dirent (Makefile.am): Likewise.
23432         * modules/inttypes (Makefile.am): Likewise.
23433         * modules/langinfo (Makefile.am): Likewise.
23434         * modules/locale (Makefile.am): Likewise.
23435         * modules/spawn (Makefile.am): Likewise.
23436         * modules/sys_file (Makefile.am): Likewise.
23437         * modules/sys_ioctl (Makefile.am): Likewise.
23438         * modules/sys_select (Makefile.am): Likewise.
23439         * modules/sys_socket (Makefile.am): Likewise.
23440         * modules/sys_times (Makefile.am): Likewise.
23441         * modules/sys_utsname (Makefile.am): Likewise.
23442         * modules/sys_wait (Makefile.am): Likewise.
23443         * modules/wchar (Makefile.am): Likewise.
23444         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23445         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23446         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23447         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23448         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23449         Likewise.
23450         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23451         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23452         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
23453         Likewise.
23454         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
23455         Likewise.
23456         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23457         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
23458         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
23459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23460         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23461         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23462         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23463         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
23464         (gl_WCHAR_H_DEFAULTS): Likewise.
23465
23466 2009-12-31  Eric Blake  <ebb9@byu.net>
23467
23468         signal, spawn: use link warnings
23469         * lib/signal.in.h (sigset_t): Make unconditional.
23470         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23471         (sigpending, sigprocmask, sigaction): Add link warnings.
23472         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23473         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23474         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23475         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23476         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23477         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23478         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23479         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23480         (posix_spawn_file_actions_destroy)
23481         (posix_spawn_file_actions_addopen)
23482         (posix_spawn_file_actions_addclose)
23483         (posix_spawn_file_actions_adddup2): Likewise.
23484         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23485         * tests/test-signal.c (main): Enhance test.
23486
23487         spawn: improve wrapper support
23488         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23489         (gl_SPAWN_H_DEFAULTS): New defaults.
23490         * modules/spawn (Makefile.am): Substitute them.
23491         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23492         Only declare if missing or broken.
23493
23494         sys_times, sys_utsname: use include_next
23495         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23496         header.
23497         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23498         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23499         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23500         * modules/sys_times (Depends-on): Add include_next.
23501         (Makefile.am): Substitute additional values.
23502         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23503         * lib/sys_times.in.h (includes): Include native header, if
23504         available.
23505         * lib/sys_utsname.in.h (includes): Likewise.
23506         * tests/test-sys_times.c (main): Enhance test.
23507
23508         fdutimensat: revert prior patch
23509         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23510         utimens.h.
23511         Reported by Bruno Haible.
23512
23513 2009-12-30  Eric Blake  <ebb9@byu.net>
23514
23515         sys_wait: drop link-warning dependency
23516         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23517         link-warning efforts.
23518         * lib/sys_wait.in.h: Likewise.
23519
23520         fdutimensat: remove bogus dependency
23521         * modules/fdutimensat (Depends-on): Drop inline.
23522
23523         unistd: fix typo
23524         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23525
23526 2009-12-30  Bruno Haible  <bruno@clisp.org>
23527
23528         Fix compilation error with Solaris cc.
23529         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23530         * lib/unicase/u16-is-invariant.c: Likewise.
23531         * lib/unicase/u32-is-invariant.c: Likewise.
23532         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23533
23534 2009-12-30  Bruno Haible  <bruno@clisp.org>
23535
23536         Fix test crash.
23537         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
23538         locales.
23539         Reported by Simon Josefsson <simon@josefsson.org>.
23540
23541 2009-12-30  Bruno Haible  <bruno@clisp.org>
23542
23543         Fix compilation error on most platforms.
23544         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
23545         Reported by Simon Josefsson <simon@josefsson.org>
23546         and Nelson H. F. Beebe <beebe@math.utah.edu>.
23547
23548 2009-12-30  Eric Blake  <ebb9@byu.net>
23549
23550         futimens, utimensat: work around ntfs-3g bug
23551         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
23552         a ctime bug is present, and expand workaround to cover ntfs-3g.
23553         * lib/utimens.c (fdutimens, lutimens): Likewise.
23554         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
23555         (validate_timespec): Adjust return value.
23556         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
23557         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23558         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
23559
23560 2009-12-29  Eric Blake  <ebb9@byu.net>
23561
23562         link-warning: make usage consistent
23563         * modules/ctype (Depends-on): Add link-warning.
23564         (Makefile.am): Update rules accordingly.
23565         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23566         * modules/locale (Depends-on, Makefile.am): Likewise.
23567         * modules/sys_file (Makefile.am): Likewise.
23568         * modules/getopt-posix (Makefile.am): Delete unused link warning
23569         efforts.
23570         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
23571         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
23572         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
23573         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
23574
23575         stdio: remove unused variables
23576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
23577         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
23578         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23579
23580         tests: test more substitute headers
23581         * modules/ctype-tests: New file.
23582         * modules/dirent-tests: Likewise.
23583         * modules/spawn-tests: Likewise.
23584         * modules/sys_file-tests: Likewise.
23585         * modules/sys_ioctl-tests: Likewise.
23586         * modules/sys_wait-tests: Likewise.
23587         * tests/test-ctype.c: Likewise.
23588         * tests/test-dirent.c: Likewise.
23589         * tests/test-spawn.c: Likewise.
23590         * tests/test-sys_file.c: Likewise.
23591         * tests/test-sys_ioctl.c: Likewise.
23592         * tests/test-sys_wait.c: Likewise.
23593         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
23594         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
23595         whether or not flock is in use.
23596
23597         tests: remove License section from module
23598         * modules/arpa_inet-tests: Remove unneeded section.
23599         * modules/byteswap-tests: Likewise.
23600         * modules/ceilf-tests: Likewise.
23601         * modules/ceill-tests: Likewise.
23602         * modules/crypto/des-tests: Likewise.
23603         * modules/crypto/gc-arcfour-tests: Likewise.
23604         * modules/crypto/gc-arctwo-tests: Likewise.
23605         * modules/crypto/gc-des-tests: Likewise.
23606         * modules/crypto/gc-hmac-md5-tests: Likewise.
23607         * modules/crypto/gc-hmac-sha1-tests: Likewise.
23608         * modules/crypto/gc-md2-tests: Likewise.
23609         * modules/crypto/gc-md4-tests: Likewise.
23610         * modules/crypto/gc-md5-tests: Likewise.
23611         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
23612         * modules/crypto/gc-rijndael-tests: Likewise.
23613         * modules/crypto/gc-sha1-tests: Likewise.
23614         * modules/crypto/gc-tests: Likewise.
23615         * modules/crypto/md2-tests: Likewise.
23616         * modules/crypto/md4-tests: Likewise.
23617         * modules/fcntl-h-tests: Likewise.
23618         * modules/floorf-tests: Likewise.
23619         * modules/floorl-tests: Likewise.
23620         * modules/frexp-nolibm-tests: Likewise.
23621         * modules/frexp-tests: Likewise.
23622         * modules/frexpl-nolibm-tests: Likewise.
23623         * modules/frexpl-tests: Likewise.
23624         * modules/getaddrinfo-tests: Likewise.
23625         * modules/inttypes-tests: Likewise.
23626         * modules/isfinite-tests: Likewise.
23627         * modules/isinf-tests: Likewise.
23628         * modules/ldexpl-tests: Likewise.
23629         * modules/locale-tests: Likewise.
23630         * modules/math-tests: Likewise.
23631         * modules/netdb-tests: Likewise.
23632         * modules/netinet_in-tests: Likewise.
23633         * modules/printf-frexp-tests: Likewise.
23634         * modules/printf-frexpl-tests: Likewise.
23635         * modules/priv-set-tests: Likewise.
23636         * modules/random_r-tests: Likewise.
23637         * modules/round-tests: Likewise.
23638         * modules/roundf-tests: Likewise.
23639         * modules/roundl-tests: Likewise.
23640         * modules/search-tests: Likewise.
23641         * modules/select-tests: Likewise.
23642         * modules/signal-tests: Likewise.
23643         * modules/stdbool-tests: Likewise.
23644         * modules/stddef-tests: Likewise.
23645         * modules/stdint-tests: Likewise.
23646         * modules/stdio-tests: Likewise.
23647         * modules/stdlib-tests: Likewise.
23648         * modules/string-tests: Likewise.
23649         * modules/strings-tests: Likewise.
23650         * modules/sys_select-tests: Likewise.
23651         * modules/sys_socket-tests: Likewise.
23652         * modules/sys_stat-tests: Likewise.
23653         * modules/sys_time-tests: Likewise.
23654         * modules/sys_utsname-tests: Likewise.
23655         * modules/sysexits-tests: Likewise.
23656         * modules/time-tests: Likewise.
23657         * modules/trunc-tests: Likewise.
23658         * modules/truncf-tests: Likewise.
23659         * modules/truncl-tests: Likewise.
23660         * modules/tsearch-tests: Likewise.
23661         * modules/unistd-tests: Likewise.
23662         * modules/wchar-tests: Likewise.
23663         * modules/wctype-tests: Likewise.
23664
23665         tests: fix license on several tests
23666         * tests/test-des.c: Update to GPLv3+.
23667         * tests/test-flock.c: Likewise.
23668         * tests/test-fsync.c: Likewise.
23669         * tests/test-futimens.h: Likewise.
23670         * tests/test-gc-arcfour.c: Likewise.
23671         * tests/test-gc-arctwo.c: Likewise.
23672         * tests/test-gc-des.c: Likewise.
23673         * tests/test-gc-hmac-md5.c: Likewise.
23674         * tests/test-gc-hmac-sha1.c: Likewise.
23675         * tests/test-gc-md2.c: Likewise.
23676         * tests/test-gc-md4.c: Likewise.
23677         * tests/test-gc-md5.c: Likewise.
23678         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23679         * tests/test-gc-rijndael.c: Likewise.
23680         * tests/test-gc-sha1.c: Likewise.
23681         * tests/test-gc.c: Likewise.
23682         * tests/test-getcwd.c: Likewise.
23683         * tests/test-link.c: Likewise.
23684         * tests/test-link.h: Likewise.
23685         * tests/test-lutimens.h: Likewise.
23686         * tests/test-md2.c: Likewise.
23687         * tests/test-md4.c: Likewise.
23688         * tests/test-mkdir.h: Likewise.
23689         * tests/test-rename.c: Likewise.
23690         * tests/test-rename.h: Likewise.
23691         * tests/test-safe-alloc.c: Likewise.
23692         * tests/test-utimens-common.h: Likewise.
23693         * tests/test-utimens.h: Likewise.
23694
23695         maint: sync license texts
23696         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
23697         * doc/gpl-3.0.texi: Revert copyright year update.
23698         * doc/lgpl-3.0.texi: Likewise.
23699
23700 2009-12-29  Jim Meyering  <meyering@redhat.com>
23701
23702         update nearly all FSF copyright year lists to include 2009
23703         The files named by the following are exempted:
23704             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
23705               test -f "$dst" && { echo "$dst"; continue; }
23706               test -d "$dst" || continue
23707               echo "$dst"/$(basename "$src")
23708             done > exempt
23709             git ls-files tests/unictype >> exempt
23710         In the remaining files, convert to all-interval notation if
23711         - there is already at least one year interval like 2000-2003
23712         - the file is maintained by me
23713         - the file is in lib/uni*/, where that style already prevails
23714         Otherwise, use update-copyright's default.
23715
23716 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23717         and Eric Blake  <ebb9@byu.net>
23718
23719         tests: don't require debug system() to pass
23720         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
23721         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23722         * tests/test-unlink.h (test_unlink_func): Likewise.
23723         * tests/test-fstatat.c (main): ...into callers.
23724         * tests/test-lstat.c (main): Likewise.
23725         * tests/test-rmdir.c (main): Likewise.
23726         * tests/test-unlink.c (main): Likewise.
23727         * tests/test-unlinkat.c (main): Likewise.
23728         * tests/test-areadlink-with-size.c (main): Don't require a
23729         debug-only system call to pass, aiding cross-testing to mingw.
23730         * tests/test-areadlink.c (main): Likewise.
23731         * tests/test-areadlinkat-with-size.c (main): Likewise.
23732         * tests/test-areadlinkat.c (main): Likewise.
23733         * tests/test-canonicalize-lgpl.c (main): Likewise.
23734         * tests/test-canonicalize.c (main): Likewise.
23735         * tests/test-chown.c (main): Likewise.
23736         * tests/test-fchownat.c (main): Likewise.
23737         * tests/test-lchown.c (main): Likewise.
23738         * tests/test-fdutimensat.c (main): Likewise.
23739         * tests/test-futimens.c (main): Likewise.
23740         * tests/test-link.c (main): Likewise.
23741         * tests/test-linkat.c (main): Likewise.
23742         * tests/test-mkdir.c (main): Likewise.
23743         * tests/test-mkdirat.c (main): Likewise.
23744         * tests/test-mkfifo.c (main): Likewise.
23745         * tests/test-mkfifoat.c (main): Likewise.
23746         * tests/test-mknod.c (main): Likewise.
23747         * tests/test-readlink.c (main): Likewise.
23748         * tests/test-remove.c (main): Likewise.
23749         * tests/test-rename.c (main): Likewise.
23750         * tests/test-renameat.c (main): Likewise.
23751         * tests/test-symlink.c (main): Likewise.
23752         * tests/test-symlinkat.c (main): Likewise.
23753         * tests/test-utimens.c (main): Likewise.
23754         * tests/test-utimensat.c (main): Likewise.
23755
23756 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23757
23758         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
23759         on $(UNUSED_PARAMETER_H) to avoid build failure.
23760
23761 2009-12-28  Jim Meyering  <meyering@redhat.com>
23762
23763         update-copyright: you may specify a max. line length other than 72
23764         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23765
23766         maint: use consistent FSF copyright line syntax
23767         * lib/posixtm.c: Add missing comma in FSF copyright line.
23768         * lib/posixtm.h: Likewise.
23769         * lib/getugroups.c: Add missing ", Inc.".
23770
23771         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
23772         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
23773         FSF copyright line.  Remove trailing blanks.
23774
23775 2009-12-28  Eric Blake  <ebb9@byu.net>
23776
23777         test-dup2: reduce dependencies
23778         * modules/cloexec (Configure.ac): Set witness.
23779         * modules/dup2-tests (Depends-on): Drop cloexec.
23780         * tests/test-dup2.c (main): Skip portion of test if cloexec module
23781         not present.
23782         Suggested by Bruno Haible.
23783
23784 2009-12-26  Bruno Haible  <bruno@clisp.org>
23785
23786         Remove an unneeded dependency.
23787         * modules/fseterr (Depends-on): Remove dup2.
23788
23789 2009-12-26  Eric Blake  <ebb9@byu.net>
23790
23791         tests: use macros.h in more places
23792         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
23793         (ASSERT_STREAM): Provide default of stderr.
23794         * tests/test-dirent-safer.c: Include macros.h, using alternate
23795         stream for assertions.
23796         * tests/test-dup-safer.c: Likewise.
23797         * tests/test-freopen-safer.c: Likewise.
23798         * tests/test-getopt.c: Likewise.
23799         * tests/test-openat-safer.c: Likewise.
23800         * tests/test-pipe.c: Likewise.
23801         * tests/test-popen-safer.c: Likewise.
23802         * modules/dirent-safer-tests (Files): Include macros.h.
23803         * modules/unistd-safer-tests (Files): Likewise.
23804         * modules/freopen-safer-tests (Files): Likewise.
23805         * modules/getopt-posix-tests (Files): Likewise.
23806         * modules/openat-safer-tests (Files): Likewise.
23807         * modules/pipe-tests (Files): Likewise.
23808
23809 2009-12-26  Bruno Haible  <bruno@clisp.org>
23810
23811         javacomp: Portability fix.
23812         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
23813         that it also works on Solaris.
23814
23815 2009-12-26  Bruno Haible  <bruno@clisp.org>
23816
23817         localename: Fix storage allocation of gl_locale_name_thread's result.
23818         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
23819         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
23820         all platforms that have 'uselocale'.
23821         (gl_locale_name_thread_unsafe): New function, extracted from
23822         gl_locale_name_thread.
23823         (gl_locale_name_thread): Call struniq on all platforms that have
23824         'uselocale'.
23825         * tests/test-localename.c (test_locale_name_thread): Check that the
23826         resulting strings are permanently allocated.
23827         * modules/localename-tests (Depends-on): Add strdup.
23828
23829 2009-12-26  Bruno Haible  <bruno@clisp.org>
23830
23831         * tests/test-localename.c (categories): Fill in the strings.
23832
23833 2009-12-26  Jim Meyering  <meyering@redhat.com>
23834
23835         isdir: complete the removal of m4/isdir.m4
23836         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
23837
23838         isdir: clean up, since at least grep still uses it
23839         * lib/isdir.c: Include "isdir.h".
23840         (S_ISDIR): Remove now-unneeded definition.
23841         * modules/isdir (Files): Add lib/isdir.h.
23842         * lib/isdir.h: New file, with declaration.
23843         * m4/isdir.m4: Remove file -- unneeded.
23844
23845 2009-12-25  Bruno Haible  <bruno@clisp.org>
23846
23847         selinux-h: Make generated .h files standalone.
23848         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
23849         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
23850         * lib/se-selinux.in.h: Likewise.
23851         * modules/selinux-h (Depends-on): Add unused-parameter.
23852         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
23853         selinux/selinux.h and selinux/context.h.
23854         Suggested by Eric Blake.
23855
23856 2009-12-25  Bruno Haible  <bruno@clisp.org>
23857
23858         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
23859         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
23860         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
23861         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
23862         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
23863
23864 2009-12-24  Bruno Haible  <bruno@clisp.org>
23865
23866         openat: Fix warning.
23867         * lib/openat-proc.c: Include <unistd.h>.
23868
23869 2009-12-24  Bruno Haible  <bruno@clisp.org>
23870
23871         New module 'unused-parameter'.
23872         * build-aux/unused-parameter.h: New file, extracted from earlier
23873         gnulib-common.m4.
23874         * modules/unused-parameter: New file.
23875         * lib/unistr.h: Include unused-parameter.h.
23876         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
23877         _GL_UNUSED.
23878         * modules/unistr/base (Depends-on): Add unused-parameter.
23879
23880 2009-12-24  Bruno Haible  <bruno@clisp.org>
23881
23882         Add missing dependencies to 'extensions' module.
23883         * m4/extensions.m4: Add comment.
23884         * modules/accept4 (Depends-on): Add extensions.
23885         * modules/dup3 (Depends-on): Likewise.
23886         * modules/fcntl (Depends-on): Likewise.
23887         * modules/futimens (Depends-on): Likewise.
23888         * modules/mknod (Depends-on): Likewise.
23889         * modules/pipe2 (Depends-on): Likewise.
23890         * modules/stat-time (Depends-on): Likewise.
23891         * modules/strcasestr-simple (Depends-on): Likewise.
23892         * modules/strsignal (Depends-on): Likewise.
23893         * modules/utimensat (Depends-on): Likewise.
23894         * modules/localcharset (Depends-on): Likewise. Needed because of
23895         gl_FCNTL_O_FLAGS.
23896         * modules/wcrtomb (Depends-on): Likewise. Needed because of
23897         AC_TYPE_MBSTATE_T.
23898         * modules/wcsnrtombs (Depends-on): Likewise.
23899         * modules/wcsrtombs (Depends-on): Likewise.
23900
23901 2009-12-24  Bruno Haible  <bruno@clisp.org>
23902
23903         binary-io: Avoid gcc warning due to SET_BINARY.
23904         * lib/binary-io.h (SET_BINARY): Cast the result to void.
23905         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
23906
23907 2009-12-24  Bruno Haible  <bruno@clisp.org>
23908
23909         Avoid future namespace pollution on glibc systems.
23910         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
23911         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
23912         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
23913         glibc systems.
23914
23915 2009-12-24  Bruno Haible  <bruno@clisp.org>
23916
23917         Refactor common macros used in tests.
23918         * tests/macros.h: New file.
23919         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
23920         and/or <stdlib.h>, if appropriate.
23921         (ASSERT, SIZEOF): Remove macros.
23922         * tests/test-areadlink-with-size.c: Likewise.
23923         * tests/test-areadlinkat.c: Likewise.
23924         * tests/test-areadlinkat-with-size.c: Likewise.
23925         * tests/test-argmatch.c: Likewise.
23926         * tests/test-argv-iter.c: Likewise.
23927         * tests/test-array-mergesort.c: Likewise.
23928         * tests/test-array_list.c: Likewise.
23929         * tests/test-array_oset.c: Likewise.
23930         * tests/test-avltree_list.c: Likewise.
23931         * tests/test-avltree_oset.c: Likewise.
23932         * tests/test-avltreehash_list.c: Likewise.
23933         * tests/test-base64.c: Likewise.
23934         * tests/test-binary-io.c: Likewise.
23935         * tests/test-bitrotate.c: Likewise.
23936         * tests/test-btowc.c: Likewise.
23937         * tests/test-byteswap.c: Likewise.
23938         * tests/test-c-ctype.c: Likewise.
23939         * tests/test-c-stack.c: Likewise.
23940         * tests/test-c-strcasecmp.c: Likewise.
23941         * tests/test-c-strcasestr.c: Likewise.
23942         * tests/test-c-strncasecmp.c: Likewise.
23943         * tests/test-c-strstr.c: Likewise.
23944         * tests/test-canonicalize-lgpl.c: Likewise.
23945         * tests/test-canonicalize.c: Likewise.
23946         * tests/test-carray_list.c: Likewise.
23947         * tests/test-ceilf1.c: Likewise.
23948         * tests/test-ceilf2.c: Likewise.
23949         * tests/test-ceill.c: Likewise.
23950         * tests/test-chown.c: Likewise.
23951         * tests/test-cloexec.c: Likewise.
23952         * tests/test-copy-acl.c: Likewise.
23953         * tests/test-copy-file.c: Likewise.
23954         * tests/test-count-one-bits.c: Likewise.
23955         * tests/test-dprintf-posix.c: Likewise.
23956         * tests/test-dup2.c: Likewise.
23957         * tests/test-dup3.c: Likewise.
23958         * tests/test-duplocale.c: Likewise.
23959         * tests/test-fbufmode.c: Likewise.
23960         * tests/test-fchdir.c: Likewise.
23961         * tests/test-fchownat.c: Likewise.
23962         * tests/test-fcntl-safer.c: Likewise.
23963         * tests/test-fcntl.c: Likewise.
23964         * tests/test-fdopendir.c: Likewise.
23965         * tests/test-fdutimensat.c: Likewise.
23966         * tests/test-fflush2.c: Likewise.
23967         * tests/test-file-has-acl.c: Likewise.
23968         * tests/test-filevercmp.c: Likewise.
23969         * tests/test-flock.c: Likewise.
23970         * tests/test-floorf1.c: Likewise.
23971         * tests/test-floorf2.c: Likewise.
23972         * tests/test-floorl.c: Likewise.
23973         * tests/test-fnmatch.c: Likewise.
23974         * tests/test-fopen.h: Likewise.
23975         * tests/test-fpending.c: Likewise.
23976         * tests/test-fprintf-posix.c: Likewise.
23977         * tests/test-fpurge.c: Likewise.
23978         * tests/test-freadable.c: Likewise.
23979         * tests/test-freadahead.c: Likewise.
23980         * tests/test-freading.c: Likewise.
23981         * tests/test-freadptr.c: Likewise.
23982         * tests/test-freadptr2.c: Likewise.
23983         * tests/test-freadseek.c: Likewise.
23984         * tests/test-freopen.c: Likewise.
23985         * tests/test-frexp.c: Likewise.
23986         * tests/test-frexpl.c: Likewise.
23987         * tests/test-fseek.c: Likewise.
23988         * tests/test-fseeko.c: Likewise.
23989         * tests/test-fstatat.c: Likewise.
23990         * tests/test-fstrcmp.c: Likewise.
23991         * tests/test-fsync.c: Likewise.
23992         * tests/test-ftell.c: Likewise.
23993         * tests/test-ftello.c: Likewise.
23994         * tests/test-func.c: Likewise.
23995         * tests/test-futimens.c: Likewise.
23996         * tests/test-fwritable.c: Likewise.
23997         * tests/test-fwriting.c: Likewise.
23998         * tests/test-getcwd.c: Likewise.
23999         * tests/test-getdate.c: Likewise.
24000         * tests/test-getdelim.c: Likewise.
24001         * tests/test-getdtablesize.c: Likewise.
24002         * tests/test-getgroups.c: Likewise.
24003         * tests/test-getline.c: Likewise.
24004         * tests/test-getndelim2.c: Likewise.
24005         * tests/test-glob.c: Likewise.
24006         * tests/test-hash.c: Likewise.
24007         * tests/test-i-ring.c: Likewise.
24008         * tests/test-iconv-utf.c: Likewise.
24009         * tests/test-iconv.c: Likewise.
24010         * tests/test-idpriv-drop.c: Likewise.
24011         * tests/test-idpriv-droptemp.c: Likewise.
24012         * tests/test-inet_ntop.c: Likewise.
24013         * tests/test-inet_pton.c: Likewise.
24014         * tests/test-isblank.c: Likewise.
24015         * tests/test-isfinite.c: Likewise.
24016         * tests/test-isinf.c: Likewise.
24017         * tests/test-isnan.c: Likewise.
24018         * tests/test-isnand.h: Likewise.
24019         * tests/test-isnanf.h: Likewise.
24020         * tests/test-isnanl.h: Likewise.
24021         * tests/test-lchown.c: Likewise.
24022         * tests/test-ldexpl.c: Likewise.
24023         * tests/test-link.c: Likewise.
24024         * tests/test-linkat.c: Likewise.
24025         * tests/test-linked_list.c: Likewise.
24026         * tests/test-linkedhash_list.c: Likewise.
24027         * tests/test-localename.c: Likewise.
24028         * tests/test-lseek.c: Likewise.
24029         * tests/test-lstat.c: Likewise.
24030         * tests/test-mbmemcasecmp.c: Likewise.
24031         * tests/test-mbmemcasecoll.c: Likewise.
24032         * tests/test-mbrtowc.c: Likewise.
24033         * tests/test-mbscasecmp.c: Likewise.
24034         * tests/test-mbscasestr1.c: Likewise.
24035         * tests/test-mbscasestr2.c: Likewise.
24036         * tests/test-mbscasestr3.c: Likewise.
24037         * tests/test-mbscasestr4.c: Likewise.
24038         * tests/test-mbschr.c: Likewise.
24039         * tests/test-mbscspn.c: Likewise.
24040         * tests/test-mbsinit.c: Likewise.
24041         * tests/test-mbsncasecmp.c: Likewise.
24042         * tests/test-mbsnrtowcs.c: Likewise.
24043         * tests/test-mbspbrk.c: Likewise.
24044         * tests/test-mbspcasecmp.c: Likewise.
24045         * tests/test-mbsrchr.c: Likewise.
24046         * tests/test-mbsrtowcs.c: Likewise.
24047         * tests/test-mbsspn.c: Likewise.
24048         * tests/test-mbsstr1.c: Likewise.
24049         * tests/test-mbsstr2.c: Likewise.
24050         * tests/test-mbsstr3.c: Likewise.
24051         * tests/test-memchr.c: Likewise.
24052         * tests/test-memchr2.c: Likewise.
24053         * tests/test-memcmp.c: Likewise.
24054         * tests/test-memmem.c: Likewise.
24055         * tests/test-memrchr.c: Likewise.
24056         * tests/test-mkdir.c: Likewise.
24057         * tests/test-mkdirat.c: Likewise.
24058         * tests/test-mkfifo.c: Likewise.
24059         * tests/test-mkfifoat.c: Likewise.
24060         * tests/test-mknod.c: Likewise.
24061         * tests/test-nanosleep.c: Likewise.
24062         * tests/test-nl_langinfo.c: Likewise.
24063         * tests/test-obstack-printf.c: Likewise.
24064         * tests/test-open.c: Likewise.
24065         * tests/test-openat.c: Likewise.
24066         * tests/test-pipe-filter-gi1.c: Likewise.
24067         * tests/test-pipe-filter-gi2-main.c: Likewise.
24068         * tests/test-pipe-filter-ii1.c: Likewise.
24069         * tests/test-pipe-filter-ii2-main.c: Likewise.
24070         * tests/test-pipe2.c: Likewise.
24071         * tests/test-popen.h: Likewise.
24072         * tests/test-posixtm.c: Likewise.
24073         * tests/test-pread.c: Likewise.
24074         * tests/test-printf-frexp.c: Likewise.
24075         * tests/test-printf-frexpl.c: Likewise.
24076         * tests/test-printf-posix.c: Likewise.
24077         * tests/test-priv-set.c: Likewise.
24078         * tests/test-quotearg.c: Likewise.
24079         * tests/test-random_r.c: Likewise.
24080         * tests/test-rawmemchr.c: Likewise.
24081         * tests/test-rbtree_list.c: Likewise.
24082         * tests/test-rbtree_oset.c: Likewise.
24083         * tests/test-rbtreehash_list.c: Likewise.
24084         * tests/test-readlink.c: Likewise.
24085         * tests/test-remove.c: Likewise.
24086         * tests/test-rename.c: Likewise.
24087         * tests/test-renameat.c: Likewise.
24088         * tests/test-rmdir.c: Likewise.
24089         * tests/test-round1.c: Likewise.
24090         * tests/test-roundf1.c: Likewise.
24091         * tests/test-roundl.c: Likewise.
24092         * tests/test-safe-alloc.c: Likewise.
24093         * tests/test-sameacls.c: Likewise.
24094         * tests/test-set-mode-acl.c: Likewise.
24095         * tests/test-setenv.c: Likewise.
24096         * tests/test-sigaction.c: Likewise.
24097         * tests/test-signbit.c: Likewise.
24098         * tests/test-sleep.c: Likewise.
24099         * tests/test-snprintf-posix.c: Likewise.
24100         * tests/test-snprintf.c: Likewise.
24101         * tests/test-sprintf-posix.c: Likewise.
24102         * tests/test-stat-time.c: Likewise.
24103         * tests/test-stat.c: Likewise.
24104         * tests/test-strcasestr.c: Likewise.
24105         * tests/test-strchrnul.c: Likewise.
24106         * tests/test-strerror.c: Likewise.
24107         * tests/test-striconv.c: Likewise.
24108         * tests/test-striconveh.c: Likewise.
24109         * tests/test-striconveha.c: Likewise.
24110         * tests/test-strsignal.c: Likewise.
24111         * tests/test-strstr.c: Likewise.
24112         * tests/test-strtod.c: Likewise.
24113         * tests/test-strverscmp.c: Likewise.
24114         * tests/test-symlink.c: Likewise.
24115         * tests/test-symlinkat.c: Likewise.
24116         * tests/test-trunc1.c: Likewise.
24117         * tests/test-trunc2.c: Likewise.
24118         * tests/test-truncf1.c: Likewise.
24119         * tests/test-truncf2.c: Likewise.
24120         * tests/test-truncl.c: Likewise.
24121         * tests/test-uname.c: Likewise.
24122         * tests/test-unlink.c: Likewise.
24123         * tests/test-unlinkat.c: Likewise.
24124         * tests/test-unsetenv.c: Likewise.
24125         * tests/test-usleep.c: Likewise.
24126         * tests/test-utimens.c: Likewise.
24127         * tests/test-utimensat.c: Likewise.
24128         * tests/test-vasnprintf-posix.c: Likewise.
24129         * tests/test-vasnprintf-posix2.c: Likewise.
24130         * tests/test-vasnprintf.c: Likewise.
24131         * tests/test-vasprintf-posix.c: Likewise.
24132         * tests/test-vasprintf.c: Likewise.
24133         * tests/test-vdprintf-posix.c: Likewise.
24134         * tests/test-vfprintf-posix.c: Likewise.
24135         * tests/test-vprintf-posix.c: Likewise.
24136         * tests/test-vsnprintf-posix.c: Likewise.
24137         * tests/test-vsnprintf.c: Likewise.
24138         * tests/test-vsprintf-posix.c: Likewise.
24139         * tests/test-wcrtomb.c: Likewise.
24140         * tests/test-wcsnrtombs.c: Likewise.
24141         * tests/test-wcsrtombs.c: Likewise.
24142         * tests/test-wctype.c: Likewise.
24143         * tests/test-wcwidth.c: Likewise.
24144         * tests/test-xfprintf-posix.c: Likewise.
24145         * tests/test-xmemdup0.c: Likewise.
24146         * tests/test-xprintf-posix.c: Likewise.
24147         * tests/test-xvasprintf.c: Likewise.
24148         * tests/unicase/test-locale-language.c: Likewise.
24149         * tests/unicase/test-mapping-part1.h: Likewise.
24150         * tests/unicase/test-predicate-part1.h: Likewise.
24151         * tests/unicase/test-u8-casecmp.c: Likewise.
24152         * tests/unicase/test-u8-casecoll.c: Likewise.
24153         * tests/unicase/test-u8-casefold.c: Likewise.
24154         * tests/unicase/test-u8-is-cased.c: Likewise.
24155         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24156         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24157         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24158         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24159         * tests/unicase/test-u8-tolower.c: Likewise.
24160         * tests/unicase/test-u8-totitle.c: Likewise.
24161         * tests/unicase/test-u8-toupper.c: Likewise.
24162         * tests/unicase/test-u16-casecmp.c: Likewise.
24163         * tests/unicase/test-u16-casecoll.c: Likewise.
24164         * tests/unicase/test-u16-casefold.c: Likewise.
24165         * tests/unicase/test-u16-is-cased.c: Likewise.
24166         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24167         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24168         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24169         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24170         * tests/unicase/test-u16-tolower.c: Likewise.
24171         * tests/unicase/test-u16-totitle.c: Likewise.
24172         * tests/unicase/test-u16-toupper.c: Likewise.
24173         * tests/unicase/test-u32-casecmp.c: Likewise.
24174         * tests/unicase/test-u32-casecoll.c: Likewise.
24175         * tests/unicase/test-u32-casefold.c: Likewise.
24176         * tests/unicase/test-u32-is-cased.c: Likewise.
24177         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24178         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24179         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24180         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24181         * tests/unicase/test-u32-tolower.c: Likewise.
24182         * tests/unicase/test-u32-totitle.c: Likewise.
24183         * tests/unicase/test-u32-toupper.c: Likewise.
24184         * tests/unicase/test-ulc-casecmp.c: Likewise.
24185         * tests/unicase/test-ulc-casecoll.c: Likewise.
24186         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24187         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24188         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24189         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24190         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24191         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24192         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24193         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24194         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24195         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24196         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24197         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24198         * tests/unictype/test-bidi_byname.c: Likewise.
24199         * tests/unictype/test-bidi_name.c: Likewise.
24200         * tests/unictype/test-bidi_of.c: Likewise.
24201         * tests/unictype/test-bidi_test.c: Likewise.
24202         * tests/unictype/test-block_list.c: Likewise.
24203         * tests/unictype/test-block_of.c: Likewise.
24204         * tests/unictype/test-block_test.c: Likewise.
24205         * tests/unictype/test-categ_and.c: Likewise.
24206         * tests/unictype/test-categ_and_not.c: Likewise.
24207         * tests/unictype/test-categ_byname.c: Likewise.
24208         * tests/unictype/test-categ_name.c: Likewise.
24209         * tests/unictype/test-categ_none.c: Likewise.
24210         * tests/unictype/test-categ_of.c: Likewise.
24211         * tests/unictype/test-categ_or.c: Likewise.
24212         * tests/unictype/test-categ_test_withtable.c: Likewise.
24213         * tests/unictype/test-combining.c: Likewise.
24214         * tests/unictype/test-decdigit.c: Likewise.
24215         * tests/unictype/test-digit.c: Likewise.
24216         * tests/unictype/test-mirror.c: Likewise.
24217         * tests/unictype/test-numeric.c: Likewise.
24218         * tests/unictype/test-pr_byname.c: Likewise.
24219         * tests/unictype/test-pr_test.c: Likewise.
24220         * tests/unictype/test-predicate-part1.h: Likewise.
24221         * tests/unictype/test-scripts.c: Likewise.
24222         * tests/unictype/test-sy_c_ident.c: Likewise.
24223         * tests/unictype/test-sy_java_ident.c: Likewise.
24224         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24225         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24226         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24227         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24228         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24229         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24230         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24231         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24232         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24233         * tests/uninorm/test-compat-decomposition.c: Likewise.
24234         * tests/uninorm/test-composition.c: Likewise.
24235         * tests/uninorm/test-decomposing-form.c: Likewise.
24236         * tests/uninorm/test-decomposition.c: Likewise.
24237         * tests/uninorm/test-u8-nfc.c: Likewise.
24238         * tests/uninorm/test-u8-nfd.c: Likewise.
24239         * tests/uninorm/test-u8-nfkc.c: Likewise.
24240         * tests/uninorm/test-u8-nfkd.c: Likewise.
24241         * tests/uninorm/test-u8-normcmp.c: Likewise.
24242         * tests/uninorm/test-u8-normcoll.c: Likewise.
24243         * tests/uninorm/test-u16-nfc.c: Likewise.
24244         * tests/uninorm/test-u16-nfd.c: Likewise.
24245         * tests/uninorm/test-u16-nfkc.c: Likewise.
24246         * tests/uninorm/test-u16-nfkd.c: Likewise.
24247         * tests/uninorm/test-u16-normcmp.c: Likewise.
24248         * tests/uninorm/test-u16-normcoll.c: Likewise.
24249         * tests/uninorm/test-u32-nfc.c: Likewise.
24250         * tests/uninorm/test-u32-nfd.c: Likewise.
24251         * tests/uninorm/test-u32-nfkc.c: Likewise.
24252         * tests/uninorm/test-u32-nfkd.c: Likewise.
24253         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24254         * tests/uninorm/test-u32-normcmp.c: Likewise.
24255         * tests/uninorm/test-u32-normcoll.c: Likewise.
24256         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24257         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24258         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24259         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24260         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24261         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24262         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24263         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24264         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24265         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24266         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24267         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24268         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24269         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24270         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24271         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24272         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24273         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24274         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24275         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24276         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24277         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24278         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24279         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24280         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24281         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24282         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24283         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24284         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24285         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24286         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24287         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24288         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24289         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24290         * tests/uniwidth/test-u8-width.c: Likewise.
24291         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24292         * tests/uniwidth/test-u16-width.c: Likewise.
24293         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24294         * tests/uniwidth/test-u32-width.c: Likewise.
24295         * tests/uniwidth/test-uc_width.c: Likewise.
24296         * tests/uniwidth/test-uc_width2.c: Likewise.
24297         * modules/acl-tests (Files): Add tests/macros.h.
24298         * modules/areadlink-tests (Files): Likewise.
24299         * modules/areadlink-with-size-tests (Files): Likewise.
24300         * modules/areadlinkat-tests (Files): Likewise.
24301         * modules/areadlinkat-with-size-tests (Files): Likewise.
24302         * modules/argmatch-tests (Files): Likewise.
24303         * modules/argv-iter-tests (Files): Likewise.
24304         * modules/array-list-tests (Files): Likewise.
24305         * modules/array-mergesort-tests (Files): Likewise.
24306         * modules/array-oset-tests (Files): Likewise.
24307         * modules/avltree-list-tests (Files): Likewise.
24308         * modules/avltree-oset-tests (Files): Likewise.
24309         * modules/avltreehash-list-tests (Files): Likewise.
24310         * modules/base64-tests (Files): Likewise.
24311         * modules/binary-io-tests (Files): Likewise.
24312         * modules/bitrotate-tests (Files): Likewise.
24313         * modules/btowc-tests (Files): Likewise.
24314         * modules/byteswap-tests (Files): Likewise.
24315         * modules/c-ctype-tests (Files): Likewise.
24316         * modules/c-stack-tests (Files): Likewise.
24317         * modules/c-strcase-tests (Files): Likewise.
24318         * modules/c-strcasestr-tests (Files): Likewise.
24319         * modules/c-strstr-tests (Files): Likewise.
24320         * modules/canonicalize-lgpl-tests (Files): Likewise.
24321         * modules/canonicalize-tests (Files): Likewise.
24322         * modules/carray-list-tests (Files): Likewise.
24323         * modules/ceilf-tests (Files): Likewise.
24324         * modules/ceill-tests (Files): Likewise.
24325         * modules/chown-tests (Files): Likewise.
24326         * modules/cloexec-tests (Files): Likewise.
24327         * modules/copy-file-tests (Files): Likewise.
24328         * modules/count-one-bits-tests (Files): Likewise.
24329         * modules/dprintf-posix-tests (Files): Likewise.
24330         * modules/dup2-tests (Files): Likewise.
24331         * modules/dup3-tests (Files): Likewise.
24332         * modules/duplocale-tests (Files): Likewise.
24333         * modules/fbufmode-tests (Files): Likewise.
24334         * modules/fchdir-tests (Files): Likewise.
24335         * modules/fcntl-safer-tests (Files): Likewise.
24336         * modules/fcntl-tests (Files): Likewise.
24337         * modules/fdopendir-tests (Files): Likewise.
24338         * modules/fdutimensat-tests (Files): Likewise.
24339         * modules/fflush-tests (Files): Likewise.
24340         * modules/filevercmp-tests (Files): Likewise.
24341         * modules/flock-tests (Files): Likewise.
24342         * modules/floorf-tests (Files): Likewise.
24343         * modules/floorl-tests (Files): Likewise.
24344         * modules/fnmatch-tests (Files): Likewise.
24345         * modules/fopen-safer-tests (Files): Likewise.
24346         * modules/fopen-tests (Files): Likewise.
24347         * modules/fpending-tests (Files): Likewise.
24348         * modules/fprintf-posix-tests (Files): Likewise.
24349         * modules/fpurge-tests (Files): Likewise.
24350         * modules/freadable-tests (Files): Likewise.
24351         * modules/freadahead-tests (Files): Likewise.
24352         * modules/freading-tests (Files): Likewise.
24353         * modules/freadptr-tests (Files): Likewise.
24354         * modules/freadseek-tests (Files): Likewise.
24355         * modules/freopen-tests (Files): Likewise.
24356         * modules/frexp-nolibm-tests (Files): Likewise.
24357         * modules/frexp-tests (Files): Likewise.
24358         * modules/frexpl-nolibm-tests (Files): Likewise.
24359         * modules/frexpl-tests (Files): Likewise.
24360         * modules/fseek-tests (Files): Likewise.
24361         * modules/fseeko-tests (Files): Likewise.
24362         * modules/fstrcmp-tests (Files): Likewise.
24363         * modules/fsync-tests (Files): Likewise.
24364         * modules/ftell-tests (Files): Likewise.
24365         * modules/ftello-tests (Files): Likewise.
24366         * modules/func-tests (Files): Likewise.
24367         * modules/futimens-tests (Files): Likewise.
24368         * modules/fwritable-tests (Files): Likewise.
24369         * modules/fwriting-tests (Files): Likewise.
24370         * modules/getcwd-tests (Files): Likewise.
24371         * modules/getdate-tests (Files): Likewise.
24372         * modules/getdelim-tests (Files): Likewise.
24373         * modules/getdtablesize-tests (Files): Likewise.
24374         * modules/getgroups-tests (Files): Likewise.
24375         * modules/getline-tests (Files): Likewise.
24376         * modules/getndelim2-tests (Files): Likewise.
24377         * modules/glob-tests (Files): Likewise.
24378         * modules/hash-tests (Files): Likewise.
24379         * modules/i-ring-tests (Files): Likewise.
24380         * modules/iconv-tests (Files): Likewise.
24381         * modules/iconv_open-utf-tests (Files): Likewise.
24382         * modules/idpriv-drop-tests (Files): Likewise.
24383         * modules/idpriv-droptemp-tests (Files): Likewise.
24384         * modules/inet_ntop-tests (Files): Likewise.
24385         * modules/inet_pton-tests (Files): Likewise.
24386         * modules/isblank-tests (Files): Likewise.
24387         * modules/isfinite-tests (Files): Likewise.
24388         * modules/isinf-tests (Files): Likewise.
24389         * modules/isnan-tests (Files): Likewise.
24390         * modules/isnand-nolibm-tests (Files): Likewise.
24391         * modules/isnand-tests (Files): Likewise.
24392         * modules/isnanf-nolibm-tests (Files): Likewise.
24393         * modules/isnanf-tests (Files): Likewise.
24394         * modules/isnanl-nolibm-tests (Files): Likewise.
24395         * modules/isnanl-tests (Files): Likewise.
24396         * modules/lchown-tests (Files): Likewise.
24397         * modules/ldexpl-tests (Files): Likewise.
24398         * modules/link-tests (Files): Likewise.
24399         * modules/linkat-tests (Files): Likewise.
24400         * modules/linked-list-tests (Files): Likewise.
24401         * modules/linkedhash-list-tests (Files): Likewise.
24402         * modules/localename-tests (Files): Likewise.
24403         * modules/lseek-tests (Files): Likewise.
24404         * modules/lstat-tests (Files): Likewise.
24405         * modules/mbmemcasecmp-tests (Files): Likewise.
24406         * modules/mbmemcasecoll-tests (Files): Likewise.
24407         * modules/mbrtowc-tests (Files): Likewise.
24408         * modules/mbscasecmp-tests (Files): Likewise.
24409         * modules/mbscasestr-tests (Files): Likewise.
24410         * modules/mbschr-tests (Files): Likewise.
24411         * modules/mbscspn-tests (Files): Likewise.
24412         * modules/mbsinit-tests (Files): Likewise.
24413         * modules/mbsncasecmp-tests (Files): Likewise.
24414         * modules/mbsnrtowcs-tests (Files): Likewise.
24415         * modules/mbspbrk-tests (Files): Likewise.
24416         * modules/mbspcasecmp-tests (Files): Likewise.
24417         * modules/mbsrchr-tests (Files): Likewise.
24418         * modules/mbsrtowcs-tests (Files): Likewise.
24419         * modules/mbsspn-tests (Files): Likewise.
24420         * modules/mbsstr-tests (Files): Likewise.
24421         * modules/memchr-tests (Files): Likewise.
24422         * modules/memchr2-tests (Files): Likewise.
24423         * modules/memcmp-tests (Files): Likewise.
24424         * modules/memmem-tests (Files): Likewise.
24425         * modules/memrchr-tests (Files): Likewise.
24426         * modules/mkdir-tests (Files): Likewise.
24427         * modules/mkfifo-tests (Files): Likewise.
24428         * modules/mkfifoat-tests (Files): Likewise.
24429         * modules/mknod-tests (Files): Likewise.
24430         * modules/nanosleep-tests (Files): Likewise.
24431         * modules/nl_langinfo-tests (Files): Likewise.
24432         * modules/obstack-printf-tests (Files): Likewise.
24433         * modules/open-tests (Files): Likewise.
24434         * modules/openat-tests (Files): Likewise.
24435         * modules/pipe-filter-gi-tests (Files): Likewise.
24436         * modules/pipe-filter-ii-tests (Files): Likewise.
24437         * modules/pipe2-tests (Files): Likewise.
24438         * modules/popen-safer-tests (Files): Likewise.
24439         * modules/popen-tests (Files): Likewise.
24440         * modules/posixtm-tests (Files): Likewise.
24441         * modules/pread-tests (Files): Likewise.
24442         * modules/printf-frexp-tests (Files): Likewise.
24443         * modules/printf-frexpl-tests (Files): Likewise.
24444         * modules/printf-posix-tests (Files): Likewise.
24445         * modules/priv-set-tests (Files): Likewise.
24446         * modules/quotearg-tests (Files): Likewise.
24447         * modules/random_r-tests (Files): Likewise.
24448         * modules/rawmemchr-tests (Files): Likewise.
24449         * modules/rbtree-list-tests (Files): Likewise.
24450         * modules/rbtree-oset-tests (Files): Likewise.
24451         * modules/rbtreehash-list-tests (Files): Likewise.
24452         * modules/readlink-tests (Files): Likewise.
24453         * modules/remove-tests (Files): Likewise.
24454         * modules/rename-tests (Files): Likewise.
24455         * modules/renameat-tests (Files): Likewise.
24456         * modules/rmdir-tests (Files): Likewise.
24457         * modules/round-tests (Files): Likewise.
24458         * modules/roundf-tests (Files): Likewise.
24459         * modules/roundl-tests (Files): Likewise.
24460         * modules/safe-alloc-tests (Files): Likewise.
24461         * modules/setenv-tests (Files): Likewise.
24462         * modules/sigaction-tests (Files): Likewise.
24463         * modules/signbit-tests (Files): Likewise.
24464         * modules/sleep-tests (Files): Likewise.
24465         * modules/snprintf-posix-tests (Files): Likewise.
24466         * modules/snprintf-tests (Files): Likewise.
24467         * modules/sprintf-posix-tests (Files): Likewise.
24468         * modules/stat-tests (Files): Likewise.
24469         * modules/stat-time-tests (Files): Likewise.
24470         * modules/strcasestr-tests (Files): Likewise.
24471         * modules/strchrnul-tests (Files): Likewise.
24472         * modules/strerror-tests (Files): Likewise.
24473         * modules/striconv-tests (Files): Likewise.
24474         * modules/striconveh-tests (Files): Likewise.
24475         * modules/striconveha-tests (Files): Likewise.
24476         * modules/strsignal-tests (Files): Likewise.
24477         * modules/strstr-tests (Files): Likewise.
24478         * modules/strtod-tests (Files): Likewise.
24479         * modules/strverscmp-tests (Files): Likewise.
24480         * modules/symlink-tests (Files): Likewise.
24481         * modules/symlinkat-tests (Files): Likewise.
24482         * modules/trunc-tests (Files): Likewise.
24483         * modules/truncf-tests (Files): Likewise.
24484         * modules/truncl-tests (Files): Likewise.
24485         * modules/uname-tests (Files): Likewise.
24486         * modules/unicase/cased-tests (Files): Likewise.
24487         * modules/unicase/ignorable-tests (Files): Likewise.
24488         * modules/unicase/locale-language-tests (Files): Likewise.
24489         * modules/unicase/tolower-tests (Files): Likewise.
24490         * modules/unicase/totitle-tests (Files): Likewise.
24491         * modules/unicase/toupper-tests (Files): Likewise.
24492         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24493         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24494         * modules/unicase/u8-casefold-tests (Files): Likewise.
24495         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24496         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24497         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24498         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24499         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24500         * modules/unicase/u8-tolower-tests (Files): Likewise.
24501         * modules/unicase/u8-totitle-tests (Files): Likewise.
24502         * modules/unicase/u8-toupper-tests (Files): Likewise.
24503         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24504         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24505         * modules/unicase/u16-casefold-tests (Files): Likewise.
24506         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24507         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24508         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24509         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24510         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24511         * modules/unicase/u16-tolower-tests (Files): Likewise.
24512         * modules/unicase/u16-totitle-tests (Files): Likewise.
24513         * modules/unicase/u16-toupper-tests (Files): Likewise.
24514         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24515         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24516         * modules/unicase/u32-casefold-tests (Files): Likewise.
24517         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24518         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24519         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24520         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24521         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24522         * modules/unicase/u32-tolower-tests (Files): Likewise.
24523         * modules/unicase/u32-totitle-tests (Files): Likewise.
24524         * modules/unicase/u32-toupper-tests (Files): Likewise.
24525         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24526         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24527         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24528         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24529         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24530         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24531         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24532         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24533         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24534         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24535         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24536         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
24537         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
24538         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
24539         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
24540         * modules/unictype/bidicategory-name-tests (Files): Likewise.
24541         * modules/unictype/bidicategory-of-tests (Files): Likewise.
24542         * modules/unictype/bidicategory-test-tests (Files): Likewise.
24543         * modules/unictype/block-list-tests (Files): Likewise.
24544         * modules/unictype/block-of-tests (Files): Likewise.
24545         * modules/unictype/block-test-tests (Files): Likewise.
24546         * modules/unictype/category-C-tests (Files): Likewise.
24547         * modules/unictype/category-Cc-tests (Files): Likewise.
24548         * modules/unictype/category-Cf-tests (Files): Likewise.
24549         * modules/unictype/category-Cn-tests (Files): Likewise.
24550         * modules/unictype/category-Co-tests (Files): Likewise.
24551         * modules/unictype/category-Cs-tests (Files): Likewise.
24552         * modules/unictype/category-L-tests (Files): Likewise.
24553         * modules/unictype/category-Ll-tests (Files): Likewise.
24554         * modules/unictype/category-Lm-tests (Files): Likewise.
24555         * modules/unictype/category-Lo-tests (Files): Likewise.
24556         * modules/unictype/category-Lt-tests (Files): Likewise.
24557         * modules/unictype/category-Lu-tests (Files): Likewise.
24558         * modules/unictype/category-M-tests (Files): Likewise.
24559         * modules/unictype/category-Mc-tests (Files): Likewise.
24560         * modules/unictype/category-Me-tests (Files): Likewise.
24561         * modules/unictype/category-Mn-tests (Files): Likewise.
24562         * modules/unictype/category-N-tests (Files): Likewise.
24563         * modules/unictype/category-Nd-tests (Files): Likewise.
24564         * modules/unictype/category-Nl-tests (Files): Likewise.
24565         * modules/unictype/category-No-tests (Files): Likewise.
24566         * modules/unictype/category-P-tests (Files): Likewise.
24567         * modules/unictype/category-Pc-tests (Files): Likewise.
24568         * modules/unictype/category-Pd-tests (Files): Likewise.
24569         * modules/unictype/category-Pe-tests (Files): Likewise.
24570         * modules/unictype/category-Pf-tests (Files): Likewise.
24571         * modules/unictype/category-Pi-tests (Files): Likewise.
24572         * modules/unictype/category-Po-tests (Files): Likewise.
24573         * modules/unictype/category-Ps-tests (Files): Likewise.
24574         * modules/unictype/category-S-tests (Files): Likewise.
24575         * modules/unictype/category-Sc-tests (Files): Likewise.
24576         * modules/unictype/category-Sk-tests (Files): Likewise.
24577         * modules/unictype/category-Sm-tests (Files): Likewise.
24578         * modules/unictype/category-So-tests (Files): Likewise.
24579         * modules/unictype/category-Z-tests (Files): Likewise.
24580         * modules/unictype/category-Zl-tests (Files): Likewise.
24581         * modules/unictype/category-Zp-tests (Files): Likewise.
24582         * modules/unictype/category-Zs-tests (Files): Likewise.
24583         * modules/unictype/category-and-not-tests (Files): Likewise.
24584         * modules/unictype/category-and-tests (Files): Likewise.
24585         * modules/unictype/category-byname-tests (Files): Likewise.
24586         * modules/unictype/category-name-tests (Files): Likewise.
24587         * modules/unictype/category-none-tests (Files): Likewise.
24588         * modules/unictype/category-of-tests (Files): Likewise.
24589         * modules/unictype/category-or-tests (Files): Likewise.
24590         * modules/unictype/category-test-withtable-tests (Files): Likewise.
24591         * modules/unictype/combining-class-tests (Files): Likewise.
24592         * modules/unictype/ctype-alnum-tests (Files): Likewise.
24593         * modules/unictype/ctype-alpha-tests (Files): Likewise.
24594         * modules/unictype/ctype-blank-tests (Files): Likewise.
24595         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
24596         * modules/unictype/ctype-digit-tests (Files): Likewise.
24597         * modules/unictype/ctype-graph-tests (Files): Likewise.
24598         * modules/unictype/ctype-lower-tests (Files): Likewise.
24599         * modules/unictype/ctype-print-tests (Files): Likewise.
24600         * modules/unictype/ctype-punct-tests (Files): Likewise.
24601         * modules/unictype/ctype-space-tests (Files): Likewise.
24602         * modules/unictype/ctype-upper-tests (Files): Likewise.
24603         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
24604         * modules/unictype/decimal-digit-tests (Files): Likewise.
24605         * modules/unictype/digit-tests (Files): Likewise.
24606         * modules/unictype/mirror-tests (Files): Likewise.
24607         * modules/unictype/numeric-tests (Files): Likewise.
24608         * modules/unictype/property-alphabetic-tests (Files): Likewise.
24609         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
24610         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
24611         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
24612         Likewise.
24613         * modules/unictype/property-bidi-block-separator-tests (Files):
24614         Likewise.
24615         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
24616         Likewise.
24617         * modules/unictype/property-bidi-common-separator-tests (Files):
24618         Likewise.
24619         * modules/unictype/property-bidi-control-tests (Files): Likewise.
24620         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
24621         Likewise.
24622         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
24623         Likewise.
24624         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
24625         Likewise.
24626         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
24627         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
24628         Likewise.
24629         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
24630         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
24631         Likewise.
24632         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
24633         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
24634         * modules/unictype/property-bidi-segment-separator-tests (Files):
24635         Likewise.
24636         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
24637         * modules/unictype/property-byname-tests (Files): Likewise.
24638         * modules/unictype/property-combining-tests (Files): Likewise.
24639         * modules/unictype/property-composite-tests (Files): Likewise.
24640         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
24641         * modules/unictype/property-dash-tests (Files): Likewise.
24642         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
24643         * modules/unictype/property-default-ignorable-code-point-tests (Files):
24644         Likewise.
24645         * modules/unictype/property-deprecated-tests (Files): Likewise.
24646         * modules/unictype/property-diacritic-tests (Files): Likewise.
24647         * modules/unictype/property-extender-tests (Files): Likewise.
24648         * modules/unictype/property-format-control-tests (Files): Likewise.
24649         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
24650         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
24651         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
24652         * modules/unictype/property-hex-digit-tests (Files): Likewise.
24653         * modules/unictype/property-hyphen-tests (Files): Likewise.
24654         * modules/unictype/property-id-continue-tests (Files): Likewise.
24655         * modules/unictype/property-id-start-tests (Files): Likewise.
24656         * modules/unictype/property-ideographic-tests (Files): Likewise.
24657         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
24658         * modules/unictype/property-ids-trinary-operator-tests (Files):
24659         Likewise.
24660         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
24661         * modules/unictype/property-iso-control-tests (Files): Likewise.
24662         * modules/unictype/property-join-control-tests (Files): Likewise.
24663         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
24664         * modules/unictype/property-line-separator-tests (Files): Likewise.
24665         * modules/unictype/property-logical-order-exception-tests (Files):
24666         Likewise.
24667         * modules/unictype/property-lowercase-tests (Files): Likewise.
24668         * modules/unictype/property-math-tests (Files): Likewise.
24669         * modules/unictype/property-non-break-tests (Files): Likewise.
24670         * modules/unictype/property-not-a-character-tests (Files): Likewise.
24671         * modules/unictype/property-numeric-tests (Files): Likewise.
24672         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
24673         * modules/unictype/property-other-default-ignorable-code-point-tests
24674         (Files): Likewise.
24675         * modules/unictype/property-other-grapheme-extend-tests (Files):
24676         Likewise.
24677         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
24678         * modules/unictype/property-other-id-start-tests (Files): Likewise.
24679         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
24680         * modules/unictype/property-other-math-tests (Files): Likewise.
24681         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
24682         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
24683         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
24684         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
24685         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
24686         * modules/unictype/property-private-use-tests (Files): Likewise.
24687         * modules/unictype/property-punctuation-tests (Files): Likewise.
24688         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
24689         * modules/unictype/property-radical-tests (Files): Likewise.
24690         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
24691         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
24692         * modules/unictype/property-space-tests (Files): Likewise.
24693         * modules/unictype/property-terminal-punctuation-tests (Files):
24694         Likewise.
24695         * modules/unictype/property-test-tests (Files): Likewise.
24696         * modules/unictype/property-titlecase-tests (Files): Likewise.
24697         * modules/unictype/property-unassigned-code-value-tests (Files):
24698         Likewise.
24699         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
24700         * modules/unictype/property-uppercase-tests (Files): Likewise.
24701         * modules/unictype/property-variation-selector-tests (Files): Likewise.
24702         * modules/unictype/property-white-space-tests (Files): Likewise.
24703         * modules/unictype/property-xid-continue-tests (Files): Likewise.
24704         * modules/unictype/property-xid-start-tests (Files): Likewise.
24705         * modules/unictype/property-zero-width-tests (Files): Likewise.
24706         * modules/unictype/scripts-tests (Files): Likewise.
24707         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
24708         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
24709         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
24710         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
24711         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
24712         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
24713         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
24714         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
24715         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
24716         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
24717         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
24718         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
24719         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
24720         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
24721         * modules/uninorm/composition-tests (Files): Likewise.
24722         * modules/uninorm/decomposing-form-tests (Files): Likewise.
24723         * modules/uninorm/decomposition-tests (Files): Likewise.
24724         * modules/uninorm/filter-tests (Files): Likewise.
24725         * modules/uninorm/nfc-tests (Files): Likewise.
24726         * modules/uninorm/nfd-tests (Files): Likewise.
24727         * modules/uninorm/nfkc-tests (Files): Likewise.
24728         * modules/uninorm/nfkd-tests (Files): Likewise.
24729         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
24730         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
24731         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
24732         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
24733         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
24734         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
24735         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
24736         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24737         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
24738         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
24739         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
24740         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
24741         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24742         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
24743         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
24744         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
24745         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
24746         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24747         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
24748         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
24749         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
24750         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
24751         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24752         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
24753         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
24754         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
24755         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
24756         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
24757         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
24758         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
24759         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
24760         * modules/uniwidth/u8-width-tests (Files): Likewise.
24761         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
24762         * modules/uniwidth/u16-width-tests (Files): Likewise.
24763         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
24764         * modules/uniwidth/u32-width-tests (Files): Likewise.
24765         * modules/uniwidth/width-tests (Files): Likewise.
24766         * modules/unlink-tests (Files): Likewise.
24767         * modules/unsetenv-tests (Files): Likewise.
24768         * modules/usleep-tests (Files): Likewise.
24769         * modules/utimens-tests (Files): Likewise.
24770         * modules/utimensat-tests (Files): Likewise.
24771         * modules/vasnprintf-posix-tests (Files): Likewise.
24772         * modules/vasnprintf-tests (Files): Likewise.
24773         * modules/vasprintf-posix-tests (Files): Likewise.
24774         * modules/vasprintf-tests (Files): Likewise.
24775         * modules/vdprintf-posix-tests (Files): Likewise.
24776         * modules/vfprintf-posix-tests (Files): Likewise.
24777         * modules/vprintf-posix-tests (Files): Likewise.
24778         * modules/vsnprintf-posix-tests (Files): Likewise.
24779         * modules/vsnprintf-tests (Files): Likewise.
24780         * modules/vsprintf-posix-tests (Files): Likewise.
24781         * modules/wcrtomb-tests (Files): Likewise.
24782         * modules/wcsnrtombs-tests (Files): Likewise.
24783         * modules/wcsrtombs-tests (Files): Likewise.
24784         * modules/wctype-tests (Files): Likewise.
24785         * modules/wcwidth-tests (Files): Likewise.
24786         * modules/xmemdup0-tests (Files): Likewise.
24787         * modules/xprintf-posix-tests (Files): Likewise.
24788         * modules/xvasprintf-tests (Files): Likewise.
24789
24790 2009-12-24  Eric Blake  <ebb9@byu.net>
24791
24792         test-nanosleep: fix typo
24793         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
24794         patch.
24795         Reported by Bruno Haible.
24796
24797 2009-12-24  Bruno Haible  <bruno@clisp.org>
24798
24799         Reduce namespace pollution on glibc systems.
24800         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
24801         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
24802         systems.
24803         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
24804         <getopt.h> on glibc systems.
24805         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
24806         systems.
24807         * lib/fcntl.c: Include <unistd.h> here instead.
24808
24809 2009-12-24  Bruno Haible  <bruno@clisp.org>
24810
24811         * lib/stdlib.in.h (includes): Fix typo in today's commit.
24812
24813 2009-12-24  Eric Blake  <ebb9@byu.net>
24814
24815         tests: add signature checks
24816         * tests/signature.h (SIGNATURE_CHECK): New file.
24817         * modules/atexit-tests (Files): Use it.
24818         * modules/btowc-tests (Files): Likewise.
24819         * modules/canonicalize-lgpl-tests (Files): Likewise.
24820         * modules/ceilf-tests (Files): Likewise.
24821         * modules/ceill-tests (Files): Likewise.
24822         * modules/chown-tests (Files): Likewise.
24823         * modules/dprintf-posix-tests (Files): Likewise.
24824         * modules/dup2-tests (Files): Likewise.
24825         * modules/dup3-tests (Files): Likewise.
24826         * modules/duplocale-tests (Files): Likewise.
24827         * modules/fchdir-tests (Files): Likewise.
24828         * modules/fcntl-tests (Files): Likewise.
24829         * modules/fdopendir-tests (Files): Likewise.
24830         * modules/fflush-tests (Files): Likewise.
24831         * modules/flock-tests (Files): Likewise.
24832         * modules/floorf-tests (Files): Likewise.
24833         * modules/floorl-tests (Files): Likewise.
24834         * modules/fnmatch-tests (Files): Likewise.
24835         * modules/fopen-tests (Files): Likewise.
24836         * modules/fprintf-posix-tests (Files): Likewise.
24837         * modules/freopen-tests (Files): Likewise.
24838         * modules/frexp-nolibm-tests (Files): Likewise.
24839         * modules/frexp-tests (Files): Likewise.
24840         * modules/frexpl-nolibm-tests (Files): Likewise.
24841         * modules/frexpl-tests (Files): Likewise.
24842         * modules/fseek-tests (Files): Likewise.
24843         * modules/fseeko-tests (Files): Likewise.
24844         * modules/fsync-tests (Files): Likewise.
24845         * modules/ftell-tests (Files): Likewise.
24846         * modules/ftello-tests (Files): Likewise.
24847         * modules/futimens-tests (Files): Likewise.
24848         * modules/getaddrinfo-tests (Files): Likewise.
24849         * modules/getcwd-tests (Files): Likewise.
24850         * modules/getdelim-tests (Files): Likewise.
24851         * modules/getdtablesize-tests (Files): Likewise.
24852         * modules/getgroups-tests (Files): Likewise.
24853         * modules/gethostname-tests (Files): Likewise.
24854         * modules/getline-tests (Files): Likewise.
24855         * modules/getopt-posix-tests (Files): Likewise.
24856         * modules/gettimeofday-tests (Files): Likewise.
24857         * modules/glob-tests (Files): Likewise.
24858         * modules/iconv-tests (Files): Likewise.
24859         * modules/inet_ntop-tests (Files): Likewise.
24860         * modules/inet_pton-tests (Files): Likewise.
24861         * modules/isblank-tests (Files): Likewise.
24862         * modules/lchown-tests (Files): Likewise.
24863         * modules/ldexpl-tests (Files): Likewise.
24864         * modules/link-tests (Files): Likewise.
24865         * modules/linkat-tests (Files): Likewise.
24866         * modules/lseek-tests (Files): Likewise.
24867         * modules/lstat-tests (Files): Likewise.
24868         * modules/mbrtowc-tests (Files): Likewise.
24869         * modules/mbsinit-tests (Files): Likewise.
24870         * modules/mbsnrtowcs-tests (Files): Likewise.
24871         * modules/mbsrtowcs-tests (Files): Likewise.
24872         * modules/memchr-tests (Files): Likewise.
24873         * modules/memcmp-tests (Files): Likewise.
24874         * modules/memmem-tests (Files): Likewise.
24875         * modules/memrchr-tests (Files): Likewise.
24876         * modules/mkdir-tests (Files): Likewise.
24877         * modules/mkfifo-tests (Files): Likewise.
24878         * modules/mkfifoat-tests (Files): Likewise.
24879         * modules/mknod-tests (Files): Likewise.
24880         * modules/nanosleep-tests (Files): Likewise.
24881         * modules/nl_langinfo-tests (Files): Likewise.
24882         * modules/obstack-printf-tests (Files): Likewise.
24883         * modules/open-tests (Files): Likewise.
24884         * modules/openat-tests (Files): Likewise.
24885         * modules/perror-tests (Files): Likewise.
24886         * modules/pipe2-tests (Files): Likewise.
24887         * modules/poll-tests (Files): Likewise.
24888         * modules/popen-tests (Files): Likewise.
24889         * modules/posix_spawn-tests (Files): Likewise.
24890         * modules/posix_spawnp-tests (Files): Likewise.
24891         * modules/pread-tests (Files): Likewise.
24892         * modules/printf-posix-tests (Files): Likewise.
24893         * modules/pty-tests (Files): Likewise.
24894         * modules/random_r-tests (Files): Likewise.
24895         * modules/rawmemchr-tests (Files): Likewise.
24896         * modules/readlink-tests (Files): Likewise.
24897         * modules/remove-tests (Files): Likewise.
24898         * modules/rename-tests (Files): Likewise.
24899         * modules/renameat-tests (Files): Likewise.
24900         * modules/rmdir-tests (Files): Likewise.
24901         * modules/round-tests (Files): Likewise.
24902         * modules/roundf-tests (Files): Likewise.
24903         * modules/roundl-tests (Files): Likewise.
24904         * modules/select-tests (Files): Likewise.
24905         * modules/setenv-tests (Files): Likewise.
24906         * modules/sigaction-tests (Files): Likewise.
24907         * modules/sleep-tests (Files): Likewise.
24908         * modules/snprintf-posix-tests (Files): Likewise.
24909         * modules/snprintf-tests (Files): Likewise.
24910         * modules/sprintf-posix-tests (Files): Likewise.
24911         * modules/stat-tests (Files): Likewise.
24912         * modules/strcasestr-tests (Files): Likewise.
24913         * modules/strchrnul-tests (Files): Likewise.
24914         * modules/strerror-tests (Files): Likewise.
24915         * modules/strsignal-tests (Files): Likewise.
24916         * modules/strstr-tests (Files): Likewise.
24917         * modules/strtod-tests (Files): Likewise.
24918         * modules/strverscmp-tests (Files): Likewise.
24919         * modules/symlink-tests (Files): Likewise.
24920         * modules/symlinkat-tests (Files): Likewise.
24921         * modules/times-tests (Files): Likewise.
24922         * modules/trunc-tests (Files): Likewise.
24923         * modules/truncf-tests (Files): Likewise.
24924         * modules/truncl-tests (Files): Likewise.
24925         * modules/tsearch-tests (Files): Likewise.
24926         * modules/uname-tests (Files): Likewise.
24927         * modules/unlink-tests (Files): Likewise.
24928         * modules/unsetenv-tests (Files): Likewise.
24929         * modules/usleep-tests (Files): Likewise.
24930         * modules/utimensat-tests (Files): Likewise.
24931         * modules/vasprintf-tests (Files): Likewise.
24932         * modules/vdprintf-posix-tests (Files): Likewise.
24933         * modules/vfprintf-posix-tests (Files): Likewise.
24934         * modules/vprintf-posix-tests (Files): Likewise.
24935         * modules/vsnprintf-posix-tests (Files): Likewise.
24936         * modules/vsnprintf-tests (Files): Likewise.
24937         * modules/vsprintf-posix-tests (Files): Likewise.
24938         * modules/wcrtomb-tests (Files): Likewise.
24939         * modules/wcsnrtombs-tests (Files): Likewise.
24940         * modules/wcsrtombs-tests (Files): Likewise.
24941         * modules/wcwidth-tests (Files): Likewise.
24942         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
24943         * tests/test-isinf.c (isinf): Likewise.
24944         * tests/test-isnan.c (isnan): Likewise.
24945         * tests/test-signbit.c (signbit): Likewise.
24946         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
24947         declaration, either as macro or with correct signature.
24948         (select): Ensure function under test is declared with correct
24949         signature in correct header.
24950         * tests/test-atexit.c (atexit): Likewise.
24951         * tests/test-btowc.c (btowc): Likewise.
24952         * tests/test-canonicalize-lgpl.c (realpath)
24953         (canonicalize_file_name): Likewise.
24954         * tests/test-ceilf1.c (ceilf): Likewise.
24955         * tests/test-ceill.c (ceill): Likewise.
24956         * tests/test-chown.c (chown): Likewise.
24957         * tests/test-dprintf-posix.c (dprintf): Likewise.
24958         * tests/test-dup2.c (dup2): Likewise.
24959         * tests/test-dup3.c (dup3): Likewise.
24960         * tests/test-duplocale.c (duplocale): Likewise.
24961         * tests/test-fchdir.c (fchdir): Likewise.
24962         * tests/test-fchownat.c (fchownat): Likewise.
24963         * tests/test-fcntl.c (fcntl): Likewise.
24964         * tests/test-fdopendir.c (fdopendir): Likewise.
24965         * tests/test-fflush.c (fflush): Likewise.
24966         * tests/test-flock.c (flock): Likewise.
24967         * tests/test-floorf1.c (floorf): Likewise.
24968         * tests/test-floorl.c (floorl): Likewise.
24969         * tests/test-fnmatch.c (fnmatch): Likewise.
24970         * tests/test-fopen.c (fopen): Likewise.
24971         * tests/test-fprintf-posix.c (fprintf): Likewise.
24972         * tests/test-freopen.c (freopen): Likewise.
24973         * tests/test-frexp.c (frexp): Likewise.
24974         * tests/test-frexpl.c (frexpl): Likewise.
24975         * tests/test-fseek.c (fseek): Likewise.
24976         * tests/test-fseeko.c (fseeko): Likewise.
24977         * tests/test-fstatat.c (fstatat): Likewise.
24978         * tests/test-fsync.c (fsync): Likewise.
24979         * tests/test-ftell.c (ftell): Likewise.
24980         * tests/test-ftello.c (ftello): Likewise.
24981         * tests/test-futimens.c (futimens): Likewise.
24982         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
24983         (gai_strerror): Likewise.
24984         * tests/test-getcwd.c (getcwd): Likewise.
24985         * tests/test-getdelim.c (getdelim): Likewise.
24986         * tests/test-getdtablesize.c (getdtablesize): Likewise.
24987         * tests/test-getgroups.c (getgroups): Likewise.
24988         * tests/test-gethostname.c (gethostname): Likewise.
24989         * tests/test-getline.c (getline): Likewise.
24990         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
24991         Likewise.
24992         * tests/test-gettimeofday.c (gettimeofday): Likewise.
24993         * tests/test-glob.c (glob, globfree): Likewise.
24994         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
24995         * tests/test-inet_ntop.c (inet_ntop): Likewise.
24996         * tests/test-inet_pton.c (inet_pton): Likewise.
24997         * tests/test-isblank.c (isblank): Likewise.
24998         * tests/test-lchown.c (lchown): Likewise.
24999         * tests/test-ldexpl.c (ldexpl): Likewise.
25000         * tests/test-link.c (link): Likewise.
25001         * tests/test-linkat.c (linkat): Likewise.
25002         * tests/test-lseek.c (lseek): Likewise.
25003         * tests/test-lstat.c (lstat): Likewise.
25004         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25005         * tests/test-mbsinit.c (mbsinit): Likewise.
25006         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25007         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25008         * tests/test-memchr.c (memchr): Likewise.
25009         * tests/test-memcmp.c (memcmp): Likewise.
25010         * tests/test-memmem.c (memmem): Likewise.
25011         * tests/test-memrchr.c (memrchr): Likewise.
25012         * tests/test-mkdir.c (mkdir): Likewise.
25013         * tests/test-mkdirat.c (mkdirat): Likewise.
25014         * tests/test-mkfifo.c (mkfifo): Likewise.
25015         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25016         * tests/test-mknod.c (mknod): Likewise.
25017         * tests/test-nanosleep.c (nanosleep): Likewise.
25018         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25019         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25020         Likewise.
25021         * tests/test-open.c (open): Likewise.
25022         * tests/test-openat.c (openat): Likewise.
25023         * tests/test-perror.c (perror): Likewise.
25024         * tests/test-pipe2.c (pipe2): Likewise.
25025         * tests/test-poll.c (poll): Likewise.
25026         * tests/test-popen.c (popen, pclose): Likewise.
25027         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25028         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25029         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25030         (posix_spawn_file_actions_destroy)
25031         (posix_spawn_file_actions_addclose)
25032         (posix_spawn_file_actions_addopen)
25033         (posix_spawn_file_actions_adddup2): Likewise.
25034         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25035         * tests/test-pread.c (pread): Likewise.
25036         * tests/test-printf-posix.c (printf): Likewise.
25037         * tests/test-pty.c (openpty, forkpty): Likewise.
25038         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25039         (random_r): Likewise.
25040         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25041         * tests/test-readlink.c (readlink): Likewise.
25042         * tests/test-remove.c (remove): Likewise.
25043         * tests/test-rename.c (rename): Likewise.
25044         * tests/test-renameat.c (renameat): Likewise.
25045         * tests/test-rmdir.c (rmdir): Likewise.
25046         * tests/test-round1.c (round): Likewise.
25047         * tests/test-roundf1.c (roundf): Likewise.
25048         * tests/test-roundl.c (roundl): Likewise.
25049         * tests/test-setenv.c (setenv): Likewise.
25050         * tests/test-sigaction.c (sigaction): Likewise.
25051         * tests/test-sleep.c (sleep): Likewise.
25052         * tests/test-snprintf.c (snprintf): Likewise.
25053         * tests/test-sprintf-posix.c (sprintf): Likewise.
25054         * tests/test-stat.c (stat): Likewise.
25055         * tests/test-stpncpy.c (stpncpy): Likewise.
25056         * tests/test-strcasestr.c (strcasestr): Likewise.
25057         * tests/test-strchrnul.c (strchrnul): Likewise.
25058         * tests/test-strerror.c (strerror): Likewise.
25059         * tests/test-strsignal.c (strsignal): Likewise.
25060         * tests/test-strstr.c (strstr): Likewise.
25061         * tests/test-strtod.c (strtod): Likewise.
25062         * tests/test-strverscmp.c (strverscmp): Likewise.
25063         * tests/test-symlink.c (symlink): Likewise.
25064         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25065         * tests/test-times.c (times): Likewise.
25066         * tests/test-trunc1.c (trunc): Likewise.
25067         * tests/test-truncf1.c (truncf): Likewise.
25068         * tests/test-truncl.c (truncl): Likewise.
25069         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25070         Likewise.
25071         * tests/test-uname.c (uname): Likewise.
25072         * tests/test-unlink.c (unlink): Likewise.
25073         * tests/test-unlinkat.c (unlinkat): Likewise.
25074         * tests/test-unsetenv.c (unsetenv): Likewise.
25075         * tests/test-usleep.c (usleep): Likewise.
25076         * tests/test-utimensat.c (utimensat): Likewise.
25077         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25078         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25079         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25080         * tests/test-vprintf-posix.c (vprintf): Likewise.
25081         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25082         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25083         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25084         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25085         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25086         * tests/test-wcwidth.c (wcwidth): Likewise.
25087
25088         build: pull in conditional headers during GNULIB_POSIXCHECK
25089         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25090         definitions from any conditionally-included headers.
25091         * lib/stdlib.in.h (includes): Likewise.
25092         * lib/unistd.in.h (includes): Likewise.
25093
25094 2009-12-24  Bruno Haible  <bruno@clisp.org>
25095
25096         * tests/test-argv-iter.c: Include header file being tested immediately
25097         after config.h.
25098         * tests/test-base64.c: Likewise.
25099         * tests/test-flock.c: Likewise.
25100         * tests/test-fsync.c: Likewise.
25101         * tests/test-getdate.c: Likewise.
25102         * tests/test-getndelim2.c: Likewise.
25103         * tests/test-isfinite.c: Likewise.
25104         * tests/test-isinf.c: Likewise.
25105         * tests/test-strerror.c: Likewise.
25106         * tests/test-strsignal.c: Likewise.
25107
25108 2009-12-23  Eric Blake  <ebb9@byu.net>
25109
25110         unistd: work around cygwin bug
25111         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25112         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25113         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25114
25115 2009-12-23  Bruno Haible  <bruno@clisp.org>
25116
25117         localename: More tests.
25118         * tests/test-localename.c (SIZEOF): New macro.
25119         (categories): New variable.
25120         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25121         test_locale_name_default): Add test w.r.t. thread locale.
25122         (test_locale_name_thread): New function.
25123         (main): Invoke it.
25124
25125         localename: Make aware of thread locale.
25126         * lib/localename.h (gl_locale_name_thread): New declaration.
25127         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25128         behaviour with respect to thread locale.
25129         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25130         <langinfo.h>, glthread/lock.h.
25131         (SIZE_BITS): New macro.
25132         (string_hash): New function.
25133         (struct hash_node): New type.
25134         (HASH_TABLE_SIZE): New macro.
25135         (struniq_hash_table, struniq_lock): New variables.
25136         (struniq): New function.
25137         (gl_locale_name_thread): New function.
25138         (gl_locale_name): Invoke it.
25139         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25140         * modules/localename (Depends-on): Add lock.
25141         Reported by Mike Gran <spk121@yahoo.com>.
25142
25143 2009-12-23  Eric Blake  <ebb9@byu.net>
25144
25145         va-args: new module
25146         * modules/va-args: New file.
25147         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25148         * MODULES.html.sh (Core language properties): Mention it.
25149
25150         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25151         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25152         named alias for __attribute__((__unused__)).
25153         * lib/chown.c: Update client.
25154         * lib/fchmodat.c: Likewise.
25155         * lib/fts.c: Likewise.
25156         * lib/getdate.y: Likewise.
25157         * lib/getgroups.c: Likewise.
25158         * lib/getopt.c: Likewise.
25159         * lib/getugroups.c: Likewise.
25160         * lib/mkdir.c: Likewise.
25161         * lib/mkfifo.c: Likewise.
25162         * lib/mkfifoat.c: Likewise.
25163         * lib/mknod.c: Likewise.
25164         * lib/mknodat.c: Likewise.
25165         * lib/readlink.c: Likewise.
25166         * lib/se-context.in.h: Likewise.
25167         * lib/se-selinux.in.h: Likewise.
25168         * lib/sockets.c: Likewise.
25169         * lib/symlink.c: Likewise.
25170         * lib/symlinkat.c: Likewise.
25171         * lib/unicodeio.c: Likewise.
25172         * lib/unistr.h: Likewise.
25173         * tests/test-areadlink.c: Likewise.
25174         * tests/test-areadlinkat.c: Likewise.
25175         * tests/test-filenamecat.c: Likewise.
25176         * tests/test-fseeko.c: Likewise.
25177         * tests/test-ftello.c: Likewise.
25178         * tests/test-getdate.c: Likewise.
25179         * tests/test-getgroups.c: Likewise.
25180         * tests/test-gethostname.c: Likewise.
25181         * tests/test-quotearg.c: Likewise.
25182         * tests/test-version-etc.c: Likewise.
25183         * tests/test-xalloc-die.c: Likewise.
25184         * tests/test-xfprintf-posix.c: Likewise.
25185         * tests/test-xprintf-posix.c: Likewise.
25186         * tests/test-xvasprintf.c: Likewise.
25187
25188         tests: avoid compiler warnings
25189         * tests/test-fcntl.c (main): Delete unused parameters.
25190         * tests/test-freopen-safer.c (main): Likewise.
25191         * tests/test-xalloc-die.c (main): Mark unused parameters.
25192         * tests/test-fseeko.c (main): Likewise.
25193         * tests/test-ftello.c (main): Likewise.
25194         * tests/test-nanosleep.c (main): Avoid declaration warning.
25195         * tests/test-sleep.c (main): Likewise.
25196         * tests/test-unsetenv.c (main): Silence warning about string
25197         literal.
25198         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25199
25200 2009-12-23  Bruno Haible  <bruno@clisp.org>
25201
25202         * tests/test-localename.c (test_locale_name): New function, extracted
25203         from main. Also test mixed situations.
25204         (test_locale_name_posix, test_locale_name_environ,
25205         test_locale_name_default): New functions.
25206         (main): Invoke them all.
25207         * modules/localename-tests (configure.ac): Test for newlocale.
25208
25209 2009-12-23  Bruno Haible  <bruno@clisp.org>
25210
25211         unistd: Ensure getcwd gets declared before being overridden.
25212         * lib/unistd.in.h: Conditionally include <io.h>.
25213
25214 2009-12-22  Bruno Haible  <bruno@clisp.org>
25215
25216         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25217         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25218         (gl_WCHAR_H): Invoke it.
25219         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25220         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25221         Reported by Karl Berry <karl@freefriends.org>.
25222
25223 2009-12-22  Eric Blake  <ebb9@byu.net>
25224
25225         math, unistd: avoid redundant includes
25226         * lib/math.in.h (isnan): No need to re-include <math.h>.
25227         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25228
25229         getsubopt: work around cygwin bug
25230         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25231         avoid conflicting with system getsubopt.
25232         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25233         bug.
25234
25235         getopt: synchronize from glibc
25236         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25237         parameter order.  Adjust all callers.
25238         (_getopt_internal_r, main): Adjust quoting in error messages.
25239         Drop considerations for outdated POSIX 1003.2 error message.
25240         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25241         callers.
25242         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25243
25244         test-getopt: test stderr behavior
25245         * modules/getopt-posix-tests (Depends-on): Add dup2.
25246         * tests/test-getopt.c (ASSERT): Avoid stderr.
25247         (main): Move stderr to a temporary file.
25248         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25249         Instead, add parameter to inform caller if output occurred.
25250         (test_getopt): Adjust all existing tests to expect silence, and
25251         add new tests of leading ":".
25252         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25253         glibc shortcomings with leading "-:" or "+:" in optstring.
25254         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25255         Likewise.
25256         * doc/posix-functions/getopt.texi (getopt): Likewise.
25257
25258         test-getopt: enhance test
25259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25260         supports optind=0.
25261         * tests/test-getopt.c (OPTIND_MIN): Move...
25262         * tests/test-getopt.h (OPTIND_MIN): ...here.
25263         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25264         Require that optind=0 works, since modern BSD supports it in
25265         addition to optreset, and since coreutils expects it.
25266         (test_getopt_long_only): New test.
25267         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25268         glibc shortcomings with 'W;', and enforcement of optind=0.
25269         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25270         Likewise.
25271
25272 2009-12-21  Bruno Haible  <bruno@clisp.org>
25273
25274         localename: Improvements for MacOS X and Cygwin.
25275         * lib/localename.h (gl_locale_name_environ): New declaration.
25276         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25277         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25278         (gl_locale_name_posix): Invoke it.
25279         (gl_locale_name_default): Add comments. Use Windows native API also on
25280         Cygwin.
25281
25282 2009-12-21  Bruno Haible  <bruno@clisp.org>
25283
25284         Update list of Win32 locale ids.
25285         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25286         (LANG_SAMI): Renamed from LANG_SAAMI.
25287         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25288         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25289         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25290         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25291         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25292         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25293         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25294         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25295         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25296         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25297         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25298         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25299         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25300         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25301         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25302         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25303         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25304         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25305         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25306         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25307         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25308         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25309         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25310         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25311         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25312         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25313         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25314         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25315         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25316         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25317         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25318         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25319         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25320         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25321         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25322         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25323         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25324         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25325         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25326         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25327         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25328         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25329         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25330         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25331         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25332         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25333         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25334         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25335         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25336         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25337         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25338         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25339         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25340         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25341         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25342         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25343         Add more languages and countries for Sami, Sorbian. Add more countries
25344         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25345         for Pashto. Change country for Syriac, Tswana.
25346
25347 2009-12-21  Eric Blake  <ebb9@byu.net>
25348
25349         test-utimens: avoid spurious failure
25350         * tests/test-chown.h (nap): Factor...
25351         * tests/nap.h: ...into new file.
25352         * tests/test-lchown.h (nap): Avoid duplication.
25353         * tests/test-utimens-common.h (nap): Use shared implementation,
25354         necessary on file systems with 1-second resolution.
25355         * modules/chown-tests (Files): Include new file.
25356         * modules/fdutimensat-tests (Files): Likewise.
25357         * modules/futimens-tests (Files): Likewise.
25358         * modules/lchown-tests (Files): Likewise.
25359         * modules/openat-tests (Files): Likewise.
25360         * modules/utimens-tests (Files): Likewise.
25361         * modules/utimensat-tests (Files): Likewise.
25362
25363 2009-12-19  Eric Blake  <ebb9@byu.net>
25364
25365         futimens, utimensat: work around Linux bug
25366         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25367         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25368         * lib/utimensat.c (rpl_utimensat): Work around it.
25369         * lib/futimens.c (rpl_futimens): Adjust comment.
25370
25371         utimens: work around Linux ctime bug
25372         * lib/utimens.c (detect_ctime_bug): New helper function.
25373         (update_timespec): Differentiate between workaround needed for
25374         this bug vs. what is needed for systems that lack utimensat.
25375         (fdutimens, lutimens): Work around bug.
25376
25377         utimens: check for ctime update
25378         * tests/test-utimens-common.h (check_ctime): Define.
25379         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25380         * tests/test-futimens.h (test_futimens): Likewise.
25381         * tests/test-lutimens.h (test_lutimens): Likewise.
25382         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25383         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25384
25385 2009-12-19  Bruno Haible  <bruno@clisp.org>
25386
25387         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25388         * tests/test-dprintf-posix2.sh: New file.
25389         * tests/test-dprintf-posix2.c: New file.
25390         * modules/dprintf-posix-tests (Files): Add them.
25391         (configure.ac): Check for getrlimit and setrlimit.
25392         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25393
25394 2009-12-19  Bruno Haible  <bruno@clisp.org>
25395
25396         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25397         * tests/test-fprintf-posix3.sh: New file.
25398         * tests/test-fprintf-posix3.c: New file.
25399         * modules/fprintf-posix-tests (Files): Add them.
25400         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25401
25402 2009-12-19  Eric Blake  <ebb9@byu.net>
25403
25404         dirfd: fix prototype
25405         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25406         * lib/dirfd.c (dirfd): Likewise.
25407
25408         canonicalize: reduce memory usage
25409         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25410         allocation to size.
25411         Reported by Solar Designer <solar@openwall.com>.
25412
25413 2009-12-19  Bruno Haible  <bruno@clisp.org>
25414
25415         New module attribute 'Applicability'.
25416         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25417         * gnulib-tool: New option --extract-applicability.
25418         (func_usage): Document it.
25419         (sed_extract_prog): Recognize it.
25420         (func_get_applicability): New function.
25421         (func_import): Generalize handling of 'link-warning' module.
25422         * modules/link-warning (Applicability): New section.
25423         * modules/arg-nonnull (Applicability): New section.
25424         Repoted by Simon Josefsson <simon@josefsson.org>.
25425
25426 2009-12-19  Bruno Haible  <bruno@clisp.org>
25427
25428         fflush: tweak
25429         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25430         * lib/fseeko.c (rpl_fseeko): Likewise.
25431
25432 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25433
25434         * lib/gl_list.h: Fix typo in comment.
25435
25436 2009-12-16  Eric Blake  <ebb9@byu.net>
25437
25438         fcntl: use to simplify other modules
25439         * modules/cloexec (Depends-on): Add fcntl.
25440         * modules/fchdir (Depends-on): Likewise.
25441         * modules/fd-safer-flag (Depends-on): Likewise.
25442         * modules/unistd-safer (Depends-on): Likewise.
25443         * modules/dup3 (configure.ac): Set module indicator.
25444         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25445         missing.
25446         * lib/fchdir.c (_gl_register_dup): Fix comment.
25447         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25448         * lib/dup-safer.c (dup_safer): Likewise.
25449         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25450         * lib/dup3.c (dup3): Likewise.
25451         * tests/test-fchdir.c (main): Enhance test.
25452         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
25453
25454         fcntl: port portions of fcntl to mingw
25455         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
25456         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
25457         replacement for mingw.
25458         * modules/fcntl (Description): Update.
25459         (Depends-on): Add dup2.
25460         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
25461         * modules/fcntl-h (Makefile.am): Substitute it.
25462         * lib/fcntl.in.h (fcntl): Update declaration.
25463         (F_DUPFD, F_GETFD): New macros, when needed.
25464         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25465         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
25466         * tests/test-fcntl.c (check_flags, main): Enhance test for items
25467         we now guarantee.
25468
25469         fcntl: work around cygwin bug in F_DUPFD
25470         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25471         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25472         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25473         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25474         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25475
25476         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25477         * modules/fcntl (Files): List new files.
25478         (configure.ac): Run a test.
25479         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25480         * lib/fcntl.c (rpl_fcntl): Likewise.
25481         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25482         (gl_FCNTL_H): Always replace fcntl.h.
25483         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25484         * lib/fcntl.in.h (fcntl): Declare replacement.
25485         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25486         needed, plus a witness.
25487         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25488         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25489         * tests/test-fcntl.c: New file.
25490         * modules/fcntl-tests: Likewise.
25491
25492         binary-io: avoid potential compilation warning
25493         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25494         directives.
25495
25496         fflush: avoid compilation error on NetBSD
25497         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25498         between off_t and fpos_t, since the latter is sometimes a struct.
25499         * lib/fseeko.c (rpl_fseeko): Likewise.
25500         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25501
25502 2009-12-15  Eric Blake  <ebb9@byu.net>
25503
25504         fcntl-h, stdio, sys_ioctl: fix declarations
25505         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25506         function must not take arguments.
25507         * lib/sys_ioctl.in.h (ioctl): Likewise.
25508         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25509         (open): Add a link warning.
25510
25511 2009-12-15  Jim Meyering  <meyering@redhat.com>
25512
25513         areadlink, areadlink-with-size: relax license to LGPLv2+
25514         * modules/areadlink (License): Relax to LGPLv2+.
25515         * modules/areadlink-with-size (License): Likewise.
25516
25517 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25518             Bruno Haible  <bruno@clisp.org>
25519
25520         *printf: Fix memory leak.
25521         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25522         * lib/vfprintf.c (vfprintf): Likewise.
25523         * lib/dprintf.c (dprintf): Likewise.
25524         * lib/vdprintf.c (vdprintf): Likewise.
25525
25526 2009-12-14  Eric Blake  <ebb9@byu.net>
25527
25528         accept4: adjust module dependencies
25529         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25530
25531         utimens: one more try at avoiding compiler warning
25532         * lib/utimens.c (lutimens): Lower scope of result.
25533
25534 2009-12-13  Bruno Haible  <bruno@clisp.org>
25535
25536         Move the malloc checking from module 'list' to new module 'xlist'.
25537         * modules/xlist: New file.
25538         * lib/gl_xlist.h: New file.
25539         * lib/gl_xlist.c: New file.
25540         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
25541         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
25542         gl_list_add_last, gl_list_add_before, gl_list_add_after,
25543         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
25544         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
25545         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
25546         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
25547         gl_sortedlist_nx_add): New declarations.
25548         (struct gl_list_implementation): Rename and change methods accordingly.
25549         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
25550         (gl_list_nx_create): Renamed from gl_list_create.
25551         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25552         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25553         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25554         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25555         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25556         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25557         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25558         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25559         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
25560         gl_list_create_empty.
25561         (gl_list_nx_create): Renamed from gl_list_create.
25562         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25563         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25564         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25565         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25566         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25567         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25568         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25569         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25570         * lib/gl_array_list.c: Don't include xalloc.h.
25571         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
25572         NULL upon out-of-memory.
25573         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
25574         out-of-memory.
25575         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
25576         Change return type to 'int'.
25577         (gl_array_nx_set_at): Renamed from gl_array_set_at.
25578         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25579         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
25580         upon out-of-memory.
25581         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
25582         upon out-of-memory.
25583         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
25584         upon out-of-memory.
25585         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
25586         upon out-of-memory.
25587         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
25588         out-of-memory.
25589         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
25590         Update.
25591         (gl_array_list_implementation): Update.
25592         * lib/gl_carray_list.c: Don't include xalloc.h.
25593         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
25594         Return NULL upon out-of-memory.
25595         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
25596         out-of-memory.
25597         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
25598         Change return type to 'int'.
25599         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
25600         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25601         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
25602         upon out-of-memory.
25603         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
25604         upon out-of-memory.
25605         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
25606         out-of-memory.
25607         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
25608         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
25609         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
25610         Update.
25611         (gl_carray_list_implementation): Update.
25612         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
25613         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
25614         gl_linked_create_empty. Return NULL upon out-of-memory.
25615         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
25616         out-of-memory.
25617         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
25618         Change return type to 'int'. Return -1 upon out-of-memory.
25619         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
25620         out-of-memory.
25621         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
25622         upon out-of-memory.
25623         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
25624         upon out-of-memory.
25625         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
25626         NULL upon out-of-memory.
25627         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
25628         upon out-of-memory.
25629         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
25630         out-of-memory.
25631         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
25632         Update.
25633         * lib/gl_linked_list.c: Don't include xalloc.h.
25634         (gl_linked_list_implementation): Update.
25635         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
25636         (add_to_bucket): Change return type to 'int'.
25637         (gl_linkedhash_list_implementation): Update.
25638         * lib/gl_anytree_list1.h (free_subtree): New function.
25639         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
25640         gl_tree_create_empty. Return NULL upon out-of-memory.
25641         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
25642         Change return type to 'int'. Return -1 upon out-of-memory.
25643         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
25644         out-of-memory.
25645         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
25646         (gl_tree_remove_node): New function, moved here from
25647         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
25648         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
25649         Update.
25650         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
25651         malloc, not xmalloc. Return NULL upon out-of-memory.
25652         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25653         out-of-memory.
25654         (gl_tree_remove_node_from_tree): New function, extracted from
25655         gl_tree_remove_node.
25656         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25657         upon out-of-memory.
25658         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25659         out-of-memory.
25660         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25661         upon out-of-memory.
25662         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25663         upon out-of-memory.
25664         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25665         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
25666         not xmalloc. Return NULL upon out-of-memory.
25667         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25668         out-of-memory.
25669         (gl_tree_remove_node_from_tree): New function, extracted from
25670         gl_tree_remove_node.
25671         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25672         upon out-of-memory.
25673         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25674         out-of-memory.
25675         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25676         upon out-of-memory.
25677         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25678         upon out-of-memory.
25679         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25680         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
25681         gl_anytree_list1.h before gl_anyavltree_list2.h.
25682         (gl_avltree_list_implementation): Update.
25683         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
25684         gl_anytree_list1.h before gl_anyavltree_list2.h.
25685         (gl_rbtree_list_implementation): Update.
25686         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
25687         Change return type to 'int'. Return -1 upon out-of-memory. Use
25688         __builtin_expect.
25689         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
25690         (gl_avltreehash_list_implementation): Update.
25691         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
25692         (gl_rbtreehash_list_implementation): Update.
25693         * modules/array-list (Depends-on): Remove xalloc.
25694         * modules/carray-list (Depends-on): Likewise.
25695         * modules/linked-list (Depends-on): Likewise.
25696         * modules/linkedhash-list (Depends-on): Likewise.
25697         * modules/avltree-list (Depends-on): Likewise.
25698         * modules/rbtree-list (Depends-on): Likewise.
25699         * modules/avltreehash-list (Depends-on): Likewise.
25700         * modules/rbtreehash-list (Depends-on): Likewise.
25701
25702         * modules/xsublist: New file.
25703         * lib/gl_xsublist.h: New file.
25704         * lib/gl_xsublist.c: New file.
25705         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
25706         (gl_sublist_nx_create): New declaration.
25707         * lib/gl_sublist.c: Don't include xalloc.h.
25708         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
25709         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
25710         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
25711         Change return type to 'int'. Return -1 upon out-of-memory.
25712         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
25713         upon out-of-memory.
25714         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
25715         NULL upon out-of-memory.
25716         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
25717         upon out-of-memory.
25718         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
25719         NULL upon out-of-memory.
25720         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
25721         NULL upon out-of-memory.
25722         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
25723         upon out-of-memory.
25724         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
25725         (gl_sublist_list_implementation): Update.
25726         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
25727         upon out-of-memory.
25728         * modules/sublist (Depends-on): Remove xalloc.
25729
25730         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
25731         * tests/test-carray_list.c: Likewise.
25732         * tests/test-linked_list.c: Likewise.
25733         * tests/test-linkedhash_list.c: Likewise.
25734         * tests/test-avltree_list.c: Likewise.
25735         * tests/test-rbtree_list.c: Likewise.
25736         * tests/test-avltreehash_list.c: Likewise.
25737         * tests/test-rbtreehash_list.c: Likewise.
25738         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
25739         * modules/carray-list-tests (Makefile.am): Likewise.
25740         * modules/linked-list-tests (Makefile.am): Likewise.
25741         * modules/linkedhash-list-tests (Makefile.am): Likewise.
25742         * modules/avltree-list-tests (Makefile.am): Likewise.
25743         * modules/rbtree-list-tests (Makefile.am): Likewise.
25744         * modules/avltreehash-list-tests (Makefile.am): Likewise.
25745         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
25746
25747         * NEWS: Mention the changes.
25748
25749         * lib/clean-temp.c: Include gl_xlist.h.
25750         * modules/clean-temp (Depends-on): Add xlist.
25751
25752         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
25753         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
25754
25755         * tests/test-array_oset.c: Include gl_xlist.h.
25756         * modules/array-oset-tests (Depends-on): Add xlist.
25757
25758         Reported by José E. Marchesi <jemarch@gnu.org>.
25759
25760 2009-12-13  Bruno Haible  <bruno@clisp.org>
25761
25762         Move the malloc checking from module 'oset' to new module 'xoset'.
25763         * modules/xoset: New file.
25764         * lib/gl_xoset.h: New file.
25765         * lib/gl_xoset.c: New file.
25766         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
25767         declarations.
25768         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
25769         (struct gl_oset_implementation): Rename and change methods accordingly.
25770         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
25771         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25772         'int'. Mark as __warn_unused_result__.
25773         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
25774         gl_oset_create_empty.
25775         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25776         'int'.
25777         * lib/gl_array_oset.c: Don't include xalloc.h.
25778         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
25779         malloc, not xmalloc.
25780         (grow): Change return type to 'int'. Don't call xalloc_die.
25781         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
25782         to 'int'.
25783         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
25784         'int'.
25785         (gl_array_oset_implementation): Update.
25786         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
25787         gl_tree_create_empty.
25788         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
25789         'int'.
25790         * lib/gl_avltree_oset.c: Don't include xalloc.h.
25791         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25792         xmalloc.
25793         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25794         not xmalloc.
25795         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25796         xmalloc.
25797         (gl_avltree_oset_implementation): Update.
25798         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
25799         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25800         xmalloc.
25801         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25802         not xmalloc.
25803         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25804         xmalloc.
25805         (gl_rbtree_oset_implementation): Update.
25806         * modules/array-oset (Depends-on): Remove xalloc.
25807         * modules/avltree-oset (Depends-on): Likewise.
25808         * modules/rbtree-oset (Depends-on): Likewise.
25809         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
25810         * tests/test-avltree_oset.c: Likewise.
25811         * tests/test-rbtree_oset.c: Likewise.
25812         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
25813         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
25814         * modules/rbtree-oset-tests (Makefile.am): Likewise.
25815         * NEWS: Mention the change.
25816
25817 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
25818
25819         maint.mk: allow a project to override release-prep commands
25820         * top/maint.mk (alpha, beta, stable): Move release-preparatory
25821         commands into a new rule.
25822         (release-prep): New rule.
25823         (release-prep-hook): New overridable variable.
25824
25825 2009-12-13  Bruno Haible  <bruno@clisp.org>
25826
25827         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
25828
25829 2009-12-13  Jim Meyering  <meyering@redhat.com>
25830
25831         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
25832         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
25833
25834 2009-12-12  Bruno Haible  <bruno@clisp.org>
25835
25836         duplocale: Tweak.
25837         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
25838
25839 2009-12-12  Karl Berry  <karl@gnu.org>
25840
25841         * config/srclist.txt (strtoll.c): tab changes, no more sync.
25842
25843 2009-12-12  Bruno Haible  <bruno@clisp.org>
25844
25845         * m4/po.m4: Undo incorrect untabification.
25846
25847 2009-12-12  Bruno Haible  <bruno@clisp.org>
25848
25849         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
25850         * modules/c-strtod (Depends-on): Add locale.
25851         * modules/c-strtold (Depends-on): Likewise.
25852
25853 2009-12-12  Bruno Haible  <bruno@clisp.org>
25854
25855         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
25856
25857 2009-12-11  Eric Blake  <ebb9@byu.net>
25858
25859         setenv: relax requirement in light of POSIX ruling
25860         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
25861         not NULL.
25862         * tests/test-setenv.c (main): Relax test.
25863         * tests/test-unsetenv.c (main): Likewise.
25864         * doc/posix-functions/setenv.texi (setenv): Document this.
25865         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25866
25867 2009-12-11  Bruno Haible  <bruno@clisp.org>
25868
25869         New module 'fd-safer-flag'.
25870         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
25871         * lib/dup-safer.c (dup_safer_flag): Remove function.
25872         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
25873         * lib/fd-safer.c (fd_safer_flag): Remove function.
25874         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
25875         * modules/cloexec (configure.ac): Drop indicator macro.
25876         * modules/fd-safer-flag: New file.
25877         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
25878         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
25879         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
25880
25881 2009-12-11  Bruno Haible  <bruno@clisp.org>
25882
25883         Tests for module 'nl_langinfo'.
25884         * modules/nl_langinfo-tests: New file.
25885         * tests/test-nl_langinfo.sh: New file.
25886         * tests/test-nl_langinfo.c: New file.
25887
25888         New module 'nl_langinfo'.
25889         * lib/nl_langinfo.c: New file.
25890         * m4/nl_langinfo.m4: New file.
25891         * modules/nl_langinfo: New file.
25892         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
25893
25894 2009-12-11  Bruno Haible  <bruno@clisp.org>
25895
25896         Tests for module 'langinfo'.
25897         * modules/langinfo-tests: New file.
25898         * tests/test-langinfo.c: New file.
25899
25900         New module 'langinfo'.
25901         * lib/langinfo.in.h: New file.
25902         * m4/langinfo_h.m4: New file.
25903         * modules/langinfo: New file.
25904         * doc/posix-headers/langinfo.texi: Mention the new module.
25905
25906 2009-12-11  Bruno Haible  <bruno@clisp.org>
25907
25908         * lib/config.charset: Untabify.
25909
25910 2009-12-11  Bruno Haible  <bruno@clisp.org>
25911
25912         * modules/unistd-safer (configure.ac): Drop indicator macro.
25913
25914 2009-12-11  Bruno Haible  <bruno@clisp.org>
25915
25916         Move pipe2-safer code to its own file.
25917         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
25918         * lib/pipe-safer.c (pipe2_safer): Remove function.
25919         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
25920         (Makefile.am): Add it to lib_SOURCES.
25921
25922 2009-12-10  Bruno Haible  <bruno@clisp.org>
25923
25924         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
25925
25926 2009-12-10  Bruno Haible  <bruno@clisp.org>
25927
25928         Declare which arguments expect non-NULL values, for GCC and clang.
25929         * build-aux/arg-nonnull.h: New file.
25930         * modules/arg-nonnull: New file.
25931         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
25932         (inet_ntop, inet_pton): Use it.
25933         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
25934         (closedir, dirfd, opendir, scandir, alphasort): Use it.
25935         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
25936         (open, openat): Use it.
25937         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
25938         (fnmatch): Use it.
25939         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
25940         (getopt, getopt_long, getopt_long_only): Use it.
25941         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
25942         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
25943         Use it.
25944         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
25945         (iconv_open): Use it.
25946         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
25947         (strtoimax, strtoumax): Use it.
25948         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
25949         (duplocale): Use it.
25950         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
25951         (frexp, frexpl): Use it.
25952         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
25953         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
25954         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
25955         (tsearch, tfind, tdelete, twalk): Use it.
25956         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
25957         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25958         sigpending): Use it.
25959         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
25960         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25961         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25962         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25963         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25964         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25965         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25966         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25967         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25968         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25969         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25970         Use it.
25971         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
25972         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
25973         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
25974         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
25975         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
25976         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
25977         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
25978         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
25979         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
25980         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
25981         strtoull, unsetenv): Use it.
25982         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
25983         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25984         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25985         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
25986         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
25987         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
25988         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
25989         (strcasecmp, strncasecmp): Use it.
25990         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
25991         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
25992         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
25993         rpl_setsockopt): Use it.
25994         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
25995         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
25996         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
25997         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
25998         (gettimeofday): Use it.
25999         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26000         (times): Use it.
26001         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26002         (uname): Use it.
26003         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26004         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26005         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26006         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26007         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26008         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26009         unlinkat, write): Use it.
26010         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26011         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26012         * lib/argv-iter.h: Include arg-nonnull.h.
26013         (_ATTRIBUTE_NONNULL_): Remove macro.
26014         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26015         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26016         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26017         optimization.
26018         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26019         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26020         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26021         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26022         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26023         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26024         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26025         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26026         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26027         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26028         * modules/dirent (Depends-on): Add arg-nonnull.
26029         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26030         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26031         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26032         * modules/fnmatch (Depends-on): Add arg-nonnull.
26033         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26034         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26035         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26036         * modules/glob (Depends-on): Add arg-nonnull.
26037         (Makefile.am): Insert arg-nonnull.h into glob.h.
26038         * modules/iconv_open (Depends-on): Add arg-nonnull.
26039         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26040         * modules/inttypes (Depends-on): Add arg-nonnull.
26041         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26042         * modules/locale (Depends-on): Add arg-nonnull.
26043         (Makefile.am): Insert arg-nonnull.h into locale.h.
26044         * modules/math (Depends-on): Add arg-nonnull.
26045         (Makefile.am): Insert arg-nonnull.h into math.h.
26046         * modules/netdb (Depends-on): Add arg-nonnull.
26047         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26048         * modules/search (Depends-on): Add arg-nonnull.
26049         (Makefile.am): Insert arg-nonnull.h into search.h.
26050         * modules/signal (Depends-on): Add arg-nonnull.
26051         (Makefile.am): Insert arg-nonnull.h into signal.h.
26052         * modules/spawn (Depends-on): Add arg-nonnull.
26053         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26054         * modules/stdio (Depends-on): Add arg-nonnull.
26055         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26056         * modules/stdlib (Depends-on): Add arg-nonnull.
26057         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26058         * modules/string (Depends-on): Add arg-nonnull.
26059         (Makefile.am): Insert arg-nonnull.h into string.h.
26060         * modules/strings (Depends-on): Add arg-nonnull.
26061         (Makefile.am): Insert arg-nonnull.h into strings.h.
26062         * modules/sys_socket (Depends-on): Add arg-nonnull.
26063         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26064         * modules/sys_stat (Depends-on): Add arg-nonnull.
26065         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26066         * modules/sys_time (Depends-on): Add arg-nonnull.
26067         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26068         * modules/sys_times (Depends-on): Add arg-nonnull.
26069         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26070         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26071         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26072         * modules/time (Depends-on): Add arg-nonnull.
26073         (Makefile.am): Insert arg-nonnull.h into time.h.
26074         * modules/unistd (Depends-on): Add arg-nonnull.
26075         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26076         * modules/wchar (Depends-on): Add arg-nonnull.
26077         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26078         * modules/argv-iter (Depends-on): Add arg-nonnull.
26079         * tests/test-canonicalize.c (null_ptr): New function.
26080         (main): Use it.
26081         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26082         (main): Use it.
26083         * tests/test-memmem.c (null_ptr): New function.
26084         (main): Use it.
26085         Reported by Jim Meyering.
26086
26087 2009-12-10  Bruno Haible  <bruno@clisp.org>
26088
26089         Use spaces for indentation, not tabs.
26090         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26091         * m4/*.m4: Untabify.
26092         * build-aux/*.h: Untabify.
26093         * tests/**/*.[hc]: Untabify.
26094         * README: New section "Indent with spaces, not TABs", based on
26095         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26096         * NEWS: Mention the change.
26097
26098 2009-12-10  Bruno Haible  <bruno@clisp.org>
26099
26100         pty test: Fix link error.
26101         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26102         test_pty_LDADD.
26103
26104 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26105
26106         * modules/pty: New file.
26107         * modules/pty-tests: New file.
26108         * m4/pty.m4: New file.
26109         * tests/test-pty.c: New file.
26110         * doc/glibc-headers/pty.texi: Modified.
26111         * doc/glibc-functions/forkpty.texi: Modified.
26112         * doc/glibc-functions/openpty.texi: Modified.
26113
26114 2009-12-10  Bruno Haible  <bruno@clisp.org>
26115
26116         Avoid syntax error in C++ mode.
26117         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26118
26119 2009-12-10  Bruno Haible  <bruno@clisp.org>
26120
26121         Use sed with option -e.
26122         * gnulib-tool (func_version, func_emit_copyright_notice,
26123         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26124         option -e to sed.
26125         * modules/link-warning (Makefile.am): Likewise.
26126
26127 2009-12-10  Jim Meyering  <meyering@redhat.com>
26128
26129         mgetgroups: do not write bytes beyond end of malloc'd buffer
26130         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26131         username, we call getgroups with a one-element-shorter buffer,
26132         but still told it the length was original, max_n_groups.
26133
26134 2009-12-09  Eric Blake  <ebb9@byu.net>
26135
26136         cloexec: relax license
26137         * modules/cloexec (Maintainer): Add myself.
26138         (License): Use LGPL, not GPL.
26139
26140         link-warning: optimize generation
26141         * modules/link-warning (Makefile.am): Reduce process usage.
26142
26143 2009-12-09  Bruno Haible  <bruno@clisp.org>
26144
26145         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26146         workaround was added on 2009-11-17.
26147
26148 2009-12-09  Jim Meyering  <meyering@redhat.com>
26149             Bruno Haible  <bruno@clisp.org>
26150
26151         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26152         * modules/link-warning (Makefile.am): Make the comment-removing sed
26153         command more robust in the face of bootstrap-prepended comment lines.
26154
26155 2009-12-09  Bruno Haible  <bruno@clisp.org>
26156
26157         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26158         most one group.
26159
26160 2009-12-09  Simon Josefsson <simon@josefsson.org>
26161             Bruno Haible  <bruno@clisp.org>
26162
26163         * build-aux/link-warning.h: Add copyright notice.
26164         * modules/link-warning (Makefile.am): Generate link-warning.h from
26165         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26166         * NEWS: Mention change in link-warning module.
26167         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26168         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26169         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26170         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26171         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26172         * modules/math (Makefile.am): Add dependency to math.h.
26173         * modules/search (Makefile.am): Add dependency to search.h.
26174         * modules/signal (Makefile.am): Add dependency to signal.h.
26175         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26176         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26177         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26178         * modules/string (Makefile.am): Add dependency to string.h.
26179         * modules/strings (Makefile.am): Add dependency to strings.h.
26180         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26181         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26182         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26183         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26184         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26185         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26186         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26187         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26188         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26189
26190 2009-12-09  Bruno Haible  <bruno@clisp.org>
26191
26192         fchdir: Optimize away rpl_fstat when possible.
26193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26194         REPLACE_OPEN_DIRECTORY.
26195         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26196
26197 2009-12-09  Bruno Haible  <bruno@clisp.org>
26198
26199         * lib/fchdir.c: Update comment.
26200
26201 2009-12-09  Bruno Haible  <bruno@clisp.org>
26202
26203         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26204
26205 2009-12-08  Eric Blake  <ebb9@byu.net>
26206
26207         fchdir: avoid memory leak on re-registration.
26208         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26209
26210 2009-12-08  Jim Meyering  <meyering@redhat.com>
26211
26212         init.sh: avoid Solaris 10 /bin/sh portability problem
26213         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26214         sourced script:
26215           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26216           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26217           bar
26218         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26219         and two tests used that idiom.
26220         * tests/init.sh: Update suggested usage comments.
26221         (path_prepend_): New function, to be used in place
26222         of the --src-path=DIR option.
26223         (setup_): Move PATH-prepending code into path_prepend_.
26224         * tests/test-pread.sh: Adapt to new usage.
26225         * tests/test-xalloc-die.sh: Likewise.
26226
26227 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26228
26229         * doc/gnulib.texi (Glibc pty.h): Add.
26230         * doc/glibc-functions/forkpty.texi: Add.
26231         * doc/glibc-functions/openpty.texi: Add.
26232         Suggested by Bruno Haible.
26233
26234 2009-12-08  Eric Blake  <ebb9@byu.net>
26235
26236         fchdir: fix logic bugs
26237         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26238         * tests/test-fchdir.c (main): Enhance test.
26239         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26240         is in use.
26241
26242         dup2: fix logic bugs
26243         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26244         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26245         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26246         exists.
26247         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26248
26249 2009-12-07  Eric Blake  <ebb9@byu.net>
26250
26251         unlink: fix m4 detection
26252         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26253
26254         unistd-safer: add unit test
26255         * modules/unistd-safer-tests: New file.
26256         * tests/test-dup-safer.c: Likewise.
26257         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26258         * tests/test-dup2.c (setmode): Likewise.
26259         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26260
26261         cloexec: preserve text vs. binary across dup_cloexec
26262         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26263         mode.
26264         * modules/dup2-tests (Depends-on): Add binary-io.
26265         * modules/cloexec-tests (Depends-on): Likewise.
26266         * tests/test-dup2.c (setmode, is_mode): New helpers.
26267         (main): Add tests that translation mode is preserved.
26268         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26269         Reported by Bruno Haible.
26270
26271         mgetgroups: reduce duplicate listings
26272         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26273         resulting array.
26274         * tests/test-chown.h (test_chown): Simplify client.
26275         * tests/test-lchown.h (test_lchown): Likewise.
26276
26277 2009-12-06  Bruno Haible  <bruno@clisp.org>
26278
26279         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26280         value.
26281
26282 2009-12-06  Bruno Haible  <bruno@clisp.org>
26283
26284         * lib/progname.c: Include stdio.h, stdlib.h.
26285         (set_program_name): Reject a NULL argument.
26286
26287 2009-12-05  Eric Blake  <ebb9@byu.net>
26288
26289         pipe2-safer: new module
26290         * modules/pipe2-safer: New file.
26291         * lib/unistd-safer.h (pipe2_safer): New prototype.
26292         * lib/unistd--.h (pipe2): New wrapper.
26293         * lib/pipe-safer.c (pipe2_safer): New function.
26294         * modules/pipe (Depends-on): Add pipe2-safer.
26295         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26296
26297         stdlib-safer: preserve cloexec flag for mkostemp[s]
26298         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26299         fd_safer_flag.
26300
26301         unistd-safer: allow preservation of cloexec status via flag
26302         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26303         prototypes.
26304         * lib/dup-safer.c (dup_safer_flag): New function.
26305         * lib/fd-safer.c (fd_safer_flag): Likewise.
26306         * modules/cloexec (configure.ac): Set witness.
26307
26308         test-dup2: enhance test
26309         * modules/dup2-tests (Depends-on): Add cloexec.
26310         * tests/test-dup2.c (main): Enhance test.
26311
26312         cloexec: add dup_cloexec
26313         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26314         header and comments.
26315         * lib/cloexec.c (set_cloexec_flag): Add comments.
26316         (dup_cloexec): New function, with mingw implementation borrowed
26317         from...
26318         * lib/w32spawn.h (dup_noinherit): ...here.
26319         * modules/execute (Depends-on): Add cloexec.
26320         * modules/pipe (Depends-on): Likewise.
26321         * modules/cloexec (Depends-on): Add dup2.
26322         * modules/cloexec-tests (Files): New file.
26323         * tests/test-cloexec.c: Likewise.
26324
26325         test-xalloc-die: fix test for mingw
26326         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26327         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26328         directory and .exe suffix off argv[0] output.
26329
26330         test-fseeko: fix test for mingw
26331         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26332         than undefining fseek, so test will pass on mingw.
26333
26334 2009-12-05  Bruno Haible  <bruno@clisp.org>
26335
26336         * lib/progname.h (set_program_name): Clarify specification.
26337         * lib/progname.c (set_program_name): Likewise.
26338         Reported by Jim Meyering.
26339
26340 2009-12-05  Jim Meyering  <meyering@redhat.com>
26341
26342         maint.mk: backslash-escape parens in default regexp
26343         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26344         backslash-escape the literal parentheses.
26345
26346         maint.mk: news-date-check: use grep -E
26347         * top/maint.mk (today): Define a Make variable, not a...
26348         (news-date-check): ...shell variable.
26349         (news-date-regexp): Use the Make variable.
26350         Use grep's -E option.  Change the failing diagnostic to mention
26351         the variable, $(news-date-regexp).
26352
26353 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26354
26355         maintainer-makefile: allow customization of NEWS entry format
26356         * top/maint.mk (news-date-regexp): New overridable variable.
26357         (news-date-check): Use it.
26358
26359 2009-12-04  Eric Blake  <ebb9@byu.net>
26360
26361         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26362         * lib/mgetgroups.h (xgetgroups): New prototype.
26363         * lib/mgetgroups.c (xgetgroups): New wrapper.
26364         (mgetgroups): Handle ENOSYS.
26365         * modules/mgetgroups (Depends-on): Add realloc.
26366         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26367
26368         mgetgroups: avoid argument promotion issues with -1
26369         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26370         for invalid gid_t.
26371         * tests/test-chown.h (getegid, test_chown): Likewise.
26372         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26373
26374 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26375
26376         exclude: Fix header file problems.
26377         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26378
26379 2009-12-01  Jim Meyering  <meyering@redhat.com>
26380
26381         fts: fts_open: do not let an empty string cause immediate failure
26382         This is required in support of GNU rm, for which the command
26383         "rm A '' B" must process and remove both A and B, in spite of
26384         the empty string argument.
26385         * lib/fts.c (fts_open): Do not let the presence of an empty string
26386         cause fts_open to fail immediately.  Most fts-using tools must be
26387         able to process all arguments, in order, and can be expected to
26388         diagnose such arguments themselves.
26389
26390 2009-11-30  Eric Blake  <ebb9@byu.net>
26391
26392         utimens: fix compilation error
26393         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26394         Declare variable at right scope.
26395
26396 2009-11-29  Jim Meyering  <meyering@redhat.com>
26397
26398         bootstrap: handle perl-5.11's changed --version output
26399         * build-aux/bootstrap (get_version): Handle perl separately,
26400         since perl-5.11's --version output is different.
26401
26402 2009-11-28  Jim Meyering  <meyering@redhat.com>
26403
26404         userspec: depend on the inttostr module, too
26405         * modules/userspec (Depends-on): Add inttostr.
26406
26407         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26408         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26409         number of MAXUID when it evaluates to (uid_t) -1.
26410         Likewise for group ID.  Reported by Matt McCutchen in
26411         <http://savannah.gnu.org/bugs/?28113>
26412
26413         userspec: reformat to use spaces, not TABs
26414         * lib/userspec.c: Expand TABs to spaces.
26415         Add Emacs' "indent-tabs-mode: nil" hint.
26416
26417 2009-11-27  Eric Blake  <ebb9@byu.net>
26418
26419         getopt-gnu: flush out another BSD bug
26420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26421         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26422         flush out BSD bug.
26423         * tests/test-getopt.h (test_getopt): End lists with NULL.
26424         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26425         (test_getopt_long_posix): Enhance test.
26426         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26427         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26428         getopt-gnu.
26429         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26430         Likewise.
26431
26432 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26433
26434         * modules/idpriv-droptemp-tests (Notice): Fix text.
26435
26436 2009-11-27  Jim Meyering  <meyering@redhat.com>
26437
26438         test-xalloc-die: avoid spurious failure due to libtool argv difference
26439         In a libtool-enabled project, this test would fail due to a difference
26440         in the emitted program name, e.g.,
26441         -test-xalloc-die: memory exhausted
26442         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26443         Use program to avoid that.
26444         * modules/xalloc-die-tests (Depends-on): Add progname.
26445         * tests/test-xalloc-die.c: Include progname.h".
26446         (program_name): Remove decl.
26447         (main): Call set_program_name.
26448         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26449
26450 2009-11-26  Richard Jones  <rjones@redhat.com>
26451
26452         w32sock: leave win32 error in place.
26453         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
26454
26455 2009-11-26  Eric Blake  <ebb9@byu.net>
26456
26457         init.sh: suggest to use skip_ and fail_ functions in comments
26458         * tests/init.sh: Add a sentence.
26459
26460 2009-11-25  Bruno Haible  <bruno@clisp.org>
26461
26462         init.sh: add documentation in comments
26463         * tests/init.sh: Add some developer and user documentation.
26464
26465 2009-11-26  Jim Meyering  <meyering@redhat.com>
26466
26467         init.sh: accommodate even those who specify bogus srcdir manually
26468         * tests/init.sh: Normally, srcdir is guaranteed by automake and
26469         configure-time tests to be sanitized, so that there is no need to
26470         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26471         (with no double quotes) suffices.  However, since tests may be
26472         invoked manually, and since you may explicitly set srcdir to the
26473         name of a directory containing spaces, do quote its uses here.
26474         * tests/test-pread.sh: Likewise.
26475         Suggested by Bruno Haible.
26476
26477         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26478         * tests/test-pread.sh: Write no data into the pipe, because
26479         test-pread actually reads none.  This avoids a diagnostic,
26480         "bash: echo: write error: Broken pipe", that arises in the unusual
26481         event something is ignoring SIGPIPE, and might be interpreted
26482         as some sort of failure.  Reported by Bruno Haible.
26483
26484 2009-11-25  Jim Meyering  <meyering@redhat.com>
26485
26486         test-pread: cover failure with ESPIPE and EINVAL
26487         * tests/test-pread.c (main): Test for failure, too.
26488         * tests/test-pread.sh: Invoke with stdin on a pipe.
26489         Suggested by Eric Blake.
26490
26491         pread: improvement and fix
26492         * modules/pread (Depends-on): Depend on lseek, for portability to
26493         e.g., mingw.  Suggested by Eric Blake.
26494         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26495
26496         unistd.in.h: correct declaration of pread
26497         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26498         Reported by Richard W.M. Jones.
26499
26500         test-pread.sh: distribute the test script
26501         * modules/pread-tests (Files): Include test-pread.sh.
26502
26503         test-pread.sh: clean up
26504         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26505         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26506         That is unnecessary, since it's always ".".
26507         Suggestion from Eric Blake.
26508
26509         test-pread.sh: make executable
26510         * tests/test-pread.sh: Set executable bit.
26511         Reported by Eric Blake.
26512
26513         correct typo in test-pread.sh
26514         * tests/test-pread.sh: Add #! line.
26515
26516         test pread
26517         * tests/test-pread.c: New file.
26518         * tests/test-pread.sh: Likewise.
26519         * modules/pread-tests: Likewise.
26520
26521         pread: new module
26522         * modules/pread: New file.
26523         * lib/unistd.in.h (pread): Define/declare.
26524         * lib/pread.c (pread): New file.
26525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26526         * modules/unistd (Makefile.am): Substitute witnesses.
26527         * doc/posix-functions/pread.texi (pread): Update.
26528         * MODULES.html.sh: Add pread.
26529
26530 2009-11-25  Jim Meyering  <meyering@redhat.com>
26531
26532         tests/init.sh: new file to be used via most *.sh tests
26533         * tests/init.sh: New file.
26534
26535 2009-11-25  Eric Blake  <ebb9@byu.net>
26536
26537         utimens: work around older Linux failure with symlinks
26538         * lib/utimens.c (lutimensat_works_really): New variable.
26539         (fdutimens, lutimens): Use it to manage kernels that support
26540         nanosecond times on files, but not on symlinks.
26541         Reported by OndÅ™ej Vašík.
26542
26543         utimes: fix configure grammar
26544         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
26545
26546 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
26547
26548         regex: Fix fastmap for multibyte character ranges.
26549         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
26550         characters when a multibyte character range is included.
26551
26552 2009-11-22  Andy Wingo  <wingo@pobox.com>
26553
26554         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
26555         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
26556
26557 2009-11-24  Bruno Haible  <bruno@clisp.org>
26558
26559         doc: Most *_l functions exist in MacOS X 10.5.
26560         * doc/posix-functions/duplocale.texi: Update platforms list.
26561         * doc/posix-functions/freelocale.texi: Likewise.
26562         * doc/posix-functions/newlocale.texi: Likewise.
26563         * doc/posix-functions/uselocale.texi: Likewise.
26564         * doc/posix-functions/isalnum_l.texi: Likewise.
26565         * doc/posix-functions/isalpha_l.texi: Likewise.
26566         * doc/posix-functions/isblank_l.texi: Likewise.
26567         * doc/posix-functions/iscntrl_l.texi: Likewise.
26568         * doc/posix-functions/isdigit_l.texi: Likewise.
26569         * doc/posix-functions/isgraph_l.texi: Likewise.
26570         * doc/posix-functions/islower_l.texi: Likewise.
26571         * doc/posix-functions/isprint_l.texi: Likewise.
26572         * doc/posix-functions/ispunct_l.texi: Likewise.
26573         * doc/posix-functions/isspace_l.texi: Likewise.
26574         * doc/posix-functions/isupper_l.texi: Likewise.
26575         * doc/posix-functions/iswalnum_l.texi: Likewise.
26576         * doc/posix-functions/iswalpha_l.texi: Likewise.
26577         * doc/posix-functions/iswblank_l.texi: Likewise.
26578         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26579         * doc/posix-functions/iswctype_l.texi: Likewise.
26580         * doc/posix-functions/iswdigit_l.texi: Likewise.
26581         * doc/posix-functions/iswgraph_l.texi: Likewise.
26582         * doc/posix-functions/iswlower_l.texi: Likewise.
26583         * doc/posix-functions/iswprint_l.texi: Likewise.
26584         * doc/posix-functions/iswpunct_l.texi: Likewise.
26585         * doc/posix-functions/iswspace_l.texi: Likewise.
26586         * doc/posix-functions/iswupper_l.texi: Likewise.
26587         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26588         * doc/posix-functions/isxdigit_l.texi: Likewise.
26589         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
26590         * doc/posix-functions/strcasecmp_l.texi: Likewise.
26591         * doc/posix-functions/strcoll_l.texi: Likewise.
26592         * doc/posix-functions/strfmon_l.texi: Likewise.
26593         * doc/posix-functions/strftime_l.texi: Likewise.
26594         * doc/posix-functions/strncasecmp_l.texi: Likewise.
26595         * doc/posix-functions/strxfrm_l.texi: Likewise.
26596         * doc/posix-functions/tolower_l.texi: Likewise.
26597         * doc/posix-functions/toupper_l.texi: Likewise.
26598         * doc/posix-functions/towctrans_l.texi: Likewise.
26599         * doc/posix-functions/towlower_l.texi: Likewise.
26600         * doc/posix-functions/towupper_l.texi: Likewise.
26601         * doc/posix-functions/wcscoll_l.texi: Likewise.
26602         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26603         * doc/posix-functions/wctrans_l.texi: Likewise.
26604         * doc/posix-functions/wctype_l.texi: Likewise.
26605         * doc/glibc-functions/strptime_l.texi: Likewise.
26606         * doc/glibc-functions/strtod_l.texi: Likewise.
26607         * doc/glibc-functions/strtof_l.texi: Likewise.
26608         * doc/glibc-functions/strtol_l.texi: Likewise.
26609         * doc/glibc-functions/strtold_l.texi: Likewise.
26610         * doc/glibc-functions/strtoll_l.texi: Likewise.
26611         * doc/glibc-functions/strtoul_l.texi: Likewise.
26612         * doc/glibc-functions/strtoull_l.texi: Likewise.
26613         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26614         * doc/glibc-functions/wcstod_l.texi: Likewise.
26615         * doc/glibc-functions/wcstof_l.texi: Likewise.
26616         * doc/glibc-functions/wcstol_l.texi: Likewise.
26617         * doc/glibc-functions/wcstold_l.texi: Likewise.
26618         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26619         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26620         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26621
26622 2009-11-24  Bruno Haible  <bruno@clisp.org>
26623
26624         duplocale: Fix logic bug.
26625         * lib/duplocale.c: Don't include <langinfo.h>.
26626         (_NL_LOCALE_NAME): Remove macro.
26627         (rpl_duplocale): Use setlocale instead of nl_langinfo.
26628         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
26629
26630 2009-11-23  Jim Meyering  <meyering@redhat.com>
26631
26632         test-update-copyright: don't hard-code /usr/bin/perl
26633         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
26634         perl to print the current year.  Gilles Espinasse reported that
26635         the replaced use of perl was hard-coded as /usr/bin/perl.
26636
26637 2009-11-23  Bruno Haible  <bruno@clisp.org>
26638
26639         duplocale: Add support for glibc 2.3.x.
26640         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
26641
26642 2009-11-22  Bruno Haible  <bruno@clisp.org>
26643
26644         vasnprintf: Tiny optimization.
26645         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
26646         MacOS X.
26647
26648 2009-11-22  Bruno Haible  <bruno@clisp.org>
26649
26650         Tests for module 'duplocale'.
26651         * modules/duplocale-tests: New file.
26652         * tests/test-duplocale.c: New file.
26653
26654         New module 'duplocale'.
26655         * m4/duplocale.m4: New file.
26656         * lib/locale.in.h (duplocale): New declaration.
26657         * lib/duplocale.c: New file.
26658         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
26659         gl_LOCALE_H_DEFAULTS): New macros.
26660         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
26661         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
26662         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
26663         REPLACE_DUPLOCALE.
26664         * modules/duplocale: New file.
26665         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
26666
26667 2009-11-22  Bruno Haible  <bruno@clisp.org>
26668
26669         * modules/locale-tests (configure.ac): Test for newlocale function.
26670         * tests/test-locale.c: When the system has extended locale functions,
26671         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
26672
26673         locale: Make locale_t available when possible.
26674         * lib/locale.in.h: Include <xlocale.h> when it exists.
26675         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
26676         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
26677         * modules/locale (Depends-on): Add extensions.
26678         (Makefile.am): Also substitute HAVE_XLOCALE_H.
26679         * doc/posix-headers/locale.texi: Document the problem with locale_t.
26680
26681 2009-11-22  Bruno Haible  <bruno@clisp.org>
26682
26683         Add comments.
26684         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
26685         invocation.
26686         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
26687         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26688         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26689
26690 2009-11-22  Bruno Haible  <bruno@clisp.org>
26691
26692         error: account for the possibility of freopen (stdout).
26693         * lib/error.c: Include <unistd.h>.
26694         (flush_stdout): New function, extracted from error and error_at_line.
26695         Determine stdout's fd dynamically.
26696         (error, error_at_line): Invoke flush_stdout.
26697         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
26698         * modules/error (Depends-on): Add unistd.
26699
26700 2009-11-22  Bruno Haible  <bruno@clisp.org>
26701
26702         diffseq: Add comment.
26703         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
26704
26705 2009-11-22  Jim Meyering  <meyering@redhat.com>
26706
26707         c-stack: avoid defining an unused static function
26708         * lib/c-stack.c (find_stack_direction): Do not define this function
26709         when it will not be used.
26710
26711         diffseq: avoid spurious gcc warnings
26712         * lib/diffseq.h (IF_LINT2): Define.
26713         (compareseq): Use it to initialize two members of "part".
26714         This avoids two used-uninitialized warnings.
26715
26716 2009-11-21  Jim Meyering  <meyering@redhat.com>
26717
26718         c-stack: avoid "ignoring return value of `write'" warning
26719         * lib/c-stack.c: Include "ignore-value.h".
26720         (die): Explicitly ignore each write return value.
26721         * modules/c-stack (Depends-on): Add ignore-value.
26722
26723 2009-11-21  Bruno Haible  <bruno@clisp.org>
26724
26725         diffseq: reduce scope of variable 'best'.
26726         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
26727         variable, earlier used for two different purposes.
26728
26729 2009-11-21  Jim Meyering  <meyering@redhat.com>
26730
26731         diffseq: remove useless assignment to "best"
26732         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
26733         assignment.  At that point "best" is already guaranteed to be zero.
26734
26735 2009-11-20  Eric Blake  <ebb9@byu.net>
26736
26737         build: mention ftp redirector in release announcements
26738         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
26739         values that used to come from cfg.mk; mention FTP redirect URL.
26740         * build-aux/announce-gen: Mention the mirror list.
26741         Suggested by Karl Berry.
26742
26743         nanosleep: improve port to mingw
26744         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
26745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
26746         LIB_NANOSLEEP, but only when needed.
26747         * modules/select (Link): Document LIBSOCKET.
26748         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
26749         enough.
26750
26751         nanosleep: work around cygwin bug
26752         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
26753         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
26754         bug.
26755         (getnow): Delete, not needed.
26756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
26757         LIB_CLOCK_GETTIME.
26758         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
26759         clock-time, gettime.
26760         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
26761         bug.
26762         * modules/nanosleep-tests: New test.
26763         * tests/test-nanosleep.c: New file.
26764
26765         sleep: work around cygwin bug
26766         * lib/sleep.c (rpl_sleep): Work around the bug.
26767         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
26768         (gl_PREREQ_SLEEP): Delete unused macro.
26769         * modules/sleep (Depends-on): Add verify.
26770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26771         * modules/unistd (Makefile.am): Substitute witness.
26772         * lib/unistd.in.h (sleep): Update prototype.
26773         * doc/posix-functions/sleep.texi (sleep): Document the bug.
26774         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
26775         * modules/sleep-tests (Depends-on): Check for alarm.
26776
26777 2009-11-20  Jim Meyering  <meyering@redhat.com>
26778
26779         maint.mk: improve sc_prohibit_magic_number_exit
26780         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
26781         so it does not match uses like System.exit(1).
26782         Add comments showing how to correct all offenders.
26783
26784 2009-11-19  Eric Blake  <ebb9@byu.net>
26785
26786         xalloc-die-tests: add missing library
26787         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
26788
26789         test-xvasprintf: silence compiler warnings
26790         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
26791         empty string from gcc.
26792
26793 2009-11-19  Jim Meyering  <meyering@redhat.com>
26794
26795         xfreopen: new module, from coreutils
26796         * modules/xfreopen: New module.
26797         * lib/xfreopen.c: New file.
26798         * lib/xfreopen.h: New file.
26799         * MODULES.html.sh (File stream based Input/Output"): Add it.
26800
26801 2009-11-19  Eric Blake  <ebb9@byu.net>
26802
26803         manywarnings: depend on warnings
26804         * modules/manywarnings (Depends-on): Add warnings.
26805
26806         build: avoid compiler warnings
26807         * lib/select.c (rpl_select): Delete unused variable.
26808         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
26809
26810 2009-11-18  Eric Blake  <ebb9@byu.net>
26811
26812         tests: avoid false negative with --with-packager
26813         * tests/test-version-etc.sh: Discard packager information.
26814         * tests/test-argp-version-etc-1.sh: Likewise.
26815         Reported by Mike Frysinger.
26816
26817         utimens: fix regression on Solaris
26818         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
26819         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
26820         can only change fd timestamps via futimesat.  Instead, use an
26821         additional witness macro to avoid BSD bug.
26822         Reported by Jim Meyering.
26823
26824 2009-11-17  Eric Blake  <ebb9@byu.net>
26825
26826         usleep: use it to simplify tests
26827         * modules/stat-time-tests (Depends-on): Add usleep.
26828         (configure.ac): Drop usleep check.
26829         * modules/chown-tests (Depends-on, configure.ac): Likewise.
26830         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
26831         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
26832         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
26833         * modules/openat-tests (Depends-on, configure.ac): Likewise.
26834         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
26835         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
26836         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
26837         Likewise.
26838         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
26839         * tests/test-lchown.h (nap): Likewise.
26840         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
26841         * tests/test-stat-time.c (nap): Likewise.
26842         * tests/test-utimens-common.h (nap): Update comments.
26843
26844         usleep: new module
26845         * modules/usleep: New file.
26846         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
26847         * lib/usleep.c (usleep): Likewise.
26848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26849         * modules/unistd (Makefile.am): Substitute witnesses.
26850         * lib/unistd.in.h (usleep): Add declaration.
26851         * doc/pastposix-functions/usleep.texi (usleep): Document this.
26852         * MODULES.html.sh (Date and time): Likewise.
26853         * modules/usleep-tests (Depends-on): New test.
26854         * tests/test-usleep.c: New file.
26855
26856         chown: work around OpenBSD bug
26857         * lib/chown.c (rpl_chown): Work around the bug.
26858         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
26859         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
26860         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
26861         * modules/chown (Depends-on): Add stdbool.
26862         * modules/lchown (Depends-on): Likewise.
26863         * doc/posix-functions/chown.texi (chown): Document the bug.
26864         * doc/posix-functions/lchown.texi (lchown): Likewise.
26865         * tests/test-lchown.h (test_chown): Relax test.
26866
26867         mkstemp: avoid conflict with C++ keyword template
26868         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
26869         * lib/mkostemp.c (mkostemp): Likewise.
26870         * lib/mkostemps.c (mkostemps): Likewise.
26871         * lib/mkstemp.c (mkstemp): Likewise.
26872         * lib/mkstemps.c (mkstemps): Likewise.
26873
26874         xalloc-die-tests: optimize
26875         * tests/test-xalloc-die.sh: Reduce number of processes.
26876
26877 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26878
26879         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
26880         patch from ludo@gnu.org (Ludovic Courtès).
26881
26882 2009-11-17  Jim Meyering  <meyering@redhat.com>
26883
26884         version-etc: use proper license string
26885         * modules/version-etc (License): Use LGPL, not LGPLv3+.
26886         * modules/version-etc-fsf: Likewise.
26887
26888 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26889
26890         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
26891         printed to stdout.  Deal with EOL differences.
26892
26893 2009-11-17  Eric Blake  <ebb9@byu.net>
26894
26895         unsetenv: work around Solaris bug
26896         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
26897         * lib/unsetenv.c (rpl_unsetenv): Work around it.
26898         Reported by Jim Meyering.
26899
26900         vasnprintf: avoid compiler warnings
26901         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
26902         variables.
26903         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
26904
26905 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26906
26907         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
26908         settings since xalloc-die is no longer the self test,
26909         xalloc-die.sh is.
26910
26911 2009-11-17  Jim Meyering  <meyering@redhat.com>
26912
26913         test-xalloc-die.sh: make the code agree with the commit log
26914         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
26915         at the end, just in case you happen to have a test-xalloc-die
26916         program in some other PATH directory.
26917
26918         test-xalloc-die.sh: fix a portability bug
26919         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
26920         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
26921         Otherwise, argv[0] (as often seen in diagnostics) would be too
26922         system-dependent, sometimes with, and sometimes without the leading "./".
26923
26924         version-etc-fsf: relax license to LGPLv3+
26925         * modules/version-etc-fsf (License): Relax license.
26926
26927 2009-11-16  Eric Blake  <ebb9@byu.net>
26928
26929         xalloc-die-tests: avoid printing null pointer
26930         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
26931         shell script.
26932         * tests/test-xalloc-die.c (program_name): Declare.
26933         * tests/test-xalloc-die.sh (tmpfiles): New file.
26934
26935         setenv, unsetenv: work around various bugs
26936         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
26937         (setenv) [HAVE_SETENV]: Work around bugs.
26938         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
26939         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
26940         for bugs.
26941         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
26942         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
26943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
26944         * modules/stdlib (Makefile.am): Update substitutions.
26945         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
26946         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
26947         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26948         * modules/setenv-tests: New test.
26949         * modules/unsetenv-tests: Likewise.
26950         * tests/test-setenv.c: New file.
26951         * tests/test-unsetenv.c: Likewise.
26952
26953 2009-11-16  Jim Meyering  <meyering@redhat.com>
26954
26955         version-etc: relax license to LGPLv3+
26956         * modules/version-etc (License): Relax license.
26957
26958         better AC_REQUIRE expanded-before-required-warning avoidance
26959         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
26960         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
26961         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
26962         which is no longer needed.
26963
26964 2009-11-16  Eric Blake  <ebb9@byu.net>
26965
26966         test-freading: clean up temporary file
26967         * tests/test-freading.c (main): Remove file on success, and use
26968         ASSERT more liberally.
26969         Reported by Jim Meyering.
26970
26971 2009-11-16  Jim Meyering  <meyering@redhat.com>
26972
26973         avoid new AC_REQUIRE expanded-before-required warnings
26974         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
26975         merely using it.
26976         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
26977         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
26978
26979 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26980
26981         * tests/test-xalloc-die.c: New file.
26982         * modules/xalloc-die-tests: New file.
26983         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
26984         XFAIL_TESTS so it can be appended by modules.
26985
26986 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26987
26988         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
26989         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
26990
26991 2009-11-14  Eric Blake  <ebb9@byu.net>
26992
26993         fnmatch: avoid compiler warning
26994         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
26995         to silence compiler warning about mismatch signedness in ?:.
26996         Reported by Robert Millan.
26997
26998         intprops: add double-inclusion guard
26999         * lib/intprops.h: Allow idempotent includes.
27000         Suggested by Bruce Korb.
27001
27002         openat: detect Solaris fchownat bug
27003         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27004         penalizing glibc chownat when only lchownat is broken.
27005         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27006         trailing slash bugs.
27007         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27008         * modules/openat-tests (Files): Include more files.
27009         (Depends-on): Add mgetgroups, sleep, stat-time.
27010         (configure.ac): Add additional checks.
27011         (Makefile.am): Build new test.
27012         * tests/test-fchownat.c: New file.
27013
27014         lchown: detect Solaris and FreeBSD bug
27015         * lib/lchown.c (rpl_lchown): Work around bug.
27016         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27018         * modules/unistd (Makefile.am): Populate it.
27019         * lib/unistd.in.h (lchown): Update declaration.
27020         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27021         * modules/lchown-tests: New file.
27022         * tests/test-lchown.h (test_lchown): Likewise.
27023         * tests/test-lchown.c (main): Likewise.
27024
27025         chown: detect Solaris and FreeBSD bug
27026         * lib/chown.c (rpl_chown): Work around bug.
27027         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27028         (gl_PREREQ_CHOWN): Delete.
27029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27030         * modules/unistd (Makefile.am): Populate it.
27031         * lib/unistd.in.h (chown): Update declaration.
27032         * lib/lchown.c (chown): Update client.
27033         * modules/lchown (Depends-on): Add lstat.
27034         * doc/posix-functions/chown.texi (chown): Document the bug.
27035         * doc/posix-functions/getgroups.texi (getgroups): Document
27036         getgroups pitfall.
27037         * modules/chown-tests: New file.
27038         * tests/test-chown.h (test_chown): Likewise.
27039         * tests/test-chown.c (main): Likewise.
27040
27041 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27042
27043         gnulib-tool: correctly detect absence of m4 directories
27044         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27045
27046 2009-11-14  Jim Meyering  <meyering@redhat.com>
27047
27048         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27049         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27050
27051 2009-11-14  John W. Eaton  <jwe@gnu.org>
27052
27053         strftime.h: wrap funtion declaration in extern "C" block
27054         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27055
27056 2009-11-13  Eric Blake  <ebb9@byu.net>
27057
27058         getgroups: avoid compiler warning
27059         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27060
27061         getgroups: work around FreeBSD bug
27062         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27063         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27064         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27065         * tests/test-getgroups.c (main): Fix buffer overrun.
27066
27067         getgroups: avoid compilation failure
27068         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27069         * modules/getgroups (Depends-on): Add stdint.
27070
27071 2009-11-13  Jim Meyering  <meyering@redhat.com>
27072
27073         test-getgroups: avoid compilation failure
27074         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27075
27076 2009-11-13  Eric Blake  <ebb9@byu.net>
27077
27078         mgetgroups: new module, taken from coreutils
27079         * modules/mgetgroups: New file.
27080         * lib/mgetgroups.h: Likewise.
27081         * lib/mgetgroups.c (mgetgroups): Likewise.
27082         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27083         * MODULES.html.sh (Users and groups): Mention it.
27084
27085         getgroups: don't expose GETGROUPS_T to user
27086         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27087         an element at a time if GETGROUPS_T is wrong size.
27088         * lib/getugroups.h (getugroups): Change signature.
27089         * lib/unistd.in.h (getgroups): Likewise.
27090         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27091         signature needs fixing.
27092         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27093         AC_TYPE_GETGROUPS.
27094         * modules/group-member (Depends-on): Add getgroups.
27095         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27096         (group_member): Rely on getgroups replacement.
27097         * lib/getugroups.c (getugroups): Use gid_t.
27098         * tests/test-getgroups.c (main): Likewise.
27099         * NEWS: Mention the signature change.
27100         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27101         problem with signature.
27102         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27103         GETGROUPS_T is still useful for setgroups.
27104
27105         getgroups, getugroups: provide stubs for mingw
27106         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27107         * lib/getugroups.c (getugroups): Likewise.
27108         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27109         function.  Modernize replacement scheme.
27110         (gl_PREREQ_GETGROUPS): Delete.
27111         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27112         * modules/getgroups (configure.ac): Declare witness.
27113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27114         * modules/unistd (Depends-on): Substitute witness.
27115         * lib/unistd.in.h (getgroups): Declare replacement.
27116
27117         getgroups: avoid calling exit
27118         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27119         drop xalloc.
27120         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27121         dependencies.
27122         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27123         exiting, in the rare case of malloc failure.
27124
27125         getgroups: fix logic error
27126         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27127         has more than 20 groups.
27128         * modules/getgroups-tests: New test.
27129         * tests/test-getgroups.c: New file.
27130
27131 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27132
27133         * tests/test-base64.c: Improve.
27134
27135 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27136
27137         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27138         Blake <ebb9@byu.net>.
27139
27140 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27141
27142         * tests/test-xvasprintf.c: Add %s%s related checks.
27143
27144 2009-11-12  Eric Blake  <ebb9@byu.net>
27145
27146         version-etc: match standards.texi style
27147         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27148         and use <> only for URLs.
27149
27150 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27151
27152         fts: do not fail on a submount during traversal
27153         * lib/fts.c (fts_build): Read the stat info again after opening
27154         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27155         Original report at http://bugzilla.redhat.com/501848.
27156
27157 2009-11-12  Jim Meyering  <meyering@redhat.com>
27158
27159         bootstrap: sync from coreutils
27160         * build-aux/bootstrap (bootstrap_epilogue): New function.
27161         Use git_modules_config in one more place.  This make bootstrap's
27162         --gnulib-srcdir option more useful for testing.
27163
27164         bootstrap: generalize autoheader check
27165         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27166         AC_CONFIG_HEADERS.
27167
27168 2009-11-11  Eric Blake  <ebb9@byu.net>
27169
27170         mkfifoat: use new modules for Solaris and BSD bugs
27171         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27172         * lib/mkfifoat.c (mknodat): Split...
27173         * lib/mknodat.c (mknodat): ...into new file.
27174         * modules/mkfifoat (Files): Ship new file.
27175         (Depends-on): Add mkfifo, mknod.
27176         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27177         (Depends-on): Add symlink.
27178         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27179         redundant with test_mkfifo.h.
27180         (do_mkfifoat, do_mknodat): New helpers.
27181
27182         mknod: new module
27183         * modules/mknod: New file.
27184         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27185         * lib/mknod.c (mknod): Likewise.
27186         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27187         defaults.
27188         * modules/sys_stat (Makefile.am): Substitute them.
27189         * lib/sys_stat.in.h (mknod): Declare replacement.
27190         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27191         Document it.
27192         * doc/posix-functions/mknod.texi (mknod): Likewise.
27193         * modules/mknod-tests: New test.
27194         * tests/test-mknod.c: Likewise.
27195
27196         mkfifo: new module
27197         * modules/mkfifo: New file.
27198         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27199         * lib/mkfifo.c (mkfifo): Likewise.
27200         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27201         defaults.
27202         * modules/sys_stat (Makefile.am): Substitute them.
27203         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27204         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27205         Document it.
27206         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27207         * modules/mkfifo-tests: New test.
27208         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27209         from test-mkfifoat.c.
27210         * tests/test-mkfifo.c: New file.
27211
27212         readlink: detect FreeBSD bug
27213         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27214         slash on symlink.
27215         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27216         * tests/test-readlink.h (test_readlink): Enhance test.
27217
27218         symlink: detect FreeBSD bug
27219         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27220         slash on symlink.
27221         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27222         * tests/test-symlink.h (test_symlink): Enhance test.
27223
27224 2009-11-10  Eric Blake  <ebb9@byu.net>
27225
27226         link: detect FreeBSD bug
27227         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27228         symlink.
27229         * doc/posix-functions/link.texi (link): Document the bug.
27230         * tests/test-link.h (test_link): Enhance test.
27231         * tests/test-linkat.c (main): Update caller.
27232
27233         unlink, remove: detect FreeBSD bug
27234         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27235         slash on symlink.
27236         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27237         * doc/posix-functions/remove.texi (remove): Likewise.
27238         * tests/test-unlink.h (test_unlink): Enhance test.
27239         * tests/test-remove.c (main): Likewise.
27240
27241 2009-11-09  Eric Blake  <ebb9@byu.net>
27242
27243         rename: detect FreeBSD bug
27244         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27245         slash on symlink.
27246         * modules/renameat-tests (Depends-on): Add filenamecat.
27247         * tests/test-rename.h (test_rename): Allow one more errno.
27248         * tests/test-renameat.c (main): Likewise.
27249         * doc/posix-functions/rename.texi (rename): Document the bug.
27250
27251         open: detect FreeBSD bug
27252         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27253         symlink.
27254         * doc/posix-functions/open.texi (open): Document the bug.
27255         * doc/posix-functions/utimes.texi (utimes): Likewise.
27256         * tests/test-open.h (test_open): Add parameters, and test symlink
27257         handling.
27258         * tests/test-open.c (main): Adjust caller.
27259         * tests/test-fcntl-safer.c (main): Likewise.
27260         * modules/open-tests (Depends-on): Add stdbool, symlink.
27261         * modules/fcntl-safer-tests (Depends-on): Likewise.
27262         * tests/test-openat.c (main): Add test-open tests.
27263
27264         stat: detect FreeBSD bug
27265         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27266         symlink.
27267         * doc/posix-functions/stat.texi (stat): Document the bug.
27268         * tests/test-stat.h (test_stat_func): Add argument.
27269         * tests/test-stat.c (main): Adjust caller.
27270         * tests/test-fstatat.c (main): Likewise.
27271         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27272         Reported by Jim Meyering.
27273
27274 2009-11-09  James Youngman  <jay@gnu.org>
27275
27276         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27277         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27278
27279 2009-11-08  Jim Meyering  <meyering@redhat.com>
27280
27281         utimens: remove invalid futimesat call
27282         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27283         It used the file descriptor of the target file as the DIR_FD
27284         parameter and NULL as the file name.  That caused failure with
27285         errno == EFAULT on FreeBSD-8.0-rc2
27286
27287 2009-11-07  Eric Blake  <ebb9@byu.net>
27288
27289         fflush, freadseek: use fseeko, not fseek
27290         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27291         (clear_ungetc_buffer): Avoid potential problems on large files.
27292         * lib/freadseek.c (freadseek): Likewise.
27293         * modules/freadseek (Depends-on): Add fseeko.
27294         * modules/fseek (configure.ac): Set a witness.
27295         * tests/test-fflush.c (main): Use fseeko.
27296         * tests/test-fpurge.c (fseek): Disable link warning.
27297         * tests/test-freadable.c (fseek): Likewise.
27298         * tests/test-freading.c (fseek): Likewise.
27299         * tests/test-fseeko.c (fseek): Likewise.
27300         * tests/test-ftell.c (fseek): Likewise.
27301         * tests/test-ftello.c (fseek): Likewise.
27302         * tests/test-fwritable.c (fseek): Likewise.
27303         * tests/test-fwriting.c (fseek): Likewise.
27304
27305 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27306
27307         * modules/memchr (Depends-on): Drop getpagesize dependency.
27308
27309 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27310
27311         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27312         Reported by Ludovic Courtès.
27313         * build-aux/pmccabe2html: Improve example usage.
27314         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27315
27316 2009-11-06  Jim Meyering  <meyering@redhat.com>
27317
27318         do-release-commit-and-tag: New module.
27319         Automate the release-commit and tag process.
27320         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27321         * modules/do-release-commit-and-tag: New file.
27322         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27323
27324 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27325
27326         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27327         because test-select.c uses inet_pton.
27328
27329 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27330
27331         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27332         GETADDRINFO_LIB.  Bump serial number.
27333         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27334         Suggested by Eric Blake <ebb9@byu.net>.
27335
27336 2009-11-05  Eric Blake  <ebb9@byu.net>
27337
27338         strtod: detect darwin bug
27339         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27340         Reported by Leo Davis.
27341
27342         freopen-safer: new module
27343         * modules/freopen-safer: New module.
27344         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27345         * lib/freopen-safer.c (freopen_safer): New file.
27346         * lib/stdio-safer.h (freopen_safer): New declaration.
27347         * lib/stdio--.h (freopen): New override.
27348         * MODULES.html.sh (File stream based Input/Output): Mention it.
27349         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27350         freopen-safer module.
27351         * doc/posix-functions/stderr.texi (stderr): Likewise.
27352         * doc/posix-functions/stdin.texi (stdin): Likewise.
27353         * doc/posix-functions/stdout.texi (stdout): Likewise.
27354         * modules/freopen-safer-tests: New test.
27355         * tests/test-reopen-safer.c: New file.
27356
27357 2009-11-05  Jim Meyering  <meyering@redhat.com>
27358
27359         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27360         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27361
27362 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27363
27364         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27365
27366 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27367
27368         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27369
27370 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27371
27372         Fix link error.
27373         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27374         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27375
27376 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27377
27378         * tests/test-func.c: Also test value of __func__.
27379
27380 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27381
27382         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27383         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27384
27385 2009-11-05  Bruno Haible  <bruno@clisp.org>
27386
27387         Fix link error.
27388         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27389         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27390         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27391
27392 2009-11-05  Bruno Haible  <bruno@clisp.org>
27393
27394         Tests for module 'inet_pton'.
27395         * modules/inet_pton-tests: New file.
27396         * tests/test-inet_pton.c: New file.
27397
27398 2009-11-05  Bruno Haible  <bruno@clisp.org>
27399
27400         Tests for module 'inet_ntop'.
27401         * modules/inet_ntop-tests: New file.
27402         * tests/test-inet_ntop.c: New file.
27403
27404 2009-11-04  Eric Blake  <ebb9@byu.net>
27405
27406         stdlib-safer: wrap all mkstemp variants
27407         * modules/mkostemp (configure.ac): Set witness.
27408         * modules/mkostemps (configure.ac): Likewise.
27409         * modules/mkstemps (configure.ac): Likewise.
27410         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27411         (mkstemps_safer): Wrap more functions.
27412         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27413         wrapping.
27414         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27415         (mkstemps_safer): Implement the wrappers.
27416
27417         mkstemps, mkostemps: new modules
27418         * modules/mkostemps: New module.
27419         * modules/mkstemps: Likewise.
27420         * lib/mkostemps.c (mkostemps): New file.
27421         * lib/mkstemps.c (mkstemps): Likewise.
27422         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27423         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27425         * modules/stdlib (Makefile.am): Substitute them.
27426         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27427         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27428         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27429         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27430         * MODULES.html.sh (File system functions): Mention them.
27431
27432         tempname: resync from glibc
27433         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27434         same values for __GT_FILE as glibc.  Abort even when assertions
27435         are disabled.
27436         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27437         match its value otherwise.  Allow idempotent inclusion.
27438         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27439         * lib/mkostemp.c (mkostemp): Likewise.
27440         * lib/mkstemp.c (mkstemp): Likewise.
27441         * lib/tmpfile.c (tmpfile): Likewise.
27442         * NEWS: Document this.
27443
27444         utimens: fix use of futimens on older Linux
27445         * lib/utimens.c (fdutimens): Use updated, rather than original,
27446         timespec to avoid bug in older Linux kernel.
27447         Reported by Simon Josefsson.
27448
27449 2009-11-04  Bruno Haible  <bruno@clisp.org>
27450
27451         Make num_processors more flexible and consistent.
27452         * lib/nproc.h (enum nproc_query): New type.
27453         (num_processors): Add a 'query' argument.
27454         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
27455         (num_processors): Add a 'query' argument. Test the value of the
27456         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
27457         mingw, count the number of CPUs available for the current process.
27458         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
27459         Check for sched_getaffinity and sched_getaffinity_np.
27460         * modules/nproc (Depends-on): Add c-ctype, extensions.
27461         * NEWS: Mention the change.
27462
27463 2009-11-03  Bruno Haible  <bruno@clisp.org>
27464
27465         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
27466
27467 2009-11-03  Jim Meyering  <meyering@redhat.com>
27468
27469         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
27470         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27471         if it is defined.
27472
27473 2009-11-02  Eric Blake  <ebb9@byu.net>
27474
27475         mktime, timegm: share common declaration
27476         * lib/mktime-internal.h: New file.
27477         * lib/mktime.c: Use it rather than open-coding a declaration.
27478         * lib/timegm.c: Likewise.
27479         * modules/mktime (Files): Ship it.
27480         * modules/timegm (Files): Likewise.
27481         Suggested by Bruno Haible.
27482
27483         test-update-copyright: update test to match script changes
27484         * tests/test-update-copyright.sh: Avoid hard-coding perl
27485         location.  Don't update *.bak created by earlier runs.
27486
27487 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27488             Simon Josefsson  <simon@josefsson.org>
27489             Bruno Haible  <bruno@clisp.org>
27490
27491         Fix link error on Solaris 8.
27492         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27493         also in libnsl. Define also INET_PTON_LIB.
27494         * modules/inet_pton (Link): New section.
27495
27496 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27497             Bruno Haible  <bruno@clisp.org>
27498
27499         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27500         * modules/inet_ntop (Link): New section.
27501         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27502
27503 2009-11-02  Eric Blake  <ebb9@byu.net>
27504
27505         maint: avoid compiler warnings in m4 macros
27506         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27507         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27508
27509 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27510
27511         * m4/pmccabe2html.m4: Remove file.
27512         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27513         function.  Change maintainer.
27514         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27515         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27516         Courtès).
27517
27518 2009-10-31  Eric Blake  <ebb9@byu.net>
27519
27520         fseeko: fix m4 regression
27521         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27522         regression from 2009-10-27.
27523         Reported by Ralf Wildenhues.
27524
27525 2009-10-31  Jim Meyering  <meyering@redhat.com>
27526
27527         inttostr: aesthetics and improved (compile-time) safety
27528         Define inttype_is_signed rather than inttype_is_unsigned,
27529         since the sole use is via "#if inttype_is_signed".
27530         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27531         inttype_is_unsigned.
27532         * lib/offtostr.c (inttype_is_signed): Likewise.
27533         * lib/uinttostr.c (inttype_is_signed): Likewise.
27534         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27535         * lib/inttostr.c (inttostr): Use verify to cross-check the
27536         inttype_is_signed value and the signedness of the actual type.
27537         * modules/inttostr (Depends-on): Add verify.
27538
27539 2009-10-30  Eric Blake  <ebb9@byu.net>
27540
27541         build: avoid compiler warnings
27542         * lib/fchmodat.c (lchmod): Mark unused variables.
27543         * lib/getopt.c (_getopt_initialize): Likewise.
27544         * lib/mktime.c (__mktime_internal): Provide prototype.
27545         * lib/inttostr.c (inttostr): Avoid compiler warning even with
27546         older gcc that do not understand #pragma GCC diagnostic.
27547         * lib/uinttostr.c (inttype_is_unsigned): Define.
27548         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
27549
27550 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27551
27552         stat: fix compilation on AIX
27553         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
27554         only see struct stat64.
27555
27556 2009-10-30  Eric Blake  <ebb9@byu.net>
27557
27558         exclude: make more robust
27559         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
27560         rather than masking a coding bug.
27561         Suggested by Bruno Haible.
27562
27563 2009-10-30  Jim Meyering  <meyering@redhat.com>
27564
27565         perl scripts: remove #!/usr/bin/perl in favor of more portable...
27566         Rather than putting #!/usr/bin/perl on the first line,
27567         start with a variant of what's recommended by "man perlrun" that
27568         invokes the first "perl" program from your shell's search path.
27569         * build-aux/gitlog-to-changelog: Replace #!... as above.
27570         Add a "Local Variables" perl mode setting.
27571         Prompted by a patch from Ludovic Courtès.
27572         Improved by Eric Blake.
27573         * build-aux/useless-if-before-free: Likewise.
27574         * build-aux/announce-gen: Likewise.
27575         * build-aux/update-copyright: Likewise.
27576
27577 2009-10-29  Eric Blake  <ebb9@byu.net>
27578
27579         filenamecat-lgpl: adjust clients
27580         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
27581         filenamecat.
27582         * modules/renameat (Depends-on): Likewise.
27583
27584         filenamecat: split into filenamecat-lgpl
27585         * modules/filenamecat-lgpl: New module.
27586         * modules/filenamecat (Files): Move library-safe files into
27587         filenamecat-lgpl.
27588         (Depends-on): Add filenamecat-lgpl.
27589         (configure.ac): Declare witness.
27590         * lib/filenamecat.h (file_name_concat): Only declare when using
27591         GPL module.
27592         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
27593         Move...
27594         * lib/filenamecat-lgpl.c: ...into new file.
27595         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
27596         (gl_FILE_NAME_CONCAT): Use it.
27597         * MODULES.html.sh (File system functions): Mention new module.
27598
27599         argp: avoid memory leak
27600         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
27601         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
27602         base_name, since the latter malloc()s and can call exit().
27603         Leak introduced 2006-07-03.
27604
27605         dirname-lgpl: adjust clients that don't need full dirname
27606         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
27607         * modules/filenamecat (Depends-on): Likewise.
27608         * modules/linkat (Depends-on): Likewise.
27609         * modules/mkancesdirs (Depends-on): Likewise.
27610         * modules/mkdir (Depends-on): Likewise.
27611         * modules/openat (Depends-on): Likewise.
27612         * modules/savewd (Depends-on): Likewise.
27613         * modules/rename (Depends-on): Likewise.
27614         (License): Relax license.
27615         * modules/mkdir-tests (Depends-on): Drop progname.
27616         (Makefile.am): Delete unneeded LDADD.
27617         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
27618
27619         dirname: split into dirname-lgpl
27620         * modules/dirname-lgpl: New module.
27621         * modules/dirname (Files): Move library-safe files into
27622         dirname-lgpl.
27623         (Depends-on): Add dirname-lgpl.
27624         (configure.ac): Declare witness.
27625         * modules/double-slash-root (License): Relax license.
27626         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
27627         module.
27628         * lib/dirname.c (dir_len, mdir_name): Move...
27629         * lib/dirname-lgpl.c: ...into new file.
27630         * lib/basename.c (last_component, base_len): Move...
27631         * lib/basename-lgpl.c: ...into new file.
27632         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
27633         (gl_DIRNAME): Use it.
27634         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
27635         Mention new module.
27636         * modules/dirname-tests (Depends-on): Add progname.
27637         * tests/test-dirname.c (program_name): Delete.
27638
27639         mkdir: make safe for libraries
27640         * modules/mkdir (Depends-on): Drop xalloc.
27641         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
27642         exit.
27643
27644         tests: avoid some compiler warnings
27645         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
27646         literals.
27647         * tests/test-memchr.c (main): Avoid type mismatch.
27648         * tests/test-arpa_inet.c (main): Avoid unused parameters.
27649         * tests/test-base64.c (main): Likewise.
27650         * tests/test-getdelim.c (main): Likewise.
27651         * tests/test-gethostname.c (main): Likewise.
27652         * tests/test-getline.c (main): Likewise.
27653         * tests/test-netinet_in.c (main): Likewise.
27654         * tests/test-select.c (open_server_socket, main): Likewise.
27655         * tests/test-select-stdin.c (main): Likewise.
27656         * tests/test-sockets.c (main): Likewise.
27657         * tests/test-strsignal.c (main): Likewise.
27658         * tests/test-sys_select.c (main): Likewise.
27659         * tests/test-sys_socket.c (main): Likewise.
27660         * tests/test-u64.c (main): Likewise.
27661         * tests/test-xfprintf-posix.c (main): Likewise.
27662         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
27663
27664         sockets: avoid compiler warning
27665         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
27666
27667         maint: detect usage(1) and other suspicious exits
27668         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
27669
27670 2009-10-29  Jim Meyering  <meyering@redhat.com>
27671
27672         timespec: long-to-int truncation could make timespec_cmp malfunction
27673         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
27674         a multiple of 2^32 nanoseconds as no difference.
27675
27676 2009-10-28  Jim Meyering  <meyering@redhat.com>
27677
27678         fprintftime: wrap macro code argument in "do {...} while(0)"
27679         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
27680         cpy macro must be a statement that can be followed by a semicolon.
27681         Now that the else clause contains a comment and is hence longer
27682         than one line, I require curly braces.  That in turn requires
27683         that we wrap this code block in the standard do...while(0).
27684
27685         fprintftime: remove stray semicolon from previous change
27686         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
27687
27688         fprintftime: avoid a warning about ignored fwrite return value
27689         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
27690         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
27691         that is unsafe.
27692         * modules/fprintftime (Depends-on): Add ignore-value.
27693
27694         exclude: avoid an unwarranted warning
27695         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
27696
27697 2009-10-27  Eric Blake  <ebb9@byu.net>
27698
27699         fseek: avoid compilation failure when fflush is replaced
27700         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
27701         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
27702         module is in use.
27703         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
27704         module is not in use; since REPLACE_FSEEK worked otherwise.
27705         (GNULIB_FTELLO): Likewise for ftell.
27706         Reported by Ian Beckwith and others.
27707
27708 2009-10-27  Bruno Haible  <bruno@clisp.org>
27709
27710         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
27711         Reported by Jim Meyering.
27712
27713 2009-10-27  Jim Meyering  <jim@meyering.net>
27714             Bruno Haible  <bruno@clisp.org>
27715
27716         Avoid warning despite dropping the return value of fwrite.
27717         * lib/unicodeio.c: Include ignore-value.h.
27718         (fwrite_success_callback): Explicitly ignore fwrite's return value.
27719         * modules/unicodeio (Depends-on): Add ignore-value.
27720
27721 2009-10-26  Eric Blake  <ebb9@byu.net>
27722
27723         areadlinkat: fix fallback path
27724         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
27725         pointer and zero.
27726
27727 2009-10-22  Pádraig Brady  <P@draigBrady.com>
27728
27729         Use a better IO block size for modern systems
27730         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
27731         * lib/md2.c: Likewise.
27732         * lib/md4.c: Likewise.
27733         * lib/md5.c: Likewise.
27734         * lib/sha1.c: Likewise.
27735         * lib/sha256.c: Likewise.
27736         * lib/sha512.c: Likewise.
27737
27738 2009-10-22  Eric Blake  <ebb9@byu.net>
27739
27740         tests: avoid several compiler warnings
27741         * tests/test-getcwd.c (main): Avoid buffer underflow.
27742         * tests/test-getdate.c (main): String literals are not safe with
27743         putenv, so use setenv.  Declare unused argument.
27744         * modules/getdate-tests (Depends-on): Add setenv.
27745         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
27746         problems with string literals in char *.
27747         * tests/test-hash.c (main): Avoid shadowing declaration.
27748         (insert_new): Treat string literals as char const *.
27749         * tests/test-getopt.h (test_getopt): Likewise.
27750         (getopt_loop): Alter types to minimize casting elsewhere.
27751         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
27752         (test_getopt_long_posix): Likewise.
27753         (do_getopt_long): Add wrapper to minimize casting.
27754         * tests/test-atexit.c (clear_temp_file): Use void.
27755         * tests/test-areadlink-with-size.c (main): Declare unused
27756         arguments.
27757         * tests/test-areadlink.c (main): Likewise.
27758         * tests/test-areadlinkat-with-size.c (main): Likewise.
27759         * tests/test-areadlinkat.c (main): Likewise.
27760         * tests/test-canonicalize-lgpl.c (main): Likewise.
27761         * tests/test-canonicalize.c (main): Likewise.
27762         * tests/test-dirent-safer.c (main): Likewise.
27763         * tests/test-dirname.c (main): Likewise.
27764         * tests/test-dup2.c (main): Likewise.
27765         * tests/test-fchdir.c (main): Likewise.
27766         * tests/test-fcntl-h.c (main): Likewise.
27767         * tests/test-fcntl-safer.c (main): Likewise.
27768         * tests/test-fdopendir.c (main): Likewise.
27769         * tests/test-fdutimensat.c (main): Likewise.
27770         * tests/test-fflush.c (main): Likewise.
27771         * tests/test-filenamecat.c (main): Likewise.
27772         * tests/test-filevercmp.c (main): Likewise.
27773         * tests/test-fopen-safer.c (main): Likewise.
27774         * tests/test-fopen.c (main): Likewise.
27775         * tests/test-fpending.c (main): Likewise.
27776         * tests/test-fpurge.c (main): Likewise.
27777         * tests/test-freading.c (main): Likewise.
27778         * tests/test-fstatat.c (main): Likewise.
27779         * tests/test-fsync.c (main): Likewise.
27780         * tests/test-futimens.c (main): Likewise.
27781         * tests/test-getndelim2.c (main): Likewise.
27782         * tests/test-gettimeofday.c (main): Likewise.
27783         * tests/test-getopt.c (main): Likewise.
27784         * tests/test-i-ring.c (main): Likewise.
27785         * tests/test-inttypes.c (main): Likewise.
27786         * tests/test-link.c (main): Likewise.
27787         * tests/test-lstat.c (main): Likewise.
27788         * tests/test-math.c (main): Likewise.
27789         * tests/test-md5.c (main): Likewise.
27790         * tests/test-memchr2.c (main): Likewise.
27791         * tests/test-memrchr.c (main): Likewise.
27792         * tests/test-mkdir.c (main): Likewise.
27793         * tests/test-mkdirat.c (main): Likewise.
27794         * tests/test-mkfifoat.c (main): Likewise.
27795         * tests/test-open.c (main): Likewise.
27796         * tests/test-openat-safer.c (main): Likewise.
27797         * tests/test-openat.c (main): Likewise.
27798         * tests/test-quotearg.c (main): Likewise.
27799         * tests/test-rawmemchr.c (main): Likewise.
27800         * tests/test-readlink.c (main): Likewise.
27801         * tests/test-remove.c (main): Likewise.
27802         * tests/test-rename.c (main): Likewise.
27803         * tests/test-renameat.c (main): Likewise.
27804         * tests/test-rmdir.c (main): Likewise.
27805         * tests/test-sha1.c (main): Likewise.
27806         * tests/test-signal.c (main): Likewise.
27807         * tests/test-sigaction.c (main): Likewise.
27808         * tests/test-stat.c (main): Likewise.
27809         * tests/test-stat-time.c (main): Likewise.
27810         * tests/test-stddef.c (main): Likewise.
27811         * tests/test-stdint.c (main): Likewise.
27812         * tests/test-stdio.c (main): Likewise.
27813         * tests/test-stdlib.c (main): Likewise.
27814         * tests/test-strchrnul.c (main): Likewise.
27815         * tests/test-strerror.c (main): Likewise.
27816         * tests/test-string.c (main): Likewise.
27817         * tests/test-strtod.c (main): Likewise.
27818         * tests/test-strverscmp.c (main): Likewise.
27819         * tests/test-symlink.c (main): Likewise.
27820         * tests/test-symlinkat.c (main): Likewise.
27821         * tests/test-sys_stat.c (main): Likewise.
27822         * tests/test-sys_time.c (main): Likewise.
27823         * tests/test-time.c (main): Likewise.
27824         * tests/test-unistd.c (main): Likewise.
27825         * tests/test-unlink.c (main): Likewise.
27826         * tests/test-unlinkat.c (main): Likewise.
27827         * tests/test-utimens.c (main): Likewise.
27828         * tests/test-utimensat.c (main): Likewise.
27829         * tests/test-version-etc.c (main): Likewise.
27830         * tests/test-wchar.c (main): Likewise.
27831         * tests/test-wctype.c (main): Likewise.
27832         * tests/test-xprintf-posix.c (main): Likewise.
27833         * tests/test-posixtm.c (main): Likewise.
27834         (STREQ): Delete unused macro.
27835         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
27836         shadowed variables.
27837         * tests/test-memchr.c (main): Likewise.
27838
27839 2009-10-21  Eric Blake  <ebb9@byu.net>
27840
27841         areadlinkat: avoid failure on older glibc
27842         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
27843         rather than mis-comparing 0 against FUNC_RESULT of char*.
27844
27845 2009-10-21  Bruno Haible  <bruno@clisp.org>
27846
27847         * modules/stpncpy (License): Relicense under LGPLv2+.
27848         Reported by David Lutterkort <lutter@redhat.com>.
27849
27850 2009-10-20  Eric Blake  <ebb9@byu.net>
27851
27852         utimensat: work around Solaris 9 bug
27853         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
27854         has trailing slash bugs.
27855         * tests/test-lutimens.h (test_lutimens): Enhance test.
27856         * tests/test-utimens.h (test_utimens): Likewise.
27857         * doc/posix-functions/utime.texi (utime): Enhance documentation.
27858         * doc/posix-functions/utimes.texi (utimes): Likewise.
27859         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27860         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
27861         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
27862         * doc/posix-functions/futimens.texi (futimens): Likewise.
27863
27864         fdutimensat: new module
27865         * modules/fdutimensat: New file.
27866         * lib/fdutimensat.c (fdutimensat): Likewise.
27867         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
27868         * MODULES.html.sh (File system functions): Mention module.
27869         * modules/fdutimensat-tests: New test.
27870         * tests/test-fdutimensat.c: Likewise.
27871
27872         doc: regenerate INSTALL
27873         * doc/INSTALL: Reflect recent autoconf update.
27874         * doc/INSTALL.ISO: Likewise.
27875         * doc/INSTALL.UTF-8: Likewise.
27876
27877 2009-10-20  Pádraig Brady  <P@draigBrady.com>
27878
27879         acl: warn if ACL support is not detected
27880         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
27881
27882 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
27883
27884         * lib/nproc.h: Add extern "C" block for C++.
27885
27886 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
27887             Bruno Haible  <bruno@clisp.org>
27888
27889         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
27890         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
27891         * doc/posix-functions/isalpha.texi: Likewise.
27892         * doc/posix-functions/isblank.texi: Likewise.
27893         * doc/posix-functions/iscntrl.texi: Likewise.
27894         * doc/posix-functions/isdigit.texi: Likewise.
27895         * doc/posix-functions/isgraph.texi: Likewise.
27896         * doc/posix-functions/islower.texi: Likewise.
27897         * doc/posix-functions/isprint.texi: Likewise.
27898         * doc/posix-functions/ispunct.texi: Likewise.
27899         * doc/posix-functions/isspace.texi: Likewise.
27900         * doc/posix-functions/isupper.texi: Likewise.
27901         * doc/posix-functions/isxdigit.texi: Likewise.
27902
27903 2009-10-18  Bruno Haible  <bruno@clisp.org>
27904
27905         Tests for module 'isblank'.
27906         * modules/isblank-tests: New file.
27907         * tests/test-isblank.c: New file.
27908
27909         New module 'isblank'.
27910         * lib/isblank.c: New file.
27911         * m4/isblank.m4: New file.
27912         * modules/isblank: New file.
27913         * doc/posix-functions/isblank.texi: Mention the new module.
27914
27915 2009-10-18  Bruno Haible  <bruno@clisp.org>
27916
27917         New module 'ctype'.
27918         * lib/ctype.in.h: New file.
27919         * m4/ctype.m4: New file.
27920         * modules/ctype: New file.
27921         * doc/posix-headers/ctype.texi: Mention the new module.
27922
27923 2009-10-18  Jim Meyering  <meyering@redhat.com>
27924
27925         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
27926         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
27927         right after its initialization, rather than farther down.
27928         Keeping these in close proximity makes it easier to ensure
27929         that each such variable is initialized.  E.g.,
27930
27931             LIB_CLOCK_GETTIME=
27932             AC_SUBST([LIB_CLOCK_GETTIME])
27933
27934         This change also increments these serial numbers.
27935         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
27936         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27937         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27938
27939 2009-10-18  Bruno Haible  <bruno@clisp.org>
27940
27941         Don't let environment variables perturb build.
27942         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
27943         (gl_PREREQ_GETHRXTIME): ... not here.
27944
27945 2009-10-18  Bruno Haible  <bruno@clisp.org>
27946
27947         Avoid symlink attack in localcharset module.
27948         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
27949         (O_NOFOLLOW): Define fallback.
27950         (get_charset_aliases): Don't open the file if it is a symbolic link.
27951         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
27952         gl_FCNTL_H.
27953         (gl_FCNTL_H): Require it.
27954         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
27955         * modules/localcharset (Files): Add m4/fcntl_h.m4.
27956         Reported by Fergal Glynn <fglynn@veracode.com>.
27957
27958 2009-10-18  Bruno Haible  <bruno@clisp.org>
27959
27960         Implement nproc for mingw.
27961         * lib/nproc.c: Include <windows.h>
27962         (num_processors): On native Windows platforms, try GetSystemInfo.
27963
27964 2009-10-18  Bruno Haible  <bruno@clisp.org>
27965
27966         Implement nproc for IRIX.
27967         * lib/nproc.c: Include <sys/sysmp.h>.
27968         (num_processors): On IRIX systems, try sysmp.
27969         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
27970
27971 2009-10-18  Bruno Haible  <bruno@clisp.org>
27972
27973         Implement nproc for HP-UX.
27974         * lib/nproc.c: Include <sys/pstat.h>
27975         (num_processors): On HP-UX systems, try pstat_getdynamic.
27976         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
27977         pstat_getdynamic.
27978
27979 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
27980             Bruno Haible  <bruno@clisp.org>
27981
27982         Implement nproc for NetBSD, OpenBSD.
27983         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
27984         (ARRAY_SIZE): New macro.
27985         (num_processors): On BSD systems, try sysctl of HW_NCPU.
27986         * m4/nproc.m4: New file.
27987         * modules/nproc (Files): Add m4/nproc.m4.
27988         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
27989         (Makefile.am): Instead, augment lib_SOURCES.
27990
27991 2009-10-18  Bruno Haible  <bruno@clisp.org>
27992
27993         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
27994         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
27995         sys/param.h.
27996
27997 2009-10-16  Eric Blake  <ebb9@byu.net>
27998
27999         utimensat: new module
28000         * modules/utimensat: New file.
28001         * lib/utimensat.c (utimensat): Likewise.
28002         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28003         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28004         so we can work around Linux bugs.
28005         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28006         * modules/sys_stat (Makefile.am): Substitute them.
28007         * lib/sys_stat.in.h (utimensat): Declare it.
28008         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28009         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28010         * modules/utimensat-tests: New test.
28011         * tests/test-utimensat.c: Likewise.
28012
28013         utimens: let lutimens work on non-symlinks
28014         * lib/utimens.c (lutimens): Fall back to utimens rather than
28015         failing with ENOSYS, when file is not a symlink.
28016         (utimens): Reduce redirection.
28017         * tests/test-lutimens.h (test_lutimens): Update test to cover
28018         non-symlinks.
28019         * tests/test-utimens.h (test_utimens): Update test to cover
28020         symlinks.
28021         * tests/test-utimens.c (main): Update caller.
28022
28023         utimens: cache whether utimensat syscall works
28024         * lib/utimens.c (utimensat_works_really): New cache variable.
28025         (fdutimens, lutimens): Use it to avoid failing syscall.
28026
28027         test-stat-time, test-utimens: improve portability
28028         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28029         ext4 on alpha, and for cygwin.
28030         * tests/test-utimens-common.h: New file.
28031         (nap): Factor delays into single function.
28032         * tests/test-lutimens.h (test_lutimens): Use new header.
28033         * tests/test-futimens.h (test_futimens): Likewise.
28034         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28035         timestamps to occur from same machine, as was done previously for
28036         test_utimens.
28037         * modules/utimens-tests (Files): Ship new file.
28038         * modules/futimens-tests (Files): Likewise.
28039         Reported in part by Jim Meyering.
28040
28041         sys_stat: sort replacement declarations
28042         * lib/sys_stat.in.h: Sort declarations.
28043         * lib/futimens.c (futimens): Fix typo.
28044
28045 2009-10-15  Jim Meyering  <meyering@redhat.com>
28046
28047         don't let environment settings perturb build
28048         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28049         could cause a configure-time and/or build-time malfunction.
28050         Typically, a configure-time function-in-library test is performed
28051         via code like this:
28052
28053           LIB_VAR=
28054           AC_SUBST([LIB_VAR])
28055           prefix_saved_LIBS=$LIBS
28056             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28057                        [test "$ac_cv_search_FUNC" = "none required" ||
28058                         LIB_VAR=$ac_cv_search_FUNC])
28059           LIBS=$prefix_saved_LIBS
28060
28061         However, in each of the files affected by this change, the LIB_VAR=
28062         initialization was omitted.  Thus, when set in the environment, its
28063         value would propagate into generated Makefiles when FUNC is not found
28064         in LIB_NAME.
28065         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28066         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28067         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28068
28069 2009-10-14  Eric Blake  <ebb9@byu.net>
28070
28071         fchdir: avoid infinite recursion in mingw
28072         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28073         recursing.
28074
28075         test-stat-time: port to mingw
28076         * tests/test-stat-time.c (force_unlink): Return a value.
28077         (test_ctime) [W32]: Fix compilation error.
28078         (nap): Don't call usleep with too large an argument.  Use
28079         force_unlink.
28080         * doc/pastposix-functions/usleep.texi (usleep): Document the
28081         portability issue.
28082
28083 2009-10-13  Jim Meyering  <meyering@redhat.com>
28084
28085         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28086         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28087         * modules/pipe-filter-ii: Likewise.
28088         * modules/sys_socket-tests: Likewise.
28089         * modules/tsearch-tests: Likewise.
28090         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28091         (check): Depend on it.
28092
28093 2009-10-12  Eric Blake  <ebb9@byu.net>
28094
28095         utimens-tests: port to NFS file systems
28096         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28097         comparisons to avoid spurious failures from timestamp drift
28098         between NFS machines.
28099
28100 2009-10-12  Eric Blake  <ebb9@byu.net>
28101
28102         stat-time-tests: minor cleanups
28103         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28104         * tests/test-stat-time.c (nap): Separate assignment from call.
28105         Suggested by Paolo Bonzini and Bruno Haible.
28106
28107         sys_stat: guarantee struct timespec
28108         * lib/sys_stat.in.h (includes): Always include <time.h>
28109         * modules/sys_stat (Depends-on): Add time.
28110         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28111         mode_t permission values.
28112         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28113         get at subsecond timestamps.
28114
28115 2009-10-10  Eric Blake  <ebb9@byu.net>
28116
28117         futimens: new module
28118         * modules/futimens: New file.
28119         * lib/futimens.c (futimens): Likewise.
28120         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28121         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28122         we can work around Linux bugs.
28123         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28124         * modules/sys_stat (Makefile.am): Substitute them.
28125         * lib/sys_stat.in.h (futimens): Declare it.
28126         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28127         * doc/posix-functions/futimens.texi (futimens): Likewise.
28128         * modules/futimens-tests: New test.
28129         * tests/test-futimens.c: Likewise.
28130
28131         utimens: introduce fdutimens
28132         * lib/utimens.h (fdutimens): New prototype.
28133         * lib/utimens.c (gl_futimens): Move guts...
28134         (fdutimens): ...to new interface.
28135         * tests/test-utimens.c (do_fdutimens): Use it.
28136
28137         utimens: add UTIME_NOW and UTIME_OMIT support
28138         * lib/utimens.c (validate_timespec, update_timespec): New helper
28139         functions.
28140         (gl_futimens, lutimens): Use them.
28141         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28142         stdbool, sys_stat.
28143         (Link): Mention resulting library dependency.
28144         * modules/utimecmp (Link): Likewise.
28145         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28146         (Makefile.am): Pick up library dependency.
28147         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28148         definition.
28149         * tests/test-sys_stat.c: Test the definitions.
28150         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28151         * NEWS: Document library dependency.
28152
28153         utimecmp: support symlink timestamps
28154         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28155         hashing when possible.  Use pathconf when available.
28156         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28157         * modules/utimecmp (Depends-on): Add lstat.
28158
28159         utimens: add lutimens interface
28160         * lib/utimens.c (lutimens): New function.
28161         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28162         * lib/utimens.h (lutimens): Declare new interface.
28163         * tests/test-utimens.c (main): Enhance test.
28164         * tests/test-lutimens.h (test_lutimens): New file.
28165         * modules/utimens-tests (Files): Distribute it.
28166         (Depends-on): Add symlink.
28167         (configure.ac): Check for usleep.
28168
28169         utimens: validate futimens usage
28170         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28171         fewer syscalls on failure later on.  Avoid compiler warning on
28172         mingw.
28173         * modules/utimens (Depends-on): Add dup2.
28174
28175         utimens: add test
28176         * modules/utimens-tests: New test.
28177         * tests/test-utimens.h: New file.
28178         * tests/test-futimens.h: Likewise.
28179         * tests/test-utimens.c: Likewise.
28180
28181         doc: mention timestamp portability issues
28182         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28183         instead.
28184         * doc/posix-functions/utime.texi (utime): Likewise.
28185         * doc/posix-functions/utimes.texi (utimes): Likewise.
28186         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28187         instead.
28188         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28189         module.
28190         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28191         Mention weakness with symlink timestamps.
28192         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28193         to utimensat/futimens instead.
28194         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28195
28196         test-dup2: enhance test
28197         * tests/test-dup2.c (main): Also check AT_FDCWD.
28198
28199         test-stat-time: avoid more spurious failures
28200         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28201         xfs; and avoid race if the two timestamps cross quantization edge.
28202
28203         relocatable: prefer 'file system' over 'filesystem'
28204         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28205         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28206         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28207         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28208         * lib/relocatable.c (compute_curr_prefix): Likewise.
28209
28210 2009-10-10  Jim Meyering  <meyering@redhat.com>
28211
28212         stat-time-tests: check for the usleep function
28213         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28214
28215 2009-10-10  Bruno Haible  <bruno@clisp.org>
28216
28217         * modules/xnanosleep: Put the Link section after the Include section.
28218
28219 2009-10-09  Eric Blake  <ebb9@byu.net>
28220
28221         dup2: work around FreeBSD 6.1 bug
28222         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28223         * doc/posix-functions/dup2.texi (dup2): Document it.
28224         Reported by Nelson H. F. Beebe and Jim Meyering.
28225
28226         test-stat-time: port to buggy NFS clients
28227         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28228         (test_ctime): Also skip test if mtime and ctime are skewed.
28229
28230         maint: prefer 'file system' over 'filesystem'
28231         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28232         * doc/posix-functions/lstat.texi (lstat): Likewise.
28233         * lib/file-has-acl.c (file_has_acl): Likewise.
28234         * lib/fwriteerror.c [TEST]: Likewise.
28235         * tests/test-areadlink.h (test_areadlink): Likewise.
28236         * tests/test-areadlinkat-with-size.c (main): Likewise.
28237         * tests/test-areadlinkat.c (main): Likewise.
28238         * tests/test-canonicalize-lgpl.c (main): Likewise.
28239         * tests/test-canonicalize.c (main): Likewise.
28240         * tests/test-fstatat.c (main): Likewise.
28241         * tests/test-linkat.c (main): Likewise.
28242         * tests/test-lstat.h (test_lstat_func): Likewise.
28243         * tests/test-mkdir.h (test_mkdir): Likewise.
28244         * tests/test-readlink.h (test_readlink): Likewise.
28245         * tests/test-remove.c (main): Likewise.
28246         * tests/test-rename.h (test_rename): Likewise.
28247         * tests/test-renameat.c (main): Likewise.
28248         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28249         * tests/test-symlink.h (test_symlink): Likewise.
28250         * tests/test-symlinkat.c (main): Likewise.
28251         * tests/test-unlink.h (test_unlink_func): Likewise.
28252         * tests/test-unlinkat.c (main): Likewise.
28253
28254         maint: make realtime library usage explicit
28255         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28256         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28257         * modules/settime (Link): Likewise.
28258         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28259
28260         test-stat-time: speed up execution
28261         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28262         warning on mingw.
28263         (nap): New helper function.
28264         (prepare_test): Use it to reduce sleep time.
28265         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28266         execution.
28267         * modules/stat-time-tests (configure.ac): Check for usleep.
28268
28269 2009-10-09  Jim Meyering  <meyering@redhat.com>
28270
28271         selinux-h: always use getfilecon wrappers
28272         * lib/getfilecon.c: New file.
28273         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28274         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28275         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28276         (fgetfilecon): Provide a stub.
28277         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28278         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28279         file unconditionally.
28280         When <selinux/selinux.h> is found, arrange to use wrappers.
28281         * modules/selinux-h (Files): Add getfilecon.c.
28282         (Makefile.am): Substitute include-next-related bits
28283         into the now-always-generated selinux/selinux.h file.
28284         * doc/glibc-functions/lgetfilecon.texi: New file.
28285         * doc/glibc-functions/fgetfilecon.texi: New file.
28286         * doc/glibc-functions/getfilecon.texi: New file.
28287         * doc/glibc-functions/getfilecon-desc.texi: New file.
28288         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28289         which to pull in the new files.
28290         * MODULES.html.sh (Misc): Add selinux-h.
28291
28292 2009-10-08  Jim Meyering  <meyering@redhat.com>
28293
28294         unistd: fix comment typo
28295         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28296
28297 2009-10-08  Eric Blake  <ebb9@byu.net>
28298
28299         areadlink: use SIZE_MAX consistently
28300         * modules/areadlink (Depends-on): Add stdint.
28301         * modules/areadlink-with-size (Depends-on): Likewise.
28302         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28303         gives NULL; drop sys/types, since unistd gives size_t; and add
28304         stdint for SIZE_MAX.
28305         (SIZE_MAX): Rely on headers.
28306         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28307         and add stdint.
28308         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28309         (SIZE_MAX): Likewise.
28310         (INITIAL_BUF_SIZE): Turn into enum.
28311         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28312
28313 2009-10-08  Jim Meyering  <meyering@redhat.com>
28314
28315         areadlinkat: avoid compilation failure
28316         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28317         Fix typo in comment.
28318
28319 2009-10-07  Eric Blake  <ebb9@byu.net>
28320
28321         areadlinkat-with-size: new module
28322         * modules/areadlinkat-with-size: New module.
28323         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28324         * lib/areadlink.h (areadlinkat): Declare it.
28325         * MODULES.html.sh (File system functions): Mention it.
28326         * modules/areadlinkat-with-size-tests: New test.
28327         * tests/test-areadlinkat-with-size.c: New file.
28328
28329         xreadlinkat: new module
28330         * modules/xreadlinkat: New module.
28331         * lib/xreadlinkat.c (xreadlinkat): New file.
28332         * lib/xreadlink.h (xreadlinkat): Declare it.
28333         * MODULES.html.sh (File system functions): Mention it.
28334
28335         areadlinkat: new module
28336         * lib/at-func.c (FUNC_FAIL): New define.
28337         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28338         * modules/areadlinkat: New module.
28339         * lib/linkat.c (areadlinkat): Move...
28340         * lib/areadlinkat.c (areadlinkat): ...to new file.
28341         * lib/areadlink.h (areadlinkat): Declare it.
28342         * modules/linkat (Depends-on): Add areadlinkat.
28343         * MODULES.html.sh (File system functions): Mention it.
28344         * modules/areadlinkat-tests: New test.
28345         * tests/test-areadlinkat.c: New file.
28346
28347         areadlink, areadlink-with-size: add tests
28348         * modules/areadlink-tests: New test.
28349         * modules/areadlink-with-size-tests: Likewise.
28350         * tests/test-areadlink.h: New file.
28351         * tests/test-areadlink.c: Likewise.
28352         * tests/test-areadlink-with-size.c: Likewise.
28353
28354         maint: minor cleanups
28355         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28356         _UNUSED_PARAMETER_ instead.
28357         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28358         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28359         * modules/linkat-tests (Files): Distribute test-link.h.
28360
28361         openat, utimens: whitespace cleanup
28362         * lib/openat.c: Prefer space throughout, rather than mix of 8
28363         spaces vs. tabs.
28364         * lib/at-func.c: Likewise.
28365         * lib/utimens.c: Likewise.
28366
28367         openat: avoid using wrong fd
28368         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28369         working directory chooses same fd.
28370         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28371
28372         mkdir, mkdirat: fix cygwin 1.5.x bug
28373         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28374         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28375         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28376         bug.
28377         (gl_PREREQ_MKDIR): Delete unused macro.
28378         * modules/mkdir (Files): Track file rename.
28379         (configure.ac): Update macro name.
28380         * modules/openat (Depends-on): Add mkdir.
28381         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28382
28383         mkdir, mkdirat: add tests
28384         * modules/mkdir-tests: New test.
28385         * tests/test-mkdir.h: New file.
28386         * tests/test-mkdir.c: Likewise.
28387         * tests/test-mkdirat.c: Likewise.
28388         * modules/openat-tests (Files): Add new files.
28389         (Makefile.am): Run new test.
28390
28391 2009-10-06  Eric Blake  <ebb9@byu.net>
28392
28393         doc: tweak *at function documentation
28394         * doc/posix-functions/faccessat.texi (faccessat): Mention
28395         known issue with replacement.
28396         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28397         * doc/posix-functions/linkat.texi (linkat): Likewise.
28398         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28399         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28400         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28401         * doc/posix-functions/renameat.texi (renameat): Likewise.
28402         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28403
28404         openat: fix GNU/Hurd bug in unlinkat
28405         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28406         broken.
28407         * doc/posix-functions/unlink.texi (unlink): Document this.
28408         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28409
28410         fdopendir: fix GNU/Hurd bug
28411         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28412         allowing non-directory fds.
28413         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28414         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28415         * modules/dirent (Makefile.am): Substitute it.
28416         * lib/dirent.in.h (fdopendir): Declare replacement.
28417         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28418         * tests/test-fdopendir.c (main): Test something other than
28419         /dev/null, since on Hurd that behaves like a directory.
28420
28421         test-symlink: port to GNU/Hurd
28422         * tests/test-symlink.h (test_symlink): Relax expected errno.
28423
28424         doc: tweak more cygwin information
28425         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28426         now compatible with glibc.
28427         * doc/posix-functions/getopt.texi (getopt): Likewise.
28428
28429         getopt-gnu: add another test
28430         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28431         guarantee behavior relied on by m4.
28432         * tests/test-getopt.c (main): Use it.
28433         * modules/getopt-posix-tests (Depends-on): Add setenv.
28434         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28435
28436         getopt: fix compilation on darwin
28437         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28438         include.
28439         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28440         Reported by Ludovic Courtès.
28441
28442 2009-10-06  Bruno Haible  <bruno@clisp.org>
28443
28444         * modules/size_max (Description): Discourage its use.
28445         Reported by Simon Josefsson.
28446
28447 2009-10-06  Jim Meyering  <meyering@redhat.com>
28448
28449         linkat: avoid compilation failure
28450         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28451
28452 2009-10-05  Eric Blake  <ebb9@byu.net>
28453
28454         linkat: support Linux 2.6.17
28455         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
28456         linkat on Linux, but allow cache variable override.
28457         * lib/linkat.c (rpl_linkat): Define override.
28458         * modules/linkat (Depends-on): Add symlinkat.
28459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
28460         * modules/unistd (Makefile.am): Substitute it.
28461         * lib/unistd.in.h (linkat): Declare replacement.
28462         Reported by Pádraig Brady.
28463
28464         quotearg: port test to systems with C.UTF-8 locale
28465         * tests/test-quotearg.c (struct result_strings): Add another
28466         member, differentiating between C.ASCII and C.UTF-8 handling.
28467         (compare_strings): Add parameter.
28468         (main): Adjust all callers.
28469
28470         getopt: avoid clash with FreeBSD _getopt_internal
28471         * lib/getopt.in.h (_getopt_internal): Override the name.
28472         * lib/getopt_int.h (includes): Pick up any overrides.
28473         Reported by Reuben Thomas.
28474
28475         hash: allow C89 compilation
28476         * lib/hash.c (check_tuning): Move declaration before statement.
28477         Reported by Reuben Thomas.
28478
28479 2009-10-05  Karl Berry  <karl@gnu.org>
28480
28481         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28482
28483 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28484             Bruno Haible  <bruno@clisp.org>
28485
28486         * lib/uname.c (uname): Use a table-driven algorithm to compute
28487         Windows NT versions.
28488
28489 2009-10-04  Bruno Haible  <bruno@clisp.org>
28490
28491         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28492         program_invocation_short_name.
28493         * modules/progname (configure.ac): Test for presence of
28494         program_invocation_short_name.
28495         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28496
28497 2009-10-04  Bruno Haible  <bruno@clisp.org>
28498
28499         * lib/progname.c (set_program_name): Fix comment.
28500         Reported by Jim Meyering.
28501
28502 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28503             Bruno Haible  <bruno@clisp.org>
28504
28505         * lib/uname.c: Include <string.h>.
28506         (uname): Do only one call to GetVersionEx in the common case.
28507
28508 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28509             Bruno Haible  <bruno@clisp.org>
28510
28511         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28512         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28513         (uname): Add support for Windows CE and various non-x86 CPU types.
28514
28515 2009-10-03  Bruno Haible  <bruno@clisp.org>
28516
28517         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28518         invocation to tests/configure.ac.
28519         Reported by Ian Beckwith <ianb@erislabs.net>.
28520
28521 2009-10-02  Eric Blake  <ebb9@byu.net>
28522
28523         fchdir: avoid compiler warning
28524         * lib/fchdir.c (canonicalize_file_name)
28525         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28526
28527         test-open: support mingw errno values
28528         * tests/test-open.h (test_open): Relax test.
28529         * tests/test-fopen.h (test_fopen): Likewise.
28530         * tests/test-openat-safer.c (main): Likewise.
28531
28532         open: fix opening directory on mingw
28533         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28534
28535         test-open: on GNU/Hurd, /dev/null is a directory
28536         * tests/test-fopen.h (main): Rename...
28537         (test_fopen): ...to this.  Use a guaranteed non-directory when
28538         confirming open behavior on trailing slash.
28539         * tests/test-openat-safer.c (main): Likewise.
28540         * tests/test-open.h (main): Likewise....
28541         (test_open): ...to this.
28542         * tests/test-fopen.c (main): Adjust caller.
28543         * tests/test-fopen-safer.c (main): Likewise.
28544         * tests/test-open.c (main): Likewise.
28545         * tests/test-fcntl-safer.c (main): Likewise.
28546         Reported by Samuel Thibault.
28547
28548         rename, fchdir: don't ignore chdir failure
28549         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
28550         * lib/rename.c (rpl_rename) [W32]: Likewise.
28551         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
28552         an empty destination directory if source cannot be renamed,
28553         although there is still possibility for failure.
28554         * doc/posix-functions/rename.texi (rename): Document the race.
28555         Reported by Jim Meyering.
28556
28557         maint: cleanup whitespace in recent commits
28558         * lib/rename.c (rpl_rename): Remove tabs.
28559         * tests/test-link.h (test_link): Likewise.
28560         * lib/fchdir.c (get_name): Likewise.
28561         Reported by Jim Meyering.
28562
28563 2009-10-02  Ben Pfaff  <blp@gnu.org>
28564
28565         relocatable-prog-wrapper: Add missing dependency on
28566         double-slash-root.
28567         * modules/relocatable-prog-wrapper: Add dependency.
28568         Reported by Ian Beckwith <ianb@erislabs.net>.
28569
28570 2009-10-02  Eric Blake  <ebb9@byu.net>
28571
28572         renameat: fix Solaris bugs
28573         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
28574         needed fixing.
28575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
28576         * modules/stdio (Makefile.am): Substitute it.
28577         * lib/stdio.in.h (renameat): Declare replacement.
28578         * lib/renameat.c (rpl_renameat): Implement fix.
28579
28580         renameat: new module
28581         * modules/renameat: New file.
28582         * lib/renameat.c (renameat): Likewise.
28583         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
28584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28585         * modules/stdio (Makefile.am): Substitute them.
28586         * lib/stdio.in.h (renameat): Declare it.
28587         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28588         * doc/posix-functions/renameat.texi (renameat): Likewise.
28589         * modules/renameat-tests: New test.
28590         * tests/test-renameat.c: Likewise.
28591
28592         rename: fix mingw bugs
28593         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
28594         directory overwrite bugs.
28595
28596         rename: fix another cygwin 1.5 bug
28597         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
28598         checks.
28599         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
28600         unnecessary cygwin workarounds.  Also work around bug with moving
28601         full directory onto an empty one.
28602         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
28603
28604         rename-dest-slash: merge into rename module
28605         * modules/rename-dest-slash (Status): Mark obsolete.
28606         (Depends-on): Add rename.
28607         (Files): Let rename do it all.
28608         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
28609         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
28610         * m4/rename-dest-slash.m4: ...so this file can be deleted.
28611         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
28612         * lib/rename.c (rpl_rename): Update comments.
28613
28614         rename: fix cygwin 1.5.x bugs
28615         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
28616         * lib/rename.c (rpl_rename): Work around them.
28617         * modules/rename (Depends-on): Add same-inode.
28618
28619         rename: fix Solaris 10 bug
28620         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28621         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
28622         was the only bug.
28623
28624         rename: fix Solaris 9 bug
28625         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
28626         on non-directory.  Avoid calling exit.
28627         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
28628         strdup.
28629         * modules/rename-tests (Depends-on): Drop lstat.
28630         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28631         (gl_PREREQ_RENAME): Delete unused macro.
28632
28633         rename-dest-slash: fix NetBSD bug
28634         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
28635         links.
28636         * modules/rename-dest-slash (Depends-on): Add same-inode.
28637
28638         rename-tests: new test, exposes several platform bugs
28639         * modules/rename-tests: New file.
28640         * tests/test-rename.h: Likewise.
28641         * tests/test-rename.c: Likewise.
28642         * doc/posix-functions/rename.texi (rename): Improve documentation,
28643         including bugs that will eventually be fixed in gnulib.
28644
28645 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
28646
28647         * lib/uname.c: Include <stdlib.h>
28648         (uname): Assume version info is available.
28649
28650 2009-10-02  Jim Meyering  <meyering@redhat.com>
28651
28652         gnu-web-doc-update: correct --help output
28653         * build-aux/gnu-web-doc-update: Make --help output relevant.
28654
28655         gnu-web-doc-update: add standard options
28656         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
28657
28658         gnu-web-doc-update: New module.
28659         Use this script to automatically update the on-line web documentation
28660         for your GNU project at http://www.gnu.org/software/$pkg/manual/
28661         * modules/gnu-web-doc-update: New file, from coreutils.
28662         * build-aux/gnu-web-doc-update: New script.
28663
28664 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
28665
28666         link: LoadLibrary is not needed.
28667         * lib/link.c: Use GetModuleHandle.
28668
28669 2009-10-01  Eric Blake  <ebb9@byu.net>
28670
28671         getopt: bump serial number
28672         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
28673         change.
28674
28675         tests: tighten link, rmdir, and remove tests
28676         * tests/test-link.h (includes): No need to use <config.h> here.
28677         Clean up if directory hard link was created, otherwise test for
28678         trailing '.'.
28679         * tests/test-linkat.c (main): Simplify.
28680         * tests/test-remove.c (main): Enhance test for trailing '.'.
28681         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28682
28683 2009-10-01  Jim Meyering  <meyering@redhat.com>
28684
28685         maint.mk: requiring "make major" was annoying, for a "minor" release.
28686         What is intended is "stable", to contrast with alpha and beta,
28687         so require "make stable", not "make major".
28688         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
28689         (get_tool_versions): Likewise.
28690         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
28691
28692 2009-09-30  Ben Pfaff  <blp@gnu.org>
28693
28694         Fix broken build of replacement for Windows tmpfile().
28695         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
28696         flags argument added along with the 'mkostemp' module.
28697
28698 2009-09-28  Bruno Haible  <bruno@clisp.org>
28699
28700         Avoid identifier clash with POSIX function 'remove' defined as a macro.
28701         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
28702         to 'remove_elt'.
28703         (gl_list_remove): Update.
28704         * lib/gl_list.c (gl_list_remove): Update.
28705         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
28706         to 'remove_elt'.
28707         (gl_oset_remove): Update.
28708         * lib/gl_list.c (gl_oset_remove): Update.
28709         Reported by Eric Blake.
28710
28711 2009-09-28  Eric Blake  <ebb9@byu.net>
28712
28713         doc: mention yet more cygwin 1.7 status
28714         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
28715         cygwin.
28716         * doc/glibc-functions/execvpe.texi (execvpe): New file.
28717         * doc/gnulib.texi (Glibc unistd.h): Mention it.
28718
28719         argp: fix test failure
28720         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
28721         that are not upper-case.  Pass correct range to tolower.
28722
28723 2009-09-27  Jim Meyering  <meyering@redhat.com>
28724
28725         test-yesno: work around sparc-dash here-document infelicity
28726         Without this change, the literal \177 byte in a here document
28727         would make dash 0.5.5.1-3 access uninitialized memory.
28728         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
28729         Instead, use a marker, "@", and filter through tr to create the desired
28730         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
28731
28732 2009-09-27  Bruno Haible  <bruno@clisp.org>
28733
28734         Disable untested support for new flavours of ACLs on AIX.
28735         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
28736         progress.
28737         * lib/set-mode-acl.c (qset_acl): Likewise.
28738
28739 2008-12-07  Bruno Haible  <bruno@clisp.org>
28740
28741         Add support for new flavours of ACLs on AIX. (Untested.)
28742         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
28743         (file_has_acl): Add support for newer AIX.
28744         * lib/set-mode-acl.c (qset_acl): Likewise.
28745         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
28746         Rainer Tammer <tammer@tammer.net>.
28747
28748 2009-09-26  Eric Blake  <ebb9@byu.net>
28749
28750         argp: fix compilation of getopt
28751         * lib/getopt.in.h (includes): Use different guard than glibc.
28752         Reported by Sergey Poznyakoff.
28753
28754         doc: mention more cygwin 1.7 status
28755         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
28756         bug.
28757         * doc/posix-functions/execl.texi (execl): Likewise.
28758         * doc/posix-functions/execle.texi (execle): Likewise.
28759         * doc/posix-functions/execlp.texi (execlp): Likewise.
28760         * doc/posix-functions/execv.texi (execv): Likewise.
28761         * doc/posix-functions/execve.texi (execve): Likewise.
28762         * doc/posix-functions/execvp.texi (execvp): Likewise.
28763         * doc/glibc-functions/canonicalize_file_name.texi
28764         (canonicalize_file_name): Cygwin 1.7 now provides this.
28765         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
28766         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
28767         on AT_SYMLINK_NOFOLLOW.
28768
28769 2009-09-24  Eric Blake  <ebb9@byu.net>
28770
28771         test-linkat: make test more robust
28772         * tests/test-linkat.c (main): Avoid collision with EEXIST.
28773
28774         getopt: fix inclusion guards for cygwin
28775         * modules/getopt-posix (Depends-on): Add include-next.
28776         (Makefile.am): Substitute more items in replacement header.
28777         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
28778         <getopt.h>.
28779         * lib/getopt.in.h (includes): Use split inclusion guard, and
28780         prefer <getopt.h> over include <unistd.h> when one is present.
28781         (option): Also override name of 'struct option'.
28782
28783         same-inode: revert prior change; it is not yet ready
28784         * NEWS: Undo mention of this change.
28785         * lib/same-inode.h (same-inode.h): Undo tri-state change.
28786         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28787         * lib/cycle-check.c (cycle_check): Likewise.
28788         * lib/same.c (same_name): Likewise.
28789         * lib/at-func2.c (at_func2): Likewise.
28790
28791 2009-09-23  Eric Blake  <ebb9@byu.net>
28792
28793         linkat: new module
28794         * modules/linkat: New file.
28795         * lib/at-func2.c (at_func2): Likewise.
28796         * lib/linkat.c (linkat): Likewise.
28797         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28798         * lib/openat-priv.h (at_func2): Add declaration.
28799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28800         * modules/unistd (Makefile.am): Substitute them.
28801         * lib/unistd.in.h (linkat): Declare it.
28802         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28803         * doc/posix-functions/linkat.texi (linkat): Likewise.
28804         * doc/posix-functions/link.texi (link): Tweak wording.
28805         * tests/test-link.c (main): Move guts...
28806         * tests/test-link.h (test_link): ...into new file.
28807         * modules/linkat-tests: New test.
28808         * tests/test-linkat.c: Likewise.
28809         * modules/link-tests (Files): Ship new file.
28810         (Depends-on): Add stdbool.
28811
28812         dirname: add library-safe mdir_name
28813         * lib/dirname.h (mdir_name): New prototype.
28814         * lib/dirname.c (dir_name): Move guts...
28815         (mdir_name): ...to new function that avoids xalloc_die.
28816
28817         fchdir: another mingw fix
28818         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
28819         * lib/fchdir.c (get_name): New helper method; skips canonicalize
28820         on mingw (where it has not yet been ported), and make it optional
28821         elsewhere.
28822         (_gl_register_fd): Use it.
28823
28824         same-inode: make SAME_INODE tri-state, to port to mingw
28825         * NEWS: Mention this change.
28826         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
28827         st_ino always being 0.
28828         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28829         * lib/cycle-check.c (cycle_check): Likewise.
28830         * lib/same.c (same_name): Likewise.
28831
28832         lstat: avoid mingw compilation error
28833         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
28834         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
28835         lstat ourselves.
28836         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
28837         was adequate.
28838         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
28839         the checks for lstat.
28840         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
28841
28842         link: fix test failure on Solaris 9
28843         * lib/link.c (rpl_link): Don't assume link will catch bogus
28844         trailing slash on source.
28845
28846         test-symlinkat: enhance test
28847         * tests/test-readlink.c (main): Move guts...
28848         * tests/test-readlink.h (test_readlink): ...into new file.
28849         * tests/test-symlink.c (main): Move guts...
28850         * tests/test-symlink.h (test_symlink): ...into new file.
28851         * tests/test-symlinkat.c (main): Use new files for further
28852         coverage.
28853         (do_symlink, do_readlink): New helper functions.
28854         * modules/symlink-tests (Files): Ship new file.
28855         (Depends-on): Add stdbool.
28856         * modules/readlink-tests (Files): Ship new file.
28857         (Depends-on): Add stdbool.
28858         * modules/symlinkat-tests (Files): Use new files.
28859
28860 2009-09-23  Eric Blake  <ebb9@byu.net>
28861
28862         readlink: document portability issue with symlink length
28863         * doc/posix-functions/lstat.texi (lstat): Mention that some file
28864         systems have bogus st_size on symlinks, and mention the
28865         areadlink-with-size module.
28866         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28867         * doc/posix-functions/readlink.texi (readlink): Mention the
28868         areadlink module, and ERANGE failure.
28869         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28870         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
28871
28872         readlink: fix Solaris 9 bug with trailing slash
28873         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
28874         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
28875         * doc/posix-functions/readlink.texi (readlink): Document this.
28876         * modules/readlink-tests: New test.
28877         * tests/test-readlink.c: Likewise.
28878
28879         readlink: fix cygwin 1.5.x bug with return type
28880         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
28881         * lib/unistd.in.h (readlink): Use ssize_t.
28882         * lib/readlink.c (readlink): Likewise.
28883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28884         * modules/unistd (Makefile.am): Substitute it.
28885         * lib/unistd.in.h (readlink): Declare replacement.
28886         * doc/posix-functions/readlink.texi (readlink): Document this.
28887
28888         symlink: use throughout gnulib
28889         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
28890         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
28891         symlink is not used.
28892         * modules/symlinkat (Depends-on): Add symlink.
28893         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28894         * modules/canonicalize-tests (Depends-on): Likewise.
28895         * modules/lstat-tests (Depends-on): Likewise.
28896         * modules/openat-tests (Depends-on): Likewise.
28897         * modules/remove-tests (Depends-on): Likewise.
28898         * modules/rmdir-tests (Depends-on): Likewise.
28899         * modules/unlink-tests (Depends-on): Likewise.
28900         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
28901         * tests/test-canonicalize.c (symlink): Likewise.
28902         * tests/test-fstatat.c (symlink): Likewise.
28903         * tests/test-lstat.c (symlink): Likewise.
28904         * tests/test-remove.c (symlink): Likewise.
28905         * tests/test-rmdir.c (symlink): Likewise.
28906         * tests/test-unlink.c (symlink): Likewise.
28907         * tests/test-unlinkat.c (symlink): Likewise.
28908
28909         symlink: new module, for Solaris 9 bug
28910         * modules/symlink: New file.
28911         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28912         * lib/symlink.c: Likewise.
28913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28914         * modules/unistd (Makefile.am): Substitute them.
28915         * lib/unistd.in.h (symlink): Declare replacement.
28916         * MODULES.html.sh (File system functions): Mention it.
28917         * doc/posix-functions/symlink.texi (symlink): Likewise.
28918         * modules/symlink-tests: New test.
28919         * tests/test-symlink.c: Likewise.
28920
28921 2009-09-23  Bruno Haible  <bruno@clisp.org>
28922
28923         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
28924         when needed.
28925         Test case: gnulib-tool --import --with-tests atexit inttypes.
28926         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
28927
28928 2009-09-23  Bruno Haible  <bruno@clisp.org>
28929
28930         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
28931         subcommand, not in a subshell.
28932
28933 2009-09-22  Eric Blake  <ebb9@byu.net>
28934
28935         unistd: sort replacement declarations
28936         * lib/unistd.in.h: Sort declarations.
28937
28938         open, openat: minor optimization
28939         * lib/open.c (open): If open succeeded, len is non-zero.
28940         * lib/openat.c (rpl_openat): Likewise.
28941
28942         link-follow: ensure correct result
28943         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
28944         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
28945         distinguish between possible failures.
28946
28947 2009-09-21  Eric Blake  <ebb9@byu.net>
28948
28949         fts: avoid compiler warning
28950         * lib/fts.c (dirent_inode_sort_may_be_useful)
28951         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
28952
28953 2009-09-19  Bruno Haible  <bruno@clisp.org>
28954
28955         * lib/progreloc.c (canonicalize_file_name): New declaration.
28956
28957 2009-09-19  Eric Blake  <ebb9@byu.net>
28958
28959         link: fix quoting
28960         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
28961
28962         openat: fix openat bugs on Solaris 9
28963         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
28964         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
28965         * modules/openat (Depends-on): Add open.
28966         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
28967         * modules/fcntl-h (Makefile.am): Substitute it.
28968         * lib/fcntl.in.h (openat): Declare replacement.
28969         * doc/posix-functions/openat.texi (openat): Document this.
28970
28971         openat: move fstatat and unlinkat into correct files
28972         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
28973         compiled.
28974         * lib/openat.c (fstatat, unlinkat): Move...
28975         * lib/fstatat.c (fstatat): ...into correct files.
28976         * lib/unlinkat.c (unlinkat): Likewise.
28977
28978         openat: fix unlinkat bugs on Solaris 9
28979         * lib/unlinkat.c (unlinkat): New file.
28980         * modules/openat (Depends-on): Add unlink.
28981         (Files): Distribute it.
28982         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
28983         trailing slash behavior is broken.
28984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28985         * modules/unistd (Makefile.am): Substitute it.
28986         * lib/unistd.in.h (unlinkat): Declare replacement.
28987         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
28988
28989         openat: fix fstatat bugs on Solaris 9
28990         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
28991         stat.
28992         * doc/posix-functions/fstatat.texi (fstatat): Document this.
28993
28994         test-unlinkat: enhance test, to expose Solaris 9 bug
28995         * tests/test-unlink.c (main): Factor guts...
28996         * tests/test-unlink.h (test_rmdir_func): ...into new file.
28997         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
28998         * tests/test-rmdir.c (main): Adjust caller.
28999         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29000         (unlinker): New helper function.
29001         (rmdirat): Enhance check.
29002         * modules/rmdir-tests (Depends-on): Add stdbool.
29003         * modules/unlink-tests (Depends-on): Likewise.
29004         (Files): Add test-unlink.h.
29005         * modules/openat-tests (Files): Likewise.
29006         (Depends-on): Add unlinkdir.
29007
29008         test-fstatat: new test, to expose Solaris 9 bugs
29009         * tests/test-stat.c (main): Factor guts...
29010         * tests/test-stat.h (test_stat_func): ...into new file.
29011         * tests/test-lstat.c (main): Factor guts...
29012         * tests/test-lstat.h (test_lstat_func): ...into new file.
29013         * tests/test-fstatat.c: New file.
29014         * modules/stat-tests (Files): Add test-stat.h.
29015         * modules/lstat-tests (Files): Add test-lstat.h.
29016         (Depends-on): Add stdbool.
29017         * modules/openat-tests (Depends-on): Add pathmax.
29018         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29019         (Makefile.am): Run new test.
29020
29021         remove: new module, for mingw and Solaris 9 bugs
29022         * modules/remove: New file.
29023         * lib/remove.c: Likewise.
29024         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29026         * modules/stdio (Makefile.am): Use them.
29027         * lib/stdio.in.h (remove): Declare replacement.
29028         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29029         * doc/posix-functions/remove.texi (remove): Likewise.
29030         * modules/remove-tests: New test.
29031         * tests/test-remove.c: Likewise.
29032
29033         unlink: new module, for Solaris 9 bug
29034         * modules/unlink: New file.
29035         * lib/unlink.c: Likewise.
29036         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29038         * modules/unistd (Makefile.am): Use them.
29039         * lib/unistd.in.h (stat): Declare replacement.
29040         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29041         * doc/posix-functions/unlink.texi (unlink): Likewise.
29042         * modules/unlink-tests: New test.
29043         * tests/test-unlink.c: Likewise.
29044
29045         lstat: fix Solaris 9 bug
29046         * lib/lstat.c (lstat): Also check for trailing slash on
29047         non-symlink, non-directories.  Use stat module to simplify logic.
29048         * doc/posix-functions/lstat.texi (lstat): Document it.
29049         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29050         (configure.ac): Check for symlink.
29051         * tests/test-lstat.c (main): Add more tests.
29052
29053         stat: add as dependency to other modules
29054         * modules/chown (Depends-on): Add stat.
29055         * modules/euidaccess (Depends-on): Likewise.
29056         * modules/fchdir (Depends-on): Likewise.
29057         * modules/isdir (Depends-on): Likewise.
29058         * modules/link (Depends-on): Likewise.
29059         * modules/lstat (Depends-on): Likewise.
29060         * modules/mkdir-p (Depends-on): Likewise.
29061         * modules/modechange (Depends-on): Likewise.
29062         * modules/open (Depends-on): Likewise.
29063         * modules/readlink (Depends-on): Likewise.
29064         * modules/same (Depends-on): Likewise.
29065
29066         stat: fix Solaris 9 bug
29067         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29068         slash.
29069         * lib/stat.c (rpl_stat): Work around it.
29070         * doc/posix-functions/stat.texi (stat): Update documentation.
29071
29072         stat: new module, for mingw bug
29073         * modules/stat: New file.
29074         * lib/stat.c: Likewise.
29075         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29076         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29077         * modules/sys_stat (Makefile.am): Use them.
29078         * lib/sys_stat.in.h (stat): Declare replacement.
29079         * lib/openat.c (fstatat): Deal with lstat and stat being function
29080         macros.
29081         * modules/openat (Depends-on): Add inline.
29082         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29083         * doc/posix-functions/stat.texi (stat): Likewise.
29084         * modules/stat-tests: New test.
29085         * tests/test-stat.c: Likewise.
29086
29087 2009-09-19  Jim Meyering  <meyering@redhat.com>
29088
29089         syntax-check: detect unnecessary inclusion of canonicalize.h
29090         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29091
29092 2009-09-19  Eric Blake  <ebb9@byu.net>
29093
29094         canonicalize-lgpl: adjust clients to use correct header
29095         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29096         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29097         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29098         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29099         * lib/progreloc.c (includes): Likewise.
29100
29101 2009-09-19  Jim Meyering  <meyering@redhat.com>
29102
29103         test-posixtm.c: correct a comment
29104         * tests/test-posixtm.c: Correct first-line comment.
29105         Spotted by Eric Blake.
29106
29107 2009-09-16  Jim Meyering  <meyering@redhat.com>
29108
29109         posixtm-tests: make T const-correct; add a test case
29110         * tests/test-posixtm.c (T): Declare const.
29111         Add a test for -(2^31+1).
29112         Remove useless can-succeed-only-in-2002 test.
29113
29114         posixtm-tests: adjust the sole failing test
29115         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29116         expected output matches what mktime now produces.  Cross-checked via
29117         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29118
29119         posixtm: move #ifdef'd tests into a new module
29120         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29121         * tests/test-posixtm.c: ... this new file.
29122         * modules/posixtm-tests: New module.
29123
29124 2009-09-19  Eric Blake  <ebb9@byu.net>
29125
29126         openat: simplify use of at-func.c
29127         * lib/at-func.c (includes): Include prerequisites here, to
29128         simplify requirements on client files.
29129         * lib/openat-priv.h: Add double-inclusion guard.
29130         * lib/faccessat.c (includes): Simplify.
29131         * lib/fchmodat.c (includes): Likewise.
29132         * lib/fchownat.c (includes): Likewise.
29133         * lib/mkdirat.c (includes): Likewise.
29134         * lib/mkfifoat.c (includes): Likewise.
29135         * lib/symlinkat.c (includes): Likewise.
29136
29137         openat: allow return of fd 0
29138         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29139         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29140         unistd-safer.
29141         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29142         <fcntl.h>; this module does not leak fds.
29143         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29144         must be allowed to return 0, leaving openat_safer to add the
29145         safety.
29146         (openat_permissive): Avoid writing to just-opened fd 2 if
29147         restoring the current directory fails.
29148         * lib/openat-die.c (openat_restore_fail): Add comment.
29149         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29150         (save_cwd): Guarantee safe fd, but without use of open_safer.
29151         * tests/test-openat.c: New test.
29152         * modules/openat-tests (Files, Makefile.am): Distribute and build
29153         new file.
29154
29155         relocatable-prog-wrapper: fix build
29156         * modules/relocatable-prog-wrapper (Files): Update name of
29157         canonicalize m4 file, broken on 2009-09-17.
29158         Reported by emad hajjar <aleppos@hotmail.com>.
29159
29160 2009-09-19  Bruno Haible  <bruno@clisp.org>
29161
29162         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29163         * lib/safe-alloc.c: Likewise.
29164         Reported by Ian Beckwith <ianb@erislabs.net>.
29165
29166 2009-09-18  Bruno Haible  <bruno@clisp.org>
29167
29168         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29169         Reported by <erobles@sensacd.com.mx>.
29170
29171 2009-09-17  Eric Blake  <ebb9@byu.net>
29172
29173         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29174         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29175         slashes when checking if last component is missing.
29176         * tests/test-canonicalize.c (main): Test this.
29177
29178         canonicalize, canonicalize-lgpl: honor // if distinct from /
29179         * modules/canonicalize (Files): Add double-slash-root.m4.
29180         * modules/canonicalize-lgpl (Files): Likewise.
29181         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29182         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29183         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29184         fallback definition.
29185         (canonicalize_filename_mode): Use it to protect //.
29186         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29187         (__realpath): Likewise.
29188         * tests/test-canonicalize.c (main): Test this.
29189         * tests/test-canonicalize-lgpl.c (main): Likewise.
29190         * modules/canonicalize-tests (Depends-on): Add same-inode.
29191         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29192
29193         canonicalize-lgpl: fix glibc bug with trailing slash
29194         * m4/canonicalize-lgpl.m4: Move contents...
29195         * m4/canonicalize.m4: ...here.
29196         (gl_CANONICALIZE_LGPL): Factor realpath check...
29197         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29198         glibc 2.3.5 bug, fixed 2005-04-27.
29199         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29200         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29201         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29202         * modules/canonicalize-lgpl (Files): Manage file rename.
29203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29204         * modules/stdlib (Makefile.am): Substitute witness.
29205         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29206         is needed.
29207         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29208         replacement is required.
29209         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29210         * doc/glibc-functions/canonicalize_file_name.texi
29211         (canonicalize_file_name): Document this.
29212         * doc/posix-functions/realpath.texi (realpath): Likewise.
29213
29214         canonicalize-lgpl: reject non-directory with trailing slash
29215         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29216         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29217         catches failures in glibc 2.3.5.
29218         * tests/test-canonicalize.c (main): Likewise.
29219
29220         canonicalize-lgpl: use native realpath if it works
29221         * lib/canonicalize-lgpl.c (realpath): Guard with
29222         FUNC_REALPATH_WORKS.
29223         * lib/stdlib.in.h (realpath): Make declaration optional based on
29224         HAVE_REALPATH.
29225         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29226         native realpath works.
29227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29228         * modules/stdlib (Makefile.am): Substitute witness.
29229
29230         canonicalize, canonicalize-lgpl: use <stdlib.h>
29231         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29232         (Include): Mention <stdlib.h>.
29233         (configure.ac): Mention functions we provide.
29234         * modules/canonicalize (configure.ac): Likewise.
29235         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29236         realpath if canonicalize_file_name is missing.
29237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29238         * modules/stdlib (Makefile.am): Substitute witnesses.
29239         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29240         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29241         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29242         * NEWS: Document this.
29243         * doc/glibc-functions/canonicalize_file_name.texi
29244         (canonicalize_file_name): Likewise.
29245         * doc/posix-functions/realpath.texi (realpath): Likewise.
29246         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29247
29248         test-canonicalize: consolidate into single C program
29249         * tests/test-canonicalize.sh: Delete; move setup into...
29250         * tests/test-canonicalize.c (main): ...the program, making it
29251         easier to run in debugger.  Add some tests.
29252         * modules/canonicalize-tests (Files): Remove unused file.
29253         (Depends-on): Add progname.
29254         (configure.ac, Makefile.am): Simplify.
29255
29256         test-canonicalize-lgpl: consolidate into single C program
29257         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29258         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29259         easier to run in debugger.  Add some tests.
29260         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29261         (configure.ac, Makefile.am): Simplify.
29262
29263         canonicalize: avoid resolvepath
29264         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29265         unnecessary checks.
29266         * lib/canonicalize.c (includes): Simplify.
29267         (canonicalize_file_name): Drop resolvepath implementation.
29268         * modules/canonicalize (Depends-on): Drop filenamecat.
29269
29270         canonicalize: don't lose errno
29271         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29272         over calls to free.
29273
29274         canonicalize: simplify errno handling
29275         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29276         assignment.
29277
29278         canonicalize, canonicalize-lgpl: update module dependencies
29279         * modules/canonicalize (Depends-on): Add extensions, lstat,
29280         pathmax, stdlib.
29281         (Files): Drop pathmax.h.
29282         (configure.ac): Adjust macro name.
29283         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29284         lstat, stdlib, sys_stat.
29285         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29286         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29287         extensions.
29288         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29289         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29290         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29291         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29292         declaration, if available.
29293         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29294         we can rely on the readlink module.
29295         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29296         (includes): Use <unistd.h> unconditionally.
29297
29298 2009-09-17  Eric Blake  <ebb9@byu.net>
29299
29300         maint: make Include sections of modules consistent
29301         * modules/alloca: Use only header name; no need to list #include.
29302         * modules/alloca-opt: Likewise.
29303         * modules/arpa_inet: Likewise.
29304         * modules/canon-host: Likewise.
29305         * modules/configmake: Likewise.
29306         * modules/dirent: Likewise.
29307         * modules/eealloc: Likewise.
29308         * modules/environ: Likewise.
29309         * modules/fchdir: Likewise.
29310         * modules/fcntl: Likewise.
29311         * modules/fcntl-h: Likewise.
29312         * modules/gethrxtime: Likewise.
29313         * modules/gettime: Likewise.
29314         * modules/ignore-value: Likewise.
29315         * modules/inet_ntop: Likewise.
29316         * modules/inet_pton: Likewise.
29317         * modules/inttypes: Likewise.
29318         * modules/isnand-nolibm: Likewise.
29319         * modules/isnanf-nolibm: Likewise.
29320         * modules/mbchar: Likewise.
29321         * modules/mbfile: Likewise.
29322         * modules/mbiter: Likewise.
29323         * modules/mbuiter: Likewise.
29324         * modules/netdb: Likewise.
29325         * modules/netinet_in: Likewise.
29326         * modules/nproc: Likewise.
29327         * modules/pagealign_alloc: Likewise.
29328         * modules/poll: Likewise.
29329         * modules/printf-frexp: Likewise.
29330         * modules/pthread: Likewise.
29331         * modules/putenv: Likewise.
29332         * modules/random_r: Likewise.
29333         * modules/relocatable-prog: Likewise.
29334         * modules/search: Likewise.
29335         * modules/select: Likewise.
29336         * modules/selinux-h: Likewise.
29337         * modules/settime: Likewise.
29338         * modules/signal: Likewise.
29339         * modules/size_max: Likewise.
29340         * modules/socklen: Likewise.
29341         * modules/ssize_t: Likewise.
29342         * modules/stdarg: Likewise.
29343         * modules/stdbool: Likewise.
29344         * modules/stddef: Likewise.
29345         * modules/stdint: Likewise.
29346         * modules/stdio: Likewise.
29347         * modules/stdlib: Likewise.
29348         * modules/string: Likewise.
29349         * modules/strings: Likewise.
29350         * modules/sys_file: Likewise.
29351         * modules/sys_ioctl: Likewise.
29352         * modules/sys_select: Likewise.
29353         * modules/sys_socket: Likewise.
29354         * modules/sys_stat: Likewise.
29355         * modules/sys_time: Likewise.
29356         * modules/sys_times: Likewise.
29357         * modules/sys_utsname: Likewise.
29358         * modules/sys_wait: Likewise.
29359         * modules/sysexits: Likewise.
29360         * modules/time: Likewise.
29361         * modules/times: Likewise.
29362         * modules/tmpfile: Likewise.
29363         * modules/trim: Likewise.
29364         * modules/unistd: Likewise.
29365         * modules/wchar: Likewise.
29366         * modules/wctype: Likewise.
29367
29368 2009-09-17  Bruno Haible  <bruno@clisp.org>
29369
29370         Make getdate.y compile on QNX and NetBSD 5 / i386.
29371         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29372         TIME_T_FITS_IN_LONG_INT.
29373         * lib/getdate.y (long_time_t): New type.
29374         (relative_time): Change type of 'seconds' field to long_time_t.
29375         (get_date): Update types of local variables. Check against overflow
29376         during conversion from long_time_t to time_t.
29377         Reported by Matt Kraai <kraai@ftbfs.org>
29378         and Hasso Tepper <hasso@netbsd.org>.
29379
29380 2009-09-17  Bruno Haible  <bruno@clisp.org>
29381
29382         * modules/COPYING: Update copyright years.
29383         * modules/README: Likeiwse.
29384         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29385         Reported by Ian Beckwith <ianb@erislabs.net>.
29386
29387 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29388
29389         * users.txt: Update references for gnuit package.
29390
29391 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29392
29393         * m4/getdelim.m4: Fix typo in copyright line.
29394
29395 2009-09-17  Bruno Haible  <bruno@clisp.org>
29396
29397         * lib/atoll.c: Use the standard header with GPL copyright.
29398         * lib/argz.in.h: Likewise.
29399         * lib/glob.c: Likewise.
29400         * lib/glob-libc.h: Likewise.
29401         * lib/random_r.c: Likewise.
29402         * lib/siglist.h: Likewise.
29403         * lib/strsignal.c: Likewise.
29404         Reported by Ian Beckwith <ianb@erislabs.net>.
29405
29406 2009-09-17  Eric Blake  <ebb9@byu.net>
29407
29408         rmdir: ensure correct dependency order
29409         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29410
29411 2009-09-17  Bruno Haible  <bruno@clisp.org>
29412
29413         Disable assertion that fails on NetBSD 5 / i386.
29414         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29415         Reported by Sam Steingold <sds@gnu.org>
29416         and Hasso Tepper <hasso@netbsd.org>.
29417
29418 2009-09-16  Eric Blake  <ebb9@byu.net>
29419
29420         unlinkdir: port to mingw
29421         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29422         on which no one can unlink a directory.
29423
29424         stdlib: sort witness names
29425         * modules/stdlib (Makefile.am): Sort replacements.
29426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29427         * lib/stdlib.in.h: Likewise.
29428
29429         parse-duration-tests: avoid link failure
29430         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29431         LIBINTL.
29432         Reported by Tom G. Christensen.
29433
29434         openat-tests: ensure unlinkat behaves like rmdir
29435         * tests/test-rmdir.c (main): Factor guts...
29436         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29437         * modules/rmdir-tests (Files): Ship new file.
29438         * modules/openat-tests: New test.
29439         * tests/test-unlinkat.c: Likewise.
29440
29441         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29442         * modules/rmdir-errno (Status, Notice): Now obsolete.
29443
29444         rmdir: work around cygwin 1.5.x and mingw bugs
29445         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29446         * lib/rmdir.c (rmdir): Work around it.
29447         * modules/rmdir (Status, Notice): No longer obsolete.
29448         (Files): Add dos.m4.
29449         (Depends-on): Add unistd.
29450         (configure.ac): Set witnesses.
29451         (License): Relax to LGPLv2+.
29452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
29453         * modules/unistd (Makefile.am): Substitute witnesses.
29454         * lib/unistd.in.h (rmdir): Declare replacement.
29455         * doc/posix-functions/rmdir.texi (rmdir): Document this.
29456         * modules/rmdir-tests: New tests.
29457         * tests/test-rmdir.c: Likewise.
29458
29459 2009-09-15  Eric Blake  <ebb9@byu.net>
29460
29461         fchdir: improve use of replacement functions
29462         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
29463         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
29464         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
29465         REPLACE_CLOSEDIR.
29466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
29467         * modules/sys_stat (Makefile.am): Substitute correct witness.
29468         * modules/dirent (Makefile.am): Likewise.
29469         * modules/unistd (Makefile.am): Likewise.
29470         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29471         * lib/unistd.in.h (dup): Likewise.
29472         * lib/sys_stat.in.h (fstat): Likewise.
29473
29474         maint: ignore gnulib-tool temp files
29475         * .gitignore: Ignore files created during gnulib-tool --test.
29476
29477 2009-09-13  Jim Meyering  <meyering@redhat.com>
29478
29479         posixtm: don't reject a time that specify "60" as the number of seconds
29480         * lib/posixtm.c (posixtime): The code to reject invalid dates
29481         would also reject a time specified with the .60 suffix.
29482         But POSIX allows that, in order to accommodate leap seconds.
29483         So don't reject it.
29484         (main): Adjust tests accordingly.
29485         * modules/posixtm (Depends-on): Add stpcpy.
29486
29487 2009-09-11  Jim Meyering  <meyering@redhat.com>
29488
29489         announce-gen: include [$release_type] in emitted Subject:
29490         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29491         e.g., [stable] in the emitted Subject: line.
29492
29493 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29494
29495         Remove obsolete macros from several modules.
29496         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29497         obsolete Autoconf macros with their modern counterparts.
29498         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29499         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29500         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29501         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29502         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29503         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29504         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29505         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29506         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29507         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29508         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29509         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29510         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29511         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29512         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29513         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29514         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29515         * m4/time_r.m4 (gl_TIME_R): Likewise.
29516         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29517         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29518         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29519
29520         Fix copyright header in build-aux scripts.
29521         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29522         recommendation.
29523         * build-aux/ncftpput-ftp: Likewise.
29524         * build-aux/update-copyright: Likewise.
29525
29526 2009-09-09  Eric Blake  <ebb9@byu.net>
29527
29528         test-link: allow Linux choice of errno
29529         * tests/test-link.c (main): Relax test for alternate error.
29530
29531         strndup: fix improper m4 caching
29532         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29533         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29534         (gl_PREREQ_STRNDUP): Delete.
29535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29536         * modules/string (Makefile.am): Substitute it.
29537         * lib/string.in.h (strndup): Modernize prototype.
29538
29539         getcwd: port to mingw
29540         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
29541         different from the POSIX assumptions made throughout the getcwd
29542         module; fortunately, the mingw getcwd does not need replacement.
29543         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
29544         * modules/getcwd-tests: New test.
29545         * tests/test-getcwd.c: Likewise.
29546
29547         link: fix platform bugs
29548         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
29549         * lib/link.c (link): Work around them.  Fix related mingw bug.
29550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
29551         * modules/unistd (Makefile.am): Substitute it.
29552         * lib/unistd.in.h (link): Declare replacement.
29553         * doc/posix-functions/link.texi (link): Document this.
29554         * modules/link (Depends-on): Add strdup-posix, sys_stat.
29555
29556         test-link: consolidate into single C program, test more cases
29557         * tests/test-link.sh: Delete.
29558         * tests/test-link.c: Test more error conditions.  Exposes bugs on
29559         at least Cygwin and Solaris.
29560         * modules/link-tests (Files): Remove unused file.
29561         (Depends-on): Add errno, sys_stat.
29562         (Makefile.am): Simplify.
29563
29564 2009-09-08  Bruno Haible  <bruno@clisp.org>
29565
29566         Work around towlower, towupper bug on mingw.
29567         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
29568         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
29569         * doc/posix-functions/towlower.texi: Mention the mingw bug.
29570         * doc/posix-functions/towupper.texi: Likewise.
29571         Reported by Eric Blake.
29572
29573 2009-09-08  Jim Meyering  <meyering@redhat.com>
29574
29575         build: don't try to run autoheader if we don't use it
29576         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
29577         is not used in configure.ac.
29578
29579 2009-09-08  Eric Blake  <ebb9@byu.net>
29580
29581         euidaccess: fix compilation error
29582         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
29583
29584         rawmemchr: relax license
29585         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
29586         okay.
29587         Reported by Jim Meyering.
29588
29589         mkfifoat: new module
29590         * modules/mkfifoat: New file.
29591         * lib/mkfifoat.c: Likewise.
29592         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
29593         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29594         * modules/sys_stat (Makefile.am): Use them.
29595         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
29596         * MODULES.html.sh (File system functions): Mention module.
29597         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29598         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29599         * modules/mkfifoat-tests: New test.
29600         * tests/test-mkfifoat.c: Likewise.
29601
29602         strchrnul: relax license
29603         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
29604         okay.
29605         Reported by Jim Meyering.
29606
29607 2009-09-08  Eric Blake  <ebb9@byu.net>
29608
29609         fstatat: fix compilation on Solaris
29610         * lib/fstatat.c (includes): Add fcntl.h.
29611         Reported by Pádraig Brady.
29612
29613 2009-09-07  Eric Blake  <ebb9@byu.net>
29614
29615         rename: modernize replacement
29616         * modules/rename (Depends-on): Add stdio.
29617         (configure.ac): Declare witness.
29618         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
29619         stdio take care of replacement.
29620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29621         * modules/stdio (Makefile.am): Substitute them.
29622         * lib/stdio.in.h (rename): Declare replacement.
29623         * lib/rename.c (includes): Allow cross-compilation to non-windows
29624         machines.
29625         * doc/posix-functions/rename.texi (rename): Improve
29626         documentation.
29627
29628         stdio: sort witness names
29629         * modules/stdio (Makefile.am): Sort replacements.
29630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29631         * lib/stdio.in.h: Likewise.
29632
29633         getcwd: minor cleanups
29634         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
29635         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
29636
29637         openat: provide more convenience names
29638         * modules/faccessat (configure.ac): Add C witness.
29639         * lib/unistd.in.h (readlinkat): Fix typo.
29640         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
29641         convenience wrappers.
29642         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
29643         wrappers in syntax checks.
29644
29645 2009-09-06  Eric Blake  <ebb9@byu.net>
29646
29647         doc: fix comments in recent patches
29648         * lib/faccessat.c: Mention correct function.
29649         * lib/fchmodat.c: Likewise.
29650         * lib/fchownat.c: Likewise.
29651         * lib/symlinkat.c: Likewise.
29652         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
29653         constants.
29654
29655         faccessat, symlinkat: continue cleanup of previous patch
29656         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
29657         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29658         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
29659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
29660         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
29661         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
29662         set.
29663
29664 2009-09-06  Bruno Haible  <bruno@clisp.org>
29665
29666         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
29667         (fstatat): Declare if GNULIB_FSTATAT is set.
29668         (mkdirat): Declare if GNULIB_MKDIRAT is set.
29669         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
29670         (unlinkat): Declare if GNULIB_UNLINKAT is set.
29671         * modules/fcntl-h (Files): Remove m4/openat.m4.
29672         * modules/sys_stat (Files): Remove m4/openat.m4.
29673         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
29674         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
29675         * modules/unistd (Files): Remove m4/openat.m4.
29676         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
29677         GNULIB_OPENAT.
29678         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
29679         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
29680         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
29681         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
29682         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
29683         gl_OPENAT_DEFAULTS.
29684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
29685         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
29686         Don't require gl_OPENAT_DEFAULTS.
29687         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
29688         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
29689         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
29690         (gl_OPENAT_DEFAULTS): Remove macro.
29691
29692 2009-09-06  Bruno Haible  <bruno@clisp.org>
29693
29694         * modules/openat (configure.ac): Remove unneeded witness.
29695
29696 2009-09-06  Bruno Haible  <bruno@clisp.org>
29697
29698         Set errno to ENOSYS when a function is entirely unsupported.
29699         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
29700         EOPNOTSUPP.
29701         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29702         * modules/chown (Depends-on): Remove errno.
29703
29704 2009-09-06  Bruno Haible  <bruno@clisp.org>
29705
29706         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
29707
29708 2009-09-06  Bruno Haible  <bruno@clisp.org>
29709
29710         * lib/sys_stat.in.h: Fix preprocessor command indentation.
29711
29712 2009-09-06  Ben Pfaff  <blp@gnu.org>
29713             Bruno Haible  <bruno@clisp.org>
29714
29715         Work around a glibc bug in strtok_r.
29716         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
29717         Undefine if UNDEFINE_STRTOK_R is set.
29718         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
29719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29720         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
29721         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
29722         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
29723         UNDEFINE_STRTOK_R.
29724         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
29725
29726 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29727
29728         exclude: minor fix
29729         * lib/exclude.c: Include wctype.h
29730
29731 2009-09-06  Akim Demaille  <demaille@gostai.com>
29732
29733         bootstrap: improve error message
29734         * build-aux/bootstrap (find_tool): Upon failure, report the list
29735         of candidates.
29736         Honor the initial value of the envvar.
29737
29738 2009-09-05  Eric Blake  <ebb9@byu.net>
29739
29740         symlinkat: new module
29741         * modules/symlinkat: New file.
29742         * lib/symlinkat.c: Likewise.
29743         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
29744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29745         * modules/unistd (Makefile.am): Use them.
29746         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
29747         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
29748         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
29749         * MODULES.html.sh (File system functions): Mention module.
29750         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29751         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29752         * modules/symlinkat-tests: New test.
29753         * tests/test-symlinkat.c: Likewise.
29754
29755         test-openat-safer: add more checks
29756         * tests/test-openat-safer.c (main): Check more code paths.
29757
29758 2009-09-05  Jim Meyering  <meyering@redhat.com>
29759
29760         syntax-check: detect unnecessary inclusion of openat.h
29761         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
29762
29763 2009-09-05  Bruno Haible  <bruno@clisp.org>
29764
29765         Support towlower, towupper.
29766         * doc/posix-functions/towlower.texi: Mention module wctype.
29767         * doc/posix-functions/towupper.texi: Likewise.
29768         * lib/wctype.in.h (towlower, towupper): New functions.
29769         * tests/test-wctype.c: Include stdio.h, stdlib.h.
29770         (ASSERT): New macro.
29771         (e): New variable.
29772         (main): Test also towlower, towupper. Test WEOF argument.
29773         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29774
29775 2009-09-05  Bruno Haible  <bruno@clisp.org>
29776
29777         Fix conversion behaviour when the input is invalid.
29778         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
29779         mark occurring in first pass of indirect conversion.
29780         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
29781         input.
29782         Found by clang's static analyzer.
29783
29784 2009-09-05  Bruno Haible  <bruno@clisp.org>
29785
29786         * tests/test-striconveh.c (main): Test indirect conversion on platforms
29787         where direct conversion is possible.
29788
29789 2009-09-04  Eric Blake  <ebb9@byu.net>
29790
29791         openat: fail with ENOENT on empty name
29792         * lib/openat-proc.c (openat_proc_name): Special-case the empty
29793         buffer.
29794
29795         link-follow: fix logic bug in prior patch
29796         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
29797         reversed sense of yes and no in prior patch.  Avoid confusing
29798         compilation failure with desired semantics.
29799
29800         link-follow: accomodate mingw and cross-compilation
29801         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
29802         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
29803         cross-compilation results to -1, to make linkat easier to
29804         implement when cross-compiling.  Trivially support mingw.
29805         * modules/link-follow (configure.ac): Call new name.
29806         * NEWS: Mention this.
29807
29808 2009-09-03  Eric Blake  <ebb9@byu.net>
29809
29810         faccessat: compile replacement
29811         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
29812         needed.
29813
29814         fts: fix compilation error
29815         * lib/fts.c (includes): Re-add "openat.h", for
29816         openat_needs_fchdir.
29817
29818         faccessat: new module
29819         * modules/faccessat: New file.
29820         * lib/faccessat.c: Likewise.
29821         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29823         * modules/unistd (Makefile.am): Use it.
29824         * lib/unistd.in.h (faccessat): Declare it.
29825         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
29826         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
29827         * MODULES.html.sh (File system functions): Mention it.
29828         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
29829         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29830
29831         euidaccess: prefer POSIX over non-standard implementation
29832         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
29833         * lib/euidaccess.c (euidaccess): Use it if available.
29834
29835         openat: make template easier to use
29836         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
29837         AT_FUNC_F2 to be undefined.
29838         (VALIDATE_FLAG): New macro; use it to reject bad flags.
29839         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
29840         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
29841         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
29842         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
29843         Likewise.
29844         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
29845         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
29846         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
29847         Likewise.
29848
29849         openat: declare in POSIX headers
29850         * NEWS: Mention this.
29851         * modules/openat (configure.ac): Declare witnesses.
29852         (Depends-on): Add fcntl-h, sys_stat, unistd.
29853         (Include): Mention correct headers.
29854         * modules/fcntl-h (Depends-on): Add link-warning.
29855         (Files): Add openat.m4.
29856         (Makefile.am): Substitute witnesses.
29857         * modules/sys_stat (Files, Makefile.am): Likewise.
29858         * modules/unistd (Files, Makefile.am): Likewise.
29859         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
29860         (gl_OPENAT_DEFAULTS): New macro.
29861         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
29862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
29863         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
29864         (SYS_STAT_H): Remove unused variable.
29865         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
29866         * lib/fcntl--.h (includes): Remove unneeded header.
29867         * lib/openat-safer.c (includes): Likewise.
29868         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
29869         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
29870         appropriate headers.
29871         (__OPENAT_PREFIX): Delete.
29872         * lib/fcntl.in.h (openat): Provide declaration.
29873         (AT_FDCWD): Fix Solaris bug.
29874         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
29875         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
29876         * lib/fchmodat.c (includes):  Adjust to find declaration.
29877         * lib/fchownat.c (includes): Likewise.
29878         * lib/mkdirat.c (includes): Likewise.
29879         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
29880         still visible.
29881
29882 2009-09-02  Eric Blake  <ebb9@byu.net>
29883
29884         errno: use consistently
29885         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
29886         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
29887         * lib/canonicalize.c (ELOOP): Likewise.
29888         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
29889         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
29890         * lib/lchown.c (EOPNOTSUPP): Likewise.
29891         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
29892         * lib/savewd.c (ESTALE): Likewise.
29893         * lib/settime.c (ENOSYS): Likewise.
29894         * lib/utimens.c (ENOSYS): Likewise.
29895         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
29896         * lib/chdir-safer.c (ELOOP): Likewise.
29897         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
29898         * modules/c-stack (Depends-on): Add errno.
29899         * modules/canonicalize (Depends-on): Likewise.
29900         * modules/chdir-safer (Depends-on): Likewise.
29901         * modules/fdopendir (Depends-on): Likewise.
29902         * modules/inet_ntop (Depends-on): Likewise.
29903         * modules/inet_pton (Depends-on): Likewise.
29904         * modules/lchown (Depends-on): Likewise.
29905         * modules/openat (Depends-on): Likewise.
29906         * modules/savewd (Depends-on): Likewise.
29907         * modules/settime (Depends-on): Likewise.
29908         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
29909
29910         fts: avoid leaking fds
29911         * modules/fts (Depends-on): Add cloexec.
29912         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
29913         flag.
29914
29915         fts: make directory fds more robust
29916         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
29917         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
29918
29919         backupfile, chdir-long, fts, savedir: make safer
29920         * lib/backupfile.c (includes): Use "dirent--.h", since
29921         numbered_backup can write to stderr during readdir.
29922         * lib/savedir.c (includes): Likewise.
29923         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
29924         emulation can write to stderr on failure.
29925         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
29926         * lib/getcwd.c: Document why opendir_safer is unused.
29927         * lib/glob.c: Likewise.
29928         * lib/scandir.c: Likewise.
29929         * lib/openat-proc.c: Likewise, for open_safer.
29930         * modules/backupfile (Depends-on): Add dirent-safer.
29931         * modules/savedir (Depends-on): Likewise.
29932         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
29933         * modules/chdir-long (Depends-on): Add openat-safer.
29934
29935         openat-safer: new module
29936         * modules/openat-safer: New file.
29937         * lib/openat-safer.c: Likewise.
29938         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
29939         * lib/fcntl-safer.h (openat_safer): Declare.
29940         * lib/fcntl--.h (openat): Override.
29941         * MODULES.html.sh (File descriptor based I/O): Mention it.
29942         * lib/openat.h: Add double-inclusion guards.
29943         * lib/openat.c (includes): Only include "fcntl-safer.h", not
29944         "fcntl--.h", so we can implement openat.
29945         * modules/openat-safer-tests: New test.
29946         * tests/test-openat-safer.c: New file.
29947
29948         dirent-safer: new module
29949         * modules/dirent-safer: New file.
29950         * lib/dirent--.h: Likewise.
29951         * lib/dirent-safer.h: Likewise.
29952         * lib/opendir-safer.c: Likewise.
29953         * m4/dirent-safer.m4: Likewise.
29954         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
29955         * modules/dirent-safer-tests: New test.
29956         * tests/test-dirent-safer.c: New file.
29957         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
29958
29959         fdopendir: optimize on mingw
29960         * lib/unistd.in.h (_gl_directory_name): New prototype.
29961         * lib/fchdir.c (_gl_directory_name): Implement it.
29962         (fchdir): Use it to simplify implementation.
29963         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
29964         fchdir, when available, to avoid calling [f]chdir().
29965
29966         fdopendir: split into its own module
29967         * lib/openat.c (fdopendir): Move...
29968         * lib/fdopendir.c: ...into new file.
29969         * modules/fdopendir: New module.
29970         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
29971         * modules/openat (Depends-on): Add fdopendir.
29972         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
29973         fdopendir here.
29974         * modules/savedir (Depends-on): Only need fdopendir, not full
29975         openat.
29976         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
29977         * lib/openat.h (fdopendir): Drop prototype.
29978         * lib/dirent.in.h (fdopendir): Provide prototype.
29979         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
29980         * modules/dirent (Makefile.am): Substitute them.
29981         * MODULES.html.sh (File system functions): Mention it.
29982         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
29983         * modules/fdopendir-tests: New file.
29984         * tests/test-fdopendir.c: Likewise.
29985
29986         fchdir: use more consistent macro convention
29987         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
29988         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
29989         REPLACE_FCHDIR, rather than relying on config.h macros.
29990         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
29991         inside a single make-time REPLACE_FCHDIR block, rather than using
29992         the config.h FCHDIR_REPLACEMENT.
29993         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
29994         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
29995         Manage fstat replacement.
29996         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
29997         REPLACE_FCHDIR.
29998         * modules/sys_stat (Files): Add m4/unistd_h.m4.
29999         (Makefile.am): Substitute REPLACE_FCHDIR.
30000         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30001         FCHDIR_REPLACEMENT.
30002         * lib/dup-safer.c (dup_safer): Likewise.
30003         * lib/dup2.c (rpl_dup2): Likewise.
30004         * lib/dup3.c (rpl_dup3): Likewise.
30005         * lib/open.c (rpl_open): Likewise.
30006
30007         fchdir: simplify error handling, and support dup3
30008         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30009         stdbool, malloc-posix, realloc-posix.
30010         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30011         (ensure_dirs_slot): Return false on allocation failure.
30012         (rpl_dup2): Delete.
30013         (_gl_register_dup): New function.
30014         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30015         (_gl_register_fd): Close fd on allocation failure.
30016         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30017         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30018         prototype.
30019         (rpl_dup2_fchdir): Delete prototype.
30020         * lib/open.c (open): Update caller.
30021         * lib/dup2.c (dup2): Track fchdir metadata.
30022         * lib/dup3.c (dup3): Likewise.
30023         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30025
30026 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30027
30028         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30029         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30030         don't pass arguments to AC_OUTPUT.
30031
30032 2009-09-02  Bruno Haible  <bruno@clisp.org>
30033
30034         * modules/mkdtemp (License): Relicense under LGPLv2+.
30035         Reported by Paolo Bonzini.
30036
30037 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30038
30039         Replace uses of obsolete autoconf macros in Jim's modules.
30040         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30041         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30042         can evoke a warning from autoconf when run with -Wobsolete
30043         enabled.  They were declared obsolete for good reasons (see
30044         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30045         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30046         should not continue using the deprecated macros.
30047         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30048         obsolete Autoconf macros with modern counterparts.
30049         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30050         * m4/dos.m4 (gl_AC_DOS): Likewise.
30051         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30052         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30053         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30054         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30055         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30056         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30057         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30058         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30059         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30060         Likewise.
30061         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30062         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30063         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30064         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30065         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30066         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30067
30068 2009-09-01  Eric Blake  <ebb9@byu.net>
30069
30070         fchdir: fix off-by-one bug in previous patch
30071         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30072         (_gl_unregister_fd): Delete useless if.
30073
30074 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30075
30076         maint.mk: sort the list of syntax-check rules
30077         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30078         easier to get a sense of progress when the rules are run sequentially
30079         and take a long time.
30080
30081 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30082
30083         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30084         * modules/netinet_in: Likewise.
30085         * modules/sys_file: Likewise.
30086         * modules/sys_ioctl: Likewise.
30087         * modules/sys_select: Likewise.
30088         * modules/sys_socket: Likewise.
30089         * modules/sys_stat: Likewise.
30090         * modules/sys_time: Likewise.
30091         * modules/sys_times: Likewise.
30092         * modules/sys_utsname: Likewise.
30093         * modules/sys_wait: Likewise.
30094
30095 2009-09-01  Jim Meyering  <meyering@redhat.com>
30096
30097         fts: help ensure that return values are not ignored
30098         * lib/fts_.h (__GNUC_PREREQ): Define.
30099         (__attribute_warn_unused_result__): Define.
30100         (fts_children, fts_close, fts_open, fts_read): Declare with
30101         __attribute_warn_unused_result__.
30102
30103         fts: fts_close now fails also when closing a dir file descriptor fails
30104         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30105         and propagate to caller, along with errno.
30106
30107         announce-gen: correct formatting in --help output
30108         * build-aux/announce-gen (usage): Move the one-line description in
30109         --help output "up", to where it belongs, just after Usage:.
30110
30111 2009-08-31  Eric Blake  <ebb9@byu.net>
30112
30113         fchdir: port to mingw
30114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30115         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30116         opened, then use a substitute.
30117         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30118         replacement.
30119         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30120         (_gl_register_fd): No need to check stat if open already filters
30121         all directories.
30122         (fchdir): Fix error condition to match POSIX.
30123         * modules/fchdir (Depends-on): Add sys_stat.
30124         * doc/posix-functions/open.texi (open): Document the limitation.
30125         * modules/fchdir-tests: New file.
30126         * tests/test-fchdir.c: Likewise.
30127
30128         canonicalize: allow cross-testing from cygwin to mingw
30129         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30130         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30131         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30132         Likewise.
30133         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30134         target does not support symlinks.
30135         * tests/test-canonicalize-lgpl.sh: Likewise.
30136
30137         chown: avoid compilation warning on mingw
30138         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30139         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30140         mingw.
30141         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30142         * modules/chown (Depends-on): Add errno.
30143
30144 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30145
30146         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30147         command.
30148
30149 2009-08-31  Jim Meyering  <meyering@redhat.com>
30150
30151         canonicalize: remove useless initialization
30152         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30153         initialization of local, "end".
30154
30155 2009-08-30  Bruno Haible  <bruno@clisp.org>
30156
30157         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30158         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30159         ENOSYS.
30160
30161 2009-08-30  Bruno Haible  <bruno@clisp.org>
30162
30163         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30164         /usr/xpg4/bin/tr when it exists.
30165         * tests/test-pipe-filter-gi1.sh: Likewise.
30166
30167 2009-08-30  Bruno Haible  <bruno@clisp.org>
30168
30169         Work around deficient /usr/bin/id program on Solaris.
30170         * tests/test-file-has-acl.sh (ID): New variable.
30171         * tests/test-set-mode-acl.sh (ID): Likewise.
30172         * tests/test-copy-acl.sh (ID): Likewise.
30173         * tests/test-copy-file.sh (ID): Likewise.
30174
30175 2009-08-30  Bruno Haible  <bruno@clisp.org>
30176
30177         New module 'xstriconveh'.
30178         * lib/xstriconveh.h: New file.
30179         * lib/xstriconveh.c: New file.
30180         * modules/xstriconveh: New file.
30181
30182 2009-08-30  Bruno Haible  <bruno@clisp.org>
30183
30184         Make it easier to use mem_cd_iconveh.
30185         * lib/striconveh.h (iconveh_t): New type.
30186         (iconveh_open, iconveh_close): New declarations.
30187         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30188         with a single 'const iconveh_t *' argument.
30189         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30190         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30191         with a single 'const iconveh_t *' argument.
30192         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30193         * tests/test-striconveh.c (main): Update.
30194         * NEWS: Mention the change.
30195
30196 2009-08-30  Bruno Haible  <bruno@clisp.org>
30197
30198         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30199         problem.
30200
30201 2009-08-30  Bruno Haible  <bruno@clisp.org>
30202
30203         Work around iconv_open problem on Solaris.
30204         * lib/iconv_open-solaris.gperf: New file.
30205         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30206         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30207         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30208         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30209         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30210         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30211
30212 2009-08-29  Jim Meyering  <meyering@redhat.com>
30213
30214         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30215         * top/maint.mk (cvs-check): Remove target; it was just an alias
30216         to the better-named vc-diff-check.
30217         (maintainer-distcheck): Remove rule.  It was used only from
30218         the (alpha/beta/major) target, and all of its commands but one
30219         were coreutils-specific.
30220         (vc-dist): Remove rule.
30221         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30222         Run vc-diff-check, not vc-dist.
30223         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30224
30225 2009-08-27  Bruno Haible  <bruno@clisp.org>
30226
30227         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30228         of 0.
30229
30230 2009-08-27  Bruno Haible  <bruno@clisp.org>
30231
30232         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30233         compilers.
30234         * doc/func.texi: Document the SunPRO C bug.
30235
30236 2009-08-27  Bruno Haible  <bruno@clisp.org>
30237
30238         Fix link error on Solaris.
30239         * tests/test-parse-duration.c (xstrdup): Remove function.
30240
30241 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30242
30243         ignore-value: handle pointer types, too
30244         * lib/ignore-value.h (__attribute__): Remove definition.
30245         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30246         of a more concise and more-often effective "(void) i" statement.
30247         (ignore_ptr): New function to suppress warnings from functions that
30248         return pointers, and to make it explicit that one function doesn't
30249         handle all cases.
30250
30251 2009-08-25  Bruno Haible  <bruno@clisp.org>
30252
30253         dup2: work around a Linux bug.
30254         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30255         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30256         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30257         Reported by Simon Josefsson.
30258
30259 2009-08-25  Jim Meyering  <meyering@redhat.com>
30260
30261         libguestfs uses gnulib
30262         * users.txt: Add libguestfs.
30263
30264 2009-08-24  Eric Blake  <ebb9@byu.net>
30265
30266         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30267         * lib/pipe2.c (includes): Add binary-io.h.
30268         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30269
30270 2009-08-24  Bruno Haible  <bruno@clisp.org>
30271
30272         Tolerate declared but missing accept4 syscall.
30273         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30274         available.
30275         * lib/sys_socket.in.h (accept4): If the function is already present,
30276         override it.
30277         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30278         * modules/accept4 (Makefile.am): Compile accept4.c always.
30279         Reported by Paolo Bonzini and Eric Blake.
30280
30281 2009-08-23  Bruno Haible  <bruno@clisp.org>
30282
30283         New module 'accept4'.
30284         * lib/sys_socket.in.h (accept4): New declaration.
30285         * lib/accept4.c: New file.
30286         * m4/accept4.m4: New file.
30287         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30288         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30289         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30290         HAVE_ACCEPT4.
30291         * modules/accept4: New file.
30292         * doc/glibc-functions/accept4.texi: Mention the new module.
30293
30294 2009-08-24  Jim Meyering  <meyering@redhat.com>
30295
30296         progname: also set global program_invocation_name, when possible
30297         Before this change, a libtool-enabled program that calls glibc's
30298         error function would report the program name as
30299         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30300         * modules/progname (configure.ac): Check for a declaration of
30301         program_invocation_name.
30302         * lib/progname.c:  Include <errno.h>.
30303         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30304         Set program_invocation_name.
30305
30306 2009-08-23  Bruno Haible  <bruno@clisp.org>
30307
30308         * lib/dup3.c: Include <string.h>.
30309
30310 2009-08-23  Bruno Haible  <bruno@clisp.org>
30311
30312         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30313         * lib/pipe2.c (pipe2): Likewise.
30314         Suggested by Eric Blake.
30315
30316 2009-08-23  Bruno Haible  <bruno@clisp.org>
30317
30318         Tolerate declared but missing dup3 syscall.
30319         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30320         * lib/unistd.in.h (dup3): If the function is already present,
30321         override it.
30322         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30323         * modules/dup3 (Makefile.am): Compile dup3.c always.
30324         Reported by Paolo Bonzini.
30325
30326 2009-08-23  Bruno Haible  <bruno@clisp.org>
30327
30328         Tolerate declared but missing pipe2 syscall.
30329         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30330         available.
30331         * lib/unistd.in.h (pipe2): If the function is already present,
30332         override it.
30333         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30334         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30335         Reported by Paolo Bonzini.
30336
30337 2009-08-23  Bruno Haible  <bruno@clisp.org>
30338
30339         * lib/pipe2.c (pipe2): Move #ifs inside function.
30340
30341 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30342
30343         quotearg: document limitations of quote_these_too
30344         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30345         those limitations are created.
30346         * lib/quotearg.h (set_char_quoting): Document that digits and
30347         letters that are special after backslash are not permitted.
30348         (quotearg_char): Cross-reference set_char_quoting documentation.
30349
30350 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30351
30352         quotearg: implement custom_quoting_style
30353         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30354         right_quote fields.
30355         (set_custom_quoting): New public function.
30356         (quotearg_buffer_restyled): Add left_quote and right_quote
30357         arguments, handle them very much like locale quoting, and update
30358         all uses.
30359         (quotearg_n_custom): New public function.
30360         (quotearg_n_custom_mem): New public function.
30361         (quotearg_custom): New public function.
30362         (quotearg_custom_mem): New public function.
30363         * lib/quotearg.h: Prototype and document new public functions.
30364         (enum quoting_style): For escape_quoting_style and
30365         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30366         ignored even though they're otherwise like c_quoting_style.
30367         Add custom_quoting_style member and document with comparison to
30368         clocale_quoting_style.
30369         * tests/test-quotearg.c (custom_quotes): New array.
30370         (custom_results): New array.
30371         (main): Extend to test custom quoting.
30372
30373 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30374
30375         quotearg: fix right quote escaping when it's in quote_these_too
30376         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30377         quote, be sure to prepend only one backslash.
30378         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30379         (main): Test it.
30380
30381 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30382
30383         quotearg-tests: test escaping of embedded locale quotes
30384         * tests/test-quotearg.c (struct result_strings): Add member for
30385         new input.
30386         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30387         (inputs): Add new input.
30388         (results_g): Add expected results.
30389         (flag_results): Likewise.
30390         (locale_results): Likewise.
30391         (compare_strings): Check those.
30392
30393 2009-08-23  Bruno Haible  <bruno@clisp.org>
30394
30395         Tests for module 'dup3'.
30396         * modules/dup3-tests: New file.
30397         * tests/test-dup3.c: New file.
30398
30399         New module 'dup3'.
30400         * lib/unistd.in.h (dup3): New declaration.
30401         * lib/dup3.c: New file.
30402         * m4/dup3.m4: New file.
30403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30404         HAVE_DUP3.
30405         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30406         * modules/dup3: New file.
30407         * doc/glibc-functions/dup3.texi: Mention the new module.
30408
30409 2009-08-23  Bruno Haible  <bruno@clisp.org>
30410
30411         Tweak the dup2 test.
30412         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30413         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30414         the test file is still empty. Fix argument order of lseek.
30415
30416 2009-08-23  Bruno Haible  <bruno@clisp.org>
30417
30418         Avoid test link errors when the modules getopt-gnu, gettext are used.
30419         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30421
30422 2009-08-23  Bruno Haible  <bruno@clisp.org>
30423
30424         Fix getdtablesize() on mingw.
30425         * lib/getdtablesize.c (getdtablesize): Implement differently.
30426         * lib/unistd.in.h (getdtablesize): Improve comment.
30427
30428 2009-08-23  Bruno Haible  <bruno@clisp.org>
30429
30430         New module 'mkostemp'.
30431         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30432         * lib/stdlib.in.h (mksotemp): New declaration.
30433         * lib/mkostemp.c: New file, from glibc with modifications.
30434         * lib/tempname.h (GT_FILE): Remove outdated comment.
30435         (gen_tempname): Add flags argument.
30436         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30437         (__GT_FILE): Map to 1.
30438         (small_open, large_open): Remove macros.
30439         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30440         * lib/mkstemp.c (mkstemp): Update.
30441         * lib/mkdtemp.c (mkdtemp): Likewise.
30442         * m4/mkostemp.m4: New file.
30443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30444         HAVE_MKOSTEMP.
30445         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30446         HAVE_MKOSTEMP.
30447         * modules/mkostemp: New file, based on modules/mkstemp.
30448         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30449         * NEWS: Mention the change.
30450
30451 2009-08-23  Bruno Haible  <bruno@clisp.org>
30452
30453         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
30454         Reported by Eric Blake.
30455
30456 2009-08-23  Bruno Haible  <bruno@clisp.org>
30457
30458         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
30459         Reported by Eric Blake.
30460
30461 2009-08-23  Bruno Haible  <bruno@clisp.org>
30462
30463         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
30464         * modules/pipe2 (Depends-on): Likewise.
30465
30466 2009-08-23  Eric Blake  <ebb9@byu.net>
30467
30468         fcntl-h: add O_TTY_INIT support
30469         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
30470         * tests/test-fcntl-h.c (o): Test it.
30471         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30472
30473         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30474         * modules/fcntl: Move <fcntl.h> header replacement...
30475         * modules/fcntl-h: ...to new name, so as not to collide with
30476         like-named function.
30477         * tests/test-fcntl.c: Rename...
30478         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30479         * modules/fcntl-tests: Rename...
30480         * modules/fcntl-h-tests: ...to this.  Update test file name.
30481         * modules/chdir-long (Depends-on): Update clients.
30482         * modules/chdir-safer (Depends-on): Likewise.
30483         * modules/fcntl-safer (Depends-on): Likewise.
30484         * modules/fts (Depends-on): Likewise.
30485         * modules/mkancesdirs (Depends-on): Likewise.
30486         * modules/mkdir-p (Depends-on): Likewise.
30487         * modules/open (Depends-on): Likewise.
30488         * modules/savewd (Depends-on): Likewise.
30489         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30490         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30491
30492 2009-08-22  Bruno Haible  <bruno@clisp.org>
30493
30494         * modules/binary-io (License): Relicense under LGPL.
30495         * modules/pipe2 (License): Likewise.
30496
30497 2009-08-22  Bruno Haible  <bruno@clisp.org>
30498
30499         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30500         return value.
30501         * lib/pipe-filter-gi.c (filter_init): Likewise.
30502         Reported by Eric Blake.
30503
30504 2009-08-22  Bruno Haible  <bruno@clisp.org>
30505
30506         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30507         * modules/pipe (Depends-on): Add pipe2.
30508
30509 2009-08-22  Bruno Haible  <bruno@clisp.org>
30510
30511         Tests for module 'pipe2'.
30512         * modules/pipe2-tests: New file.
30513         * tests/test-pipe2.c: New file.
30514
30515         New module 'pipe2'.
30516         * lib/unistd.in.h (pipe2): New declaration.
30517         * lib/pipe2.c: New file.
30518         * m4/pipe2.m4: New file.
30519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30520         HAVE_PIPE2.
30521         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30522         * modules/pipe2: New file.
30523         * doc/glibc-functions/pipe2.texi: Mention the new module.
30524
30525 2009-08-22  Bruno Haible  <bruno@clisp.org>
30526
30527         Reference some new glibc functions.
30528         * doc/glibc-functions/accept4.texi: New file.
30529         * doc/glibc-functions/dup3.texi: New file.
30530         * doc/glibc-functions/mkostemp.texi: New file.
30531         * doc/glibc-functions/pipe2.texi: New file.
30532         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30533         (Glibc sys/socket.h): Refer to accept4.
30534         (Glibc unistd.h): Refer to dup3, pipe2.
30535         Reported by Eric Blake.
30536
30537 2009-08-22  Jim Meyering  <meyering@redhat.com>
30538             Bruno Haible  <bruno@clisp.org>
30539
30540         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
30541         This makes it so packages using automake-1.11's silent-rules option
30542         can print e.g., a single "GEN    configmake.h" line, rather than
30543         the 30+ statements that perform the job.  If you want to see the
30544         actual commands, you can still run "make V=1".
30545         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
30546         so that make output is abbreviated when those variables are defined
30547         appropriately.
30548         * modules/argz: Likewise.
30549         * modules/arpa_inet: Likewise.
30550         * modules/byteswap: Likewise.
30551         * modules/configmake: Likewise.
30552         * modules/dirent: Likewise.
30553         * modules/errno: Likewise.
30554         * modules/fcntl: Likewise.
30555         * modules/float: Likewise.
30556         * modules/fnmatch: Likewise.
30557         * modules/getopt-posix: Likewise.
30558         * modules/glob: Likewise.
30559         * modules/iconv_open: Likewise.
30560         * modules/inttypes: Likewise.
30561         * modules/localcharset: Likewise.
30562         * modules/locale: Likewise.
30563         * modules/math: Likewise.
30564         * modules/netdb: Likewise.
30565         * modules/netinet_in: Likewise.
30566         * modules/poll: Likewise.
30567         * modules/posix_spawnp-tests: Likewise.
30568         * modules/sched: Likewise.
30569         * modules/search: Likewise.
30570         * modules/selinux-h: Likewise.
30571         * modules/signal: Likewise.
30572         * modules/spawn: Likewise.
30573         * modules/stdarg: Likewise.
30574         * modules/stdbool: Likewise.
30575         * modules/stddef: Likewise.
30576         * modules/stdint: Likewise.
30577         * modules/stdio: Likewise.
30578         * modules/stdlib: Likewise.
30579         * modules/string: Likewise.
30580         * modules/strings: Likewise.
30581         * modules/sys_file: Likewise.
30582         * modules/sys_ioctl: Likewise.
30583         * modules/sys_select: Likewise.
30584         * modules/sys_socket: Likewise.
30585         * modules/sys_stat: Likewise.
30586         * modules/sys_time: Likewise.
30587         * modules/sys_times: Likewise.
30588         * modules/sys_utsname: Likewise.
30589         * modules/sys_wait: Likewise.
30590         * modules/sysexits: Likewise.
30591         * modules/time: Likewise.
30592         * modules/unistd: Likewise.
30593         * modules/wchar: Likewise.
30594         * modules/wctype: Likewise.
30595
30596 2009-08-22  Jim Meyering  <meyering@redhat.com>
30597
30598         announce-gen: detect write failure
30599         * build-aux/announce-gen: Add Coda at end.
30600         Remove equivalent-but-more-verbose block at top.
30601
30602 2009-08-19  Akim Demaille  <demaille@gostai.com>
30603
30604         bootstrap: --help to stdout.
30605         * bootstrap (usage): Don't send --help to stderr.
30606         Use a here doc instead of a long string.
30607
30608 2009-08-21  Eric Blake  <ebb9@byu.net>
30609
30610         test-popen-safer: split from test-popen
30611         * tests/test-popen.c (main): Move...
30612         * tests/test-popen.h: ...into new file.
30613         * tests/test-popen-safer2.c: New file.
30614         * modules/popen-tests (Files): Add test-popen.h.
30615         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
30616         Suggested by Bruno Haible.
30617
30618         test-fcntl-safer: split from test-open
30619         * tests/test-open.c (main): Move...
30620         * tests/test-open.h: ...into new file.
30621         * tests/test-fcntl-safer.c: New file.
30622         * modules/open-tests (Files): Add test-open.h.
30623         * modules/fcntl-safer-tests: New file.
30624         Suggested by Bruno Haible.
30625
30626         test-fopen-safer: split from test-fopen
30627         * tests/test-fopen.c (main): Move...
30628         * tests/test-fopen.h: ...into new file.
30629         * tests/test-fopen-safer.c: New file.
30630         * modules/fopen-tests (Files): Add test-fopen.h.
30631         * modules/fopen-safer-tests: New file.
30632         Suggested by Bruno Haible.
30633
30634 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30635
30636         popen-safer: test O_CLOEXEC at run-time.
30637         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
30638
30639 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30640
30641         fcntl: move more flags to the header
30642         * lib/cloexec.c: Do not define FD_CLOEXEC here.
30643         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
30644         * lib/fcntl.in.h: Do both things here.
30645
30646 2009-08-21  Jim Meyering  <meyering@redhat.com>
30647
30648         consistently remove $@-t before redirecting to it
30649         * modules/argz: Remove $@-t and $@ before redirecting to the former.
30650         * modules/alloca-opt: Likewise.
30651         * modules/byteswap: Likewise.
30652         * modules/fnmatch: Likewise.
30653         * modules/getopt-posix: Likewise.
30654         * modules/glob: Likewise.
30655         * modules/poll: Likewise.
30656         * modules/posix_spawnp-tests: Likewise.
30657         * modules/sys_socket: Likewise.
30658         * modules/sysexits: Likewise.
30659
30660 2009-08-21  Eric Blake  <ebb9@byu.net>
30661
30662         popen: simplify access to original popen
30663         * lib/popen.c (rpl_popen): No need to worry about popen being a
30664         macro.
30665         Reported by Bruno Haible.
30666
30667 2009-08-20  Eric Blake  <ebb9@byu.net>
30668
30669         build: avoid some compiler warnings
30670         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
30671         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
30672         type.
30673         (new_exclude_segment, excluded_file_pattern_p)
30674         (excluded_file_name_p): Reduce scope.
30675         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
30676         old-style declaration.
30677
30678 2009-08-20  Simon Josefsson  <simon@josefsson.org>
30679
30680         * tests/test-exclude1.sh: Handle Windows EOL.
30681         * tests/test-exclude2.sh: Likewise.
30682         * tests/test-exclude3.sh: Likewise.
30683         * tests/test-exclude4.sh: Likewise.
30684         * tests/test-exclude5.sh: Likewise.
30685         * tests/test-exclude6.sh: Likewise.
30686         * tests/test-exclude7.sh: Likewise.
30687
30688 2009-08-19  Akim Demaille  <demaille@gostai.com>
30689
30690         bootstrap: find sha1sum when named gsha1sum.
30691         * bootstrap (find_tool): New.
30692         ($SHA1SUM): New.
30693         Use it.
30694
30695 2009-08-20  Jim Meyering  <meyering@redhat.com>
30696
30697         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
30698         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
30699         expression that converts "." in a file name to "\." in the resulting
30700         regexp.  Start with a dummy statement, so that prior shell variable
30701         definitions are expanded portably.  Reported by Simon Josefsson.
30702
30703 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
30704
30705         Fix polling for writeability of a screen buffer.
30706         * lib/poll.c: Distinguish input and screen buffers for the
30707         Win32 implementation.
30708         * lib/select.c: Likewise.
30709
30710 2009-08-19  Eric Blake  <ebb9@byu.net>
30711
30712         popen-safer: prevent popen from clobbering std descriptors
30713         * modules/popen-safer: New file.
30714         * lib/popen-safer.c: Likewise.
30715         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
30716         * lib/stdio--.h (popen): Provide override.
30717         * lib/stdio-safer.h (popen_safer): Provide declaration.
30718         * tests/test-popen.c (includes): Partially test this.
30719         * modules/popen-safer-tests: New file, for more tests.
30720         * tests/test-popen-safer.c: Likewise.
30721         * MODULES.html.sh (file stream based Input/Output): Mention it.
30722
30723         tests: test some of the *-safer modules
30724         * modules/fopen-safer (Depends-on): Add fopen.
30725         * modules/fcntl-safer (Depends-on): Add fcntl.
30726         * modules/stdlib-safer (Depends-on): Add stdlib.
30727         (configure.ac): Set indicator.
30728         * modules/unistd-safer (configure.ac): Likewise.
30729         * modules/tmpfile-safer (configure.ac): Likewise.
30730         (Depends-on): Add tmpfile.
30731         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
30732         active.
30733         * tests/test-fopen.c (includes): Test safer versions when they are
30734         in use.
30735         * tests/test-open.c (includes): Likewise.
30736
30737         popen: fix cygwin 1.5 bug when stdin closed
30738         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
30739         * modules/popen: New file.
30740         * modules/popen-tests: Likewise.
30741         * tests/test-popen.c: Likewise.
30742         * m4/popen.m4: Likewise.
30743         * lib/popen.c: Likewise.
30744         * lib/stdio.in.h (popen): New declaration.
30745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
30746         * modules/stdio (Makefile.am): Likewise.
30747         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
30748
30749 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
30750
30751         maint.mk: give full control over update-copyright exclusions
30752         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
30753         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
30754         (update-copyright): Don't force inclusion of top-level
30755         ChangeLog.  Don't force exclusion of all COPYING files, but make
30756         them the default exclusion instead.
30757
30758 2009-08-16  Bruno Haible  <bruno@clisp.org>
30759
30760         Fix test failures on Solaris 10.
30761         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
30762         tests when Solaris iconv() is used.
30763         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
30764         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
30765         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
30766         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
30767         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
30768
30769 2009-08-16  Bruno Haible  <bruno@clisp.org>
30770
30771         Fix test failures on Solaris 10.
30772         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
30773         'tr' program and pass it as first argument.
30774         * tests/test-pipe-filter-gi1.sh: Likewise.
30775         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
30776         program as first argument.
30777         * tests/test-pipe-filter-gi1.c (main): Likewise.
30778
30779 2009-08-16  Eric Blake  <ebb9@byu.net>
30780
30781         fpurge: fix previous commits
30782         * modules/fpurge (Makefile.am): Make replacement conditional,
30783         partially reverting 2007-04-29 change; missed in previous
30784         attempt.
30785         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
30786         is missing.
30787
30788 2009-08-16  Bruno Haible  <bruno@clisp.org>
30789
30790         Clarify fpurge's effect on the file position.
30791         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
30792         * tests/test-fpurge.c (main): Make a second pass for checking the file
30793         position.
30794
30795 2009-08-16  Bruno Haible  <bruno@clisp.org>
30796
30797         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
30798         declaration of fpurge is missing.
30799         * tests/test-fpurge.c (main): Check that the file has not more contents
30800         than expected. Close the file before removing it.
30801
30802 2009-08-15  Eric Blake  <ebb9@byu.net>
30803
30804         fpurge: don't wrap working cygwin implementation
30805         * lib/fpurge.c (fpurge): Fix comment typo.
30806         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
30807         1.7 to avoid replacement.
30808         * tests/test-fpurge.c (main): Enhance test.
30809
30810 2009-08-15  Eric Blake  <ebb9@byu.net>
30811         and Jim Meyering  <meyering@redhat.com>
30812
30813         test-update-copyright: skip if perl is insufficient
30814         * tests/test-update-copyright.sh: Failure to run maintainer tool
30815         should not cause testsuite failure on cygwin 1.5.
30816
30817 2009-08-14  Eric Blake  <ebb9@byu.net>
30818
30819         doc: mention more functions added in cygwin 1.7.0
30820         * doc/posix-headers/limits.texi (limits.h): Update for recent
30821         cygwin additions.
30822         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
30823         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
30824         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
30825         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
30826         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
30827
30828 2009-08-14  Eric Blake  <ebb9@byu.net>
30829
30830         maint.mk: simplify update-copyright rule
30831         * top/maint.mk (update-copyright-local): Delete, and document how
30832         to do it in cfg.mk instead.
30833         (update-copyright-exclude-regexp): Delete, and document how to do
30834         it in .x-update-copyright instead.
30835         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
30836         exclude ChangeLog.
30837
30838 2009-08-14  Bruno Haible  <bruno@clisp.org>
30839
30840         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
30841
30842 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30843
30844         maint.mk: support update-copyright-env
30845         * top/maint.mk (update-copyright-env): Define place-holder.
30846         (update-copyright): Expand $(update-copyright-env) before
30847         invoking update-copyright.
30848
30849 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30850
30851         update-copyright: implement forced reformatting
30852         * build-aux/update-copyright: Implement and document
30853         UPDATE_COPYRIGHT_FORCE.
30854         * tests/test-update-copyright.sh: Test it.
30855
30856 2009-08-14  Eric Blake  <ebb9@byu.net>
30857         and Bruno Haible  <bruno@clisp.org>
30858
30859         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
30860         * tests/test-locale.c: Revert previous patch related to NULL.
30861         * tests/test-stdio.c: Likewise.
30862         * tests/test-stdlib.c: Likewise.
30863         * tests/test-string.c: Likewise.
30864         * tests/test-unistd.c: Likewise.
30865         * modules/time-tests (Depends-on): Add verify.
30866         * modules/wchar-tests (Depends-on): Likewise.
30867         * tests/test-time.c: Test for NULL compliance.
30868         * tests/test-wchar.c: Likewise.
30869         * modules/locale (Depends-on): Add stddef.
30870         * modules/stdio (Depends-on): Likewise.
30871         * modules/stdlib (Depends-on): Likewise.
30872         * modules/string (Depends-on): Likewise.
30873         * modules/time (Depends-on): Likewise.
30874         * modules/unistd (Depends-on): Likewise.
30875         * modules/wchar (Depends-on): Likewise.
30876         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
30877         * lib/stdlib.in.h (includes): Likewise.
30878         * lib/string.in.h (includes): Likewise.
30879         * lib/time.in.h (includes): Likewise.
30880         * lib/unistd.in.h (includes): Likewise.
30881         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
30882         replaced.
30883         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30884         * m4/stddef_h.m4: New file.
30885         * modules/stddef: Likewise.
30886         * lib/stddef.in.h: Likewise.
30887         * modules/stddef-tests: Likewise.
30888         * tests/test-stddef.c: Likewise.
30889         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
30890         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
30891         * doc/posix-headers/locale.texi (locale.h): Likewise.
30892         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
30893         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30894         * doc/posix-headers/string.texi (string.h): Likewise.
30895         * doc/posix-headers/time.texi (time.h): Likewise.
30896         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
30897         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
30898
30899 2009-08-14  Eric Blake  <ebb9@byu.net>
30900
30901         doc: improve git diff of texinfo files
30902         * .gitattributes: Add rule for *.texi files, with hint on how to
30903         use it.
30904         Copied from m4, and based on a report by Bruno Haible.
30905
30906 2009-08-14  Bruno Haible  <bruno@clisp.org>
30907
30908         Disable multithread support by default on Cygwin 1.5.x for real.
30909         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
30910
30911 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30912
30913         update-copyright: much ado about intervals
30914         * build-aux/update-copyright: Implement and document
30915         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
30916         of copyright year intervals.
30917         Also, document UPDATE_COPYRIGHT_YEAR.
30918         * tests/test-update-copyright.sh: Test it.
30919
30920         update-copyright: convert 2-digit to 4-digit years
30921         * build-aux/update-copyright: Implement and document.
30922         * tests/test-update-copyright.sh: Update.
30923
30924 2009-08-14  Jim Meyering  <meyering@redhat.com>
30925
30926         test-exclude: avoid coreutils "make check" failure
30927         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
30928         just as in test-argmatch.c.
30929
30930 2009-08-13  Eric Blake  <ebb9@byu.net>
30931
30932         test-dup2: fix bad assumption
30933         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
30934         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
30935
30936         test-version-etc: fix CRLF portability issue
30937         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
30938         recognize \r.
30939         * tests/test-argp-version-etc-1.sh: Likewise.
30940
30941         getopt: update client modules
30942         * modules/argp (Depends-on): Use getopt-gnu.
30943         * modules/git-merge-changelog (Depends-on): Likewise.
30944         * modules/long-options (Depends-on): Likewise.
30945         * modules/xstrtol (Depends-on): Likewise.
30946
30947 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30948
30949         * tests/test-version-etc.sh: Don't fail on different
30950         project/version.  Don't fail on CRLF differences.  Rewrite to use
30951         multiple -e instead of multiple sed forks, suggested by Eric Blake
30952         <ebb9@byu.net>.
30953         * tests/test-argp-version-etc-1.sh: Likewise.
30954
30955 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30956
30957         * tests/test-version-etc.sh: Don't fail on different
30958         project/version.
30959
30960 2009-08-12  Bruno Haible  <bruno@clisp.org>
30961
30962         Tests for modules 'getopt-posix', 'getopt-gnu'.
30963         * modules/getopt-posix-tests: New file.
30964         * tests/test-getopt.c: New file.
30965         * tests/test-getopt.h: New file.
30966         * tests/test-getopt_long.h: New file.
30967
30968         New modules 'getopt-posix', 'getopt-gnu'.
30969         * modules/getopt-gnu: New file, renamed from modules/getopt.
30970         * modules/getopt-posix: New file.
30971         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
30972         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
30973         (gl_GETOPT): Remove macro.
30974         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
30975         Disable the test against BSD systems that declare optreset. Test
30976         against mingw bug. Test against lack of support of optional arguments
30977         on many platforms.
30978         * doc/glibc-headers/getopt.texi: Update module name and list of
30979         relevant platforms.
30980         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
30981         'getopt-gnu' and more portability problems.
30982         * NEWS: Mention the changes.
30983
30984 2009-08-12  Bruno Haible  <bruno@clisp.org>
30985
30986         Ensure that optarg etc. get declared by <unistd.h>.
30987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
30988         AC_USE_SYSTEM_EXTENSIONS.
30989         * modules/getopt (Depends-on): Add 'extensions'.
30990
30991 2009-08-12  Bruno Haible  <bruno@clisp.org>
30992
30993         Avoid test link errors.
30994         * modules/pipe-filter-ii-tests (Makefile.am): Define
30995         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
30996         * modules/pipe-filter-gi-tests (Makefile.am): Define
30997         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
30998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30999
31000 2009-08-12  Bruno Haible  <bruno@clisp.org>
31001
31002         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31003         gl_GETOPT_SUBSTITUTE before.
31004         (gl_GETOPT): Use it.
31005         * m4/argp.m4 (gl_ARGP): Update.
31006         Reported by Sergey Poznyakoff.
31007
31008         * m4/getopt.m4: Reorder macros.
31009         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31010         (gl_GETOPT_SUBSTITUTE): Remove macro.
31011
31012 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31013
31014         Minor improvement in gitlog-to-changelog
31015
31016         * build-aux/gitlog-to-changelog: New option `--format' makes
31017         output format string configurable.
31018
31019 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31020
31021         Optimize exclude: use hash tables for non-wildcard patterns.
31022
31023         * lib/exclude.c: Include hash.h and mbuiter.h
31024         (struct exclude_pattern, exclude_segment): New data types.
31025         (struct exclude): Rewrite.
31026         (fnmatch_pattern_has_wildcards): New function.
31027         (new_exclude_segment, free_exclude_segment): New functions.
31028         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31029         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31030         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31031         * modules/exclude: Depend on hash and mbuiter.
31032
31033         * modules/exclude-tests: New file.
31034         * tests/test-exclude.c: New file.
31035         * tests/test-exclude1.sh: New file.
31036         * tests/test-exclude2.sh: New file.
31037         * tests/test-exclude3.sh: New file.
31038         * tests/test-exclude4.sh: New file.
31039         * tests/test-exclude5.sh: New file.
31040         * tests/test-exclude6.sh: New file.
31041         * tests/test-exclude7.sh: New file.
31042
31043 2009-08-12  Bruno Haible  <bruno@clisp.org>
31044
31045         Ensure that getopt() gets declared by <unistd.h>.
31046         * lib/unistd.in.h: Conditionally include getopt.h.
31047         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31048         Set GNULIB_UNISTD_H_GETOPT.
31049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31050         GNULIB_UNISTD_H_GETOPT.
31051         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31052
31053 2009-08-12  Bruno Haible  <bruno@clisp.org>
31054
31055         Clarify logic.
31056         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31057         gl_replace_getopt instead of GETOPT_H.
31058
31059 2009-08-12  Bruno Haible  <bruno@clisp.org>
31060
31061         * m4/getopt.m4: Add comments.
31062
31063 2009-08-12  Bruno Haible  <bruno@clisp.org>
31064
31065         Disable multithread support by default on Cygwin 1.5.x.
31066         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31067         set gl_use_threads=no if not specified otherwise.
31068
31069 2009-08-11  Bruno Haible  <bruno@clisp.org>
31070
31071         Avoid compilation error on NetBSD 5.0.
31072         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31073         * tests/test-stdio.c: Likewise.
31074         * tests/test-stdlib.c: Likewise.
31075         * tests/test-string.c: Likewise.
31076         * tests/test-unistd.c: Likewise.
31077         Reported by Greg Troxel <gdt@ir.bbn.com>
31078         at <https://savannah.gnu.org/support/?106973>.
31079
31080 2009-08-11  Bruno Haible  <bruno@clisp.org>
31081
31082         * modules/dup2-tests (Depends-on): Remove close.
31083
31084         Undo 2009-07-19 commit.
31085         * modules/acl-tests (Depends-on): Remove close.
31086         * modules/binary-io-tests (Depends-on): Likewise.
31087         * modules/closein-tests (Depends-on): Likewise.
31088         * modules/flock-tests (Depends-on): Likewise.
31089         * modules/fsync-tests (Depends-on): Likewise.
31090         * modules/lseek-tests (Depends-on): Likewise.
31091         * modules/pipe-tests (Depends-on): Likewise.
31092         * modules/posix_spawn-tests (Depends-on): Likewise.
31093         * modules/posix_spawnp-tests (Depends-on): Likewise.
31094         * modules/stat-time-tests (Depends-on): Likewise.
31095         * modules/yesno-tests (Depends-on): Likewise.
31096
31097 2009-08-10  Bruno Haible  <bruno@clisp.org>
31098
31099         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31100
31101 2009-08-10  Bruno Haible  <bruno@clisp.org>
31102
31103         Fix a gcc warning.
31104         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31105
31106 2009-08-10  Bruno Haible  <bruno@clisp.org>
31107
31108         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31109         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31110         not only the first time.
31111         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31112         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31113         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31114         is 1, not only the the first time.
31115
31116 2009-08-10  Bruno Haible  <bruno@clisp.org>
31117
31118         Make it possible to use module 'gethostname' without module 'close'.
31119         * lib/unistd.in.h (close): Evoke a link error only if
31120         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31122         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31123         * modules/unistd (Makefile.am): Substitute
31124         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31125         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31126         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31127         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31128         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31129         * modules/sys_ioctl (Makefile.am): Substitute
31130         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31131         * modules/socket (configure.ac): On native Windows, set
31132         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31133         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31134         Reported by Sam Steingold <sds@gnu.org>.
31135
31136 2009-08-10  Bruno Haible  <bruno@clisp.org>
31137
31138         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31139         * modules/ioctl (configure.ac): Likewise.
31140
31141 2009-08-10  Bruno Haible  <bruno@clisp.org>
31142
31143         Avoid collision between gnulib wrapper and libintl wrapper.
31144         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31145         already defined in intl/printf.c.
31146         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31147         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31148
31149 2009-08-09  Bruno Haible  <bruno@clisp.org>
31150
31151         Make <sys/select.h> really self-contained, also on Solaris 10.
31152         * lib/sys_select.in.h: Include <string.h>.
31153         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31154         Solaris 10 problem.
31155         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31156         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31157         Reported by Jim Meyering.
31158
31159 2009-08-09  Bruno Haible  <bruno@clisp.org>
31160
31161         Avoid warnings from 'aclocal' that are due to a use of macro name
31162         AM_XGETTEXT_OPTION that is not defined in automake.
31163         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31164         automake.
31165         * modules/error (configure.ac): Likewise.
31166         * modules/propername (configure.ac): Likewise.
31167         * modules/vasprintf (configure.ac): Likewise.
31168         * modules/verror (configure.ac): Likewise.
31169         * modules/xprintf (configure.ac): Likewise.
31170         * modules/xvasprintf (configure.ac): Likewise.
31171
31172 2009-08-08  Bruno Haible  <bruno@clisp.org>
31173
31174         Avoid compilation error in C++ mode.
31175         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31176         Reported by Sam Steingold <sds@gnu.org>.
31177
31178 2009-08-08  Bruno Haible  <bruno@clisp.org>
31179
31180         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31181         for the various Unix platforms.
31182         * doc/posix-headers/limits.texi: Update platforms list regarding
31183         HOST_NAME_MAX.
31184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31185
31186 2009-08-07  Jim Meyering  <meyering@redhat.com>
31187
31188         selinux-at: fix typo in a comment
31189         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31190         Spotted by Paolo Bonzini.
31191
31192         selinux-at: remove redundant m4 code, add documentation
31193         * modules/selinux-at (configure.ac): Remove redundant code.
31194         LIB_SELINUX is already set via the dependent module, selinux-h.
31195         (Include): Add quotes around selinux-at.h.
31196         * lib/selinux-at.h: Add documentation.
31197         Reported by Bruno Haible in
31198         http://marc.info/?l=gnulib-bug&m=124958988300749
31199
31200 2009-08-07  Bruno Haible  <bruno@clisp.org>
31201
31202         Avoid link error on MacOS X 10.3 and 10.4.
31203         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31204         on non-ELF systems.
31205         * lib/argp-pv.c (argp_program_version): Likewise.
31206         Reported by Simon Josefsson.
31207
31208 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31209
31210         * tests/test-version-etc.sh: Use $EXEEXT.
31211
31212 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31213
31214         update-copyright: update documentation to point to maint.mk
31215         * build-aux/update-copyright: Here.
31216
31217 2009-08-06  Jim Meyering  <meyering@redhat.com>
31218
31219         maint.mk: support update-copyright-local
31220         * top/maint.mk (update-copyright-local): Define place-holder.
31221         (update-copyright): Depend on $(update-copyright-local).
31222
31223 2009-08-06  Jim Meyering  <meyering@redhat.com>
31224
31225         selinux-at: new module
31226         Initially written for coreutils, this module will soon be
31227         used by findutils, too.
31228         * MODULES.html.sh [Misc]: Add selinux-at.
31229         * lib/selinux-at.h: New file, from coreutils.
31230         * lib/selinux-at.c: Likewise.
31231         * modules/selinux-at: Likewise.
31232         (License): Change from LGPL to GPL, since it depends
31233         on the GPL'd openat module.
31234
31235         doc: update README
31236         * README: Remove references to cogito.
31237         Remove cvs-repo-updating instructions from 2007.
31238         Don't imply that CVS is better if you have limited disk space.
31239
31240 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31241
31242         update-copyright: support C-style comments
31243         * build-aux/update-copyright: Implement and document.
31244         * tests/test-update-copyright.sh: Test.
31245
31246 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31247
31248         update-copyright: support omitted "(C)"
31249         * build-aux/update-copyright: Implement and document.  Also,
31250         allow variable whitespace before "(C)".
31251         * tests/test-update-copyright.sh: Test.
31252
31253 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31254
31255         update-copyright: don't trip on non-FSF copyright statements
31256         * build-aux/update-copyright: Fix so that the first correctly
31257         formatted FSF copyright statement is recognized no matter what
31258         appears before it.  Update documentation.
31259         * tests/test-update-copyright.sh: Test that.
31260
31261 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31262
31263         update-copyright: clean up code a little
31264         * build-aux/update-copyright: Append "_re" to the name of any
31265         variable holding a regular expression.
31266         Replace "old" and "new" with "stmt" in variable names.
31267         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31268         handled correctly.
31269         Format code more consistently.
31270
31271 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31272
31273         update-copyright-tests: improve portability
31274         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31275         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31276
31277 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31278
31279         update-copyright: support @copyright{} and &copy;
31280         * build-aux/update-copyright: Implement and document.
31281         * tests/test-update-copyright.sh: Test.
31282
31283 2009-08-04  Jim Meyering  <meyering@redhat.com>
31284
31285         update-copyright-tests: correctly test EOL=\r\n handling
31286         * tests/test-update-copyright.sh: Put \r at the end of some lines
31287         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31288
31289         maint.mk: make update-copyright exclusion list more configurable
31290         * top/maint.mk (update-copyright): Default to excluding COPYING,
31291         but allow an override, in case someone does want to update that file.
31292
31293         maint.mk: don't update copyright date in COPYING
31294         * top/maint.mk (update-copyright): Exclude COPYING.
31295
31296         maint.mk: add a copyright-updating rule
31297         * top/maint.mk (update-copyright): New rule.
31298         Derived from coreutils/Makefile.am.
31299
31300         update-copyright: rename some variables
31301         * build-aux/update-copyright: Rename a few variables for clarity.
31302         Tweak syntax.  List Joel E. Denny as coauthor.
31303
31304 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31305
31306         update-copyright: fix bug for 2-digit last year and add tests
31307         * build-aux/update-copyright: Fix bug.
31308         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31309         specified.
31310         * modules/update-copyright-tests: New
31311         * tests/test-update-copyright.sh: New.
31312
31313 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31314
31315         update-copyright: handle leading tabs in line prefix
31316         * build-aux/update-copyright: Count leading tabs as 8 spaces
31317         when computing margin.  This helps with the formatting of
31318         ChangeLogs, for example.
31319         Fix documentation a little.
31320
31321 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31322
31323         update-copyright: support EOL=\r\n
31324         * build-aux/update-copyright: Implement that.
31325
31326 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31327
31328         update-copyright: automatically format copyright statements
31329         * build-aux/update-copyright: Implement that.
31330         Also, be a little more predictable and safer by always failing
31331         when the full copyright format is not perfectly recognized as an
31332         unbroken whole.  Discussed at
31333         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31334         Rewrite documentation.
31335
31336 2009-08-03  Bruno Haible  <bruno@clisp.org>
31337
31338         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31339
31340 2009-08-02  Bruno Haible  <bruno@clisp.org>
31341
31342         Tests for module 'uname'.
31343         * modules/uname-tests: New file.
31344         * tests/test-uname.c: New file.
31345
31346         New module 'uname'.
31347         * lib/uname.c: New file.
31348         * m4/uname.m4: New file.
31349         * modules/uname: New file.
31350         * doc/posix-functions/uname.texi: Mention the new module.
31351
31352 2009-08-02  Bruno Haible  <bruno@clisp.org>
31353
31354         Tests for module 'sys_utsname'.
31355         * modules/sys_utsname-tests: New file.
31356         * tests/test-sys_utsname.c: New file.
31357
31358         New module 'sys_utsname'.
31359         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31360         * m4/sys_utsname_h.m4: New file.
31361         * modules/sys_utsname: New file.
31362         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31363
31364 2009-08-02  Bruno Haible  <bruno@clisp.org>
31365
31366         Implicitly initialize the sockets library.
31367         * lib/gethostname.c: Include sockets.h.
31368         (rpl_gethostname): Invoke gl_sockets_startup.
31369         * lib/socket.c: Include sockets.h.
31370         (rpl_socket): Invoke gl_sockets_startup.
31371         * modules/gethostname (Depends-on): Add sockets.
31372         * modules/socket (Depends-on): Likewise.
31373         * tests/test-poll.c: Don't include sockets.h.
31374         (main): Don't invoke gl_sockets_startup.
31375         * tests/test-select.c: Don't include sockets.h.
31376         (main): Don't invoke gl_sockets_startup.
31377
31378 2009-08-02  Bruno Haible  <bruno@clisp.org>
31379
31380         Allow multiple calls to gl_sockets_startup.
31381         * lib/sockets.c (initialized_sockets_version): New variable.
31382         (gl_sockets_startup): Do nothing if already called for this or a higher
31383         version.
31384         (gl_sockets_cleanup): Reset initialized_sockets_version.
31385
31386 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31387
31388         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31389         different project/version.
31390
31391 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31392             Bruno Haible  <bruno@clisp.org>
31393
31394         Tests for module 'pipe-filter-gi'.
31395         * modules/pipe-filter-gi-tests: New file.
31396         * tests/test-pipe-filter-gi1.sh: New file.
31397         * tests/test-pipe-filter-gi1.c: New file.
31398         * tests/test-pipe-filter-gi2.sh: New file.
31399         * tests/test-pipe-filter-gi2-main.c: New file.
31400         * tests/test-pipe-filter-gi2-child.c: New file.
31401
31402         New module 'pipe-filter-gi'.
31403         * lib/pipe-filter-gi.c: New file.
31404         * modules/pipe-filter-gi: New file.
31405
31406 2009-08-02  Bruno Haible  <bruno@clisp.org>
31407             Paolo Bonzini  <bonzini@gnu.org>
31408
31409         Tests for module 'pipe-filter-ii'.
31410         * modules/pipe-filter-ii-tests: New file.
31411         * tests/test-pipe-filter-ii1.sh: New file.
31412         * tests/test-pipe-filter-ii1.c: New file.
31413         * tests/test-pipe-filter-ii2.sh: New file.
31414         * tests/test-pipe-filter-ii2-main.c: New file.
31415         * tests/test-pipe-filter-ii2-child.c: New file.
31416
31417         New module 'pipe-filter-ii'.
31418         * lib/pipe-filter.h: New file.
31419         * lib/pipe-filter-ii.c: New file.
31420         * lib/pipe-filter-aux.h: New file.
31421         * modules/pipe-filter-ii: New file.
31422
31423 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31424
31425         * lib/gc-libgcrypt.c: Change copyright to FSF.
31426         * lib/gc-gnulib.c: Likewise.
31427
31428 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31429
31430         * lib/gethostname.c: Include limits.h.
31431
31432 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31433             Bruno Haible  <bruno@clisp.org>
31434
31435         Ensure HOST_NAME_MAX as part of the gethostname module.
31436         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31437         define also HOST_NAME_MAX.
31438         * tests/test-gethostname.c: Include <limits.h>.
31439         (main): Check also HOST_NAME_MAX.
31440         * doc/posix-headers/limits.texi: Document the mingw problem.
31441
31442 2009-08-02  Bruno Haible  <bruno@clisp.org>
31443
31444         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31445         Add comments.
31446
31447 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31448
31449         * lib/gethostname.c: Add Windows wrapper.
31450         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31451         * modules/gethostname: Depend on sys_socket & errno, for also
31452         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
31453         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
31454
31455 2009-07-31  Jim Meyering  <meyering@redhat.com>
31456
31457         getloadavg: fix symbol name in comment
31458         * lib/getloadavg.c: Correct a typo I introduced when adding
31459         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
31460         Matt Kraai spotted the problem.
31461
31462 2009-07-29  Matt Kraai  <mkraai@beckman.com>
31463
31464         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
31465         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
31466         code also if ! defined N_NAME_POINTER.
31467         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
31468         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
31469         but the n_name member is a 12-byte array.
31470
31471 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31472
31473         update-copyright: generalize comment handling
31474         * build-aux/update-copyright: Handle copyright statements
31475         within more comment styles.
31476         Document usage.
31477         Report any file with an external copyright holder or parse failure.
31478
31479 2009-07-29  Jim Meyering  <meyering@redhat.com>
31480
31481         mktime: correct setting of REPLACE_MKTIME
31482         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31483
31484         update-copyright: new module
31485         * modules/update-copyright: New file.
31486         * build-aux/update-copyright: New file.
31487         * MODULES.html.sh (maint+release support): Add update-copyright.
31488
31489 2009-07-27  Bruno Haible  <bruno@clisp.org>
31490
31491         Fix compilation error when <ctime> is used and mktime is replaced.
31492         * lib/time.in.h (mktime): New declaration.
31493         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31494         REPLACE_MKTIME instead of defining mktime in config.h.
31495         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31496         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31497         Reported by Ross McFarland <rwmcfa1@neces.com>.
31498
31499 2009-07-27  Bruno Haible  <bruno@clisp.org>
31500
31501         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31502         Reported by Matt Kraai <mkraai@beckman.com>.
31503
31504 2009-07-25  Jim Meyering  <meyering@redhat.com>
31505
31506         maint.mk: avoid warnings about missing files
31507         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31508         diagnostic when .prev-version does not exist.
31509         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31510         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31511         nonexistent cfg.mk.
31512         Suggestions from Simon Josefsson.
31513
31514 2009-07-25  Bruno Haible  <bruno@clisp.org>
31515
31516         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31517         defined as macros. Needed on QNX 6.4.1.
31518         Reported by Matt Kraai <mkraai@beckman.com>.
31519
31520 2009-07-23  Jim Meyering  <meyering@redhat.com>
31521
31522         maint.mk: invoke "make dist" with a working value of XZ_OPT
31523         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31524
31525 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31526
31527         Make fseeko.c compile on QNX.
31528         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31529
31530 2009-07-22  Peter Simons  <simons@cryp.to>
31531
31532         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31533         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31534         * lib/md4.h: Likewise.
31535         * lib/md5.h: Likewise.
31536         * lib/sha1.h: Likewise.
31537         * lib/sha256.h: Likewise.
31538         * lib/sha512.h: Likewise.
31539
31540         tests-sha1: don't assign literal string to 'char *' variable
31541         * tests/test-sha1.c (main): Declare locals with "const" to match
31542         attributes of the right hand side.
31543
31544 2009-07-21  Eric Blake  <ebb9@byu.net>
31545
31546         dup2: fix more mingw problems
31547         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
31548         fd to itself.
31549         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31550         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
31551         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
31552         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
31553         care of mingw bugs.
31554
31555 2009-07-21  Jim Meyering  <meyering@redhat.com>
31556
31557         vc-list-files: avoid failure when /bin/sh is dash
31558         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
31559         On some Debian based systems, /bin/sh is a symlink to dash, and running
31560         this command would omit the "/" following each 'tests' prefix:
31561           dash -x build-aux/vc-list-files -C . tests
31562         That is because bash and dash work differently:
31563           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
31564           bash ok
31565           dash odd
31566
31567 2009-07-21  Eric Blake  <ebb9@byu.net>
31568
31569         dup2-tests: test previous patch
31570         * modules/dup2-tests: New file.
31571         * tests/test-dup2.c: Likewise.
31572         * tests/test-open.c (main): Avoid unspecified behavior.
31573         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
31574         test.
31575
31576         dup2: work around mingw and cygwin 1.5 bug
31577         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
31578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31579         * modules/unistd (Makefile.am): Substitute it.
31580         * lib/unistd.in.h (dup2): Declare the replacement.
31581         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
31582         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
31583         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
31584         * modules/execute (Depends-on): Add dup2.
31585         * modules/fseterr (Depends-on): Likewise.
31586         * modules/pipe (Depends-on): Likewise.
31587         * modules/posix_spawn-internal (Depends-on): Likewise.
31588
31589 2009-07-21  Bruno Haible  <bruno@clisp.org>
31590
31591         * modules/.gitattributes: New file.
31592
31593 2009-07-20  Bruno Haible  <bruno@clisp.org>
31594
31595         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
31596         (main): Use it.
31597
31598 2009-07-20  Eric Blake  <ebb9@byu.net>
31599
31600         test-pipe: make a bit more robust.
31601         * tests/test-pipe.c (myerr): Allow error messages regardless of
31602         what we do to stderr.
31603         (test_pipe): Rearrange to avoid deadlock.
31604         (child_main): Try a larger read, to ensure we avoided deadlock.
31605         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
31606         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
31607         if misused.
31608
31609 2009-07-19  Jim Meyering  <meyering@redhat.com>
31610
31611         fts: avoid false-positive cycle-detection
31612         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
31613         for each new command line argument.
31614
31615 2009-07-19  Bruno Haible  <bruno@clisp.org>
31616
31617         Fix build error on mingw with the modules sys_select and unistd.
31618         * modules/acl-tests (Depends-on): Add close.
31619         * modules/binary-io-tests (Depends-on): Likewise.
31620         * modules/closein-tests (Depends-on): Likewise.
31621         * modules/flock-tests (Depends-on): Likewise.
31622         * modules/fsync-tests (Depends-on): Likewise.
31623         * modules/lseek-tests (Depends-on): Likewise.
31624         * modules/pipe-tests (Depends-on): Likewise.
31625         * modules/posix_spawn-tests (Depends-on): Likewise.
31626         * modules/posix_spawnp-tests (Depends-on): Likewise.
31627         * modules/stat-time-tests (Depends-on): Likewise.
31628         * modules/yesno-tests (Depends-on): Likewise.
31629
31630 2009-07-19  Bruno Haible  <bruno@clisp.org>
31631
31632         Unify conditionals.
31633         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
31634         macros, not at the compiler macros.
31635         * lib/pipe.c: Likewise.
31636         * lib/execute.c: Likewise.
31637         * lib/spawni.c: Likewise.
31638
31639 2009-07-19  Bruno Haible  <bruno@clisp.org>
31640
31641         Fix handling of closed stdin/stdout/stderr on mingw.
31642         * lib/w32spawn.h: Include unistd.h.
31643         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
31644         file descriptor with O_NOINHERIT flag.
31645         (fd_safer_noinherit): New function, based on fd-safer.c.
31646         (dup_safer_noinherit): New function, based on dup-safer.c.
31647         (undup_safer_noinherit): New function.
31648         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
31649         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
31650         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
31651         instead of fd_safer.
31652         * tests/test-pipe.c: Include <windows.h>.
31653         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
31654         result.
31655
31656         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
31657         from main.
31658         (test_pipe): Pass an extra argument for disambiguation.
31659         (main): Invoke parent_main or child_main.
31660
31661         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
31662         consistently.
31663
31664 2009-07-18  Eric Blake  <ebb9@byu.net>
31665
31666         test-pipe: fix mingw build
31667         * tests/test-pipe.c (main): Avoid fcntl on mingw.
31668
31669 2009-07-18  Bruno Haible  <bruno@clisp.org>
31670
31671         * modules/pipe-tests (Makefile.am): Fix typo.
31672
31673 2009-07-18  Eric Blake  <ebb9@byu.net>
31674
31675         error: fix mingw build
31676         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
31677         Reported by Bruno Haible.
31678
31679         error: avoid undefined use of stdout
31680         * lib/error.c (error, error_at_line): Check that fd 1 is open
31681         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
31682         is handling faults and the close_stdout module wants to report the
31683         detection of closed stdout as an error.
31684
31685 2009-07-17  Eric Blake  <ebb9@byu.net>
31686
31687         pipe: be robust in face of closed fds
31688         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
31689         should cause child to misbehave.
31690         * modules/pipe-tests: New module.
31691         * tests/test-pipe.c: New file.
31692         * tests/test-pipe.sh: New file.
31693         Reported by Akim Demaille.
31694
31695 2009-07-14  Bruno Haible  <bruno@clisp.org>
31696
31697         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
31698         Reported by anonymous kc.
31699
31700 2009-07-07  Jim Meyering  <meyering@redhat.com>
31701
31702         maint.mk: don't look for translatable strings in *.m4 or *.mk
31703         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
31704         when searching for translatable strings.
31705
31706 2009-07-05  Jim Meyering  <meyering@redhat.com>
31707
31708         remove superfluous parentheses in STREQ definition
31709         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
31710         * lib/getugroups.c (STREQ): Likewise.
31711         * lib/fnmatch.c (STREQ): Likewise.
31712         Spotted by Bruno Haible.
31713
31714 2009-07-04  Jim Meyering  <meyering@redhat.com>
31715
31716         argv-iter: new module
31717         * MODULES.html.sh: Add argv-iter.
31718         * lib/argv-iter.c, lib/argv-iter.h: New files.
31719         * modules/argv-iter: New file.
31720         * modules/argv-iter-tests: New file.
31721         * tests/test-argv-iter.c: Test it.
31722
31723 2009-07-04  Bruno Haible  <bruno@clisp.org>
31724
31725         Fix assertion.
31726         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
31727         contains more exact copies of a given entry than file2, leave the extra
31728         copies unpaired rather than aborting.
31729         Reported by Eric Blake.
31730
31731 2009-07-02  Bruno Haible  <bruno@clisp.org>
31732
31733         Speedup git-merge-changelog for git cherry-pick.
31734         * lib/git-merge-changelog.c (struct entries_mapping): New type.
31735         (entries_mapping_get): New function, extracted from compute_mapping.
31736         (entries_mapping_reverse_get): New function.
31737         (compute_mapping): Add a 'full' argument. Return the result in a
31738         'struct entries_mapping'.
31739         (main): Update. Access the mappings through entries_mapping_get.
31740         Reported by Eric Blake.
31741
31742 2009-07-02  Bruno Haible  <bruno@clisp.org>
31743
31744         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
31745         best_i.
31746
31747 2009-07-02  Bruno Haible  <bruno@clisp.org>
31748
31749         Speed up approximate search for matching ChangeLog entries.
31750         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
31751         argument. Call fstrcmp_bounded instead of fstrcmp.
31752         (compute_mapping, try_split_merged_entry, main): Update callers.
31753
31754 2009-07-02  Bruno Haible  <bruno@clisp.org>
31755
31756         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
31757
31758 2009-06-30  Bruno Haible  <bruno@clisp.org>
31759
31760         Reduce the number of uc_is_cased calls.
31761         * lib/unicase.h (casing_suffix_context_t): Add
31762         'first_char_except_ignorable' field.
31763         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
31764         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
31765         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
31766         Update initializer.
31767         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
31768         case-ignorable characters.
31769         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
31770         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
31771         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
31772         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
31773         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
31774
31775 2009-06-30  Bruno Haible  <bruno@clisp.org>
31776
31777         Tests for module 'unicase/ignorable'.
31778         * modules/unicase/ignorable-tests: New file.
31779         * tests/unicase/test-ignorable.c: New file, generated by
31780         gen-uni-tables.
31781
31782         Tests for module 'unicase/cased'.
31783         * modules/unicase/cased-tests: New file.
31784         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
31785         * tests/unicase/test-predicate-part1.h: New file, derived from
31786         tests/unictype/test-predicate-part1.h.
31787         * tests/unicase/test-predicate-part2.h: New file, same as
31788         tests/unictype/test-predicate-part2.h.
31789
31790         Fix evaluation of "Before C" condition of FINAL_SIGMA.
31791         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
31792         (output_casing_properties): New function.
31793         (main): Call it.
31794         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
31795         * lib/unicase/cased.c: Include unictype/bitmap.h.
31796         (uc_is_cased): Define through a bitmap lookup.
31797         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
31798         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
31799         (uc_is_case_ignorable): Define through a bitmap lookup.
31800         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
31801         lib/unictype/bitmap.h.
31802         (Depends-on): Add inline. Clean up.
31803         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
31804         lib/unictype/bitmap.h.
31805         (Depends-on): Add inline. Clean up.
31806         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
31807         recognition.
31808         * tests/unicase/test-u16-tolower.c (main): Likewise.
31809         * tests/unicase/test-u32-tolower.c (main): Likewise.
31810
31811 2009-06-30  Bruno Haible  <bruno@clisp.org>
31812
31813         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
31814         * lib/unicase/u16-casemap.c: Likewise.
31815         * lib/unicase/u32-casemap.c: Likewise.
31816
31817 2009-06-29  Bruno Haible  <bruno@clisp.org>
31818
31819         Define u32_casefold as a wrapper around u32_ct_casefold.
31820         * lib/unicase/u32-casefold.c: Update.
31821         * modules/unicase/u32-casefold (Depends-on): Add
31822         unicase/u32-ct-casefold, unicase/empty-prefix-context,
31823         unicase/empty-suffix-context. Clean up.
31824
31825         Define u16_casefold as a wrapper around u16_ct_casefold.
31826         * lib/unicase/u16-casefold.c: Update.
31827         * modules/unicase/u16-casefold (Depends-on): Add
31828         unicase/u16-ct-casefold, unicase/empty-prefix-context,
31829         unicase/empty-suffix-context. Clean up.
31830
31831         Define u8_casefold as a wrapper around u8_ct_casefold.
31832         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
31833         * lib/unicase/u8-casefold.c: Update.
31834         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
31835         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31836
31837         Define u32_totitle as a wrapper around u32_ct_totitle.
31838         * lib/unicase/u32-totitle.c: Update.
31839         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
31840         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31841
31842         Define u16_totitle as a wrapper around u16_ct_totitle.
31843         * lib/unicase/u16-totitle.c: Update.
31844         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
31845         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31846
31847         Define u8_totitle as a wrapper around u8_ct_totitle.
31848         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
31849         functions.
31850         (FUNC): Delegate to U_CT_TOTITLE.
31851         * lib/unicase/u8-totitle.c: Update.
31852         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
31853         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31854
31855         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
31856         invocation.
31857         * modules/unicase/u32-tolower (Depends-on): Add
31858         unicase/empty-prefix-context, unicase/empty-suffix-context.
31859
31860         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
31861         invocation.
31862         * modules/unicase/u16-tolower (Depends-on): Add
31863         unicase/empty-prefix-context, unicase/empty-suffix-context.
31864
31865         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
31866         * modules/unicase/u8-tolower (Depends-on): Add
31867         unicase/empty-prefix-context, unicase/empty-suffix-context.
31868
31869         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
31870         invocation.
31871         * modules/unicase/u32-toupper (Depends-on): Add
31872         unicase/empty-prefix-context, unicase/empty-suffix-context.
31873
31874         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
31875         invocation.
31876         * modules/unicase/u16-toupper (Depends-on): Add
31877         unicase/empty-prefix-context, unicase/empty-suffix-context.
31878
31879         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
31880         * modules/unicase/u8-toupper (Depends-on): Add
31881         unicase/empty-prefix-context, unicase/empty-suffix-context.
31882
31883         New module 'unicase/u32-ct-casefold'.
31884         * lib/unicase/u32-ct-casefold.c: New file.
31885         * modules/unicase/u32-ct-casefold: New file.
31886
31887         New module 'unicase/u16-ct-casefold'.
31888         * lib/unicase/u16-ct-casefold.c: New file.
31889         * modules/unicase/u16-ct-casefold: New file.
31890
31891         New module 'unicase/u8-ct-casefold'.
31892         * lib/unicase/u8-ct-casefold.c: New file.
31893         * lib/unicase/u-ct-casefold.h: New file, derived from
31894         lib/unicase/u-casefold.h.
31895         * modules/unicase/u8-ct-casefold: New file.
31896
31897         New module 'unicase/u32-ct-totitle'.
31898         * lib/unicase/u32-ct-totitle.c: New file.
31899         * modules/unicase/u32-ct-totitle: New file.
31900
31901         New module 'unicase/u16-ct-totitle'.
31902         * lib/unicase/u16-ct-totitle.c: New file.
31903         * modules/unicase/u16-ct-totitle: New file.
31904
31905         New module 'unicase/u8-ct-totitle'.
31906         * lib/unicase/u8-ct-totitle.c: New file.
31907         * lib/unicase/u-ct-totitle.h: New file, derived from
31908         lib/unicase/u-totitle.h.
31909         * modules/unicase/u8-ct-totitle: New file.
31910
31911         New module 'unicase/u32-ct-tolower'.
31912         * lib/unicase/u32-ct-tolower.c: New file.
31913         * modules/unicase/u32-ct-tolower: New file.
31914
31915         New module 'unicase/u16-ct-tolower'.
31916         * lib/unicase/u16-ct-tolower.c: New file.
31917         * modules/unicase/u16-ct-tolower: New file.
31918
31919         New module 'unicase/u8-ct-tolower'.
31920         * lib/unicase/u8-ct-tolower.c: New file.
31921         * modules/unicase/u8-ct-tolower: New file.
31922
31923         New module 'unicase/u32-ct-toupper'.
31924         * lib/unicase/u32-ct-toupper.c: New file.
31925         * modules/unicase/u32-ct-toupper: New file.
31926
31927         New module 'unicase/u16-ct-toupper'.
31928         * lib/unicase/u16-ct-toupper.c: New file.
31929         * modules/unicase/u16-ct-toupper: New file.
31930
31931         New module 'unicase/u8-ct-toupper'.
31932         * lib/unicase/u8-ct-toupper.c: New file.
31933         * modules/unicase/u8-ct-toupper: New file.
31934
31935         Add context arguments to u*_casemap functions.
31936         * lib/unicase/unicasemap.h: Include unicase.h.
31937         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
31938         suffix_context arguments.
31939         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
31940         functions.
31941         (FUNC): Add prefix_context and suffix_context arguments. Use
31942         uc_is_cased and uc_is_case_ignorable.
31943         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
31944         * lib/unicase/u16-casemap.c: Likewise.
31945         * lib/unicase/u32-casemap.c: Likewise.
31946         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
31947         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31948         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
31949         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31950         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
31951         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31952
31953         New module 'unicase/u32-suffix-context'.
31954         * lib/unicase/u32-suffix-context.c: New file.
31955         * modules/unicase/u32-suffix-context: New file.
31956
31957         New module 'unicase/u16-suffix-context'.
31958         * lib/unicase/u16-suffix-context.c: New file.
31959         * modules/unicase/u16-suffix-context: New file.
31960
31961         New module 'unicase/u8-suffix-context'.
31962         * lib/unicase/u8-suffix-context.c: New file.
31963         * lib/unicase/u-suffix-context.h: New file.
31964         * modules/unicase/u8-suffix-context: New file.
31965
31966         New module 'unicase/empty-suffix-context'.
31967         * lib/unicase/empty-suffix-context.c: New file.
31968         * modules/unicase/empty-suffix-context: New file.
31969
31970         New module 'unicase/u32-prefix-context'.
31971         * lib/unicase/u32-prefix-context.c: New file.
31972         * modules/unicase/u32-prefix-context: New file.
31973
31974         New module 'unicase/u16-prefix-context'.
31975         * lib/unicase/u16-prefix-context.c: New file.
31976         * modules/unicase/u16-prefix-context: New file.
31977
31978         New module 'unicase/u8-prefix-context'.
31979         * lib/unicase/u8-prefix-context.c: New file.
31980         * lib/unicase/u-prefix-context.h: New file.
31981         * lib/unicase/context.h: New file.
31982         * modules/unicase/u8-prefix-context: New file.
31983
31984         New module 'unicase/empty-prefix-context'.
31985         * lib/unicase/empty-prefix-context.c: New file.
31986         * modules/unicase/empty-prefix-context: New file.
31987
31988         New module 'unicase/ignorable'.
31989         * lib/unicase/ignorable.c: New file.
31990         * modules/unicase/ignorable: New file.
31991
31992         New module 'unicase/cased'.
31993         * lib/unicase/caseprop.h: New file.
31994         * lib/unicase/cased.c: New file.
31995         * modules/unicase/cased: New file.
31996
31997         New functions for case mapping of substrings.
31998         * lib/unicase.h (casing_prefix_context_t): New type.
31999         (unicase_empty_prefix_context): New variable.
32000         (u8_casing_prefix_context, u16_casing_prefix_context,
32001         u32_casing_prefix_context, u8_casing_prefixes_context,
32002         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32003         declarations.
32004         (casing_suffix_context_t): New type.
32005         (unicase_empty_suffix_context): New variable.
32006         (u8_casing_suffix_context, u16_casing_suffix_context,
32007         u32_casing_suffix_context, u8_casing_suffixes_context,
32008         u16_casing_suffixes_context, u32_casing_suffixes_context,
32009         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32010         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32011         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32012         declarations.
32013
32014 2009-06-28  Jim Meyering  <meyering@redhat.com>
32015
32016         boostrap: indent only with spaces
32017         * build-aux/bootstrap: Indent only with spaces, never TABs.
32018
32019         bootstrap: split long lines
32020         * build-aux/bootstrap: Keep line length < 80.
32021
32022         bootstrap: sync from coreutils
32023         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32024         just as autoreconf does.  Verify a list of prerequisite
32025         package-name,version-number pairs if defined in bootstrap.conf.
32026         Refer to README-prereq, if prerequisites are not satisfied.
32027
32028 2009-06-27  Eric Blake  <ebb9@byu.net>
32029
32030         tests: add test for bogus NULL definition
32031         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32032         * tests/test-stdlib.c: Likewise.
32033         * tests/test-string.c: Likewise.
32034         * tests/test-locale.c: Likewise.
32035         * tests/test-unistd.c: Likewise.
32036         * modules/stdio-tests (Depends-on): Add verify.
32037         * modules/stdlib-tests (Depends-on): Likewise.
32038         * modules/string-tests (Depends-on): Likewise.
32039         * modules/locale-tests (Depends-on): Likewise.
32040         * modules/unistd-tests (Depends-on): Likewise.
32041
32042 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32043
32044         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32045         self-explaining comment.
32046         * m4/selinux-selinux-h: Update serial.
32047         (gl_LIBSELINUX): New macro, adding a warning for missing development
32048         packages to code extracted from...
32049         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32050         Add warning for missing development packages here, too.
32051
32052 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32053
32054         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32055
32056 2009-06-25  Eric Blake  <ebb9@byu.net>
32057
32058         version-etc: fix regression
32059         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32060         gcc.
32061         (version_etc): Use it, to catch bugs with trailing NULL.
32062         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32063         (version_etc_va): Fix logic bug.
32064         * modules/version-etc-tests: Add test.
32065         * tests/test-version-etc.c: New file.
32066         * tests/test-version-etc.sh: Likewise.
32067
32068 2009-06-25  Sam Steingold  <sds@gnu.org>
32069
32070         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32071         mbtowc declaration.
32072
32073 2009-06-25  Eric Blake  <ebb9@byu.net>
32074
32075         fpurge: migrate into <stdio.h>
32076         * lib/fpurge.h: Delete...
32077         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32078         * lib/fpurge.c (fpurge): Change declaring header.
32079         * modules/fpurge (Files): Drop deleted file.
32080         (Depends-on): Add stdio.
32081         (configure.ac): Set witness.
32082         * modules/stdio (Makefile.am): Support fpurge macros.
32083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32084         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32085         * lib/fflush.c: Update client.
32086         * tests/test-fpurge.c: Likewise.
32087         * NEWS: Mention the change.
32088
32089 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32090
32091         * lib/argp-version-etc.c (program_authors): Add const
32092         qualifier.
32093         * lib/version-etc.c: Fix typos in the comments.
32094         * modules/argp-version-etc: Depends on version-etc.
32095
32096 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32097
32098         argp-version-etc: new module.
32099
32100         * lib/argp-version-etc.c: New file.
32101         * lib/argp-version-etc.h: New file.
32102         * modules/argp-version-etc: New file.
32103         * modules/argp-version-etc-tests: New file.
32104         * tests/test-argp-version-etc.c: New test.
32105         * tests/test-argp-version-etc-1.sh: New test.
32106
32107 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32108
32109         Provide additional interfaces and documentation for version-etc
32110         module.
32111
32112         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32113         interfaces.
32114         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32115         prototypes.
32116
32117 2009-06-24  Bruno Haible  <bruno@clisp.org>
32118
32119         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32120         HAVE_LIB${NAME} macro.
32121         Reported by Sam Steingold <sds@gnu.org>.
32122
32123 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32124
32125         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32126         needed.
32127
32128 2009-06-21  Bruno Haible  <bruno@clisp.org>
32129
32130         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32131         work.
32132         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32133         together with LIB${NAME}, LTLIB${NAME}.
32134         Reported by Sam Steingold <sds@gnu.org>.
32135
32136 2009-06-20  Jim Meyering  <meyering@redhat.com>
32137
32138         tests: make sc_require_test_exit_idiom more generic
32139         * top/maint.mk (Exit_witness_file): New overridable variable.
32140         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32141         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32142
32143 2009-06-19  Jim Meyering  <meyering@redhat.com>
32144
32145         hash: reverse order of src/dst parameters in an internal interface
32146         * lib/hash.c (transfer_entries): Reverse order of parameters to
32147         put DST before SRC.  Adjust callers.
32148
32149         tests: test-hash: avoid wholesale duplication
32150         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32151         Instead, use a loop and add a single conditional.
32152
32153         tests: test-hash: allow seed selection via a command line argument
32154         * tests/test-hash.c (get_seed): New function.
32155         (main): Use it.
32156
32157 2009-06-19  Eric Blake  <ebb9@byu.net>
32158
32159         hash: avoid memory leak on allocation failure
32160         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32161         failure.  Factor repeated algorithm...
32162         (transfer_entries): ...into new helper routine.
32163         (hash_delete): React to hash_rehash return value.
32164
32165         hash: reduce memory pressure in hash_rehash no-op case
32166         * lib/hash.c (next_prime): Avoid overflow.
32167         (hash_initialize): Factor bucket size computation...
32168         (compute_bucket_size): ...into new helper function.
32169         (hash_rehash): Use new function and open coding to reduce memory
32170         pressure, and avoid a memory leak in USE_OBSTACK code.
32171         Reported by Jim Meyering.
32172
32173 2009-06-18  Eric Blake  <ebb9@byu.net>
32174
32175         hash: make rotation more obvious
32176         * modules/hash (Depends-on): Add bitrotate and stdint.
32177         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32178         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32179         (SIZE_MAX): Rely on headers for definition.
32180         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32181         (raw_hasher): Use rotr_sz.
32182         Suggested by Jim Meyering.
32183
32184         hash: fix memory leak in last patch
32185         * lib/hash.c (hash_rehash): Avoid memory leak.
32186
32187         hash: avoid no-op rehashing
32188         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32189
32190         hash: provide default callback functions
32191         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32192         (hash_initialize): Use them as defaults.
32193         * tests/test-hash.c (main): Test this.
32194
32195         hash: minor optimization
32196         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32197         when possible.
32198         (hash_initialize): Document this promise.
32199         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32200         * tests/test-hash.c (hash_compare_strings): Test this.
32201
32202 2009-06-18  Bruno Haible  <bruno@clisp.org>
32203
32204         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32205         going to be replaced anyway.
32206
32207 2009-06-18  Bruno Haible  <bruno@clisp.org>
32208
32209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32210         in one place.
32211         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32212         be replaced anyway.
32213
32214 2009-06-18  Eric Blake  <ebb9@byu.net>
32215
32216         hash: check for resize before insertion
32217         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32218         threshold before insertion, so that a pathological hash_rehash
32219         that fills every bucket can still trigger another rehash.
32220
32221 2009-06-18  Jim Meyering  <meyering@redhat.com>
32222
32223         hash-tests: add a loop around the small tests
32224         * tests/test-hash.c (main): Repeat small tests with selected
32225         small initial table sizes.
32226
32227 2009-06-17  Eric Blake  <ebb9@byu.net>
32228
32229         hash: minor cleanups
32230         * lib/hash.h (hash_entry): Make opaque, by moving...
32231         * lib/hash.c (hash_entry): ...here.
32232         (hash_insert): Clarify restrictions on what can be inserted.
32233         (hash_get_next): Clarify when it is safe to remove an element
32234         during traversal.
32235         (check_tuning): Skip verification when tuning is known safe.
32236         (hash_initialize): Clarify restrictions on tuning.
32237
32238 2009-06-17  Jim Meyering  <jim@meyering.net>
32239         and Eric Blake  <ebb9@byu.net>
32240
32241         hash-tests: new module
32242         * modules/hash-tests: New file.
32243         * tests/test-hash.c: New file.
32244
32245 2009-06-17  Eric Blake  <ebb9@byu.net>
32246
32247         strstr-simple: document new module
32248         * MODULES.html.sh: Document new module.
32249
32250         strstr, strcasestr: replace on platforms with broken memchr
32251         * modules/strstr: Split into...
32252         * modules/strstr-simple: ...new module that does not care about
32253         performance, but does care about glibc bug.
32254         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32255         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32256         if platform memchr is broken, per Debian bug 521737.
32257         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32258         memchr.
32259         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32260         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32261         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32262         * modules/mountlist (Depends-on): Add strstr-simple.
32263         * modules/gen-uni-tables (Depends-on): Likewise.
32264         * modules/argz (Depends-on): Add strstr.
32265
32266 2009-06-17  Bruno Haible  <bruno@clisp.org>
32267
32268         * modules/posix_spawn-internal (Depends-on): Add errno.
32269
32270 2009-06-17  Bruno Haible  <bruno@clisp.org>
32271
32272         Define missing ESTALE on Interix 3.5.
32273         * lib/errno.in.h (ESTALE): Assign a value if missing.
32274         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32275         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32276         missing.
32277         * doc/posix-headers/errno.texi: Mention the Interix bug.
32278         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32279
32280 2009-06-15  Eric Blake  <ebb9@byu.net>
32281
32282         memchr, memchr2: add valgrind exception
32283         * lib/memchr.valgrind: New file.
32284         * lib/memchr2.valgrind: New file.
32285         * modules/memchr (Files): Distribute valgrind file.
32286         * modules/memchr2 (Files): Likewise.
32287
32288         docs: memchr is no longer obsolete
32289         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32290         * lib/string.in.h (memchr): Simplify logic.
32291
32292 2009-06-14  Jim Meyering  <meyering@redhat.com>
32293
32294         link-follow: fix the "checking..." message to not mention trailing slash
32295         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32296         never considered trailing slashes.
32297
32298 2009-06-14  Bruno Haible  <bruno@clisp.org>
32299
32300         * m4/memchr.m4: Mention also the bug on IA-64.
32301         * doc/posix-functions/memchr.texi: Likewise.
32302
32303 2009-06-12  Eric Blake  <ebb9@byu.net>
32304
32305         memchr: detect broken x86_64 and alpha implementations
32306         * modules/memchr-tests (Depends-on): Move mmap detection...
32307         * modules/memchr (Depends-on): ...here.
32308         (configure.ac): Set indicator.
32309         * lib/string.in.h (memchr): Declare replacement.
32310         * modules/string (Makefile.am): Trigger replacement.
32311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32312         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32313         bugs.
32314         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32315         * modules/getpagesize (License): Relax license.
32316
32317 2009-06-11  Bruno Haible  <bruno@clisp.org>
32318
32319         * lib/idpriv.h: Add more references.
32320
32321 2009-06-08  Bruno Haible  <bruno@clisp.org>
32322
32323         Tests for module 'idpriv-droptemp'.
32324         * modules/idpriv-droptemp-tests: New file.
32325         * tests/test-idpriv-droptemp.sh: New file.
32326         * tests/test-idpriv-droptemp.su.sh: New file.
32327         * tests/test-idpriv-droptemp.c: New file.
32328
32329         New module 'idpriv-droptemp'.
32330         * lib/idpriv-droptemp.c: New file.
32331         * modules/idpriv-droptemp: New file.
32332
32333 2009-06-08  Bruno Haible  <bruno@clisp.org>
32334
32335         Tests for module 'idpriv-drop'.
32336         * modules/idpriv-drop-tests: New file.
32337         * tests/test-idpriv-drop.sh: New file.
32338         * tests/test-idpriv-drop.su.sh: New file.
32339         * tests/test-idpriv-drop.c: New file.
32340
32341         New module 'idpriv-drop'.
32342         * lib/idpriv.h: New file.
32343         * lib-idpriv-drop.c: New file.
32344         * m4/idpriv.m4: New file.
32345         * modules/idpriv-drop: New file.
32346
32347 2009-06-08  Bruno Haible  <bruno@clisp.org>
32348
32349         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32350         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32351         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32352         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32353         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32354         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32355         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32356
32357 2009-06-08  Eric Blake  <ebb9@byu.net>
32358
32359         test-strstr: use memory fence, when possible
32360         * tests/test-strstr.c (main): Use memory fence, in order to be
32361         more likely to trigger Debian bug 521737.
32362         * modules/strstr-tests (Files): Pull in additional files.
32363
32364         memchr: no longer obsolete, for wider field testing
32365         * modules/memchr (Status, Notice): Delete, this module is no
32366         longer obsolete.
32367         * modules/vasnprintf (Depends-on): Add memchr.
32368
32369 2009-06-07  Jim Meyering  <meyering@redhat.com>
32370
32371         hash: declare some functions with the warn_unused_result attribute
32372         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32373
32374 2009-06-07  Bruno Haible  <bruno@clisp.org>
32375
32376         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32377         Reported by Eric Blake.
32378
32379 2009-06-06  Eric Blake  <ebb9@byu.net>
32380
32381         test-alignof: fix typo with long double
32382         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32383         compiler error.
32384
32385 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32386
32387         Escape non-texinfo { and }s.
32388         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32389         markup error.
32390
32391 2009-06-04  Jim Meyering  <meyering@redhat.com>
32392
32393         gitlog-to-changelog: don't infloop on an empty commit log
32394         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32395         Reported by Boris Petersen <transacid@centerim.org>.
32396
32397 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32398
32399         version-etc: extend for packagers
32400         Add three new configure options, intended for packagers:
32401           --with-packager="packager name"
32402           --with-packager-version="packager-specific version"
32403           --with-packager-bug-reports="packager bug reporting"
32404         An example with coreutils:
32405           $ ./configure \
32406             --with-packager=Gentoo \
32407             --with-packager-bug-report=http://bugs.gentoo.org/ \
32408             --with-packager-version="patchset 1.6"
32409           $ ./src/ls --version | head -n2
32410           ls (GNU coreutils) 7.1-dirty
32411           Packaged by Gentoo (patchset 1.6)
32412         Note that the bug reporting info via --help doesn't show up because
32413         coreutils uses its own custom emit_bug_reporting_address() implementation
32414         in src/system.h.  If it didn't, it'd look like:
32415           $ ./src/ls --help | tail -n4
32416           Report bugs to <bug-coreutils@gnu.org>.
32417           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32418           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32419           General help using GNU software: <http://www.gnu.org/gethelp/>.
32420         * lib/version-etc.c: Print new information, if provided.
32421         * m4/version-etc.m4: New file.
32422         * modules/version-etc (Files): Add m4/version-etc.m4.
32423         (configure.ac): Add gl_VERSION_ETC.
32424
32425 2009-05-31  Bruno Haible  <bruno@clisp.org>
32426
32427         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32428         and 'int64_t'.
32429         * modules/alignof-tests (Dependencies): Add stdint.
32430         Reported by Eric Blake.
32431
32432 2009-05-31  Bruno Haible  <bruno@clisp.org>
32433
32434         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32435         restriction due to compiler bugs.
32436         Reported by Eric Blake.
32437
32438 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32439             Bruno Haible  <bruno@clisp.org>
32440
32441         Fix test-alignof failure.
32442         * lib/alignof.h (alignof_slot): New macro.
32443         (alignof_type): New macro, with the same semantics as the previous
32444         'alignof'.
32445         (alignof): Alias to alignof_slot.
32446         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32447         check that the results are usable as constant expressions.
32448
32449 2009-05-31  Bruno Haible  <bruno@clisp.org>
32450
32451         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32452         * tests/test-memchr.c (main): Check that memchr does not read past the
32453         first occurrence of the byte.
32454         * tests/test-strstr.c (main): Update comment.
32455         Suggested by Eric Blake.
32456
32457 2009-05-30  Bruno Haible  <bruno@clisp.org>
32458
32459         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
32460         detail how to use dumpbin.
32461         Reported by David Byron <dbyron@dbyron.com>.
32462
32463 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32464
32465         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
32466
32467 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32468
32469         * m4/manywarnings.m4: Add GCC 4.4 warnings.
32470
32471 2009-05-28  Bruno Haible  <bruno@clisp.org>
32472
32473         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32474         build-aux/ files.
32475
32476 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32477
32478         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32479
32480 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32481
32482         * gnulib-tool (sed_transform_main_lib_file)
32483         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32484         regexps.
32485
32486 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32487
32488         * tests/test-strstr.c: Add another self-test.
32489         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32490         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32491
32492 2009-05-23  Bruno Haible  <bruno@clisp.org>
32493
32494         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32495         change.
32496
32497 2009-05-21  Bruno Haible  <bruno@clisp.org>
32498
32499         Simplify use of mode_t varargs.
32500         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32501         uses 'mode_t' or 'int'.
32502         * lib/openat.c (openat): Likewise.
32503         * lib/open-safer.c (open_safer): Likewise.
32504         * m4/mode_t.m4: New file.
32505         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32506         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32507         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32508         * modules/open (Files): Add m4/mode_t.m4.
32509         * modules/openat (Files): Likewise.
32510         * modules/fcntl-safer (Files): Likewise.
32511         Suggested by Eric Blake.
32512
32513 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32514
32515         * doc/glibc-functions/fallocate.texi: New file.
32516         * doc/gnulib.texi: Include it.
32517
32518 2009-05-21  Eric Blake  <ebb9@byu.net>
32519             Bruno Haible  <bruno@clisp.org>
32520
32521         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32522         invocations.
32523         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32524
32525 2009-05-21  Eric Blake  <ebb9@byu.net>
32526             Bruno Haible  <bruno@clisp.org>
32527
32528         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32529         include_next. Fix of 2008-11-20 commit.
32530         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32531         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32532         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32533         NEXT_MATH_H.
32534         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32535         instead of NEXT_MATH_H.
32536
32537 2009-05-21  Bruno Haible  <bruno@clisp.org>
32538
32539         Avoid redefinition warnings for SIZE_MAX.
32540         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
32541         Reported by Simon Josefsson.
32542
32543 2009-05-21  Bruno Haible  <bruno@clisp.org>
32544
32545         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
32546         AC_CACHE_VAL.
32547
32548 2009-05-20  Bruno Haible  <bruno@clisp.org>
32549
32550         Make zeroptr.h work on mingw.
32551         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
32552         mprotect.
32553         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
32554         * modules/memchr2-tests (configure.ac): Likewise.
32555         * modules/memcmp-tests (configure.ac): Likewise.
32556         * modules/memmem-tests (configure.ac): Likewise.
32557         * modules/memrchr-tests (configure.ac): Likewise.
32558         Reported by Simon Josefsson.
32559
32560 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32561
32562         * tests/test-glob.c: Include string.h for strcmp prototype.
32563
32564 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32565
32566         * modules/getdelim (Depends-on): Add explicit stdint, although it
32567         was implicitly already pulled in via realloc-posix.
32568         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
32569
32570 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32571
32572         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
32573         G. Christensen" <tgc@jupiterrise.com>.
32574         * m4/sys_socket_h.m4: Check for sa_family_t.
32575         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
32576         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
32577         * tests/test-sys_socket.c: Check that sa_family_t works.
32578
32579 2009-05-18  Eric Blake  <ebb9@byu.net>
32580
32581         maint.mk: allow gnulib_dir in VPATH build
32582         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
32583
32584 2009-05-15  Jim Meyering  <meyering@redhat.com>
32585
32586         maint.mk: Give gnulib_dir a default definition.
32587         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
32588         Thus, most packages no longer need to specify this variable in cfg.mk
32589
32590 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
32591
32592         rename.m4: fix typos that would make non-mingw cross-configure fail
32593         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
32594
32595 2009-05-13  Eric Blake  <ebb9@byu.net>
32596
32597         mmap-anon: avoid out-of-order autoconf expansion
32598         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
32599         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
32600         * modules/memchr-tests (Depends-on): Add extensions.
32601         * modules/memchr2-tests (Depends-on): Add extensions.
32602         * modules/memcmp-tests (Depends-on): Add extensions.
32603         * modules/memmem-tests (Depends-on): Add extensions.
32604         * modules/memrchr-tests (Depends-on): Add extensions.
32605
32606 2009-05-13  Bruno Haible  <bruno@clisp.org>
32607
32608         Make some tests ISO C 99 compliant.
32609         * tests/zerosize-ptr.h: New file.
32610         * tests/test-memchr.c: Include zerosize-ptr.h.
32611         (main): Use a zero-size object pointer instead of NULL.
32612         * tests/test-memchr2.c: Include zerosize-ptr.h.
32613         (main): Use a zero-size object pointer instead of NULL.
32614         * tests/test-memcmp.c: Include zerosize-ptr.h.
32615         (main): Use a zero-size object pointer instead of NULL.
32616         * tests/test-memmem.c: Include zerosize-ptr.h.
32617         (main): Use a zero-size object pointer instead of NULL.
32618         * tests/test-memrchr.c: Include zerosize-ptr.h.
32619         (main): Use a zero-size object pointer instead of NULL.
32620         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
32621         m4/mmap-anon.m4.
32622         (Depends-on): Add getpagesize.
32623         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32624         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
32625         m4/mmap-anon.m4.
32626         (Depends-on): Add getpagesize.
32627         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32628         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
32629         m4/mmap-anon.m4.
32630         (Depends-on): Add getpagesize.
32631         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32632         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
32633         m4/mmap-anon.m4.
32634         (Depends-on): Add getpagesize.
32635         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32636         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
32637         m4/mmap-anon.m4.
32638         (Depends-on): Add getpagesize.
32639         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32640
32641 2009-05-12  Bruno Haible  <bruno@clisp.org>
32642
32643         Tests for module 'alignof'.
32644         * modules/alignof-tests: New file.
32645         * tests/test-alignof.c: New file.
32646
32647 2009-05-12  Bruno Haible  <bruno@clisp.org>
32648
32649         Fix alignof macro.
32650         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
32651         vendor compilers that are always correct.
32652
32653 2009-05-12  Bruno Haible  <bruno@clisp.org>
32654
32655         Make the MAP_ANONYMOUS detection work on HP-UX 11.
32656         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
32657         not whether its fully works.
32658
32659 2009-05-12  Bruno Haible  <bruno@clisp.org>
32660
32661         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
32662
32663 2009-05-12  Jim Meyering  <meyering@redhat.com>
32664
32665         * top/maint.mk: Adjust backslash alignment.
32666
32667 2009-05-11  Simon Josefsson  <simon@josefsson.org>
32668
32669         * top/maint.mk: Make $(srcdir)/build-aux configurable.
32670
32671 2009-05-11  Eric Blake  <ebb9@byu.net>
32672
32673         argp: avoid undefined behavior
32674         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
32675         macros.
32676
32677 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32678
32679         * tests/test-vc-list-files-git.sh: Do git config of user.email and
32680         user.name to prevent git commit from complaining.
32681
32682 2009-05-10  Bruno Haible  <bruno@clisp.org>
32683
32684         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
32685         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
32686         it rewrites every file name only once.
32687         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
32688
32689 2009-05-08  Bruno Haible  <bruno@clisp.org>
32690
32691         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
32692         instead of 'max'.
32693
32694 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32695
32696         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
32697         sockaddr_storage test.
32698
32699 2009-05-07  Simon Josefsson  <simon@josefsson.org>
32700
32701         * modules/sys_socket (Makefile.am): Substitute
32702         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
32703         * m4/sys_socket_h.m4: Check for sockaddr_storage.
32704         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
32705         * tests/test-sys_socket.c: Check sockaddr_storage.
32706
32707 2009-05-08  Bruno Haible  <bruno@clisp.org>
32708
32709         New module 'alignof'.
32710         * lib/alignof.h: New file.
32711         * modules/alignof: New file.
32712
32713 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32714             Bruno Haible  <bruno@clisp.org>
32715
32716         Fix test-file-has-acl on FreeBSD.
32717         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
32718         mask is implicitly added.
32719         * tests/test-file-has-acl.c: Include <signal.h>.
32720         (main): Terminate the test after 5 seconds.
32721         * modules/acl-tests (configure.ac): Check for alarm function.
32722
32723 2009-05-04  Bruno Haible  <bruno@clisp.org>
32724
32725         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
32726         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
32727         * modules/errno (configure.ac): Drop AC_REQUIRE.
32728         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
32729         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
32730
32731 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32732
32733         * modules/glob-tests: New module.
32734         * tests/test-glob.c: Add.
32735
32736 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32737
32738         * modules/fnmatch-tests: New module.
32739         * tests/test-fnmatch.c: Add.
32740
32741 2009-05-04  Eric Blake  <ebb9@byu.net>
32742
32743         maint: make the new no-submodule-changes rule VPATH-safe
32744         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
32745
32746 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32747             Bruno Haible  <bruno@clisp.org>
32748
32749         acl: Fix infinite loop on FreeBSD.
32750         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
32751         of return value from acl_get_entry.
32752         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
32753         Likewise.
32754
32755 2009-05-03  Bruno Haible  <bruno@clisp.org>
32756
32757         * lib/acl-internal.h (acl_entries): Clarify return value.
32758         * lib/acl_entries.c (acl_entries): Likewise.
32759
32760 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32761
32762         Bug fix in acl module.
32763         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
32764
32765 2009-05-03  Bruno Haible  <bruno@clisp.org>
32766
32767         Create gperf-generated file in the source dir, not in the build dir.
32768         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
32769         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
32770         * modules/unicase/locale-language (unicase/locale-languages.h):
32771         Likewise.
32772         * modules/unicase/special-casing (unicase/special-casing-table.h):
32773         Likewise.
32774         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
32775         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
32776         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
32777         Reported by Ralf Wildenhues.
32778
32779 2009-05-03  Bruno Haible  <bruno@clisp.org>
32780
32781         * modules/fnmatch (Description, configure.ac): Taken from
32782         fnmatch-posix.
32783         * modules/fnmatch-posix: Turn into a symbolic reference to the
32784         'fnmatch' module, and deprecate.
32785         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
32786
32787 2009-05-03  Bruno Haible  <bruno@clisp.org>
32788
32789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
32790         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
32791         Reported by Ralf Wildenhues.
32792
32793 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32794
32795         * m4/fnmatch.m4: Fix fnmatch re-define.
32796
32797 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32798
32799         priv-set: new module and tests; adapt write-any-file
32800         * lib/priv-set.c: New file.
32801         * lib/priv-set.h: New file.
32802         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
32803         * lib/write-any-file.c: Simplify by using priv-set module.
32804         * m4/priv-set.m4: New file.
32805         * modules/priv-set: New file.
32806         * modules/unlinkdir: Add dependency on priv-set module.
32807         * modules/write-any-file: Likewise.
32808
32809         Tests for module 'priv-set'.
32810         * modules/priv-set-tests: New file.
32811         * tests/test-priv-set.c: New file.
32812
32813 2009-05-03  Jim Meyering  <meyering@redhat.com>
32814             Bruno Haible  <bruno@clisp.org>
32815
32816         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
32817         use the converted UTF-8 variant of the name instead.
32818
32819 2009-05-03  Jim Meyering  <meyering@redhat.com>
32820
32821         tests: tighten some getdate tests
32822         * tests/test-getdate.c (main): Tighten tests: require equality,
32823         not just greater than.  Set TZ envvar to UTC0.
32824
32825 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32826
32827         getdate: correctly interpret "next monday" when run on a Monday
32828         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
32829         that e.g., "next tues" (when run on a tuesday) results in a date
32830         that is one week in the future, and not today's date.
32831         I.e., add a week when the wday is the same as the current one.
32832         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
32833         and earlier by Martin Bernreuther and Jan Minář.
32834         * tests/test-getdate.c (main): Check that "next DAY" is always in
32835         the future and that "last DAY" is always in the past.
32836
32837 2009-05-02  Jim Meyering  <meyering@redhat.com>
32838
32839         build: ensure that a release build fails when a submodule is unclean
32840         * top/maint.mk (no-submodule-changes): New rule.
32841         (alpha beta major): Depend on it.
32842
32843 2009-05-02  Bruno Haible  <bruno@clisp.org>
32844
32845         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
32846         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
32847         shell variable gl_fnmatch_required to detect which variant is
32848         requested.
32849         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
32850         gl_FUNC_FNMATCH_POSIX.
32851         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
32852         exclude fnmatch-posix.
32853
32854 2009-05-02  Bruno Haible  <bruno@clisp.org>
32855
32856         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
32857         * modules/mbsrtowcs (License): Change to LGPLv2+.
32858         * modules/strnlen1 (License): Likewise.
32859         Reported by Simon Josefsson.
32860
32861 2009-05-02  Bruno Haible  <bruno@clisp.org>
32862
32863         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
32864         "cross".
32865         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
32866         gnulib-tool was called with option --source-base=lib.
32867
32868 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32869
32870         Use automake *-local hooks without commands, for extensibility.
32871         * modules/localcharset (Makefile.am): Rename install-exec-local
32872         rule to install-exec-localcharset, and make it a prerequisite of
32873         install-exec-local.  Likewise, rename the uninstall-local rule to
32874         uninstall-localcharset, and make it a prerequisite of the former.
32875
32876 2009-05-01  Bruno Haible  <bruno@clisp.org>
32877
32878         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
32879         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32880         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
32881         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
32882         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
32883         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32884         m4/locale-zh.m4, m4/codeset.m4.
32885
32886         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32887         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
32888         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32889         m4/locale-zh.m4.
32890
32891         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
32892         REPLACE_WCRTOMB if mbstate_t must be replaced.
32893         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
32894         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
32895
32896 2009-05-01  Bruno Haible  <bruno@clisp.org>
32897
32898         Avoid compiler warnings when redefining macros defined by <libintl.h>.
32899         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
32900         dngettext, dcngettext, textdomain, bindtextdomain,
32901         bind_textdomain_codeset): Undefine before redefining.
32902
32903 2009-04-30  Bruno Haible  <bruno@clisp.org>
32904
32905         Fix bug introduced on 2009-04-25.
32906         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
32907         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
32908         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
32909         is defined.
32910         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
32911         is defined.
32912         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
32913         is defined.
32914         Reported by Elbert_Pol <elbert.pol@gmail.com>.
32915
32916 2009-04-28  Bruno Haible  <bruno@clisp.org>
32917
32918         Comment tweaks.
32919         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
32920         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
32921         * lib/unicase.h (u*_casexfrm): Likewise.
32922         Reported by Paolo Bonzini.
32923
32924 2009-04-28  Bruno Haible  <bruno@clisp.org>
32925
32926         Fix a compilation error.
32927         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
32928         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32929         Reported by Jim Meyering.
32930
32931 2009-04-27  Bruno Haible  <bruno@clisp.org>
32932
32933         New module 'libunistring'.
32934         * modules/libunistring: New file.
32935         * m4/libunistring.m4: New file.
32936         * MODULES.html.sh (Unicode string functions): Add it.
32937
32938 2009-04-27  Eric Blake  <ebb9@byu.net>
32939
32940         maint.mk: allow package-specific header to provide <config.h>
32941         * top/maint.mk (sc_require_config_h): New variable.
32942         (sc_require_config_h, sc_require_config_h_first): Use it.
32943
32944 2009-04-27  Simon Josefsson  <simon@josefsson.org>
32945
32946         * top/maint.mk (sc_avoid_if_before_free): Except
32947         useless-if-before-free script.
32948
32949 2009-04-27  Eric Blake  <ebb9@byu.net>
32950
32951         maintainer-makefile: depend on all required helper scripts
32952         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
32953         useless-if-before-free.
32954         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
32955         version, rather than assuming gnulib checkout is available.
32956         Reported by Simen Josefsson.
32957
32958 2009-04-26  Bruno Haible  <bruno@clisp.org>
32959
32960         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
32961         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
32962         "../" or "..".
32963
32964 2009-04-26  Bruno Haible  <bruno@clisp.org>
32965
32966         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
32967         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
32968         AC_LIB_HAVE_LINKFLAGS.
32969
32970 2009-04-26  Bruno Haible  <bruno@clisp.org>
32971
32972         Simplify calling convention of u*_conv_from_encoding.
32973         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
32974         u32_conv_from_encoding): Expect a resultbuf argument and return the
32975         result directly as a pointer.
32976         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
32977         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
32978         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
32979         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
32980         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
32981         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32982         Update.
32983         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
32984         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
32985         * lib/vasnprintf.c (VASNPRINTF): Update.
32986         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
32987         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
32988         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
32989         * NEWS: Mention the change.
32990
32991 2009-04-26  Bruno Haible  <bruno@clisp.org>
32992
32993         Simplify calling convention of u*_conv_to_encoding.
32994         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32995         u32_conv_to_encoding): Expect a resultbuf argument and return the
32996         result directly as a pointer.
32997         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32998         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
32999         freeing scaled_offsets if mem_iconveha failed.
33000         * lib/unicase/u-casexfrm.h (FUNC): Update.
33001         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33002         * lib/vasnprintf.c (VASNPRINTF): Update.
33003         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33004         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33005         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33006         * NEWS: Mention the change.
33007
33008 2009-04-26  Bruno Haible  <bruno@clisp.org>
33009
33010         Avoid test failures on AIX and OSF/1.
33011         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33012         malloc(0).
33013         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33014         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33015         Likewise.
33016         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33017         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33018         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33019         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33020         * doc/posix-functions/malloc.texi: Document the portability problem
33021         related to malloc(0).
33022
33023 2009-04-26  Bruno Haible  <bruno@clisp.org>
33024
33025         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33026         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33027         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33028
33029 2009-04-25  Bruno Haible  <bruno@clisp.org>
33030
33031         Avoid link error when creating a namespace clean library.
33032         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33033         as macro with arguments if already defined as an alias.
33034         * lib/signbitf.c (gl_signbitf): Don't undefine.
33035         * lib/signbitd.c (gl_signbitd): Don't undefine.
33036         * lib/signbitl.c (gl_signbitl): Don't undefine.
33037
33038 2009-04-25  Jim Meyering  <meyering@redhat.com>
33039
33040         vc-list-files: fix another quoting bug
33041         * build-aux/vc-list-files: Avoid sed backslash expansion
33042         of pathological directory names.
33043
33044 2009-04-25  Eric Blake  <ebb9@byu.net>
33045
33046         vc-list-files: fix shell quoting error
33047         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33048         timestamp.
33049
33050 2009-04-25  Jim Meyering  <meyering@redhat.com>
33051
33052         vc-list-files: restore lost functionality with subdir argument
33053         * build-aux/vc-list-files: When given a non-"." sub-directory
33054         argument, substitute the $dir/ prefix back onto each resulting name.
33055         Otherwise, coreutils' root_tests check would fail.
33056
33057 2009-04-24  Eric Blake  <ebb9@byu.net>
33058
33059         vc-list-files: ignore git symlinks
33060         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33061         than ls-files, to ignore git symlinks.
33062
33063         maint.mk: import improvements from m4
33064         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33065         (move_if_change): Delete unused macro.
33066         (news-date-check, vc-diff-check): Support VPATH builds.
33067         (announcement): Likewise.  Split --bootstrap-tools list...
33068         (boostrap-tools): ...into separate list, which can be overridden
33069         in cfg.mk.
33070         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33071         requiring dependency on useless-if-before-free module.
33072         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33073         Support VPATH builds.
33074
33075 2009-04-24  Jim Meyering  <meyering@redhat.com>
33076
33077         maint.mk: remove coreutils-specific rules and variables
33078         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33079         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33080         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33081
33082         maint.mk: remove obsolete rule
33083         * top/maint.mk (rel-check): Remove rule.
33084         (WGET, WGETFLAGS): Remove now-unused variables.
33085
33086 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33087
33088         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33089         consistency.
33090
33091         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33092         '$(PATH_SEPARATOR)' instead of ':'.
33093
33094 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33095
33096         * lib/getopt1.c (main): Use 'const' for static array.
33097
33098 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33099
33100         * top/maint.mk: Sync with coreutils.
33101         * NEWS: Explain incompatibilities.
33102
33103 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33104             Bruno Haible  <bruno@clisp.org>
33105
33106         Fix cross-compilation results.
33107         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33108         statement, as third argument of AC_TRY_RUN.
33109         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33110         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33111         Likewise.
33112         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33113         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33114         Likewise.
33115         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33116         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33117         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33118
33119 2009-04-20  Bruno Haible  <bruno@clisp.org>
33120
33121         Avoid test failure on mingw.
33122         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33123
33124 2009-04-20  Bruno Haible  <bruno@clisp.org>
33125
33126         Avoid compilation error on mingw.
33127         * modules/localename-tests (Depends-on): Add locale.
33128
33129 2009-04-19  Bruno Haible  <bruno@clisp.org>
33130
33131         Support for building a shared library on Windows platforms.
33132         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33133         (main): Test the presence of UNINORM_NFC here.
33134         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33135         (main): Test the presence of UNINORM_NFD here.
33136         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33137         (main): Test the presence of UNINORM_NFKC here.
33138         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33139         (main): Test the presence of UNINORM_NFKD here.
33140
33141 2009-04-19  Bruno Haible  <bruno@clisp.org>
33142
33143         Avoid a compiler warning.
33144         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33145         Change type of variable 'sequence'.
33146
33147 2009-04-19  Bruno Haible  <bruno@clisp.org>
33148
33149         * modules/configmake (Makefile.am): When the contents of configmake.h
33150         does not change, arrange to preserve its modification time.
33151
33152 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33153
33154         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33155         gettext domain.
33156
33157 2009-04-16  Jim Meyering  <meyering@redhat.com>
33158
33159         useless-if-before-free: improve conversion code
33160         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33161         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33162
33163 2009-04-14  Bruno Haible  <bruno@clisp.org>
33164
33165         * modules/fcntl (Depends-on): Add extensions.
33166         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33167
33168 2009-04-12  Ben Pfaff  <blp@gnu.org>
33169
33170         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33171         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33172
33173 2009-03-20  Ben Pfaff  <blp@gnu.org>
33174
33175         Make rename replace existing destinations on Windows.
33176         * m4/rename.m4: Add test for Mingw.
33177         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33178         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33179         * doc/posix-functions/rename.texi: Document.
33180
33181 2009-04-10  Bruno Haible  <bruno@clisp.org>
33182
33183         New include file "iconveh.h".
33184         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33185         * lib/striconveh.h: Include it.
33186         (enum iconv_ilseq_handler): Remove definition.
33187         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33188         striconveh.h.
33189         * lib/striconveha.c: Include striconveh.h.
33190         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33191         * modules/striconveh (Files): Add lib/iconveh.h.
33192         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33193         lib/striconveh.h.
33194
33195 2009-04-10  Bruno Haible  <bruno@clisp.org>
33196
33197         * lib/uniconv.h: Update comment.
33198
33199 2009-04-10  Bruno Haible  <bruno@clisp.org>
33200
33201         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33202         always.
33203         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33204         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33205         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33206         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33207         "unistring-notinline.h", so that the function gets defined always.
33208         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33209         * lib/unistr/u8-uctomb.c: Likewise.
33210         * lib/unistr/u16-mbtouc.c: Likewise.
33211         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33212         * lib/unistr/u16-uctomb.c: Likewise.
33213         * lib/unistr/u32-mbtouc.c: Likewise.
33214         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33215         * lib/unistr/u32-uctomb.c: Likewise.
33216
33217 2009-04-10  Bruno Haible  <bruno@clisp.org>
33218
33219         Mark 'utime' obsolete.
33220         * modules/utime (Status, Notice): New sections.
33221         Suggested by Jim Meyering.
33222
33223         Fix cross-compile guess for utime test.
33224         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33225         autoconf.
33226         * doc/posix-functions/utime.texi: Give more precisions.
33227         Reported by Jan <ipif@ymail.com>.
33228
33229 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33230
33231         filevercmp: correct today's change
33232         * lib/filevercmp.c: Also handle coreutils' test inputs.
33233         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33234
33235         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33236         for reporting it.
33237         * lib/filevercmp.c: Special handle for "", "." and "..".
33238         * tests/test-filevercmp.c: Enlarge the set suite.
33239
33240 2009-04-07  Jim Meyering  <meyering@redhat.com>
33241
33242         useless-if-before-free: show how to remove braced useless free, too
33243         * build-aux/useless-if-before-free: still only in a comment, though.
33244
33245 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33246
33247         maint.mk: import changes to syntax-check macros from coreutils
33248         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33249         Use them in the relevant macros.
33250
33251 2009-04-06  Bruno Haible  <bruno@clisp.org>
33252
33253         Fix unportable use of bit-fields.
33254         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33255         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33256         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33257
33258 2009-04-06  Bruno Haible  <bruno@clisp.org>
33259
33260         Avoid test failures on AIX and OSF/1.
33261         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33262         that malloc(0) = NULL.
33263         * tests/unicase/test-u8-tolower.c (check): Likewise.
33264         * tests/unicase/test-u8-totitle.c (check): Likewise.
33265         * tests/unicase/test-u8-toupper.c (check): Likewise.
33266         * tests/unicase/test-u16-casefold.c (check): Likewise.
33267         * tests/unicase/test-u16-tolower.c (check): Likewise.
33268         * tests/unicase/test-u16-totitle.c (check): Likewise.
33269         * tests/unicase/test-u16-toupper.c (check): Likewise.
33270         * tests/unicase/test-u32-casefold.c (check): Likewise.
33271         * tests/unicase/test-u32-tolower.c (check): Likewise.
33272         * tests/unicase/test-u32-totitle.c (check): Likewise.
33273         * tests/unicase/test-u32-toupper.c (check): Likewise.
33274         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33275         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33276         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33277         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33278         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33279         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33280         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33281         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33282         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33283         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33284         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33285         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33286
33287 2009-04-05  Bruno Haible  <bruno@clisp.org>
33288
33289         Work around an autoconf limitation.
33290         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33291         comment line if it would be longer than 3 KB.
33292
33293 2009-04-05  Bruno Haible  <bruno@clisp.org>
33294
33295         Avoid test failure with libiconv-1.13.
33296         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33297         of the expected test results.
33298
33299 2009-04-05  Bruno Haible  <bruno@clisp.org>
33300
33301         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33302         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33303         that it should be installed.
33304
33305 2009-04-05  Bruno Haible  <bruno@clisp.org>
33306
33307         * gnulib-tool: New option --copy-file.
33308         (func_usage): Document it.
33309         (func_dest_tmpfilename): Moved out of func_import.
33310         (func_add_file, func_update_file): New functions, extracted from
33311         func_import.
33312         (func_import): Update.
33313
33314 2009-04-05  Karl Berry  <karl@gnu.org>
33315
33316         * README: prominently mention gnulib-tool.
33317         Rearrange sections so getting the code is near the top.
33318
33319 2009-04-05  Bruno Haible  <bruno@clisp.org>
33320
33321         * lib/unicase.h: Mention u*_cmp2.
33322         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33323         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33324         * lib/unicase/ulc-casecmp.c: Likewise.
33325         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33326         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33327         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33328         unistr/u8-cmp.
33329         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33330         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33331         unistr/u16-cmp.
33332         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33333         unistr/u32-cmp.
33334
33335         * lib/uninorm.h: Mention u*_cmp2.
33336         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33337         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33338         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33339         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33340         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33341         unistr/u8-cmp.
33342         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33343         unistr/u16-cmp.
33344         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33345         unistr/u32-cmp.
33346
33347         New module 'unistr/u32-cmp2'.
33348         * lib/unistr/u32-cmp2.c: New file.
33349         * modules/unistr/u32-cmp2: New file.
33350
33351         New module 'unistr/u16-cmp2'.
33352         * lib/unistr/u16-cmp2.c: New file.
33353         * modules/unistr/u16-cmp2: New file.
33354
33355         New module 'unistr/u8-cmp2'.
33356         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33357         * lib/unistr/u8-cmp2.c: New file.
33358         * lib/unistr/u-cmp2.h: New file.
33359         * modules/unistr/u8-cmp2: New file.
33360
33361 2009-04-05  Bruno Haible  <bruno@clisp.org>
33362
33363         * lib/unictype.h (uc_property_is_valid): New macro.
33364         * tests/unictype/test-pr_byname.c (main): Use it.
33365
33366         * lib/unistr.h: Doc fixes.
33367         * lib/uniconv.h: Doc fixes.
33368         * lib/unictype.h: Doc fixes.
33369
33370 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33371
33372         Port coreutils 7.2 to Solaris 8.
33373
33374         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33375         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33376         for Solaris 8.  This is a bit of a hack, as it means it's the
33377         caller's responsibility to add -lnsl if needed, but most likely it
33378         won't be needed since only getaddrinfo uses this and getaddrinfo
33379         isn't needed on Solaris 8.
33380
33381         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33382         problem to Solaris 8 encountered with coreutils 7.2, which
33383         resulted in a message "fnmatch.c:292: warning: passing argument 4
33384         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33385         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33386
33387 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33388
33389         * m4/ld-version-script.m4: Add FIXME comment.
33390
33391 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33392
33393         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33394         SOVERSION variable.
33395
33396 2009-04-02  Bruno Haible  <bruno@clisp.org>
33397
33398         * Makefile (info, html, dvi, pdf): Combine the rules.
33399         Suggested by Jim Meyering.
33400
33401 2009-04-01  Bruno Haible  <bruno@clisp.org>
33402
33403         * Makefile (info, html, dvi, pdf): New targets.
33404         Reported by Reuben Thomas <rrt@sc3d.org>.
33405
33406 2009-04-01  Bruno Haible  <bruno@clisp.org>
33407
33408         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33409         can be put into PATH.
33410         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33411
33412 2009-04-01  Bruno Haible  <bruno@clisp.org>
33413
33414         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33415
33416 2009-04-01  Bruno Haible  <bruno@clisp.org>
33417
33418         Rename module 'visibility'.
33419         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33420         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33421         * doc/gnulib.texi: Update.
33422         * MODULES.html.sh (Misc): Update.
33423         * NEWS: Mention the change.
33424
33425 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33426
33427         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33428         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33429         Eric Blake <ebb9@byu.net> for review.
33430         * MODULES.html.sh: Add lib-msvc-compat.
33431         * doc/gnulib.texi: Link to new section.
33432         * m4/ld-output-def.m4: New file.
33433         * doc/ld-output-def.texi: New file.
33434
33435 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33436
33437         Rename ld-version-script to lib-symbol-versions.  Suggested by
33438         Bruno Haible <bruno@clisp.org>.
33439         * modules/ld-version-script: Renamed to lib-symbol-versions.
33440         * doc/ld-version-script.texi: Fix module name.
33441         * MODULES.html.sh: Add lib-symbol-versions.
33442
33443 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33444
33445         * modules/u64-tests: New file.
33446         * tests/test-u64.c: New file.
33447
33448 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33449
33450         * MODULES.html.sh: Mention u64.
33451         * modules/u64: New module.
33452         * modules/crypto/sha512: Depend on u64 module instead of providing
33453         u64.h.
33454
33455 2009-03-27  Eric Blake  <ebb9@byu.net>
33456
33457         test-strerror: make debugging EAI_SYSTEM easier
33458         * modules/getaddrinfo-tests (Depends-on): Add strerror.
33459         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
33460         failure was EAI_SYSTEM.
33461
33462 2009-03-25  Bruno Haible  <bruno@clisp.org>
33463
33464         Fix a problem with --enable-relocatable on Solaris 7.
33465         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
33466         since 2008-02-24.
33467
33468 2009-03-25  Eric Blake  <ebb9@byu.net>
33469
33470         test-sockets: avoid gcc warning
33471         * tests/test-sockets.c (main): Silence compiler warning.
33472
33473 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33474
33475         New modules nproc, pthread, contributed by Glen Lenker.
33476
33477         * MODULES.html.sh: Add pthread, nproc.
33478         * lib/nproc.c: New file.
33479         * lib/nproc.h: New file.
33480         * lib/pthread.in.h: New file.
33481         * m4/pthread.m4: New file.
33482         * modules/nproc: New file.
33483         * modules/pthread: New file.
33484
33485 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33486
33487         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33488         New variable.
33489
33490 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33491
33492         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33493         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33494         * tests/test-filevercmp.c: Add tests for backup suffixes.
33495
33496 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33497
33498         * modules/stdlib (Depends-on): Add stdint, needed when defining
33499         struct random_data on, for example, HP-UX 10.20.  Reported by
33500         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33501
33502 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33503
33504         * lib/readline.c (readline): Call fflush on stdout after printing
33505         prompt.
33506
33507 2009-03-20  Bruno Haible  <bruno@clisp.org>
33508
33509         Remove dependency from 'close' module to -lws2_32 on native Windows.
33510         * lib/close-hook.h: New file.
33511         * lib/close-hook.c: New file.
33512         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33513         w32sock.h.
33514         (_gl_close_fd_maybe_socket): Remove function.
33515         (rpl_close): Invoke execute_all_close_hooks instead of
33516         _gl_close_fd_maybe_socket.
33517         * lib/sockets.c: Include close-hook.h, w32sock.h.
33518         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33519         (close_sockets_hook): New variable.
33520         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33521         (gl_sockets_cleanup): Unregister it.
33522         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33523         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33524         * modules/close-hook: New file.
33525         * modules/close (Files): Remove lib/w32sock.h.
33526         (Depends-on): Add close-hook.
33527         (Link): Remove section.
33528         * modules/sockets (Files): Add lib/w32sock.h.
33529         (Depends-on): Add close-hook.
33530         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33531         invocation.
33532         * NEWS: Mention that LIB_CLOSE is gone.
33533
33534 2009-03-23  Eric Blake  <ebb9@byu.net>
33535
33536         signal-tests: test previous patch
33537         * tests/test-signal.c: New file.
33538         * modules/signal-tests: Likewise.
33539
33540         signal.h: always support 'volatile sig_atomic_t'
33541         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
33542         (gl_SIGNAL_H_DEFAULTS): Add a default.
33543         * modules/signal (Makefile.am): Substitute if needed.
33544         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
33545         users can blindly add volatile.
33546         * doc/posix-headers/signal.texi (signal.h): Document it.
33547         Reported by Matthew Woehlke.
33548
33549 2009-03-23  Jim Meyering  <meyering@redhat.com>
33550
33551         pathmax: PATH_MAX: use pathconf only when available
33552         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
33553         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
33554         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
33555         This avoids a link failure in a PSP cross-compilation environment
33556         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
33557
33558         * lib/vasnprintf.c (divide): Fix typo in comment.
33559
33560 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33561
33562         * gnulib-tool (func_filter_filelist): Fix comment.
33563
33564 2009-03-20  Bruno Haible  <bruno@clisp.org>
33565
33566         Make sockets.h self-contained.
33567         * lib/sockets.c: Include sockets.h first.
33568         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
33569
33570 2009-03-19  Eric Blake  <ebb9@byu.net>
33571
33572         doc: mention more functions added in cygwin 1.7.0
33573         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
33574         addition.
33575         * doc/posix-functions/log2f.texi: Likewise.
33576
33577 2009-03-19  Jim Meyering  <meyering@redhat.com>
33578
33579         fsusage: avoid syntax error due to statement-before-declaration
33580         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
33581         after all declarations.  Reported by Matthew Woehlke in
33582         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
33583
33584 2009-03-18  Eric Blake  <ebb9@byu.net>
33585
33586         build-aux/compile: sync from automake
33587         * build-aux/compile: New file, from automake.
33588         * config/srclist.txt: Mention build-aux/compile.
33589
33590 2009-03-17  Bruno Haible  <bruno@clisp.org>
33591
33592         * lib/git-merge-changelog.c: Fix typo in comment.
33593         Reported by Reuben Thomas <rrt@sc3d.org>.
33594
33595 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
33596
33597         * m4/regex.m4: update and improve help for
33598         --without-included-regex.
33599
33600 2009-03-17  Simon Josefsson  <simon@josefsson.org>
33601
33602         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
33603         failure on missing include files.
33604
33605 2009-03-17  Eric Blake  <ebb9@byu.net>
33606
33607         doc: mention more functions added in cygwin 1.7.0
33608         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
33609         addition.
33610         * doc/posix-functions/fwscanf.texi: Likewise.
33611         * doc/posix-functions/swprintf.texi: Likewise.
33612         * doc/posix-functions/swscanf.texi: Likewise.
33613         * doc/posix-functions/vfwprintf.texi: Likewise.
33614         * doc/posix-functions/vfwscanf.texi: Likewise.
33615         * doc/posix-functions/vswprintf.texi: Likewise.
33616         * doc/posix-functions/vswscanf.texi: Likewise.
33617         * doc/posix-functions/vwprintf.texi: Likewise.
33618         * doc/posix-functions/vwscanf.texi: Likewise.
33619         * doc/posix-functions/wcscasecmp.texi: Likewise.
33620         * doc/posix-functions/wcsdup.texi: Likewise.
33621         * doc/posix-functions/wcsftime.texi: Likewise.
33622         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33623         * doc/posix-functions/wprintf.texi: Likewise.
33624         * doc/posix-functions/wscanf.texi: Likewise.
33625         * doc/glibc-functions/gethostbyname2.texi: Likewise.
33626
33627 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33628
33629         maint.mk: really add $(AM_MAKEFLAGS)
33630         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
33631         was inadvertently omitted in the last commit.
33632         Spotted by Bruno Haible.
33633
33634         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
33635         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
33636         $(AM_MAKEFLAGS)' rather than plain `make'.
33637
33638         gnulib-tool: execute $MAKE not make
33639         * gnulib-tool: Default $MAKE to 'make'.
33640         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
33641         than make.  Initialize $MAKE in the do-autobuild script.
33642
33643         gnulib-tool: use $MAKE not make in generated files
33644         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
33645         make, in generated files.  Initialize $MAKE in the do-autobuild
33646         script.
33647
33648         * top/GNUmakefile (_have-git-version-gen): Fix typo.
33649
33650         GNUmakefile: disable parallelism only for multiple, recursive targets
33651         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
33652         additions in the Makefile.
33653         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
33654         by Automake.
33655         (.NOTPARALLEL): Only disable parallel builds if multiple targets
33656         are listed on the command line and at least one of them is
33657         listed in $(ALL_RECURSIVE_TARGETS).
33658
33659 2009-03-14  Bruno Haible  <bruno@clisp.org>
33660
33661         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
33662         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
33663         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
33664         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
33665         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
33666         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
33667         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
33668         unistr/u8-uctomb.
33669         * modules/unistr/u8-strchr (Depends-on): Likewise.
33670         * modules/unistr/u8-strrchr (Depends-on): Likewise.
33671         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
33672         unistr/u16-uctomb.
33673         * modules/unistr/u16-strchr (Depends-on): Likewise.
33674         * modules/unistr/u16-strrchr (Depends-on): Likewise.
33675
33676 2009-03-12  Bruno Haible  <bruno@clisp.org>
33677
33678         Work around select() bug on Interix 3.5.
33679         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
33680         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
33681         * m4/select.m4: New file.
33682         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
33683         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
33684         * modules/select (Files): Add m4/select.m4.
33685         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
33686         * modules/nanosleep (Depends-on): Add select.
33687         * modules/poll (Depends-on): Likewise.
33688         * doc/posix-functions/select.texi: Mention the Interix bug.
33689         Reported by Markus Duft <mduft@gentoo.org>.
33690
33691         * lib/select.c: Renamed from lib/winsock-select.c.
33692         * modules/select (Files): Add lib/select.c, remove
33693         lib/winsock-select.c.
33694         (configure.ac): Update.
33695
33696 2009-03-12  Jim Meyering  <meyering@redhat.com>
33697
33698         avoid gcc warnings about unused macro definitions
33699         * lib/readtokens.c (STREQ): Remove unused definition.
33700         * lib/xmalloc.c (SIZE_MAX): Likewise.
33701         * lib/openat-die.c (N_): Likewise.
33702         * lib/mountlist.c (SIZE_MAX): Remove definition.
33703         Instead, include <stdint.h>.
33704         * lib/readutmp.c: Likewise.
33705         * modules/readutmp (Depends-on): Add stdint.
33706         * modules/mountlist (Depends-on): Add stdint.
33707         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
33708
33709 2009-03-10  Bruno Haible  <bruno@clisp.org>
33710
33711         Tests for module 'mbmemcasecoll'.
33712         * modules/mbmemcasecoll-tests: New file.
33713         * tests/test-mbmemcasecoll1.sh: New file.
33714         * tests/test-mbmemcasecoll2.sh: New file.
33715         * tests/test-mbmemcasecoll3.sh: New file.
33716         * tests/test-mbmemcasecoll.c: New file.
33717
33718         New module 'mbmemcasecoll'.
33719         * lib/mbmemcasecoll.h: New file.
33720         * lib/mbmemcasecoll.c: New file.
33721         * modules/mbmemcasecoll: New file.
33722
33723         * tests/test-mbmemcasecmp.h: New file, extracted from
33724         tests/test-mbmemcasecmp.c.
33725         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
33726         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
33727         (main): Update.
33728         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
33729
33730 2009-03-09  Bruno Haible  <bruno@clisp.org>
33731
33732         Tests for module 'mbmemcasecmp'.
33733         * modules/mbmemcasecmp-tests: New file.
33734         * tests/test-mbmemcasecmp1.sh: New file.
33735         * tests/test-mbmemcasecmp2.sh: New file.
33736         * tests/test-mbmemcasecmp3.sh: New file.
33737         * tests/test-mbmemcasecmp.c: New file.
33738
33739         New module 'mbmemcasecmp'.
33740         * lib/mbmemcasecmp.h: New file.
33741         * lib/mbmemcasecmp.c: New file.
33742         * modules/mbmemcasecmp: New file.
33743
33744 2009-03-09  Bruno Haible  <bruno@clisp.org>
33745
33746         Tests for module 'unicase/ulc-casecoll'.
33747         * modules/unicase/ulc-casecoll-tests: New file.
33748         * tests/unicase/test-ulc-casecoll1.sh: New file.
33749         * tests/unicase/test-ulc-casecoll2.sh: New file.
33750         * tests/unicase/test-ulc-casecoll.c: New file.
33751
33752         New module 'unicase/ulc-casecoll'.
33753         * lib/unicase.h (ulc_casecoll): New declaration.
33754         * lib/unicase/ulc-casecoll.c: New file.
33755         * modules/unicase/ulc-casecoll: New file.
33756
33757         New module 'unicase/ulc-casexfrm'.
33758         * lib/unicase.h (ulc_casexfrm): New declaration.
33759         * lib/unicase/ulc-casexfrm.c: New file.
33760         * modules/unicase/ulc-casexfrm: New file.
33761
33762 2009-03-09  Bruno Haible  <bruno@clisp.org>
33763
33764         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
33765         invocations.
33766
33767         * m4/mbscasecmp.m4: Remove file.
33768         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
33769         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
33770
33771         * m4/mbscasestr.m4: Remove file.
33772         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
33773         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
33774
33775         * m4/mbschr.m4: Remove file.
33776         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
33777         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
33778
33779         * m4/mbscspn.m4: Remove file.
33780         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
33781         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
33782
33783         * m4/mbslen.m4: Remove file.
33784         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
33785         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
33786
33787         * m4/mbsncasecmp.m4: Remove file.
33788         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
33789         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
33790
33791         * m4/mbsnlen.m4: Remove file.
33792         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
33793         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
33794
33795         * m4/mbspbrk.m4: Remove file.
33796         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
33797         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
33798
33799         * m4/mbspcasecmp.m4: Remove file.
33800         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
33801         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
33802
33803         * m4/mbsrchr.m4: Remove file.
33804         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
33805         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
33806
33807         * m4/mbssep.m4: Remove file.
33808         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
33809         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
33810
33811         * m4/mbsspn.m4: Remove file.
33812         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
33813         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
33814
33815         * m4/mbsstr.m4: Remove file.
33816         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
33817         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
33818
33819         * m4/mbstok_r.m4: Remove file.
33820         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
33821         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
33822
33823         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
33824
33825         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
33826         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
33827
33828         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
33829
33830 2009-03-08  Bruno Haible  <bruno@clisp.org>
33831
33832         Tests for module 'unicase/ulc-casecmp'.
33833         * modules/unicase/ulc-casecmp-tests: New file.
33834         * tests/unicase/test-ulc-casecmp1.sh: New file.
33835         * tests/unicase/test-ulc-casecmp2.sh: New file.
33836         * tests/unicase/test-ulc-casecmp.c: New file.
33837
33838         New module 'unicase/ulc-casecmp'.
33839         * lib/unicase.h (ulc_casecmp): New declaration.
33840         * lib/unicase/ulc-casecmp.c: New file.
33841         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
33842         'const SRC_UNIT *'.
33843         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
33844         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
33845         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
33846         * modules/unicase/ulc-casecmp: New file.
33847
33848         Tests for module 'unicase/u32-is-cased'.
33849         * modules/unicase/u32-is-cased-tests: New file.
33850         * tests/unicase/test-u32-is-cased.c: New file.
33851
33852         Tests for module 'unicase/u16-is-cased'.
33853         * modules/unicase/u16-is-cased-tests: New file.
33854         * tests/unicase/test-u16-is-cased.c: New file.
33855
33856         Tests for module 'unicase/u8-is-cased'.
33857         * modules/unicase/u8-is-cased-tests: New file.
33858         * tests/unicase/test-u8-is-cased.c: New file.
33859         * tests/unicase/test-is-cased.h: New file.
33860
33861         New module 'unicase/u32-is-cased'.
33862         * lib/unicase/u32-is-cased.c: New file.
33863         * modules/unicase/u32-is-cased: New file.
33864
33865         New module 'unicase/u16-is-cased'.
33866         * lib/unicase/u16-is-cased.c: New file.
33867         * modules/unicase/u16-is-cased: New file.
33868
33869         New module 'unicase/u8-is-cased'.
33870         * lib/unicase/u8-is-cased.c: New file.
33871         * lib/unicase/u-is-cased.h: New file.
33872         * modules/unicase/u8-is-cased: New file.
33873
33874         Tests for module 'unicase/u32-is-casefolded'.
33875         * modules/unicase/u32-is-casefolded-tests: New file.
33876         * tests/unicase/test-u32-is-casefolded.c: New file.
33877
33878         Tests for module 'unicase/u16-is-casefolded'.
33879         * modules/unicase/u16-is-casefolded-tests: New file.
33880         * tests/unicase/test-u16-is-casefolded.c: New file.
33881
33882         Tests for module 'unicase/u8-is-casefolded'.
33883         * modules/unicase/u8-is-casefolded-tests: New file.
33884         * tests/unicase/test-u8-is-casefolded.c: New file.
33885         * tests/unicase/test-is-casefolded.h: New file.
33886
33887         New module 'unicase/u32-is-casefolded'.
33888         * lib/unicase/u32-is-casefolded.c: New file.
33889         * modules/unicase/u32-is-casefolded: New file.
33890
33891         New module 'unicase/u16-is-casefolded'.
33892         * lib/unicase/u16-is-casefolded.c: New file.
33893         * modules/unicase/u16-is-casefolded: New file.
33894
33895         New module 'unicase/u8-is-casefolded'.
33896         * lib/unicase/u8-is-casefolded.c: New file.
33897         * modules/unicase/u8-is-casefolded: New file.
33898
33899         Tests for module 'unicase/u32-is-titlecase'.
33900         * modules/unicase/u32-is-titlecase-tests: New file.
33901         * tests/unicase/test-u32-is-titlecase.c: New file.
33902
33903         Tests for module 'unicase/u16-is-titlecase'.
33904         * modules/unicase/u16-is-titlecase-tests: New file.
33905         * tests/unicase/test-u16-is-titlecase.c: New file.
33906
33907         Tests for module 'unicase/u8-is-titlecase'.
33908         * modules/unicase/u8-is-titlecase-tests: New file.
33909         * tests/unicase/test-u8-is-titlecase.c: New file.
33910         * tests/unicase/test-is-titlecase.h: New file.
33911
33912         New module 'unicase/u32-is-titlecase'.
33913         * lib/unicase/u32-is-titlecase.c: New file.
33914         * modules/unicase/u32-is-titlecase: New file.
33915
33916         New module 'unicase/u16-is-titlecase'.
33917         * lib/unicase/u16-is-titlecase.c: New file.
33918         * modules/unicase/u16-is-titlecase: New file.
33919
33920         New module 'unicase/u8-is-titlecase'.
33921         * lib/unicase/u8-is-titlecase.c: New file.
33922         * modules/unicase/u8-is-titlecase: New file.
33923
33924         Tests for module 'unicase/u32-is-lowercase'.
33925         * modules/unicase/u32-is-lowercase-tests: New file.
33926         * tests/unicase/test-u32-is-lowercase.c: New file.
33927
33928         Tests for module 'unicase/u16-is-lowercase'.
33929         * modules/unicase/u16-is-lowercase-tests: New file.
33930         * tests/unicase/test-u16-is-lowercase.c: New file.
33931
33932         Tests for module 'unicase/u8-is-lowercase'.
33933         * modules/unicase/u8-is-lowercase-tests: New file.
33934         * tests/unicase/test-u8-is-lowercase.c: New file.
33935         * tests/unicase/test-is-lowercase.h: New file.
33936
33937         New module 'unicase/u32-is-lowercase'.
33938         * lib/unicase/u32-is-lowercase.c: New file.
33939         * modules/unicase/u32-is-lowercase: New file.
33940
33941         New module 'unicase/u16-is-lowercase'.
33942         * lib/unicase/u16-is-lowercase.c: New file.
33943         * modules/unicase/u16-is-lowercase: New file.
33944
33945         New module 'unicase/u8-is-lowercase'.
33946         * lib/unicase/u8-is-lowercase.c: New file.
33947         * modules/unicase/u8-is-lowercase: New file.
33948
33949         Tests for module 'unicase/u32-is-uppercase'.
33950         * modules/unicase/u32-is-uppercase-tests: New file.
33951         * tests/unicase/test-u32-is-uppercase.c: New file.
33952
33953         Tests for module 'unicase/u16-is-uppercase'.
33954         * modules/unicase/u16-is-uppercase-tests: New file.
33955         * tests/unicase/test-u16-is-uppercase.c: New file.
33956
33957         Tests for module 'unicase/u8-is-uppercase'.
33958         * modules/unicase/u8-is-uppercase-tests: New file.
33959         * tests/unicase/test-u8-is-uppercase.c: New file.
33960         * tests/unicase/test-is-uppercase.h: New file.
33961
33962         New module 'unicase/u32-is-uppercase'.
33963         * lib/unicase/u32-is-uppercase.c: New file.
33964         * modules/unicase/u32-is-uppercase: New file.
33965
33966         New module 'unicase/u16-is-uppercase'.
33967         * lib/unicase/u16-is-uppercase.c: New file.
33968         * modules/unicase/u16-is-uppercase: New file.
33969
33970         New module 'unicase/u8-is-uppercase'.
33971         * lib/unicase/u8-is-uppercase.c: New file.
33972         * modules/unicase/u8-is-uppercase: New file.
33973
33974         New module 'unicase/u32-is-invariant'.
33975         * lib/unicase/u32-is-invariant.c: New file.
33976         * modules/unicase/u32-is-invariant: New file.
33977
33978         New module 'unicase/u16-is-invariant'.
33979         * lib/unicase/u16-is-invariant.c: New file.
33980         * modules/unicase/u16-is-invariant: New file.
33981
33982         New module 'unicase/u8-is-invariant'.
33983         * lib/unicase/u8-is-invariant.c: New file.
33984         * lib/unicase/invariant.h: New file.
33985         * lib/unicase/u-is-invariant.h: New file.
33986         * modules/unicase/u8-is-invariant: New file.
33987
33988         Tests for module 'unicase/u32-casecoll'.
33989         * modules/unicase/u32-casecoll-tests: New file.
33990         * tests/unicase/test-u32-casecoll.c: New file.
33991
33992         Tests for module 'unicase/u16-casecoll'.
33993         * modules/unicase/u16-casecoll-tests: New file.
33994         * tests/unicase/test-u16-casecoll.c: New file.
33995
33996         Tests for module 'unicase/u8-casecoll'.
33997         * modules/unicase/u8-casecoll-tests: New file.
33998         * tests/unicase/test-u8-casecoll.c: New file.
33999
34000         New module 'unicase/u32-casecoll'.
34001         * lib/unicase/u32-casecoll.c: New file.
34002         * modules/unicase/u32-casecoll: New file.
34003
34004         New module 'unicase/u16-casecoll'.
34005         * lib/unicase/u16-casecoll.c: New file.
34006         * modules/unicase/u16-casecoll: New file.
34007
34008         New module 'unicase/u8-casecoll'.
34009         * lib/unicase/u8-casecoll.c: New file.
34010         * lib/unicase/u-casecoll.h: New file.
34011         * modules/unicase/u8-casecoll: New file.
34012
34013         New module 'unicase/u32-casexfrm'.
34014         * lib/unicase/u32-casexfrm.c: New file.
34015         * modules/unicase/u32-casexfrm: New file.
34016
34017         New module 'unicase/u16-casexfrm'.
34018         * lib/unicase/u16-casexfrm.c: New file.
34019         * modules/unicase/u16-casexfrm: New file.
34020
34021         New module 'unicase/u8-casexfrm'.
34022         * lib/unicase/u8-casexfrm.c: New file.
34023         * lib/unicase/u-casexfrm.h: New file.
34024         * modules/unicase/u8-casexfrm: New file.
34025
34026         Tests for module 'unicase/u32-casecmp'.
34027         * modules/unicase/u32-casecmp-tests: New file.
34028         * tests/unicase/test-u32-casecmp.c: New file.
34029
34030         Tests for module 'unicase/u16-casecmp'.
34031         * modules/unicase/u16-casecmp-tests: New file.
34032         * tests/unicase/test-u16-casecmp.c: New file.
34033
34034         Tests for module 'unicase/u8-casecmp'.
34035         * modules/unicase/u8-casecmp-tests: New file.
34036         * tests/unicase/test-u8-casecmp.c: New file.
34037         * tests/unicase/test-casecmp.h: New file.
34038
34039         New module 'unicase/u32-casecmp'.
34040         * lib/unicase/u32-casecmp.c: New file.
34041         * modules/unicase/u32-casecmp: New file.
34042
34043         New module 'unicase/u16-casecmp'.
34044         * lib/unicase/u16-casecmp.c: New file.
34045         * modules/unicase/u16-casecmp: New file.
34046
34047         New module 'unicase/u8-casecmp'.
34048         * lib/unicase/u8-casecmp.c: New file.
34049         * lib/unicase/u-casecmp.h: New file.
34050         * modules/unicase/u8-casecmp: New file.
34051
34052         Tests for module 'unicase/u32-casefold'.
34053         * modules/unicase/u32-casefold-tests: New file.
34054         * tests/unicase/test-u32-casefold.c: New file.
34055
34056         Tests for module 'unicase/u16-casefold'.
34057         * modules/unicase/u16-casefold-tests: New file.
34058         * tests/unicase/test-u16-casefold.c: New file.
34059
34060         Tests for module 'unicase/u8-casefold'.
34061         * modules/unicase/u8-casefold-tests: New file.
34062         * tests/unicase/test-u8-casefold.c: New file.
34063
34064         New module 'unicase/u32-casefold'.
34065         * lib/unicase/u32-casefold.c: New file.
34066         * modules/unicase/u32-casefold: New file.
34067
34068         New module 'unicase/u16-casefold'.
34069         * lib/unicase/u16-casefold.c: New file.
34070         * modules/unicase/u16-casefold: New file.
34071
34072         New module 'unicase/u8-casefold'.
34073         * lib/unicase/u8-casefold.c: New file.
34074         * lib/unicase/u-casefold.h: New file.
34075         * modules/unicase/u8-casefold: New file.
34076
34077         New module 'unicase/tocasefold'.
34078         * lib/unicase/casefold.h: New file.
34079         * lib/unicase/tocasefold.c: New file.
34080         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34081         * modules/unicase/tocasefold: New file.
34082
34083         Tests for module 'unicase/u32-totitle'.
34084         * modules/unicase/u32-totitle-tests: New file.
34085         * tests/unicase/test-u32-totitle.c: New file.
34086
34087         Tests for module 'unicase/u16-totitle'.
34088         * modules/unicase/u16-totitle-tests: New file.
34089         * tests/unicase/test-u16-totitle.c: New file.
34090
34091         Tests for module 'unicase/u8-totitle'.
34092         * modules/unicase/u8-totitle-tests: New file.
34093         * tests/unicase/test-u8-totitle.c: New file.
34094
34095         New module 'unicase/u32-totitle'.
34096         * lib/unicase/u32-totitle.c: New file.
34097         * modules/unicase/u32-totitle: New file.
34098
34099         New module 'unicase/u16-totitle'.
34100         * lib/unicase/u16-totitle.c: New file.
34101         * modules/unicase/u16-totitle: New file.
34102
34103         New module 'unicase/u8-totitle'.
34104         * lib/unicase/u8-totitle.c: New file.
34105         * lib/unicase/u-totitle.h: New file.
34106         * modules/unicase/u8-totitle: New file.
34107
34108         Tests for module 'unicase/u32-tolower'.
34109         * modules/unicase/u32-tolower-tests: New file.
34110         * tests/unicase/test-u32-tolower.c: New file.
34111
34112         Tests for module 'unicase/u16-tolower'.
34113         * modules/unicase/u16-tolower-tests: New file.
34114         * tests/unicase/test-u16-tolower.c: New file.
34115
34116         Tests for module 'unicase/u8-tolower'.
34117         * modules/unicase/u8-tolower-tests: New file.
34118         * tests/unicase/test-u8-tolower.c: New file.
34119
34120         New module 'unicase/u32-tolower'.
34121         * lib/unicase/u32-tolower.c: New file.
34122         * modules/unicase/u32-tolower: New file.
34123
34124         New module 'unicase/u16-tolower'.
34125         * lib/unicase/u16-tolower.c: New file.
34126         * modules/unicase/u16-tolower: New file.
34127
34128         New module 'unicase/u8-tolower'.
34129         * lib/unicase/u8-tolower.c: New file.
34130         * modules/unicase/u8-tolower: New file.
34131
34132         Tests for module 'unicase/u32-toupper'.
34133         * modules/unicase/u32-toupper-tests: New file.
34134         * tests/unicase/test-u32-toupper.c: New file.
34135
34136         Tests for module 'unicase/u16-toupper'.
34137         * modules/unicase/u16-toupper-tests: New file.
34138         * tests/unicase/test-u16-toupper.c: New file.
34139
34140         Tests for module 'unicase/u8-toupper'.
34141         * modules/unicase/u8-toupper-tests: New file.
34142         * tests/unicase/test-u8-toupper.c: New file.
34143
34144         New module 'unicase/u32-toupper'.
34145         * lib/unicase/u32-toupper.c: New file.
34146         * modules/unicase/u32-toupper: New file.
34147
34148         New module 'unicase/u16-toupper'.
34149         * lib/unicase/u16-toupper.c: New file.
34150         * modules/unicase/u16-toupper: New file.
34151
34152         New module 'unicase/u8-toupper'.
34153         * lib/unicase/u8-toupper.c: New file.
34154         * modules/unicase/u8-toupper: New file.
34155
34156         New module 'unicase/u32-casemap'.
34157         * lib/unicase/u32-casemap.c: New file.
34158         * modules/unicase/u32-casemap: New file.
34159
34160         New module 'unicase/u16-casemap'.
34161         * lib/unicase/u16-casemap.c: New file.
34162         * modules/unicase/u16-casemap: New file.
34163
34164         New module 'unicase/u8-casemap'.
34165         * lib/unicase/unicasemap.h: New file.
34166         * lib/unicase/u8-casemap.c: New file.
34167         * lib/unicase/u-casemap.h: New file.
34168         * modules/unicase/u8-casemap: New file.
34169
34170         New module 'unicase/special-casing'.
34171         * lib/unicase/special-casing.h: New file.
34172         * lib/unicase/special-casing.c: New file.
34173         * lib/unicase/special-casing-table.gperf: New file, generated by
34174         gen-uni-tables.c.
34175         * modules/unicase/special-casing: New file.
34176
34177         Tests for module 'unicase/locale-language'.
34178         * modules/unicase/locale-language-tests: New file.
34179         * tests/unicase/test-locale-language.sh: New file.
34180         * tests/unicase/test-locale-language.c: New file.
34181
34182         New module 'unicase/locale-language'.
34183         * lib/unicase/locale-language.c: New file.
34184         * lib/unicase/locale-languages.gperf: New file.
34185         * modules/unicase/locale-language: New file.
34186
34187         Generate more tables for case conversion and case folding.
34188         * lib/gen-uni-tables.c (SCC_*): New enum items.
34189         (struct special_casing_rule): New type.
34190         (casing_rules, num_casing_rules, allocated_casing_rules): New
34191         variables.
34192         (add_casing_rule, fill_casing_rules): New functions.
34193         (struct casefold_rule): New type.
34194         (casefolding_rules, num_casefolding_rules,
34195         allocated_casefolding_rules): New variables.
34196         (fill_casefolding_rules): New function.
34197         (unicode_casefold): New variable.
34198         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34199         sort_casing_rules, output_casing_rules): New functions.
34200         (main): Accept to more arguments: SpecialCasing.txt and
34201         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34202         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34203         Output mapping for casefolding.
34204
34205         * lib/unicase.h: Include stdbool.h, uninorm.h.
34206         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34207         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34208         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34209         arguments.
34210         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34211         resultp arguments.
34212         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34213         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34214         resultp arguments.
34215         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34216         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34217         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34218         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34219         declarations.
34220         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34221
34222 2009-03-08  Bruno Haible  <bruno@clisp.org>
34223
34224         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34225         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34226         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34227         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34228
34229 2009-03-07  Bruno Haible  <bruno@clisp.org>
34230
34231         Adjust u*_normcmp, u*_normcoll API.
34232         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34233         u16_normcoll, u32_normcoll): Change failure conventions.
34234         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34235         errno and return -1.
34236         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34237
34238 2009-03-07  Bruno Haible  <bruno@clisp.org>
34239
34240         Tests for module 'uninorm/u32-normcoll'.
34241         * modules/uninorm/u32-normcoll-tests: New file.
34242         * tests/uninorm/test-u32-normcoll.c: New file.
34243
34244         Tests for module 'uninorm/u16-normcoll'.
34245         * modules/uninorm/u16-normcoll-tests: New file.
34246         * tests/uninorm/test-u16-normcoll.c: New file.
34247
34248         Tests for module 'uninorm/u8-normcoll'.
34249         * modules/uninorm/u8-normcoll-tests: New file.
34250         * tests/uninorm/test-u8-normcoll.c: New file.
34251
34252 2009-03-07  Bruno Haible  <bruno@clisp.org>
34253
34254         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34255         tests/uninorm/test-u32-normcmp.c.
34256         * tests/uninorm/test-u32-normcmp.c: Include it.
34257         (test_nonascii): New function, extracted from main. Add some more
34258         tests.
34259         (main): Invoke test_ascii and test_nonascii.
34260         * modules/uninorm/u32-normcmp-tests (Files): Add
34261         tests/uninorm/test-u32-normcmp.h.
34262         (Depends-on): Remove uninorm/u32-normcmp.
34263
34264         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34265         tests/uninorm/test-u16-normcmp.c.
34266         * tests/uninorm/test-u16-normcmp.c: Include it.
34267         (test_nonascii): New function, extracted from main. Add some more
34268         tests.
34269         (main): Invoke test_ascii and test_nonascii.
34270         * modules/uninorm/u16-normcmp-tests (Files): Add
34271         tests/uninorm/test-u16-normcmp.h.
34272         (Depends-on): Remove uninorm/u16-normcmp.
34273
34274         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34275         tests/uninorm/test-u8-normcmp.c.
34276         * tests/uninorm/test-u8-normcmp.c: Include it.
34277         (test_nonascii): New function, extracted from main. Add some more
34278         tests.
34279         (main): Invoke test_ascii and test_nonascii.
34280         * modules/uninorm/u8-normcmp-tests (Files): Add
34281         tests/uninorm/test-u8-normcmp.h.
34282         (Depends-on): Remove uninorm/u8-normcmp.
34283
34284 2009-03-07  Bruno Haible  <bruno@clisp.org>
34285
34286         New module 'uninorm/u32-normcoll'.
34287         * lib/uninorm/u32-normcoll.c: New file.
34288         * modules/uninorm/u32-normcoll: New file.
34289
34290         New module 'uninorm/u16-normcoll'.
34291         * lib/uninorm/u16-normcoll.c: New file.
34292         * modules/uninorm/u16-normcoll: New file.
34293
34294         New module 'uninorm/u8-normcoll'.
34295         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34296         declarations.
34297         * lib/uninorm/u8-normcoll.c: New file.
34298         * lib/uninorm/u-normcoll.h: New file.
34299         * modules/uninorm/u8-normcoll: New file.
34300
34301         New module 'uninorm/u32-normxfrm'.
34302         * lib/uninorm/u32-normxfrm.c: New file.
34303         * modules/uninorm/u32-normxfrm: New file.
34304
34305         New module 'uninorm/u16-normxfrm'.
34306         * lib/uninorm/u16-normxfrm.c: New file.
34307         * modules/uninorm/u16-normxfrm: New file.
34308
34309         New module 'uninorm/u8-normxfrm'.
34310         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34311         declarations.
34312         * lib/uninorm/u8-normxfrm.c: New file.
34313         * lib/uninorm/u-normxfrm.h: New file.
34314         * modules/uninorm/u8-normxfrm: New file.
34315
34316 2009-03-07  Bruno Haible  <bruno@clisp.org>
34317
34318         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34319         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34320         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34321
34322 2009-03-07  Bruno Haible  <bruno@clisp.org>
34323
34324         New module 'memxfrm'.
34325         * lib/memxfrm.h: New file.
34326         * lib/memxfrm.c: New file.
34327         * modules/memxfrm: New file.
34328
34329 2009-03-07  Bruno Haible  <bruno@clisp.org>
34330
34331         New module 'memcmp2'.
34332         * lib/memcmp2.h: New file.
34333         * lib/memcmp2.c: New file.
34334         * modules/memcmp2: New file.
34335
34336 2009-03-07  Bruno Haible  <bruno@clisp.org>
34337
34338         Tests for module 'uninorm/decomposing-form'.
34339         * modules/uninorm/decomposing-form-tests: New file.
34340         * tests/uninorm/test-decomposing-form.c: New file.
34341
34342         New module 'uninorm/decomposing-form'.
34343         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34344         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34345         Add 'decomposing_variant' field.
34346         * lib/uninorm/decomposing-form.c: New file.
34347         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34348         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34349         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34350         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34351         * modules/uninorm/decomposing-form: New file.
34352         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34353         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34354
34355 2009-03-07  Bruno Haible  <bruno@clisp.org>
34356
34357         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34358         strings.
34359
34360 2009-03-06  Bruno Haible  <bruno@clisp.org>
34361
34362         Tests for module 'uninorm/u32-normcmp'.
34363         * tests/uninorm/test-u32-normcmp.c: New file.
34364         * modules/uninorm/u32-normcmp-tests: New file.
34365
34366         Tests for module 'uninorm/u16-normcmp'.
34367         * tests/uninorm/test-u16-normcmp.c: New file.
34368         * modules/uninorm/u16-normcmp-tests: New file.
34369
34370         Tests for module 'uninorm/u8-normcmp'.
34371         * tests/uninorm/test-u8-normcmp.c: New file.
34372         * modules/uninorm/u8-normcmp-tests: New file.
34373
34374         New module 'uninorm/u32-normcmp'.
34375         * lib/uninorm/u32-normcmp.c: New file.
34376         * modules/uninorm/u32-normcmp: New file.
34377
34378         New module 'uninorm/u16-normcmp'.
34379         * lib/uninorm/u16-normcmp.c: New file.
34380         * modules/uninorm/u16-normcmp: New file.
34381
34382         New module 'uninorm/u8-normcmp'.
34383         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34384         declarations.
34385         * lib/uninorm/u8-normcmp.c: New file.
34386         * lib/uninorm/u-normcmp.h: New file.
34387         * modules/uninorm/u8-normcmp: New file.
34388
34389 2009-03-06  Bruno Haible  <bruno@clisp.org>
34390
34391         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34392         Reported by Eric Blake.
34393
34394 2009-03-06  Eric Blake  <ebb9@byu.net>
34395             Bruno Haible  <bruno@clisp.org>
34396
34397         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34398         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34399         condition.
34400         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34401         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34402         condition.
34403         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34404
34405 2009-03-06  Eric Blake  <ebb9@byu.net>
34406
34407         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34408         to avoid compiler warnings.
34409         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34410
34411 2009-03-05  Bruno Haible  <bruno@clisp.org>
34412
34413         * tests/test-ftell.c (main): Disable test beyond end of file on
34414         FreeMiNT.
34415         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34416
34417 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34418
34419         * lib/filevercmp.c: Move hidden files up in ordering.
34420         * tests/test-filevercmp.c: Add tests for hidden files.
34421
34422 2009-03-04  Bruno Haible  <bruno@clisp.org>
34423
34424         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34425         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34426         AM_CFLAGS.
34427         Reported by Simon Josefsson.
34428
34429 2009-03-03  Bruno Haible  <bruno@clisp.org>
34430
34431         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34432         Reported by Simon Josefsson.
34433
34434         * doc/ld-version-script.texi: Update node reference.
34435
34436 2009-03-03  Bruno Haible  <bruno@clisp.org>
34437
34438         * modules/visibility (License): Change to 'unlimited'.
34439         Suggested by Simon Josefsson.
34440
34441 2009-03-03  Jim Meyering  <meyering@redhat.com>
34442
34443         unlinkdir: cannot_unlink_dir may modify process state
34444         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34445         it's neither thread-safe nor appropriate for use in a library.
34446
34447 2009-03-03  Eric Blake  <ebb9@byu.net>
34448
34449         test-closein: silence test under Darwin
34450         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34451         care if it dies from EPIPE or EBADF.
34452
34453 2009-03-03  Bruno Haible  <bruno@clisp.org>
34454
34455         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
34456         earlier.
34457         * doc/visibility.texi: Fix @node and @section.
34458
34459 2009-03-03  Simon Josefsson  <simon@josefsson.org>
34460
34461         * doc/gnulib.texi: Link to sections for ld version script and
34462         visibility.
34463         * doc/visibility.texi: Add @node and @section.
34464         * modules/ld-version-script: New module.
34465         * m4/ld-version-script.m4: New file.
34466         * doc/ld-version-script.texi: New file.
34467
34468 2009-03-02  David Lutterkort  <lutter@redhat.com>
34469
34470         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34471         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34472
34473 2009-03-02  Bruno Haible  <bruno@clisp.org>
34474
34475         * doc/visibility.texi: Mention libtool's -export-symbols option.
34476
34477 2009-03-02  Jim Meyering  <meyering@redhat.com>
34478
34479         announce-gen: new option: --no-print-checksums
34480         * build-aux/announce-gen (usage): Describe it.
34481         (print_checksums): Print a newline here, not in the [*] footnote.
34482         (main): Honor it.
34483
34484 2009-03-01  Bruno Haible  <bruno@clisp.org>
34485
34486         Use socklen_t in the native Windows replacements prototypes.
34487         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34488         instead of 'int'.
34489         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34490         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34491         * modules/getsockopt (Depends-on): Add socklen.
34492         * modules/setsockopt (Depends-on): Add socklen.
34493
34494 2009-03-01  Bruno Haible  <bruno@clisp.org>
34495
34496         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34497         least 4.2.
34498
34499 2009-03-01  Eric Blake  <ebb9@byu.net>
34500             Bruno Haible  <bruno@clisp.org>
34501
34502         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34503         error messages.
34504         * lib/wait-process.c (wait_subprocess): Omit error message about
34505         deadly signal sent to the child of termsigp != NULL.
34506
34507 2009-03-01  Eric Blake  <ebb9@byu.net>
34508
34509         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34510
34511 2009-03-01  Bruno Haible  <bruno@clisp.org>
34512
34513         Avoid a gcc warning.
34514         * tests/test-sched.c (b): Make global.
34515         Reported by Eric Blake.
34516
34517 2009-01-19  Martin Lambers  <marlam@marlam.de>
34518
34519         Provide POSIX semantics for socket timeout options on W32.
34520         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34521         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34522         * modules/setsockopt: Depend on sys_time module for struct timeval.
34523         * modules/getsockopt: Depend on sys_time module for struct timeval.
34524
34525 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34526
34527         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34528         __USE_GNU, for consistency with netdb.in.h.
34529         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34530
34531 2009-03-01  Bruno Haible  <bruno@clisp.org>
34532
34533         More support for FreeMiNT.
34534         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34535         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34536
34537 2009-03-01  Bruno Haible  <bruno@clisp.org>
34538
34539         More support for FreeMiNT.
34540         * lib/fpurge.c (fpurge): Correct last commit.
34541         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34542
34543 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34544
34545         Fix unportable awk script in vc-list-files.
34546         * build-aux/vc-list-files: In the replacement awk script, use
34547         substr with a second argument of 1, not zero.
34548         Report by Simon Josefsson.
34549
34550 2009-02-28  Bruno Haible  <bruno@clisp.org>
34551
34552         More support for FreeMiNT.
34553         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
34554         to FreeMiNT today.
34555         * lib/fwriting.c (fwriting): Likewise.
34556         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
34557
34558 2009-02-28  Bruno Haible  <bruno@clisp.org>
34559
34560         * tests/test-freadseek.c (main): Disable test beyond end of file on
34561         FreeMiNT.
34562         * tests/test-ftello.c (main): Likewise.
34563         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34564
34565 2009-02-28  Bruno Haible  <bruno@clisp.org>
34566
34567         Add tentative support for FreeMiNT.
34568         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
34569         * lib/fpurge.c (fpurge): Likewise.
34570         * lib/freadable.c (freadable): Likewise.
34571         * lib/freading.c (freading): Likewise.
34572         * lib/freadptr.c (freadptr): Likewise.
34573         * lib/freadseek.c (freadptrinc): Likewise.
34574         * lib/fseeko.c (rpl_fseeko): Likewise.
34575         * lib/fseterr.c (fseterr): Likewise.
34576         * lib/fwritable.c (fwritable): Likewise.
34577         * lib/fwriting.c (fwriting): Likewise.
34578         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
34579         Hourihane.
34580         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34581
34582 2009-02-28  Bruno Haible  <bruno@clisp.org>
34583
34584         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
34585         SIGCHLD.
34586         Reported by Jim Meyering.
34587
34588 2009-02-28  Bruno Haible  <bruno@clisp.org>
34589
34590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
34591         Mention the results of these tests on various platforms.
34592         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
34593         order.
34594         * doc/posix-functions/printf.texi: Likewise.
34595         * doc/posix-functions/snprintf.texi: Likewise.
34596         * doc/posix-functions/sprintf.texi: Likewise.
34597         * doc/posix-functions/vfprintf.texi: Likewise.
34598         * doc/posix-functions/vprintf.texi: Likewise.
34599         * doc/posix-functions/vsnprintf.texi: Likewise.
34600         * doc/posix-functions/vsprintf.texi: Likewise.
34601         * doc/glibc-functions/obstack_printf.texi: Likewise.
34602         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
34603
34604 2009-02-28  Bruno Haible  <bruno@clisp.org>
34605
34606         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
34607         Reported by Loïc Minier <lool@dooz.org>.
34608
34609 2009-02-27  Bruno Haible  <bruno@clisp.org>
34610
34611         * gnulib-tool (func_import): Make the sed expression used to create the
34612         sed script for updating the .gitignore file POSIX compliant.
34613         Reported by Eric Blake.
34614
34615 2009-02-27  Bruno Haible  <bruno@clisp.org>
34616
34617         * gnulib-tool (sed): Don't alias as "sed --posix".
34618         Reported by Eric Blake.
34619
34620 2009-02-27  Bruno Haible  <bruno@clisp.org>
34621
34622         Avoid test link errors.
34623         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
34624         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
34625         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
34626         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
34627         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34628
34629 2009-02-27  Bruno Haible  <bruno@clisp.org>
34630
34631         Avoid spurious "(cached)" in configure output.
34632         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
34633         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
34634         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34635         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34636         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34637         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
34638         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34639         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
34640         Reported by Eric Blake.
34641
34642 2009-02-27  Eric Blake  <ebb9@byu.net>
34643
34644         printf: fix regression in previous patch
34645         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
34646
34647 2009-02-27  Bruno Haible  <bruno@clisp.org>
34648
34649         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
34650         value.
34651         * lib/stdint.in.h: Likewise.
34652         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
34653
34654 2009-02-27  Eric Blake  <ebb9@byu.net>
34655
34656         doc: mention more functions added in cygwin 1.7.0
34657         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
34658         addition.
34659         * doc/posix-functions/open_wmemstream.texi: Likewise.
34660         * doc/posix-functions/wcsnlen.texi: Likewise.
34661         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34662         * doc/posix-functions/wcstod.texi: Likewise.
34663         * doc/posix-functions/wcstof.texi: Likewise.
34664         * doc/posix-functions/wcstoimax.texi: Likewise.
34665         * doc/posix-functions/wcstok.texi: Likewise.
34666         * doc/posix-functions/wcstoumax.texi: Likewise.
34667
34668         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
34669         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
34670         * doc/posix-functions/fprintf.texi: Update.
34671         * doc/posix-functions/printf.texi: Update.
34672         * doc/posix-functions/snprintf.texi: Update.
34673         * doc/posix-functions/sprintf.texi: Update.
34674         * doc/posix-functions/vfprintf.texi: Update.
34675         * doc/posix-functions/vprintf.texi: Update.
34676         * doc/posix-functions/vsnprintf.texi: Update.
34677         * doc/posix-functions/vsprintf.texi: Update.
34678         * doc/glibc-functions/obstack_printf.texi: Update.
34679         * doc/glibc-functions/obstack_vprintf.texi: Update.
34680
34681 2009-02-26  Eric Blake  <ebb9@byu.net>
34682
34683         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
34684         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
34685         compilation bug by using runtime conversion.
34686         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34687         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
34688         * modules/ceill-tests (Files): Use nan.h.
34689         * modules/floorl-tests (Files): Likewise.
34690         * modules/frexpl-tests (Files): Likewise.
34691         * modules/isnanl-tests (Files): Likewise.
34692         * modules/ldexpl-tests (Files): Likewise.
34693         * modules/roundl-tests (Files): Likewise.
34694         * modules/truncl-tests (Files): Likewise.
34695         * tests/test-ceill.c (main): Use a working NaN.
34696         * tests/test-floorl.c (main): Likewise.
34697         * tests/test-frexpl.c (main): Likewise.
34698         * tests/test-isnan.c (test_long_double): Likewise.
34699         * tests/test-isnanl.h (main): Likewise.
34700         * tests/test-ldexpl.h (main): Likewise.
34701         * tests/test-roundl.h (main): Likewise.
34702         * tests/test-truncl.h (main): Likewise.
34703         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
34704
34705 2009-02-26  Eric Blake  <ebb9@byu.net>
34706             Bruno Haible  <bruno@clisp.org>
34707
34708         Work around a *printf bug with %ls on Solaris.
34709         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
34710         precision is specified, sprintf stops converting the wide string
34711         argument when the number of bytes that have been produced by this
34712         conversion equals or exceeds the precision.
34713         * doc/posix-functions/fprintf.texi: Update.
34714         * doc/posix-functions/printf.texi: Update.
34715         * doc/posix-functions/snprintf.texi: Update.
34716         * doc/posix-functions/sprintf.texi: Update.
34717         * doc/posix-functions/vfprintf.texi: Update.
34718         * doc/posix-functions/vprintf.texi: Update.
34719         * doc/posix-functions/vsnprintf.texi: Update.
34720         * doc/posix-functions/vsprintf.texi: Update.
34721         * doc/glibc-functions/obstack_printf.texi: Update.
34722         * doc/glibc-functions/obstack_vprintf.texi: Update.
34723
34724 2009-02-26  Eric Blake  <ebb9@byu.net>
34725
34726         stdlib: favor compiler check of random.h
34727         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
34728         to avoid an ObjC random.h installed by Swarm.
34729
34730 2009-02-26  Bruno Haible  <bruno@clisp.org>
34731
34732         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
34733         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
34734         Reported by Gary V. Vaughan <gary@gnu.org>.
34735
34736 2009-02-26  Bruno Haible  <bruno@clisp.org>
34737
34738         Fix *printf behaviour regarding the %ls directive.
34739         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
34740         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
34741         NEED_PRINTF_DIRECTIVE_LS.
34742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
34743         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34744         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34745         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
34746         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
34747         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
34748         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34749         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34750         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34751         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34752         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34753         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
34754         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34756         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34757         * doc/posix-functions/fprintf.texi: Update.
34758         * doc/posix-functions/printf.texi: Update.
34759         * doc/posix-functions/snprintf.texi: Update.
34760         * doc/posix-functions/sprintf.texi: Update.
34761         * doc/posix-functions/vfprintf.texi: Update.
34762         * doc/posix-functions/vprintf.texi: Update.
34763         * doc/posix-functions/vsnprintf.texi: Update.
34764         * doc/posix-functions/vsprintf.texi: Update.
34765         * doc/glibc-functions/obstack_printf.texi: Update.
34766         * doc/glibc-functions/obstack_vprintf.texi: Update.
34767         Reported by Eric Blake.
34768
34769 2009-02-25  Bruno Haible  <bruno@clisp.org>
34770
34771         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
34772         with known value.
34773         Reported by Gary V. Vaughan <gary@gnu.org>.
34774
34775 2009-02-25  Bruno Haible  <bruno@clisp.org>
34776
34777         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
34778         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
34779         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
34780         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
34781         Reported by Gary V. Vaughan <gary@gnu.org>.
34782
34783 2009-02-25  Bruno Haible  <bruno@clisp.org>
34784
34785         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
34786         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
34787         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
34788         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
34789         Reported by Gary V. Vaughan <gary@gnu.org>.
34790
34791 2009-02-25  Eric Blake  <ebb9@byu.net>
34792
34793         tests: skip fseek/ftell tests if ungetc is broken
34794         * m4/ungetc.m4: New file.
34795         * modules/fseek-tests: Split test, so ungetc dependency is
34796         separate from rest of test.
34797         * modules/fseeko-tests: Likewise.
34798         * modules/ftell-tests: Likewise.
34799         * modules/ftello-tests: Likewise.
34800         * tests/test-fseek.c (main): Isolate ungetc dependency.
34801         * tests/test-fseeko.c (main): Likewise.
34802         * tests/test-ftell.c (main): Likewise.
34803         * tests/test-ftello.c (main): Likewise.
34804         * tests/test-fseek2.sh: New file.
34805         * tests/test-fseeko2.sh: Likewise.
34806         * tests/test-ftell2.sh: Likewise.
34807         * tests/test-ftello2.sh: Likewise.
34808
34809 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
34810
34811         test-getaddrinfo: fix usage of skip return code 77
34812         * tests/test-gettaddrinfo.c: Return skip code 77 only
34813         for first occurance of skip (4x77 is not 77)
34814
34815 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
34816
34817         strtod: avoid C99 decl-after-statement
34818         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
34819
34820 2009-02-24  Eric Blake  <ebb9@byu.net>
34821
34822         strtod: detect HP-UX 11.31 bug
34823         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
34824         Reported by Gary V. Vaughan.
34825
34826 2009-02-23  Bruno Haible  <bruno@clisp.org>
34827
34828         Fix invalid read past end of memory block.
34829         * lib/vasnprintf.c (DCHAR_SET): Define.
34830         (local_wcslen): Define only when needed.
34831         (local_strnlen, local_wcsnlen): New functions.
34832         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
34833         directives that involve a conversion ourselves.
34834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
34835         wcsnlen, mbrtowc, wcrtomb.
34836         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
34837         * tests/test-vasprintf-posix.c (test_function): Likewise.
34838         * tests/test-snprintf-posix.h (test_function): Likewise.
34839         * tests/test-sprintf-posix.h (test_function): Likewise.
34840         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34841
34842 2009-02-22  Bruno Haible  <bruno@clisp.org>
34843
34844         Implement new clarified decomposition of Hangul syllables.
34845         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
34846         of type LTV, return only a pairwise decomposition.
34847         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
34848         Likewise.
34849         * tests/uninorm/test-decomposition.c (main): Updated expected result.
34850         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
34851         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
34852
34853 2009-02-22  Bruno Haible  <bruno@clisp.org>
34854
34855         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
34856         zero-length results and shrink excess allocated memory.
34857         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
34858         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
34859         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
34860         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
34861         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
34862         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
34863         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
34864         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
34865         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
34866         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
34867         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
34868         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
34869
34870 2009-02-21  Bruno Haible  <bruno@clisp.org>
34871
34872         * doc/gnulib.texi: Include safe-alloc.texi earlier.
34873         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
34874         spaces after a period. Put a space between a macro name and its
34875         argument list. Trivial rewordings.
34876         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
34877         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
34878         (main): Return 0 explicitly.
34879
34880 2009-02-21  Bruno Haible  <bruno@clisp.org>
34881
34882         Tests for module 'uninorm/filter'.
34883         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
34884         * modules/uninorm/filter-tests: New file.
34885
34886         New module 'uninorm/filter'.
34887         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
34888         uninorm_filter_flush, uninorm_filter_free): New declarations.
34889         * lib/uninorm/uninorm-filter.c: New file.
34890         * modules/uninorm/filter: New file.
34891
34892 2009-02-21  Bruno Haible  <bruno@clisp.org>
34893
34894         Tests for module 'uninorm/nfkc'.
34895         * tests/uninorm/test-nfkc.c: New file.
34896         * tests/uninorm/test-u8-nfkc.c: New file.
34897         * tests/uninorm/test-u16-nfkc.c: New file.
34898         * tests/uninorm/test-u32-nfkc.c: New file.
34899         * tests/uninorm/test-u32-nfkc-big.sh: New file.
34900         * tests/uninorm/test-u32-nfkc-big.c: New file.
34901         * modules/uninorm/nfkc-tests: New file.
34902
34903         New module 'uninorm/nfkc'.
34904         * lib/uninorm/nfkc.c: New file.
34905         * modules/uninorm/nfkc: New file.
34906
34907         Tests for module 'uninorm/nfkd'.
34908         * tests/uninorm/test-nfkd.c: New file.
34909         * tests/uninorm/test-u8-nfkd.c: New file.
34910         * tests/uninorm/test-u16-nfkd.c: New file.
34911         * tests/uninorm/test-u32-nfkd.c: New file.
34912         * tests/uninorm/test-u32-nfkd-big.sh: New file.
34913         * tests/uninorm/test-u32-nfkd-big.c: New file.
34914         * modules/uninorm/nfkd-tests: New file.
34915
34916         New module 'uninorm/nfkd'.
34917         * lib/uninorm/nfkd.c: New file.
34918         * modules/uninorm/nfkd: New file.
34919
34920         Tests for module 'uninorm/nfc'.
34921         * tests/uninorm/test-nfc.c: New file.
34922         * tests/uninorm/test-u8-nfc.c: New file.
34923         * tests/uninorm/test-u16-nfc.c: New file.
34924         * tests/uninorm/test-u32-nfc.c: New file.
34925         * tests/uninorm/test-u32-nfc-big.sh: New file.
34926         * tests/uninorm/test-u32-nfc-big.c: New file.
34927         * modules/uninorm/nfc-tests: New file.
34928
34929         New module 'uninorm/nfc'.
34930         * lib/uninorm/nfc.c: New file.
34931         * modules/uninorm/nfc: New file.
34932
34933         Tests for module 'uninorm/nfd'.
34934         * tests/uninorm/test-nfd.c: New file.
34935         * tests/uninorm/test-u8-nfd.c: New file.
34936         * tests/uninorm/test-u16-nfd.c: New file.
34937         * tests/uninorm/test-u32-nfd.c: New file.
34938         * tests/uninorm/test-u32-nfd-big.sh: New file.
34939         * tests/uninorm/test-u32-nfd-big.c: New file.
34940         * tests/uninorm/test-u32-normalize-big.h: New file.
34941         * tests/uninorm/test-u32-normalize-big.c: New file.
34942         * tests/uninorm/NormalizationTest.txt: New file, created from
34943         Unicode 5.1.0 NormalizationTest.txt.
34944         * modules/uninorm/nfd-tests: New file.
34945
34946         New module 'uninorm/nfd'.
34947         * lib/uninorm/nfd.c: New file.
34948         * modules/uninorm/nfd: New file.
34949
34950         New module 'uninorm/u32-normalize'.
34951         * lib/uninorm/u32-normalize.c: New file.
34952         * modules/uninorm/u32-normalize: New file.
34953
34954         New module 'uninorm/u16-normalize'.
34955         * lib/uninorm/u16-normalize.c: New file.
34956         * modules/uninorm/u16-normalize: New file.
34957
34958         New module 'uninorm/u8-normalize'.
34959         * lib/uninorm/u8-normalize.c: New file.
34960         * lib/uninorm/normalize-internal.h: New file.
34961         * lib/uninorm/u-normalize-internal.h: New file.
34962         * modules/uninorm/u8-normalize: New file.
34963
34964         New module 'uninorm/decompose-internal'.
34965         * lib/uninorm/decompose-internal.c: New file.
34966         * modules/uninorm/decompose-internal: New file.
34967
34968         Tests for module 'uninorm/composition'.
34969         * tests/uninorm/test-composition.c: New file.
34970         * modules/uninorm/composition-tests: New file.
34971
34972         New module 'uninorm/composition'.
34973         * lib/uninorm/composition.c: New file.
34974         * lib/uninorm/composition-table.gperf: New file, generated by
34975         gen-uni-tables.
34976         * modules/uninorm/composition: New file.
34977
34978         Tests for module 'uninorm/compat-decomposition'.
34979         * tests/uninorm/test-compat-decomposition.c: New file.
34980         * modules/uninorm/compat-decomposition-tests: New file.
34981
34982         New module 'uninorm/compat-decomposition'.
34983         * lib/uninorm/decompose-internal.h: New file.
34984         * lib/uninorm/compat-decomposition.c: New file.
34985         * modules/uninorm/compat-decomposition: New file.
34986
34987         Tests for module 'uninorm/canonical-decomposition'.
34988         * tests/uninorm/test-canonical-decomposition.c: New file.
34989         * modules/uninorm/canonical-decomposition-tests: New file.
34990
34991         New module 'uninorm/canonical-decomposition'.
34992         * lib/uninorm/canonical-decomposition.c: New file.
34993         * modules/uninorm/canonical-decomposition: New file.
34994
34995         Tests for module 'uninorm/decomposition'.
34996         * tests/uninorm/test-decomposition.c: New file.
34997         * modules/uninorm/decomposition-tests: New file.
34998
34999         New module 'uninorm/decomposition'.
35000         * lib/uninorm/decomposition.c: New file.
35001         * modules/uninorm/decomposition: New file.
35002
35003         New module 'uninorm/decomposition-table'.
35004         * lib/uninorm/decomposition-table.h: New file.
35005         * lib/uninorm/decomposition-table.c: New file.
35006         * lib/uninorm/decomposition-table1.h: New file, generated by
35007         gen-uni-tables.
35008         * lib/uninorm/decomposition-table2.h: New file, generated by
35009         gen-uni-tables.
35010         * modules/uninorm/decomposition-table: New file.
35011
35012         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35013         (UC_DECOMP_*): New enumeration items.
35014         (get_decomposition): New function.
35015         (struct decomp_table): New type.
35016         (output_decomposition, output_decomposition_tables): New functions.
35017         (unicode_composition_exclusions): New variable.
35018         (fill_composition_exclusions, debug_output_composition_tables): New
35019         functions.
35020         (main): Accept one more argument. Invoke fill_composition_exclusions.
35021         Output decomposition and composition tables.
35022
35023         New module 'uninorm/base'.
35024         * lib/uninorm.h: New file.
35025         * lib/unictype.h: Update comment.
35026         * modules/uninorm/base: New file.
35027
35028 2009-02-21  David Lutterkort  <lutter@redhat.com>
35029
35030         Tests for module 'safe-alloc'.
35031         * tests/test-safe-alloc.c: New file.
35032         * modules/safe-alloc-tests: New file.
35033
35034         New module 'safe-alloc'.
35035         * lib/safe-alloc.h: New file.
35036         * lib/safe-alloc.c: New file.
35037         * m4/safe-alloc.m4: New file.
35038         * modules/safe-alloc: New file.
35039         * doc/safe-alloc.texi: New file.
35040         * doc/gnulib.texi: Include it.
35041         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35042         safe-alloc.
35043
35044 2009-02-18  Bruno Haible  <bruno@clisp.org>
35045
35046         Fix link error on non-glibc systems.
35047         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35048         variable.
35049         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35050
35051 2009-02-18  Jim Meyering  <meyering@redhat.com>
35052
35053         fts: avoid used-uninitialized error due to recent change
35054         * lib/fts.c (fts_read): Guard uses of the new member,
35055         parent->fts_n_dirs_remaining, since it's not relevant for
35056         the parent of a directory specified on the command-line.
35057
35058 2009-02-17  James Youngman  <jay@gnu.org>
35059             Bruno Haible  <bruno@clisp.org>
35060
35061         * m4/include_next.m4: Reformulate comment.
35062
35063 2009-02-16  Jim Meyering  <meyering@redhat.com>
35064
35065         fts: add #if guards so that the fts_lgpl module still builds
35066         * lib/fts.c: Guard just-added hash-table-using parts with
35067         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35068         Reported by Simon Josefsson.
35069
35070 2009-02-15  Bruno Haible  <bruno@clisp.org>
35071
35072         * modules/array-mergesort-tests: New file.
35073         * tests/test-array-mergesort.c: New file.
35074
35075         New module 'array-mergesort'.
35076         * modules/array-mergesort: New file.
35077         * lib/array-mergesort.h: New file.
35078
35079 2009-02-15  Bruno Haible  <bruno@clisp.org>
35080
35081         Fix 2009-02-07 commit.
35082         * lib/gen-uni-tables.c (output_predicate, output_category,
35083         output_combclass, output_bidi_category, output_decimal_digit,
35084         output_digit, output_numeric, output_mirror, output_scripts,
35085         output_ident_category, output_simple_mapping): Fix format directives.
35086         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35087
35088 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35089
35090         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35091         fixes are available from IBM.
35092
35093 2009-02-13  Jim Meyering  <meyering@redhat.com>
35094
35095         fts: arrange not to stat non-directories in more cases
35096         This makes GNU find (when it doesn't need to stat each file)
35097         *much* more efficient at traversing reiserfs file systems.
35098         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35099         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35100         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35101         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35102         (leaf_optimization_applies): New function.
35103         (LCO_hash, LCO_compare): New helper functions.
35104         (link_count_optimize_ok): New function.
35105         (fts_stat): Initialize new member (if dir).
35106         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35107         we've just stat'ed a directory.  Skip the stat call when possible.
35108         ---
35109         Note this AFS-related exchange:
35110         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35111         and note find's pioctl call in find/fstype.c.
35112         But that is necessary only if you want to enable the
35113         optimization for AFS, and for now, I don't.
35114
35115         fts: move a function definition "up" (no semantic change)
35116         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35117         "up" to precede upcoming use of a related function.
35118
35119 2009-02-11  Jim Meyering  <meyering@redhat.com>
35120
35121         fts: correct internal computation of nlinks (optimization-related)
35122         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35123         whether the current entry is a directory, so don't test it.
35124
35125 2009-02-10  Bruno Haible  <bruno@clisp.org>
35126
35127         Tests for module 'uniwbrk/ulc-wordbreaks'.
35128         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35129         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35130         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35131
35132         Tests for module 'uniwbrk/u32-wordbreaks'.
35133         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35134         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35135
35136         Tests for module 'uniwbrk/u16-wordbreaks'.
35137         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35138         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35139
35140         Tests for module 'uniwbrk/u8-wordbreaks'.
35141         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35142         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35143
35144 2009-02-10  Bruno Haible  <bruno@clisp.org>
35145
35146         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35147         property.
35148         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35149         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35150         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35151
35152 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35153
35154         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35155         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35156
35157 2009-02-10  Bruno Haible  <bruno@clisp.org>
35158
35159         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35160         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35161         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35162         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35163         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35164         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35165
35166 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35167
35168         * lib/sockets.h (gl_fd_to_handle): New function.
35169
35170         * tests/test-sockets.c: Call gl_fd_to_handle.
35171
35172 2009-02-09  Bruno Haible  <bruno@clisp.org>
35173
35174         * doc/havelib.texi: Document the conventions on bi-arch systems.
35175
35176 2009-02-08  Bruno Haible  <bruno@clisp.org>
35177
35178         Document the AC_LIB_LINKFLAGS macro.
35179         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35180         * doc/gnulib.texi: Include it.
35181
35182 2009-02-08  Bruno Haible  <bruno@clisp.org>
35183
35184         Fix wrong order of sections, compared to TOC.
35185         * doc/gnulib.texi: Include relocatable-maint.texi after the
35186         "Regular expressions" node, not before.
35187
35188 2009-02-08  Bruno Haible  <bruno@clisp.org>
35189
35190         Tests for module 'unicase/totitle'.
35191         * modules/unicase/totitle-tests: New file.
35192
35193         Tests for module 'unicase/tolower'.
35194         * modules/unicase/tolower-tests: New file.
35195
35196         Tests for module 'unicase/toupper'.
35197         * modules/unicase/toupper-tests: New file.
35198         * tests/unicase/test-mapping-part1.h: New file.
35199         * tests/unicase/test-mapping-part2.h: New file.
35200
35201         New module 'unicase/totitle'.
35202         * modules/unicase/totitle: New file.
35203         * lib/unicase/totitle.c: New file.
35204
35205         New module 'unicase/tolower'.
35206         * modules/unicase/tolower: New file.
35207         * lib/unicase/tolower.c: New file.
35208
35209         New module 'unicase/toupper'.
35210         * modules/unicase/toupper: New file.
35211         * lib/unicase/toupper.c: New file.
35212         * lib/unicase/simple-mapping.h: New file.
35213
35214         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35215         (mapping_table): New structure.
35216         (output_simple_mapping): New function.
35217         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35218         * modules/gen-uni-tables (Description): Update.
35219         * lib/unicase/toupper.h: New file, automatically generated by
35220         gen-uni-tables.
35221         * lib/unicase/tolower.h: New file, automatically generated by
35222         gen-uni-tables.
35223         * lib/unicase/totitle.h: New file, automatically generated by
35224         gen-uni-tables.
35225         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35226         gen-uni-tables.
35227         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35228         gen-uni-tables.
35229         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35230         gen-uni-tables.
35231
35232         New module 'unicase/base'.
35233         * modules/unicase/base: New file.
35234         * lib/unicase.h: New file.
35235
35236 2009-02-08  Bruno Haible  <bruno@clisp.org>
35237
35238         New module 'uniwbrk/ulc-wordbreaks'.
35239         * modules/uniwbrk/ulc-wordbreaks: New file.
35240         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35241
35242         New module 'uniwbrk/u32-wordbreaks'.
35243         * modules/uniwbrk/u32-wordbreaks: New file.
35244         * lib/uniwbrk/u32-wordbreaks.c: New file.
35245
35246         New module 'uniwbrk/u16-wordbreaks'.
35247         * modules/uniwbrk/u16-wordbreaks: New file.
35248         * lib/uniwbrk/u16-wordbreaks.c: New file.
35249
35250         New module 'uniwbrk/u8-wordbreaks'.
35251         * modules/uniwbrk/u8-wordbreaks: New file.
35252         * lib/uniwbrk/u8-wordbreaks.c: New file.
35253         * lib/uniwbrk/u-wordbreaks.h: New file.
35254
35255         New module 'uniwbrk/table'.
35256         * modules/uniwbrk/table: New file.
35257         * lib/uniwbrk/wbrktable.h: New file.
35258         * lib/uniwbrk/wbrktable.c: New file.
35259
35260         New module 'uniwbrk/wordbreak-property'.
35261         * modules/uniwbrk/wordbreak-property: New file.
35262         * lib/uniwbrk/wordbreak-property.c: New file.
35263
35264         * lib/gen-uni-tables.c (WBP_*): New enum items.
35265         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35266         (unicode_org_wbp): New variable.
35267         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35268         New functions.
35269         (wbp_table): New structure.
35270         (output_wbp, output_wbrk_tables): New functions.
35271         (main): Accept additional argument. Invoke fill_org_wbp,
35272         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35273         output_wbrk_tables.
35274         * modules/gen-uni-tables (Description): Update.
35275         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35276         gen-uni-tables.
35277
35278         New module 'uniwbrk/base'.
35279         * modules/uniwbrk/base: New file.
35280         * lib/uniwbrk.h: New file.
35281
35282 2009-02-08  Bruno Haible  <bruno@clisp.org>
35283
35284         Update to Unicode 5.1.0.
35285         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35286         U+2185..U+2188.
35287         (is_property_default_ignorable_code_point): Don't include characters
35288         of category Cc or Cs and not-a-characters.
35289         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35290         U+0D79, U+109E, U+109F, U+A60C.
35291         * lib/unictype/bidi_of.h: Regenerated.
35292         * lib/unictype/blocks.h: Regenerated.
35293         * lib/unictype/categ_C.h: Regenerated.
35294         * lib/unictype/categ_Cf.h: Regenerated.
35295         * lib/unictype/categ_Cn.h: Regenerated.
35296         * lib/unictype/categ_L.h: Regenerated.
35297         * lib/unictype/categ_Ll.h: Regenerated.
35298         * lib/unictype/categ_Lm.h: Regenerated.
35299         * lib/unictype/categ_Lo.h: Regenerated.
35300         * lib/unictype/categ_Lu.h: Regenerated.
35301         * lib/unictype/categ_M.h: Regenerated.
35302         * lib/unictype/categ_Mc.h: Regenerated.
35303         * lib/unictype/categ_Me.h: Regenerated.
35304         * lib/unictype/categ_Mn.h: Regenerated.
35305         * lib/unictype/categ_N.h: Regenerated.
35306         * lib/unictype/categ_Nd.h: Regenerated.
35307         * lib/unictype/categ_Nl.h: Regenerated.
35308         * lib/unictype/categ_No.h: Regenerated.
35309         * lib/unictype/categ_P.h: Regenerated.
35310         * lib/unictype/categ_Pd.h: Regenerated.
35311         * lib/unictype/categ_Pe.h: Regenerated.
35312         * lib/unictype/categ_Pf.h: Regenerated.
35313         * lib/unictype/categ_Pi.h: Regenerated.
35314         * lib/unictype/categ_Po.h: Regenerated.
35315         * lib/unictype/categ_Ps.h: Regenerated.
35316         * lib/unictype/categ_S.h: Regenerated.
35317         * lib/unictype/categ_Sk.h: Regenerated.
35318         * lib/unictype/categ_Sm.h: Regenerated.
35319         * lib/unictype/categ_So.h: Regenerated.
35320         * lib/unictype/categ_of.h: Regenerated.
35321         * lib/unictype/combining.h: Regenerated.
35322         * lib/unictype/ctype_alnum.h: Regenerated.
35323         * lib/unictype/ctype_alpha.h: Regenerated.
35324         * lib/unictype/ctype_graph.h: Regenerated.
35325         * lib/unictype/ctype_lower.h: Regenerated.
35326         * lib/unictype/ctype_print.h: Regenerated.
35327         * lib/unictype/ctype_punct.h: Regenerated.
35328         * lib/unictype/ctype_upper.h: Regenerated.
35329         * lib/unictype/decdigit.h: Regenerated.
35330         * lib/unictype/digit.h: Regenerated.
35331         * lib/unictype/mirror.h: Regenerated.
35332         * lib/unictype/numeric.h: Regenerated.
35333         * lib/unictype/pr_alphabetic.h: Regenerated.
35334         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35335         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35336         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35337         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35338         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35339         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35340         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35341         * lib/unictype/pr_combining.h: Regenerated.
35342         * lib/unictype/pr_dash.h: Regenerated.
35343         * lib/unictype/pr_decimal_digit.h: Regenerated.
35344         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35345         * lib/unictype/pr_deprecated.h: Regenerated.
35346         * lib/unictype/pr_diacritic.h: Regenerated.
35347         * lib/unictype/pr_extender.h: Regenerated.
35348         * lib/unictype/pr_format_control.h: Regenerated.
35349         * lib/unictype/pr_grapheme_base.h: Regenerated.
35350         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35351         * lib/unictype/pr_grapheme_link.h: Regenerated.
35352         * lib/unictype/pr_id_continue.h: Regenerated.
35353         * lib/unictype/pr_id_start.h: Regenerated.
35354         * lib/unictype/pr_ideographic.h: Regenerated.
35355         * lib/unictype/pr_ignorable_control.h: Regenerated.
35356         * lib/unictype/pr_lowercase.h: Regenerated.
35357         * lib/unictype/pr_math.h: Regenerated.
35358         * lib/unictype/pr_numeric.h: Regenerated.
35359         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35360         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35361         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35362         * lib/unictype/pr_other_id_continue.h: Regenerated.
35363         * lib/unictype/pr_other_lowercase.h: Regenerated.
35364         * lib/unictype/pr_other_math.h: Regenerated.
35365         * lib/unictype/pr_punctuation.h: Regenerated.
35366         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35367         * lib/unictype/pr_soft_dotted.h: Regenerated.
35368         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35369         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35370         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35371         * lib/unictype/pr_uppercase.h: Regenerated.
35372         * lib/unictype/pr_xid_continue.h: Regenerated.
35373         * lib/unictype/pr_xid_start.h: Regenerated.
35374         * lib/unictype/pr_zero_width.h: Regenerated.
35375         * lib/unictype/scripts.h: Regenerated.
35376         * lib/unictype/scripts_byname.gperf: Regenerated.
35377         * lib/unictype/sy_java_ident.h: Regenerated.
35378         * lib/unilbrk/lbrkprop1.h: Regenerated.
35379         * lib/unilbrk/lbrkprop2.h: Regenerated.
35380         * tests/unictype/test-categ_C.c: Regenerated.
35381         * tests/unictype/test-categ_Cf.c: Regenerated.
35382         * tests/unictype/test-categ_Cn.c: Regenerated.
35383         * tests/unictype/test-categ_L.c: Regenerated.
35384         * tests/unictype/test-categ_Ll.c: Regenerated.
35385         * tests/unictype/test-categ_Lm.c: Regenerated.
35386         * tests/unictype/test-categ_Lo.c: Regenerated.
35387         * tests/unictype/test-categ_Lu.c: Regenerated.
35388         * tests/unictype/test-categ_M.c: Regenerated.
35389         * tests/unictype/test-categ_Mc.c: Regenerated.
35390         * tests/unictype/test-categ_Me.c: Regenerated.
35391         * tests/unictype/test-categ_Mn.c: Regenerated.
35392         * tests/unictype/test-categ_N.c: Regenerated.
35393         * tests/unictype/test-categ_Nd.c: Regenerated.
35394         * tests/unictype/test-categ_Nl.c: Regenerated.
35395         * tests/unictype/test-categ_No.c: Regenerated.
35396         * tests/unictype/test-categ_P.c: Regenerated.
35397         * tests/unictype/test-categ_Pd.c: Regenerated.
35398         * tests/unictype/test-categ_Pe.c: Regenerated.
35399         * tests/unictype/test-categ_Pf.c: Regenerated.
35400         * tests/unictype/test-categ_Pi.c: Regenerated.
35401         * tests/unictype/test-categ_Po.c: Regenerated.
35402         * tests/unictype/test-categ_Ps.c: Regenerated.
35403         * tests/unictype/test-categ_S.c: Regenerated.
35404         * tests/unictype/test-categ_Sk.c: Regenerated.
35405         * tests/unictype/test-categ_Sm.c: Regenerated.
35406         * tests/unictype/test-categ_So.c: Regenerated.
35407         * tests/unictype/test-ctype_alnum.c: Regenerated.
35408         * tests/unictype/test-ctype_alpha.c: Regenerated.
35409         * tests/unictype/test-ctype_graph.c: Regenerated.
35410         * tests/unictype/test-ctype_lower.c: Regenerated.
35411         * tests/unictype/test-ctype_print.c: Regenerated.
35412         * tests/unictype/test-ctype_punct.c: Regenerated.
35413         * tests/unictype/test-ctype_upper.c: Regenerated.
35414         * tests/unictype/test-decdigit.h: Regenerated.
35415         * tests/unictype/test-digit.h: Regenerated.
35416         * tests/unictype/test-numeric.h: Regenerated.
35417         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35418         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35419         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35420         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35421         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35422         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35423         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35424         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35425         * tests/unictype/test-pr_combining.c: Regenerated.
35426         * tests/unictype/test-pr_dash.c: Regenerated.
35427         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35428         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35429         * tests/unictype/test-pr_deprecated.c: Regenerated.
35430         * tests/unictype/test-pr_diacritic.c: Regenerated.
35431         * tests/unictype/test-pr_extender.c: Regenerated.
35432         * tests/unictype/test-pr_format_control.c: Regenerated.
35433         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35434         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35435         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35436         * tests/unictype/test-pr_id_continue.c: Regenerated.
35437         * tests/unictype/test-pr_id_start.c: Regenerated.
35438         * tests/unictype/test-pr_ideographic.c: Regenerated.
35439         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35440         * tests/unictype/test-pr_lowercase.c: Regenerated.
35441         * tests/unictype/test-pr_math.c: Regenerated.
35442         * tests/unictype/test-pr_numeric.c: Regenerated.
35443         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35444         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35445         Regenerated.
35446         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35447         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35448         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35449         * tests/unictype/test-pr_other_math.c: Regenerated.
35450         * tests/unictype/test-pr_punctuation.c: Regenerated.
35451         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35452         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
35453         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
35454         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
35455         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
35456         * tests/unictype/test-pr_uppercase.c: Regenerated.
35457         * tests/unictype/test-pr_xid_continue.c: Regenerated.
35458         * tests/unictype/test-pr_xid_start.c: Regenerated.
35459         * tests/unictype/test-pr_zero_width.c: Regenerated.
35460
35461         Update to Unicode 5.1.0.
35462         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
35463         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
35464         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
35465         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
35466         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
35467         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
35468         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
35469         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
35470         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35471         (nonspacing_table_ind): Update.
35472         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35473
35474         Update to Unicode 5.1.0.
35475         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35476         code transform.
35477         * lib/uniname/uniname.c (unicode_character_name,
35478         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35479         * lib/uniname/uninames.h: Regenerated.
35480         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35481
35482 2009-02-07  Bruno Haible  <bruno@clisp.org>
35483
35484         Merge gen-ctype and gen-lbrk into a single program.
35485         * lib/gen-uni-tables.c: New file, incorporating
35486         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35487         Add directory prefixes to the names of the generated files.
35488         * lib/unictype/gen-ctype.c: Remove file.
35489         * lib/unilbrk/gen-lbrk.c: Remove file.
35490         * modules/gen-uni-tables: New file.
35491         * modules/unictype/gen-ctype: Remove file.
35492         * modules/unilbrk/gen-lbrk: Remove file.
35493
35494 2009-02-07  Bruno Haible  <bruno@clisp.org>
35495
35496         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35497
35498         New module 'unistr/u32-strcoll'.
35499         * modules/unistr/u32-strcoll: New file.
35500         * lib/unistr/u32-strcoll.c: New file.
35501
35502         New module 'unistr/u16-strcoll'.
35503         * modules/unistr/u16-strcoll: New file.
35504         * lib/unistr/u16-strcoll.c: New file.
35505
35506         New module 'unistr/u8-strcoll'.
35507         * modules/unistr/u8-strcoll: New file.
35508         * lib/unistr/u8-strcoll.c: New file.
35509         * lib/unistr/u-strcoll.h: New file.
35510
35511 2009-02-07  Bruno Haible  <bruno@clisp.org>
35512
35513         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35514         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35515         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35516         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35517         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35518         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35519
35520 2009-02-07  Bruno Haible  <bruno@clisp.org>
35521
35522         Make 64-bit clean.
35523         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35524         output_combclass, output_bidi_category, output_decimal_digit,
35525         output_digit, output_numeric, output_mirror, output_scripts,
35526         output_ident_category): Use proper width specifier in format strings.
35527
35528 2009-02-07  Bruno Haible  <bruno@clisp.org>
35529
35530         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35531         failure behaviour.
35532
35533 2009-02-07  Jim Meyering  <meyering@redhat.com>
35534
35535         regex: avoid compilation failure with upcoming gcc-4.4
35536         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
35537         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
35538         "... error: integer overflow in preprocessor expression".
35539
35540 2009-02-05  Ben Pfaff  <blp@gnu.org>
35541
35542         Fix link errors on Windows when close module is used.
35543         * modules/close: Add $(LIB_CLOSE) to Link section.
35544         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
35545         $(LIB_CLOSE) on Windows.
35546
35547 2009-02-05  Jim Meyering  <meyering@redhat.com>
35548
35549         still avoid unused-parameter warnings, but do it cleanly
35550         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
35551         (get_fs_usage): Cast to void instead.
35552         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
35553         (dev_from_mount_options, read_file_system_list): Cast to void.
35554         Prompted by Bruno Haible.
35555
35556 2009-02-04  Jim Meyering  <meyering@redhat.com>
35557
35558         fsusage.c: correct copyright year
35559         * lib/fsusage.c: Reflect year in which the change is pushed into
35560
35561         avoid misc. warnings
35562         * lib/fsusage.c (UNUSED_PARAM): Define.
35563         (get_fs_usage): Mark parameter "disk" as unused.
35564         * lib/getugroups.c (getgrent): Use "void" in prototype.
35565         * lib/mountlist.c: Mark unused parameters.
35566         (read_file_system_list): Declare a local with "const".
35567         * lib/nanosleep.c (getnow): Declare static.
35568         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
35569
35570         dirfd: set errno upon failure
35571         * lib/dirfd.c: Include <errno.h>.
35572         Set errno to ENOTSUP when returning -1.
35573         * modules/dirfd (Depends-on): Add errno.
35574         Suggested by John Kodis <kodis@comcast.net>.
35575
35576 2009-02-01  Bruno Haible  <bruno@clisp.org>
35577
35578         Don't assume sizeof (long) >= sizeof (void *).
35579         * lib/memcmp.c: Include stdint.h.
35580         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
35581         srcp2 to 'const byte *'.
35582         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
35583         types to uintptr_t.
35584         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
35585         * modules/memcmp (Depends-on): Add stdint.
35586         Reported by Ozkan Sezer <sezeroz@gmail.com>.
35587
35588 2009-01-30  Eric Blake  <ebb9@byu.net>
35589
35590         fix more require-before-expand issues
35591         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
35592         expand, AC_PROG_AWK.
35593         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
35594
35595 2009-01-28  Eric Blake  <ebb9@byu.net>
35596
35597         version-etc: use consistent URL formatting
35598         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
35599         Improve formatting.  Use fputs for string without %.
35600
35601 2009-01-28  Jim Meyering  <meyering@redhat.com>
35602
35603         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
35604         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
35605         "underquoted definition of NAME" from autoconf-2.59.
35606
35607 2009-01-28  Bruno Haible  <bruno@clisp.org>
35608
35609         * doc/gnulib.texi: Add "Obsolete modules" to index.
35610
35611 2009-01-28  Jim Meyering  <meyering@redhat.com>
35612
35613         useless-if-before-free: recognize more variants
35614         * build-aux/useless-if-before-free: Also recognize e.g.,
35615         if (NULL != p) free (p);
35616
35617 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
35618
35619         test-getaddrinfo: skip (don't fail) this test when there's no network
35620         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
35621         on the presumption that it means you lack network access.
35622
35623 2009-01-26  Jim Meyering  <meyering@redhat.com>
35624
35625         fflush: avoid warnings on modern systems
35626         * lib/fflush.c (rpl_fflush): Move declarations of locals,
35627         pos and result, into scopes where they're used.
35628
35629 2009-01-26  Eric Blake  <ebb9@byu.net>
35630
35631         Silence warning reintroduced by recent extensions patch.
35632         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
35633         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
35634         autoconf.
35635
35636         Backport improved autoconf semantics of AC_DEFUN_ONCE.
35637         * m4/00gnulib.m4: New file.
35638         * gnulib-tool (func_get_filelist): Always use it.
35639         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
35640         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
35641
35642 2009-01-25  Bruno Haible  <bruno@clisp.org>
35643
35644         Make test-quotearg work on MacOS X and AIX.
35645         * tests/test-quotearg.sh: New file.
35646         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
35647         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
35648         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
35649         include <libintl.h>.
35650         (fake_locale): Remove variable.
35651         (gettext, dgettext, dcgettext): Remove functions.
35652         (main): Instead of setting a fake locale, set a real locale. Call
35653         textdomain and bindtextdomain.
35654         * modules/quotearg-tests (Files): Add the new files.
35655         (Depends-on): Add gettext, setenv, unsetenv.
35656         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35657         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
35658         Augment TESTS_ENVIRONMENT.
35659
35660 2009-01-25  Bruno Haible  <bruno@clisp.org>
35661
35662         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
35663         fr_FR.ISO8859-1 locale on MacOS X.
35664         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
35665         ja_JP.eucJP locale on MacOS X.
35666         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
35667         zh_CN.GB18030 locale on MacOS X.
35668
35669 2009-01-25  Bruno Haible  <bruno@clisp.org>
35670
35671         Avoid link errors on MacOS X 10.3.
35672         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
35673         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35674
35675 2009-01-25  Bruno Haible  <bruno@clisp.org>
35676
35677         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35678         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
35679         * modules/pipe (Files): Remove m4/posix_spawn.m4.
35680         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35681         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
35682         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35683         posix_spawnattr_init, posix_spawnattr_setsigmask,
35684         posix_spawnattr_setflags, posix_spawnattr_destroy.
35685
35686         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35687         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
35688         * modules/execute (Files): Remove m4/posix_spawn.m4.
35689         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35690         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35691         posix_spawnattr_init, posix_spawnattr_setsigmask,
35692         posix_spawnattr_setflags, posix_spawnattr_destroy.
35693
35694 2009-01-25  Bruno Haible  <bruno@clisp.org>
35695
35696         * lib/glthread/threadlib.c: Include <stdlib.h>.
35697
35698 2009-01-25  Bruno Haible  <bruno@clisp.org>
35699
35700         * lib/glthread/threadlib.c (dummy): New declaration.
35701
35702 2009-01-25  Bruno Haible  <bruno@clisp.org>
35703
35704         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
35705         multibyte characters also for the GB18030 encoding. Don't crash when
35706         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
35707
35708 2009-01-25  Bruno Haible  <bruno@clisp.org>
35709
35710         Avoid redefining 'struct random_data' on OSF/1 5.1.
35711         * lib/stdlib.in.h: Include <random.h> if it exists.
35712         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
35713         HAVE_RANDOM_H. Include <random.h> when testing whether
35714         'struct random_data' exists.
35715         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
35716
35717 2009-01-25  Bruno Haible  <bruno@clisp.org>
35718
35719         Don't install charset.alias on MacOS X >= 10.3.
35720         * lib/localcharset.c (DARWIN7): New macro.
35721         (get_charset_aliases): Hardcode the result for Darwin7.
35722         * modules/localcharset (install-exec-local): Don't install
35723         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
35724
35725 2009-01-25  Bruno Haible  <bruno@clisp.org>
35726
35727         Don't install charset.alias on mingw and Cygwin.
35728         * modules/localcharset (install-exec-local): Don't install
35729         charset.alias on mingw and Cygwin, if the file does not yet exist.
35730         The result for these platforms is hardcoded in localcharset.c.
35731
35732 2009-01-25  Bruno Haible  <bruno@clisp.org>
35733
35734         Make it possible again to use AC_GNU_SOURCE together with gnulib.
35735         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
35736         before requiring AC_USE_SYSTEM_EXTENSIONS.
35737
35738 2009-01-25  Jim Meyering  <meyering@redhat.com>
35739
35740         c-strtod: avoid warnings
35741         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
35742         "assignment discards qualifiers from pointer target type" warnings.
35743
35744 2009-01-24  Bruno Haible  <bruno@clisp.org>
35745
35746         Add support for non-UTF-8 locales on MacOS X.
35747         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
35748         canonical encodings. For Darwin 7 and newer, don't map traditional
35749         encodings to UTF-8.
35750         Reported by Vincent Lefevre <vincent@vinc17.org>
35751         at <http://savannah.gnu.org/bugs/?25235>.
35752
35753 2009-01-24  Bruno Haible  <bruno@clisp.org>
35754
35755         * doc/gnulib.texi (Obsolete modules): New section.
35756         Reported by Mike Frysinger <vapier@gentoo.org>.
35757
35758 2009-01-24  Bruno Haible  <bruno@clisp.org>
35759
35760         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
35761         (%.dvi): New rule.
35762
35763 2009-01-24  Bruno Haible  <bruno@clisp.org>
35764
35765         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
35766         Reported by Eric Blake.
35767
35768 2009-01-24  Bruno Haible  <bruno@clisp.org>
35769
35770         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
35771         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
35772         Reported by Gary V. Vaughan <gary@gnu.org>.
35773
35774 2009-01-24  Bruno Haible  <bruno@clisp.org>
35775
35776         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
35777
35778 2009-01-23  Bruno Haible  <bruno@clisp.org>
35779
35780         Make c-strtod, c-strtold usable in libraries.
35781         * lib/c-strtod.c: Include string.h instead of xalloc.h.
35782         (C_STRTOD): Call strdup instead of xstrdup.
35783         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
35784         * modules/c-strtold (Depends-on): Likewise.
35785         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
35786         * NEWS: Mention the change.
35787         Reported by Michael Gold <mgold@ncf.ca>.
35788
35789 2009-01-23  Jim Meyering  <meyering@redhat.com>
35790
35791         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
35792         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
35793         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
35794
35795 2009-01-23  Simon Josefsson  <simon@josefsson.org>
35796
35797         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
35798         GNU CoreUtils.
35799         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
35800         * modules/version-etc (Description): Update.
35801
35802 2009-01-22  Bruno Haible  <bruno@clisp.org>
35803
35804         Cache the C locale object.
35805         * lib/c-strtod.c (c_locale_cache): New variable.
35806         (c_locale): New function.
35807         (C_STRTOD): Use it, and don't call freelocale.
35808         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
35809         Suggested by Paolo Bonzini.
35810
35811 2009-01-21  Bruno Haible  <bruno@clisp.org>
35812
35813         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
35814         conditions other than overflow.
35815
35816 2009-01-21  Bruno Haible  <bruno@clisp.org>
35817
35818         * lib/c-strtod.c: Include errno.h.
35819         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
35820         value from STRTOD_L and STRTOD.
35821
35822 2009-01-21  Bruno Haible  <bruno@clisp.org>
35823         and Jim Meyering  <meyering@redhat.com>
35824
35825         nanosleep: skip configure test (fail it) for apple universal builds
35826         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
35827         universal builds, assume that nanosleep does not work.
35828         * modules/nanosleep (Depends-on): Add multiarch.
35829
35830         mktime: skip configure test (fail it) for apple universal builds
35831         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
35832         universal builds, assume that mktime does not work.
35833         * modules/mktime (Depends-on): Add multiarch.
35834
35835 2009-01-21  Eric Blake  <ebb9@byu.net>
35836
35837         multiarch: avoid expand-before-require warning
35838         * modules/multiarch (configure.ac): Require, rather than expand,
35839         gl_MULTIARCH.
35840         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
35841         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
35842         enforce that all clients require it.  Partial reversion of
35843         2008-12-29 patch.
35844
35845         error: avoid expand-before-require warning
35846         * modules/errno (configure.ac): Require, rather than expand,
35847         gl_HEADER_ERRNO_H.
35848         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
35849         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
35850         enforce that all clients require it.
35851
35852         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
35853         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
35854         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
35855         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
35856
35857 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
35858
35859         Revert:
35860         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35861
35862         regex: do not depend on obsolete modules.
35863         * modules/regex: Remove memcmp and memmove.
35864
35865 2009-01-20  Bruno Haible  <bruno@clisp.org>
35866
35867         Make the 'link' module link on Windows NT 4.
35868         * lib/link.c (_WIN32_WINNT): Don't define.
35869         (CreateHardLinkFuncType): New type.
35870         (CreateHardLinkFunc, initialized): New variables.
35871         (initialize): New function.
35872         (link): Invoke CreateHardLink indirectly through the function pointer.
35873
35874 2009-01-20  Bruno Haible  <bruno@clisp.org>
35875
35876         Fix compilation failure on mingw.
35877         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
35878
35879 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
35880
35881         * doc/c-strtod.texi: Mention a couple of restrictions.
35882
35883 2009-01-20  Jim Meyering  <meyering@redhat.com>
35884
35885         gettimeofday: move more declarations out of functions
35886         * lib/gettimeofday.c: Move extern declarations of tzset and
35887         gmtime out of containing functions.  Prompted by Bruno Haible.
35888
35889 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35890
35891         regex: do not depend on obsolete modules.
35892         * modules/regex: Remove memcmp and memmove.
35893
35894 2009-01-19  Bruno Haible  <bruno@clisp.org>
35895
35896         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35897         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
35898         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35899         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
35900         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
35901
35902 2009-01-19  Bruno Haible  <bruno@clisp.org>
35903
35904         * tests/test-link.c: Include <errno.h>.
35905         (main): Exit with code 77 when a hard link cannot be created due to
35906         the file system.
35907         * tests/test-link.sh: Skip test when a hard link cannot be created due
35908         to the file system.
35909         Suggested by Eric Blake.
35910
35911 2009-01-19  Martin Lambers  <marlam@marlam.de>
35912
35913         * modules/link-tests: New file.
35914         * tests/test-link.sh: New file.
35915         * tests/test-link.c: New file.
35916
35917 2009-01-19  Eric Blake  <ebb9@byu.net>
35918
35919         doc: mention another function added in cygwin 1.7.0
35920         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
35921         Another new function in cygwin 1.7.
35922
35923 2009-01-19  Bruno Haible  <bruno@clisp.org>
35924
35925         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35926         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
35927         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
35928         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35929         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35930         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
35931         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
35932         * m4/md4.m4 (gl_MD4): Likewise.
35933         * m4/md5.m4 (gl_MD5): Likewise.
35934         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
35935         * m4/sha1.m4 (gl_SHA1): Likewise.
35936         * m4/sha256.m4 (gl_SHA256): Likewise.
35937         * m4/sha512.m4 (gl_SHA512): Likewise.
35938
35939 2009-01-19  Bruno Haible  <bruno@clisp.org>
35940
35941         * modules/uniname/uniname-tests (Depends-on): Add progname.
35942         * tests/uniname/test-uninames.c: Include progname.h.
35943         (main): Call set_program_name.
35944
35945         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
35946         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
35947         (main): Call set_program_name.
35948
35949         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
35950         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
35951         (main): Call set_program_name.
35952
35953         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
35954         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
35955         (main): Call set_program_name.
35956
35957         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
35958         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
35959         (main): Call set_program_name.
35960
35961         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
35962         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
35963         (main): Call set_program_name.
35964
35965         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
35966         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
35967         (main): Call set_program_name.
35968
35969         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
35970         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
35971         (main): Call set_program_name.
35972
35973         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
35974         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
35975         (main): Call set_program_name.
35976
35977 2009-01-19  Eric Blake  <ebb9@byu.net>
35978
35979         test-unistd: test previous patch
35980         * tests/test-unistd.c: Test *_FILENO macros.
35981
35982         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
35983         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35984         Guarantee a definition.
35985         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
35986         * modules/unistd-safer (Depends-on): Add dependency on unistd.
35987         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
35988         * lib/dup-safer.c (STDERR_FILENO): Likewise.
35989         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35990         Likewise.
35991         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
35992         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
35993         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35994         Likewise.
35995         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
35996         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
35997         (STDERR_FILENO): Likewise.
35998         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
35999         (STDERR_FILENO): Likewise.
36000         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36001         (STDERR_FILENO): Likewise.
36002         Reported by Elbert Pol.
36003
36004 2009-01-19  Eric Blake  <ebb9@byu.net>
36005
36006         doc: mention more functions added in cygwin 1.7.0
36007         * doc/posix-functions/abort.texi (abort): Update wording related
36008         to cygwin.
36009         * doc/posix-functions/daylight.texi (daylight): Likewise.
36010         * doc/posix-functions/optarg.texi (optarg): Likewise.
36011         * doc/posix-functions/optarg.texi (opterr): Likewise.
36012         * doc/posix-functions/optarg.texi (optind): Likewise.
36013         * doc/posix-functions/optarg.texi (optopt): Likewise.
36014         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36015         worked in 1.5.x, and was withdrawn in 1.7.
36016         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36017         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36018         cygwin versions.
36019         * doc/posix-functions/perror.texi (perror): Likewise.
36020         * doc/posix-functions/printf.texi (printf): Likewise.
36021         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36022         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36023         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36024         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36025         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36026         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36027         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36028         Likewise.
36029         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36030         Likewise.
36031         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36032         this function.
36033         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36034         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36035         Likewise.
36036         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36037         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36038         * doc/posix-functions/confstr.texi (confstr): Likewise.
36039         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36040         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36041         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36042         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36043         * doc/posix-functions/fputws.texi (fputws): Likewise.
36044         * doc/posix-functions/fwide.texi (fwide): Likewise.
36045         * doc/posix-functions/getwc.texi (getwc): Likewise.
36046         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36047         * doc/posix-functions/putwc.texi (putwc): Likewise.
36048         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36049         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36050         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36051         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36052         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36053         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36054         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36055         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36056         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36057         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36058         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36059
36060 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36061
36062         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36063         * lib/ioctl.c: Include <sys/ioctl.h>.
36064
36065 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36066
36067         * modules/getdate-tests (Depends-on): Add progname.
36068         * tests/test-getdate.c: Use progname module, to avoid link errors
36069         on non-glibc systems.
36070
36071 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36072
36073         * modules/filenamecat-tests (Depends-on): Add progname.
36074         * modules/fstrcmp-tests (Depends-on): Likewise.
36075
36076         * tests/test-filenamecat.c: Use progname module, to avoid link
36077         errors on non-glibc systems.
36078         * tests/test-fstrcmp.c: Likewise.
36079
36080 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36081
36082         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36083         * lib/gettimeofday.c: Move extern declaration out of function.
36084
36085 2009-01-18  Bruno Haible  <bruno@clisp.org>
36086
36087         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36088         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36089         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36090
36091 2009-01-18  Bruno Haible  <bruno@clisp.org>
36092
36093         * lib/strftime.c (MEMPCPY): Remove unused macro.
36094         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36095
36096 2009-01-18  Martin Lambers  <marlam@marlam.de>
36097
36098         New module 'link'.
36099         * lib/unistd.in.h (link): New declaration.
36100         * lib/link.c: New file.
36101         * m4/link.m4: New file.
36102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36103         HAVE_LINK.
36104         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36105         * modules/link: New file.
36106         * doc/posix-functions/link.texi: Mention the new module.
36107
36108 2009-01-18  Bruno Haible  <bruno@clisp.org>
36109
36110         * tests/test-avltree_list.c (main): Call set_program_name.
36111         * tests/test-avltree_oset.c (main): Likewise.
36112         * tests/test-obstack-printf.c: Include progname.h.
36113         (main): Call set_program_name.
36114         * tests/test-quotearg.c: Include progname.h.
36115         (main): Call set_program_name.
36116         * tests/test-xmemdup0.c: Include progname.h.
36117         (main): Call set_program_name.
36118
36119 2009-01-18  Bruno Haible  <bruno@clisp.org>
36120
36121         New module 'alphasort'.
36122         * lib/dirent.in.h (alphasort): New declaration.
36123         * lib/alphasort.c: New file, from glibc with modifications.
36124         * m4/alphasort.m4: New file.
36125         * modules/alphasort: New file.
36126         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36127         HAVE_ALPHASORT.
36128         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36129         HAVE_ALPHASORT.
36130         * doc/posix-functions/alphasort.texi: Mention the new module and the
36131         portability problems.
36132
36133 2009-01-18  Bruno Haible  <bruno@clisp.org>
36134
36135         New module 'scandir'.
36136         * lib/dirent.in.h (scandir): New declaration.
36137         * lib/scandir.c: New file, from glibc with modifications.
36138         * m4/scandir.m4: New file.
36139         * modules/scandir: New file.
36140         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36141         HAVE_SCANDIR.
36142         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36143         HAVE_SCANDIR.
36144         * doc/posix-functions/scandir.texi: Mention the new module and the
36145         portability problems.
36146
36147 2009-01-17  Bruno Haible  <bruno@clisp.org>
36148
36149         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36150         Update documentation.
36151         (func_remove_suffix): Escape all dots in the suffix. Update
36152         documentation.
36153         (func_filter_filelist): Update documentation.
36154         Reported by Ralf Wildenhues.
36155
36156 2009-01-17  Bruno Haible  <bruno@clisp.org>
36157
36158         * modules/dprintf-posix-tests: New file.
36159         * tests/test-dprintf-posix.sh: New file.
36160         * tests/test-dprintf-posix.c: New file.
36161
36162         New modules 'dprintf', 'dprintf-posix'.
36163         * lib/stdio.in.h (dprintf): New declaration.
36164         * lib/dprintf.c: New file.
36165         * m4/dprintf.m4: New file.
36166         * m4/dprintf-posix.m4: New file.
36167         * modules/dprintf: New file.
36168         * modules/dprintf-posix: New file.
36169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36170         HAVE_DPRINTF, REPLACE_DPRINTF.
36171         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36172         HAVE_DPRINTF, REPLACE_DPRINTF.
36173         * doc/posix-functions/dprintf.texi: Mention the new modules.
36174
36175 2009-01-17  Bruno Haible  <bruno@clisp.org>
36176
36177         * modules/vdprintf-posix-tests: New file.
36178         * tests/test-vdprintf-posix.sh: New file.
36179         * tests/test-vdprintf-posix.c: New file.
36180
36181         New modules 'vdprintf', 'vdprintf-posix'.
36182         * lib/stdio.in.h (vdprintf): New declaration.
36183         * lib/vdprintf.c: New file.
36184         * m4/vdprintf.m4: New file.
36185         * m4/vdprintf-posix.m4: New file.
36186         * modules/vdprintf: New file.
36187         * modules/vdprintf-posix: New file.
36188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36189         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36190         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36191         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36192         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36193
36194 2009-01-17  Bruno Haible  <bruno@clisp.org>
36195
36196         Fix replacement of fopen on mingw.
36197         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36198         mingw.
36199
36200 2009-01-17  Bruno Haible  <bruno@clisp.org>
36201
36202         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36203         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36204
36205 2009-01-17  Bruno Haible  <bruno@clisp.org>
36206
36207         Avoid test-fflush2.sh failure on mingw.
36208         * tests/test-fflush2.c: Include binary-io.h.
36209         (main): Put standard input into binary mode.
36210         * modules/fflush-tests (Depends-on): Add binary-io.
36211
36212 2009-01-17  Bruno Haible  <bruno@clisp.org>
36213
36214         * lib/wchar.in.h: In another particular situation, include only the
36215         system's <wchar.h> file.
36216         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36217         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36218         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36219
36220 2009-01-17  Bruno Haible  <bruno@clisp.org>
36221
36222         Support for stripping executables in --enable-relocatable.
36223         * build-aux/install-reloc: Expect one more argument, or an environment
36224         variable RELOC_STRIP_PROG. If set, strip the destination program and
36225         its wrapper.
36226         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36227         RELOC_STRIP_PROG.
36228         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36229         to set RELOCATABLE_STRIP.
36230         * NEWS: Mention the new Makefile requirement.
36231
36232 2009-01-17  Bruno Haible  <bruno@clisp.org>
36233
36234         * build-aux/install-reloc: Remove debugging information left over by
36235         C compiler on MacOS X.
36236
36237 2009-01-17  Bruno Haible  <bruno@clisp.org>
36238
36239         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36240         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36241         _NSGetExecutablePath.
36242
36243 2009-01-16  Jim Meyering  <meyering@redhat.com>
36244
36245         strerror: avoid warnings about discarding "const"
36246         * lib/strerror.c (rpl_strerror): Instead of returning a const
36247         string from each and every "case", use a variable, and add a single
36248         cast after the switch.
36249
36250 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36251
36252         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36253
36254 2009-01-16  Bruno Haible  <bruno@clisp.org>
36255
36256         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36257         array initializer syntax that also works in C++ mode.
36258         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36259
36260 2009-01-16  Jim Meyering  <meyering@redhat.com>
36261
36262         poll: suppress a warning
36263         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36264         to ignore "...unsigned expression < 0 is always false" warnings.
36265
36266 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36267
36268         poll: remove declarations of unused variables
36269         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36270         sockbuf and optlen.
36271
36272 2009-01-15  Bruno Haible  <bruno@clisp.org>
36273
36274         Make fflush-after-ungetc POSIX compliant on BSD systems.
36275         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36276         (clear_ungetc_buffer): Implement also for other systems.
36277         (rpl_fflush): On glibc systems, invoke
36278         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36279         clear_ungetc_buffer after fetching the stream's position, not before.
36280
36281 2009-01-15  Bruno Haible  <bruno@clisp.org>
36282
36283         Make fflush-after-ungetc POSIX compliant on glibc systems.
36284         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36285         after ungetc.
36286         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36287         (rpl_fflush): On glibc systems, simply call the system's fflush
36288         function after clearing the ungetc buffer.
36289         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36290         Instead, lseek only to the end of file, then use the system's fseeko
36291         for the rest. On glibc systems, reset the EOF indicator bit.
36292
36293 2009-01-15  Jim Meyering  <meyering@redhat.com>
36294
36295         openmp.m4: revert quote-adding change, for portability to older autoconf
36296         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36297         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36298         Simon Josefsson noticed the problem when using autoconf-2.61.
36299
36300 2009-01-15  Bruno Haible  <bruno@clisp.org>
36301
36302         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36303         * tests/test-fflush2.c (ASSERT): Always fail.
36304         (main): Add two tests for fflush() after ungetc(), taking into account
36305         the Austin Group's clarification.
36306         Suggested by Eric Blake.
36307
36308 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36309
36310         mktime.m4: remove K&R-style function prototypes
36311         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36312         for the Sun C++ compiler.
36313
36314 2009-01-14  Bruno Haible  <bruno@clisp.org>
36315
36316         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36317         while including <wchar.h>.
36318         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36319         the system's <wchar.h> file.
36320         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36321
36322 2009-01-14  Bruno Haible  <bruno@clisp.org>
36323
36324         * m4/csharp.m4: Don't mention gettext on the serial number line.
36325         * m4/csharpexec.m4: Likewise.
36326         * m4/eaccess.m4: Likewise.
36327         * m4/javaexec.m4: Likewise.
36328         * m4/sig_atomic_t.m4: Likewise.
36329         * m4/tmpdir.m4: Likewise.
36330         * m4/intldir.m4: Bump gettext version.
36331         * m4/lib-ld.m4: Likewise.
36332
36333 2009-01-14  Bruno Haible  <bruno@clisp.org>
36334
36335         * lib/progname.c (set_program_name): Add more comments.
36336         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36337
36338 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36339
36340         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36341         were sys/stat.h does not define it.
36342
36343 2009-01-14  Jim Meyering  <meyering@redhat.com>
36344
36345         many *.m4 files: improve m4 quoting
36346         99% of this change was performed by running the following commands:
36347         git ls-files | grep '\.m4$' | xargs perl -pi \
36348           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36349           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36350           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36351           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36352         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36353         The remainder were to add Copyright dates, increment serial numbers,
36354         undo some changes in comments, exclude m4/intl.m4, and add quotes
36355         around the "1" in ",1" where the unusual spacing prohibited the
36356         above regexps from doing the job.  For more details, see
36357         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36358         * m4/acl.m4: Modified.
36359         * m4/afs.m4: Likewise.
36360         * m4/alloca.m4: Likewise.
36361         * m4/argp.m4: Likewise.
36362         * m4/argz.m4: Likewise.
36363         * m4/atexit.m4: Likewise.
36364         * m4/bison-i18n.m4: Likewise.
36365         * m4/bison.m4: Likewise.
36366         * m4/byteswap.m4: Likewise.
36367         * m4/c-stack.m4: Likewise.
36368         * m4/c-strtod.m4: Likewise.
36369         * m4/calloc.m4: Likewise.
36370         * m4/canonicalize-lgpl.m4: Likewise.
36371         * m4/chown.m4: Likewise.
36372         * m4/clock_time.m4: Likewise.
36373         * m4/codeset.m4: Likewise.
36374         * m4/copy-file.m4: Likewise.
36375         * m4/csharp.m4: Likewise.
36376         * m4/csharpcomp.m4: Likewise.
36377         * m4/csharpexec.m4: Likewise.
36378         * m4/d-ino.m4: Likewise.
36379         * m4/d-type.m4: Likewise.
36380         * m4/dirfd.m4: Likewise.
36381         * m4/double-slash-root.m4: Likewise.
36382         * m4/eaccess.m4: Likewise.
36383         * m4/eealloc.m4: Likewise.
36384         * m4/environ.m4: Likewise.
36385         * m4/errno_h.m4: Likewise.
36386         * m4/euidaccess.m4: Likewise.
36387         * m4/execute.m4: Likewise.
36388         * m4/fatal-signal.m4: Likewise.
36389         * m4/fchdir.m4: Likewise.
36390         * m4/fcntl_h.m4: Likewise.
36391         * m4/fileblocks.m4: Likewise.
36392         * m4/filenamecat.m4: Likewise.
36393         * m4/findprog.m4: Likewise.
36394         * m4/flexmember.m4: Likewise.
36395         * m4/fnmatch.m4: Likewise.
36396         * m4/fopen.m4: Likewise.
36397         * m4/fpending.m4: Likewise.
36398         * m4/fprintf-posix.m4: Likewise.
36399         * m4/free.m4: Likewise.
36400         * m4/frexp.m4: Likewise.
36401         * m4/frexpl.m4: Likewise.
36402         * m4/fsusage.m4: Likewise.
36403         * m4/ftruncate.m4: Likewise.
36404         * m4/gc-camellia.m4: Likewise.
36405         * m4/gc-random.m4: Likewise.
36406         * m4/gc.m4: Likewise.
36407         * m4/getaddrinfo.m4: Likewise.
36408         * m4/getcwd-abort-bug.m4: Likewise.
36409         * m4/getcwd-path-max.m4: Likewise.
36410         * m4/getdate.m4: Likewise.
36411         * m4/getdomainname.m4: Likewise.
36412         * m4/getgroups.m4: Likewise.
36413         * m4/gethostname.m4: Likewise.
36414         * m4/gethrxtime.m4: Likewise.
36415         * m4/getline.m4: Likewise.
36416         * m4/getloadavg.m4: Likewise.
36417         * m4/getndelim2.m4: Likewise.
36418         * m4/getpass.m4: Likewise.
36419         * m4/gettext.m4: Likewise.
36420         * m4/gettime.m4: Likewise.
36421         * m4/gettimeofday.m4: Likewise.
36422         * m4/gnulib-common.m4: Likewise.
36423         * m4/group-member.m4: Likewise.
36424         * m4/host-os.m4: Likewise.
36425         * m4/iconv.m4: Likewise.
36426         * m4/iconv_open.m4: Likewise.
36427         * m4/inet_ntop.m4: Likewise.
36428         * m4/inet_pton.m4: Likewise.
36429         * m4/inline.m4: Likewise.
36430         * m4/intldir.m4: Likewise.
36431         * m4/intlmacosx.m4: Likewise.
36432         * m4/intmax.m4: Likewise.
36433         * m4/intmax_t.m4: Likewise.
36434         * m4/inttypes.m4: Likewise.
36435         * m4/inttypes_h.m4: Likewise.
36436         * m4/inttypes-pri.m4: Likewise.
36437         * m4/isapipe.m4: Likewise.
36438         * m4/isnand.m4: Likewise.
36439         * m4/isnanf.m4: Likewise.
36440         * m4/isnanl.m4: Likewise.
36441         * m4/javacomp.m4: Likewise.
36442         * m4/javaexec.m4: Likewise.
36443         * m4/jm-winsz1.m4: Likewise.
36444         * m4/jm-winsz2.m4: Likewise.
36445         * m4/lchown.m4: Likewise.
36446         * m4/lcmessage.m4: Likewise.
36447         * m4/ldexpl.m4: Likewise.
36448         * m4/lib-ld.m4: Likewise.
36449         * m4/lib-link.m4: Likewise.
36450         * m4/libsigsegv.m4: Likewise.
36451         * m4/link-follow.m4: Likewise.
36452         * m4/localcharset.m4: Likewise.
36453         * m4/locale-fr.m4: Likewise.
36454         * m4/locale-ja.m4: Likewise.
36455         * m4/locale-tr.m4: Likewise.
36456         * m4/locale-zh.m4: Likewise.
36457         * m4/lock.m4: Likewise.
36458         * m4/longlong.m4: Likewise.
36459         * m4/ls-mntd-fs.m4: Likewise.
36460         * m4/lstat.m4: Likewise.
36461         * m4/malloc.m4: Likewise.
36462         * m4/mathl.m4: Likewise.
36463         * m4/mbrtowc.m4: Likewise.
36464         * m4/mbstate_t.m4: Likewise.
36465         * m4/mbswidth.m4: Likewise.
36466         * m4/memchr.m4: Likewise.
36467         * m4/memcmp.m4: Likewise.
36468         * m4/memcpy.m4: Likewise.
36469         * m4/memmem.m4: Likewise.
36470         * m4/memmove.m4: Likewise.
36471         * m4/mempcpy.m4: Likewise.
36472         * m4/memrchr.m4: Likewise.
36473         * m4/memset.m4: Likewise.
36474         * m4/minmax.m4: Likewise.
36475         * m4/mkdir-slash.m4: Likewise.
36476         * m4/mkdtemp.m4: Likewise.
36477         * m4/mktime.m4: Likewise.
36478         * m4/mmap-anon.m4: Likewise.
36479         * m4/mountlist.m4: Likewise.
36480         * m4/nanosleep.m4: Likewise.
36481         * m4/nls.m4: Likewise.
36482         * m4/nocrash.m4: Likewise.
36483         * m4/open.m4: Likewise.
36484         * m4/openat.m4: Likewise.
36485         * m4/openmp.m4: Likewise.
36486         * m4/pathmax.m4: Likewise.
36487         * m4/perl.m4: Likewise.
36488         * m4/physmem.m4: Likewise.
36489         * m4/pipe.m4: Likewise.
36490         * m4/po.m4: Likewise.
36491         * m4/poll.m4: Likewise.
36492         * m4/posixtm.m4: Likewise.
36493         * m4/posixver.m4: Likewise.
36494         * m4/printf-frexp.m4: Likewise.
36495         * m4/printf-frexpl.m4: Likewise.
36496         * m4/printf-posix.m4: Likewise.
36497         * m4/printf-posix-rpl.m4: Likewise.
36498         * m4/printf.m4: Likewise.
36499         * m4/progtest.m4: Likewise.
36500         * m4/putenv.m4: Likewise.
36501         * m4/readline.m4: Likewise.
36502         * m4/readlink.m4: Likewise.
36503         * m4/readutmp.m4: Likewise.
36504         * m4/realloc.m4: Likewise.
36505         * m4/regex.m4: Likewise.
36506         * m4/relocatable.m4: Likewise.
36507         * m4/relocatable-lib.m4: Likewise.
36508         * m4/rename-dest-slash.m4: Likewise.
36509         * m4/rename.m4: Likewise.
36510         * m4/rmdir-errno.m4: Likewise.
36511         * m4/rmdir.m4: Likewise.
36512         * m4/roundf.m4: Likewise.
36513         * m4/roundl.m4: Likewise.
36514         * m4/rpmatch.m4: Likewise.
36515         * m4/save-cwd.m4: Likewise.
36516         * m4/selinux-selinux-h.m4: Likewise.
36517         * m4/setenv.m4: Likewise.
36518         * m4/settime.m4: Likewise.
36519         * m4/sig2str.m4: Likewise.
36520         * m4/sig_atomic_t.m4: Likewise.
36521         * m4/signalblocking.m4: Likewise.
36522         * m4/signbit.m4: Likewise.
36523         * m4/sigpipe.m4: Likewise.
36524         * m4/sockets.m4: Likewise.
36525         * m4/sockpfaf.m4: Likewise.
36526         * m4/st_dm_mode.m4: Likewise.
36527         * m4/stat-time.m4: Likewise.
36528         * m4/stdbool.m4: Likewise.
36529         * m4/stdint.m4: Likewise.
36530         * m4/stdint_h.m4: Likewise.
36531         * m4/stpcpy.m4: Likewise.
36532         * m4/stpncpy.m4: Likewise.
36533         * m4/strcase.m4: Likewise.
36534         * m4/strchrnul.m4: Likewise.
36535         * m4/strcspn.m4: Likewise.
36536         * m4/strdup.m4: Likewise.
36537         * m4/strftime.m4: Likewise.
36538         * m4/strndup.m4: Likewise.
36539         * m4/strnlen.m4: Likewise.
36540         * m4/strpbrk.m4: Likewise.
36541         * m4/strptime.m4: Likewise.
36542         * m4/strsep.m4: Likewise.
36543         * m4/strtod.m4: Likewise.
36544         * m4/strtoimax.m4: Likewise.
36545         * m4/strtok_r.m4: Likewise.
36546         * m4/strtol.m4: Likewise.
36547         * m4/strtoll.m4: Likewise.
36548         * m4/strtoul.m4: Likewise.
36549         * m4/strtoull.m4: Likewise.
36550         * m4/strtoumax.m4: Likewise.
36551         * m4/strverscmp.m4: Likewise.
36552         * m4/threadlib.m4: Likewise.
36553         * m4/timegm.m4: Likewise.
36554         * m4/tm_gmtoff.m4: Likewise.
36555         * m4/tmpdir.m4: Likewise.
36556         * m4/tmpfile.m4: Likewise.
36557         * m4/tzset.m4: Likewise.
36558         * m4/uintmax_t.m4: Likewise.
36559         * m4/unlinkdir.m4: Likewise.
36560         * m4/unlocked-io.m4: Likewise.
36561         * m4/uptime.m4: Likewise.
36562         * m4/userspec.m4: Likewise.
36563         * m4/utimbuf.m4: Likewise.
36564         * m4/utime.m4: Likewise.
36565         * m4/utimes-null.m4: Likewise.
36566         * m4/utimes.m4: Likewise.
36567         * m4/vararrays.m4: Likewise.
36568         * m4/vasnprintf.m4: Likewise.
36569         * m4/vfprintf-posix.m4: Likewise.
36570         * m4/vprintf-posix.m4: Likewise.
36571         * m4/wait-process.m4: Likewise.
36572         * m4/wchar_t.m4: Likewise.
36573         * m4/wint_t.m4: Likewise.
36574         * m4/write-any-file.m4: Likewise.
36575         * m4/yield.m4: Likewise.
36576
36577 2009-01-13  Bruno Haible  <bruno@clisp.org>
36578
36579         Avoid test-copy-file.sh failures when ACL support insufficient.
36580         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
36581         TESTS_ENVIRONMENT.
36582         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
36583         Reported by Jim Meyering.
36584
36585 2009-01-13  Bruno Haible  <bruno@clisp.org>
36586
36587         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
36588         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
36589         * modules/unistdio/u8-printf-parse (Files): Likewise.
36590         * modules/unistdio/u32-printf-parse (Files): Likewise.
36591         * modules/unistdio/ulc-printf-parse (Files): Likewise.
36592
36593 2009-01-13  Simon Josefsson  <simon@josefsson.org>
36594
36595         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
36596         and m4/inttypes_h.m4 too.
36597
36598 2009-01-12  Eric Blake  <ebb9@byu.net>
36599
36600         tests: IRIX 6.2 cc can't compile -0.0 into .data
36601         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
36602         rather than at compile-time.
36603         * tests/test-floorl.c (minus_zero): Likewise.
36604         * tests/test-frexpl.c (minus_zero): Likewise.
36605         * tests/test-isnan.c (minus_zerol): Likewise.
36606         * tests/test-isnanl.h (minus_zero): Likewise.
36607         * tests/test-ldexpl.c (minus_zero): Likewise.
36608         * tests/test-roundl.c (minus_zero): Likewise.
36609         * tests/test-signbit.c (minus_zerol): Likewise.
36610         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36611         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36612         * tests/test-truncl.c (minus_zero): Likewise.
36613         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36614         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36615         Reported by Tom G. Christensen and Nelson H. F. Beebe.
36616
36617 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36618
36619         regex: fix glibc bug 9697
36620         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
36621         handling.
36622
36623 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36624
36625         regex: fix glibc bug 697
36626         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
36627         being NULL also if there are no backreferences.
36628
36629 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36630
36631         regex: merge glibc changes
36632         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
36633         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
36634         re_string_skip_chars, re_string_reconstruct): Likewise.
36635         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
36636
36637 2009-01-07  Jim Meyering  <meyering@redhat.com>
36638
36639         poll: filter through cppi
36640         * lib/poll.c: Indent cpp directives to reflect nesting.
36641
36642 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
36643
36644         poll: don't return uninitialized
36645         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
36646
36647 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
36648
36649         avoid compile failure on AIX 6.1
36650         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
36651         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
36652
36653 2009-01-04  Jim Meyering  <meyering@redhat.com>
36654
36655         remove duplicate inclusion of <stdio.h>
36656         * tests/test-fprintf-posix.c: Likewise.
36657         * tests/test-printf-posix.c: Likewise.
36658         * tests/test-snprintf-posix.c: Likewise.
36659         * tests/test-sprintf-posix.c: Likewise.
36660         * tests/test-vasprintf-posix.c: Likewise.
36661         * tests/test-vfprintf-posix.c: Likewise.
36662         * tests/test-vprintf-posix.c: Likewise.
36663         * tests/test-vsnprintf-posix.c: Likewise.
36664         * tests/test-vsprintf-posix.c: Likewise.
36665
36666 2009-01-03  Jim Meyering  <meyering@redhat.com>
36667
36668         gnulib-tool: fix sed-based filtering
36669         * gnulib-tool (func_filter_filelist): Remove extra backslash
36670         in sed_fff_filter definition.
36671
36672 2009-01-02  Jim Meyering  <meyering@redhat.com>
36673
36674         strftime: avoid compilation failure on Solaris 2.6
36675         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
36676         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
36677         Don't #define mbrlen or mbsinit, since now they're guaranteed to
36678         be available.  Reported by Tom G. Christensen.  Details in
36679         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
36680
36681 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36682             Bruno Haible  <bruno@clisp.org>
36683
36684         Speed up gnulib-tool by doing more string processing through shell
36685         built-ins.
36686         * gnulib-tool (fast_func_append): New variable.
36687         (func_remove_prefix, func_remove_suffix): New functions.
36688         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
36689         (func_filter_filelist): New function.
36690         (func_get_dependencies): Use func_remove_suffix instead of sed.
36691         (func_get_automake_snippet): Use func_filter_filelist instead of a
36692         subshell and sed invocation.
36693
36694 2009-01-01  Bruno Haible  <bruno@clisp.org>
36695
36696         Fix a security bug.
36697         * gnulib-tool (func_import, import, update): Don't allow the characters
36698         '"', '$', '`', '\' in macro arguments that become part of commands that
36699         are evaluated.
36700
36701 2009-01-01  Bruno Haible  <bruno@clisp.org>
36702
36703         * gnulib-tool (func_reset_sigpipe): Add more comments.
36704
36705 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36706
36707         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
36708         func_emit_tests_Makefile_am, func_import): Abort loops early if we
36709         already know the answer.
36710
36711 2009-01-01  Jim Meyering  <meyering@redhat.com>
36712
36713         * lib/version-etc.c (version_etc_va): Update copyright year.
36714
36715 2008-12-30  Bruno Haible  <bruno@clisp.org>
36716
36717         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
36718         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
36719         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
36720
36721 2008-12-29  Eric Blake  <ebb9@byu.net>
36722
36723         multiarch: avoid autoconf AC_REQUIRE bug
36724         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
36725         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
36726         2.63 and older.
36727         Reported by Bruno Haible, and analyzed in
36728         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
36729
36730 2008-12-29  Bruno Haible  <bruno@clisp.org>
36731
36732         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
36733         files in subdirectories correctly.
36734         Reported by Ralf Wildenhues.
36735
36736 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36737
36738         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
36739         rather than 'join FILE -', for Solaris join.
36740
36741 2008-12-29  Bruno Haible  <bruno@clisp.org>
36742
36743         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
36744         quoting.
36745         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
36746         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
36747         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
36748         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
36749         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
36750         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
36751         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
36752         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
36753         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
36754         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
36755         * m4/nls.m4 (AM_NLS): Likewise.
36756         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
36757         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
36758         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36759         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
36760         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
36761         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
36762         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
36763         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
36764         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
36765         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36766         * m4/xsize.m4 (gl_XSIZE): Likewise.
36767         Suggested by Jim Meyering.
36768
36769 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36770
36771         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
36772         * lib/parse-duration.c: use a switch instead of cascading if's.
36773
36774 2008-12-29  Eric Blake  <ebb9@byu.net>
36775
36776         wchar.h: supply WEOF on Irix 5.3
36777         * lib/wchar.in.h (wint_t): Also supply WEOF.
36778         * lib/wctype.in.h (wint_t): Likewise.
36779         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
36780         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
36781         Reported by Tom G. Christensen.
36782
36783 2008-12-26  Bruno Haible  <bruno@clisp.org>
36784
36785         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
36786         i486, i586, i686.
36787
36788 2008-12-26  Bruno Haible  <bruno@clisp.org>
36789
36790         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
36791
36792 2008-12-26  Bruno Haible  <bruno@clisp.org>
36793
36794         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
36795         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
36796         not __STDC_CONSTANT_MACROS.
36797         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36798
36799 2008-12-25  Bruno Haible  <bruno@clisp.org>
36800
36801         Add support for universal builds to vasnprintf.
36802         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
36803         universal builds, guess no.
36804         * modules/vasnprintf-posix (Depends-on): Add multiarch.
36805         * modules/vasprintf-posix (Depends-on): Likewise.
36806         * modules/fprintf-posix (Depends-on): Likewise.
36807         * modules/vfprintf-posix (Depends-on): Likewise.
36808         * modules/snprintf-posix (Depends-on): Likewise.
36809         * modules/vsnprintf-posix (Depends-on): Likewise.
36810         * modules/sprintf-posix (Depends-on): Likewise.
36811         * modules/vsprintf-posix (Depends-on): Likewise.
36812         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36813         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36814         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36815         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36816         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36817         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36818         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36819
36820         Add support for universal builds to <inttypes.h>.
36821         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
36822         _SCNu64_PREFIX): In Apple
36823         universal builds, define directly, using _LP64.
36824         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
36825         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
36826         * modules/inttypes (Depends-on): Add multiarch.
36827         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36828
36829         Add support for universal builds to <stdint.h>.
36830         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
36831         universal builds, define directly, using _LP64.
36832         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
36833         Apple universal builds, don't test for the size and suffix of ptrdiff_t
36834         and size_t.
36835         * modules/stdint (Depends-on): Add multiarch.
36836         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36837
36838         New module 'multiarch'.
36839         * modules/multiarch: New file.
36840         * m4/multiarch.m4: New file.
36841
36842 2008-12-25  Bruno Haible  <bruno@clisp.org>
36843
36844         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
36845
36846 2008-12-25  Bruno Haible  <bruno@clisp.org>
36847
36848         * modules/btowc (License): Relicense under LGPLv2+.
36849         * modules/mbsinit (License): Likewise.
36850         * modules/mbrtowc (License): Likewise.
36851         * modules/wcrtomb (License): Likewise.
36852         * modules/streq (License): Likewise.
36853         Reported by David Lutterkort <lutter@redhat.com>.
36854
36855 2008-12-23  Bruno Haible  <bruno@clisp.org>
36856
36857         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
36858
36859 2008-12-23  Bruno Haible  <bruno@clisp.org>
36860
36861         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
36862         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
36863         GETADDRINFO_LIB, not in LIBS.
36864         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
36865         * modules/canon-host (Link): Likewise.
36866         * NEWS: Mention the change.
36867         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
36868         GETADDRINFO_LIB.
36869
36870 2008-12-22  Bruno Haible  <bruno@clisp.org>
36871
36872         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
36873         * doc/posix-functions/iswalpha_l.texi: Likewise.
36874         * doc/posix-functions/iswblank_l.texi: Likewise.
36875         * doc/posix-functions/iswcntrl_l.texi: Likewise.
36876         * doc/posix-functions/iswctype_l.texi: Likewise.
36877         * doc/posix-functions/iswdigit_l.texi: Likewise.
36878         * doc/posix-functions/iswgraph_l.texi: Likewise.
36879         * doc/posix-functions/iswlower_l.texi: Likewise.
36880         * doc/posix-functions/iswprint_l.texi: Likewise.
36881         * doc/posix-functions/iswpunct_l.texi: Likewise.
36882         * doc/posix-functions/iswspace_l.texi: Likewise.
36883         * doc/posix-functions/iswupper_l.texi: Likewise.
36884         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36885         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
36886         * doc/posix-functions/open_wmemstream.texi: Likewise.
36887         * doc/posix-functions/swscanf.texi: Likewise.
36888         * doc/posix-functions/towctrans_l.texi: Likewise.
36889         * doc/posix-functions/towlower.texi: Likewise.
36890         * doc/posix-functions/towlower_l.texi: Likewise.
36891         * doc/posix-functions/towupper.texi: Likewise.
36892         * doc/posix-functions/towupper_l.texi: Likewise.
36893         * doc/posix-functions/vfwprintf.texi: Likewise.
36894         * doc/posix-functions/vfwscanf.texi: Likewise.
36895         * doc/posix-functions/vswscanf.texi: Likewise.
36896         * doc/posix-functions/vwprintf.texi: Likewise.
36897         * doc/posix-functions/vwscanf.texi: Likewise.
36898         * doc/posix-functions/wcpcpy.texi: Likewise.
36899         * doc/posix-functions/wcpncpy.texi: Likewise.
36900         * doc/posix-functions/wcscasecmp.texi: Likewise.
36901         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
36902         * doc/posix-functions/wcscoll_l.texi: Likewise.
36903         * doc/posix-functions/wcsdup.texi: Likewise.
36904         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36905         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
36906         * doc/posix-functions/wcsnlen.texi: Likewise.
36907         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36908         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36909         * doc/posix-functions/wctrans_l.texi: Likewise.
36910         * doc/posix-functions/wctype_l.texi: Likewise.
36911         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
36912         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
36913         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
36914         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
36915         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
36916         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
36917         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
36918         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
36919         * doc/glibc-functions/wcschrnul.texi: Likewise.
36920         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36921         * doc/glibc-functions/wcstod_l.texi: Likewise.
36922         * doc/glibc-functions/wcstof_l.texi: Likewise.
36923         * doc/glibc-functions/wcstol_l.texi: Likewise.
36924         * doc/glibc-functions/wcstold_l.texi: Likewise.
36925         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36926         * doc/glibc-functions/wcstoq.texi: Likewise.
36927         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36928         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36929         * doc/glibc-functions/wcstouq.texi: Likewise.
36930         * doc/glibc-functions/wmempcpy.texi: Likewise.
36931
36932 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
36933             Eric Blake  <ebb9@byu.net>
36934             Paolo Bonzini  <bonzini@gnu.org>
36935             Bruno Haible  <bruno@clisp.org>
36936
36937         Make c-stack work on Haiku.
36938         * lib/c-stack.c (SA_ONSTACK): Define fallback.
36939         (c_stack_action): Use SA_ONSTACK flag.
36940
36941 2008-12-22  Bruno Haible  <bruno@clisp.org>
36942
36943         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
36944
36945 2008-12-22  Bruno Haible  <bruno@clisp.org>
36946
36947         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
36948         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
36949         being overridden.
36950         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
36951         New macros.
36952         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
36953         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
36954         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
36955         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
36956
36957 2008-12-22  Bruno Haible  <bruno@clisp.org>
36958
36959         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
36960         from test code.
36961
36962 2008-12-22  Eric Blake  <ebb9@byu.net>
36963
36964         Avoid gcc warnings on cygwin.
36965         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
36966         Avoid unused variable.
36967         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
36968         Likewise.
36969
36970 2008-12-22  Bruno Haible  <bruno@clisp.org>
36971
36972         Remove HAVE_MBRTOWC conditionals.
36973         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
36974         (mbscasecmp): Assume mbrtowc function.
36975         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
36976         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
36977         * lib/mbschr.c: Include mbuiter.h unconditionally.
36978         (mbschr): Assume mbrtowc function.
36979         * lib/mbscspn.c: Include mbuiter.h unconditionally.
36980         (mbscspn): Assume mbrtowc function.
36981         * lib/mbslen.c: Include mbuiter.h unconditionally.
36982         (mbslen): Assume mbrtowc function.
36983         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
36984         (mbsncasecmp): Assume mbrtowc function.
36985         * lib/mbsnlen.c: Include mbiter.h unconditionally.
36986         (mbsnlen): Assume mbrtowc function.
36987         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
36988         (mbspbrk): Assume mbrtowc function.
36989         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
36990         (mbspcasecmp): Assume mbrtowc function.
36991         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
36992         (mbsrchr): Assume mbrtowc function.
36993         * lib/mbssep.c: Include mbuiter.h unconditionally.
36994         (mbssep): Assume mbrtowc function.
36995         * lib/mbsspn.c: Include mbuiter.h unconditionally.
36996         (mbsspn): Assume mbrtowc function.
36997         * lib/mbsstr.c: Include mbuiter.h unconditionally.
36998         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
36999         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37000         (mbstok_r): Assume mbrtowc function.
37001         * lib/propername.c: Include mbuiter.h unconditionally.
37002         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37003         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37004         (trim2): Assume mbrtowc function.
37005         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37006         (mbsnwidth): Assume mbrtowc function.
37007         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37008         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37009         fallback definitions.
37010         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37011
37012 2008-12-22  Bruno Haible  <bruno@clisp.org>
37013
37014         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37015
37016 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37017
37018         * modules/regex: Request emulations for the mb*/wc* functions we need.
37019         * m4/regex.m4: Don't look for those functions here.
37020         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37021
37022 2008-12-22  Bruno Haible  <bruno@clisp.org>
37023
37024         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37025
37026 2008-12-21  Bruno Haible  <bruno@clisp.org>
37027
37028         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37029         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37030         (Include): Remove conditionalization.
37031         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37032         (Include): Remove conditionalization.
37033         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37034         (Include): Remove conditionalization.
37035         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37036         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37037         * NEWS: Mention the change.
37038         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37039         via Sergey Poznyakoff <gray@gnu.org.ua>.
37040
37041 2008-12-21  Bruno Haible  <bruno@clisp.org>
37042
37043         * MODULES.html.sh (Extended multibyte and wide character utilities
37044         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37045         wcrtomb, wcsrtombs.
37046         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37047         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37048         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37049         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37050
37051 2008-12-21  Bruno Haible  <bruno@clisp.org>
37052
37053         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37054
37055 2008-12-21  Bruno Haible  <bruno@clisp.org>
37056
37057         * modules/wcsnrtombs-tests: New file.
37058         * tests/test-wcsnrtombs1.sh: New file.
37059         * tests/test-wcsnrtombs2.sh: New file.
37060         * tests/test-wcsnrtombs3.sh: New file.
37061         * tests/test-wcsnrtombs4.sh: New file.
37062         * tests/test-wcsnrtombs.c: New file.
37063
37064         New module 'wcsnrtombs'.
37065         * lib/wchar.in.h (wcsnrtombs): New declaration.
37066         * lib/wcsnrtombs.c: New file.
37067         * lib/wcsrtombs-state.c: New file.
37068         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37069         (internal_state): Remove variable.
37070         * m4/wcsnrtombs.m4: New file.
37071         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37072         compilation units.
37073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37074         HAVE_WCSNRTOMBS.
37075         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37076         HAVE_WCSNRTOMBS.
37077         * modules/wcsnrtombs: New file.
37078         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37079         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37080
37081 2008-12-21  Bruno Haible  <bruno@clisp.org>
37082
37083         * modules/wcsrtombs-tests: New file.
37084         * tests/test-wcsrtombs1.sh: New file.
37085         * tests/test-wcsrtombs2.sh: New file.
37086         * tests/test-wcsrtombs3.sh: New file.
37087         * tests/test-wcsrtombs4.sh: New file.
37088         * tests/test-wcsrtombs.c: New file.
37089
37090         New module 'wcsrtombs'.
37091         * lib/wchar.in.h (wcsrtombs): New declaration.
37092         * lib/wcsrtombs.c: New file.
37093         * m4/wcsrtombs.m4: New file.
37094         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37095         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37096         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37097         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37098         * modules/wcsrtombs: New file.
37099         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37100         bugs.
37101
37102 2008-12-21  Bruno Haible  <bruno@clisp.org>
37103
37104         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37105         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37106         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37107         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37108         if not correct.
37109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37110         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37111         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37112         m4/locale-zh.m4, m4/codeset.m4.
37113         * doc/posix-functions/wcrtomb.texi: Document the bug.
37114
37115 2008-12-21  Bruno Haible  <bruno@clisp.org>
37116
37117         Work around a btowc() bug on IRIX 6.5.
37118         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37119         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37120         REPLACE_WTOBC if not.
37121         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37122         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37123         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37124
37125 2008-12-21  Bruno Haible  <bruno@clisp.org>
37126
37127         * modules/wcrtomb-tests: New file.
37128         * tests/test-wcrtomb.sh: New file.
37129         * tests/test-wcrtomb.c: New file.
37130
37131         New module 'wcrtomb'.
37132         * lib/wchar.in.h (wcrtomb): New declaration.
37133         * lib/wcrtomb.c: New file.
37134         * m4/wcrtomb.m4: New file.
37135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37136         HAVE_WCRTOMB.
37137         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37138         HAVE_WCRTOMB.
37139         * modules/wcrtomb: New file.
37140         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37141
37142 2008-12-21  Bruno Haible  <bruno@clisp.org>
37143
37144         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37145         * modules/mbsrtowcs (Files): Likewise.
37146         * modules/wctob (Files): Likewise.
37147         * modules/c-strcase-tests (Files): Likewise.
37148         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37149         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37150         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37151         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37152         * modules/vasnprintf-posix-tests (Files): Likewise.
37153
37154 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37155
37156         gitlog-to-changelog: pass all command-line arguments to git-log
37157         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37158         it is sometimes convenient to filter the commits in various ways.
37159         gitlog-to-changelog only allows --since to specify a start date,
37160         but git-log itself supports many other filtering mechanisms.
37161         At the moment, I want to filter by branch name.  Rather than
37162         adding a --branch option to gitlog-to-changelog, it seems more
37163         flexible to simply pass all options directly to git-log and let
37164         git do the work.  Notice that this effectively makes --since a
37165         redundant option for gitlog-to-changelog, but removing it would
37166         require current usage to change since calls would then require
37167         an additional '--'.
37168
37169 2008-12-21  Bruno Haible  <bruno@clisp.org>
37170
37171         * modules/mbsnrtowcs-tests: New file.
37172         * tests/test-mbsnrtowcs1.sh: New file.
37173         * tests/test-mbsnrtowcs2.sh: New file.
37174         * tests/test-mbsnrtowcs3.sh: New file.
37175         * tests/test-mbsnrtowcs4.sh: New file.
37176         * tests/test-mbsnrtowcs.c: New file.
37177
37178         New module 'mbsnrtowcs'.
37179         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37180         * lib/mbsnrtowcs.c: New file.
37181         * lib/mbsrtowcs-state.c: New file.
37182         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37183         (internal_state): Remove variable.
37184         * m4/mbsnrtowcs.m4: New file.
37185         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37186         compilation units.
37187         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37188         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37189         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37190         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37191         * modules/mbsnrtowcs: New file.
37192         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37193         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37194         portability problem.
37195
37196 2008-12-21  Bruno Haible  <bruno@clisp.org>
37197
37198         Work around mbsrtowcs bug.
37199         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37200         (gl_FUNC_MBSRTOWCS): Invoke it.
37201         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37202         m4/locale-zh.m4.
37203         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37204
37205 2008-12-21  Bruno Haible  <bruno@clisp.org>
37206
37207         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37208
37209 2008-12-21  Bruno Haible  <bruno@clisp.org>
37210
37211         Update doc for AIX.
37212         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37213         16-bit wchar_t type.
37214         * doc/posix-functions/btowc.texi: Likewise.
37215         * doc/posix-functions/fgetwc.texi: Likewise.
37216         * doc/posix-functions/fgetws.texi: Likewise.
37217         * doc/posix-functions/fputwc.texi: Likewise.
37218         * doc/posix-functions/fputws.texi: Likewise.
37219         * doc/posix-functions/fwide.texi: Likewise.
37220         * doc/posix-functions/fwprintf.texi: Likewise.
37221         * doc/posix-functions/fwscanf.texi: Likewise.
37222         * doc/posix-functions/getwchar.texi: Likewise.
37223         * doc/posix-functions/getwc.texi: Likewise.
37224         * doc/posix-functions/iswalnum.texi: Likewise.
37225         * doc/posix-functions/iswalpha.texi: Likewise.
37226         * doc/posix-functions/iswblank.texi: Likewise.
37227         * doc/posix-functions/iswcntrl.texi: Likewise.
37228         * doc/posix-functions/iswctype.texi: Likewise.
37229         * doc/posix-functions/iswdigit.texi: Likewise.
37230         * doc/posix-functions/iswgraph.texi: Likewise.
37231         * doc/posix-functions/iswlower.texi: Likewise.
37232         * doc/posix-functions/iswprint.texi: Likewise.
37233         * doc/posix-functions/iswpunct.texi: Likewise.
37234         * doc/posix-functions/iswspace.texi: Likewise.
37235         * doc/posix-functions/iswupper.texi: Likewise.
37236         * doc/posix-functions/iswxdigit.texi: Likewise.
37237         * doc/posix-functions/mbrtowc.texi: Likewise.
37238         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37239         * doc/posix-functions/mbstowcs.texi: Likewise.
37240         * doc/posix-functions/mbtowc.texi: Likewise.
37241         * doc/posix-functions/putwchar.texi: Likewise.
37242         * doc/posix-functions/putwc.texi: Likewise.
37243         * doc/posix-functions/swprintf.texi: Likewise.
37244         * doc/posix-functions/tolower.texi: Likewise.
37245         * doc/posix-functions/toupper.texi: Likewise.
37246         * doc/posix-functions/towctrans.texi: Likewise.
37247         * doc/posix-functions/ungetwc.texi: Likewise.
37248         * doc/posix-functions/vswprintf.texi: Likewise.
37249         * doc/posix-functions/wcrtomb.texi: Likewise.
37250         * doc/posix-functions/wcscat.texi: Likewise.
37251         * doc/posix-functions/wcschr.texi: Likewise.
37252         * doc/posix-functions/wcscmp.texi: Likewise.
37253         * doc/posix-functions/wcscoll.texi: Likewise.
37254         * doc/posix-functions/wcscpy.texi: Likewise.
37255         * doc/posix-functions/wcscspn.texi: Likewise.
37256         * doc/posix-functions/wcsftime.texi: Likewise.
37257         * doc/posix-functions/wcslen.texi: Likewise.
37258         * doc/posix-functions/wcsncat.texi: Likewise.
37259         * doc/posix-functions/wcsncmp.texi: Likewise.
37260         * doc/posix-functions/wcsncpy.texi: Likewise.
37261         * doc/posix-functions/wcspbrk.texi: Likewise.
37262         * doc/posix-functions/wcsrchr.texi: Likewise.
37263         * doc/posix-functions/wcsrtombs.texi: Likewise.
37264         * doc/posix-functions/wcsspn.texi: Likewise.
37265         * doc/posix-functions/wcsstr.texi: Likewise.
37266         * doc/posix-functions/wcstod.texi: Likewise.
37267         * doc/posix-functions/wcstof.texi: Likewise.
37268         * doc/posix-functions/wcstoimax.texi: Likewise.
37269         * doc/posix-functions/wcstok.texi: Likewise.
37270         * doc/posix-functions/wcstold.texi: Likewise.
37271         * doc/posix-functions/wcstoll.texi: Likewise.
37272         * doc/posix-functions/wcstol.texi: Likewise.
37273         * doc/posix-functions/wcstombs.texi: Likewise.
37274         * doc/posix-functions/wcstoull.texi: Likewise.
37275         * doc/posix-functions/wcstoul.texi: Likewise.
37276         * doc/posix-functions/wcstoumax.texi: Likewise.
37277         * doc/posix-functions/wcswidth.texi: Likewise.
37278         * doc/posix-functions/wcsxfrm.texi: Likewise.
37279         * doc/posix-functions/wctob.texi: Likewise.
37280         * doc/posix-functions/wctomb.texi: Likewise.
37281         * doc/posix-functions/wctrans.texi: Likewise.
37282         * doc/posix-functions/wctype.texi: Likewise.
37283         * doc/posix-functions/wcwidth.texi: Likewise.
37284         * doc/posix-functions/wmemchr.texi: Likewise.
37285         * doc/posix-functions/wmemcmp.texi: Likewise.
37286         * doc/posix-functions/wmemcpy.texi: Likewise.
37287         * doc/posix-functions/wmemmove.texi: Likewise.
37288         * doc/posix-functions/wmemset.texi: Likewise.
37289         * doc/posix-functions/wprintf.texi: Likewise.
37290         * doc/posix-functions/wscanf.texi: Likewise.
37291
37292 2008-12-21  Bruno Haible  <bruno@clisp.org>
37293
37294         Update doc for HP-UX 11.11.
37295         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37296         in HP-UX version 11.00, not in all versions of HP-UX 11.
37297         * doc/posix-functions/fwide.texi: Likewise.
37298         * doc/posix-functions/fwprintf.texi: Likewise.
37299         * doc/posix-functions/fwscanf.texi: Likewise.
37300         * doc/posix-functions/inet_ntop.texi: Likewise.
37301         * doc/posix-functions/inet_pton.texi: Likewise.
37302         * doc/posix-functions/mbrlen.texi: Likewise.
37303         * doc/posix-functions/mbrtowc.texi: Likewise.
37304         * doc/posix-functions/mbsinit.texi: Likewise.
37305         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37306         * doc/posix-functions/swprintf.texi: Likewise.
37307         * doc/posix-functions/swscanf.texi: Likewise.
37308         * doc/posix-functions/towctrans.texi: Likewise.
37309         * doc/posix-functions/vfwprintf.texi: Likewise.
37310         * doc/posix-functions/vswprintf.texi: Likewise.
37311         * doc/posix-functions/vwprintf.texi: Likewise.
37312         * doc/posix-functions/wcrtomb.texi: Likewise.
37313         * doc/posix-functions/wcsrtombs.texi: Likewise.
37314         * doc/posix-functions/wcsstr.texi: Likewise.
37315         * doc/posix-functions/wctob.texi: Likewise.
37316         * doc/posix-functions/wctrans.texi: Likewise.
37317         * doc/posix-functions/wmemchr.texi: Likewise.
37318         * doc/posix-functions/wmemcmp.texi: Likewise.
37319         * doc/posix-functions/wmemcpy.texi: Likewise.
37320         * doc/posix-functions/wmemmove.texi: Likewise.
37321         * doc/posix-functions/wmemset.texi: Likewise.
37322         * doc/posix-functions/wprintf.texi: Likewise.
37323         * doc/posix-functions/wscanf.texi: Likewise.
37324
37325 2008-12-21  Bruno Haible  <bruno@clisp.org>
37326
37327         Work around a portability problem.
37328         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37329         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37330
37331 2008-12-20  Bruno Haible  <bruno@clisp.org>
37332
37333         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37334         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37335         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37337         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37338
37339         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37340         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37341         set.
37342         (GNULIB_defined_mbstate_t): New macro.
37343         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37344         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37345         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37346         reuses the system's mbrtowc function but works around the bugs.
37347         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37348         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37349         macros.
37350         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37351         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37352         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37353         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37354         REPLACE_MBSINIT if mbsinit needs to be overridden.
37355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37356         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37357         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37358         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37359         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37360         m4/locale-zh.m4.
37361         (Depends): Add mbsinit.
37362         * modules/mbsinit (Depends): Add mbrtowc.
37363         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37364
37365 2008-12-20  Bruno Haible  <bruno@clisp.org>
37366
37367         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37368         so that there are no conversion errors on AIX.
37369         * tests/test-mbsrtowcs.c (main): LIkewise.
37370
37371 2008-12-20  Bruno Haible  <bruno@clisp.org>
37372
37373         Work around wctob bug on Solaris <= 9.
37374         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37375         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37376         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37377         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37378         * modules/wctob (Files): Add m4/locale-fr.m4.
37379         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37380
37381 2008-12-20  Bruno Haible  <bruno@clisp.org>
37382
37383         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37384         /dev/null.
37385         * tests/test-select-in.sh: Likewise.
37386         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37387
37388 2008-12-20  Bruno Haible  <bruno@clisp.org>
37389
37390         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37391         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37392         Cygwin 1.5.x.
37393
37394 2008-12-20  Bruno Haible  <bruno@clisp.org>
37395
37396         Ensure mbstate_t is defined on HP-UX 11.11.
37397         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37398         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37399         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37400         AC_USE_SYSTEM_EXTENSIONS.
37401         * modules/fnmatch (Depends-on): Add extensions.
37402         * modules/mbrlen (Depends-on): Likewise.
37403         * modules/mbrtowc (Depends-on): Likewise.
37404         * modules/mbsinit (Depends-on): Likewise.
37405         * modules/mbsrtowcs (Depends-on): Likewise.
37406         * modules/mbswidth (Depends-on): Likewise.
37407         * modules/quotearg (Depends-on): Likewise.
37408         * modules/strftime (Depends-on): Likewise.
37409
37410 2008-12-20  Bruno Haible  <bruno@clisp.org>
37411
37412         Ensure wctob is declared on IRIX 6.5.
37413         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37414         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37415         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37416         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37417         of HAVE_WCTOB.
37418         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37419         HAVE_WCTOB.
37420         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37421
37422 2008-12-19  Bruno Haible  <bruno@clisp.org>
37423
37424         * modules/mbsrtowcs-tests: New file.
37425         * tests/test-mbsrtowcs1.sh: New file.
37426         * tests/test-mbsrtowcs2.sh: New file.
37427         * tests/test-mbsrtowcs3.sh: New file.
37428         * tests/test-mbsrtowcs4.sh: New file.
37429         * tests/test-mbsrtowcs.c: New file.
37430
37431         New module 'mbsrtowcs'.
37432         * lib/wchar.in.h (mbsrtowcs): New declaration.
37433         * lib/mbsrtowcs.c: New file.
37434         * m4/mbsrtowcs.m4: New file.
37435         * modules/mbsrtowcs: New file.
37436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37437         HAVE_MBSRTOWCS.
37438         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37439         HAVE_MBSRTOWCS.
37440         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37441
37442 2008-12-19  Bruno Haible  <bruno@clisp.org>
37443
37444         New module 'mbrlen'.
37445         * lib/wchar.in.h (mbrlen): New declaration.
37446         * lib/mbrlen.c: New file.
37447         * m4/mbrlen.m4: New file.
37448         * modules/mbrlen: New file.
37449         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37450         HAVE_MBRLEN.
37451         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37452         HAVE_MBRLEN.
37453         * doc/posix-functions/mbrlen.texi: Document the new module.
37454
37455 2008-12-19  Bruno Haible  <bruno@clisp.org>
37456
37457         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
37458         * modules/mbrtowc (Depends-on): Add verify.
37459         Suggested by Paul Eggert.
37460
37461 2008-12-18  Bruno Haible  <bruno@clisp.org>
37462
37463         * modules/mbsinit-tests: New file.
37464         * tests/test-mbsinit.sh: New file.
37465         * tests/test-mbsinit.c: New file.
37466
37467 2008-12-18  Bruno Haible  <bruno@clisp.org>
37468
37469         * modules/mbrtowc-tests: New file.
37470         * tests/test-mbrtowc1.sh: New file.
37471         * tests/test-mbrtowc2.sh: New file.
37472         * tests/test-mbrtowc3.sh: New file.
37473         * tests/test-mbrtowc4.sh: New file.
37474         * tests/test-mbrtowc.c: New file.
37475
37476         New module 'mbrtowc'.
37477         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37478         mbsinit and mbrtowc.
37479         (mbrtowc): New declaration.
37480         * lib/mbrtowc.c: New file.
37481         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37482         * modules/mbrtowc: New file.
37483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37484         HAVE_MBRTOWC.
37485         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37486         HAVE_MBRTOWC.
37487         * doc/posix-functions/mbrtowc.texi: Document the new module.
37488
37489 2008-12-18  Bruno Haible  <bruno@clisp.org>
37490
37491         New module 'wctob'.
37492         * lib/wchar.in.h (wctob): New declaration.
37493         * lib/wctob.c: New file.
37494         * m4/wctob.m4: New file.
37495         * modules/wctob: New file.
37496         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37497         HAVE_WCTOB.
37498         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37499         * doc/posix-functions/wctob.texi: Document the new module.
37500
37501 2008-12-18  Bruno Haible  <bruno@clisp.org>
37502
37503         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37504         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37505
37506 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37507
37508         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37509         G. Christensen" <tgc@jupiterrise.com>.
37510
37511         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37512         G. Christensen" <tgc@jupiterrise.com>.
37513
37514         * lib/flock.c: Need to include string.h.  Reported by "Tom
37515         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37516         <ebb9@byu.net>.
37517
37518 2008-12-18  Bruno Haible  <bruno@clisp.org>
37519
37520         * m4/locale-ja.m4: New file, from GNU gettext.
37521
37522 2008-12-17  Bruno Haible  <bruno@clisp.org>
37523
37524         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37525         Suggested by Eric Blake.
37526
37527 2008-12-17  Bruno Haible  <bruno@clisp.org>
37528
37529         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37530
37531 2008-12-17  Bruno Haible  <bruno@clisp.org>
37532
37533         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37534         * modules/mbsinit (Depends-on): Add verify.
37535         Suggested by Paul Eggert.
37536
37537 2008-12-17  Bruno Haible  <bruno@clisp.org>
37538
37539         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
37540         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
37541         gl_FUNC_MBRTOWC.
37542         * m4/mbiter.m4 (gl_MBITER): LIkewise.
37543         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
37544         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
37545         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
37546         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
37547         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
37548         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
37549         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
37550         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
37551         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
37552         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
37553         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
37554         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
37555         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
37556         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
37557         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37558         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
37559         * modules/trim (configure.ac): Likewise.
37560
37561 2008-12-17  Bruno Haible  <bruno@clisp.org>
37562
37563         * modules/btowc-tests: New file.
37564         * tests/test-btowc1.sh: New file.
37565         * tests/test-btowc2.sh: New file.
37566         * tests/test-btowc.c: New file.
37567
37568         New module 'btowc'.
37569         * lib/wchar.in.h (btowc): New declaration.
37570         * lib/btowc.c: New file.
37571         * m4/btowc.m4: New file.
37572         * modules/btowc: New file.
37573         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
37574         HAVE_BTOWC.
37575         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
37576         * doc/posix-functions/btowc.texi: Document the new module.
37577
37578 2008-12-17  Bruno Haible  <bruno@clisp.org>
37579
37580         New module 'mbsinit'.
37581         * lib/wchar.in.h (mbsinit): New declaration.
37582         * lib/mbsinit.c: New file.
37583         * m4/mbsinit.m4: New file.
37584         * modules/mbsinit: New file.
37585         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
37586         HAVE_MBSINIT.
37587         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
37588         HAVE_MBSINIT.
37589         * doc/posix-functions/mbsinit.texi: Document the new module.
37590
37591 2008-12-16  Bruno Haible  <bruno@clisp.org>
37592
37593         * lib/unistd.in.h: Add comment.
37594         * tests/test-environ.c: Don't include <stdlib.h>.
37595
37596 2008-12-16  Bruno Haible  <bruno@clisp.org>
37597
37598         * lib/parse-duration.h (parse_duration): Document return value
37599         convention.
37600         * lib/parse-duration.c: Include specification header first. Add
37601         comments.
37602         (_): Remove macro.
37603         (parse_year_month_day, parse_hour_minute_second): Move side effects
37604         outside of strchr call.
37605         (parse_non_iso8601): Move side effects outside of isspace call.
37606         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
37607         call.
37608
37609 2008-12-16  Bruno Haible  <bruno@clisp.org>
37610
37611         * tests/test-parse-duration.sh: Produce no output when the test
37612         succeeds.
37613
37614 2008-12-16  Bruno Haible  <bruno@clisp.org>
37615
37616         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
37617         expressions.
37618
37619 2008-12-15  Bruno Haible  <bruno@clisp.org>
37620
37621         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
37622         * doc/glibc-functions/flistxattr.texi: Likewise.
37623         * doc/glibc-functions/fopencookie.texi: Likewise.
37624         * doc/glibc-functions/fremovexattr.texi: Likewise.
37625         * doc/glibc-functions/fsetxattr.texi: Likewise.
37626         * doc/glibc-functions/getxattr.texi: Likewise.
37627         * doc/glibc-functions/lgetxattr.texi: Likewise.
37628         * doc/glibc-functions/listxattr.texi: Likewise.
37629         * doc/glibc-functions/llistxattr.texi: Likewise.
37630         * doc/glibc-functions/lremovexattr.texi: Likewise.
37631         * doc/glibc-functions/lsetxattr.texi: Likewise.
37632         * doc/glibc-functions/removexattr.texi: Likewise.
37633         * doc/glibc-functions/setxattr.texi: Likewise.
37634         * doc/posix-functions/open_memstream.texi: Likewise.
37635
37636 2008-12-15  Eric Blake  <ebb9@byu.net>
37637
37638         Update doc for cygwin 1.7.
37639         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
37640         functions.
37641         * doc/posix-functions/fchmodat.texi: Likewise.
37642         * doc/posix-functions/fchownat.texi: Likewise.
37643         * doc/posix-functions/fdopendir.texi: Likewise.
37644         * doc/posix-functions/fmemopen.texi: Likewise.
37645         * doc/posix-functions/freeaddrinfo.texi: Likewise.
37646         * doc/posix-functions/fstatat.texi: Likewise.
37647         * doc/posix-functions/futimens.texi: Likewise.
37648         * doc/posix-functions/gai_strerror.texi: Likewise.
37649         * doc/posix-functions/getaddrinfo.texi: Likewise.
37650         * doc/posix-functions/getnameinfo.texi: Likewise.
37651         * doc/posix-functions/if_freenameindex.texi: Likewise.
37652         * doc/posix-functions/if_indextoname.texi: Likewise.
37653         * doc/posix-functions/if_nameindex.texi: Likewise.
37654         * doc/posix-functions/if_nametoindex.texi: Likewise.
37655         * doc/posix-functions/insque.texi: Likewise.
37656         * doc/posix-functions/linkat.texi: Likewise.
37657         * doc/posix-functions/llrint.texi: Likewise.
37658         * doc/posix-functions/llrintf.texi: Likewise.
37659         * doc/posix-functions/llrintl.texi: Likewise.
37660         * doc/posix-functions/lockf.texi: Likewise.
37661         * doc/posix-functions/lrintl.texi: Likewise.
37662         * doc/posix-functions/mkdirat.texi: Likewise.
37663         * doc/posix-functions/mkfifoat.texi: Likewise.
37664         * doc/posix-functions/mknodat.texi: Likewise.
37665         * doc/posix-functions/mq_close.texi: Likewise.
37666         * doc/posix-functions/mq_getattr.texi: Likewise.
37667         * doc/posix-functions/mq_notify.texi: Likewise.
37668         * doc/posix-functions/mq_open.texi: Likewise.
37669         * doc/posix-functions/mq_receive.texi: Likewise.
37670         * doc/posix-functions/mq_send.texi: Likewise.
37671         * doc/posix-functions/mq_setattr.texi: Likewise.
37672         * doc/posix-functions/mq_timedreceive.texi: Likewise.
37673         * doc/posix-functions/mq_timedsend.texi: Likewise.
37674         * doc/posix-functions/mq_unlink.texi: Likewise.
37675         * doc/posix-functions/open_memstream.texi: Likewise.
37676         * doc/posix-functions/openat.texi: Likewise.
37677         * doc/posix-functions/posix_fadvise.texi: Likewise.
37678         * doc/posix-functions/posix_fallocate.texi: Likewise.
37679         * doc/posix-functions/posix_madvise.texi: Likewise.
37680         * doc/posix-functions/posix_memalign.texi: Likewise.
37681         * doc/posix-functions/posix_openpt.texi: Likewise.
37682         * doc/posix-functions/readlinkat.texi: Likewise.
37683         * doc/posix-functions/remque.texi: Likewise.
37684         * doc/posix-functions/renameat.texi: Likewise.
37685         * doc/posix-functions/rintl.texi: Likewise.
37686         * doc/posix-functions/sem_unlink.texi: Likewise.
37687         * doc/posix-functions/shm_open.texi: Likewise.
37688         * doc/posix-functions/shm_unlink.texi: Likewise.
37689         * doc/posix-functions/signgam.texi: Likewise.
37690         * doc/posix-functions/sigset.texi: Likewise.
37691         * doc/posix-functions/stpcpy.texi: Likewise.
37692         * doc/posix-functions/stpncpy.texi: Likewise.
37693         * doc/posix-functions/strerror.texi: Likewise.
37694         * doc/posix-functions/strtod.texi: Likewise.
37695         * doc/posix-functions/symlinkat.texi: Likewise.
37696         * doc/posix-functions/unlinkat.texi: Likewise.
37697         * doc/posix-functions/utimensat.texi: Likewise.
37698         * doc/glibc-functions/bindresvport.texi: Likewise.
37699         * doc/glibc-functions/dn_expand.texi: Likewise.
37700         * doc/glibc-functions/exp10.texi: Likewise.
37701         * doc/glibc-functions/exp10f.texi: Likewise.
37702         * doc/glibc-functions/fgetxattr.texi: Likewise.
37703         * doc/glibc-functions/flistxattr.texi: Likewise.
37704         * doc/glibc-functions/fopencookie.texi: Likewise.
37705         * doc/glibc-functions/freeifaddrs.texi: Likewise.
37706         * doc/glibc-functions/fremovexattr.texi: Likewise.
37707         * doc/glibc-functions/fsetxattr.texi: Likewise.
37708         * doc/glibc-functions/getifaddrs.texi: Likewise.
37709         * doc/glibc-functions/getxattr.texi: Likewise.
37710         * doc/glibc-functions/lgetxattr.texi: Likewise.
37711         * doc/glibc-functions/listxattr.texi: Likewise.
37712         * doc/glibc-functions/llistxattr.texi: Likewise.
37713         * doc/glibc-functions/lremovexattr.texi: Likewise.
37714         * doc/glibc-functions/lsetxattr.texi: Likewise.
37715         * doc/glibc-functions/pow10.texi: Likewise.
37716         * doc/glibc-functions/pow10f.texi: Likewise.
37717         * doc/glibc-functions/rcmd_af.texi: Likewise.
37718         * doc/glibc-functions/removexattr.texi: Likewise.
37719         * doc/glibc-functions/res_init.texi: Likewise.
37720         * doc/glibc-functions/res_mkquery.texi: Likewise.
37721         * doc/glibc-functions/res_query.texi: Likewise.
37722         * doc/glibc-functions/res_querydomain.texi: Likewise.
37723         * doc/glibc-functions/res_send.texi: Likewise.
37724         * doc/glibc-functions/rresvport_af.texi: Likewise.
37725         * doc/glibc-functions/setxattr.texi: Likewise.
37726         * doc/glibc-functions/strcasestr.texi: Likewise.
37727
37728 2008-12-15  Bruno Haible  <bruno@clisp.org>
37729
37730         Fix compilation error on OSF/1 4.0.
37731         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
37732         <sys/time.h>, simply delegate to the system header.
37733         Reported by Daniel Richard G. <oss@teragram.com>.
37734
37735 2008-12-15  Bruno Haible  <bruno@clisp.org>
37736
37737         * doc/posix-functions/openat.texi: Mention the 'openat' module.
37738         * doc/posix-functions/fchmodat.texi: Likewise.
37739         * doc/posix-functions/fchownat.texi: Likewise.
37740         * doc/posix-functions/fdopendir.texi: Likewise.
37741         * doc/posix-functions/fstatat.texi: Likewise.
37742         * doc/posix-functions/mkdirat.texi: Likewise.
37743         * doc/posix-functions/unlinkat.texi: Likewise.
37744
37745 2008-12-14  Bruno Haible  <bruno@clisp.org>
37746
37747         Update doc for POSIX:2008.
37748         * doc/posix-functions/faccessat.texi: New file.
37749         * doc/posix-functions/fchmodat.texi: New file.
37750         * doc/posix-functions/fchownat.texi: New file.
37751         * doc/posix-functions/fdopendir.texi: New file.
37752         * doc/posix-functions/fstatat.texi: New file.
37753         * doc/posix-functions/futimens.texi: New file.
37754         * doc/posix-functions/linkat.texi: New file.
37755         * doc/posix-functions/mkdirat.texi: New file.
37756         * doc/posix-functions/mkfifoat.texi: New file.
37757         * doc/posix-functions/mknodat.texi: New file.
37758         * doc/posix-functions/open_wmemstream.texi: New file.
37759         * doc/posix-functions/openat.texi: New file.
37760         * doc/posix-functions/psiginfo.texi: New file.
37761         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
37762         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
37763         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
37764         * doc/posix-functions/readlinkat.texi: New file.
37765         * doc/posix-functions/renameat.texi: New file.
37766         * doc/posix-functions/strerror_l.texi: New file.
37767         * doc/posix-functions/symlinkat.texi: New file.
37768         * doc/posix-functions/unlinkat.texi: New file.
37769         * doc/posix-functions/utimensat.texi: New file.
37770         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37771
37772 2008-12-14  Bruno Haible  <bruno@clisp.org>
37773
37774         Update doc for POSIX:2008.
37775         * doc/posix-functions/alphasort.texi: Renamed from
37776         doc/glibc-functions/alphasort.texi.
37777         * doc/posix-functions/dirfd.texi: Renamed from
37778         doc/glibc-functions/dirfd.texi.
37779         * doc/posix-functions/dprintf.texi: Renamed from
37780         doc/glibc-functions/dprintf.texi.
37781         * doc/posix-functions/duplocale.texi: Renamed from
37782         doc/glibc-functions/duplocale.texi.
37783         * doc/posix-functions/fexecve.texi: Renamed from
37784         doc/glibc-functions/fexecve.texi.
37785         * doc/posix-functions/fmemopen.texi: Renamed from
37786         doc/glibc-functions/fmemopen.texi.
37787         * doc/posix-functions/freelocale.texi: Renamed from
37788         doc/glibc-functions/freelocale.texi.
37789         * doc/posix-functions/getdate_err.texi: Renamed from
37790         doc/glibc-functions/getdate_err.texi.
37791         * doc/posix-functions/isalnum_l.texi: Renamed from
37792         doc/glibc-functions/isalnum_l.texi.
37793         * doc/posix-functions/isalpha_l.texi: Renamed from
37794         doc/glibc-functions/isalpha_l.texi.
37795         * doc/posix-functions/isblank_l.texi: Renamed from
37796         doc/glibc-functions/isblank_l.texi.
37797         * doc/posix-functions/iscntrl_l.texi: Renamed from
37798         doc/glibc-functions/iscntrl_l.texi.
37799         * doc/posix-functions/isdigit_l.texi: Renamed from
37800         doc/glibc-functions/isdigit_l.texi.
37801         * doc/posix-functions/isgraph_l.texi: Renamed from
37802         doc/glibc-functions/isgraph_l.texi.
37803         * doc/posix-functions/islower_l.texi: Renamed from
37804         doc/glibc-functions/islower_l.texi.
37805         * doc/posix-functions/isprint_l.texi: Renamed from
37806         doc/glibc-functions/isprint_l.texi.
37807         * doc/posix-functions/ispunct_l.texi: Renamed from
37808         doc/glibc-functions/ispunct_l.texi.
37809         * doc/posix-functions/isspace_l.texi: Renamed from
37810         doc/glibc-functions/isspace_l.texi.
37811         * doc/posix-functions/isupper_l.texi: Renamed from
37812         doc/glibc-functions/isupper_l.texi.
37813         * doc/posix-functions/iswalnum_l.texi: Renamed from
37814         doc/glibc-functions/iswalnum_l.texi.
37815         * doc/posix-functions/iswalpha_l.texi: Renamed from
37816         doc/glibc-functions/iswalpha_l.texi.
37817         * doc/posix-functions/iswblank_l.texi: Renamed from
37818         doc/glibc-functions/iswblank_l.texi.
37819         * doc/posix-functions/iswcntrl_l.texi: Renamed from
37820         doc/glibc-functions/iswcntrl_l.texi.
37821         * doc/posix-functions/iswctype_l.texi: Renamed from
37822         doc/glibc-functions/iswctype_l.texi.
37823         * doc/posix-functions/iswdigit_l.texi: Renamed from
37824         doc/glibc-functions/iswdigit_l.texi.
37825         * doc/posix-functions/iswgraph_l.texi: Renamed from
37826         doc/glibc-functions/iswgraph_l.texi.
37827         * doc/posix-functions/iswlower_l.texi: Renamed from
37828         doc/glibc-functions/iswlower_l.texi.
37829         * doc/posix-functions/iswprint_l.texi: Renamed from
37830         doc/glibc-functions/iswprint_l.texi.
37831         * doc/posix-functions/iswpunct_l.texi: Renamed from
37832         doc/glibc-functions/iswpunct_l.texi.
37833         * doc/posix-functions/iswspace_l.texi: Renamed from
37834         doc/glibc-functions/iswspace_l.texi.
37835         * doc/posix-functions/iswupper_l.texi: Renamed from
37836         doc/glibc-functions/iswupper_l.texi.
37837         * doc/posix-functions/iswxdigit_l.texi: Renamed from
37838         doc/glibc-functions/iswxdigit_l.texi.
37839         * doc/posix-functions/isxdigit_l.texi: Renamed from
37840         doc/glibc-functions/isxdigit_l.texi.
37841         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
37842         doc/glibc-functions/mbsnrtowcs.texi.
37843         * doc/posix-functions/mkdtemp.texi: Renamed from
37844         doc/glibc-functions/mkdtemp.texi.
37845         * doc/posix-functions/newlocale.texi: Renamed from
37846         doc/glibc-functions/newlocale.texi.
37847         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
37848         doc/glibc-functions/nl_langinfo_l.texi.
37849         * doc/posix-functions/open_memstream.texi: Renamed from
37850         doc/glibc-functions/open_memstream.texi.
37851         * doc/posix-functions/opterr.texi: Renamed from
37852         doc/glibc-functions/opterr.texi.
37853         * doc/posix-functions/optind.texi: Renamed from
37854         doc/glibc-functions/optind.texi.
37855         * doc/posix-functions/optopt.texi: Renamed from
37856         doc/glibc-functions/optopt.texi.
37857         * doc/posix-functions/psignal.texi: Renamed from
37858         doc/glibc-functions/psignal.texi.
37859         * doc/posix-functions/scandir.texi: Renamed from
37860         doc/glibc-functions/scandir.texi.
37861         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
37862         doc/glibc-functions/sched_get_priority_min.texi.
37863         * doc/posix-functions/signgam.texi: Renamed from
37864         doc/glibc-functions/signgam.texi.
37865         * doc/posix-functions/stpcpy.texi: Renamed from
37866         doc/glibc-functions/stpcpy.texi.
37867         * doc/posix-functions/stpncpy.texi: Renamed from
37868         doc/glibc-functions/stpncpy.texi.
37869         * doc/posix-functions/strcasecmp_l.texi: Renamed from
37870         doc/glibc-functions/strcasecmp_l.texi.
37871         * doc/posix-functions/strcoll_l.texi: Renamed from
37872         doc/glibc-functions/strcoll_l.texi.
37873         * doc/posix-functions/strfmon_l.texi: Renamed from
37874         doc/glibc-functions/strfmon_l.texi.
37875         * doc/posix-functions/strftime_l.texi: Renamed from
37876         doc/glibc-functions/strftime_l.texi.
37877         * doc/posix-functions/strncasecmp_l.texi: Renamed from
37878         doc/glibc-functions/strncasecmp_l.texi.
37879         * doc/posix-functions/strndup.texi: Renamed from
37880         doc/glibc-functions/strndup.texi.
37881         * doc/posix-functions/strnlen.texi: Renamed from
37882         doc/glibc-functions/strnlen.texi.
37883         * doc/posix-functions/strsignal.texi: Renamed from
37884         doc/glibc-functions/strsignal.texi.
37885         * doc/posix-functions/strxfrm_l.texi: Renamed from
37886         doc/glibc-functions/strxfrm_l.texi.
37887         * doc/posix-functions/timer_gettime.texi: Renamed from
37888         doc/glibc-functions/timer_gettime.texi.
37889         * doc/posix-functions/tolower_l.texi: Renamed from
37890         doc/glibc-functions/tolower_l.texi.
37891         * doc/posix-functions/toupper_l.texi: Renamed from
37892         doc/glibc-functions/toupper_l.texi.
37893         * doc/posix-functions/towctrans_l.texi: Renamed from
37894         doc/glibc-functions/towctrans_l.texi.
37895         * doc/posix-functions/towlower_l.texi: Renamed from
37896         doc/glibc-functions/towlower_l.texi.
37897         * doc/posix-functions/towupper_l.texi: Renamed from
37898         doc/glibc-functions/towupper_l.texi.
37899         * doc/posix-functions/uselocale.texi: Renamed from
37900         doc/glibc-functions/uselocale.texi.
37901         * doc/posix-functions/vdprintf.texi: Renamed from
37902         doc/glibc-functions/vdprintf.texi.
37903         * doc/posix-functions/wcpcpy.texi:
37904         Renamed from doc/glibc-functions/wcpcpy.texi.
37905         * doc/posix-functions/wcpncpy.texi: Renamed from
37906         doc/glibc-functions/wcpncpy.texi.
37907         * doc/posix-functions/wcscasecmp.texi: Renamed from
37908         doc/glibc-functions/wcscasecmp.texi.
37909         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
37910         doc/glibc-functions/wcscasecmp_l.texi.
37911         * doc/posix-functions/wcscoll_l.texi: Renamed from
37912         doc/glibc-functions/wcscoll_l.texi.
37913         * doc/posix-functions/wcsdup.texi: Renamed from
37914         doc/glibc-functions/wcsdup.texi.
37915         * doc/posix-functions/wcsncasecmp.texi: Renamed from
37916         doc/glibc-functions/wcsncasecmp.texi.
37917         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
37918         doc/glibc-functions/wcsncasecmp_l.texi.
37919         * doc/posix-functions/wcsnlen.texi: Renamed from
37920         doc/glibc-functions/wcsnlen.texi.
37921         * doc/posix-functions/wcsnrtombs.texi: Renamed from
37922         doc/glibc-functions/wcsnrtombs.texi.
37923         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
37924         doc/glibc-functions/wcsxfrm_l.texi.
37925         * doc/posix-functions/wctrans_l.texi: Renamed from
37926         doc/glibc-functions/wctrans_l.texi.
37927         * doc/posix-functions/wctype_l.texi: Renamed from
37928         doc/glibc-functions/wctype_l.texi.
37929         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37930         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
37931         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
37932         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
37933         these subsections.
37934         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
37935         Remove sections.
37936
37937 2008-12-14  Bruno Haible  <bruno@clisp.org>
37938
37939         Update doc for POSIX:2008.
37940         * doc/posix-functions/*.texi: Update URL of POSIX specification.
37941
37942 2008-12-14  Bruno Haible  <bruno@clisp.org>
37943
37944         Update doc for POSIX:2008.
37945         * doc/pastposix-functions/bcmp.texi: Renamed from
37946         doc/posix-functions/bcmp.texi.
37947         * doc/pastposix-functions/bcopy.texi: Renamed from
37948         doc/posix-functions/bcopy.texi.
37949         * doc/pastposix-functions/bsd_signal.texi: Renamed from
37950         doc/posix-functions/bsd_signal.texi.
37951         * doc/pastposix-functions/bzero.texi: Renamed from
37952         doc/posix-functions/bzero.texi.
37953         * doc/pastposix-functions/ecvt.texi: Renamed from
37954         doc/posix-functions/ecvt.texi.
37955         * doc/pastposix-functions/fcvt.texi: Renamed from
37956         doc/posix-functions/fcvt.texi.
37957         * doc/pastposix-functions/ftime.texi: Renamed from
37958         doc/posix-functions/ftime.texi.
37959         * doc/pastposix-functions/gcvt.texi: Renamed from
37960         doc/posix-functions/gcvt.texi.
37961         * doc/pastposix-functions/getcontext.texi: Renamed from
37962         doc/posix-functions/getcontext.texi.
37963         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
37964         doc/posix-functions/gethostbyaddr.texi.
37965         * doc/pastposix-functions/gethostbyname.texi: Renamed from
37966         doc/posix-functions/gethostbyname.texi.
37967         * doc/pastposix-functions/getwd.texi: Renamed from
37968         doc/posix-functions/getwd.texi.
37969         * doc/pastposix-functions/h_errno.texi: Renamed from
37970         doc/posix-functions/h_errno.texi.
37971         * doc/pastposix-functions/index.texi: Renamed from
37972         doc/posix-functions/index.texi.
37973         * doc/pastposix-functions/makecontext.texi: Renamed from
37974         doc/posix-functions/makecontext.texi.
37975         * doc/pastposix-functions/mktemp.texi: Renamed from
37976         doc/posix-functions/mktemp.texi.
37977         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
37978         doc/posix-functions/pthread_attr_getstackaddr.texi.
37979         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
37980         doc/posix-functions/pthread_attr_setstackaddr.texi.
37981         * doc/pastposix-functions/rindex.texi: Renamed from
37982         doc/posix-functions/rindex.texi.
37983         * doc/pastposix-functions/scalb.texi: Renamed from
37984         doc/posix-functions/scalb.texi.
37985         * doc/pastposix-functions/setcontext.texi: Renamed from
37986         doc/posix-functions/setcontext.texi.
37987         * doc/pastposix-functions/swapcontext.texi: Renamed from
37988         doc/posix-functions/swapcontext.texi.
37989         * doc/pastposix-functions/ualarm.texi: Renamed from
37990         doc/posix-functions/ualarm.texi.
37991         * doc/pastposix-functions/usleep.texi: Renamed from
37992         doc/posix-functions/usleep.texi.
37993         * doc/pastposix-functions/vfork.texi: Renamed from
37994         doc/posix-functions/vfork.texi.
37995         * doc/pastposix-functions/wcswcs.texi: Renamed from
37996         doc/posix-functions/wcswcs.texi.
37997         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
37998         (Function Substitutes): Update.
37999
38000 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38001
38002         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38003         m4/strerror.m4.
38004
38005 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38006             Bruno Haible  <bruno@clisp.org>
38007
38008         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38009
38010 2008-12-13  Bruno Haible  <bruno@clisp.org>
38011
38012         * modules/strtoull (Depends-on): Remove unistd.
38013
38014 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38015
38016         * modules/strtoull (Depends-on): Add stdlib.
38017
38018 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38019
38020         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38021
38022 2008-12-10  Jim Meyering  <meyering@redhat.com>
38023
38024         gl_ASSERT: don't say assertions are disabled when they're not
38025         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38026         "checking whether to enable assertions... no", when they are in
38027         fact enabled.  This is solely a bug in the output of configure.
38028         In spite of saying "no", NDEBUG was not defined in that case.
38029         Also, as noted by Eric Blake, leave assertions enabled upon
38030         --enable-assert=INVALID.
38031
38032 2008-12-10  Bruno Haible  <bruno@clisp.org>
38033
38034         Change MODULES.html to refer to POSIX:2008 where possible.
38035         * MODULES.html.sh (POSIX2008_URL): New variable.
38036         (posix_headers): Remove sys/timeb, ucontext.
38037         (posix2001_headers): New variable.
38038         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38039         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38040         index, makecontext, mktemp, pthread_attr_getstackaddr,
38041         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38042         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38043         (posix2001_functions): New variable.
38044         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38045         otherwise.
38046
38047 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38048
38049         add missing include to parse-duration.c
38050         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38051         * modules/parse-duration (Depends-on): Add xalloc.
38052
38053         fix sed script reading maint.mk
38054         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38055         (syntax-check-rules): Use it.
38056
38057 2008-12-09  Bruno Haible  <bruno@clisp.org>
38058
38059         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38060         MacOS X 10.4/PowerPC.
38061         Reported by Simon Josefsson.
38062
38063 2008-12-08  Jim Meyering  <meyering@redhat.com>
38064
38065         work around mingw's lack of some S_IF definitions
38066         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38067         Reported by Simon Josefsson.
38068
38069 2008-12-08  Bruno Haible  <bruno@clisp.org>
38070
38071         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38072         applied to variables. Needed on MacOS X 10.4/PowerPC.
38073         Reported by Simon Josefsson.
38074
38075 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38076         and Eric Blake  <ebb9@byu.net>
38077
38078         assert: honor --enable-assert
38079         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38080         order to honor --enable-assert, rather than treating it as a
38081         synonym for --disable-assert.
38082
38083 2008-12-08  Jim Meyering  <meyering@redhat.com>
38084
38085         * lib/posixtm.c: Remove now-useless declaration of mktime.
38086
38087         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38088
38089 2008-12-07  Bruno Haible  <bruno@clisp.org>
38090
38091         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38092         test_once): Mark functions as static.
38093         * tests/test-tls.c (test_tls): Likewise.
38094
38095 2008-12-07  Bruno Haible  <bruno@clisp.org>
38096
38097         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38098         iconv_register_autodetect.
38099
38100 2008-12-07  Jim Meyering  <meyering@redhat.com>
38101
38102         posixtm.c: avoid a warning
38103         * lib/posixtm.c (posixtime): Don't initialize tm0.
38104         It's no longer needed to placate gcc4's -Wuninitialized,
38105         and the attempt to placate would elicit a new warning.
38106
38107         unicodeio.c: mark unused parameters
38108         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38109         (fallback_failure_callback): Likewise.
38110
38111 2008-12-07  Bruno Haible  <bruno@clisp.org>
38112
38113         * gnulib-tool (func_create_testdir): When building the tests
38114         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38115         Reported by Simon Josefsson.
38116
38117 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38118
38119         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38120
38121 2008-12-06  Bruno Haible  <bruno@clisp.org>
38122
38123         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38124         Suggested by Eric Blake.
38125
38126 2008-12-06  Bruno Haible  <bruno@clisp.org>
38127
38128         Fix a c-stack test failure on MacOS X.
38129         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38130         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38131         handler for SIGBUS as well.
38132         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38133         install a signal handler for SIGBUS as well.
38134         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38135
38136 2008-12-06  Bruno Haible  <bruno@clisp.org>
38137
38138         Advocacy documentation.
38139         * doc/gnulib-intro.texi (Benefits): New section.
38140         * doc/gnulib.texi: Update.
38141
38142 2008-12-06  Bruno Haible  <bruno@clisp.org>
38143
38144         Document the 'manywarnings' module.
38145         * doc/manywarnings.texi: New file.
38146         * doc/gnulib.texi: Include it.
38147
38148 2008-12-05  Eric Blake  <ebb9@byu.net>
38149
38150         tests: silence some gcc warnings
38151         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38152         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38153         type mismatches.
38154
38155 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38156             Bruno Haible  <bruno@clisp.org>
38157
38158         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38159
38160 2008-11-29  Jim Meyering  <meyering@redhat.com>
38161
38162         unicodeio.c: mark unused parameters
38163         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38164         (fallback_failure_callback): Likewise.
38165
38166         fts: fix a thinko
38167         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38168         (set_stat_type): Return S_IF*-valued "type" directly.
38169         Prompted by James Youngman's spotting a related bug.
38170         Confirmed by further testing through find.
38171
38172         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38173         * lib/fts.c (D_TYPE): Define.
38174         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38175         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38176         (s_ifmt_shift_bits): New function.
38177         (set_stat_type): New function.
38178         (fts_build): When not calling fts_stat, call set_stat_type
38179         to propagate dirent.d_type info to fts_read caller.
38180         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38181         fts_statp->st_mode type information may be valid.
38182
38183 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38184
38185         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38186         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38187         <sds@gnu.org>.
38188
38189 2008-11-20  Bruno Haible  <bruno@clisp.org>
38190
38191         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38192         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38193         INCLUDE_NEXT.
38194         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38195         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38196         * modules/math (Makefile.am): Substitute
38197         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38198         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38199
38200 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38201             Bruno Haible  <bruno@clisp.org>
38202
38203         * lib/stdint.in.h: Define all type macros so that their expansion is
38204         a single typedef'ed token. Fixes a compilation failure in Boost which
38205         does "using ::int8_t;".
38206
38207 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38208
38209         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38210         gl_MANYWARN_ALL_GCC.
38211         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38212         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38213         * modules/manywarnings: New file.
38214         * MODULES.html.sh: Mention manywarnings module.
38215
38216 2008-11-18  Bruno Haible  <bruno@clisp.org>
38217
38218         * doc/gnulib-tool.texi (Unit tests): New section.
38219
38220 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38221
38222         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38223         paths like 'lib/po/foo.po'.
38224
38225 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38226
38227         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38228         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38229
38230 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38231
38232         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38233         parameter works.
38234
38235 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38236
38237         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38238
38239 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38240
38241         * modules/parse-duration-tests: New file.
38242         * tests/test-parse-duration.sh: New file.
38243         * tests/test-parse-duration.c: New file.
38244
38245         New module 'parse-duration'.
38246         * lib/parse-duration.h: New file.
38247         * lib/parse-duration.c: New file.
38248         * modules/parse-duration: New file.
38249
38250 2008-11-17  Bruno Haible  <bruno@clisp.org>
38251
38252         * tests/test-select-out.sh: Comment out the first pipe test.
38253         Reported by Simon Josefsson.
38254
38255 2008-11-17  Bruno Haible  <bruno@clisp.org>
38256
38257         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38258         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38259         gl_HOSTENT.
38260
38261 2008-11-17  Bruno Haible  <bruno@clisp.org>
38262
38263         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38264         -lnetwork and -lnet. Needed for Haiku and BeOS.
38265
38266 2008-11-16  Bruno Haible  <bruno@clisp.org>
38267
38268         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38269
38270 2008-11-16  Bruno Haible  <bruno@clisp.org>
38271
38272         Avoid test failure on Haiku.
38273         * tests/test-fsync.c: Include <errno.h>.
38274         (main): Don't require that fsync (0) fails.
38275
38276 2008-11-15  Bruno Haible  <bruno@clisp.org>
38277
38278         New module 'hostent'.
38279         * modules/hostent: New file.
38280         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38281
38282 2008-11-15  Bruno Haible  <bruno@clisp.org>
38283
38284         New module 'servent'.
38285         * modules/servent: New file.
38286         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38287
38288 2008-11-15  Bruno Haible  <bruno@clisp.org>
38289
38290         Avoid generating same test program with two different rules.
38291         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38292         test-frexp to test-frexp-nolibm.
38293         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38294         test-frexpl to test-frexpl-nolibm.
38295
38296 2008-11-15  Bruno Haible  <bruno@clisp.org>
38297
38298         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38299         $(FREXPL_LIBM).
38300
38301 2008-11-15  Bruno Haible  <bruno@clisp.org>
38302
38303         * lib/netdb.in.h: Activate the definitions also when the system's
38304         <netdb.h> has 'struct addrinfo'.
38305         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38306         EAI_OVERFLOW or AI_NUMERICSERV.
38307         * doc/posix-headers/netdb.texi: Document the problem.
38308
38309 2008-11-15  Bruno Haible  <bruno@clisp.org>
38310
38311         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38312
38313         Make the 'sched' module work on platforms where <sched.h> exists but
38314         is incomplete (such as Haiku).
38315         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38316         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38317         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38318         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38319         HAVE_STRUCT_SCHED_PARAM.
38320         * modules/sched (Depends-on): Add include_next.
38321         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38322         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38323         * doc/posix-headers/sched.texi: Document the issue.
38324
38325 2008-11-13  Jim Meyering  <meyering@redhat.com>
38326
38327         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38328         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38329         test would fail due to the difference in the Report bugs to ...
38330         line.  The expected address is empty, "<>", while the actual
38331         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38332
38333 2008-11-12  Bruno Haible  <bruno@clisp.org>
38334
38335         lstat: don't compile lstat.c on systems lacking lstat
38336         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38337         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38338         Reported by Daniel P. Berrange via Jim Meyering.
38339
38340 2008-11-12  Jim Meyering  <meyering@redhat.com>
38341
38342         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38343
38344 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38345
38346         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38347         instead.
38348
38349 2008-11-12  Bruno Haible  <bruno@clisp.org>
38350
38351         * lib/unicodeio.c: Include unistr.h.
38352         (utf8_wctomb): Remove function.
38353         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38354
38355 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38356
38357         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38358         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38359         <bruno@clisp.org>.
38360         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38361
38362 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38363
38364         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38365         * doc/gnulib.texi: Add section for warnings.
38366
38367 2008-11-11  Bruno Haible  <bruno@clisp.org>
38368
38369         * lib/sockets.h: Add a comment.
38370
38371 2008-11-11  Karl Berry  <karl@gnu.org>
38372
38373         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38374
38375 2008-11-11  Eric Blake  <ebb9@byu.net>
38376
38377         fdl.texi: avoid git symlinks
38378         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38379
38380 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38381
38382         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38383
38384 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38385
38386         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38387         (gl_WARN_ADD): Substitute $2 if literal.
38388
38389 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38390
38391         * m4/warning.m4: Remove.
38392
38393 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38394
38395         * m4/warnings.m4: Almost complete rewrite. :-)
38396
38397 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38398
38399         * modules/warnings: New module.
38400         * m4/warnings.m4: New file.
38401         * MODULES.html.sh: Mention warnings module.
38402         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38403         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38404
38405 2008-11-10  Eric Blake  <ebb9@byu.net>
38406
38407         fdl.texi: make a symlink to the latest version
38408         * doc/standards.texi: Revert today's earlier change.
38409         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38410         * doc/fdl.texi: ...and replace this with a symlink to the newer
38411         fdl-1.3.texi.
38412
38413 2008-11-10  Bruno Haible  <bruno@clisp.org>
38414
38415         * tests/test-select-fd.c (main): Accept the result file name as fourth
38416         argument.
38417         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38418         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38419
38420 2008-11-10  Bruno Haible  <bruno@clisp.org>
38421
38422         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38423         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38424         as autoconf-substituted macros.
38425         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38426         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38427         gl_NETDB_H_DEFAULTS. Set these variables.
38428         * modules/netdb (Makefile.am): Substitute these variables.
38429
38430 2008-11-10  Eric Blake  <ebb9@byu.net>
38431
38432         standards.texi: include correct file for FDL 1.3
38433         * doc/standards.texi (GNU Free Documentation License): Change
38434         include file to pull in FDL 1.3, not 1.2.
38435
38436         fdl.texi: revert accidental change to license
38437         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38438
38439 2008-11-10  Bruno Haible  <bruno@clisp.org>
38440
38441         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38442         cross-compiling guesses also when the native compile gives no result.
38443
38444 2008-11-10  Bruno Haible  <bruno@clisp.org>
38445
38446         * lib/spawni.c (__spawni): Force variable into the stack.
38447
38448 2008-11-10  Bruno Haible  <bruno@clisp.org>
38449
38450         Add support for Haiku.
38451         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38452         glibc and BeOS, but also on Haiku.
38453         * lib/fpurge.c (fpurge): Likewise.
38454         * lib/freadable.c (freadable): Likewise.
38455         * lib/freadahead.c (freadahead): Likewise.
38456         * lib/freading.c (freading): Likewise.
38457         * lib/freadptr.c (freadptr): Likewise.
38458         * lib/freadseek.c (freadptrinc): Likewise.
38459         * lib/fseeko.c (rpl_fseeko): Likewise.
38460         * lib/fseterr.c (fseterr): Likewise.
38461         * lib/fwritable.c (fwritable): Likewise.
38462         * lib/fwriting.c (fwriting): Likewise.
38463         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
38464
38465 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38466
38467         * lib/config.charset: Treat Haiku like BeOS.
38468
38469 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38470
38471         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38472         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38473
38474 2008-11-08  Bruno Haible  <bruno@clisp.org>
38475
38476         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38477         AC_CACHE_CHECK.
38478
38479 2008-11-08  Bruno Haible  <bruno@clisp.org>
38480
38481         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38482
38483 2008-11-08  Bruno Haible  <bruno@clisp.org>
38484
38485         * tests/test-select-fd.c: New file.
38486         * tests/test-select-in.sh: New file.
38487         * tests/test-select-out.sh: New file.
38488         * tests/test-select-stdin.c: New file.
38489         * modules/select-tests (Files): Add the new files.
38490         (Depends-on): Add gettimeofday.
38491         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38492         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38493         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38494
38495 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38496             Bruno Haible  <bruno@clisp.org>
38497
38498         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38499
38500 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38501
38502         * build-aux/pmccabe2html: Added support for C++ source files.
38503
38504 2008-11-05  Ben Pfaff  <blp@gnu.org>
38505
38506         Fix lib/close.c build on Windows.
38507         * modules/close (Files): Add lib/w32sock.h.
38508
38509 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38510
38511         Accept Bison's NEWS format.
38512         * build-aux/announce-gen (print_news_deltas): Tweak
38513         $re_prefix.
38514
38515 2008-11-04  Bruno Haible  <bruno@clisp.org>
38516
38517         * modules/random_r (Maintainer): Add glibc.
38518
38519 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38520
38521         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38522         by karl@freefriends.org (Karl Berry).
38523         * doc/alloca.texi: Likewise.
38524         * doc/c-ctype.texi: Likewise.
38525         * doc/c-strcase.texi: Likewise.
38526         * doc/c-strcaseeq.texi: Likewise.
38527         * doc/c-strcasestr.texi: Likewise.
38528         * doc/c-strstr.texi: Likewise.
38529         * doc/c-strtod.texi: Likewise.
38530         * doc/c-strtold.texi: Likewise.
38531         * doc/ctime.texi: Likewise.
38532         * doc/error.texi: Likewise.
38533         * doc/fdl.texi: Likewise.
38534         * doc/gcd.texi: Likewise.
38535         * doc/getdate.texi: Likewise.
38536         * doc/gnulib-intro.texi: Likewise.
38537         * doc/gnulib-tool.texi: Likewise.
38538         * doc/gnulib.texi: Likewise.
38539         * doc/inet_ntoa.texi: Likewise.
38540         * doc/maintain.texi: Likewise.
38541         * doc/make-stds.texi: Likewise.
38542         * doc/quote.texi: Likewise.
38543         * doc/regexprops-generic.texi: Likewise.
38544         * doc/standards.texi: Likewise.
38545         * doc/verify.texi: Likewise.
38546         * doc/visibility.texi: Likewise.
38547         * doc/gnulib.texi (GNU Free Documentation License): Include
38548         fdl-1.3.texi instead of fdl.texi.
38549
38550 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38551
38552         * doc/fdl-1.3.texi: New file, from
38553         <http://www.gnu.org/licenses/fdl-1.3.texi>.
38554         * modules/fdl-1.3: Add.
38555         * MODULES.html.sh: Add fdl-1.3.
38556
38557 2008-11-03  Bruno Haible  <bruno@clisp.org>
38558
38559         Make determination of absolute name of header file work with AIX xlc.
38560         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
38561         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
38562         preprocessing.
38563         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38564         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38565
38566 2008-11-03  Simon Josefsson  <simon@josefsson.org>
38567
38568         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
38569         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
38570         <ludo@gnu.org>.
38571
38572 2008-11-02  Bruno Haible  <bruno@clisp.org>
38573
38574         Mark 'strpbrk' obsolete.
38575         * modules/strpbrk (Status, Notice): New sections.
38576         * modules/strtok_r (Depends-on): Add strpbrk.
38577
38578 2008-11-02  Bruno Haible  <bruno@clisp.org>
38579
38580         Mark 'strdup' obsolete.
38581         * modules/strdup (Status, Notice): New sections.
38582         * modules/findprog (Depends-on): Add strdup.
38583         * modules/getaddrinfo (Depends-on): Likewise.
38584         * modules/localename (Depends-on): Likewise.
38585         * modules/relocatable-lib (Depends-on): Likewise.
38586         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
38587         * modules/relocatable-prog (Depends-on): Likewise.
38588         * modules/trim (Depends-on): Likewise.
38589         * modules/unictype/gen-ctype (Depends-on): Likewise.
38590         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38591
38592 2008-11-02  Bruno Haible  <bruno@clisp.org>
38593
38594         Mark 'strcspn' obsolete.
38595         * modules/strcspn (Status, Notice): New sections.
38596
38597 2008-11-02  Bruno Haible  <bruno@clisp.org>
38598
38599         Mark 'rmdir' obsolete.
38600         * modules/rmdir (Status, Notice): New sections.
38601         * modules/clean-temp (Depends-on): Add rmdir.
38602         * modules/openat (Depends-on): Likewise.
38603
38604 2008-11-02  Bruno Haible  <bruno@clisp.org>
38605
38606         Mark 'raise' obsolete.
38607         * modules/raise (Status, Notice): New sections.
38608         (Include): Specify <signal.h>.
38609         * modules/stdio (Depends-on): Add raise.
38610         * modules/write (Depends-on): Likewise.
38611
38612 2008-11-02  Bruno Haible  <bruno@clisp.org>
38613
38614         Mark 'memset' obsolete.
38615         * modules/memset (Status, Notice): New sections.
38616
38617 2008-11-02  Bruno Haible  <bruno@clisp.org>
38618
38619         Mark 'memmove' obsolete.
38620         * modules/memmove (Status, Notice): New sections.
38621         * modules/argp (Depends-on): Add memmove.
38622         * modules/argz (Depends-on): Likewise.
38623         * modules/canonicalize (Depends-on): Likewise.
38624         * modules/canonicalize-lgpl (Depends-on): Likewise.
38625         * modules/fts (Depends-on): Likewise.
38626         * modules/getcwd (Depends-on): Likewise.
38627         * modules/human (Depends-on): Likewise.
38628         * modules/regex (Depends-on): Likewise.
38629         * modules/striconveh (Depends-on): Likewise.
38630         * modules/trim (Depends-on): Likewise.
38631         * modules/unistr/u8-move (Depends-on): Likewise.
38632         * modules/unistr/u16-move (Depends-on): Likewise.
38633         * modules/unistr/u32-move (Depends-on): Likewise.
38634
38635 2008-11-02  Bruno Haible  <bruno@clisp.org>
38636
38637         Mark 'memcpy' obsolete.
38638         * modules/memcpy (Status, Notice): New sections.
38639
38640 2008-11-02  Bruno Haible  <bruno@clisp.org>
38641
38642         Mark 'memcmp' obsolete.
38643         * modules/memcmp (Status, Notice): New sections.
38644         * modules/argmatch (Depends-on): Add memchr.
38645         * modules/backupfile (Depends-on): Likewise.
38646         * modules/c-strcasestr (Depends-on): Likewise.
38647         * modules/crypto/des (Depends-on): Likewise.
38648         * modules/csharpcomp (Depends-on): Likewise.
38649         * modules/fnmatch (Depends-on): Likewise.
38650         * modules/git-merge-changelog (Depends-on): Likewise.
38651         * modules/isnand (Depends-on): Likewise.
38652         * modules/isnand-nolibm (Depends-on): Likewise.
38653         * modules/isnanf (Depends-on): Likewise.
38654         * modules/isnanf-nolibm (Depends-on): Likewise.
38655         * modules/isnanl (Depends-on): Likewise.
38656         * modules/isnanl-nolibm (Depends-on): Likewise.
38657         * modules/mbchar (Depends-on): Likewise.
38658         * modules/memcoll (Depends-on): Likewise.
38659         * modules/quotearg (Depends-on): Likewise.
38660         * modules/regex (Depends-on): Likewise.
38661         * modules/relocatable-prog (Depends-on): Likewise.
38662         * modules/same (Depends-on): Likewise.
38663         * modules/signbit (Depends-on): Likewise.
38664         * modules/strcasestr-simple (Depends-on): Likewise.
38665         * modules/unictype/gen-ctype (Depends-on): Likewise.
38666         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38667         * modules/uniname/uniname (Depends-on): Likewise.
38668         * modules/unistr/u8-cmp (Depends-on): Likewise.
38669
38670 2008-11-02  Bruno Haible  <bruno@clisp.org>
38671
38672         Mark 'memchr' obsolete.
38673         * modules/memchr (Status, Notice): New sections.
38674         * modules/argp (Depends-on): Add memchr.
38675         * modules/base64 (Depends-on): Likewise.
38676         * modules/c-strcasestr (Depends-on): Likewise.
38677         * modules/chdir-long (Depends-on): Likewise.
38678         * modules/fnmatch (Depends-on): Likewise.
38679         * modules/getsubopt (Depends-on): Likewise.
38680         * modules/git-merge-changelog (Depends-on): Likewise.
38681         * modules/glob (Depends-on): Likewise.
38682         * modules/strcasestr-simple (Depends-on): Likewise.
38683         * modules/strnlen (Depends-on): Likewise.
38684
38685 2008-11-02  Bruno Haible  <bruno@clisp.org>
38686
38687         Mark 'atexit' obsolete.
38688         * modules/atexit (Status, Notice): New sections.
38689         * modules/chdir-long (Depends-on): Add atexit.
38690         * modules/wait-process (Depends-on): Likewise.
38691
38692 2008-11-02  Bruno Haible  <bruno@clisp.org>
38693
38694         * gnulib-tool: New option --with-obsolete.
38695         (func_usage): Document it.
38696         (func_modules_transitive_closure): Drop obsolete dependencies if
38697         incobsolete is not true.
38698         (func_import): Read and save the incobsolete variable to the cache.
38699
38700 2008-11-02  Bruno Haible  <bruno@clisp.org>
38701
38702         * modules/TEMPLATE-EXTENDED: New field 'Status'.
38703         * gnulib-tool: New option --extract-status.
38704         (func_usage): Document it.
38705         (sed_extract_prog): Recognize it.
38706         (func_get_status): New function.
38707
38708 2008-10-30  Simon Josefsson  <simon@josefsson.org>
38709
38710         * modules/sockets (License): Change from LGPL to LGPLv2+.
38711
38712 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38713
38714         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
38715
38716 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38717
38718         * MODULES.html.sh (Support for systems lacking POSIX:2001):
38719         Mention times and sys_times.
38720         * modules/sys_times, modules/sys_times-tests: New modules.
38721         * modules/times, modules/times-tests: Likewise
38722         * m4/sys_times_h.m4: New file.
38723         * lib/sys_times.in.h: Likewise
38724         * lib/times.c: Likewise.
38725         * tests/test-sys_times.c: Likewise.
38726         * tests/test-times.c: Likewise.
38727         * doc/posix-headers/sys_times.texi: Update.
38728         * doc/posix-functions/times.texi: Update.
38729
38730 2008-10-28  Jim Meyering  <meyering@redhat.com>
38731
38732         * modules/tempname (Depends-on): Add lstat.
38733
38734         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
38735
38736 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38737
38738         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
38739         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
38740         using idiom used elsewhere in gnulib.
38741
38742 2008-10-27  Jim Meyering  <meyering@redhat.com>
38743
38744         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
38745
38746 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38747
38748         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
38749         TESTS_ENVIRONMENT, for shell scripts that needs to call built
38750         programs.
38751         * tests/test-argp-2.sh: Use $EXEEXT when needed.
38752
38753 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38754
38755         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
38756
38757 2008-10-27  Bruno Haible  <bruno@clisp.org>
38758
38759         * tests/test-lstat.c: Include <stdio.h>.
38760
38761 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38762
38763         * modules/lstat-tests: New module.
38764         * tests/test-lstat.c: New file.
38765
38766 2008-10-26  Jim Meyering  <meyering@redhat.com>
38767
38768         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
38769
38770 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38771             Bruno Haible  <bruno@clisp.org>
38772
38773         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
38774         * modules/configmake (Include): Add a note that the include must come
38775         after all system headers.
38776         * lib/javaversion.c: Include configmake.h after all other includes.
38777
38778 2008-10-26  Bruno Haible  <bruno@clisp.org>
38779
38780         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
38781         HAVE_STRUCT_RANDOM_DATA to 1.
38782         (gl_STDLIB_H): Simplify.
38783
38784 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38785
38786         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
38787         substitute HAVE_STRUCT_RANDOM_DATA.
38788         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
38789         random_data.
38790         * modules/stdlib (Makefile.am): Substitute
38791         HAVE_STRUCT_RANDOM_DATA.
38792
38793 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38794
38795         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
38796         * doc/gnulib-intro.texi (Copyright): Likewise.
38797
38798 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38799
38800         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
38801         findings.
38802
38803 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
38804             Bruno Haible  <bruno@clisp.org>
38805
38806         * lib/unistd.in.h: Include <winsock2.h>.
38807         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
38808         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
38809         Provide dummy declarations.
38810         (gethostname): Override.
38811         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
38812         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
38813         gl_PREREQ_SYS_H_WINSOCK2.
38814         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
38815         * doc/posix-functions/gethostname.texi: More details.
38816
38817 2008-10-25  Bruno Haible  <bruno@clisp.org>
38818
38819         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38820         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
38821         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
38822
38823         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
38824         here ...
38825         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
38826         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
38827         gl_UNISTD_H_DEFAULTS.
38828
38829 2008-10-25  Eric Blake  <ebb9@byu.net>
38830
38831         signbit: avoid spurious compiler failure
38832         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
38833         declarations inside function.
38834
38835 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38836             Bruno Haible  <bruno@clisp.org>
38837
38838         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
38839         * modules/random_r (Depends-on): Add stdint.
38840
38841 2008-10-24  Bruno Haible  <bruno@clisp.org>
38842
38843         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
38844         Eggert.
38845         * modules/strerror (License): Likewise.
38846
38847 2008-10-24  Jim Meyering  <meyering@redhat.com>
38848
38849         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
38850         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
38851
38852 2008-10-24  Eric Blake  <ebb9@byu.net>
38853
38854         getgroups: fix compilation when getgroups is available
38855         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
38856         but with <config.h> override of getgroups disabled.
38857
38858 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38859
38860         * doc/gnulib.texi (Header files): Add note about C++ problems.
38861         Explained by Bruno Haible <bruno@clisp.org>.
38862
38863 2008-10-23  Bruno Haible  <bruno@clisp.org>
38864
38865         Define a dummy SA_NODEFER macro on Interix.
38866         * lib/signal.in.h (SA_NODEFER): Define fallback.
38867         Reported by Aleksey Cheusov <cheusov@tut.by> via
38868         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
38869
38870 2008-10-23  Bruno Haible  <bruno@clisp.org>
38871
38872         * modules/freadahead (License): Change to LGPLv2+.
38873         Suggested by Simon Josefsson.
38874
38875 2008-10-23  Jim Meyering  <meyering@redhat.com>
38876
38877         random_r: new module
38878         * modules/random_r: New file.
38879         * m4/random_r.m4: New file.
38880         * lib/random_r.c: New file, from glibc.
38881         * modules/random_r-tests: New file.
38882         * tests/test-random_r.c: New file.
38883         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
38884          Declare.
38885         (RAND_MAX): Define.
38886         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
38887         * modules/stdlib: Substitute them, too.
38888         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
38889         * doc/glibc-functions/initstate_r.texi: Mention the new module.
38890         * doc/glibc-functions/random_r.texi: Likewise.
38891         * doc/glibc-functions/setstate_r.texi: Likewise.
38892         * doc/glibc-functions/srandom_r.texi: Likewise.
38893         * config/srclist.txt: Mention it.
38894
38895 2008-10-23  David Lutterkort  <lutter@redhat.com>
38896
38897         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
38898         link requirement
38899
38900 2008-10-23  Jim Meyering  <meyering@redhat.com>
38901
38902         selinux-h: mark parameters of stub functions as intentionally unused
38903         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
38904         * lib/se-context.in.h: Likewise.
38905
38906 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38907
38908         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
38909
38910 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38911
38912         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
38913
38914 2008-10-22  Eric Blake  <ebb9@byu.net>
38915
38916         glthread/thread: avoid compiler warning
38917         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
38918         Add unreachable abort to silence compiler.
38919
38920 2008-10-22  Eric Blake  <ebb9@byu.net>
38921
38922         netdb: also supply struct addrinfo for cygwin 1.5.x
38923         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
38924         older cygwin.
38925         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
38926         cygwin.
38927         * doc/posix-headers/netdb.texi (netdb.h): Document this.
38928
38929 2008-10-22  Bruno Haible  <bruno@clisp.org>
38930
38931         * users.txt: Update entry about pspp.
38932
38933 2008-10-21  Bruno Haible  <bruno@clisp.org>
38934
38935         Simplification.
38936         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
38937         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
38938
38939         Simplification.
38940         * lib/ioctl.c (ioctl): Don't undefine.
38941         * lib/socket.c (socket): Don't undefine.
38942
38943         Remove unused module indicator macros.
38944         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
38945         GNULIB_$1 as a C macro.
38946
38947         * doc/posix-functions/close.texi: Undo last change.
38948         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
38949         Windows platforms.
38950
38951 2008-10-21  Bruno Haible  <bruno@clisp.org>
38952
38953         Add gethostname() declaration to <unistd.h>.
38954         * lib/unistd.in.h (gethostname): New declaration.
38955         * lib/gethostname.c: Include <unistd.h>.
38956         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
38957         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
38958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
38959         and HAVE_GETHOSTNAME.
38960         * modules/gethostname (Depends-on): Add unistd.
38961         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38962         (Include): Specify <unistd.h>.
38963         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
38964         HAVE_GETHOSTNAME.
38965         * tests/test-gethostname.c: Include <unistd.h> first.
38966
38967 2008-10-21  Bruno Haible  <bruno@clisp.org>
38968
38969         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
38970         * modules/select-tests (Depends-on): Likewise.
38971         Reported by Simon Josefsson.
38972
38973 2008-10-21  Simon Josefsson  <simon@josefsson.org>
38974
38975         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
38976         * lib/accept.c: New file, based on winsock.c.
38977         * lib/bind.c: New file, based on winsock.c.
38978         * lib/connect.c: New file, based on winsock.c.
38979         * lib/getpeername.c: New file, based on winsock.c.
38980         * lib/getsockname.c: New file, based on winsock.c.
38981         * lib/getsockopt.c: New file, based on winsock.c.
38982         * lib/ioctl.c: New file, based on winsock.c.
38983         * lib/listen.c: New file, based on winsock.c.
38984         * lib/recv.c: New file, based on winsock.c.
38985         * lib/recvfrom.c: New file, based on winsock.c.
38986         * lib/send.c: New file, based on winsock.c.
38987         * lib/sendto.c: New file, based on winsock.c.
38988         * lib/setsockopt.c: New file, based on winsock.c.
38989         * lib/shutdown.c: New file, based on winsock.c.
38990         * lib/socket.c: New file, based on winsock.c.
38991         * lib/w32sock.h: New file, based on winsock.c.
38992         * lib/winsock.c: Remove file.
38993         * modules/accept: Likewise.
38994         * modules/bind: Likewise.
38995         * modules/connect: Likewise.
38996         * modules/getpeername: Likewise.
38997         * modules/getsockname: Likewise.
38998         * modules/getsockopt: Likewise.
38999         * modules/ioctl: Likewise.
39000         * modules/listen: Likewise.
39001         * modules/recv: Likewise.
39002         * modules/recvfrom: Likewise.
39003         * modules/send: Likewise.
39004         * modules/sendto: Likewise.
39005         * modules/setsockopt: Likewise.
39006         * modules/shutdown: Likewise.
39007         * modules/socket: Use socket.c instead of winsock.c.
39008         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39009         * doc/posix-functions/accept.texi: Doc fix.
39010         * doc/posix-functions/bind.texi: Doc fix.
39011         * doc/posix-functions/close.texi: Doc fix.
39012         * doc/posix-functions/connect.texi: Doc fix.
39013         * doc/posix-functions/getpeername.texi: Doc fix.
39014         * doc/posix-functions/getsockname.texi: Doc fix.
39015         * doc/posix-functions/getsockopt.texi: Doc fix.
39016         * doc/posix-functions/ioctl.texi: Doc fix.
39017         * doc/posix-functions/listen.texi: Doc fix.
39018         * doc/posix-functions/recv.texi: Doc fix.
39019         * doc/posix-functions/recvfrom.texi: Doc fix.
39020         * doc/posix-functions/send.texi: Doc fix.
39021         * doc/posix-functions/sendto.texi: Doc fix.
39022         * doc/posix-functions/setsockopt.texi: Doc fix.
39023         * doc/posix-functions/shutdown.texi: Doc fix.
39024         * doc/posix-functions/socket.texi: Doc fix.
39025
39026 2008-10-20  Bruno Haible  <bruno@clisp.org>
39027
39028         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39029         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39030         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39031         as an alias for SIGABRT.
39032         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39033         (sigaction): Map it to SIGABRT.
39034         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39035
39036 2008-10-20  Bruno Haible  <bruno@clisp.org>
39037
39038         * lib/fts.c: Don't include lstat.h.
39039         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39040
39041         Move the lstat() declaration to <sys/stat.h>.
39042         * lib/lstat.h: Remove file.
39043         * lib/sys_stat.in.h: Add special invocation convention.
39044         (lstat): New declaration.
39045         * lib/lstat.c (orig_lstat): New function.
39046         (rpl_lstat): Use orig_lstat instead of lstat.
39047         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39048         AC_C_INLINE. Set REPLACE_LSTAT.
39049         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39050         and REPLACE_LSTAT.
39051         * modules/lstat (Files): Remove lib/lstat.h.
39052         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39053         (Include): Specify <sys/stat.h> instead of lstat.h.
39054         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39055         REPLACE_LSTAT.
39056         * NEWS: Mention the change.
39057
39058 2008-10-20  Bruno Haible  <bruno@clisp.org>
39059
39060         * modules/posix_spawn-tests: New file.
39061         * tests/test-posix_spawn3.c: New file.
39062
39063 2008-10-20  Bruno Haible  <bruno@clisp.org>
39064
39065         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39066         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39067         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39068         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39069         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39070
39071 2008-10-20  Bruno Haible  <bruno@clisp.org>
39072
39073         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39074         of posix_spawn on AIX 5.3.
39075
39076 2008-10-20  Bruno Haible  <bruno@clisp.org>
39077
39078         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39079
39080 2008-10-20  Bruno Haible  <bruno@clisp.org>
39081
39082         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39083         of AC_LANG_PROGRAM.
39084
39085 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39086
39087         * lib/netdb.in.h: Don't define GNU specific constants until they
39088         are supported or needed.  Reported by Bruno Haible
39089         <bruno@clisp.org>.
39090
39091 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39092
39093         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39094
39095 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39096
39097         * lib/getaddrinfo.h: Remove file.
39098         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39099         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39100         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39101         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39102         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39103         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39104         * tests/test-getaddrinfo.c: Likewise.
39105         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39106         * NEWS: Mention change.
39107
39108 2008-10-19  Bruno Haible  <bruno@clisp.org>
39109
39110         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39111
39112 2008-10-19  Bruno Haible  <bruno@clisp.org>
39113
39114         * lib/wait-process.c: Include simply <sys/wait.h>.
39115         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39116         WIFSTOPPED): Remove fallback definitions.
39117         * modules/wait-process (Depends-on): Add sys_wait.
39118
39119         New module 'sys_wait'.
39120         * modules/sys_wait: New file.
39121         * lib/sys_wait.in.h: New file, partially copied from
39122         lib/wait-process.c.
39123         * m4/sys_wait_h.m4: New file.
39124         * doc/posix-headers/sys_wait.texi: Mention the new module.
39125
39126 2008-10-19  Bruno Haible  <bruno@clisp.org>
39127
39128         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39129
39130 2008-10-19  Bruno Haible  <bruno@clisp.org>
39131
39132         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39133         * lib/wait-process.c (WAIT_T): Remove type.
39134         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39135         (wait_subprocess): Update.
39136
39137 2008-10-19  Bruno Haible  <bruno@clisp.org>
39138
39139         New module 'atoll'.
39140         * modules/atoll: New file.
39141         * lib/stdlib.in.h (atoll): New declaration.
39142         * lib/atoll.c: New file, from glibc with modifications.
39143         * m4/atoll.m4: New file.
39144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39145         HAVE_ATOLL.
39146         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39147         * doc/posix-functions/atoll.texi: Mention the new module.
39148
39149 2008-10-19  Bruno Haible  <bruno@clisp.org>
39150
39151         Add strtoull() declaration to <stdlib.h>.
39152         * lib/stdlib.in.h (strtoull): New declaration.
39153         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39154         Set HAVE_STRTOULL.
39155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39156         HAVE_STRTOULL.
39157         * modules/strtoull (Depends-on): Add stdlib.
39158         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39159         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39160         HAVE_STRTOULL.
39161
39162 2008-10-19  Bruno Haible  <bruno@clisp.org>
39163
39164         Add strtoll() declaration to <stdlib.h>.
39165         * lib/stdlib.in.h (strtoll): New declaration.
39166         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39167         Set HAVE_STRTOLL.
39168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39169         HAVE_STRTOLL.
39170         * modules/strtoll (Depends-on): Add stdlib.
39171         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39172         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39173
39174 2008-10-19  Bruno Haible  <bruno@clisp.org>
39175
39176         * modules/bcopy (Depends-on): Add strings.
39177         (Include): Specify <strings.h>.
39178
39179 2008-10-19  Bruno Haible  <bruno@clisp.org>
39180
39181         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39182
39183 2008-10-19  Bruno Haible  <bruno@clisp.org>
39184
39185         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39186         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39187         mingw.
39188
39189 2008-10-19  Bruno Haible  <bruno@clisp.org>
39190
39191         * lib/atanl.c: Don't include isnanl.h.
39192         * lib/cosl.c: Likewise.
39193         * lib/ldexpl.c: Likewise.
39194         * lib/logl.c: Likewise.
39195         * lib/sinl.c: Likewise.
39196         * lib/sqrtl.c: Likewise.
39197         * lib/tanl.c: Likewise.
39198
39199         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39200         * lib/isnanf.h: Remove file.
39201         * lib/isnand.h: Remove file.
39202         * lib/isnanl.h: Remove file.
39203         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39204         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39205         macros.
39206         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39207         HAVE_ISNANF, don't define it as a C macro.
39208         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39209         HAVE_ISNAND, don't define it as a C macro.
39210         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39211         HAVE_ISNANL, don't define it as a C macro.
39212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39213         HAVE_ISNAN[FDL].
39214         * modules/isnanf (Files): Remove lib/isnanf.h.
39215         (Depends-on): Add math.
39216         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39217         (Include): Specify <math.h> instead of isnanf.h.
39218         * modules/isnand (Files): Remove lib/isnand.h.
39219         (Depends-on): Add math.
39220         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39221         (Include): Specify <math.h> instead of isnand.h.
39222         * modules/isnanl (Files): Remove lib/isnanl.h.
39223         (Depends-on): Add math.
39224         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39225         (Include): Specify <math.h> instead of isnanl.h.
39226         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39227         HAVE_ISNAN[FDL].
39228         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39229         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39230         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39231         * NEWS: Mention the change.
39232
39233 2008-10-18  Bruno Haible  <bruno@clisp.org>
39234
39235         Add getusershell(), setusershell(), endusershell() declarations to
39236         <unistd.h>.
39237         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39238         declarations.
39239         * lib/getusershell.c: Include unistd.h.
39240         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39241         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39242         HAVE_GETUSERSHELL.
39243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39244         and HAVE_GETUSERSHELL.
39245         * modules/getusershell (Depends-on): Add unistd, extensions.
39246         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39247         (Include): Specify <unistd.h>.
39248         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39249         HAVE_GETUSERSHELL.
39250
39251 2008-10-18  Bruno Haible  <bruno@clisp.org>
39252
39253         Add a getloadavg() declaration to <stdlib.h>.
39254         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39255         getloadavg declaration.
39256         (getloadavg): New declaration.
39257         * lib/getloadavg.c: Include <stdlib.h> first.
39258         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39259         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39260         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39262         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39263         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39264         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39265         (Include): Specify <stdlib.h>.
39266         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39267         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39268
39269 2008-10-18  Bruno Haible  <bruno@clisp.org>
39270
39271         * lib/dirchownmod.c: Don't include lchmod.h.
39272
39273         Move the lchmod() declaration to <sys/stat.h>.
39274         * lib/lchmod.h: Remove file.
39275         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39276         (lchmod): New declaration, moved here from lib/lchown.h.
39277         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39278         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39279         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39280         and HAVE_LCHMOD.
39281         * modules/lchmod (Files): Remove lib/lchmod.h.
39282         (Depends-on): Add sys_stat, extensions.
39283         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39284         (Include): Specify <sys/stat.h> instead of lchmod.h.
39285         * modules/sys_stat (Depends-on): Add link-warning.
39286         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39287         definition of GL_LINK_WARNING.
39288         * NEWS: Mention the change.
39289
39290 2008-10-18  Bruno Haible  <bruno@clisp.org>
39291
39292         * lib/fchdir.c: Don't include dirfd.h.
39293         * lib/fts.c: Likewise.
39294         * lib/getcwd.c: Likewise.
39295         * lib/glob.c: Likewise.
39296
39297         Move the dirfd() declaration to <dirent.h>.
39298         * lib/dirfd.h: Remove file.
39299         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39300         (dirfd): New declaration.
39301         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39302         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39303         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39304         HAVE_DECL_DIRFD.
39305         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39306         HAVE_DECL_DIRFD.
39307         * modules/dirfd (Files): Remove lib/dirfd.h.
39308         (Depends-on): Add dirent, extensions.
39309         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39310         (Include): Specify <dirent.h> instead of dirfd.h.
39311         * modules/dirent (Depends-on): Add link-warning.
39312         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39313         definition of GL_LINK_WARNING.
39314         * NEWS: Mention the change.
39315
39316 2008-10-18  Bruno Haible  <bruno@clisp.org>
39317
39318         Move the euidaccess() declaration to <unistd.h>.
39319         * lib/euidaccess.h: Remove file.
39320         * lib/unistd.in.h (euidaccess): New declaration.
39321         * lib/euidaccess.c: Don't include euidaccess.h.
39322         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39323         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39325         and HAVE_EUIDACCESS.
39326         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39327         (Depends-on): Add unistd.
39328         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39329         (Include): Specify <unistd.h> instead of euidaccess.h.
39330         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39331         HAVE_EUIDACCESS.
39332         * NEWS: Mention the change.
39333
39334 2008-10-18  Bruno Haible  <bruno@clisp.org>
39335
39336         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39337
39338         Move the getdomainname() declaration to <unistd.h>.
39339         * lib/getdomainname.h: Remove file.
39340         * lib/unistd.in.h (getdomainname): New declaration.
39341         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39342         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39343         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39344         HAVE_GETDOMAINNAME.
39345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39346         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39347         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39348         (Depends-on): Add unistd, extensions.
39349         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39350         (Includes): Specify <unistd.h> instead of getdomainname.h.
39351         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39352         HAVE_GETDOMAINNAME.
39353         * NEWS: Mention the change.
39354
39355 2008-10-18  Bruno Haible  <bruno@clisp.org>
39356
39357         * modules/dirent: New file.
39358         * m4/dirent_h.m4: New file.
39359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39360         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39361         * modules/fchdir (Files): Remove lib/dirent.in.h.
39362         (Depends-on): Add dirent.
39363         (Makefile.am): Move rules to modules/dirent.
39364         * doc/posix-headers/dirent.texi: Mention the new module.
39365
39366 2008-10-18  Bruno Haible  <bruno@clisp.org>
39367
39368         Avoid -Wunused-parameter warnings in public gnulib header files.
39369         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39370         macro.
39371         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39372
39373 2008-10-18  Bruno Haible  <bruno@clisp.org>
39374
39375         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39376         * doc/glibc-functions/error.texi: Mention the module 'error'.
39377         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39378         * doc/glibc-functions/getdomainname.texi: Mention the module
39379         'getdomainname'.
39380         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39381         * doc/glibc-functions/getpagesize.texi: Mention the module
39382         'getpagesize'.
39383         * doc/glibc-functions/getusershell.texi: Mention the module
39384         'getusershell'.
39385         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39386         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39387         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39388         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39389         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39390         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39391         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39392         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39393         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39394         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39395         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39396         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39397         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39398         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39399
39400 2008-10-17  Bruno Haible  <bruno@clisp.org>
39401
39402         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39403         HP-UX and IRIX, use -0.0L.
39404         * tests/test-ceill.c (minus_zero): Likewise.
39405         * tests/test-floorl.c (minus_zero): Likewise.
39406         * tests/test-frexpl.c (minus_zero): Likewise.
39407         * tests/test-isnan.c (minus_zerol): Likewise.
39408         * tests/test-isnanl.h (minus_zero): Likewise.
39409         * tests/test-ldexpl.c (minus_zero): Likewise.
39410         * tests/test-roundl.c (minus_zero): Likewise.
39411         * tests/test-signbit.c (minus_zerol): Likewise.
39412         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39413         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39414         * tests/test-truncl.c (minus_zero): Likewise.
39415         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39416         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39417         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39418         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39419
39420 2008-10-17  Bruno Haible  <bruno@clisp.org>
39421
39422         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39423         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39424         that it gets activated only for gcc >= 3.0.
39425         * lib/dirent.in.h: Likewise.
39426         * lib/errno.in.h: Likewise.
39427         * lib/fcntl.in.h: Likewise.
39428         * lib/float.in.h: Likewise.
39429         * lib/iconv.in.h: Likewise.
39430         * lib/inttypes.in.h: Likewise.
39431         * lib/locale.in.h: Likewise.
39432         * lib/math.in.h: Likewise.
39433         * lib/netdb.in.h: Likewise.
39434         * lib/netinet_in.in.h: Likewise.
39435         * lib/search.in.h: Likewise.
39436         * lib/signal.in.h: Likewise.
39437         * lib/spawn.in.h: Likewise.
39438         * lib/stdarg.in.h: Likewise.
39439         * lib/stdint.in.h: Likewise.
39440         * lib/stdio.in.h: Likewise.
39441         * lib/stdlib.in.h: Likewise.
39442         * lib/string.in.h: Likewise.
39443         * lib/strings.in.h: Likewise.
39444         * lib/sys_file.in.h: Likewise.
39445         * lib/sys_ioctl.in.h: Likewise.
39446         * lib/sys_select.in.h: Likewise.
39447         * lib/sys_socket.in.h: Likewise.
39448         * lib/sys_stat.in.h: Likewise.
39449         * lib/sys_time.in.h: Likewise.
39450         * lib/sysexits.in.h: Likewise.
39451         * lib/time.in.h: Likewise.
39452         * lib/unistd.in.h: Likewise.
39453         * lib/wchar.in.h: Likewise.
39454         * lib/wctype.in.h: Likewise.
39455         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39456
39457 2008-10-17  Jim Meyering  <meyering@redhat.com>
39458
39459         ignore-value: don't depend on inline module
39460         * modules/ignore-value (Depends-on): Remove 'inline'.
39461         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
39462         Suggestion from Bruno Haible.
39463
39464 2008-10-17  Bruno Haible  <bruno@clisp.org>
39465
39466         New implementation of condition variables for Win32.
39467         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
39468         (gl_linked_waitqueue_t): New type.
39469         (gl_cond_t): Use it.
39470         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39471         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39472         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39473         (glthread_cond_init_func, glthread_cond_wait_func,
39474         glthread_cond_timedwait_func, glthread_cond_signal_func,
39475         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39476         Reimplemented on the basis of gl_linked_waitqueue_t.
39477         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39478         gl_waitqueue_t.
39479         (gl_rwlock_t): Update.
39480         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39481
39482 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39483
39484         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39485         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39486
39487 2008-10-17  Jim Meyering  <meyering@redhat.com>
39488
39489         ignore-value: new module
39490         * modules/ignore-value: New file.
39491         * lib/ignore-value.h: New file.
39492         * MODULES.html.sh (Compiler warning management): New section,
39493         just for this module.  More to come.
39494
39495 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39496
39497         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39498         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39499         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39500
39501 2008-10-16  Jim Meyering  <meyering@redhat.com>
39502
39503         openat-die.c: avoid 'no previous prototype' warning
39504         * lib/openat-die.c: Include "openat.h".
39505         Reported by Reuben Thomas <rrt@sc3d.org>.
39506
39507 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39508
39509         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39510         * lib/netdb.in.h: Fix typo.
39511         Reported by Bruno Haible  <bruno@clisp.org>
39512
39513         * lib/netdb.in.h: Include sys/socket.h for platforms without
39514         netdb.h, to get structures like hostent on MinGW.
39515         * modules/netdb (Depends-on): Add sys_socket.
39516
39517 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39518
39519         * modules/netdb, modules/netdb-tests: New file.
39520         * m4/netdb_h.m4: New file.
39521         * lib/netdb.in.h: Add, currently just an empty file pending
39522         definitions.
39523         * tests/test-netdb.c: New file.
39524         * doc/posix-headers/netdb.texi: Mention that we replace it if
39525         needed.
39526         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39527         netdb.
39528
39529 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39530
39531         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39532         with code.
39533
39534 2008-10-13  Bruno Haible  <bruno@clisp.org>
39535
39536         * lib/glthread/cond.c (glthread_cond_wait_func,
39537         glthread_cond_timedwait_func): Add a comment.
39538
39539 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39540
39541         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
39542         * tests/test-select.c: Likewise,
39543
39544 2008-10-13  Bruno Haible  <bruno@clisp.org>
39545
39546         * lib/glthread/cond.c (glthread_cond_wait_func,
39547         glthread_cond_timedwait_func): Fix variable name.
39548         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39549
39550 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
39551
39552         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
39553         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
39554         struct sockaddr.sa_len.
39555         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
39556
39557 2008-10-13  Simon Josefsson  <simon@josefsson.org>
39558
39559         * build-aux/pmccabe2html: Add css and css_url parameters.
39560
39561 2008-10-12  Bruno Haible  <bruno@clisp.org>
39562
39563         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
39564         calling aclx_get.
39565         Reported by Rainer Tammer <tammer@tammer.net>.
39566
39567 2008-10-12  Bruno Haible  <bruno@clisp.org>
39568
39569         Use msvcrt aware primitives for creation/termination of Win32 threads.
39570         * lib/glthread/thread.c: Include <process.h>.
39571         (glthread_create_func): Use _beginthreadex instead of CreateThread.
39572         (wrapper_func): Update signature.
39573         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
39574
39575 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39576             Bruno Haible  <bruno@clisp.org>
39577
39578         Provide a Win32 implementation of the 'cond' module.
39579         * lib/glthread/cond.h [USE_WIN32]: New implementation.
39580         * lib/glthread/cond.c (glthread_cond_init_func,
39581         glthread_cond_wait_func, glthread_cond_timedwait_func,
39582         glthread_cond_signal_func, glthread_cond_broadcast_func,
39583         glthread_cond_destroy_func) [USE_WIN32]: New functions.
39584         * modules/cond (Dependencies): Add gettimeofday.
39585
39586 2008-10-11  Bruno Haible  <bruno@clisp.org>
39587
39588         Make sleep work on older versions of mingw.
39589         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
39590         only whether it exists.
39591         * doc/posix-functions/sleep.texi: Mention the problem with older
39592         versions of mingw.
39593
39594 2008-10-11  Bruno Haible  <bruno@clisp.org>
39595
39596         New module 'shutdown'.
39597         * modules/shutdown: New file.
39598         * lib/sys_socket.in.h (shutdown): New declaration.
39599         * lib/winsock.c (shutdown): New function.
39600         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39601         GNULIB_SHUTDOWN.
39602         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
39603         * doc/posix-functions/shutdown.texi: Document the new module.
39604
39605 2008-10-11  Jim Meyering  <meyering@redhat.com>
39606
39607         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
39608
39609 2008-10-11  Bruno Haible  <bruno@clisp.org>
39610
39611         New module 'fclose'.
39612         * modules/fclose: New file.
39613         * lib/stdio.in.h (fclose): New declaration.
39614         * lib/fclose.c: New file.
39615         * m4/fclose.m4: New file.
39616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
39617         REPLACE_FCLOSE.
39618         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
39619         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
39620         REPLACE_FCLOSE.
39621         * modules/close (Depends-on): fclose.
39622         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
39623
39624 2008-10-11  Bruno Haible  <bruno@clisp.org>
39625
39626         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
39627         set errno and don't call _close.
39628
39629 2008-10-10  Bruno Haible  <bruno@clisp.org>
39630
39631         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
39632         ACL, not afterwards. Fixes test failure on Cygwin.
39633
39634 2008-10-09  Ben Pfaff  <blp@gnu.org>
39635
39636         * build-aux/announce-gen: Fix gnulib version related part of usage
39637         message.  Die with a useful error message if no tarballs are
39638         found.
39639
39640 2008-10-10  Jim Meyering  <meyering@redhat.com>
39641
39642         bootstrap: use git's --depth=N option only if it's supported
39643         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
39644         recognize the --depth option.  Reported by Pádraig Brady.
39645
39646 2008-10-09  Bruno Haible  <bruno@clisp.org>
39647
39648         New module 'ioctl'.
39649         * modules/ioctl: New file.
39650         * lib/sys_socket.in.h (ioctl): Remove declaration.
39651         * lib/winsock.c: Include <sys/ioctl.h>.
39652         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
39653         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39654         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
39655         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
39656         * doc/posix-functions/ioctl.texi: Mention the new module.
39657
39658 2008-10-09  Bruno Haible  <bruno@clisp.org>
39659
39660         New module 'sys_ioctl'.
39661         * lib/sys_ioctl.in.h: New file.
39662         * m4/sys_ioctl_h.m4: New file.
39663         * modules/sys_ioctl: New file.
39664         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
39665
39666 2008-10-09  Bruno Haible  <bruno@clisp.org>
39667
39668         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
39669         * lib/winsock.c: Include <stdarg.h>.
39670         (rpl_ioctl): Change to second argument 'int' and then varargs.
39671
39672 2008-10-09  Bruno Haible  <bruno@clisp.org>
39673
39674         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
39675         when the sys_socket module is present and the system has <winsock2.h>.
39676
39677 2008-10-09  Bruno Haible  <bruno@clisp.org>
39678
39679         * doc/posix-functions/close.texi: Mention module 'close' instead of
39680         module 'sys_socket'.
39681
39682 2008-10-09  Bruno Haible  <bruno@clisp.org>
39683
39684         * doc/glibc-headers/sys_ioctl.texi: New file.
39685         * doc/gnulib.texi: Include it.
39686
39687 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39688             Bruno Haible  <bruno@clisp.org>
39689
39690         Combine the two replacements of 'close'.
39691         * lib/sys_socket.in.h (close): Define to a reminder to include
39692         <unistd.h>.
39693         (_gl_close_fd_maybe_socket): New declaration.
39694         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
39695         * lib/winsock.c (close): Remove undefinition.
39696         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
39697         needed for the gnulib module 'close'.
39698         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
39699         define to an error symbol or to a warning, if suitable.
39700         * lib/close.c: Include <sys/socket.h>.
39701         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
39702         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
39703         UNISTD_H_HAVE_WINSOCK2_H.
39704         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
39705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39706         UNISTD_H_HAVE_WINSOCK2_H.
39707         * modules/sys_socket (Files): Add m4/unistd_h.m4.
39708         (configure.ac): Set a module indicator.
39709         (Makefile.am): Substitute GNULIB_CLOSE.
39710         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
39711         * modules/poll-tests (Depends-on): Add close.
39712         * modules/select-tests (Depends-on): Likewise.
39713
39714 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39715             Bruno Haible  <bruno@clisp.org>
39716
39717         New module 'close'.
39718         * modules/close: New file.
39719         * lib/unistd.in.h (close): Move declaration out of the
39720         FCHDIR_REPLACEMENT scope.
39721         (_gl_unregister_fd): New declaration.
39722         * lib/close.c: New file.
39723         * lib/fchdir.c (rpl_close): Remove function.
39724         * m4/close.m4: New file.
39725         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39726         close.
39727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
39728         REPLACE_CLOSE.
39729         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
39730         REPLACE_CLOSE.
39731         * modules/fchdir (Depends-on): Add close.
39732
39733 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39734             Bruno Haible  <bruno@clisp.org>
39735
39736         * lib/fcntl.in.h (open): Simplify conditionals.
39737         (_gl_register_fd): New declaration.
39738         * lib/fchdir.c (rpl_open): Remove function.
39739         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
39740         also.
39741         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
39742         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39743         open.
39744
39745 2008-10-09  Jim Meyering  <meyering@redhat.com>
39746
39747         GNUmakefile: use the more name-space-friendly "_version"
39748         * top/GNUmakefile (_dummy): Update.
39749         (_version): Rename from "version".
39750
39751 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39752             Bruno Haible  <bruno@clisp.org>
39753
39754         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
39755         rpl_close.
39756         (_gl_register_fd): New function, extracted from rpl_open.
39757         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
39758         (rpl_open, rpl_opendir): Use _gl_register_fd.
39759
39760 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39761
39762         Fix organization of 'open' replacement.
39763         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
39764         (gl_FUNC_OPEN): Use it.
39765         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
39766
39767 2008-10-08  Bruno Haible  <bruno@clisp.org>
39768
39769         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
39770
39771 2008-10-08  Simon Josefsson  <simon@josefsson.org>
39772
39773         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
39774         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
39775         listen).
39776
39777 2008-10-08  Eric Blake  <ebb9@byu.net>
39778
39779         GNUmakefile: add 'make version' target
39780         * top/GNUmakefile (_curr-ver): Split version update rules...
39781         (version): ...into a target.
39782
39783 2008-10-07  Bruno Haible  <bruno@clisp.org>
39784
39785         Use a more portable replacement expression for -0.0L.
39786         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
39787         instead of -0.0L. Fix m4 quotation.
39788
39789         * tests/test-signbit.c: Include <float.h>.
39790         (minus_zero): New variable.
39791         (test_signbitl): Use minus_zero instead of -zero.
39792         * modules/signbit-tests (Depends-on): Add float.
39793
39794         * tests/test-ceill.c: Include <float.h>.
39795         (zero): Remove variable.
39796         (minus_zero): New variable.
39797         (main): Use minus_zero instead of -zero.
39798         * modules/ceill-tests (Depends-on): Add float.
39799
39800         * tests/test-floorl.c: Include <float.h>.
39801         (zero): Remove variable.
39802         (minus_zero): New variable.
39803         (main): Use minus_zero instead of -zero.
39804         * modules/floorl-tests (Depends-on): Add float.
39805
39806         * tests/test-roundl.c: Include <float.h>.
39807         (zero): Remove variable.
39808         (minus_zero): New variable.
39809         (main): Use minus_zero instead of -zero.
39810         * modules/roundl-tests (Depends-on): Add float.
39811
39812         * tests/test-truncl.c: Include <float.h>.
39813         (zero): Remove variable.
39814         (minus_zero): New variable.
39815         (main): Use minus_zero instead of -zero.
39816         * modules/truncl-tests (Depends-on): Add float.
39817
39818         * tests/test-frexpl.c (zero): Remove variable.
39819         (minus_zero): New variable.
39820         (main): Use minus_zero instead of -zero.
39821         * modules/frexpl-tests (Depends-on): Add float.
39822
39823         * tests/test-isnan.c (zerol): Remove variable.
39824         (minus_zerol): New variable.
39825         (test_long_double): Use minus_zerol instead of -zerol.
39826         * modules/isnan-tests (Depends-on): Add float.
39827
39828         * tests/test-isnanl.h (zero): Remove variable.
39829         (minus_zero): New variable.
39830         (main): Use minus_zero instead of -zero.
39831         * modules/isnanl-nolibm-tests (Depends-on): Add float.
39832         * modules/isnanl-tests (Depends-on): Add float.
39833
39834         * tests/test-ldexpl.c (zero): Remove variable.
39835         (minus_zero): New variable.
39836         (main): Use minus_zero instead of -zero.
39837         * modules/ldexpl-tests (Depends-on): Add float.
39838
39839         * tests/test-snprintf-posix.h (zerol): Remove variable.
39840         (minus_zerol): New variable.
39841         (test_function): Use minus_zerol instead of -zerol.
39842         * modules/snprintf-posix-tests (Depends-on): Add float.
39843         * modules/vsnprintf-posix-tests (Depends-on): Add float.
39844
39845         * tests/test-sprintf-posix.h (zerol): Remove variable.
39846         (minus_zerol): New variable.
39847         (test_function): Use minus_zerol instead of -zerol.
39848         * modules/sprintf-posix-tests (Depends-on): Add float.
39849         * modules/vsprintf-posix-tests (Depends-on): Add float.
39850
39851         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
39852         (minus_zerol): New variable.
39853         (test_function): Use minus_zerol instead of -zerol.
39854         * modules/vasnprintf-posix-tests (Depends-on): Add float.
39855
39856         * tests/test-vasprintf-posix.c (zerol): Remove variable.
39857         (minus_zerol): New variable.
39858         (test_function): Use minus_zerol instead of -zerol.
39859         * modules/vasprintf-posix-tests (Depends-on): Add float.
39860
39861 2008-10-07  Simon Josefsson  <simon@josefsson.org>
39862
39863         * MODULES.html.sh (Support for building documentation): Mention
39864         pmccabe2html.  Sort entries.
39865
39866         Add pmccabe2html module, from gnupdf.
39867         * build-aux/pmccabe.css: New file.
39868         * build-aux/pmccabe2html: New file.
39869         * m4/pmccabe2html.m4: New file.
39870         * modules/pmccabe2html: New file.
39871
39872 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
39873
39874         flock: new module
39875         * MODULES.html.sh: Add to list of modules.
39876         * lib/flock.c: flock implementation for Windows and Unix systems
39877         which have fcntl.
39878         * doc/glibc-functions/flock.texi: Update documentation.
39879         * lib/sys_file.in.h: <sys/file.h> header file.
39880         * m4/flock.m4: M4 macros.
39881         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
39882         * modules/flock: flock module.
39883         * modules/flock-tests: flock tests module.
39884         * modules/sys_file: sys/file.h module.
39885         * tests/test-flock.c: test suite for flock.
39886
39887 2008-10-06  Jim Meyering  <meyering@redhat.com>
39888
39889         bootstrap: check for LT_INIT more portably still ;-)
39890         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
39891         Spotted by Bruno Haible.
39892
39893 2008-10-06  Eric Blake  <ebb9@byu.net>
39894
39895         test-signbit: avoid tripping Irix cc bug on -0.0L
39896         * tests/test-signbit.c (minus_zerol): Delete, and replace with
39897         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
39898         entire testsuite consistent and avoids an Irix 6.2 bug.
39899
39900 2008-10-05  Bruno Haible  <bruno@clisp.org>
39901             Jim Meyering  <jim@meyering.net>
39902
39903         Add an option for ignoring EPIPE during close_stdout.
39904         * lib/closeout.h: Include <stdbool.h>.
39905         (close_stdout_set_ignore_EPIPE): New declaration.
39906         * lib/closeout.c: Include <stdbool.h>.
39907         (ignore_EPIPE): New variable.
39908         (close_stdout_set_ignore_EPIPE): New function.
39909         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
39910         * lib/close-stream.c (close_stream): Mention the possible EPIPE
39911         failure.
39912         * modules/closeout (Depends-on): Add stdbool.
39913
39914 2008-10-05  Bruno Haible  <bruno@clisp.org>
39915
39916         * modules/accept: New file.
39917         * modules/bind: New file.
39918         * modules/connect: New file.
39919         * modules/getpeername: New file.
39920         * modules/getsockname: New file.
39921         * modules/getsockopt: New file.
39922         * modules/listen: New file.
39923         * modules/recv: New file.
39924         * modules/recvfrom: New file.
39925         * modules/send: New file.
39926         * modules/sendto: New file.
39927         * modules/setsockopt: New file.
39928         * modules/socket: New file.
39929         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
39930         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
39931         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
39932         the particular module is requested. Add a link warning when the
39933         particular module is not requested.
39934         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
39935         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
39936         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
39937         the particular module is requested.
39938         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
39939         gl_SYS_SOCKET_H_DEFAULTS): New macros.
39940         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
39941         * modules/sys_socket (Depends-on): Add link-warning.
39942         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
39943         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
39944         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
39945         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
39946         GL_LINK_WARNING.
39947         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
39948         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
39949         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
39950         * doc/posix-functions/getpeername.texi: Mention the new module
39951         'getpeername'.
39952         * doc/posix-functions/getsockname.texi: Mention the new module
39953         'getsockname'.
39954         * doc/posix-functions/getsockopt.texi: Mention the new module
39955         'getsockopt'.
39956         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
39957         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
39958         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
39959         * doc/posix-functions/send.texi: Mention the new module 'send'.
39960         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
39961         * doc/posix-functions/setsockopt.texi: Mention the new module
39962         'setsockopt'.
39963         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
39964         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
39965         listen, connect, accept.
39966         * modules/select-tests (Depends-on): Likewise.
39967
39968 2008-10-05  Bruno Haible  <bruno@clisp.org>
39969
39970         * lib/winsock.c (strerror): Remove unused #undef.
39971         (rpl_close): Remove unused local variable.
39972
39973         * modules/sys_socket (Depends-on); Add errno.
39974
39975 2008-10-05  Bruno Haible  <bruno@clisp.org>
39976
39977         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
39978         (select): Add a link warning when the 'select' module is not used.
39979         * modules/sys_select (Depends-on): Add link-warning.
39980         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
39981         Suggested by Paolo Bonzini.
39982
39983 2008-10-05  Jim Meyering  <meyering@redhat.com>
39984
39985         bootstrap: check for LT_INIT more portably
39986         * build-aux/bootstrap: Avoid using grep -E, since it's not
39987         portable enough.  Suggestion from Bruno Haible.
39988
39989 2008-10-05  Bruno Haible  <bruno@clisp.org>
39990
39991         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
39992         as being fixed by gnulib.
39993
39994 2008-10-05  Bruno Haible  <bruno@clisp.org>
39995
39996         * modules/select-tests: New file, mostly copied from
39997         modules/sys_select-tests.
39998         * tests/test-select.c: New file, mostly copied from
39999         tests/test-sys_select.c.
40000         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40001         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40002         (Makefile.am): Remove test_sys_select_LDADD.
40003
40004         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40005         to an undefined symbol, for an error message.
40006         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40007         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40008         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40009         winsock-select.c here.
40010         * modules/sys_select (Files): Remove lib/winsock-select.c.
40011         (Depends-on): Remove alloca.
40012         (Makefile.am): Substitute GNULIB_SELECT.
40013         * modules/select: New file.
40014         * doc/posix-functions/select.texi: Update.
40015
40016 2008-10-05  Bruno Haible  <bruno@clisp.org>
40017
40018         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40019         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40020         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40021         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40022         getdtablesize.
40023         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40024         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40025
40026 2008-10-05  Bruno Haible  <bruno@clisp.org>
40027
40028         * modules/getdtablesize-tests: New file.
40029         * tests/test-getdtablesize.c: New file.
40030
40031         New module 'getdtablesize'.
40032         * lib/unistd.in.h (getdtablesize): New declaration.
40033         * lib/getdtablesize.c: New file.
40034         * m4/getdtablesize.m4: New file.
40035         * modules/getdtablesize: New file.
40036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40037         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40038         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40039         HAVE_GETDTABLESIZE.
40040         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40041
40042 2008-10-05  Bruno Haible  <bruno@clisp.org>
40043
40044         * modules/sched (Makefile.am): Fix typo.
40045         Reported by Simon Josefsson.
40046
40047 2008-10-05  Jim Meyering  <meyering@redhat.com>
40048
40049         bootstrap: check for LT_INIT, too
40050         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40051         are deprecated.  Suggestion from Ralf Wildenhues.
40052
40053 2008-10-05  Bruno Haible  <bruno@clisp.org>
40054
40055         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40056         overriding them by ours.
40057         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40058
40059 2008-10-05  Jim Meyering  <meyering@redhat.com>
40060
40061         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40062         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40063         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40064
40065 2008-10-04  Bruno Haible  <bruno@clisp.org>
40066
40067         * modules/dup2 (License): Change to LGPLv2+.
40068         * modules/sleep (License): Likewise.
40069         * modules/perror (License): Likewise.
40070         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40071         Blake.
40072         * modules/signal (License): Likewise.
40073         * modules/sigprocmask (License): Likewise.
40074         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40075         Meyering.
40076
40077 2008-10-04  Bruno Haible  <bruno@clisp.org>
40078
40079         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40080         Reported by Rainer Tammer <tammer@tammer.net>.
40081
40082 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40083             Bruno Haible  <bruno@clisp.org>
40084
40085         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40086         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40087         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40088
40089 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40090
40091         filevercmp: new module
40092         * lib/filevercmp.h: New function filevercmp comparing version strings.
40093         * lib/filevercmp.c: Implementation of filevercmp function.
40094         * modules/filevercmp: Module metadata.
40095         * tests/test-filevercmp.c: Unit test for new module.
40096         * modules/filevercmp-tests: Unit test metadata.
40097         * MODULES.html.sh: Add filevercmp module.
40098
40099 2008-10-03  Bruno Haible  <bruno@clisp.org>
40100
40101         * lib/c-ctype.h: Add comment.
40102         Reported by Jim Meyering.
40103
40104 2008-10-02  Bruno Haible  <bruno@clisp.org>
40105
40106         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40107
40108 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40109
40110         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40111         name of bootstrap.conf accordingly.
40112
40113 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40114
40115         * build-aux/bootstrap: Install git-merge-changelog configuration
40116         items into .gitconfig if needed.
40117
40118 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40119
40120         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40121         git repository, and initialize/update it accordingly.
40122
40123 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40124
40125         * modules/fsync-tests: New file.
40126         * tests/test-fsync.c: New file.
40127
40128         New module 'fsync'.
40129         * lib/fsync.c: New file.
40130         * m4/fsync.m4: New file.
40131         * modules/fsync: New file.
40132         * lib/unistd.in.h (fsync): New declaration.
40133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40134         GNULIB_FSYNC and HAVE_FSYNC.
40135         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40136         * MODULES.html.sh (posix_functions): Add fsync.
40137         * doc/posix-functions/fsync.texi: Mention the new module.
40138
40139 2008-10-02  Jim Meyering  <meyering@redhat.com>
40140
40141         fts.c: sync with similar code from coreutils' remove.c
40142         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40143         Guard also with "#if defined __linux__", since for now at least,
40144         this code is Linux-kernel-specific.
40145
40146 2008-10-02  Jim Meyering  <meyering@redhat.com>
40147
40148         fts: bug fixes
40149         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40150         Include <sys/vfs.h>, not <sys/statfs.h>.
40151
40152         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40153         Include <sys/vfs.h>, not <sys/statfs.h>.
40154
40155 2008-10-01  Bruno Haible  <bruno@clisp.org>
40156
40157         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40158         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40159         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40160         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40161         * doc/posix-functions/posix_spawnp.texi: Likewise.
40162         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40163         whether posix_spawn actually works.
40164         * m4/pipe.m4 (gl_PIPE): Likewise.
40165         * modules/execute (Files): Add m4/posix_spawn.m4.
40166         * modules/pipe (Files): Add m4/posix_spawn.m4.
40167         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40168
40169 2008-10-01  Jim Meyering  <meyering@redhat.com>
40170
40171         remove trailing spaces
40172         * NEWS: Likewise.
40173         * lib/poll.c (poll): Likewise.
40174         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40175         * lib/winsock.c (rpl_close): Likewise.
40176         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40177         * modules/yield: Likewise.
40178         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40179         * tests/test-sys_select.c (connect_to_socket): Likewise.
40180
40181         fts.c: adjust a new interface to be more generally useful
40182         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40183         (fts_build): Adjust caller.
40184
40185 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40186
40187         * modules/cond-tests: New file.
40188         * tests/test-cond.c: New file.
40189
40190 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40191             Bruno Haible  <bruno@clisp.org>
40192
40193         * modules/cond (Dependencies): Add errno, time.
40194         * lib/glthread/cond.h: Include <time.h>.
40195         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40196         across platforms.
40197
40198 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40199             Bruno Haible  <bruno@clisp.org>
40200
40201         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40202
40203 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40204             Bruno Haible  <bruno@clisp.org>
40205
40206         * modules/tls-tests (Depends-on): Add thread, yield.
40207         (configure.ac): Remove all checks.
40208         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40209         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40210         gl_thread_self): Remove definitions. Include glthread/thread.h and
40211         glthread/yield.h instead.
40212         (test_tls): Pass an additional NULL argument to gl_thread_join.
40213
40214 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40215             Bruno Haible  <bruno@clisp.org>
40216
40217         * modules/lock-tests (Depends-on): Add thread, yield.
40218         (configure.ac): Remove all checks.
40219         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40220         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40221         gl_thread_self): Remove definitions. Include glthread/thread.h and
40222         glthread/yield.h instead.
40223         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40224         additional NULL argument to gl_thread_join.
40225
40226 2008-09-30  Bruno Haible  <bruno@clisp.org>
40227
40228         Fix the Win32 implementation of the 'thread' module.
40229         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40230         pointer type.
40231         (gl_thread_self): Invoke gl_thread_self_func.
40232         (gl_thread_self_func): New declaration.
40233         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40234         (do_init_self_key, init_self_key): New functions.
40235         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40236         Remove some fields.
40237         (running_threads, running_lock): Remove variables.
40238         (get_current_thread_handle): New function.
40239         (gl_thread_self_func, wrapper_func, glthread_create_func,
40240         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40241         simplified.
40242
40243 2008-09-30  Bruno Haible  <bruno@clisp.org>
40244
40245         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40246         files.
40247
40248 2008-09-30  Jim Meyering  <meyering@redhat.com>
40249
40250         fts.m4: correct the test for statfs.f_type
40251         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40252         when checking for statfs.f_type.
40253
40254 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40255
40256         tests: avoid some compiler warnings
40257         * tests/test-memchr.c (main): Pass NULL indirectly.
40258         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40259
40260 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
40261
40262         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40263         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40264         exactly specified dayshifts.
40265         (dayshift): New rule.
40266         (rel): Add dayshift.
40267         (relative_time_table) [tomorrow, yesterday, today, now]:
40268         Use tDAY_SHIFT in place of tDAY_UNIT.
40269         * tests/test-getdate.c: Add tests for now-disallowed countable
40270         dayshifts, e.g., "4 yesterday ago".
40271
40272 2008-09-29  Bruno Haible  <bruno@clisp.org>
40273
40274         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40275         * tests/test-posix_spawn1.in.sh: Renamed from
40276         tests/test-posix_spawn.in.sh.
40277         * tests/test-posix_spawn2.c: New file.
40278         * tests/test-posix_spawn2.in.sh: New file.
40279         * modules/posix_spawnp-tests (Files): Update.
40280         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40281
40282 2008-09-29  Bruno Haible  <bruno@clisp.org>
40283
40284         Propagate effects of putenv/setenv/unsetenv to child processes.
40285         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40286         * lib/pipe.c (create_pipe): Likewise.
40287
40288 2008-09-29  Bruno Haible  <bruno@clisp.org>
40289
40290         Enable use of shell scripts as executables in mingw.
40291         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40292         run the program as a shell script.
40293         * lib/pipe.c (create_pipe): Likewise.
40294         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40295         resulting array.
40296
40297 2008-09-29  Eric Blake  <ebb9@byu.net>
40298
40299         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40300
40301 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40302
40303         * doc/posix-functions/accept.texi: Update mingw problems.
40304         * doc/posix-functions/bind.texi: Update mingw problems.
40305         * doc/posix-functions/close.texi: Update mingw problems.
40306         * doc/posix-functions/connect.texi: Update mingw problems.
40307         * doc/posix-functions/getpeername.texi: Update mingw problems.
40308         * doc/posix-functions/getsockname.texi: Update mingw problems.
40309         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40310         * doc/posix-functions/ioctl.texi: Update mingw problems.
40311         * doc/posix-functions/listen.texi: Update mingw problems.
40312         * doc/posix-functions/recv.texi: Update mingw problems.
40313         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40314         * doc/posix-functions/select.texi: Update mingw problems.
40315         * doc/posix-functions/send.texi: Update mingw problems.
40316         * doc/posix-functions/sendto.texi: Update mingw problems.
40317         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40318         * doc/posix-functions/socket.texi: Update mingw problems.
40319
40320 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40321             Bruno Haible  <bruno@clisp.org>
40322
40323         * lib/sys_select.in.h: Include sys/time.h.
40324         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40325         * modules/sys_select: Depend on sys_time.
40326         * tests/test-sys_select.c: Test that sys/select.h defines struct
40327         timeval fully.
40328
40329 2008-09-29  Bruno Haible  <bruno@clisp.org>
40330
40331         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40332         * lib/sys_select.in.h: Likewise.
40333
40334 2008-09-29  Bruno Haible  <bruno@clisp.org>
40335
40336         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40337
40338 2008-09-29  Bruno Haible  <bruno@clisp.org>
40339
40340         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40341         Set LIBSOCKET instead of augmenting LIBS.
40342         * modules/sockets (Link): New section.
40343         * modules/sockets-tests (test_sockets_LDADD): New variable.
40344         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40345         * modules/poll-tests (test_poll_LDADD): New variable.
40346         * NEWS: Document the change.
40347
40348 2008-09-29  Bruno Haible  <bruno@clisp.org>
40349
40350         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40351         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40352         ARPA_INET_H directly.
40353         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40354
40355 2008-09-28  Bruno Haible  <bruno@clisp.org>
40356
40357         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40358         from gl_HEADER_SYS_SOCKET.
40359         (gl_HEADER_SYS_SOCKET): Invoke it.
40360         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40361
40362 2008-09-28  Bruno Haible  <bruno@clisp.org>
40363
40364         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40365         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40366         Needed on OSF/1 4.0.
40367
40368 2008-09-28  Bruno Haible  <bruno@clisp.org>
40369
40370         Override open more carefully.
40371         * lib/open.c (orig_open): New function.
40372         (rpl_open): Use orig_open instead of open.
40373         * lib/fcntl.in.h: Add special invocation convention.
40374         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40375         (gl_FUNC_OPEN): Invoke it.
40376
40377         Override freopen more carefully.
40378         * lib/freopen.c (orig_freopen): New function.
40379         (rpl_freopen): Use orig_freopen instead of freopen.
40380         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40381         (gl_FUNC_FREOPEN): Invoke it.
40382
40383         Override fopen more carefully.
40384         * lib/fopen.c (orig_fopen): New function.
40385         (rpl_fopen): Use orig_fopen instead of fopen.
40386         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40387         (gl_FUNC_FOPEN): Invoke it.
40388         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40389
40390 2008-09-28  Bruno Haible  <bruno@clisp.org>
40391
40392         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40393         SIGPIPE.
40394
40395 2008-09-28  Bruno Haible  <bruno@clisp.org>
40396
40397         * tests/test-sigaction.c (handler, main): Disable the check whether
40398         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40399         glibc systems with LinuxThreads.
40400
40401 2008-09-28  Bruno Haible  <bruno@clisp.org>
40402
40403         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40404
40405         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40406         with AIX xlc.
40407         * lib/fcntl.in.h (open): Likewise.
40408         Reported by Rainer Tammer <tammer@tammer.net>.
40409
40410 2008-09-28  Bruno Haible  <bruno@clisp.org>
40411
40412         * modules/posix_spawnp-tests: New file.
40413         * tests/test-posix_spawn.c: New file.
40414         * tests/test-posix_spawn.in.sh: New file.
40415
40416         New module 'posix_spawnp'.
40417         * modules/posix_spawnp: New file.
40418         * lib/spawnp.c: New file, from GNU libc with modifications.
40419         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40420
40421         New module 'posix_spawn'.
40422         * modules/posix_spawn: New file.
40423         * lib/spawn.c: New file, from GNU libc with modifications.
40424         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40425
40426         New module 'posix_spawnattr_destroy'.
40427         * modules/posix_spawnattr_destroy: New file.
40428         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40429         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40430         module.
40431
40432         New module 'posix_spawnattr_setsigmask'.
40433         * modules/posix_spawnattr_setsigmask: New file.
40434         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40435         modifications.
40436         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40437         new module.
40438
40439         New module 'posix_spawnattr_getsigmask'.
40440         * modules/posix_spawnattr_getsigmask: New file.
40441         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40442         modifications.
40443         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40444         new module.
40445
40446         New module 'posix_spawnattr_setsigdefault'.
40447         * modules/posix_spawnattr_setsigdefault: New file.
40448         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40449         modifications.
40450         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40451         new module.
40452
40453         New module 'posix_spawnattr_getsigdefault'.
40454         * modules/posix_spawnattr_getsigdefault: New file.
40455         * lib/spawnattr_getdefault.c: New file, from GNU libc with
40456         modifications.
40457         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
40458         new module.
40459
40460         New module 'posix_spawnattr_setschedpolicy'.
40461         * modules/posix_spawnattr_setschedpolicy: New file.
40462         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
40463         modifications.
40464         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
40465         new module.
40466
40467         New module 'posix_spawnattr_getschedpolicy'.
40468         * modules/posix_spawnattr_getschedpolicy: New file.
40469         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
40470         modifications.
40471         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40472         new module.
40473
40474         New module 'posix_spawnattr_setschedparam'.
40475         * modules/posix_spawnattr_setschedparam: New file.
40476         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40477         modifications.
40478         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40479         new module.
40480
40481         New module 'posix_spawnattr_getschedparam'.
40482         * modules/posix_spawnattr_getschedparam: New file.
40483         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40484         modifications.
40485         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40486         new module.
40487
40488         New module 'posix_spawnattr_setpgroup'.
40489         * modules/posix_spawnattr_setpgroup: New file.
40490         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40491         modifications.
40492         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40493         module.
40494
40495         New module 'posix_spawnattr_getpgroup'.
40496         * modules/posix_spawnattr_getpgroup: New file.
40497         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40498         modifications.
40499         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40500         module.
40501
40502         New module 'posix_spawnattr_setflags'.
40503         * modules/posix_spawnattr_setflags: New file.
40504         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40505         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40506         module.
40507
40508         New module 'posix_spawnattr_getflags'.
40509         * modules/posix_spawnattr_getflags: New file.
40510         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40511         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40512         module.
40513
40514         New module 'posix_spawnattr_init'.
40515         * modules/posix_spawnattr_init: New file.
40516         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40517         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40518         module.
40519
40520         New module 'posix_spawn_file_actions_destroy'.
40521         * modules/posix_spawn_file_actions_destroy: New file.
40522         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40523         modifications.
40524         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40525         the new module.
40526
40527         New module 'posix_spawn_file_actions_addopen'.
40528         * modules/posix_spawn_file_actions_addopen: New file.
40529         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40530         modifications.
40531         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40532         the new module.
40533
40534         New module 'posix_spawn_file_actions_adddup2'.
40535         * modules/posix_spawn_file_actions_adddup2: New file.
40536         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
40537         modifications.
40538         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40539         the new module.
40540
40541         New module 'posix_spawn_file_actions_addclose'.
40542         * modules/posix_spawn_file_actions_addclose: New file.
40543         * lib/spawn_faction_addclose.c: New file, from GNU libc with
40544         modifications.
40545         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40546         the new module.
40547
40548         New module 'posix_spawn_file_actions_init'.
40549         * modules/posix_spawn_file_actions_init: New file.
40550         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
40551         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
40552         new module.
40553
40554         New module 'posix_spawn-internal'.
40555         * modules/posix_spawn-internal: New file.
40556         * lib/spawn_int.h: New file, from GNU libc with modifications.
40557         * lib/spawni.c: New file, from GNU libc with modifications.
40558         * m4/posix_spawn.m4: New file.
40559
40560         New module 'spawn'.
40561         * modules/spawn: New file.
40562         * lib/spawn.in.h: New file, from GNU libc with modifications.
40563         * m4/spawn_h.m4: New file.
40564         * doc/posix-headers/spawn.texi: Mention the new module.
40565
40566 2008-09-28  Bruno Haible  <bruno@clisp.org>
40567
40568         * modules/sched-tests: New file.
40569         * tests/test-sched.c: New file.
40570
40571         New module 'sched'.
40572         * modules/sched: New file.
40573         * lib/sched.in.h: New file.
40574         * m4/sched_h.m4: New file.
40575         * doc/posix-headers/sched.texi: Mention the new module.
40576
40577 2008-09-27  Eric Blake  <ebb9@byu.net>
40578
40579         Fix previous patch, and tweak references to $0.
40580         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
40581         (func_version, func_gnulib_dir): Don't call this program
40582         gnulib-tool.
40583         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
40584         with using $0 in function.
40585         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
40586         (func_fatal_error): Reuse the name the user invoked us with.
40587
40588 2008-09-27  Bruno Haible  <bruno@clisp.org>
40589
40590         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
40591         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
40592         (gl_ICONV_H): Not here.
40593         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
40594         instead of assigning ICONV_H directly.
40595
40596         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
40597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
40598         WCHAR_H directly.
40599
40600 2008-09-27  Bruno Haible  <bruno@clisp.org>
40601
40602         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
40603         * modules/arpa_inet (Depends-on): Add link-warning.
40604         (Makefile.am): Insert the definition of GL_LINK-WARNING.
40605         * modules/unistd (Makefile.am): Likewise.
40606
40607 2008-09-26  Bruno Haible  <bruno@clisp.org>
40608
40609         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
40610         variables.
40611         (func_version): Essentially copied from gnulib-tool.
40612         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
40613         func_readlink): Copied from gnulib-tool.
40614
40615 2008-09-26  Bruno Haible  <bruno@clisp.org>
40616
40617         * gnulib-tool (func_version): Change directory to $gnulib_dir before
40618         invoking git-version-gen.
40619
40620 2008-09-26  Bruno Haible  <bruno@clisp.org>
40621
40622         * posix-modules: Update to directory names changed on 2008-01-19.
40623         Remove commas in output before splitting into words. No more need to
40624         avoid 'ftruncate' since 2007-02-19.
40625
40626 2008-09-26  Bruno Haible  <bruno@clisp.org>
40627
40628         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
40629
40630 2008-09-26  Bruno Haible  <bruno@clisp.org>
40631
40632         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
40633         * modules/fwriteerror (Depends-on): Add errno.
40634
40635 2008-09-26  Bruno Haible  <bruno@clisp.org>
40636
40637         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
40638         * tests/test-vc-list-files-cvs.sh: Likewise.
40639
40640 2008-09-26  Bruno Haible  <bruno@clisp.org>
40641
40642         * doc/posix-headers/sys_resource.texi: Reorder items.
40643
40644 2008-09-26  Jim Meyering  <meyering@redhat.com>
40645
40646         fts: tweak inode comparison function
40647         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
40648         inode numbers, as documented.
40649
40650         fts: sort dirent entries on inode number before traversing
40651         This avoids a quadratic, seek-related performance penalty when
40652         operating on a directory containing many entries (measurable at 10k;
40653         3.5 hours at 2 million entries with a cold cache) on certain types
40654         of file systems, including ext3 and ext4, but not tmpfs.
40655         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
40656         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
40657         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
40658         (fs_handles_readdir_ordered_dirents_efficiently): New function.
40659         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
40660         (fts_build): Set the stat.st_ino member from D_INO.
40661         If it is likely to be useful, sort dirent entries on inode number.
40662
40663         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
40664         and the struct statfs.f_type member.
40665         * modules/fts (Depends-on): Add d-ino.
40666
40667 2008-09-26  Bruno Haible  <bruno@clisp.org>
40668
40669         * modules/sigpipe-die (Depends-on): Add sigpipe.
40670
40671         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
40672         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
40673         and GNULIB_STDIO_H_SIGPIPE are set.
40674         * lib/stdio-write.c: New file.
40675         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
40676         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40677         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40678         REPLACE_STDIO_WRITE_FUNCS.
40679         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
40680         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40681         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40682         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40683         * modules/stdio (Files): Add lib/stdio-write.c.
40684         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
40685         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40686         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40687         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40688         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
40689         REPLACE_FPRINTF_POSIX.
40690         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
40691         REPLACE_PRINTF_POSIX.
40692         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
40693         REPLACE_VFPRINTF_POSIX.
40694         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
40695         REPLACE_VPRINTF_POSIX.
40696         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
40697         SIGPIPE issue.
40698         * doc/posix-functions/fputc.texi: Likewise.
40699         * doc/posix-functions/fputs.texi: Likewise.
40700         * doc/posix-functions/fwrite.texi: Likewise.
40701         * doc/posix-functions/printf.texi: Likewise.
40702         * doc/posix-functions/putc.texi: Likewise.
40703         * doc/posix-functions/putchar.texi: Likewise.
40704         * doc/posix-functions/puts.texi: Likewise.
40705         * doc/posix-functions/vfprintf.texi: Likewise.
40706         * doc/posix-functions/vprintf.texi: Likewise.
40707
40708         * modules/safe-write (Depends-on): Add write.
40709
40710         * modules/sigpipe-tests: New file.
40711         * tests/test-sigpipe.c: New file.
40712         * tests/test-sigpipe.sh: New file.
40713
40714         * modules/write: New file.
40715         * lib/unistd.in.h: Include <sys/types.h>.
40716         (write): New declaration.
40717         * lib/write.c: New file.
40718         * m4/write.m4: New file.
40719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40720         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
40721         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
40722         GNULIB_WRITE, REPLACE_WRITE.
40723         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
40724         and the SIGPIPE issue.
40725
40726         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
40727         (raise): New declaration.
40728         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
40729         (ext_signal): New function.
40730         (rpl_raise): New function.
40731         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
40732         GNULIB_SIGNAL_H_SIGPIPE.
40733         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
40734         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
40735
40736         * modules/sigpipe: New file.
40737         * m4/sigpipe.m4: New file.
40738
40739 2008-09-25  Derek Price  <derek@ximbiot.com>
40740             Bruno Haible  <bruno@clisp.org>
40741
40742         * gnulib-tool (func_import): Report all license incompatibilities, not
40743         just the first one.
40744
40745 2008-09-25  Bruno Haible  <bruno@clisp.org>
40746
40747         * gnulib-tool (func_import): When computing the edits, consider not
40748         only the Makefile.ams that exist but also those that will be generated.
40749
40750 2008-09-25  Simon Josefsson  <simon@josefsson.org>
40751
40752         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
40753         fixes gnulib-tool --test warning about duplicate dependency.
40754
40755 2008-09-25  Bruno Haible  <bruno@clisp.org>
40756
40757         * gnulib-tool: Don't ask the user to perform edits in the generated
40758         Makefile.ams.
40759         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
40760         apply to the Makefile.am being generated.
40761         (func_emit_tests_Makefile_am): Execute edits that apply to the
40762         Makefile.am being generated.
40763         (func_import): Setup list of Makefile.am edits before emitting the
40764         Makefile.ams, not at the end.
40765         (func_create_testdir): Update.
40766         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40767
40768 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40769
40770         * gnulib-tool (func_import): Store the --tests-base option in the
40771         comment in gnulib-cache.m4.
40772
40773 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
40774
40775         * NEWS: Document increased portability that sys_select now provides.
40776
40777         * lib/sys_select.in.h: Install select wrapper.
40778         * lib/sys_socket.in.h: Use more descriptive name when there is no
40779         select wrapper.
40780         * lib/winsock-select.c: New.
40781         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
40782         Require gl_HEADER_SYS_SOCKET.
40783         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
40784         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
40785         * tests/test-sys_select.c: Add functional tests.
40786
40787 2008-09-24  Eric Blake  <ebb9@byu.net>
40788
40789         open, fopen: close fd leak in last patch
40790         * lib/open.c (rpl_open): Close fd before returning error.
40791         * lib/fopen.c (rpl_fopen): Close fd before returning error.
40792         * doc/posix-functions/open.texi (open): Document that Irix also
40793         has the bug.
40794         * doc/posix-functions/fopen.texi (fopen): Likewise.
40795         Reported by Paolo Bonzini.
40796
40797 2008-09-24  Bruno Haible  <bruno@clisp.org>
40798
40799         Ensure that a filename ending in a slash cannot be used to access a
40800         non-directory.
40801         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
40802         to check whether it's really a directory.
40803         * lib/fopen.c: Include fcntl.h, unistd.h.
40804         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
40805         and fdopen().
40806         * modules/fopen (Depends-on): Add unistd.
40807         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
40808         * tests/test-fopen.c (main): Likewise.
40809         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
40810         * doc/posix-functions/fopen.texi: Likewise.
40811         Reported by Eric Blake.
40812
40813 2008-09-23  Eric Blake  <ebb9@byu.net>
40814
40815         c-stack: avoid compiler optimizations when provoking overflow
40816         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
40817         recursion harder to optimize, to ensure a stack overflow occurs.
40818         * tests/test-c-stack.c (recurse): Likewise.
40819         Borrowed from libsigsegv.
40820
40821         c-stack: work around Irix sigaltstack bug
40822         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
40823         whether sigaltstack uses wrong end of stack_t (copied in part from
40824         libsigsegv).
40825         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
40826         Irix bug, without requiring an over-allocation.
40827         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
40828         bug.
40829
40830         fopen: document mingw bug on directories
40831         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
40832         not allowing a stream visiting a directory, even though reading
40833         from such a stream is not portable.
40834
40835 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40836
40837         * lib/poll.c: Rewrite.
40838         * modules/poll: Depend on alloca.
40839
40840 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40841
40842         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
40843         instead define prototypes for a full set of wrappers.  Ensure
40844         that Cygwin does not use the compatibility code, which is only
40845         for MinGW.
40846         * lib/winsock.c: New.
40847         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
40848         * modules/sys_socket: Add lib/winsock.c.
40849
40850         * modules/poll-tests: Add errno and perror.
40851         * tests/test-poll.c: Use ioctl, not ioctlsocket.
40852
40853 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40854
40855         * tests/test-poll.c: Downgrade minimum needed Winsock version.
40856
40857 2008-09-23  Bruno Haible  <bruno@clisp.org>
40858
40859         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
40860         * doc/glibc-functions/*: Likewise.
40861
40862 2008-09-23  Simon Josefsson  <simon@josefsson.org>
40863
40864         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
40865         success.
40866
40867 2008-09-22  Eric Blake  <ebb9@byu.net>
40868             Bruno Haible  <bruno@clisp.org>
40869
40870         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
40871         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
40872         supply %A but mishandle pseudo-NaN.
40873         Reported by Simon Josefsson.
40874
40875 2008-09-21  Bruno Haible  <bruno@clisp.org>
40876
40877         * tests/test-lock.c (main): Tweak skip message.
40878         * tests/test-tls.c (main): Likewise.
40879
40880 2008-09-21  Bruno Haible  <bruno@clisp.org>
40881
40882         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
40883         whether 'struct sigaction' has sa_sigaction here...
40884         (gl_PREREQ_SIG_HANDLER_H): ... not here.
40885         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
40886
40887 2008-09-21  Bruno Haible  <bruno@clisp.org>
40888
40889         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
40890         section.
40891         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
40892         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
40893         the new section.
40894         (Support for obsolete systems lacking POSIX:2001): New section.
40895         (String handling <string.h>): Move strdup to the new section.
40896         Suggested by Simon Josefsson and Paolo Bonzini.
40897
40898 2008-09-21  Bruno Haible  <bruno@clisp.org>
40899
40900         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
40901         exponents in %e and %g results on 'long double'. Needed for mingw's
40902         improved *printf functions.
40903         * tests/test-vasprintf-posix.c (test_function): Likewise.
40904         * tests/test-snprintf-posix.h (test_function): Likewise.
40905         * tests/test-sprintf-posix.h (test_function): Likewise.
40906         Reported by Eric Blake.
40907
40908 2008-09-21  Bruno Haible  <bruno@clisp.org>
40909
40910         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
40911         * tests/test-sprintf-posix.h (test_function): Likewise.
40912
40913 2008-09-21  Bruno Haible  <bruno@clisp.org>
40914
40915         * modules/getpass (Depends-on): Add strdup-posix.
40916
40917         New module 'strdup-posix'.
40918         * modules/strdup-posix: New file.
40919         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
40920         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
40921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40922         REPLACE_STRDUP.
40923         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
40924         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
40925         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40926         strdup-posix.
40927
40928         * modules/strdup (Depends-on): Remove malloc-posix.
40929
40930 2008-09-20  Bruno Haible  <bruno@clisp.org>
40931
40932         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
40933         Wildenhues.
40934
40935 2008-09-20  Bruno Haible  <bruno@clisp.org>
40936
40937         Ensure that wint_t gets defined on IRIX 5.3.
40938         * lib/wchar.in.h (wint_t): Define if not defined by the system.
40939         * lib/wctype.in.h (wint_t): Likewise.
40940         (__wctype_wint_t): Remove type.
40941         (isw*): Use wint_t instead of __wctype_wint_t.
40942         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
40943         * modules/wchar (Files): Add m4/wint_t.m4.
40944         (Makefile.am): Substitute HAVE_WINT_T.
40945         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
40946         * tests/test-wctype.c: Check that wint_t is defined.
40947         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
40948         * doc/posix-headers/wctype.texi: Likewise.
40949         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40950
40951 2008-09-18  Bruno Haible  <bruno@clisp.org>
40952
40953         * gnulib-tool (func_exit): Update comment.
40954
40955 2008-09-18  Simon Josefsson  <simon@josefsson.org>
40956
40957         * modules/getaddrinfo (Depends-on): Remove strdup, this module
40958         assumes strdup exists and does not depend on strdup to return
40959         ENOMEM on out of memory conditions.
40960
40961 2008-09-18  Bruno Haible  <bruno@clisp.org>
40962
40963         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
40964         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
40965         digits for the exponent.
40966
40967 2008-09-18  Jim Meyering  <meyering@redhat.com>
40968             Bruno Haible  <bruno@clisp.org>
40969
40970         * lib/vasnprintf.c (decimal_point_char): Define also if
40971         NEED_PRINTF_INFINITE_LONG_DOUBLE.
40972
40973 2008-09-16  Bruno Haible  <bruno@clisp.org>
40974         and Eric Blake  <ebb9@byu.net>
40975
40976         vasnprintf: support Irix 5.3
40977         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
40978         that mishandle long double infinity.
40979         Reported by Tom G. Christensen.
40980
40981 2008-09-16  Bruno Haible  <bruno@clisp.org>
40982
40983         * doc/glibc-functions/scandir.texi: Mention the function is missing on
40984         Solaris 9.
40985         * doc/glibc-functions/alphasort.texi: Likewise.
40986         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
40987
40988 2008-09-16  Jim Meyering  <meyering@redhat.com>
40989
40990         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
40991         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
40992         a umask modification leak out of a subshell.  Otherwise, the
40993         opensolaris /bin/sh would be accepted and thus cause unwarranted
40994         failures in the coreutils test suite.
40995
40996 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
40997
40998         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
40999         to succeed.
41000
41001 2008-09-16  Jim Meyering  <meyering@redhat.com>
41002
41003         avoid spurious test failure when library is built without ACL support
41004         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41005         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41006         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41007         * tests/test-copy-acl.sh: Likewise.
41008
41009 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41010
41011         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41012         based on character occurrence counts.
41013
41014 2008-09-15  Eric Blake  <ebb9@byu.net>
41015
41016         tests: avoid some compiler warnings
41017         * tests/test-memchr.c (main): Pass NULL indirectly.
41018         * tests/test-closein.c (main): Avoid unused variable.
41019
41020 2008-09-15  Bruno Haible  <bruno@clisp.org>
41021
41022         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41023         are missing on OpenBSD 4.0 individually.
41024         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41025
41026 2008-09-15  Bruno Haible  <bruno@clisp.org>
41027
41028         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41029         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41030         * doc/posix-functions/perror.texi: Likewise.
41031         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41032         is missing.
41033         Reported by Eric Blake.
41034
41035         * lib/errno.in.h: Use replacement values >= 2000.
41036         Reported by Eric Blake.
41037
41038 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41039
41040         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41041         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41042         limit.
41043         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41044         compareseq was aborted.
41045
41046 2008-09-14  Bruno Haible  <bruno@clisp.org>
41047
41048         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41049         yvec_edit_count.
41050         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41051         (fstrcmp_bounded): Simplify result computation accordingly.
41052
41053 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41054
41055         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41056         (fstrcmp): Define in terms of fstrcmp_bounded.
41057         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41058         lower_bound argument.
41059         Return quickly if the result is certainly < lower_bound.
41060         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41061
41062 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41063
41064         * lib/diffseq.h (EARLY_ABORT): New macro.
41065         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41066         evaluates to true.
41067
41068 2008-09-14  Bruno Haible  <bruno@clisp.org>
41069
41070         * modules/perror-tests: New file.
41071         * tests/test-perror.sh: New file.
41072         * tests/test-perror.c: New file.
41073
41074         New module 'perror'.
41075         * lib/stdio.in.h (perror): New declaration.
41076         * lib/perror.c: New file.
41077         * m4/perror.m4: New file.
41078         * modules/perror: New file.
41079         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41080         * doc/posix-functions/perror.texi: Mention the perror module.
41081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41082         REPLACE_PERROR.
41083         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41084         REPLACE_PERROR.
41085
41086 2008-09-14  Bruno Haible  <bruno@clisp.org>
41087
41088         * modules/stdio (Makefile.am): Reorder to match the order in
41089         lib/stdio.in.h.
41090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41091
41092 2008-09-13  Bruno Haible  <bruno@clisp.org>
41093
41094         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41095
41096 2008-09-13  Bruno Haible  <bruno@clisp.org>
41097
41098         Extend strerror to cover the added errno values.
41099         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41100         (rpl_strerror): Provide error messages for the added errno values and
41101         for the WSA* values.
41102         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41103         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41104         strerror.
41105         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41106         * modules/strerror (Depends-on): Add errno.
41107         * doc/posix-functions/strerror.texi: Document the change.
41108         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41109         and EOVERFLOW.
41110
41111 2008-09-13  Bruno Haible  <bruno@clisp.org>
41112
41113         * modules/EOVERFLOW: Remove file.
41114         * m4/eoverflow.m4: Remove file.
41115         * modules/EOVERFLOW-tests: Remove file.
41116         * tests/test-EOVERFLOW.c: Remove file.
41117         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41118         * modules/ftell (Depends-on): Likewise.
41119         * modules/getdelim (Depends-on): Likewise.
41120         * modules/getugroups (Depends-on): Likewise.
41121         * modules/poll (Depends-on): Likewise.
41122         * modules/snprintf (Depends-on): Likewise.
41123         * modules/sprintf-posix (Depends-on): Likewise.
41124         * modules/vasnprintf (Depends-on): Likewise.
41125         * modules/vasprintf (Depends-on): Likewise.
41126         * modules/vfprintf-posix (Depends-on): Likewise.
41127         * modules/vsnprintf (Depends-on): Likewise.
41128         * modules/vsprintf-posix (Depends-on): Likewise.
41129         * modules/xvasprintf (Depends-on): Likewise.
41130         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41131         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41132         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41133         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41134         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41135         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41136         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41137         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41138         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41139         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41140         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41141         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41142         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41143         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41144         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41145         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41146         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41147         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41148         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41149         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41150         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41151         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41152         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41153         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41154         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41155         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41156         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41157         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41158         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41159         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41160         * MODULES.html.sh: Remove EOVERFLOW.
41161         * NEWS: Mention the change.
41162
41163 2008-09-13  Bruno Haible  <bruno@clisp.org>
41164
41165         * modules/errno-tests: New file.
41166         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41167
41168         * lib/errno.in.h: New file.
41169         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41170         * modules/errno: New file.
41171         * doc/posix-headers/errno.texi: Update documentation.
41172         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41173
41174 2008-09-13  Bruno Haible  <bruno@clisp.org>
41175
41176         * tests/test-poll.c: Use #if for native Windows, rather than testing
41177         __MSVCRT__.
41178
41179 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41180             Bruno Haible  <bruno@clisp.org>
41181
41182         * lib/glob.c: Don't include <pwd.h> on native Windows.
41183         (WINDOWS32): New macro.
41184         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41185
41186 2008-09-13  Bruno Haible  <bruno@clisp.org>
41187
41188         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41189         (ETIMEDOUT): Remove macro.
41190         (glthread_cond_timedwait_multithreaded): New declaration.
41191         (glthread_cond_timedwait): Use it.
41192         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41193         (glthread_cond_timedwait_multithreaded): New function.
41194
41195 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41196
41197         * modules/poll-tests: Do not check for io.h.
41198         * tests/test-poll.c: Check for __MSVCRT__ instead.
41199
41200 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41201
41202         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41203         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41204         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41205
41206 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41207
41208         * modules/poll-tests: New.
41209         * tests/test-poll.c: New.
41210
41211 2008-09-12  Eric Blake  <ebb9@byu.net>
41212
41213         frexp: test for NetBSD failure on -0.0
41214         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41215         not all, bugs from NetBSD 3.0 have been fixed.
41216         * doc/posix-functions/frexp.texi (frexp): Document bug.
41217         Reported by Thomas Klausner.
41218
41219         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41220         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41221         literal -0.0.
41222         Reported by Jonathan C. Patschke <jp@centtech.com>.
41223
41224 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41225
41226         * lib/glthread/cond.h: Use dummy implementation also if
41227         USE_WIN32_THREADS.
41228
41229 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41230
41231         * modules/fnmatch-posix (License): Change to LGPLv2+.
41232         * modules/fnmatch-gnu (License): Likewise.
41233
41234 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41235
41236         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41237
41238 2008-09-11  Jim Meyering  <meyering@redhat.com>
41239
41240         * users.txt: Add gtk-vnc.
41241
41242 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41243
41244         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41245         rotate amounts.
41246
41247         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41248         required for 16-bit and 8-bit rotates.
41249         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41250         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41251         UINT8_MAX instead of hard-coded constants.
41252         Suggested by Paul Eggert.
41253
41254 2008-09-07  Bruno Haible  <bruno@clisp.org>
41255
41256         * tests/test-striconveh.c (main): Check behaviour when converting from
41257         UTF-7.
41258
41259         Make striconveh work better with stateful encodings.
41260         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41261         that iconv does not increment the inptr when returning -1/EINVAL.
41262
41263 2008-09-07  Bruno Haible  <bruno@clisp.org>
41264
41265         * build-aux/config.rpath: Update according to libtool-2.2.6.
41266         * build-aux/config.libpath: Likewise.
41267
41268 2008-09-06  Bruno Haible  <bruno@clisp.org>
41269
41270         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41271         * lib/freadptr.c (freadptr): Likewise.
41272         * lib/freadseek.c (freadptrinc): Likewise.
41273         Reported by Simon Josefsson.
41274
41275 2008-09-06  Bruno Haible  <bruno@clisp.org>
41276
41277         * modules/freadptr (License): Change to LGPLv2+.
41278         * modules/freadseek (License): Likewise.
41279         Suggested by Eric Blake.
41280
41281         * modules/memchr2 (License): Change to LGPLv2+.
41282         Approved by Eric Blake.
41283
41284 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41285             Bruno Haible  <bruno@clisp.org>
41286
41287         Make gnulib-tool work with native 'sed' on AIX.
41288         * gnulib-tool (sed_noop): New variable.
41289         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41290         func_add_or_update, func_create_testdir): Use it to initialize sed
41291         script variables.
41292         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41293
41294 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41295             Bruno Haible  <bruno@clisp.org>
41296
41297         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41298         also works after #include directives.
41299
41300 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
41301
41302         getdate.y: reject an out-of-range timezone value
41303         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41304         the range [-24...+24].  When specified with only one or two digits,
41305         * tests/test-getdate.c: Tests for the fix.
41306         * doc/getdate.texi: Document this change.
41307
41308 2008-09-03  Bruno Haible  <bruno@clisp.org>
41309
41310         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41311
41312 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41313
41314         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41315         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41316         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41317         Blake <ebb9@byu.net>.
41318
41319         * tests/test-bitrotate.c: Add more test vectors.
41320
41321 2008-09-02  Eric Blake  <ebb9@byu.net>
41322
41323         vasnprintf-posix: handle large precision via %.*d
41324         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41325         when handling it ourselves.
41326         * tests/test-vasnprintf-posix.c (test_function): Add test.
41327         * tests/test-snprintf-posix.h (test_function): Likewise.
41328         * tests/test-sprintf-posix.h (test_function): Likewise.
41329         * tests/test-vasprintf-posix.c (test_function): Likewise.
41330         Reported by Alain Guibert.
41331
41332 2008-09-01  Eric Blake  <ebb9@byu.net>
41333
41334         c-stack: make configure-time check more robust
41335         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41336         successful sigaction call.
41337         Reported by Tom G. Christensen.
41338
41339 2008-09-01  Bruno Haible  <bruno@clisp.org>
41340
41341         New module 'findprog-lgpl'.
41342         * modules/findprog-lgpl: New file.
41343         * lib/findprog-lgpl.c: New file.
41344         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41345         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41346         to decide whether to use strdup or xstrdup, concatenated_filename or
41347         xconcatenated_filename.
41348
41349 2008-09-01  Bruno Haible  <bruno@clisp.org>
41350
41351         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41352         'xconcat-filename' (GPL).
41353         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41354         (License): Change to LGPLv2+.
41355         * modules/xconcat-filename: New file.
41356         * lib/concat-filename.h (concatenated_filename): Change specification.
41357         (xconcatenated_filename): New declaration.
41358         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41359         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41360         memory situations.
41361         * lib/xconcat-filename.c: New file.
41362         * NEWS: Mention the change.
41363         * lib/findprog.c: Include concat-filename.h, not filename.h.
41364         (find_in_path): Use xconcatenated_filename instead of
41365         concatenated_filename.
41366         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41367         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41368         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41369         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41370         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41371         instead of concatenated_filename.
41372         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41373         (execute_java_class): Use xconcatenated_filename instead of
41374         concatenated_filename.
41375         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41376         * modules/javacomp (Depends-on): Likewise.
41377         * modules/javaexec (Depends-on): Likewise.
41378
41379 2008-09-01  Bruno Haible  <bruno@clisp.org>
41380
41381         Split module 'filename' into 'filename' and 'concat-filename'.
41382         * modules/filename: Keep only lib/filename.h.
41383         (License): Change to LGPLv2+.
41384         * modules/concat-filename: New file, extracted from modules/filename.
41385         * lib/filename.h (concatenated_filename): Remove declaration.
41386         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41387         * lib/concat-filename.c: Include concat-filename.h.
41388         * NEWS: Mention the change.
41389
41390 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41391
41392         * lib/bitrotate.h (rotl8, rotr8): Add.
41393
41394         * modules/bitrotate (configure.ac): Need
41395         AC_REQUIRE([AC_C_INLINE]).
41396         (Description): Mention stdint.h.  Reported by Bruno Haible
41397         <bruno@clisp.org>.
41398
41399         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41400         Paolo Bonzini <bonzini@gnu.org>.
41401
41402 2008-08-31  Bruno Haible  <bruno@clisp.org>
41403
41404         Assume Solaris specific bi-arch conventions on Solaris systems.
41405         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41406         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41407         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41408         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41409         like acl_libdirstem.
41410         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41411         acl_libdirstem.
41412         * NEWS: Mention the change.
41413         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41414
41415 2008-08-31  Jim Meyering  <meyering@redhat.com>
41416
41417         * lib/strftime.h: Add comments describing the two added arguments.
41418
41419         remove duplicate #include directives
41420         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41421         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41422
41423 2008-08-31  Bruno Haible  <bruno@clisp.org>
41424
41425         New module 'sigpipe-die'.
41426         * modules/sigpipe-die: New file.
41427         * lib/sigpipe-die.h: New file.
41428         * lib/sigpipe-die.c: New file.
41429         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41430
41431 2008-08-31  Bruno Haible  <bruno@clisp.org>
41432
41433         Don't override previously installed signal handlers.
41434         * lib/fatal-signal.c (saved_sigactions): New variable.
41435         (uninstall_handlers): Reset the signal to the saved handler, not
41436         to SIG_DFL (except when ignored).
41437         (install_handlers): Save the previous handlers.
41438
41439 2008-08-30  Bruno Haible  <bruno@clisp.org>
41440
41441         * gnulib-tool (func_reset_sigpipe): New function.
41442         (func_get_automake_snippet, func_modules_transitive_closure,
41443         func_import): Invoke it before a join command that reads from stdin,
41444         to avoid "echo: write error: Broken pipe" error messages on stderr.
41445         Reported by Sam Steingold <sds@gnu.org>.
41446
41447 2008-08-30  Bruno Haible  <bruno@clisp.org>
41448
41449         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41450         Code copied from m4/open.m4.
41451         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41452         access and the filename ends in a slash. Code copied from lib/open.c.
41453         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
41454         * tests/test-fopen.c (main): Check against bug with trailing slash.
41455
41456 2008-08-29  Bruno Haible  <bruno@clisp.org>
41457
41458         Avoid some "gcc -pedantic" warnings.
41459         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
41460         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
41461         * lib/dirent.in.h: Likewise.
41462         * lib/fcntl.in.h: Likewise.
41463         * lib/float.in.h: Likewise.
41464         * lib/iconv.in.h: Likewise.
41465         * lib/inttypes.in.h: Likewise.
41466         * lib/locale.in.h: Likewise.
41467         * lib/math.in.h: Likewise.
41468         * lib/netinet_in.in.h: Likewise.
41469         * lib/search.in.h: Likewise.
41470         * lib/signal.in.h: Likewise.
41471         * lib/stdarg.in.h: Likewise.
41472         * lib/stdint.in.h: Likewise.
41473         * lib/stdio.in.h: Likewise.
41474         * lib/stdlib.in.h: Likewise.
41475         * lib/string.in.h: Likewise.
41476         * lib/strings.in.h: Likewise.
41477         * lib/sys_select.in.h: Likewise.
41478         * lib/sys_socket.in.h: Likewise.
41479         * lib/sys_stat.in.h: Likewise.
41480         * lib/sys_time.in.h: Likewise.
41481         * lib/sysexits.in.h: Likewise.
41482         * lib/time.in.h: Likewise.
41483         * lib/unistd.in.h: Likewise.
41484         * lib/wchar.in.h: Likewise.
41485         * lib/wctype.in.h: Likewise.
41486         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41487         * modules/fchdir (Makefile.am): Likewise.
41488         * modules/fcntl (Makefile.am): Likewise.
41489         * modules/float (Makefile.am): Likewise.
41490         * modules/iconv_open (Makefile.am): Likewise.
41491         * modules/inttypes (Makefile.am): Likewise.
41492         * modules/locale (Makefile.am): Likewise.
41493         * modules/math (Makefile.am): Likewise.
41494         * modules/netinet_in (Makefile.am): Likewise.
41495         * modules/search (Makefile.am): Likewise.
41496         * modules/signal (Makefile.am): Likewise.
41497         * modules/stdarg (Makefile.am): Likewise.
41498         * modules/stdint (Makefile.am): Likewise.
41499         * modules/stdio (Makefile.am): Likewise.
41500         * modules/stdlib (Makefile.am): Likewise.
41501         * modules/string (Makefile.am): Likewise.
41502         * modules/strings (Makefile.am): Likewise.
41503         * modules/sys_select (Makefile.am): Likewise.
41504         * modules/sys_socket (Makefile.am): Likewise.
41505         * modules/sys_stat (Makefile.am): Likewise.
41506         * modules/sys_time (Makefile.am): Likewise.
41507         * modules/sysexits (Makefile.am): Likewise.
41508         * modules/time (Makefile.am): Likewise.
41509         * modules/unistd (Makefile.am): Likewise.
41510         * modules/wchar (Makefile.am): Likewise.
41511         * modules/wctype (Makefile.am): Likewise.
41512         Reported by Reuben Thomas <rrt@sc3d.org>.
41513
41514 2008-08-29  Bruno Haible  <bruno@clisp.org>
41515
41516         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41517         any more.
41518
41519 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41520
41521         * MODULES.html.sh (Misc): Add bitrotate.
41522
41523         * modules/bitrotate: New file.
41524
41525         * lib/bitrotate.h: New file.
41526
41527         * modules/bitrotate-tests: New file.
41528
41529         * tests/test-bitrotate.c: New file.
41530
41531         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41532         on the bitrotate module.
41533
41534         * lib/arctwo.c: Use new bitrotate module.
41535
41536 2008-08-29  Jim Meyering  <meyering@redhat.com>
41537
41538         bootstrap: merge changes from coreutils
41539         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
41540         of copied files.  Remove a kludge, now that this is fixed.
41541         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
41542         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
41543         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
41544
41545 2008-08-29  Bruno Haible  <bruno@clisp.org>
41546
41547         * MODULES.html.sh: Remove --cvs-urls option.
41548
41549 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
41550
41551         maint.mk: adjust to file name change
41552         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
41553
41554 2008-08-28  Jim Meyering  <meyering@redhat.com>
41555
41556         * modules/getndelim2 (License): Relicense to LGPLv2+.
41557         Approved by Richard Stallman for the version of 1995, and by
41558         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
41559
41560 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
41561
41562         * lib/getdelim.c (flockfile, funlockfile): Make all of them
41563         dummy if one is not available.  Do not touch them if
41564         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
41565         (getc_maybe_unlocked): New.
41566         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
41567
41568 2008-08-26  Eric Blake  <ebb9@byu.net>
41569
41570         doc/INSTALL: resync from autoconf
41571         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
41572         (INSTALL_PRELUDE): Delete; this is done more efficiently by
41573         moving...
41574         * install.texi [!autoconf]: ...here.  Resync from autoconf.
41575         * INSTALL: Regenerate.
41576         * INSTALL.ISO: New file.
41577         * INSTALL.UTF-8: Likewise.
41578
41579 2008-08-26  Jim Meyering  <meyering@redhat.com>
41580
41581         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
41582         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
41583         these definitions conditional, so that they may be overridden, too.
41584
41585 2008-08-26  Bruno Haible  <bruno@clisp.org>
41586
41587         Generate INSTALL file variants with prettier quotes.
41588         * doc/Makefile (INSTALL_PRELUDE): New macro.
41589         (INSTALL): Use it.
41590         (INSTALL.ISO, INSTALL.UTF-8): New rules.
41591
41592 2008-08-26  Bruno Haible  <bruno@clisp.org>
41593
41594         Run makeinfo in an English locale.
41595         * doc/Makefile (MAKEINFO): New variable.
41596
41597 2008-08-26  Bruno Haible  <bruno@clisp.org>
41598
41599         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
41600         Suggested by Eric Blake.
41601
41602 2008-08-25  Bruno Haible  <bruno@clisp.org>
41603
41604         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
41605
41606 2008-08-25  Eric Blake  <ebb9@byu.net>
41607
41608         c-stack: test that stack overflow can be caught
41609         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
41610         that platform allows handling stack overflow; at least OS/2 EMX
41611         has sigaltstack, but crashes before transferring control to
41612         handler on stack overflow.
41613         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
41614         check for HAVE_STACK_OVERFLOW_HANDLING.
41615         Reported by Elbert Pol.
41616
41617 2008-08-25  Bruno Haible  <bruno@clisp.org>
41618
41619         * doc/posix-functions/strftime.texi: Fix description of strftime
41620         module.
41621
41622 2008-08-24  Bruno Haible  <bruno@clisp.org>
41623
41624         * tests/uniwidth/test-uc_width2.c: New file.
41625         * tests/uniwidth/test-uc_width2.sh: New file.
41626         * modules/uniwidth/width-tests (Files): Add the new files.
41627         (TESTS): Add uniwidth/test-uc_width2.sh.
41628         (TESTS_ENVIRONMENT): New variable.
41629         (check_PROGRAMS): Add test-uc_width2.
41630         (test_uc_width2_SOURCES): New variable.
41631
41632         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
41633         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
41634         not 0x00AB.
41635         Reported by Alexander V. Lukyanov <lav@netis.ru>.
41636
41637 2008-08-22  Eric Blake  <ebb9@byu.net>
41638
41639         test-lock, test-tls: mention why a test is skipped
41640         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
41641         skipped.
41642         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
41643
41644         count-one-bits: relax license
41645         * modules/count-one-bits (License): Relicense to LGPLv2+.
41646         Suggested by Ludovic Courtès, approved by Ben Pfaff.
41647
41648 2008-08-22  Andreas Schwab  <schwab@suse.de>
41649
41650         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
41651         Remove spurious space in assignment.
41652
41653 2008-08-21  Simon Josefsson  <simon@josefsson.org>
41654
41655         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
41656         Paul Eggert <eggert@CS.UCLA.EDU>.
41657
41658 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
41659
41660         * modules/gettext: Add m4/threadlib.m4.
41661
41662 2008-08-19  Eric Blake  <ebb9@byu.net>
41663
41664         test-c-stack: fix compilation failure on FreeBSD 5.0
41665         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
41666         headers before <sys/resource.h>.
41667         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
41668         the bug.
41669         Reported by Nelson H. F. Beebe.
41670
41671         strverscmp: migrate from "strverscmp.h" to <string.h>
41672         * modules/string (Makefile.am): Add new hooks.
41673         * modules/strverscmp (Files): Remove strverscmp.h.
41674         (Depends-on): Add string.
41675         (configure.ac): Add indicator.
41676         (Include): Mention new header.
41677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
41678         defaults.
41679         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
41680         results.
41681         * lib/strverscmp.h: Delete.
41682         * lib/string.in.h (strverscmp): Provide declaration, when needed.
41683         * tests/test-strverscmp.c (includes): Adjust client.
41684         * lib/check-version.c (includes): Likewise.
41685         * NEWS: Document the change.
41686
41687         strverscmp: add unit test
41688         * modules/strverscmp-tests: New file.
41689         * tests/test-strverscmp.c: Likewise.
41690
41691 2008-08-19  Simon Josefsson  <simon@josefsson.org>
41692
41693         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
41694         regarding Windows crypto stuff, from Mono.
41695
41696 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
41697
41698         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
41699         if present, for intel RND.  Return error on failures.
41700
41701 2008-08-18  Ben Pfaff  <blp@gnu.org>
41702
41703         gitlog-to-changelog: give better diagnostic for failed pipe-open
41704         * build-aux/gitlog-to-changelog: Improve error message: suggest
41705         that the version of Git may be too old.
41706
41707 2008-08-18  Simon Josefsson  <simon@josefsson.org>
41708
41709         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
41710         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
41711
41712 2008-08-18  Bruno Haible  <bruno@clisp.org>
41713
41714         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
41715         pthread_in_use().
41716
41717 2008-08-18  Bruno Haible  <bruno@clisp.org>
41718
41719         * lib/glthread/threadlib.c: Include <pthread.h>.
41720
41721 2008-08-18  Bruno Haible  <bruno@clisp.org>
41722
41723         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
41724         glthread_recursive_lock_* macros.
41725         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
41726         Fix syntax error.
41727
41728 2008-08-18  Bruno Haible  <bruno@clisp.org>
41729
41730         * lib/glthread/thread.c: Avoid forcing a context switch right after
41731         thread creation.
41732
41733 2008-08-17  Bruno Haible  <bruno@clisp.org>
41734
41735         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
41736         * lib/glthread/thread.h: Provide Win32 specific implementation.
41737         * modules/thread (Files): Add lib/glthread/thread.c.
41738         (Depends-on): Add lock.
41739         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
41740
41741 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41742
41743         New module 'yield'.
41744         * modules/yield: New file.
41745         * lib/glthread/yield.h: New file.
41746         * m4/yield.m4: New file.
41747         * MODULES.html.sh (Multithreading): Add yield.
41748
41749 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41750
41751         New module 'thread'.
41752         * modules/thread: New file.
41753         * lib/glthread/thread.h: New file.
41754         * m4/thread.m4: New file.
41755         * MODULES.html.sh (Multithreading): Add thread.
41756
41757 2008-08-17  Bruno Haible  <bruno@clisp.org>
41758
41759         * lib/glthread/lock.h: Include <stdlib.h> always.
41760         * lib/glthread/tls.h: Likewise.
41761         * lib/glthread/cond.h: Likewise.
41762
41763 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41764
41765         New module 'cond'.
41766         * modules/cond: New file.
41767         * lib/glthread/cond.h: New file.
41768         * lib/glthread/cond.c: New file.
41769         * m4/cond.m4: New file.
41770         * MODULES.html.sh (Multithreading): Add cond.
41771
41772 2008-08-16  Eric Blake  <ebb9@byu.net>
41773
41774         c-stack: fix regression on Irix 5.3 from 2008-06-21
41775         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
41776         sa_sigaction...
41777         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
41778         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
41779         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
41780         * modules/signal (Makefile.am): Use the value.
41781         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
41782         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
41783         * doc/posix-headers/signal.texi (signal.h): Document this
41784         portability issue.
41785         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
41786         Reported by Tom G. Christensen.
41787
41788 2008-08-17  Bruno Haible  <bruno@clisp.org>
41789
41790         New module 'threadlib'.
41791         * modules/threadlib: New file.
41792         * lib/glthread/threadlib.c: New file, extracted from
41793         lib/glthread/lock.c.
41794         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
41795         functions.
41796         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
41797         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
41798         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
41799         macros.
41800         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
41801         (gl_DISABLE_THREADS): Remove macro.
41802         * modules/lock (Files): Remove build-aux/config.rpath.
41803         (Depends-on): Remove havelib. Add threadlib.
41804         (configure.ac-early): Remove section.
41805         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
41806         * modules/tls (Depends-on): Remove lock. Add threadlib.
41807         (Link): New section, copied from threadlib.
41808         * MODULES.html.sh (Multithreading): Add threadlib.
41809
41810 2008-08-14  Bruno Haible  <bruno@clisp.org>
41811
41812         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
41813         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
41814         glthread_rwlock_unlock, glthread_rwlock_destroy,
41815         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
41816         glthread_recursive_lock_destroy): Define as macros always.
41817         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
41818         glthread_lock_lock.
41819         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
41820         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
41821         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
41822         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
41823         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
41824         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
41825         (glthread_recursive_lock_lock_func): Renamed from
41826         glthread_recursive_lock_lock.
41827         (glthread_recursive_lock_unlock_func): Renamed from
41828         glthread_recursive_lock_unlock.
41829         (glthread_recursive_lock_destroy_func): Renamed from
41830         glthread_recursive_lock_destroy.
41831
41832 2008-08-14  Bruno Haible  <bruno@clisp.org>
41833
41834         * lib/glthread/lock.h: Renamed from lib/lock.h.
41835         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
41836         * lib/glthread/tls.h: Renamed from lib/tls.h.
41837         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
41838         * lib/fstrcmp.c: Update includes.
41839         * lib/strsignal.c: Update includes.
41840         * modules/lock (Files, Makefile.am): Update.
41841         (Include): Change to "glthread/lock.h".
41842         * modules/tls (Files, Makefile.am): Update.
41843         (Include): Change to "glthread/tls.h".
41844         * tests/test-lock.c: Update includes.
41845         * tests/test-tls.c: Update includes.
41846         * NEWS: Mention the renamed header files.
41847
41848 2008-08-11  Jim Meyering  <meyering@redhat.com>
41849
41850         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
41851
41852 2008-08-11  Eric Blake  <ebb9@byu.net>
41853
41854         test-c-stack: avoid C99-ism
41855         * tests/test-c-stack.c (main): Fix whitespace, move declaration
41856         before statement.
41857         Reported by Alain Guibert.
41858
41859 2008-08-10  Jim Meyering  <meyering@redhat.com>
41860
41861         ensure that return value of uinttostr et al are not ignored
41862         * lib/inttostr.h (__GNUC_PREREQ): Define.
41863         (__attribute_warn_unused_result__): Define.
41864         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
41865
41866 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
41867
41868         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
41869         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
41870
41871 2008-08-07  Jim Meyering  <meyering@redhat.com>
41872
41873         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
41874
41875         * modules/mkstemp (License): Relicense under LGPLv2+.
41876         * modules/tempname (License): Likewise.
41877
41878 2008-08-06  Bruno Haible  <bruno@clisp.org>
41879
41880         * lib/poll.c (poll): Further micro-optimization.
41881
41882 2008-08-06  Jim Meyering  <meyering@redhat.com>
41883
41884         inet_pton.c: use locale-independent tolower
41885         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
41886         (inet_pton6): Use c_tolower rather than tolower.
41887         * modules/inet_pton (Depends-on): Add c-ctype.
41888
41889 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
41890
41891         * lib/poll.c (poll): Avoid division when timeout is 0, cache
41892         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
41893
41894 2008-08-06  Jim Meyering  <meyering@redhat.com>
41895
41896         * modules/inet_pton (License): Relicense under LGPLv2+.
41897
41898 2008-08-03  Bruno Haible  <bruno@clisp.org>
41899
41900         Additional non-aborting API for lock and tls.
41901         * lib/lock.h: Include <errno.h>.
41902         (glthread_lock_init): New macro/function.
41903         (gl_lock_init): Define as wrapper around glthread_lock_init.
41904         (glthread_lock_lock): New macro/function.
41905         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
41906         (glthread_lock_unlock): New macro/function.
41907         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
41908         (glthread_lock_destroy): New macro/function.
41909         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
41910         (glthread_rwlock_init): New macro/function.
41911         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
41912         (glthread_rwlock_rdlock): New macro/function.
41913         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
41914         (glthread_rwlock_wrlock): New macro/function.
41915         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
41916         (glthread_rwlock_unlock): New macro/function.
41917         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
41918         (glthread_rwlock_destroy): New macro/function.
41919         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
41920         (glthread_recursive_lock_init): New macro/function.
41921         (gl_recursive_lock_init): Define as wrapper around
41922         glthread_recursive_lock_init.
41923         (glthread_recursive_lock_lock): New macro/function.
41924         (gl_recursive_lock_lock): Define as wrapper around
41925         glthread_recursive_lock_lock.
41926         (glthread_recursive_lock_unlock): New macro/function.
41927         (gl_recursive_lock_unlock): Define as wrapper around
41928         glthread_recursive_lock_unlock.
41929         (glthread_recursive_lock_destroy): New macro/function.
41930         (gl_recursive_lock_destroy): Define as wrapper around
41931         glthread_recursive_lock_destroy.
41932         (glthread_once): New macro/function.
41933         (gl_once): Define as wrapper around glthread_once.
41934         Update function declarations.
41935         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
41936         glthread_rwlock_init. Return error code.
41937         (glthread_rwlock_rdlock_multithreaded): Renamed from
41938         glthread_rwlock_rdlock. Return error code.
41939         (glthread_rwlock_wrlock_multithreaded): Renamed from
41940         glthread_rwlock_wrlock. Return error code.
41941         (glthread_rwlock_unlock_multithreaded): Renamed from
41942         glthread_rwlock_unlock. Return error code.
41943         (glthread_rwlock_destroy_multithreaded): Renamed from
41944         glthread_rwlock_destroy. Return error code.
41945         (glthread_recursive_lock_init_multithreaded): Renamed from
41946         glthread_recursive_lock_init. Return error code.
41947         (glthread_recursive_lock_lock_multithreaded): Renamed from
41948         glthread_recursive_lock_lock. Return error code.
41949         (glthread_recursive_lock_unlock_multithreaded): Renamed from
41950         glthread_recursive_lock_unlock. Return error code.
41951         (glthread_recursive_lock_destroy_multithreaded): Renamed from
41952         glthread_recursive_lock_destroy. Return error code.
41953         (glthread_once_call): Make static.
41954         (glthread_once_multithreaded): Renamed from glthread_once.
41955         * lib/tls.h: Include <errno.h>.
41956         (glthread_tls_key_init): New macro/function.
41957         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
41958         (glthread_tls_set): New macro/function.
41959         (gl_tls_set): Define as wrapper around glthread_tls_set.
41960         (glthread_tls_key_destroy): New macro/function.
41961         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
41962         Update function declarations.
41963         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
41964         glthread_tls_get.
41965         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41966
41967 2008-08-04  Eric Blake  <ebb9@byu.net>
41968
41969         gnumakefile: use space, not TAB, outside of targets
41970         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
41971
41972 2008-08-02  Jim Meyering  <meyering@redhat.com>
41973
41974         getdate.y: avoid locale-dependent date parsing failure
41975         In Turkish locales, getdate would fail to recognize keywords
41976         containing a lowercase "i".  The solution is not to rely on
41977         locale-sensitive case-conversion.
41978         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
41979         (lookup_word): Use c_toupper in place of toupper.
41980         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
41981         Reported by Vefa Bicakci <bicave@superonline.com> in
41982         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
41983         * modules/getdate (Depends-on): Add c-ctype.
41984
41985 2008-08-02  Bruno Haible  <bruno@clisp.org>
41986
41987         * gnulib-tool (func_import): When updating or creating a .gitignore
41988         file, prepend each added line with a slash, and ignore leading slashes
41989         from the existing lines.
41990         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41991
41992 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41993
41994         Portability fix for GNU make 3.79.1.
41995         * top/GNUmakefile: Avoid 'else COND', which older GNU make
41996         versions do not understand.
41997
41998 2008-08-01  Bruno Haible  <bruno@clisp.org>
41999
42000         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42001         * tests/test-isnanf.h (zero): New variable.
42002         (main): Avoid literal -0.0f.
42003         * tests/test-isnand.h (zero): New variable.
42004         (main): Avoid literal -0.0.
42005         * tests/test-isnanl.h (zero): New variable.
42006         (main): Avoid literal -0.0L.
42007         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42008         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42009         -0.0, -0.0L.
42010         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42011         (test_signbitd): Avoid literal -0.0.
42012         (test_signbitl): Avoid literal -0.0L.
42013         * tests/test-ceilf1.c (zero): New variable.
42014         (main): Avoid literal -0.0f.
42015         * tests/test-ceill.c (zero): New variable.
42016         (main): Avoid literal -0.0L.
42017         * tests/test-floorf1.c (zero): New variable.
42018         (main): Avoid literal -0.0f.
42019         * tests/test-floorl.c (zero): New variable.
42020         (main): Avoid literal -0.0L.
42021         * tests/test-roundf1.c (zero): New variable.
42022         (main): Avoid literal -0.0f.
42023         * tests/test-round1.c (zero): New variable.
42024         (main): Avoid literal -0.0.
42025         * tests/test-roundl.c (zero): New variable.
42026         (main): Avoid literal -0.0L.
42027         * tests/test-truncf1.c (zero): New variable.
42028         (main): Avoid literal -0.0f.
42029         * tests/test-trunc1.c (zero): New variable.
42030         (main): Avoid literal -0.0.
42031         * tests/test-truncl.c (zero): New variable.
42032         (main): Avoid literal -0.0L.
42033         * tests/test-frexp.c (zero): New variable.
42034         (main): Avoid literal -0.0.
42035         * tests/test-frexpl.c (zero): New variable.
42036         (main): Avoid literal -0.0L.
42037         * tests/test-ldexpl.c (zero): New variable.
42038         (main): Avoid literal -0.0L.
42039         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42040         (zerod, zerol): New variables.
42041         (test_function): Avoid literals -0.0, -0.0L.
42042         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42043         (zerod, zerol): New variables.
42044         (test_function): Avoid literals -0.0, -0.0L.
42045         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42046         (zerod, zerol): New variables.
42047         (test_function): Avoid literals -0.0, -0.0L.
42048         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42049         (zerod, zerol): New variables.
42050         (test_function): Avoid literals -0.0, -0.0L.
42051         * tests/test-strtod.c (zero): New variable.
42052         (main): Avoid literal -0.0.
42053         Reported by Jonathan C. Patschke <jp@centtech.com>.
42054
42055 2008-07-31  Jim Meyering  <meyering@redhat.com>
42056
42057         sha256.h: correct definition of SHA224_DIGEST_SIZE
42058         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42059         Reported by Paulie Pena IV <paulie4@gmail.com>.
42060         Define as 224 / 8, rather than as a literal.
42061         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42062         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42063         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42064
42065 2008-07-31  Bruno Haible  <bruno@clisp.org>
42066
42067         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42068         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42069         Reported by Jonathan Patschke <jp@centtech.com>.
42070
42071 2008-07-31  Bruno Haible  <bruno@clisp.org>
42072
42073         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42074         Reported by Paolo Bonzini <bonzini@gnu.org>.
42075
42076 2008-07-30  Eric Blake  <ebb9@byu.net>
42077
42078         test-strtod: allow compilation without -lm
42079         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42080         Reported by Dennis Clarke <blastwave@gmail.com>.
42081
42082 2008-07-28  Jim Meyering  <meyering@redhat.com>
42083
42084         bootstrap: work also when there are no .po files in po/
42085         * build-aux/bootstrap (update_po_files): Complete the change
42086         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42087
42088 2008-07-27  Jim Meyering  <meyering@redhat.com>
42089
42090         * users.txt: Add zile.
42091
42092 2008-07-26  Ben Pfaff  <blp@gnu.org>
42093
42094         Add missing dependencies on new m4/exponent[fdl].m4 files.
42095         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42096         * modules/isnand-nolibm: Add m4/exponentd.m4.
42097         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42098         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42099         m4/isnan[fdl].m4, because the macros actually used moved.
42100         Reported by Jim Meyering.
42101
42102 2008-07-14  Ben Pfaff  <blp@gnu.org>
42103
42104         Add isinf module.
42105         * lib/isinf.c: New file.
42106         * lib/math.in.h: Define isinf macro if we have decided to replace
42107         it.
42108         * m4/isinf.m4: New file.
42109         * m4/math_h.m4: Initialize and substitute variables for isinf
42110         module.
42111         * modules/isinf: New file.
42112         * modules/isinf-tests: New file.
42113         * modules/math: Add substitutions for new module.
42114         * tests/test-isinf.c: New file.
42115         * doc/posix-functions/isinf.texi: Mention new module.
42116         * MODULES.html.sh: Mention new module.
42117
42118 2008-07-14  Ben Pfaff  <blp@gnu.org>
42119
42120         Factor out some macros for use by additional modules.
42121         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42122         exponentf.m4.
42123         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42124         exponentd.m4.
42125         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42126         file exponentl.m4.
42127         * m4/exponentf.m4: New file.
42128         * m4/exponentd.m4: New file.
42129         * m4/exponentl.m4: New file.
42130         * modules/isnanf: Use new file m4/exponentf.m4.
42131         * modules/isnand: Use new file m4/exponentd.m4.
42132         * modules/isnanl: Use new file m4/exponentl.m4.
42133
42134 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42135
42136         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42137         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42138         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42139         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42140
42141         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42142         readlink on platforms without PATH_MAX.
42143
42144 2008-07-21  Eric Blake  <ebb9@byu.net>
42145
42146         Warn, not fail, on stale version.
42147         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42148
42149         Don't allow installation with stale devel version number.
42150         * top/GNUmakefile (_is-install-target): New macro.
42151         (_curr-ver): Forbid installation with stale version number.
42152
42153 2008-07-20  Bruno Haible  <bruno@clisp.org>
42154
42155         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42156         TESTS_ENVIRONMENT.
42157         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42158
42159 2008-07-20  Bruno Haible  <bruno@clisp.org>
42160
42161         * lib/c-stack.h (c_stack_action): Add documentation.
42162         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42163
42164 2008-07-20  Bruno Haible  <bruno@clisp.org>
42165
42166         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42167         * modules/readlink (License): Likewise.
42168
42169 2008-07-17  Eric Blake  <ebb9@byu.net>
42170
42171         * modules/c-stack (Link): Fix typo.
42172
42173         Make c-stack use libsigsegv, when available.
42174         * modules/c-stack (Depends-on): Add libsigsegv.
42175         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42176         needed.
42177         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42178         (segv_handler, overflow_handler, c_stack_action)
42179         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42180         implementation when libsigsegv is available, but only when using
42181         the library is necessary.
42182         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42183         comment, explaining why XSI check fails on Linux.
42184         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42185         * tests/test-c-stack2.sh: Tweak skip message.
42186         * NEWS: Document new link-time requirements.
42187
42188 2008-07-16  Eric Blake  <ebb9@byu.net>
42189
42190         c-stack: Expose false positives when not using libsigsegv.
42191         * modules/c-stack-tests (Files): Expand test.
42192         * tests/test-c-stack.c (main): Add means to conditionally trigger
42193         non-overflow SIGSEGV.
42194         * tests/test-c-stack2.sh: New file.
42195
42196 2008-07-14  Bruno Haible  <bruno@clisp.org>
42197
42198         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42199         Reported by Eric Blake.
42200
42201 2008-07-14  Sam Steingold  <sds@gnu.org>
42202             Bruno Haible  <bruno@clisp.org>
42203
42204         New module libsigsegv.
42205         * modules/libsigsegv: New file.
42206         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42207         modifications.
42208         * MODULES.html.sh (Signal handling): New section.
42209
42210 2008-07-14  Bruno Haible  <bruno@clisp.org>
42211
42212         * modules/unictype/ctype-* (Description): Add the word "function".
42213         Improves the resulting doc in MODULES.html.
42214
42215 2008-07-12  Ben Pfaff  <blp@gnu.org>
42216
42217         Add longlong module.
42218         * modules/longlong: New file.
42219
42220 2008-07-12  Bruno Haible  <bruno@clisp.org>
42221
42222         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42223         to empty.
42224
42225 2008-07-10  Ben Pfaff  <blp@gnu.org>
42226
42227         Add isnan module.
42228         * doc/posix-functions/isnan.texi: Mention new module.
42229         * lib/math.in.h: Define isnan macro if we have decided to replace
42230         it.
42231         * m4/isnan.m4: New file.
42232         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42233         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42234         also.
42235         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42236         redundancy.
42237         * m4/math_h.m4: Initialize and substitute variables for isnan
42238         module.
42239         * modules/isnan: New file.
42240         * modules/isnan-tests: New file.
42241         * modules/math: Add substitutions for new module.
42242         * tests/test-isnan.c: New file.
42243         * MODULES.html.sh: Mention new module.
42244
42245 2008-07-10  Ben Pfaff  <blp@gnu.org>
42246
42247         Add isnanf module.
42248         * lib/isnanf.m4: New file.
42249         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42250         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42251         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42252         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42253         * modules/isnanf: New file.
42254         * modules/isnanf-tests: New file.
42255         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42256         files.
42257         * tests/test-isnanf-nolibm.c: factored most of its contents into
42258         new file tests/test-isnanf.h.
42259         * tests/test-isnanf.h: New file.
42260         * tests/test-isnanf.c: New file.
42261         * MODULES.html.sh: Mention new module.
42262         * doc/glibc-functions/isnanf.texi: Mention new module.
42263
42264 2008-07-10  Ben Pfaff  <blp@gnu.org>
42265
42266         Add isnand module.
42267         * lib/isnand.h: New file.
42268         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42269         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42270         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42271         functionality also.
42272         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42273         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42274         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42275         * modules/isnand: New file.
42276         * modules/isnand-tests: New file.
42277         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42278         files.
42279         * tests/test-isnand-nolibm.c: factored most of its contents into
42280         new file tests/test-isnand.h.
42281         * tests/test-isnand.h: New file.
42282         * tests/test-isnand.c: New file.
42283         * MODULES.html.sh: Mention new module.
42284
42285 2008-07-10  Ben Pfaff  <blp@gnu.org>
42286
42287         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42288         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42289         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42290         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42291         * modules/isnanf-nolibm: Update references to renamed files.
42292         * modules/isnand-nolibm: Likewise.
42293         * modules/isnanf-nolibm-tests: Likewise.
42294         * modules/isnand-nolibm-tests: Likewise.
42295         * lib/frexp.c: Likewise.
42296         * lib/isfinite.c: Likewise.
42297         * lib/signbitd.c: Likewise.
42298         * lib/signbitf.c: Likewise.
42299         * lib/vasnprintf.c: Likewise.
42300         * tests/test-ceilf1.c: Likewise.
42301         * tests/test-ceilf2.c: Likewise.
42302         * tests/test-floorf1.c: Likewise.
42303         * tests/test-floorf2.c: Likewise.
42304         * tests/test-frexp.c: Likewise.
42305         * tests/test-round1.c: Likewise.
42306         * tests/test-round2.c: Likewise.
42307         * tests/test-roundf1.c: Likewise.
42308         * tests/test-strtod.c: Likewise.
42309         * tests/test-trunc1.c: Likewise.
42310         * tests/test-trunc2.c: Likewise.
42311         * tests/test-truncf1.c: Likewise.
42312         * tests/test-truncf2.c: Likewise.
42313         * NEWS: Mention the renamed header files.
42314
42315 2008-07-11  Jim Meyering  <meyering@redhat.com>
42316
42317         vc-list-files: make the last-resort awk code more portable
42318         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42319         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42320         does not support it.
42321
42322 2008-07-10  Eric Blake  <ebb9@byu.net>
42323
42324         Work with tar's bootstrap.
42325         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42326         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42327         an m4 comment.
42328
42329 2008-07-09  Jim Meyering  <meyering@redhat.com>
42330
42331         posix-shell.m4: fix typo that made this test malfunction
42332         * m4/posix-shell.m4: Remove capitalization in variable name.
42333
42334 2008-07-08  Bruno Haible  <bruno@clisp.org>
42335
42336         * m4/onceonly.m4: Update comments.
42337         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42338
42339 2008-07-04  Jim Meyering  <meyering@redhat.com>
42340
42341         * users.txt: Add vc-dwim.
42342         (bison, coreutils): Use the gitweb URL.
42343
42344 2008-07-03  Jim Meyering  <meyering@redhat.com>
42345
42346         * users.txt: Add libffcall.  From Sam Steingold.
42347
42348 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
42349
42350         getdate.y: do not ignore TZ with relative day, month or year offset
42351         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42352         relative-date-handling, since otherwise, the latter would clobber the
42353         sole output (an updated Start value) of the tz-handling block.
42354         * tests/test-getdate.c: Tests for the fix
42355
42356 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42357
42358         Recognize 'foo_LIBRARIES += libgnu.a'.
42359         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42360         makefile snippet has already specified an installation location,
42361         also using '+='.
42362
42363 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
42364
42365         getdate.y: factor out common actions
42366         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42367         Use them in place of open-coded actions.
42368
42369 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42370
42371         Add self-test for getdate module.
42372         * modules/getdate-tests: New file.
42373         * tests/test-getdate.c: New file.
42374
42375 2008-06-29  Bruno Haible  <bruno@clisp.org>
42376
42377         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42378         .gitignore.
42379         Reported by Sylvain Beucler <beuc@beuc.net>.
42380
42381 2008-06-29  Bruno Haible  <bruno@clisp.org>
42382
42383         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42384         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42385
42386 2008-06-29  Bruno Haible  <bruno@clisp.org>
42387
42388         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42389         EXTRA_DIST.
42390         Reported by Sylvain Beucler <beuc@beuc.net>.
42391
42392 2008-06-26  Jim Meyering  <meyering@redhat.com>
42393
42394         make several modules depend on the "open" module
42395         This provides slightly increased consistency when opening-for-write
42396         the name of a non-directory spelled with a trailing slash.
42397         * modules/chdir-safer: Likewise.
42398         * modules/chown: Likewise.
42399         * modules/clean-temp: Likewise.
42400         * modules/copy-file: Likewise.
42401         * modules/fchdir: Likewise.
42402         * modules/fcntl-safer: Likewise.
42403         * modules/pipe: Likewise.
42404         * modules/utime: Likewise.
42405         Prompted by Eric Blake and Bruno Haible.
42406
42407 2008-06-24  Andreas Schwab  <schwab@suse.de>
42408
42409         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42410         literals can be used as initializers for global variables.
42411
42412 2008-06-23  Eric Blake  <ebb9@byu.net>
42413
42414         Make gnulib-cache.m4 easier to diff.
42415         * gnulib-tool (func_import): Allow newlines when reading cached
42416         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42417
42418 2008-06-23  Bruno Haible  <bruno@clisp.org>
42419
42420         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42421         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42422         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42423         m4/signalblocking.m4.
42424         (gl_PREREQ_SIGACTION): Don't invoke it.
42425         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42426         gl_PREREQ_SIG_HANDLER_H.
42427         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42428         Don't check for sigaction here.
42429
42430 2008-06-23  Bruno Haible  <bruno@clisp.org>
42431
42432         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42433         (install_handlers): Don't set the SA_RESETHAND flag.
42434
42435 2008-06-23  Bruno Haible  <bruno@clisp.org>
42436
42437         * m4/sigaction.m4: Comment fixes.
42438         * lib/signal.in.h: Likewise.
42439
42440 2008-06-23  Eric Blake  <ebb9@byu.net>
42441
42442         Fix typo.
42443         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42444
42445         Avoid SA_ namespace.
42446         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42447         Reported by Ralf Wildenhues.
42448
42449         Avoid test failure due to SA_RESTORER.
42450         * tests/test-sigaction.c (SA_MASK): New macro.
42451         (main): Avoid failing due to extension flags being set.
42452         Reported by Jim Meyering.
42453
42454         Revert use of sig-handler.h in sigprocmask.c.
42455         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
42456         it requires the existence of struct sigaction.
42457         * lib/sigprocmask.c (handler_t): Restore typedef.
42458         (rpl_signal, old_handlers): Use local type.
42459
42460 2008-06-22  Bruno Haible  <bruno@clisp.org>
42461
42462         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
42463         conditionally.
42464         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42465
42466 2008-06-22  Bruno Haible  <bruno@clisp.org>
42467
42468         * doc/posix-functions/siginterrupt.texi: Move note.
42469
42470         * lib/signal.in.h (SA_RESTART): New macro.
42471         * lib/sigaction.c: Update comment.
42472
42473         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42474
42475         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42476         (gl_PREREQ_SIGPROCMASK): Invoke it.
42477         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42478
42479         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42480
42481         * lib/sigprocmask.c: Update a comment.
42482
42483 2008-06-21  Eric Blake  <ebb9@byu.net>
42484
42485         Use sigaction module rather than signal().
42486         * modules/c-stack (Depends-on): Add sigaction.
42487         * modules/fatal-signal (Depends-on): Likewise.
42488         * modules/nanosleep (Depends-on): Likewise.
42489         * modules/sigprocmask (Files): Add sig-handler.h.
42490         * modules/sigaction (Files): Likewise.
42491         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42492         Eggert.
42493         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42494         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42495         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42496         (init_fatal_signals): Likewise.
42497         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42498         (siginterrupt): Delete fallback.
42499         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42500         instead.
42501         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42502         siginterrupt.
42503
42504         New module sigaction, for mingw.
42505         * modules/sigaction: New module...
42506         * modules/sigaction-tests: ...and its test.
42507         * m4/sigaction.m4: New file.
42508         * lib/sigaction.c: Likewise.
42509         * tests/test-sigaction.c: Likewise.
42510         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42511         * modules/signal (Makefile.am): Likewise.
42512         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42513         needed.
42514         * doc/posix-headers/signal.texi (signal.h): Mention provided
42515         types.
42516         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42517         that sigaction is preferable.
42518         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42519         module.
42520         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42521         sigaction.
42522
42523         Improve robustness of sigprocmask by overriding signal.
42524         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42525         is in use.
42526         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42527         (SIGKILL, SIGSTOP): Provide fallbacks.
42528         (rpl_signal): Implement.
42529         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42530         signal can be called inside handlers.
42531
42532         Fix nanosleep module on mingw.
42533         * modules/nanosleep (Depends-on): Add sys_select.
42534         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42535
42536         Fix licensing of sigprocmask.
42537         * modules/raise (License): Relicense as LGPL.
42538
42539 2008-06-21  Bruno Haible  <bruno@clisp.org>
42540
42541         * lib/propername.c (proper_name_utf8): Don't use the transliterated
42542         result if it contains question marks.
42543         Reported by Michael Geng <linux@michaelgeng.de>.
42544
42545 2008-06-19  Bruno Haible  <bruno@clisp.org>
42546
42547         Fix CVS-ism.
42548         * doc/gnulib.texi: Include updated-stamp.texi.
42549         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
42550         (updated-stamp.texi): New rule.
42551         (gnulib.info): Depend on it.
42552         * doc/.gitignore: Add updated-stamp.texi.
42553         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
42554
42555 2008-06-19  Bruno Haible  <bruno@clisp.org>
42556
42557         * doc/Makefile (gnulib.info): Update and simplify dependencies.
42558         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42559
42560 2008-06-19  Eric Blake  <ebb9@byu.net>
42561
42562         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
42563         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
42564         Reported by Stepan Kasal.
42565
42566 2008-06-18  Bruno Haible  <bruno@clisp.org>
42567
42568         * lib/fatal-signal.c (init_fatal_signals): Add comment.
42569         Reported by Eric Blake.
42570
42571 2008-06-18  Eric Blake  <ebb9@byu.net>
42572
42573         Work around cygwin 1.5.25 strsignal bug.
42574         * tests/test-strsignal.c: Allow for const char *.
42575         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
42576
42577 2008-06-18  Simon Josefsson  <simon@josefsson.org>
42578
42579         * users.txt: Update URL to article and add author/date
42580         information.
42581
42582 2008-06-17  Bruno Haible  <bruno@clisp.org>
42583
42584         New macro gl_DISABLE_THREADS.
42585         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
42586         if the user did not pass --enable-threads or --disable-threads option.
42587         (gl_DISABLE_THREADS): New macro.
42588         Reported by Eric Blake <ebb9@byu.net>.
42589
42590 2008-06-17  Bruno Haible  <bruno@clisp.org>
42591
42592         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
42593         when the macro ignores it.
42594         Based on a patch by Eric Blake <ebb9@byu.net>.
42595
42596 2008-06-17  Bruno Haible  <bruno@clisp.org>
42597
42598         * modules/tls (License): Change to LGPLv2+.
42599         Reported by Eric Blake.
42600
42601 2008-06-17  Eric Blake  <ebb9@byu.net>
42602
42603         Simplify c-stack prerequisites.
42604         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
42605         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
42606         no longer requires <ucontext.h> to exist.  Optimize setrlimit
42607         check.
42608         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
42609         <sys/resource.h>.
42610
42611         Move c-stack test into testsuite.
42612         * modules/c-stack-tests: New file.
42613         * lib/c-stack.c [DEBUG]: Move test program...
42614         * tests/test-c-stack.c: ...into this new file.  Skip rather than
42615         fail test if sigaltstack is lacking.
42616         * tests/test-c-stack.sh: New driver file.
42617
42618 2008-06-16  Eric Blake  <ebb9@byu.net>
42619
42620         Use raise module consistently.
42621         * modules/fatal-signal (Depends-on): Add raise.
42622         * modules/sigprocmask (Depends-on): Likewise.
42623         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
42624         * lib/sigprocmask.c (sigprocmask): Likewise.
42625         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42626         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
42627
42628         Fix compliance bug in sigpending.
42629         * lib/sigprocmask.c (sigpending): Return pending array via
42630         parameter, not return value.
42631
42632 2008-06-14  Eric Blake  <ebb9@byu.net>
42633
42634         Improve obstack-printf test code.
42635         * tests/test-obstack-printf.c (test_function): Fix comment, and
42636         simplify usage of obstack_* in macros.  Add a test for coverage.
42637         Reported by Bruno Haible.
42638
42639 2008-06-14  Bruno Haible  <bruno@clisp.org>
42640
42641         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
42642         array size as a constant, not as a const variable.
42643         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
42644         AC_USE_SYSTEM_EXTENSIONS.
42645         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42646         Test whether the obstack_printf function actually exists.
42647         * modules/obstack-printf (Depends-on): Add extensions.
42648         (Include): Remove obstack.h.
42649         * modules/obstack-printf-posix (Depends-on): Add extensions.
42650         (Include): Remove obstack.h.
42651
42652 2008-06-13  Eric Blake  <ebb9@byu.net>
42653
42654         Add obstack-printf and obstack-printf-posix modules.
42655         * modules/obstack-printf: New file.
42656         * modules/obstack-printf-posix: Likewise.
42657         * MODULES.html.sh (Misc): Mention them.
42658         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42659         Likewise.
42660         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42661         Likewise.
42662         * modules/stdio (Makefile.am): Accomodate new modules.
42663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42664         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
42665         Declare.
42666         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
42667         functions.
42668         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
42669         (gl_REPLACE_OBSTACK_PRINTF): New macros
42670         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
42671         * tests/test-obstack-printf.c: New file.
42672         * modules/obstack-printf-tests: Likewise.
42673         * modules/obstack-printf-posix-tests: Likewise.
42674
42675 2008-06-11  Bruno Haible  <bruno@clisp.org>
42676
42677         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
42678         * lib/open.c: Include errno.h.
42679         (open): Fail when attempting to write to a file that has a trailing
42680         slash.
42681         * tests/test-open.c (main): Test against trailing slash bug.
42682         * doc/posix-functions/open.texi: Mention the trailing slash bug.
42683
42684 2008-06-10  Bruno Haible  <bruno@clisp.org>
42685
42686         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
42687         for $? to work inside the trap command, with various /bin/sh-s.
42688         * tests/test-vc-list-files-cvs.sh: Likewise.
42689
42690 2008-06-10  Bruno Haible  <bruno@clisp.org>
42691
42692         * lib/acl-internal.h: Don't include gettext.h here.
42693         * lib/set-mode-acl.c: Include gettext.h here.
42694         * lib/copy-acl.c: Likewise.
42695
42696 2008-06-10  Bruno Haible  <bruno@clisp.org>
42697
42698         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
42699         * lib/wait-process.c (wait_subprocess): Likewise.
42700         * lib/execute.h (execute): Add termsigp argument.
42701         * lib/execute.c (execute): Likewise.
42702         * lib/csharpcomp.c (compile_csharp_using_pnet,
42703         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
42704         * lib/csharpexec.c (execute_csharp_using_pnet,
42705         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
42706         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
42707         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
42708         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
42709         is_jikes_present): Update.
42710         * lib/javaexec.c (execute_java_class): Update.
42711         * lib/javaversion.c (execute_and_read_line): Update.
42712         * NEWS: Document the changes.
42713         Reported by Eric Blake.
42714
42715 2008-06-10  Eric Blake  <ebb9@byu.net>
42716
42717         Add missing include.
42718         * tests/test-strstr.c (includes): Add <signal.h>.
42719         * tests/test-strcasestr.c (includes): Likewise.
42720         * tests/test-memmem.c (includes): Likewise.
42721
42722 2008-06-10  Bruno Haible  <bruno@clisp.org>
42723
42724         * lib/wait-process.c (wait_subprocess): Add an assertion.
42725
42726 2008-06-10  Bruno Haible  <bruno@clisp.org>
42727
42728         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
42729
42730 2008-06-10  Bruno Haible  <bruno@clisp.org>
42731
42732         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
42733         using alarm().
42734         * tests/test-strcasestr.c (main): Likewise.
42735         * tests/test-strstr.c (main): Likewise.
42736
42737 2008-06-09  Bruno Haible  <bruno@clisp.org>
42738
42739         Work around the Solaris 10 ACE ACLs ABI change.
42740         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
42741         declare if ACL_NO_TRIVIAL is present.
42742         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
42743         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
42744         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
42745         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
42746         define if ACL_NO_TRIVIAL is present.
42747         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
42748         and use the current ABI.
42749         (file_has_acl): Use same #if condition as elsewhere.
42750         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
42751         in use, and use the current ABI.
42752         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
42753         Reported by Jim Meyering.
42754
42755 2008-06-09  Eric Blake  <ebb9@byu.net>
42756
42757         Work around environments that (stupidly) ignore SIGALRM.
42758         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
42759         before using alarm().
42760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42761         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42762         Reported by Ian Beckwith <ianb@erislabs.net>.
42763
42764         Produce autobuild blurb earlier in log.
42765         * modules/autobuild (configure.ac-early): Move AB_INIT here.
42766
42767 2008-06-09  Jim Meyering  <meyering@redhat.com>
42768         and OndÅ™ej Vašík  <ovasik@redhat.com>
42769
42770         utimens.c: correct kernel bug work-around
42771         OndÅ™ej Vašík found that the invalid return value of 280 indicates
42772         failure, not success, and the kernel bug we're trying to work
42773         around affects not just the utimensat call, but also the fallback
42774         futimens call.
42775         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
42776         not success.
42777         [HAVE_FUTIMENS]: Use the same work-around, here.
42778
42779 2008-06-09  Jim Meyering  <meyering@redhat.com>
42780
42781         add more guards around definition of ACE_-related code
42782         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
42783         ALLOW and ACE_OWNER are also defined.
42784
42785 2008-06-08  Bruno Haible  <bruno@clisp.org>
42786
42787         * lib/acl-internal.h: Add me as co-author.
42788         * lib/file-has-acl.c: Likewise.
42789         * lib/set-mode-acl.c: Likewise.
42790         * lib/copy-acl.c: Likewise.
42791
42792 2008-06-08  Bruno Haible  <bruno@clisp.org>
42793
42794         Add support for AIX ACLs.
42795         * lib/acl-internal.h (acl_nontrivial): New declaration.
42796         * lib/file-has-acl.c (acl_nontrivial): New function.
42797         (file_has_acl): Add implementation using AIX 4 ACL API.
42798         * lib/set-mode-acl.c (qset_acl): Likewise.
42799         * lib/copy-acl.c (qcopy_acl): Likewise.
42800
42801 2008-06-08  Bruno Haible  <bruno@clisp.org>
42802
42803         Add support for HP-UX ACLs.
42804         * lib/acl-internal.h (acl_nontrivial): New declaration.
42805         * lib/file-has-acl.c (acl_nontrivial): New function.
42806         (file_has_acl): Add implementation using HP-UX 11 ACL API.
42807         * lib/set-mode-acl.c (qset_acl): Likewise.
42808         * lib/copy-acl.c (qcopy_acl): Likewise.
42809
42810 2008-06-08  Bruno Haible  <bruno@clisp.org>
42811
42812         Add support for Cygwin ACLs.
42813         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
42814         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
42815         the chmod_or_fchmod call.
42816         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
42817
42818 2008-06-08  Bruno Haible  <bruno@clisp.org>
42819
42820         Fix bug with setuid modes in Solaris 10+ code.
42821         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
42822         succeeded, when the mode contains some special bits.
42823
42824 2008-06-08  Bruno Haible  <bruno@clisp.org>
42825
42826         Add support for Solaris 7..10 ACLs.
42827         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
42828         declarations.
42829         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
42830         functions.
42831         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
42832         * lib/set-mode-acl.c (qset_acl): Likewise.
42833         * lib/copy-acl.c (qcopy_acl): Likewise.
42834
42835 2008-06-08  Bruno Haible  <bruno@clisp.org>
42836
42837         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
42838         declaration.
42839         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
42840         (acl_access_nontrivial): Remove MacOS X case.
42841         (file_has_acl): Use acl_extended_nontrivial.
42842         * lib/copy-acl.c (qcopy_acl): Likewise.
42843
42844 2008-06-08  Bruno Haible  <bruno@clisp.org>
42845
42846         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
42847
42848 2008-06-08  Jim Meyering  <meyering@redhat.com>
42849
42850         * modules/acl (Maintainer): Add Bruno Haible.
42851
42852 2008-06-07  Bruno Haible  <bruno@clisp.org>
42853
42854         Improve support for Tru64 ACLs.
42855         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
42856         ACL on OSF/1.
42857
42858 2008-06-07  Bruno Haible  <bruno@clisp.org>
42859
42860         Add support for MacOS X ACLs.
42861         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
42862         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
42863         * lib/set-mode-acl.c (qset_acl): Likewise.
42864         * lib/copy-acl.c (qcopy_acl): Likewise.
42865
42866 2008-06-07  Bruno Haible  <bruno@clisp.org>
42867
42868         Fix memory leak introduced on 2008-05-22.
42869         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
42870         use.
42871
42872 2008-06-07  Bruno Haible  <bruno@clisp.org>
42873
42874         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
42875         to construct an empty ACL.
42876
42877 2008-06-07  Bruno Haible  <bruno@clisp.org>
42878
42879         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
42880         precisely.
42881         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
42882
42883 2008-06-07  Bruno Haible  <bruno@clisp.org>
42884
42885         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
42886         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
42887
42888 2008-06-07  Bruno Haible  <bruno@clisp.org>
42889
42890         * doc/posix-functions/_setjmp.texi: Explain the use of this function
42891         regardless of POSIX.
42892         * doc/posix-functions/_longjmp.texi: Likewise.
42893         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
42894         SystemV platform in this case.
42895
42896 2008-06-06  Eric Blake  <ebb9@byu.net>
42897
42898         Document abort() bugs.
42899         * doc/posix-functions/abort.texi (abort): Mention anomalies.
42900
42901         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
42902         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
42903         sigsetjmp.
42904         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
42905         siglongjmp, but only as a macro.
42906         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
42907         is obsolete.
42908         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
42909
42910         Tweak documentation to cover cygwin argz bugs.
42911         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
42912         argz bug fix; no code change needed since no cygwin releases
42913         occurred between the last fix and the bug being tested.
42914         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
42915         module and recently fixed cygwin bugs.
42916         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
42917         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
42918         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
42919         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
42920         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
42921         Likewise.
42922         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
42923         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
42924         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
42925         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
42926         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
42927         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
42928         Likewise.
42929
42930         Avoid gcc warning on cygwin.
42931         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
42932         !ACL_NO_TRIVIAL]: Avoid unused variable.
42933
42934 2008-06-05  Eric Blake  <ebb9@byu.net>
42935
42936         Be tolerant of UNKNOWN version in gnulib-tool test dir.
42937         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
42938         git-version-gen fails to come up with a version.
42939         Reported by Simon Josefsson.
42940
42941 2008-06-05  Jim Meyering  <meyering@redhat.com>
42942             Paul Eggert  <eggert@cs.ucla.edu>
42943
42944         utimens.c: work around a probable Linux kernel bug
42945         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
42946         appears to be a kernel bug that causes utimensat to return 280
42947         instead of 0, indicating success.
42948
42949 2008-06-04  Bruno Haible  <bruno@clisp.org>
42950
42951         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
42952         2008-06-01 commit.
42953
42954 2008-06-04  Bruno Haible  <bruno@clisp.org>
42955
42956         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
42957         * lib/file-has-acl.c (acl_access_nontrivial): New function.
42958         (file_has_acl): Use it. Save errno afterwards.
42959         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
42960
42961 2008-06-03  Bruno Haible  <bruno@clisp.org>
42962
42963         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
42964         draft code. Simplify #ifs.
42965         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
42966         Put Solaris code after POSIX-draft code. Fix comments regarding
42967         Solaris 10, HP-UX. Mention Cygwin.
42968         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
42969
42970 2008-06-03  Eric Blake  <ebb9@byu.net>
42971
42972         Provide fallback for older kernels.
42973         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
42974         Provide runtime fallback if kernel lacks support.
42975         Reported by Mike Frysinger.
42976
42977 2008-06-02  Bruno Haible  <bruno@clisp.org>
42978
42979         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
42980         it exists.
42981
42982 2008-06-02  Bruno Haible  <bruno@clisp.org>
42983
42984         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
42985         * lib/copy-acl.c (qcopy_acl): Update comment.
42986
42987 2008-06-02  Bruno Haible  <bruno@clisp.org>
42988
42989         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
42990         like ACL APIs.
42991
42992 2008-06-02  Bruno Haible  <bruno@clisp.org>
42993
42994         * tests/test-file-has-acl.sh: Use different code for Cygwin.
42995         * tests/test-set-mode-acl.sh: Likewise.
42996         * tests/test-copy-acl.sh: Likewise.
42997         * tests/test-copy-file.sh: Likewise.
42998
42999 2008-06-02  Bruno Haible  <bruno@clisp.org>
43000
43001         * tests/test-file-has-acl.sh: Remove unused code.
43002
43003 2008-06-01  Bruno Haible  <bruno@clisp.org>
43004
43005         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43006         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43007         messages.
43008         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43009
43010 2008-06-01  Bruno Haible  <bruno@clisp.org>
43011
43012         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43013         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43014         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43015         APIs.
43016         * modules/acl-tests (configure.ac): Remove tests now contained in
43017         m4/acl.m4.
43018
43019 2008-06-02  Jim Meyering  <meyering@redhat.com>
43020
43021         announce-gen: use a better key-server host name
43022         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43023         it may be more consistently reliable.  Suggested by Werner Koch
43024         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43025
43026 2008-06-01  Bruno Haible  <bruno@clisp.org>
43027
43028         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43029         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43030
43031 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43032
43033         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43034
43035 2008-06-01  Bruno Haible  <bruno@clisp.org>
43036
43037         New ACL tests.
43038         * tests/test-file-has-acl.sh: New file.
43039         * tests/test-file-has-acl.c: New file.
43040         * tests/test-set-mode-acl.sh: New file.
43041         * tests/test-set-mode-acl.c: New file.
43042         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43043         * tests/test-copy-acl.c: New file.
43044         * modules/acl-tests: New file, based on modules/copy-file-tests.
43045         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43046         (Depends-on): Add acl-tests.
43047         (configure.ac): Remove checks.
43048         (Makefile.am): Don't create test-sameacls program here any more.
43049
43050 2008-06-01  Bruno Haible  <bruno@clisp.org>
43051
43052         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43053         * tests/test-sameacls.c: Include progname.h.
43054         (main): Invoke set_program_name. Portability fixes for MacOS X,
43055         Solaris, HP-UX.
43056
43057 2008-06-01  Bruno Haible  <bruno@clisp.org>
43058
43059         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43060         function.
43061         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43062
43063 2008-06-01  Bruno Haible  <bruno@clisp.org>
43064
43065         * modules/rpmatch (Depends-on): Add strdup.
43066
43067 2008-06-01  Bruno Haible  <bruno@clisp.org>
43068
43069         * lib/pipe.c: Include unistd-safer.h.
43070         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43071         * modules/pipe (Depends-on): Add unistd-safer.
43072
43073 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43074
43075         * modules/autobuild (configure.ac): Call AB_INIT.
43076
43077 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43078
43079         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43080         Suggested by Bruno Haible <bruno@clisp.org>.
43081
43082 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43083
43084         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43085         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43086         <bruno@clisp.org>.
43087
43088 2008-05-29  Eric Blake  <ebb9@byu.net>
43089
43090         Prefer new POSIX 200x interfaces over futimesat.
43091         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43092         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43093         when available.
43094         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43095
43096 2008-05-28  Bruno Haible  <bruno@clisp.org>
43097
43098         * modules/stpcpy (License): Change to LGPLv2+.
43099         Requested by David Lutterkort <dlutter@redhat.com>.
43100
43101 2008-05-27  Bruno Haible  <bruno@clisp.org>
43102
43103         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43104         current mingw.
43105         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43106
43107 2008-05-27  Bruno Haible  <bruno@clisp.org>
43108
43109         * modules/iconv_open (Link): New section, from module 'iconv'.
43110         * modules/striconv (Link): Likewise.
43111         * modules/striconveh (Link): Likewise.
43112         * modules/xstriconv (Link): Likewise.
43113         * modules/unicodeio (Link): Likewise.
43114         * modules/propername (Link): Likewise.
43115         Reported by Jim Meyering.
43116
43117 2008-05-26  Jim Meyering  <meyering@redhat.com>
43118
43119         sha256: do not artificially restrict buffer length to be < 2^32
43120         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43121         uint32_t to size_t.
43122         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43123         to match.
43124
43125         avoid unaligned access errors, e.g., on sparc
43126         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43127         direct access through a possibly-unaligned uint64* pointer.
43128         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43129         direct access through a possibly-unaligned uint32* pointer.
43130         Prompted by this patch from Tom "spot" Callaway:
43131         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43132
43133         sha512.c: fix typo in comment
43134         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43135
43136 2008-05-25  Bruno Haible  <bruno@clisp.org>
43137
43138         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43139         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43140         (Makefile.am): Update lib_SOURCES.
43141
43142 2008-05-25  Bruno Haible  <bruno@clisp.org>
43143
43144         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43145
43146 2008-05-25  Jim Meyering  <meyering@redhat.com>
43147
43148         useless-if-before-free: freed expr may have white-space differences
43149         * build-aux/useless-if-before-free: Recognize cases in which the
43150         freed expression differs from the tested one in embedded white
43151         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43152         $1 was used, so we can't make any regexp shy.  Improved tests now
43153         detect this.
43154
43155         useless-if-before-free: accept white space in the expression.
43156         * build-aux/useless-if-before-free: For now, any white space
43157         in the expression must be identical in the free argument.
43158
43159         useless-if-before-free: efficiency tweak
43160         * build-aux/useless-if-before-free: Make the expression-matching
43161         regexp "shy".
43162         Make the *outer* regexp shy, not the expr-matching one.
43163
43164         update code-in-comment to accept cast of free arg
43165         * build-aux/useless-if-before-free: Update regexp.
43166
43167 2008-05-25  Bruno Haible  <bruno@clisp.org>
43168
43169         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43170         * modules/copy-file-tests (Files, Makefile.am): Update.
43171         * tests/test-copy-file.c (func_test_copy): Update.
43172
43173 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43174
43175         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43176
43177 2008-05-23  Bruno Haible  <bruno@clisp.org>
43178
43179         Improve support for ACLs on OSF/1.
43180         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43181         Remove fallback for unknown flavors of ACLs.
43182
43183 2008-05-22  Bruno Haible  <bruno@clisp.org>
43184
43185         Add support for ACLs on OSF/1.
43186         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43187         replacements.
43188         (acl_free_text): New macro fallback.
43189         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43190         acl_free.
43191         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43192         acl_free_text function. Require AC_C_INLINE.
43193
43194 2008-05-22  Bruno Haible  <bruno@clisp.org>
43195
43196         Make copy_acl work on MacOS X 10.5.
43197         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43198         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43199         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43200         If MODE_INSIDE_ACL, don't assume that every system has the same text
43201         representation for ACLs as FreeBSD.
43202         * lib/copy-acl.c (copy_acl): Add support for platforms with
43203         !MODE_INSIDE_ACL.
43204         * lib/file-has-acl.c (file_has_acl): Likewise.
43205         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43206         FreeBSD, MacOS X, or IRIX, respectively.
43207
43208 2008-05-22  Bruno Haible  <bruno@clisp.org>
43209
43210         * lib/acl.h: Don't include <sys/acl.h>.
43211         (GETACLCNT): Move fallback to lib/acl-internal.h.
43212         * lib/acl-internal.h: Include <sys/acl.h> here.
43213         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43214
43215 2008-05-22  Bruno Haible  <bruno@clisp.org>
43216
43217         Split off copy_acl function to separate file.
43218         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43219         * lib/acl.c (copy_acl): Moved function to separate file.
43220         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43221         * modules/acl (Files): Add lib/copy-acl.c.
43222         (Makefiles.am): Augment lib_SOURCES.
43223
43224 2008-05-22  Bruno Haible  <bruno@clisp.org>
43225
43226         * modules/copy-file-tests: New file.
43227         * tests/test-copy-file.sh: New file.
43228         * tests/test-copy-file.c: New file.
43229         * tests/test-copy-file-sameacls.c: New file.
43230
43231 2008-05-22  Eric Blake  <ebb9@byu.net>
43232
43233         Avoid gcc warning.
43234         * tests/test-memcmp.c (main): Pass NULL indirectly.
43235
43236 2008-05-21  Bruno Haible  <bruno@clisp.org>
43237
43238         Add reference doc about ACLs.
43239         * doc/acl-resources.txt: New file.
43240         * doc/acl-cygwin.txt: New file.
43241
43242 2008-05-21  Bruno Haible  <bruno@clisp.org>
43243
43244         Avoid one more warning from gcc.
43245         * lib/vasnprintf.c (IF_LINT): Update comments.
43246         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43247
43248 2008-05-21  Jim Meyering  <meyering@redhat.com>
43249
43250         avoid a warning from gcc
43251         * lib/vasnprintf.c (IF_LINT): Define.
43252         (scale10_round_decimal_long_double):
43253         Use it to avoid a "may be used uninitialized" warning.
43254         (scale10_round_decimal_double): Likewise.
43255
43256 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43257
43258         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43259         declared.
43260
43261 2008-05-20  Bruno Haible  <bruno@clisp.org>
43262
43263         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43264         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43265
43266 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43267
43268         * modules/memcmp-tests: New file.
43269         * tests/test-memcmp.c: New file.
43270
43271 2008-05-19  Bruno Haible  <bruno@clisp.org>
43272
43273         * modules/propername (Notice, configure.ac): Put quoted "..." into
43274         --keyword option.
43275         * lib/propername.h: Update comments accordingly.
43276         Reported by Eric Blake.
43277
43278 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43279
43280         * modules/getpass-gnu (Depends-on): Add fseeko.
43281
43282 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43283
43284         * modules/base64-tests: New file.
43285
43286 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43287
43288         * lib/base64.c (base64_decode_ctx): If a decode context structure
43289         was passed in use it to ignore newlines.  If a context structure
43290         was _not_ passed in, continue to treat newlines as garbage (this
43291         is the historical behavior).  Formerly base64_decode.
43292         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43293         takes a decode context structure.
43294         * lib/base64.h (base64_decode): Macro for four-argument calls.
43295         (base64_decode_alloc): Likewise.
43296         * lib/base64.c (base64_decode_ctx): If a decode context structure
43297         was passed in use it to ignore newlines.  If a context structure
43298         was _not_ passed in, continue to treat newlines as garbage (this
43299         is the historical behavior).  Formerly base64_decode.
43300         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43301         takes a decode context structure.
43302         * lib/base64.h (base64_decode): Macro for four-argument calls.
43303         (base64_decode_alloc): Likewise.
43304
43305 2008-05-19  Jim Meyering  <meyering@redhat.com>
43306
43307         avoid a warning from gcc
43308         * lib/trim.c (IF_LINT): Define.
43309         (trim2): Use it to avoid a "may be used uninitialized" warning.
43310
43311         Fix doc typo.
43312         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43313
43314 2008-05-19  Bruno Haible  <bruno@clisp.org>
43315
43316         * doc/glibc-functions/getpass.texi: Document limits of other
43317         implementations.
43318
43319 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43320             Bruno Haible <bruno@clisp.org>
43321
43322         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43323
43324 2008-05-18  Bruno Haible  <bruno@clisp.org>
43325
43326         * modules/propername: New file, from GNU gettext.
43327         * lib/propername.h: New file, from GNU gettext.
43328         * lib/propername.c: New file, from GNU gettext.
43329         * MODULES.html.sh (Internationalization functions): Add propername.
43330
43331 2008-05-16  Jim Meyering  <meyering@redhat.com>
43332             Bruno Haible  <bruno@clisp.org>
43333
43334         Avoid some warnings from "gcc -Wshadow".
43335         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43336
43337 2008-05-15  Eric Blake  <ebb9@byu.net>
43338
43339         Extend previous patch to cygwin 1.7.0.
43340         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43341         fast implementation in cygwin >= 1.7.0.
43342         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43343         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43344
43345 2008-05-15  Bruno Haible  <bruno@clisp.org>
43346
43347         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43348         implementation in glibc >= 2.9.
43349         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43350         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43351
43352 2008-05-15  Bruno Haible  <bruno@clisp.org>
43353
43354         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43355         (Unicode string functions): Add unilbrk/*.
43356         Reported by Karl Berry.
43357
43358 2008-05-15  Eric Blake  <ebb9@byu.net>
43359
43360         Fix violation of <stdbool.h> replacement in regex.
43361         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43362         * lib/regexec.c (re_search_internal): Likewise.
43363         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43364
43365 2008-05-15  Jim Meyering  <meyering@redhat.com>
43366
43367         avoid distracting test output when git or cvs is not found
43368         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43369         * tests/test-vc-list-files-git.sh: Likewise.
43370
43371 2008-05-15  Eric Blake  <ebb9@byu.net>
43372
43373         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43374         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43375         glibc version.
43376         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43377         * doc/posix-functions/strstr.texi (strstr): Likewise.
43378         * lib/str-two-way.h (MAX): Sychronize with glibc.
43379
43380 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43381
43382         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43383         opr.ctx_type.
43384         (calc_first): Initialize constraint field.
43385         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43386         Fix grammar.
43387         (duplicate_node): Merge constraint field for all node types.
43388         (calc_eclosure_iter): Look at constraint field for all node types.
43389         * lib/regex_internal.c (create_cd_newstate): Don't look at
43390         opr.ctx_type.
43391
43392 2008-05-14  Bruno Haible  <bruno@clisp.org>
43393
43394         Help GCC to do better code generation.
43395         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43396         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43397         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43398         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43399         Declare with attribute 'malloc' if supported.
43400
43401 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43402
43403         use "echo STR|wc -c" rather than unportable "expr length STR"
43404         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43405         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43406
43407 2008-05-14  Jim Meyering  <meyering@redhat.com>
43408
43409         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43410         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43411         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43412         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43413         via Collin Lasse.
43414
43415 2008-05-14  Eric Blake  <ebb9@byu.net>
43416
43417         Avoid quadratic growth in gl_LIBSOURCES.
43418         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43419         Suggested by Bruno Haible.
43420
43421         Test xmemdup0.
43422         * modules/xmemdup0-tests: New file.
43423         * tests/test-xmemdup0.c: Likewise.
43424
43425 2008-05-13  Eric Blake  <ebb9@byu.net>
43426
43427         Split xmemdup0 into its own module.
43428         * modules/xmemdup0: New file.
43429         * lib/xmemdup0.h: Likewise.
43430         * lib/xmemdup0.c: Likewise.
43431         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43432         * lib/xalloc.h (xmemdup0): Remove.
43433         * lib/xmalloc.c (xmemdup0): Likewise.
43434
43435 2008-05-13  Eric Blake  <ebb9@byu.net>
43436             Bruno Haible  <bruno@clisp.org>
43437
43438         Reduce number of forks required during autoconf.
43439         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43440         and gl_LIBSOURCES_DIR.
43441         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43442         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43443         m4_syscmd per file.
43444         <m4_foreach_w>: Move...
43445         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43446
43447 2008-05-13  Eric Blake  <ebb9@byu.net>
43448
43449         * gnulib-tool: Fix various comment typos.
43450
43451 2008-05-12  Bruno Haible  <bruno@clisp.org>
43452
43453         Tailor the linebreaking algorithm.
43454         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
43455
43456 2008-05-12  Bruno Haible  <bruno@clisp.org>
43457
43458         Update to Unicode 5.0.0.
43459         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43460         LBP_JV, LBP_JT. Redistribute values.
43461         (unilbrk_table): Change size.
43462         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
43463         Unicode TR#14 rev. 22.
43464         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43465         LBP_JV, LBP_JT. Redistribute values.
43466         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
43467         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
43468         Update.
43469         * lib/unilbrk/lbrkprop1.h: Regenerated.
43470         * lib/unilbrk/lbrkprop2.h: Regenerated.
43471         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43472         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43473         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43474         Likewise.
43475         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43476         Likewise.
43477         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43478         result.
43479         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43480         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43481         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43482         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43483         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43484         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43485
43486 2008-05-11  Bruno Haible  <bruno@clisp.org>
43487
43488         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43489
43490 2008-05-11  Bruno Haible  <bruno@clisp.org>
43491
43492         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43493         * modules/unilbrk/gen-lbrk: New file.
43494
43495 2008-05-11  Bruno Haible  <bruno@clisp.org>
43496
43497         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43498         * m4/sha512.m4 (gl_SHA512): Likewise.
43499
43500 2008-05-11  Jim Meyering  <meyering@redhat.com>
43501
43502         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43503         * modules/crypto/sha256: New file.
43504         * modules/crypto/sha512: Likewise.
43505         * lib/sha256.c: Likewise.
43506         * lib/sha256.h: Likewise.
43507         * lib/sha512.c: Likewise.
43508         * lib/sha512.h: Likewise.
43509         * lib/u64.h: Likewise.
43510         * m4/sha256.m4: Likewise.
43511         * m4/sha512.m4: Likewise.
43512         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43513
43514 2008-05-10  Bruno Haible  <bruno@clisp.org>
43515
43516         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43517         (Input/Output <stdio.h>): Add xprintf.
43518         (Signal handling <signal.h>): Add strsignal.
43519         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43520         (Core language properties): Add func.
43521         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43522         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43523         strings.
43524         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43525         (Input/output): New section.
43526         (File system functions): Add openat-die, stat-macros.
43527         (Networking functions): Add sockets.
43528         (Unicode string functions): Add unictype/*.
43529         (Support for building libraries and executables): Add gperf.
43530         (Support for building documentation): Add agpl-3.0.
43531         (Misc): Add nocrash.
43532
43533 2008-05-10  Bruno Haible  <bruno@clisp.org>
43534
43535         * modules/unictype/gen-ctype: New file.
43536
43537 2008-05-10  Jim Meyering  <meyering@redhat.com>
43538
43539         Make chdir-safer.c more efficient on a system with no symlinks.
43540         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
43541         also if ELOOP is zero.  Suggested by Bruno Haible.
43542
43543         Make chdir-safer.c slightly safer.
43544         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
43545         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
43546
43547         Avoid compile failure on systems without ELOOP (like mingw).
43548         * lib/chdir-safer.c (ELOOP): Define if not already defined.
43549         Reported by Bruno Haible.
43550
43551 2008-05-10  Bruno Haible  <bruno@clisp.org>
43552
43553         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
43554         (is_utf8_encoding): Use a case-insensitive comparison.
43555         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
43556         streq.
43557
43558 2008-05-10  Bruno Haible  <bruno@clisp.org>
43559
43560         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
43561         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
43562         * lib/unilbrk/ulc-common.h (iconv_string_length,
43563         iconv_string_keeping_offsets): Remove declarations.
43564         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
43565         Don't include <iconv.h>, streq.h, xsize.h.
43566         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
43567         conversion.
43568         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
43569         <iconv.h>, streq.h, xsize.h.
43570         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
43571         conversion.
43572         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
43573         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
43574         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
43575         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
43576
43577 2008-05-10  Bruno Haible  <bruno@clisp.org>
43578
43579         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
43580         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
43581
43582         * modules/unilbrk/u32-width-linebreaks-tests: New file.
43583         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
43584
43585         * modules/unilbrk/u16-width-linebreaks-tests: New file.
43586         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
43587
43588         * modules/unilbrk/u8-width-linebreaks-tests: New file.
43589         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
43590
43591         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
43592         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
43593
43594         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
43595         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
43596
43597         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
43598         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
43599
43600         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
43601         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
43602
43603 2008-05-10  Bruno Haible  <bruno@clisp.org>
43604
43605         Split up 'linebreak' module.
43606         * lib/unilbrk.h: New file, based on lib/linebreak.h.
43607         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
43608         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
43609         modifications.
43610         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
43611         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
43612         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
43613         lib/linebreak.c.
43614         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
43615         lib/linebreak.c.
43616         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
43617         lib/linebreak.c.
43618         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
43619         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
43620         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
43621         lib/linebreak.c.
43622         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
43623         lib/linebreak.c.
43624         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
43625         lib/linebreak.c.
43626         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
43627         lib/linebreak.c.
43628         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
43629         lib/linebreak.c.
43630         * modules/unilbrk/base: New file.
43631         * modules/unilbrk/tables: New file.
43632         * modules/unilbrk/u8-possible-linebreaks: New file.
43633         * modules/unilbrk/u16-possible-linebreaks: New file.
43634         * modules/unilbrk/u32-possible-linebreaks: New file.
43635         * modules/unilbrk/ulc-common: New file.
43636         * modules/unilbrk/ulc-possible-linebreaks: New file.
43637         * modules/unilbrk/u8-width-linebreaks: New file.
43638         * modules/unilbrk/u16-width-linebreaks: New file.
43639         * modules/unilbrk/u32-width-linebreaks: New file.
43640         * modules/unilbrk/ulc-width-linebreaks: New file.
43641         * lib/linebreak.h: Remove file.
43642         * lib/linebreak.c: Remove file.
43643         * m4/linebreak.m4: Remove file.
43644         * modules/linebreak: Remove file.
43645         * NEWS: Mention the changes.
43646
43647 2008-05-09  Eric Blake  <ebb9@byu.net>
43648
43649         Add xmemdup0.
43650         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
43651         implementation.
43652         * lib/xmalloc.c (xmemdup0): New C implementation.
43653
43654 2008-05-08  Bruno Haible  <bruno@clisp.org>
43655
43656         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
43657
43658 2008-05-07  Eric Blake  <ebb9@byu.net>
43659
43660         Support cross-compilation of <wctype.h>.
43661         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
43662         AC_CACHE_CHECK.
43663
43664 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
43665
43666         * build-aux/vc-list-files: Add support for bzr.
43667
43668 2008-05-03  Jim Meyering  <meyering@redhat.com>
43669
43670         avoid failed assertion with tight malloc
43671         * tests/test-getndelim2.c: Correct an off-by-one assertion.
43672
43673 2008-05-03  Simon Josefsson  <simon@josefsson.org>
43674
43675         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
43676         are needed from arpa/inet.h.
43677         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
43678         Reported by Bruno Haible.
43679
43680 2008-05-02  Jim Meyering  <meyering@redhat.com>
43681
43682         avoid compilation error on FreeBSD 6
43683         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
43684
43685 2008-05-01  Jim Meyering  <meyering@redhat.com>
43686
43687         useless-if-before-free: correct --help's exit status description
43688         * build-aux/useless-if-before-free (usage): Like grep, exit 0
43689         for one or more matches, etc.  Reported by Bruno Haible.
43690
43691         vc-list-files: make the stand-alone gnulib test work
43692         * modules/vc-list-files-tests (configure.ac):
43693         Define and AC_SUBST abs_aux_dir.
43694         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
43695         $(abs_top_srcdir) to each script and having each of them
43696         duplicate the work of setting PATH, set PATH here, using
43697         the new variable, abs_aux_dir instead.
43698         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
43699         * tests/test-vc-list-files-git.sh: Likewise.
43700         Reported by Bruno Haible.
43701
43702 2008-05-01  Bruno Haible  <bruno@clisp.org>
43703
43704         * lib/getndelim2.c (getndelim2): Fix newsize computation during
43705         reallocation. Rename 'done' to 'found_delimiter'.
43706
43707 2008-05-01  Jim Meyering  <meyering@redhat.com>
43708
43709         vc-list-files: accommodate /bin/sh like the one from Solaris 10
43710         * build-aux/vc-list-files: Use `...`, not $(...).
43711
43712 2008-04-30  Jim Meyering  <meyering@redhat.com>
43713
43714         add tests for vc-list-files
43715         * modules/vc-list-files-tests: New module.
43716         * tests/test-vc-list-files-cvs.sh: New file.
43717         * tests/test-vc-list-files-git.sh: New file.
43718
43719         avoid a warning from gcc
43720         * lib/getndelim2.c (IF_LINT): Define.
43721         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
43722
43723         vc-list-files: work properly with build-aux/cvsu, too
43724         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
43725         to all cvs-based clauses.
43726
43727         vc-list-files: work properly in the CVS+awk case, too
43728         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
43729
43730         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
43731         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
43732         take more than one file argument, so .  Add quotes, just in case $dir
43733         ever contains a shell meta-character.  Prompted by Soren Hansen in
43734         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
43735
43736 2008-04-29  Eric Blake  <ebb9@byu.net>
43737
43738         Optimize getndelim2 to use block operations when possible.
43739         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
43740         freadseek, and memchr2.
43741         * lib/getndelim2.c (getndelim2): Use them for block reads.
43742
43743 2008-04-29  Bruno Haible  <bruno@clisp.org>
43744
43745         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
43746         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43747         * modules/inet_ntop (Depends-on): Add extensions.
43748         * modules/inet_pton (Depends-on): Likewise.
43749         Reported by Simon Josefsson.
43750
43751 2008-04-29  Jim Meyering  <meyering@redhat.com>
43752
43753         When the is more than one match in a block, match all of them.
43754         * build-aux/useless-if-before-free: Iterate through each block
43755         until there are no more matches.
43756
43757         Fix broken useless-if-before-free script.
43758         * build-aux/useless-if-before-free: Fix typo: missing "?" after
43759         the expression to match cast of argument to free-like function.
43760
43761 2008-04-29  Eric Blake  <ebb9@byu.net>
43762
43763         Use new header.
43764         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
43765
43766 2008-04-29  Jim Meyering  <meyering@redhat.com>
43767
43768         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
43769         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
43770         by gnulib to exist and to declare e.g., inet_ntop.
43771         Don't include "inet_ntop.h", now removed.
43772
43773         * m4/arpa_inet_h.m4: Remove trailing blanks.
43774
43775 2008-04-29  Eric Blake  <ebb9@byu.net>
43776
43777         Silence valgrind on safe reads beyond potential array bounds.
43778         * lib/rawmemchr.valgrind: New file.
43779         * lib/strchrnul.valgrind: Likewise.
43780         * modules/rawmemchr (Files): Distribute new file.
43781         * modules/strchrnul (Files): Likewise.
43782         Suggested by Bruno Haible.
43783
43784 2008-04-29  Bruno Haible  <bruno@clisp.org>
43785
43786         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
43787         (inet_ntop, inet_pton): Change portability warning's wording.
43788         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
43789         Invoke gl_CHECK_NEXT_HEADERS.
43790         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
43791         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
43792         set ARPA_INET_H.
43793         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43794         * modules/arpa_inet (Description): No longer only for systems that
43795         lack it.
43796         (Depends-on): Add include_next.
43797         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
43798         HAVE_ARPA_INET_H.
43799
43800 2008-04-29  Jim Meyering  <meyering@redhat.com>
43801
43802         * modules/mkdir (License): Re-license as LGPLv2+.
43803
43804 2008-04-29  Bruno Haible  <bruno@clisp.org>
43805
43806         * modules/rawmemchr (Maintainer): Set to Eric.
43807         * modules/strchrnul (Maintainer): Likewise.
43808
43809 2008-04-29  Simon Josefsson  <simon@josefsson.org>
43810
43811         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
43812         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
43813
43814         * modules/arpa_inet (arpa/inet.h): Use them.
43815
43816 2008-04-28  Eric Blake  <ebb9@byu.net>
43817
43818         Test getndelim2.
43819         * modules/getndelim2-tests: New file.
43820         * tests/test-getndelim2.c: Likewise.
43821         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
43822         stream.
43823         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
43824
43825         * MODULES.html.sh: Document new module.
43826
43827 2008-04-20  Bruno Haible  <bruno@clisp.org>
43828
43829         * lib/c-stack.c (die): Use raise.
43830         * modules/c-stack (Depends-on): Add raise.
43831
43832 2008-04-28  Bruno Haible  <bruno@clisp.org>
43833
43834         Expect rpmatch to be declared.
43835         * lib/yesno.c (rpmatch): Remove declaration.
43836
43837         Declare rpmatch.
43838         * lib/stdlib.in.h (rpmatch): New declaration.
43839         * lib/rpmatch.c: Include <stdlib.h> first.
43840         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
43841         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
43842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
43843         HAVE_RPMATCH.
43844         * modules/rpmatch (Depends-on): Add stdlib, extensions.
43845         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43846         (Include): Set to <stdlib.h>.
43847         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
43848         HAVE_RPMATCH.
43849         * NEWS: Document the change.
43850
43851 2008-04-28  Bruno Haible  <bruno@clisp.org>
43852
43853         Change rpmatch to use nl_langinfo when appropriate.
43854         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
43855         (N_): New macro.
43856         (localized_pattern): New function/macro.
43857         (try): Remove match, nomatch arguments. Copy the pattern into safe
43858         memory before caching it.
43859         (rpmatch): Use localized_pattern. Add translator comments.
43860         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
43861         Suggested by Eric Blake.
43862         * modules/rpmatch (Depends-on): Add stdbool.
43863
43864 2008-04-28  Eric Blake  <ebb9@byu.net>
43865
43866         Add rawmemchr module, matching glibc.
43867         * modules/string (Makefile.am): New indicator.
43868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
43869         * lib/string.in.h (rawmemchr): Declare when appropriate.
43870         * modules/rawmemchr: New file.
43871         * m4/rawmemchr.m4: Likewise.
43872         * lib/rawmemchr.c: Likewise.
43873         * modules/rawmemchr-tests: Likewise.
43874         * tests/test-rawmemchr.c: Likewise.
43875         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
43876         module.
43877         * modules/strchrnul (Depends-on): Add rawmemchr.
43878         * lib/strchrnul.c (strchrnul): Optimize a corner case.
43879
43880         Whitespace cleanup.
43881         * tests/test-strchrnul.c: Reindent.
43882         * lib/strchrnul.c: Likewise.
43883
43884         Optimize and test strchrnul.
43885         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
43886         * modules/strchrnul-tests: New file.
43887         * tests/test-strchrnul.c: Likewise.
43888
43889         Remove intprops dependency.
43890         * modules/memchr (Depends-on): Remove intprops.
43891         * modules/memrchr (Depends-on): Likewise.
43892         * modules/memchr2 (Depends-on): Likewise.
43893         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
43894         * lib/memrchr.c (__memrchr): Likewise.
43895         * lib/memrchr2.c (memchr2): Likewise.
43896         Reported by Simon Josefsson.
43897
43898 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43899
43900         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
43901         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43902
43903 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43904
43905         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
43906
43907         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
43908
43909         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
43910
43911         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
43912         declarations.
43913         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
43914
43915         * m4/inet_pton.m4: Don't check for header files.
43916
43917         * m4/inet_ntop.m4: Don't check for header files.
43918
43919 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43920
43921         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
43922         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
43923         trigger for cygwin).
43924         Reported by Bruno Haible  <bruno@clisp.org>.
43925
43926 2008-04-28  Bruno Haible  <bruno@clisp.org>
43927
43928         * doc/posix-functions/strdup.texi: Mention mingw problem.
43929
43930 2008-04-27  Bruno Haible  <bruno@clisp.org>
43931
43932         * modules/stat-time-tests (Depends-on): Add sleep.
43933         * tests/test-stat-time.c (force_unlink): New function.
43934         (cleanup): Use it.
43935         (test_mtime): Remove the ctime related tests.
43936         (test_ctime): New function, containing the ctime related tests.
43937         (main): Call test_ctime, except on native Windows platforms.
43938
43939 2008-04-27  Bruno Haible  <bruno@clisp.org>
43940
43941         * lib/rpmatch.c (rpmatch): Add some comments.
43942         Reported by James Youngman <jay@gnu.org>.
43943
43944 2008-04-27  Bruno Haible  <bruno@clisp.org>
43945
43946         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
43947         quiet NaNs.
43948
43949 2008-04-27  Bruno Haible  <bruno@clisp.org>
43950
43951         Make test-yesno.sh work on mingw.
43952         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
43953         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
43954         (main): Set stdin to binary mode.
43955         * modules/yesno-tests (Depends-on): Add binary-io.
43956
43957 2008-04-27  Bruno Haible  <bruno@clisp.org>
43958
43959         Fix 'isfinite' on x86, x86_64, ia64 platforms.
43960         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
43961         argument that lie outside the IEEE 854 domain.
43962         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
43963         (gl_ISFINITE): Use it.
43964         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
43965
43966 2008-04-27  Bruno Haible  <bruno@clisp.org>
43967
43968         Allow local renaming in config.h.
43969         * lib/memrchr.c (memrchr): Don't undefine outside libc.
43970
43971 2008-04-27  Bruno Haible  <bruno@clisp.org>
43972
43973         * lib/memchr.c (__memchr): Change type of 'i'.
43974         * lib/memchr2.c (memchr2): Likewise.
43975
43976 2008-04-26  Eric Blake  <ebb9@byu.net>
43977         and Bruno Haible  <bruno@clisp.org>
43978
43979         Optimize and test memrchr.
43980         * modules/memrchr (Depends-on): Add intprops.
43981         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
43982         * modules/memrchr-tests: New file.
43983         * tests/test-memrchr.c: New file.
43984
43985 2008-04-26  Bruno Haible  <bruno@clisp.org>
43986
43987         Add tentative support for DragonFly BSD.
43988         * lib/stdio-impl.h: Add macros for DragonFly BSD.
43989         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
43990         fp.
43991         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43992         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
43993         * lib/fpurge.c (fpurge): Likewise.
43994         * lib/freadable.c (freaadable): Likewise.
43995         * lib/freadahead.c (freadahead): Likewise.
43996         * lib/freading.c (freading): Likewise.
43997         * lib/freadptr.c (freadptr): Likewise.
43998         * lib/freadseek.c (freadptrinc): Likewise.
43999         * lib/fseeko.c (fseeko): Likewise.
44000         * lib/fseterr.c (fseterr): Likewise.
44001         * lib/fwritable.c (fwritable): Likewise.
44002         * lib/fwriting.c (fwriting): Likewise.
44003
44004 2008-04-26  Bruno Haible  <bruno@clisp.org>
44005
44006         * lib/stdio-impl.h: New file.
44007         * lib/fbufmode.c: Include stdio-impl.h.
44008         (fbufmode): Use fp_, remove redundant #defines.
44009         * lib/fflush.c: Include stdio-impl.h.
44010         (clear_ungetc_buffer): Remove redundant #defines.
44011         * lib/fpurge.c: Include stdio-impl.h.
44012         (fpurge): Remove redundant #defines.
44013         * lib/freadable.c: Include stdio-impl.h.
44014         (freadable): Remove redundant #defines.
44015         * lib/freadahead.c: Include stdio-impl.h.
44016         (freadahead): Remove redundant #defines.
44017         * lib/freading.c: Include stdio-impl.h.
44018         (freading): Remove redundant #defines.
44019         * lib/freadptr.c: Include stdio-impl.h.
44020         (freadptr): Remove redundant #defines.
44021         * lib/freadseek.c: Include stdio-impl.h.
44022         (freadptrinc): Remove redundant #defines.
44023         * lib/fseeko.c: Include stdio-impl.h.
44024         (rpl_fseeko): Remove redundant #defines.
44025         * lib/fseterr.c: Include stdio-impl.h.
44026         (fseterr): Remove redundant #defines.
44027         * lib/fwritable.c: Include stdio-impl.h.
44028         (fwritable: Remove redundant #defines.
44029         * lib/fwriting.c: Include stdio-impl.h.
44030         (fwriting): Remove redundant #defines.
44031         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44032         * modules/fflush (Files): Likewise.
44033         * modules/fpurge (Files): Likewise.
44034         * modules/freadable (Files): Likewise.
44035         * modules/freadahead (Files): Likewise.
44036         * modules/freading (Files): Likewise.
44037         * modules/freadptr (Files): Likewise.
44038         * modules/freadseek (Files): Likewise.
44039         * modules/fseeko (Files): Likewise.
44040         * modules/fseterr (Files): Likewise.
44041         * modules/fwritable (Files): Likewise.
44042         * modules/fwriting (Files): Likewise.
44043
44044 2008-04-26  Bruno Haible  <bruno@clisp.org>
44045
44046         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44047         restore_seek_optimization, update_fpos_cache): New functions, extracted
44048         from rpl_fflush.
44049         (rpl_fflush): Use them.
44050         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44051         (gl_REPLACE_FFLUSH): Use it.
44052
44053 2008-04-26  Bruno Haible  <bruno@clisp.org>
44054
44055         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44056         on Solaris.
44057         * tests/test-xstrtoimax.sh: Likewise.
44058         * tests/test-xstrtoumax.sh: Likewise.
44059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44060
44061 2008-04-26  Bruno Haible  <bruno@clisp.org>
44062
44063         * modules/memchr-tests: New file.
44064         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44065
44066 2008-04-26  Eric Blake  <ebb9@byu.net>
44067             Bruno Haible  <bruno@clisp.org>
44068
44069         * lib/memchr.c: Include intprops.h.
44070         (__memchr): Optimize parallel detection of matching bytes. Rename local
44071         variables. Add explanatory comments.
44072
44073 2008-04-26  Bruno Haible  <bruno@clisp.org>
44074
44075         Fix module 'memchr', broken since 2000-10-28.
44076         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44077
44078 2008-04-26  Bruno Haible  <bruno@clisp.org>
44079
44080         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44081         comments.
44082
44083 2008-04-25  Eric Blake  <ebb9@byu.net>
44084
44085         Use native fstatat on cygwin 1.7.0.
44086         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44087         first.
44088
44089 2008-04-23  Eric Blake  <ebb9@byu.net>
44090
44091         Improve memchr2 performance.
44092         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44093         NUL bytes.
44094         * modules/memchr2 (Depends-on): Use intprops.h.
44095
44096 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44097
44098         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44099         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44100         <blp@cs.stanford.edu>.
44101
44102 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44103
44104         * lib/arpa_inet.in.h: New file.
44105
44106         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44107         (Makefile.am): Sed in substitute header file.
44108
44109         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44110         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44111
44112         * modules/inet_ntop (configure.ac): Use
44113         gl_ARPA_INET_MODULE_INDICATOR.
44114
44115         * modules/inet_pton (configure.ac): Use
44116         gl_ARPA_INET_MODULE_INDICATOR.
44117
44118 2008-04-22  Jim Meyering  <meyering@redhat.com>
44119
44120         * modules/verify (License): Re-license as LGPLv2+.
44121
44122 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44123
44124         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44125         parameter to void* as per POSIX standard (MinGW uses char*).
44126
44127 2008-04-21  Bruno Haible  <bruno@clisp.org>
44128
44129         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44130         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44131         Define to replacements if REPLACE_ISWCNTRL is 1.
44132         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44133         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44134         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44135         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44136         what it fixes.
44137         * doc/posix-functions/iswalpha.texi: Likewise.
44138         * doc/posix-functions/iswblank.texi: Likewise.
44139         * doc/posix-functions/iswcntrl.texi: Likewise.
44140         * doc/posix-functions/iswdigit.texi: Likewise.
44141         * doc/posix-functions/iswgraph.texi: Likewise.
44142         * doc/posix-functions/iswlower.texi: Likewise.
44143         * doc/posix-functions/iswprint.texi: Likewise.
44144         * doc/posix-functions/iswpunct.texi: Likewise.
44145         * doc/posix-functions/iswspace.texi: Likewise.
44146         * doc/posix-functions/iswupper.texi: Likewise.
44147         * doc/posix-functions/iswxdigit.texi: Likewise.
44148         Reported by Alain Guibert.
44149
44150 2008-04-21  Bruno Haible  <bruno@clisp.org>
44151
44152         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44153         Patch by Alain Guibert.
44154
44155 2008-04-21  Bruno Haible  <bruno@clisp.org>
44156
44157         Fix test failures on mingw.
44158         * tests/test-xstrtol.c (print_no_progname): New function.
44159         (main): Install it in error_print_progname hook.
44160         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44161         * tests/test-xstrtoimax.sh: Likewise.
44162         * tests/test-xstrtoumax.sh: Likewise.
44163
44164 2008-04-21  Bruno Haible  <bruno@clisp.org>
44165
44166         Fix test failure on mingw.
44167         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44168
44169 2008-04-21  Bruno Haible  <bruno@clisp.org>
44170
44171         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44172         Actually assign a value.
44173
44174 2008-04-20  Bruno Haible  <bruno@clisp.org>
44175
44176         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44177         take 2.
44178         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44179         'canonicalize-lgpl' module is also used.
44180         * lib/canonicalize-lgpl.c: Undo last change.
44181         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44182
44183 2008-04-20  Bruno Haible  <bruno@clisp.org>
44184
44185         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44186         config.h. Provide _mkdir based fallback for mingw.
44187         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44188         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44189         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44190         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44191         rather than defining mkdir in config.h.
44192         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44193         (gl_SYS_STAT_H_DEFAULTS): New macro.
44194         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44195         HAVE_IO_H any more.
44196         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44197         HAVE_DECL_MKDIR and HAVE_IO_H.
44198
44199 2008-04-20  Bruno Haible  <bruno@clisp.org>
44200
44201         * lib/isapipe.c: Port to native Windows platforms.
44202
44203 2008-04-20  Bruno Haible  <bruno@clisp.org>
44204
44205         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44206
44207 2008-04-21  Eric Blake  <ebb9@byu.net>
44208
44209         Work around preprocessors that don't handle UINTMAX_MAX.
44210         * lib/memchr2.c (memchr2): Avoid embedded #if.
44211         Reported by Alain Guibert, fix suggested by Bruno Haible.
44212
44213 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44214
44215         * doc/posix-functions/strftime.texi (strftime): Explain better
44216         Windows incompatibility.  Suggested by Micah Cowan
44217         <micah@cowan.name>.
44218
44219 2008-04-20  Bruno Haible  <bruno@clisp.org>
44220
44221         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44222         unistr/u8-mblen.
44223
44224 2008-04-20  Bruno Haible  <bruno@clisp.org>
44225
44226         Fix test failure on platforms with non-GNU iconv.
44227         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44228         (U_TO_U8): Use it, rather than u16_to_u8.
44229         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44230         units at the end of the input string.
44231         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44232
44233 2008-04-20  Bruno Haible  <bruno@clisp.org>
44234
44235         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44236         when the resulting length is 0.
44237         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44238
44239 2008-04-20  Bruno Haible  <bruno@clisp.org>
44240
44241         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44242         works.
44243         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44244
44245 2008-04-20  Bruno Haible  <bruno@clisp.org>
44246
44247         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44248         * modules/tsearch-tests (configure.ac): Test for initstate function.
44249
44250 2008-04-20  Bruno Haible  <bruno@clisp.org>
44251
44252         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44253         for nlink_t if missing.
44254         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44255
44256 2008-04-19  Bruno Haible  <bruno@clisp.org>
44257
44258         Work around snprintf bug on Linux libc5.
44259         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44260         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44261         gl_SNPRINTF_SIZE1.
44262         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44263         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44264         that test failed.
44265         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44266         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44267         * modules/snprintf (Files): Add m4/printf.m4.
44268         * modules/vsnprintf (Files): Likewise.
44269         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44270         * doc/posix-functions/vsnprintf.texi: Likewise.
44271
44272 2008-04-19  Bruno Haible  <bruno@clisp.org>
44273
44274         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44275         from 0.0058 to less than 10^-7.
44276
44277 2008-04-19  Bruno Haible  <bruno@clisp.org>
44278
44279         Fix rounding when a precision is given.
44280         * lib/vasnprintf.c (is_borderline): New function.
44281         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44282         9...9x.
44283         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44284         %e, %g.
44285         * tests/test-vasprintf-posix.c (test_function): Likewise.
44286         * tests/test-snprintf-posix.h (test_function): Likewise.
44287         * tests/test-sprintf-posix.h (test_function): Likewise.
44288         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44289         * tests/test-printf-posix.h (test_function): Likewise.
44290         * tests/test-printf-posix.output: Update.
44291         Reported by John Darrington <john@darrington.wattle.id.au> via
44292         Ben Pfaff <blp@cs.stanford.edu>.
44293
44294 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44295
44296         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44297         Suggested by Bruno Haible <bruno@clisp.org>.
44298
44299 2008-04-17  Bruno Haible  <bruno@clisp.org>
44300
44301         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44302         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44303         implementation.
44304         Patch by Bruce Merry <bmerry@gmail.com>.
44305
44306 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44307
44308         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44309         doesn't work under Windows.
44310
44311 2008-04-16  Bruno Haible  <bruno@clisp.org>
44312
44313         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44314         New macros.
44315         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44316         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44317         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44318         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44319         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44320         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44321         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44322         macros.
44323         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44324         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44325         Northern Sotho, Uighur.
44326
44327 2008-04-16  Bruno Haible  <bruno@clisp.org>
44328
44329         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44330         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44331         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44332         Reported by Daniel Bergström <daniel@octocode.com>.
44333
44334 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44335             Bruno Haible  <bruno@clisp.org>
44336
44337         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44338         function.
44339         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44340         New functions, mostly extracted from gl_locale_name_default.
44341         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44342
44343 2008-04-16  Eric Blake  <ebb9@byu.net>
44344
44345         Adjust strtod detection to catch glibc 2.7 bug.
44346         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44347         Reported by John Gatewood Ham.
44348
44349 2008-04-16  Bruno Haible  <bruno@clisp.org>
44350
44351         Add tentative support for Linux libc5.
44352         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44353         * lib/fpurge.c (fpurge): Likewise.
44354         * lib/freadable.c (freadable): Likewise.
44355         * lib/freadahead.c (freadahead): Likewise.
44356         * lib/freading.c (freading): Likewise.
44357         * lib/freadptr.c (freadptr): Likewise.
44358         * lib/freadseek.c (freadptrinc): Likewise.
44359         * lib/fseeko.c (rpl_fseeko): Likewise.
44360         * lib/fseterr.c (fseterr): Likewise.
44361         * lib/fwritable.c (fwritable): Likewise.
44362         * lib/fwriting.c (fwriting): Likewise.
44363         Reported by Alain Guibert <alguibert+bts@free.fr>.
44364
44365 2008-04-15  Bruno Haible  <bruno@clisp.org>
44366
44367         * modules/mathl (configure.ac): Define module indicator.
44368
44369 2008-04-15  Bruno Haible  <bruno@clisp.org>
44370
44371         * lib/logl.c (logl): Remove unused variables.
44372
44373 2008-04-15  Bruno Haible  <bruno@clisp.org>
44374
44375         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44376         fails.
44377
44378 2008-04-15  Bruno Haible  <bruno@clisp.org>
44379
44380         * lib/trim.c (trim2): Fix argument of isspace() macro.
44381
44382 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44383
44384         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44385         to 0.
44386         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44387
44388 2008-04-14  Bruno Haible  <bruno@clisp.org>
44389
44390         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44391         AC_LANG_PROGRAM argument.
44392         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44393         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44394         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44395         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44396         * m4/math_h.m4 (gl_MATH_H): Likewise.
44397         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44398         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44399         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44400         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44401         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44402         * m4/regex.m4 (gl_REGEX): Likewise.
44403         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44404         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44405         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44406         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44407         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44408         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44409         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44410         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44411
44412 2008-04-14  Jim Meyering  <meyering@redhat.com>
44413
44414         test-strtod: fix typos: s/abs/fabs/
44415         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44416
44417 2008-04-13  Bruno Haible  <bruno@clisp.org>
44418
44419         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44420         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44421         module is also used and while not building the reloc-wrapper.
44422
44423 2008-04-13  Bruno Haible  <bruno@clisp.org>
44424
44425         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44426
44427 2008-04-13  Bruno Haible  <bruno@clisp.org>
44428
44429         Fix AIX compilation failure introduced on 2008-04-02.
44430         * tests/test-frexp.c (exp): Undefine before redefining.
44431         * tests/test-frexpl.c (exp): Likewise.
44432
44433 2008-04-13  Bruno Haible  <bruno@clisp.org>
44434
44435         Work around a HP-UX stdio bug.
44436         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44437         * tests/test-ftello.c (main): Likewise.
44438         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44439         * doc/posix-functions/ftello.texi: Likewise.
44440
44441 2008-04-13  Bruno Haible  <bruno@clisp.org>
44442
44443         Make test-signbit pass on HP-UX/hppa.
44444         * tests/test-signbit.c (minus_zerol): New variable.
44445         (test_signbitl): Use it.
44446
44447 2008-04-13  Bruno Haible  <bruno@clisp.org>
44448
44449         Make truncl work on OSF/1 4.0.
44450         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44451         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44452         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
44454         HAVE_DECL_TRUNCL.
44455         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
44456         HAVE_DECL_TRUNCL.
44457         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
44458
44459 2008-04-13  Bruno Haible  <bruno@clisp.org>
44460
44461         * lib/unictype.h: Remove trailing comma from enumeration definitions.
44462
44463 2008-04-13  Bruno Haible  <bruno@clisp.org>
44464
44465         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
44466         expression, so as to avoid HP-UX 11 cc compiler bug.
44467
44468 2008-04-13  Bruno Haible  <bruno@clisp.org>
44469
44470         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44471
44472 2008-04-13  Bruno Haible  <bruno@clisp.org>
44473
44474         * lib/git-merge-changelog.c: Remove empty declaration outside of
44475         functions.
44476
44477 2008-04-13  Bruno Haible  <bruno@clisp.org>
44478
44479         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44480
44481 2008-04-13  Bruno Haible  <bruno@clisp.org>
44482
44483         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44484         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44485         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44486         also if it exists but lacks definitions of the SHUT_* macros.
44487         * modules/sys_socket (Description): Update.
44488         Reported by Elbert Pol <e.pol@chello.nl>.
44489
44490 2008-04-13  Bruno Haible  <bruno@clisp.org>
44491
44492         * lib/localcharset.c (OS2): Don't redefine if already defined.
44493         Reported by Elbert Pol <e.pol@chello.nl>.
44494
44495 2008-04-13  Bruno Haible  <bruno@clisp.org>
44496
44497         * lib/binary-io.h [__EMX__]: Include <io.h>.
44498         Reported by Elbert Pol <e.pol@chello.nl>.
44499
44500 2008-04-12  Bruno Haible  <bruno@clisp.org>
44501
44502         * lib/fpucw.h: Enable the definitions also for x86_64.
44503         Needed for NetBSD/x86_64.
44504         Reported by Thomas Klausner <tk@giga.or.at>.
44505
44506 2008-04-12  Bruno Haible  <bruno@clisp.org>
44507
44508         * tests/test-strtod.c: Include isnand.h.
44509         (main): Use isnand instead of isnan.
44510         Reported by Jim Meyering.
44511
44512 2008-04-12  Bruno Haible  <bruno@clisp.org>
44513
44514         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44515         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44516
44517 2008-04-12  Jim Meyering  <meyering@redhat.com>
44518
44519         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44520
44521 2008-04-12  Bruno Haible  <bruno@clisp.org>
44522
44523         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44524         Reported by Elbert Pol <e.pol@chello.nl>.
44525
44526 2008-04-12  Eric Blake  <ebb9@byu.net>
44527
44528         Work around Solaris 10 math.h bug.
44529         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44530         (gl_MATH_H_DEFAULTS): Set up default.
44531         * modules/math (Makefile.am): Replace new indicators.
44532         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44533         * tests/test-math.c (main): Test this.
44534         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44535         * doc/posix-headers/math.texi (math.h): Mention bug.
44536         Reported by Nelson H. F. Beebe and Jim Meyering.
44537
44538 2008-04-11  Bruno Haible  <bruno@clisp.org>
44539
44540         Adapt to future versions of Apple GCC.
44541         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
44542         Reported by Peter O'Gorman <peter@pogma.com>.
44543
44544 2008-04-11  Bruno Haible  <bruno@clisp.org>
44545
44546         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
44547
44548 2008-04-11  Bruno Haible  <bruno@clisp.org>
44549
44550         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
44551
44552         * modules/getaddrinfo-tests (Makefile.am): Define
44553         test_getaddrinfo_LDADD.
44554
44555 2008-04-11  Bruno Haible  <bruno@clisp.org>
44556
44557         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
44558         (init): Fix syntax error.
44559         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
44560         is declared.
44561
44562 2008-04-11  Bruno Haible  <bruno@clisp.org>
44563
44564         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
44565         * modules/glob (Depends-on): Add stdbool.
44566
44567 2008-04-11  Bruno Haible  <bruno@clisp.org>
44568
44569         * lib/trim.c: Include <string.h>.
44570
44571 2008-04-11  Eric Blake  <ebb9@byu.net>
44572
44573         Avoid compile failure on OS/2.
44574         * lib/regex_internal.h (internal_function): Disable optimization
44575         on OS/2 (__EMX__), where it caused compiler error.
44576         Reported by Elbert Pol.
44577
44578 2008-04-11  Bruno Haible  <bruno@clisp.org>
44579
44580         Flush the standard error stream before aborting. Needed on mingw.
44581         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
44582         * tests/test-array_list.c (ASSERT): Likewise.
44583         * tests/test-array_oset.c (ASSERT): Likewise.
44584         * tests/test-avltree_list.c (ASSERT): Likewise.
44585         * tests/test-avltree_oset.c (ASSERT): Likewise.
44586         * tests/test-avltreehash_list.c (ASSERT): Likewise.
44587         * tests/test-binary-io.c (ASSERT): Likewise.
44588         * tests/test-byteswap.c (ASSERT): Likewise.
44589         * tests/test-c-ctype.c (ASSERT): Likewise.
44590         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
44591         * tests/test-c-strcasestr.c (ASSERT): Likewise.
44592         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
44593         * tests/test-c-strstr.c (ASSERT): Likewise.
44594         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
44595         * tests/test-canonicalize.c (ASSERT): Likewise.
44596         * tests/test-carray_list.c (ASSERT): Likewise.
44597         * tests/test-ceilf1.c (ASSERT): Likewise.
44598         * tests/test-ceilf2.c (ASSERT): Likewise.
44599         * tests/test-ceill.c (ASSERT): Likewise.
44600         * tests/test-count-one-bits.c (ASSERT): Likewise.
44601         * tests/test-fbufmode.c (ASSERT): Likewise.
44602         * tests/test-fflush2.c (ASSERT): Likewise.
44603         * tests/test-floorf1.c (ASSERT): Likewise.
44604         * tests/test-floorf2.c (ASSERT): Likewise.
44605         * tests/test-floorl.c (ASSERT): Likewise.
44606         * tests/test-fopen.c (ASSERT): Likewise.
44607         * tests/test-fpending.c (ASSERT): Likewise.
44608         * tests/test-fprintf-posix.c (ASSERT): Likewise.
44609         * tests/test-fpurge.c (ASSERT): Likewise.
44610         * tests/test-freadable.c (ASSERT): Likewise.
44611         * tests/test-freadahead.c (ASSERT): Likewise.
44612         * tests/test-freading.c (ASSERT): Likewise.
44613         * tests/test-freadptr.c (ASSERT): Likewise.
44614         * tests/test-freadptr2.c (ASSERT): Likewise.
44615         * tests/test-freadseek.c (ASSERT): Likewise.
44616         * tests/test-freopen.c (ASSERT): Likewise.
44617         * tests/test-frexp.c (ASSERT): Likewise.
44618         * tests/test-frexpl.c (ASSERT): Likewise.
44619         * tests/test-fseek.c (ASSERT): Likewise.
44620         * tests/test-fseeko.c (ASSERT): Likewise.
44621         * tests/test-fstrcmp.c (ASSERT): Likewise.
44622         * tests/test-ftell.c (ASSERT): Likewise.
44623         * tests/test-ftello.c (ASSERT): Likewise.
44624         * tests/test-func.c (ASSERT): Likewise.
44625         * tests/test-fwritable.c (ASSERT): Likewise.
44626         * tests/test-fwriting.c (ASSERT): Likewise.
44627         * tests/test-getdelim.c (ASSERT): Likewise.
44628         * tests/test-getline.c (ASSERT): Likewise.
44629         * tests/test-i-ring.c (ASSERT): Likewise.
44630         * tests/test-iconv-utf.c (ASSERT): Likewise.
44631         * tests/test-iconv.c (ASSERT): Likewise.
44632         * tests/test-isfinite.c (ASSERT): Likewise.
44633         * tests/test-isnand.c (ASSERT): Likewise.
44634         * tests/test-isnanf.c (ASSERT): Likewise.
44635         * tests/test-isnanl.h (ASSERT): Likewise.
44636         * tests/test-ldexpl.c (ASSERT): Likewise.
44637         * tests/test-linked_list.c (ASSERT): Likewise.
44638         * tests/test-linkedhash_list.c (ASSERT): Likewise.
44639         * tests/test-localename.c (ASSERT): Likewise.
44640         * tests/test-lseek.c (ASSERT): Likewise.
44641         * tests/test-mbscasecmp.c (ASSERT): Likewise.
44642         * tests/test-mbscasestr1.c (ASSERT): Likewise.
44643         * tests/test-mbscasestr2.c (ASSERT): Likewise.
44644         * tests/test-mbscasestr3.c (ASSERT): Likewise.
44645         * tests/test-mbscasestr4.c (ASSERT): Likewise.
44646         * tests/test-mbschr.c (ASSERT): Likewise.
44647         * tests/test-mbscspn.c (ASSERT): Likewise.
44648         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
44649         * tests/test-mbspbrk.c (ASSERT): Likewise.
44650         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
44651         * tests/test-mbsrchr.c (ASSERT): Likewise.
44652         * tests/test-mbsspn.c (ASSERT): Likewise.
44653         * tests/test-mbsstr1.c (ASSERT): Likewise.
44654         * tests/test-mbsstr2.c (ASSERT): Likewise.
44655         * tests/test-mbsstr3.c (ASSERT): Likewise.
44656         * tests/test-memchr2.c (ASSERT): Likewise.
44657         * tests/test-memmem.c (ASSERT): Likewise.
44658         * tests/test-open.c (ASSERT): Likewise.
44659         * tests/test-printf-frexp.c (ASSERT): Likewise.
44660         * tests/test-printf-frexpl.c (ASSERT): Likewise.
44661         * tests/test-printf-posix.c (ASSERT): Likewise.
44662         * tests/test-quotearg.c (ASSERT): Likewise.
44663         * tests/test-rbtree_list.c (ASSERT): Likewise.
44664         * tests/test-rbtree_oset.c (ASSERT): Likewise.
44665         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
44666         * tests/test-round1.c (ASSERT): Likewise.
44667         * tests/test-roundf1.c (ASSERT): Likewise.
44668         * tests/test-roundl.c (ASSERT): Likewise.
44669         * tests/test-signbit.c (ASSERT): Likewise.
44670         * tests/test-sleep.c (ASSERT): Likewise.
44671         * tests/test-snprintf-posix.c (ASSERT): Likewise.
44672         * tests/test-snprintf.c (ASSERT): Likewise.
44673         * tests/test-sprintf-posix.c (ASSERT): Likewise.
44674         * tests/test-stat-time.c (ASSERT): Likewise.
44675         * tests/test-strcasestr.c (ASSERT): Likewise.
44676         * tests/test-strerror.c (ASSERT): Likewise.
44677         * tests/test-striconv.c (ASSERT): Likewise.
44678         * tests/test-striconveh.c (ASSERT): Likewise.
44679         * tests/test-striconveha.c (ASSERT): Likewise.
44680         * tests/test-strsignal.c (ASSERT): Likewise.
44681         * tests/test-strstr.c (ASSERT): Likewise.
44682         * tests/test-strtod.c (ASSERT): Likewise.
44683         * tests/test-trunc1.c (ASSERT): Likewise.
44684         * tests/test-trunc2.c (ASSERT): Likewise.
44685         * tests/test-truncf1.c (ASSERT): Likewise.
44686         * tests/test-truncf2.c (ASSERT): Likewise.
44687         * tests/test-truncl.c (ASSERT): Likewise.
44688         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
44689         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
44690         * tests/test-vasnprintf.c (ASSERT): Likewise.
44691         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
44692         * tests/test-vasprintf.c (ASSERT): Likewise.
44693         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
44694         * tests/test-vprintf-posix.c (ASSERT): Likewise.
44695         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
44696         * tests/test-vsnprintf.c (ASSERT): Likewise.
44697         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
44698         * tests/test-wcwidth.c (ASSERT): Likewise.
44699         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
44700         * tests/test-xprintf-posix.c (ASSERT): Likewise.
44701         * tests/test-xvasprintf.c (ASSERT): Likewise.
44702         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
44703         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
44704         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
44705         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
44706         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
44707         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
44708         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
44709         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
44710         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
44711         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
44712         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
44713         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
44714         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
44715         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
44716         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
44717         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
44718         * tests/unictype/test-block_list.c (ASSERT): Likewise.
44719         * tests/unictype/test-block_of.c (ASSERT): Likewise.
44720         * tests/unictype/test-block_test.c (ASSERT): Likewise.
44721         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
44722         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
44723         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
44724         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
44725         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
44726         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
44727         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
44728         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
44729         * tests/unictype/test-combining.c (ASSERT): Likewise.
44730         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
44731         * tests/unictype/test-digit.c (ASSERT): Likewise.
44732         * tests/unictype/test-mirror.c (ASSERT): Likewise.
44733         * tests/unictype/test-numeric.c (ASSERT): Likewise.
44734         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
44735         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
44736         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
44737         * tests/unictype/test-scripts.c (ASSERT): Likewise.
44738         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
44739         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
44740         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
44741         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
44742         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
44743         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
44744         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
44745         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
44746         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
44747         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
44748         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
44749         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
44750         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
44751         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
44752         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
44753         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
44754         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
44755         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
44756         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
44757         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
44758         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
44759         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
44760         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
44761         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
44762         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
44763         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
44764         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
44765         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
44766         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
44767         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
44768         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
44769         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
44770         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
44771         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
44772         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
44773         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
44774         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
44775         Reported by Eric Blake.
44776
44777 2008-04-11  Bruno Haible  <bruno@clisp.org>
44778
44779         * lib/wchar.in.h: Tweak comment.
44780
44781 2008-04-11  Bruno Haible  <bruno@clisp.org>
44782
44783         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
44784         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
44785         gl_COMMON.
44786         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
44787
44788 2008-04-11  Bruno Haible  <bruno@clisp.org>
44789
44790         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
44791
44792 2008-04-11  Simon Josefsson  <simon@josefsson.org>
44793
44794         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
44795         of attempting to use non-existing /dev/*random.  Based on patch
44796         from Adam Strzelecki <ono@java.pl> in
44797         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
44798
44799 2008-04-08  Bruno Haible  <bruno@clisp.org>
44800
44801         Add tentative support for emx+gcc.
44802         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
44803         * lib/fpurge.c (fpurge): Likewise.
44804         * lib/freadable.c (freadable): Likewise.
44805         * lib/freadahead.c (freadahead): Likewise.
44806         * lib/freading.c (freading): Likewise.
44807         * lib/freadptr.c (freadptr): Likewise.
44808         * lib/freadseek.c (freadptrinc): Likewise.
44809         * lib/fseeko.c (rpl_fseeko): Likewise.
44810         * lib/fseterr.c (fseterr): Likewise.
44811         * lib/fwritable.c (fwritable): Likewise.
44812         * lib/fwriting.c (fwriting): Likewise.
44813         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
44814
44815 2008-04-09  Eric Blake  <ebb9@byu.net>
44816
44817         Avoid some autoconf warnings.
44818         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
44819         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
44820         * m4/afs.m4 (gl_AFS): Likewise.
44821         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
44822         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
44823         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44824         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
44825         (gl_INTEGER_TYPE_SUFFIX): Likewise.
44826         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
44827         (AC_CHECK_DECLS_ONCE): Likewise.
44828         Rename file...
44829         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
44830         gnulib-tool requires autoconf 2.59 or better.
44831         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
44832
44833 2008-04-08  Eric Blake  <ebb9@byu.net>
44834
44835         Use 'git describe --match' if present (added in git 1.5.5).
44836         * build-aux/git-version-gen: Limit result to tags that match 'v*'
44837         if possible.
44838
44839 2008-04-08  Bruno Haible  <bruno@clisp.org>
44840
44841         Add tentative support for OpenServer.
44842         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
44843         _ptr, _cnt.
44844         * lib/fpurge.c (fpurge): Likewise.
44845         * lib/freadable.c (freadable): Likewise.
44846         * lib/freadahead.c (freadahead): Likewise.
44847         * lib/freading.c (freading): Likewise.
44848         * lib/freadptr.c (freadptr): Likewise.
44849         * lib/freadseek.c (freadptrinc): Likewise.
44850         * lib/fseeko.c (rpl_fseeko): Likewise.
44851         * lib/fseterr.c (fseterr): Likewise.
44852         * lib/fwritable.c (fwritable): Likewise.
44853         * lib/fwriting.c (fwriting): Likewise.
44854         Reported by Roger Cornelius <rac@tenzing.org> and
44855         Brian K. White <brian@aljex.com>.
44856
44857 2008-04-06  Jim Meyering  <meyering@redhat.com>
44858
44859         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
44860
44861 2008-04-06  Bruno Haible  <bruno@clisp.org>
44862
44863         Avoid possible error with non-ASCII bytes in UTF-8 locales.
44864         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
44865         * tests/test-printf-posix.sh: Likewise.
44866         * tests/test-vfprintf-posix.sh: Likewise.
44867         * tests/test-vprintf-posix.sh: Likewise.
44868         * tests/test-xprintf-posix.sh: Likewise.
44869
44870 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44871
44872         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
44873         hide error from 'ls', needed on OS/2.
44874         Report by Elbert Pol <elbert.pol@gmail.com>.
44875
44876 2008-04-04  Eric Blake  <ebb9@byu.net>
44877
44878         Make test-fseeko.c failures meaningful.
44879         * tests/test-fseeko.c: Print line number on failure.
44880         * tests/test-fseek.c: Likewise.
44881         Reported by Nelson H. F. Beebe.
44882
44883         Improve strtod bug detection check.
44884         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
44885         required for Solaris 10.
44886         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
44887
44888 2008-04-04  Bruno Haible  <bruno@clisp.org>
44889
44890         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
44891         by m4/setenv.m4.
44892
44893 2008-04-03  Eric Blake  <ebb9@byu.net>
44894
44895         Ensure sane .version contents.
44896         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
44897         version string.
44898         * build-aux/git-version-gen: Improve documentation.
44899
44900         Make GNU make output nicer.
44901         * top/GNUmakefile [!_have-Makefile]: Add dependency on
44902         MAKECMDGOALS to enforce message for all command line targets.  Set
44903         srcdir for use in maint.mk.
44904
44905         Another maintainer tweak.
44906         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
44907         a target that regenerates version.
44908
44909 2008-04-03  Jim Meyering  <meyering@redhat.com>
44910
44911         vc-list-files: don't cause coreutils "make po-check" failure
44912         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
44913
44914 2008-04-03  Eric Blake  <ebb9@byu.net>
44915
44916         Allow VPATH usage of vc-list-files.
44917         * build-aux/vc-list-files (scriptversion): Add timestamp.
44918         (options): Add --help, --version, -C.
44919         (CVS): Support installed cvsu.
44920
44921 2008-04-02  Bruno Haible  <bruno@clisp.org>
44922
44923         Avoid some "statement with no effect" warnings from gcc.
44924         * tests/test-wctype.c (main): Explicitly ignore unused values.
44925         Reported by Jim Meyering.
44926
44927 2008-04-02  Jim Meyering  <meyering@redhat.com>
44928
44929         Avoid some warnings from "gcc -Wshadow".
44930         * tests/test-frexp.c (exp): Define to a different identifier.
44931         * tests/test-frexpl.c (exp): Likewise.
44932
44933 2008-04-03  Jim Meyering  <meyering@redhat.com>
44934
44935         bootstrap: remove dangling *.[ch] symlinks from lib
44936         * build-aux/bootstrap [dangling symlink removal]: Move find's
44937         -depth option to precede all others, to avoid a warning.
44938         Remove *.[ch] files too, and from "$source_base" (usually lib/).
44939
44940 2008-04-02  Bruno Haible  <bruno@clisp.org>
44941
44942         Avoid some warnings from "gcc -Wshadow".
44943         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
44944         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
44945         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
44946         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
44947         Reported by Jim Meyering.
44948
44949 2008-04-01  Bruno Haible  <bruno@clisp.org>
44950
44951         Fix test to work on IRIX 6.5 with cc.
44952         * tests/test-math.c (numeric_equal): New function.
44953         (main): Use it.
44954
44955 2008-04-01  Bruno Haible  <bruno@clisp.org>
44956
44957         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
44958
44959 2008-04-01  Bruno Haible  <bruno@clisp.org>
44960
44961         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
44962         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44963         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
44964         (Depends-on): Remove math.
44965
44966         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
44967         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44968         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
44969         (Depends-on): Remove math.
44970
44971         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
44972         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44973         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
44974         (Depends-on): Remove math.
44975         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
44976         (Depends-on): Remove math.
44977
44978         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
44979         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44980         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
44981         (Depends-on): Remove math.
44982         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
44983         (Depends-on): Remove math.
44984
44985         * tests/test-round1.c: Include nan.h.
44986         (main): Use NaNd instead of NAN.
44987         * modules/round-tests (Files): Add tests/nan.h.
44988
44989         * tests/test-trunc1.c: Include nan.h.
44990         (main): Use NaNd instead of NAN.
44991         * modules/trunc-tests (Files): Add tests/nan.h.
44992
44993         * tests/test-roundf1.c: Include nan.h.
44994         (main): Use NaNf instead of NAN.
44995         * modules/roundf-tests (Files): Add tests/nan.h.
44996
44997         * tests/test-truncf1.c: Include nan.h.
44998         (main): Use NaNf instead of NAN.
44999         * modules/truncf-tests (Files): Add tests/nan.h.
45000
45001         * tests/test-ceilf1.c: Include nan.h.
45002         (main): Use NaNf instead of NAN.
45003         * modules/ceilf-tests (Files): Add tests/nan.h.
45004
45005         * tests/test-floorf1.c: Include nan.h.
45006         (main): Use NaNf instead of NAN.
45007         * modules/floorf-tests (Files): Add tests/nan.h.
45008
45009         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45010         (main): Use NaNf instead of NAN.
45011         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45012
45013         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45014         (main): Use NaNd instead of NAN.
45015         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45016
45017         * tests/test-frexp.c: Include nan.h.
45018         (main): Use NaNd instead of NAN.
45019         * modules/frexp-tests (Files): Add tests/nan.h.
45020
45021         * lib/isnan.c: Don't include <math.h>.
45022         (FUNC): Don't use NAN macro.
45023         * modules/isnand-nolibm (Depends-on): Remove math.
45024         * modules/isnanf-nolibm (Depends-on): Remove math.
45025         * modules/isnanl (Depends-on): Remove math.
45026         * modules/isnanl-nolibm (Depends-on): Remove math.
45027
45028         * tests/nan.h: New file.
45029
45030 2008-04-01  Eric Blake  <ebb9@byu.net>
45031
45032         Fix typos.
45033         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45034         values to be the right type.
45035
45036         For now, cater to gnulib strtod inaccuracies.
45037         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45038         fractional results.  While not as nice from a QoI perspective, it
45039         is a quicker patch than correctly implementing decimal to binary
45040         rounding.
45041
45042 2008-03-31  Eric Blake  <ebb9@byu.net>
45043
45044         Guarantee a definition of NAN.
45045         * lib/math.in.h (NAN): Define if missing.
45046         * tests/test-math.c (main): Test it.
45047         * doc/posix-headers/math.texi (math.h): Document this.
45048         * lib/isnan.c (rpl_isnand): Use it.
45049         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45050         * tests/test-floorf1.c (NaN): Likewise.
45051         * tests/test-frexp.c (NaN): Likewise.
45052         * tests/test-isnand.c (NaN): Likewise.
45053         * tests/test-isnanf.c (NaN): Likewise.
45054         * tests/test-round1.c (NaN): Likewise.
45055         * tests/test-roundf1.c (NaN): Likewise.
45056         * tests/test-snprintf-posix.h (NaN): Likewise.
45057         * tests/test-sprintf-posix.h (NaN): Likewise.
45058         * tests/test-trunc1.c (NaN): Likewise.
45059         * tests/test-truncf1.c (NaN): Likewise.
45060         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45061         * tests/test-vasprintf-posix.c (NaN): Likewise.
45062         * modules/isnand-nolibm (Depends-on): Add math.
45063         * modules/isnanf-nolibm (Depends-on): Likewise.
45064         * modules/isnanl (Depends-on): Likewise.
45065         * modules/isnanl-nolibm (Depends-on): Likewise.
45066         * modules/snprintf-posix-tests (Depends-on): Likewise.
45067         * modules/sprintf-posix-tests (Depends-on): Likewise.
45068         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45069         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45070         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45071         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45072
45073 2008-03-31  Bruno Haible  <bruno@clisp.org>
45074
45075         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45076         * doc/posix-functions/strtod.texi: Likewise.
45077
45078 2008-03-31  Bruno Haible  <bruno@clisp.org>
45079
45080         * tests/test-strtod.c (main): Don't use C99 syntax.
45081
45082 2008-03-31  Bruno Haible  <bruno@clisp.org>
45083
45084         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45085         Reported by Eric Blake.
45086
45087 2008-03-31  Jim Meyering  <meyering@redhat.com>
45088
45089         Don't compare actual signbit return values.
45090         * tests/test-strtod.c (main): Rather, compare only their
45091         zero/non-zero nature.
45092
45093 2008-03-31  Eric Blake  <ebb9@byu.net>
45094
45095         More strtod documentation.
45096         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45097         failures as distinct bugs.
45098
45099 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45100
45101         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45102         Problem reported by Erik Benada in
45103         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45104
45105 2008-03-30  Bruno Haible  <bruno@clisp.org>
45106
45107         * tests/test-strtod.c: Add comments about which assertion fails on which
45108         platform.
45109         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45110
45111 2008-03-30  Eric Blake  <ebb9@byu.net>
45112
45113         Test signbit behavior on zeros.
45114         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45115         (test_signbitd, test_signbitl): Likewise.
45116
45117         More strtod touchups.
45118         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45119         sign of negative underflow, for now.  Use .5, not .1.
45120         * doc/posix-functions/strtod.texi (strtod): Mention these
45121         limitations.
45122         Reported by Jim Meyering.
45123
45124 2008-03-30  Bruno Haible  <bruno@clisp.org>
45125
45126         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45127         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45128
45129 2008-03-30  Bruno Haible  <bruno@clisp.org>
45130
45131         Avoid failure when attempting to return empty iconv results on some
45132         platforms.
45133         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45134         allocation, don't report ENOMEM when the resulting string is empty.
45135
45136 2008-03-30  Bruno Haible  <bruno@clisp.org>
45137
45138         Fix buffer overrun.
45139         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45140         Don't consider the width for tmp_length. Check count against tmp_length
45141         before doing the padding. Ensure enough allocation during padding.
45142
45143 2008-03-30  Eric Blake  <ebb9@byu.net>
45144
45145         strtod touchups.
45146         * lib/strtod.c (strtod): Avoid compiler warnings.
45147         Reported by Jim Meyering.
45148
45149 2008-03-30  Bruno Haible  <bruno@clisp.org>
45150
45151         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45152         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45153         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45154         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45155         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45156         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45157         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45158         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45159
45160         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45161         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45162         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45163         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45164         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45165         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45166         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45167         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45168
45169         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45170         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45171         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45172         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45173         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45174         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45175         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45176         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45177
45178         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45179         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45180
45181         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45182         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45183
45184         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45185         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45186
45187         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45188         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45189         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45190
45191         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45192         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45193         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45194
45195         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45196         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45197         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45198
45199         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45200         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45201         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45202
45203         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45204         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45205         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45206         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45207         (Depends-on): Add EOVERFLOW.
45208         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45209         (Depends-on): Add EOVERFLOW.
45210         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45211         (Depends-on): Add EOVERFLOW.
45212         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45213         (Depends-on): Add EOVERFLOW.
45214         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45215         (Depends-on): Add EOVERFLOW.
45216         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45217         (Depends-on): Add EOVERFLOW.
45218         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45219         (Depends-on): Add EOVERFLOW.
45220         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45221         (Depends-on): Add EOVERFLOW.
45222
45223         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45224         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45225         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45226
45227         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45228         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45229         * modules/snprintf (Depends-on): Add EOVERFLOW.
45230
45231         * lib/poll.c (EOVERFLOW): Remove fallback.
45232         * modules/poll (Depends-on): Add EOVERFLOW.
45233
45234         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45235         * modules/getugroups (Depends-on): Add EOVERFLOW.
45236
45237         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45238         * modules/getdelim (Depends-on): Add EOVERFLOW.
45239
45240         * lib/ftell.c (EOVERFLOW): Remove fallback.
45241         * modules/ftell (Depends-on): Add EOVERFLOW.
45242
45243         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45244         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45245         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45246
45247         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45248
45249         * modules/EOVERFLOW-tests: New file.
45250         * tests/test-EOVERFLOW.c: New file.
45251
45252         * modules/EOVERFLOW: New file.
45253         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45254
45255 2008-03-30  Bruno Haible  <bruno@clisp.org>
45256
45257         Fix bug introduced on 2007-06-10.
45258         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45259         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45260
45261 2008-03-30  Bruno Haible  <bruno@clisp.org>
45262
45263         Improve freadseek's efficiency after ungetc.
45264         * lib/freadseek.c: Include freadahead.h.
45265         (freadptrinc): New function, extracted from freadseek.
45266         (freadseek): Use it in a loop. Use freadahead to determine the number
45267         of loop iterations.
45268         * modules/freadseek (Depends-on): Add freadahead.
45269         (configure.ac): Require AC_C_INLINE.
45270
45271 2008-03-30  Bruno Haible  <bruno@clisp.org>
45272
45273         * lib/freadseek.c (freadseek): Don't ignore the return value of
45274         freadptr.
45275
45276 2008-03-29  Eric Blake  <ebb9@byu.net>
45277
45278         Add hex float support.
45279         * modules/strtod (Depends-on): Add c-ctype.
45280         (Link): Mention POW_LIB.
45281         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45282         whitespace between 'e' and exponent.
45283         * tests/test-strtod.c (main): Enable hex float tests.
45284         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45285         now provides.
45286
45287         Document various strtod bugs, with some fixes.
45288         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45289         "-0x", "inf", "nan", and hex constants.
45290         * doc/posix-functions/atof.texi (atof): Likewise.
45291         * modules/stdlib (Makefile.am): Support strtod.
45292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45293         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45294         detect additional strtod bugs.
45295         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45296         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45297         bool where appropriate.  Parse 'inf' and 'nan'.
45298         * tests/test-strtod.c: New file.
45299         * modules/strtod (Depends-on): Add stdbool, stdlib.
45300         (configure.ac): Turn on module indicator.
45301         * modules/strtod-tests: New module.
45302
45303 2008-03-29  Eric Blake  <ebb9@byu.net>
45304
45305         Fix ftell on mingw.
45306         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45307         * modules/ftell-tests (Depends-on): Add binary-io.
45308         * modules/ftello-tests (Depends-on): Likewise.
45309         * tests/test-ftell.c (main): Enhance test to cover behavior after
45310         ungetc.  Enforce binary mode.
45311         * tests/test-ftello.c (main): Likewise.
45312
45313         Pass test-freadseek on cygwin.
45314         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45315         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45316         ungetc buffer.
45317
45318         * tests/test-fflush2.c (main): Fix typo.
45319
45320 2008-03-29  Bruno Haible  <bruno@clisp.org>
45321
45322         * tests/test-fflush2.c (main): Temporarily disable the contents of
45323         this test.
45324         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45325         Reported by Eric Blake.
45326
45327 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45328
45329         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45330         (GC_SHA224_DIGEST_SIZE): Add.
45331
45332         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45333         (gc_hash_digest_length): Likewise.
45334         (gc_hash_buffer): Likewise.
45335
45336 2008-03-25  Bruno Haible  <bruno@clisp.org>
45337
45338         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45339         detail which gettext release to use.
45340         Reported by Simon Josefsson.
45341
45342 2008-03-26  Jim Meyering  <meyering@redhat.com>
45343
45344         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45345         * modules/gnumakefile (clean-GNUmakefile): Also, use
45346         test ... && ... || : syntax rather than if-then ... fi.
45347
45348         gnumakefile: Don't double-quote-expand $(VPATH) value.
45349         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45350
45351 2008-03-24  Eric Blake  <ebb9@byu.net>
45352
45353         Alter GNUmakefile to install into top directory.
45354         * modules/maintainer-makefile: Split, and add dependency...
45355         * modules/gnumakefile: to this new module.
45356         * build-aux/GNUmakefile: Move...
45357         * top/GNUmakefile: ...here.
45358         * build-aux/maint.mk: Move...
45359         * top/maint.mk: ...here.
45360         * MODULES.html.sh (Support for maintaining...): Document new
45361         module.
45362
45363 2008-03-23  Bruno Haible  <bruno@clisp.org>
45364
45365         * gnulib-tool: New options --vc-files, --no-vc-files.
45366         (func_usage): Document them.
45367         (vc_files): New variable.
45368         (func_import): Consider vc_files.
45369         (func_create_testdir): Set vc_files to empty.
45370         Suggested by Jim Meyering and Karl Berry.
45371
45372 2008-03-23  Bruno Haible  <bruno@clisp.org>
45373
45374         Fix regex compilation error on HP-UX 11.
45375         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45376         * modules/regex (Files): Add m4/mbstate_t.m4.
45377         Reported by Ton Voon <ton.voon@altinity.com>.
45378
45379 2008-03-23  Bruno Haible  <bruno@clisp.org>
45380
45381         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45382
45383 2008-03-23  Eric Blake  <ebb9@byu.net>
45384             Bruno Haible  <bruno@clisp.org>
45385
45386         Install files from top/ in the destination directory.
45387         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45388         augmentation also for the files from top/.
45389         (func_import, func_create_testdir): Rewrite file names:
45390         top/filename -> filename.
45391
45392 2008-03-23  Bruno Haible  <bruno@clisp.org>
45393
45394         Tweak "gnulib --version" output.
45395         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45396
45397 2008-03-23  Bruno Haible  <bruno@clisp.org>
45398
45399         Tweak "gnulib --version" output.
45400         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45401         rather than contents of ChangeLog, when possible.
45402
45403 2008-03-21  Eric Blake  <ebb9@byu.net>
45404
45405         More --version tweaks.
45406         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45407         date of last ChangeLog entry.
45408
45409 2008-03-21  Jim Meyering  <meyering@redhat.com>
45410
45411         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45412
45413 2008-03-20  Eric Blake  <ebb9@byu.net>
45414
45415         VPATH fix.
45416         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45417
45418 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45419
45420         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45421         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45422
45423 2008-03-20  Eric Blake  <ebb9@byu.net>
45424
45425         Sync GNUmakefile with coreutils.
45426         * build-aux/GNUmakefile (have-Makefile): Rename...
45427         (_have-Makefile): ...to this, for namespace consideration.
45428         (GNUmakefile.cfg): Include, if present.
45429         (_autoreconf): Define a default.
45430         (_is-dist-target): New rule for rebuilds to pick up intra-release
45431         version.
45432         (maint-cfg.mk): Rename...
45433         (cfg.mk): ...to this.
45434
45435 2008-03-18  Jim Meyering  <meyering@redhat.com>
45436
45437         New script and module: mktempd
45438         * MODULES.html.sh (maint+release support): Add mktempd.
45439         * build-aux/mktempd: New file.
45440         * modules/mktempd: New file.
45441
45442 2008-03-15  Jim Meyering  <meyering@redhat.com>
45443
45444         Undo last change.
45445         * lib/sha1.c, lib/md5.c: 63 != ~63.
45446         Reported by Andreas Schwab.
45447
45448         sha1.c, md5.c: Hoist a redundant expression.
45449         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45450         "ctx->buflen" only once, before calling *_process_block.
45451         * lib/md5.c (md5_process_bytes): Likewise.
45452
45453 2008-03-14  Eric Blake  <ebb9@byu.net>
45454
45455         Bump copyright year in files generated by gnulib-tool.
45456         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
45457         gnulib-tool, rather than hard-coding it.
45458
45459         Fix 'gnulib-tool --version' output to work with git.
45460         * gnulib-tool (func_gnulib_dir): New function, extracted from...
45461         (startup): ...here.
45462         (func_version): Use it to invoke git-version-gen, rather than
45463         relying on CVS keyword expansion.  Modernize wording.
45464         (cvsdatestamp, last_checkin_date, version): Kill unused
45465         variables.
45466
45467 2008-03-12  Jim Meyering  <meyering@redhat.com>
45468
45469         Recognize optional cast of the argument to free.
45470         * build-aux/useless-if-before-free: Update regexps.
45471
45472         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45473
45474 2008-03-11  Bruno Haible  <bruno@clisp.org>
45475
45476         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45477         by a single package.
45478         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45479         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45480         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45481         Reported by Sam Steingold <sds@gnu.org>.
45482
45483 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45484
45485         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45486         repositories.
45487
45488 2008-03-11  Bruno Haible  <bruno@clisp.org>
45489
45490         Avoid conflicts between local macro definitions.
45491         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45492         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45493
45494 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45495             Bruno Haible  <bruno@clisp.org>
45496
45497         Make va_copy work with some version of xlc on AIX 5.1.
45498         * lib/stdarg.in.h: New file.
45499         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45500         On AIX, use a <stdarg.h> file substitute.
45501         * modules/stdarg (Files): Add lib/stdarg.in.h.
45502         (Depends-on): Add include_next.
45503         (Makefile.am): Build a stdarg.h substitute if requested.
45504         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45505
45506 2008-03-10  Bruno Haible  <bruno@clisp.org>
45507
45508         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45509         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45510         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45511
45512 2008-03-10  Bruno Haible  <bruno@clisp.org>
45513
45514         * modules/stdlib (Depends-on): Add include_next, remove
45515         absolute-header.
45516
45517 2008-03-09  Bruno Haible  <bruno@clisp.org>
45518
45519         * lib/freadahead.h (freadahead): Document more precisely.
45520         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45521         the sum of both buffer sizes.
45522         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45523         * NEWS: Document the change.
45524
45525 2008-03-09  Bruno Haible  <bruno@clisp.org>
45526
45527         Extend freadptr to return also the buffer size.
45528         * lib/freadptr.h (freadptr): Add sizep argument.
45529         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45530         (freadptr): Add sizep argument. Determine buffer size like freadahead
45531         does.
45532         * tests/test-freadptr.c: Don't include freadahead.h.
45533         (main): Adapt for new calling convention of freadptr.
45534         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45535         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45536         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
45537         tests/test-freadptr2.sh.
45538         (Depends): Remove freadahead.
45539         (TESTS): Add test-freadptr2.sh.
45540         (check_PROGRAMS): Add test-freadptr2.
45541
45542 2008-03-09  Bruno Haible  <bruno@clisp.org>
45543
45544         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
45545         Report and solution by Simon Josefsson.
45546
45547 2008-03-06  Bruno Haible  <bruno@clisp.org>
45548
45549         Make fflush after ungetc work on BSD platforms.
45550         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
45551         * tests/test-fflush2.c: New file.
45552         * tests/test-fflush2.sh: New file.
45553         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
45554         tests/test-fflush2.c.
45555         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
45556         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
45557
45558 2008-03-06  Eric Blake  <ebb9@byu.net>
45559
45560         Likewise for ftello.
45561         * modules/ftello (Dependencies): Add extensions.
45562         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
45563
45564 2008-03-06  Bruno Haible  <bruno@clisp.org>
45565
45566         * modules/fseeko (Dependencies): Add extensions.
45567         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
45568         Needed on glibc systems.
45569
45570 2008-03-06  Bruno Haible  <bruno@clisp.org>
45571
45572         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
45573         email address.
45574         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45575
45576 2008-03-06  Bruno Haible  <bruno@clisp.org>
45577
45578         * users.txt: Add libgnupdf.
45579
45580 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45581
45582         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
45583         (Header File Substitutes, Function Substitutes,
45584         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
45585         (Build robot for gnulib): Fix typo.
45586
45587 2008-03-06  Bruno Haible  <bruno@clisp.org>
45588
45589         * doc/gnulib-tool.texi (VCS Issues): Small updates.
45590         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45591
45592 2008-03-06  Bruno Haible  <bruno@clisp.org>
45593
45594         * doc/func.texi: New file, extracted from doc/gnulib.texi.
45595         * doc/gnulib.texi: Include it.
45596
45597 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45598
45599         * modules/func (License): Change license to unlimited; there was
45600         no LGPL parts in the module anyway.
45601
45602 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45603
45604         * modules/__func__: Renamed to modules/func.
45605         * modules/__func__-tests: Renamed to modules/func-tests.
45606         * tests/test-__func__.c: Renamed to tests/test-func.c.
45607         * m4/__func__.m4: Renamed to m4/func.m4.
45608         * doc/gnulib.texi (__func__): Section renamed to func.
45609         Suggested by Eric Blake <ebb9@byu.net>.
45610
45611 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45612
45613         * doc/gnulib.texi (__func__): Use C99 terminology when talking
45614         about __func__.  Make example self-contained.  Suggested by Eric
45615         Blake <ebb9@byu.net>.
45616
45617         * tests/test-__func__.c (main): Avoid extraneous () around __func.
45618         Suggested by Eric Blake <ebb9@byu.net>.
45619
45620 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45621
45622         * modules/__func__: New file.
45623         * modules/__func__-tests: New file.
45624         * tests/test-__func__.c: New file.
45625         * m4/__func__.m4: New file.
45626         * doc/gnulib.texi (__func__): Document __func__ module.
45627
45628 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45629
45630         * modules/byteswap (License): Re-license as LGPLv2+.
45631
45632 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45633
45634         * doc/Makefile: Add pdf target.
45635
45636 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45637
45638         * modules/inline (License): Use 'unlimited', since there are only
45639         *.m4 files in this module.
45640
45641 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45642             Bruno Haible  <bruno@clisp.org>
45643
45644         Add support for HP C 7.1 on OpenVMS 8.3.
45645         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
45646
45647 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45648
45649         Update VMS specifics.
45650         * lib/getopt.c [VMS]: Remove include of unixlib.h.
45651
45652 2008-03-02  Jim Meyering  <meyering@redhat.com>
45653
45654         Remove the last dependency on the "free" module.
45655         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
45656         Reported by Bob Proulx.
45657
45658         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
45659
45660         Remove useless "if" tests before free.  Deprecate "free" module.
45661         * doc/posix-functions/free.texi: Mention that this
45662         module is no longer useful.
45663         * modules/free (Notice): Say this module is obsolete.
45664         * modules/readutmp (Depends-on): Remove free.
45665         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
45666         * lib/putenv.c (putenv): Likewise.
45667         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
45668         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
45669         * tests/test-c-strcasestr.c (main): Likewise.
45670         * tests/test-c-strstr.c (main): Likewise.
45671         * tests/test-mbscasestr1.c (main): Likewise.
45672         * tests/test-mbscasestr2.c (main): Likewise.
45673         * tests/test-mbsstr1.c (main): Likewise.
45674         * tests/test-mbsstr2.c (main): Likewise.
45675         * tests/test-memmem.c (main): Likewise.
45676         * tests/test-strcasestr.c (main): Likewise.
45677         * tests/test-striconv.c (main): Likewise.
45678         * tests/test-striconveh.c (main): Likewise.
45679         * tests/test-striconveha.c (main): Likewise.
45680         * tests/test-strstr.c (main): Likewise.
45681
45682         * build-aux/git-version-gen: Adjust a comment and the Usage string.
45683
45684         bootstrap: sync from coreutils again
45685         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
45686
45687 2008-03-01  Jim Meyering  <meyering@redhat.com>
45688
45689         bootstrap: sync from coreutils
45690         * build-aux/bootstrap (update_po_files): Copy a .po file into place
45691         also when the target doesn't exist.
45692
45693 2008-03-01  Eric Blake  <ebb9@byu.net>
45694
45695         Fix bugs in last patch.
45696         * lib/memchr2.c (memchr2): Fix typo.
45697         * tests/test-memchr2.c: Test previous bug, and don't use GNU
45698         extension.
45699         Reported by Bruce Korb.
45700
45701         New module 'memchr2'.
45702         * modules/memchr2: New file.
45703         * modules/memchr2-tests: Likewise.
45704         * lib/memchr2.h: Likewise.
45705         * lib/memchr2.c: Likewise, based on memchr.c.
45706         * tests/test-memchr2.c: New test.
45707         * MODULES.html.sh (String handling): Add memchr2.
45708
45709 2008-02-29  Bruno Haible  <bruno@clisp.org>
45710
45711         * modules/freadseek-tests: New file.
45712         * tests/test-freadseek.sh: New file.
45713         * tests/test-freadseek.c: New file.
45714
45715         New module 'freadseek'.
45716         * modules/freadseek: New file.
45717         * lib/freadseek.h: New file.
45718         * lib/freadseek.c: New file.
45719         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
45720
45721 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45722
45723         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
45724         wydawca.
45725
45726         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
45727         program_invocation_name and program_invocation_short_name are
45728         present.
45729
45730 2008-02-28  Bruno Haible  <bruno@clisp.org>
45731
45732         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
45733         * tests/test-freadptr.sh: Also test non-seekable stdin.
45734
45735 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
45736
45737         * build-aux/bootstrap (source_base, m4_base)
45738         (doc_base, tests_base): New variables.
45739         (gnulib_tool_options): Do not hardcode base directories, use
45740         the above variables instead.
45741
45742 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
45743
45744         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
45745
45746 2008-02-28  Bruno Haible  <bruno@clisp.org>
45747
45748         * modules/freadptr-tests: New file.
45749         * tests/test-freadptr.sh: New file.
45750         * tests/test-freadptr.c: New file.
45751
45752         New module 'freadptr'.
45753         * modules/freadptr: New file.
45754         * lib/freadptr.h: New file.
45755         * lib/freadptr.c: New file.
45756         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
45757
45758 2008-02-26  Karl Berry  <karl@freefriends.org>
45759
45760         Sync from Libtool:
45761         * libltdl/argz.c (argz_add, argz_count): New functions.
45762         * libltdl/argz.in.h: Declare them.
45763         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
45764
45765 2008-02-22  Bruno Haible  <bruno@clisp.org>
45766
45767         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
45768         is a pointer type.  Needed for HP-UX 10.
45769         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
45770         * doc/posix-functions/gmtime_r.texi: Likewise.
45771         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45772
45773 2008-02-24  Bruno Haible  <bruno@clisp.org>
45774
45775         * modules/environ-tests: New file.
45776         * tests/test-environ.c: New file.
45777
45778         New module 'environ'.
45779         * modules/environ: New file.
45780         * lib/unistd.in.h (environ): New declaration.
45781         * m4/environ.m4: New file.
45782         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
45783         after use.
45784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
45785         HAVE_DECL_ENVIRON.
45786         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
45787         HAVE_DECL_ENVIRON.
45788         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
45789         wrong claim that 'environ' is missing on some systems.
45790         * modules/execute (Depends-on): Add environ.
45791         * lib/execute.c (environ): Remove fallback declaration.
45792         * modules/pipe (Depends-on): Add environ.
45793         * lib/pipe.c (environ): Remove fallback declaration.
45794         * modules/setenv (Depends-on): Add environ.
45795         * lib/setenv.c (environ): Remove fallback declaration.
45796         * modules/unsetenv (Depends-on): Add environ.
45797         * lib/unsetenv.c (environ): Remove fallback declaration.
45798         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
45799         m4/environ.m4.
45800         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
45801         (gl_PREREQ_UNSETENV): Likewise.
45802
45803 2008-02-24  Bruno Haible  <bruno@clisp.org>
45804
45805         * doc/posix-functions/environ.texi: Document the MacOS X problem.
45806
45807 2008-02-20  Bob Proulx  <bob@proulx.com>
45808
45809         Enable use of older two part flavor 'git describe'.
45810         * build-aux/git-version-gen: If using the older two part flavor of
45811         git version then recreate the third part now present in the
45812         newer three part flavor of git describe.
45813
45814 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
45815
45816         * lib/fts.c (fts_build): Typo correction to comment.
45817
45818 2008-02-17  Bruno Haible  <bruno@clisp.org>
45819
45820         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
45821         generating no-op conflicts.
45822
45823 2008-02-17  Bruno Haible  <bruno@clisp.org>
45824
45825         Speed up by 10%.
45826         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
45827         result_entries, rather than an index-based loop.
45828
45829 2008-02-17  Bruno Haible  <bruno@clisp.org>
45830
45831         Speed up by 25%.
45832         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
45833         'hashcode_cached'.
45834         (entry_create): New function.
45835         (entry_hashcode): Use the cached hashcode if possible.
45836         (read_changelog_file, try_split_merged_entry): Use entry_create.
45837
45838 2008-02-17  Bruno Haible  <bruno@clisp.org>
45839
45840         Speed up from O(n^2) to O(n) for long ChangeLog files.
45841         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
45842         (read_changelog_file): Change implementation of entries_reversed list
45843         to rbtreehash.
45844         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
45845
45846 2008-02-17  Bruno Haible  <bruno@clisp.org>
45847
45848         New option --split-merged-entry.
45849         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
45850         (find_paragraph_end, try_split_merged_entry): New functions.
45851         (long_options): Add option --split-merged-entry.
45852         (usage): Document option --split-merged-entry.
45853         (main): Implement option --split-merged-entry.
45854         Reported by Eric Blake.
45855
45856 2008-02-17  Bruno Haible  <bruno@clisp.org>
45857
45858         * lib/git-merge-changelog.c: Include c-strstr.h.
45859         (main): Support the "git pull --rebase" situation.
45860         * modules/git-merge-changelog (Depends-on): Add c-strstr.
45861         Reported by Eric Blake.
45862
45863 2008-02-16  Eric Blake  <ebb9@byu.net>
45864
45865         Avoid doubling \ in common case of "c-maybe" quoting style.
45866         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
45867         eliding outer quotes.
45868         * lib/quotearg.h: Document this.
45869         * tests/test-quotearg.c (result_strings, inputs, results_g)
45870         (flag_results, locale_results): Test it by adding a new string to
45871         each test group.
45872         (compare_strings): Test new string.
45873
45874 2008-02-13  Eric Blake  <ebb9@byu.net>
45875
45876         Avoid trigraph quoting in default output.
45877         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
45878         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
45879         unless explicitly requested.
45880         * tests/test-quotearg.c (flag_results, main): Add additional tests.
45881
45882 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
45883
45884         Don't rely on signed integer overflowing to negative value.
45885         * lib/getugroups.c (getugroups): Include <limits.h>.
45886         Instead, compare against INT_MAX, and increment only if the test passes.
45887
45888 2008-02-13  Jim Meyering  <meyering@redhat.com>
45889         and Eric Blake  <ebb9@byu.net>
45890
45891         Avoid shadowing warning and compile errors on Linux.
45892         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
45893         forwarding macros on Linux.
45894         (dcgettext): Define a stub, for Linux.
45895         (results_g, main): Avoid warnings.
45896
45897 2008-02-12  Eric Blake  <ebb9@byu.net>
45898
45899         Silence warning in last patch.
45900         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
45901
45902         Quotearg part 4: add tests, fix c-maybe colon quoting.
45903         * lib/quotearg.h: Improve documentation.
45904         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
45905         escapes when adding outer quotes.  When quoting trigraphs, use
45906         valid C notation.  When quoting NUL, omit extra characters if next
45907         character is not digit.  Alter prototype.
45908         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
45909         callers.
45910         * modules/quotearg-tests: New module.
45911         * tests/test-quotearg.c: New test.
45912
45913 2008-02-07  Eric Blake  <ebb9@byu.net>
45914
45915         Quotearg part 3: add flag to control outer quote elision.
45916         * lib/quotearg.h (c_maybe_quoting_style): New style.
45917         (enum quoting_flags): Better documentation of flags.
45918         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
45919         c-maybe style.
45920         (quotearg_buffer_restyled): Handle new flag to elide outer
45921         quotes.
45922
45923         Quotearg part 2: add flag that can control NUL elision.
45924         * lib/quotearg.h (set_quoting_flags): New prototype.
45925         * lib/quotearg.c (struct quoting_options): Add flag field.
45926         (set_quoting_flags): New function.
45927         (quotearg_buffer_restyled): Add flags parameter.
45928         (quotearg_alloc_mem): Set the flag if length cannot be returned.
45929         (quotearg_n_options): Set the flag, since length cannot be
45930         returned.
45931         (quoting_options_from_style): Default flags correctly.
45932
45933         Quotearg part 1: more wrappers, restore quotearg_char state.
45934         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
45935         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
45936         (quotearg_colon_mem): New wrappers.
45937         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
45938         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
45939         functions.
45940         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
45941         (quotearg_colon_mem): New functions.
45942
45943 2008-02-11  Bruno Haible  <bruno@clisp.org>
45944
45945         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
45946         library in the current directory: it does not work with parallel make.
45947         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45948
45949 2008-02-11  Bruno Haible  <bruno@clisp.org>
45950
45951         * .gitattributes: New file.
45952
45953 2008-02-11  Jim Meyering  <meyering@redhat.com>
45954
45955         useless-if-before-free: Fix reversed exit values.
45956         * build-aux/useless-if-before-free: Use correct values
45957         for EXIT_MATCH and EXIT_NO_MATCH.
45958
45959         * build-aux/useless-if-before-free: Close stdout carefully.
45960
45961 2008-02-10  Bruno Haible  <bruno@clisp.org>
45962
45963         New module 'git-merge-changelog'.
45964         * modules/git-merge-changelog: New file.
45965         * lib/git-merge-changelog.c: New file.
45966
45967 2008-02-10  Jim Meyering  <meyering@redhat.com>
45968
45969         useless-if-before-free: New option: --list (-l).
45970
45971         useless-if-before-free: Don't exit immediately upon open failure.
45972         * build-aux/useless-if-before-free: Exit 2 for errors.
45973         Upon failure to open a file, don't exit immediately.
45974         Rather, just warn and continue with any remaining files.
45975
45976 2008-02-10  Bruno Haible  <bruno@clisp.org>
45977
45978         New abstract list operation 'node_set_value'.
45979         * lib/gl_list.h (gl_list_node_set_value): New function.
45980         (struct gl_list_implementation): New field node_set_value.
45981         * lib/gl_list.c (gl_list_node_set_value): New function.
45982         * lib/gl_array_list.c (gl_array_node_set_value): New function.
45983         (gl_array_list_implementation): Update.
45984         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
45985         (gl_carray_list_implementation): Update.
45986         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
45987         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45988         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45989         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
45990         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45991         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45992         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45993         Update.
45994         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
45995         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
45996         (gl_sublist_list_implementation): Update.
45997
45998 2008-02-10  Bruno Haible  <bruno@clisp.org>
45999
46000         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46001         Needed when ELEMENT is #defined to 'some_type *'.
46002
46003 2008-02-10  Jim Meyering  <meyering@redhat.com>
46004
46005         New script and module: useless-if-before-free
46006         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46007         * build-aux/useless-if-before-free: New file.
46008         * modules/useless-if-before-free: New file.
46009
46010         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46011
46012         xstrtol_error: Fix typo.
46013         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46014         s/exit_failure/exit_status/.
46015
46016 2008-02-09  Jim Meyering  <meyering@redhat.com>
46017
46018         New script and module: gitlog-to-changelog
46019         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46020         * modules/gitlog-to-changelog: New file.
46021         * build-aux/gitlog-to-changelog: New file.
46022
46023 2008-02-08  Jim Meyering  <meyering@redhat.com>
46024
46025         Avoid two "parameter unused" warnings.
46026         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46027         Mark "st" as used.
46028
46029         Use "git COMMAND", not "git-COMMAND".
46030         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46031         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46032         * build-aux/git-version-gen: Use "git status", not "git-status".
46033
46034 2008-02-07  Bruno Haible  <bruno@clisp.org>
46035
46036         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46037         Avoids a crash on Windows Vista.
46038         Reported by Adam Strzelecki <ono@java.pl> via
46039         Simon Josefsson <simon@josefsson.org>.
46040
46041 2008-02-06  Bruno Haible  <bruno@clisp.org>
46042
46043         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46044         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46045         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46047         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46048         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46049         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46050         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46051         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46052         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46053         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46054         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46055         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46056         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46057         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46058         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46059         left-adjust flag.
46060         * tests/test-snprintf-posix.h (test_function): Likewise.
46061         * tests/test-sprintf-posix.h (test_function): Likewise.
46062         * tests/test-vasprintf-posix.c (test_function): Likewise.
46063         * doc/posix-functions/fprintf.texi: Update.
46064         * doc/posix-functions/printf.texi: Update.
46065         * doc/posix-functions/snprintf.texi: Update.
46066         * doc/posix-functions/sprintf.texi: Update.
46067         * doc/posix-functions/vfprintf.texi: Update.
46068         * doc/posix-functions/vprintf.texi: Update.
46069         * doc/posix-functions/vsnprintf.texi: Update.
46070         * doc/posix-functions/vsprintf.texi: Update.
46071         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46072
46073 2008-02-06  Bruno Haible  <bruno@clisp.org>
46074
46075         Fix bug introduced on 2008-01-26.
46076         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46077
46078 2008-02-06  Bruno Haible  <bruno@clisp.org>
46079
46080         Fix bug introduced on 2007-06-10.
46081         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46082         !NEED_PRINTF_FLAG_ZERO.
46083
46084 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46085
46086         getloadavg: use libperfstat on AIX5
46087         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46088
46089 2008-02-03  Bruno Haible  <bruno@clisp.org>
46090
46091         * lib/diffseq.h: Add comments about required #includes.
46092         Reported by Michael Biggs <gnulib@doubleplum.net>.
46093
46094 2008-02-01  Bruno Haible  <bruno@clisp.org>
46095
46096         * users.txt: Add gnuit.
46097
46098 2008-01-31  Bruno Haible  <bruno@clisp.org>
46099
46100         * lib/md4.c (set_uint32): Mark as inline.
46101         * lib/md5.c (set_uint32): Likewise.
46102         * lib/sha1.c (set_uint32): Likewise.
46103         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46104         * m4/md5.m4 (gl_MD5): Likewise.
46105         * m4/sha1.m4 (gl_SHA1): Likewise.
46106
46107 2008-01-31  Jim Meyering  <meyering@redhat.com>
46108
46109         Use "sizeof VAR", rather than a literal "4".
46110         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46111         * lib/md4.c (md4_read_ctx): Likewise.
46112         * lib/sha1.c (sha1_read_ctx): Likewise.
46113
46114 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46115
46116         * tests/test-sha1.c: New file, based on test-md5.c.
46117
46118         * modules/crypto/sha1-tests: New file.
46119
46120 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46121
46122         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46123
46124 2008-01-31  Jim Meyering  <meyering@redhat.com>
46125
46126         Prefer "sizeof v" over the equivalent "4".
46127         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46128         * lib/md5.c (set_uint32): Likewise.
46129         * lib/sha1.c (set_uint32): Likewise.
46130
46131 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46132
46133         * lib/sha1.c (set_uint32): Mark function as static.
46134
46135 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46136
46137         md2: clarify comments to say that alignment is not required.
46138         * lib/md2.h: Remove warning about alignment in comment.
46139         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46140         never been required.
46141
46142 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46143
46144         md4: adapt alignment constraint fix from sha1.
46145         * lib/md4.c (set_uint32): New function, from sha1.c
46146         (md4_read_ctx): Use it.
46147         (md4_finish_ctx): Doc fix.
46148         * lib/md4.h: Doc fix.
46149
46150 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46151
46152         md5: adapt alignment constraint fix from sha1.
46153         * lib/md5.c (set_uint32): New function, from sha1.c
46154         (md5_read_ctx): Use it.
46155         (md5_finish_ctx): Doc fix.
46156         * lib/md5.h: Doc fix.
46157
46158 2008-01-30  Peter Palfrader  <weasel@debian.org>
46159
46160         sha1: remove the result buffer alignment constraint
46161         * lib/sha1.c (set_uint32): New function.
46162         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46163         constraint.
46164         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46165         * lib/sha1.h: Likewise.
46166
46167 2008-01-30  Andreas Schwab  <schwab@suse.de>
46168             Bruno Haible  <bruno@clisp.org>
46169
46170         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46171         correct definition of LDBL_MIN_EXP.
46172
46173 2008-01-30  Karl Berry  <karl@gnu.org>
46174
46175         * config/srclist-update: try to preserve x bit on updates.
46176         * config/srclistvars.sh: update for karl.
46177
46178 2008-01-29  Jim Meyering  <meyering@redhat.com>
46179
46180         vasnprintf.c: Avoid warning about unused label
46181         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46182         "overflow" label definition and associated code with the
46183         same cpp condition that guards the sole use of that label.
46184
46185 2008-01-26  Bruno Haible  <bruno@clisp.org>
46186
46187         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46188         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46189         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46190         * lib/isnanl-nolibm.h (isnanl): Likewise.
46191         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46192
46193 2008-01-26  Bruno Haible  <bruno@clisp.org>
46194
46195         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46196         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46197
46198 2008-01-26  Bruno Haible  <bruno@clisp.org>
46199
46200         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46201         GCC >= 4.0 built-in.
46202         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46203
46204 2008-01-26  Bruno Haible  <bruno@clisp.org>
46205
46206         Rename isnan, applicable to 'double' only, to isnand.
46207         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46208         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46209         (configure.ac): Update.
46210         (Include): Replace "isnan.h" with "isnand.h".
46211         * m4/isnand.m4: Renamed from m4/isnan.m4.
46212         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46213         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46214         instead of isnan.c.
46215         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46216         instead of HAVE_ISNAN_IN_LIBC.
46217         (isnand): Renamed from isnan.
46218         * lib/isnand.c: New file.
46219         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46220         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46221         (Makefile.am): Update.
46222         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46223         Include isnand.h instead of isnan.h.
46224         (main): Test isnand instead of isnan.
46225         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46226         isnan-nolibm.
46227         * modules/frexp (Depends-on): Likewise.
46228         * modules/frexp-tests (Depends-on): Likewise.
46229         * modules/frexp-nolibm (Depends-on): Likewise.
46230         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46231         * modules/isfinite (Depends-on): Likewise.
46232         * modules/round-tests (Depends-on): Likewise.
46233         * modules/signbit (Depends-on): Likewise.
46234         * modules/signbit-tests (Depends-on): Likewise.
46235         * modules/snprintf-posix (Depends-on): Likewise.
46236         * modules/sprintf-posix (Depends-on): Likewise.
46237         * modules/trunc-tests (Depends-on): Likewise.
46238         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46239         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46240         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46241         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46242         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46243         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46244         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46245         * modules/vasnprintf-posix (Depends-on): Likewise.
46246         * modules/vasprintf-posix (Depends-on): Likewise.
46247         * modules/vfprintf-posix (Depends-on): Likewise.
46248         * modules/vsnprintf-posix (Depends-on): Likewise.
46249         * modules/vsprintf-posix (Depends-on): Likewise.
46250         * lib/frexp.c: Include isnand.h instead of isnan.h.
46251         (ISNAN): Set to isnand instead of isnan.
46252         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46253         (gl_isfinited): Use isnand instead of isnan.
46254         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46255         (gl_signbitd): Use isnand instead of isnan.
46256         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46257         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46258         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46259         (main): Use isnand instead of isnan.
46260         * tests/test-round1.c: Include isnand.h.
46261         (main): Use isnand instead of isnan.
46262         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46263         (ISNAN): Set to isnand instead of isnan.
46264         * tests/test-trunc1.c: Include isnand.h.
46265         (main): Use isnand instead of isnan.
46266         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46267         (equal): Use isnand instead of isnan.
46268         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46269         isnand-nolibm.
46270         * NEWS: Mention the change.
46271
46272 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46273             Bruno Haible  <bruno@clisp.org>
46274
46275         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46276         the GCC builtins for signbits are present and set
46277         REPLACE_SIGNBIT_USING_GCC if so.
46278         * lib/math.in.h (signbit): Define using GCC builtins if
46279         REPLACE_SIGNBIT_USING_GCC is set.
46280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46281         REPLACE_SIGNBIT_USING_GCC.
46282         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46283
46284 2008-01-25  Jim Meyering  <meyering@redhat.com>
46285
46286         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46287         * lib/poll.c: Include <config.h>, not "config.h".
46288         * tests/test-getaddrinfo.c: Likewise.
46289
46290 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46291
46292         * modules/sockets-tests: New file.
46293
46294 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46295
46296         * modules/sockets: New module, can be used to call WSA_Startup and
46297         WSA_Cleanup when needed.
46298
46299         * lib/sockets.h, lib/sockets.c: New files.
46300
46301         * m4/sockets.m4: New file.
46302
46303         * tests/test-sockets.c: New file.
46304
46305 2008-01-19  Bruno Haible  <bruno@clisp.org>
46306
46307         * doc/posix-headers: Renamed from doc/headers.
46308         * doc/posix-functions: Renamed from doc/functions.
46309         * doc/gnulib.texi: Update.
46310
46311 2008-01-19  Bruno Haible  <bruno@clisp.org>
46312
46313         * doc/glibc-functions/strcasestr.texi: Include contents of
46314         doc/functions/strcasestr.texi, fixing the list of platforms.
46315         * doc/functions/strcasestr.texi: Remove file.
46316
46317 2008-01-19  Bruno Haible  <bruno@clisp.org>
46318
46319         * doc/glibc-functions/memmem.texi: Include contents of
46320         doc/functions/memmem.texi.
46321         * doc/functions/memmem.texi: Remove file.
46322
46323 2008-01-18  Bruno Haible  <bruno@clisp.org>
46324
46325         * doc/glibc-functions/*.texi: New files.
46326         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46327         to use the new files.
46328
46329 2008-01-17  Bruno Haible  <bruno@clisp.org>
46330
46331         * tests/test-gethostname.c (main): Fix printf statement.
46332
46333 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46334
46335         * modules/gethostname-tests: New file.
46336
46337         * tests/test-gethostname.c: New file.
46338
46339 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46340
46341         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46342         used by the UNAME case.  Reported by Bruno Haible
46343         <bruno@clisp.org>.
46344
46345 2008-01-17  Eric Blake  <ebb9@byu.net>
46346
46347         Convert c-strcasestr to be more efficient.
46348         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46349         (Depends-on): Add c-strcase, remove malloca, strnlen.
46350         * tests/test-c-strcasestr.c (main): Enhance test.
46351         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46352
46353 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46354
46355         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46356         Use it in creating po/Makevars.
46357
46358 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46359
46360         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46361         Applications that requires it should initialize libgcrypt
46362         manually.
46363
46364 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46365
46366         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46367
46368 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46369
46370         Fix problem with getdate on mingw32 reported by Simon Josefsson
46371         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46372         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46373         tzname", when deciding whether to declare tzname.
46374         * lib/strftime.c (tzname): Likewise.
46375
46376 2008-01-15  Bruno Haible  <bruno@clisp.org>
46377
46378         Work around a MacOS X 10.5 bug in frexpl().
46379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46380         * doc/functions/frexpl.texi: Document the bug.
46381         Reported by Elias Pipping <pipping@gentoo.org>.
46382
46383 2008-01-14  Eric Blake  <ebb9@byu.net>
46384
46385         Touch up previous patch.
46386         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46387         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46388
46389         Convert strcasestr module to use Two-Way algorithm.
46390         * modules/strcasestr-simple: New module, based on the old
46391         strcasestr, but with Two-Way rather than KMP.
46392         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46393         * lib/string.in.h (rpl_strcasestr): Declare.
46394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46395         performance.
46396         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46397         * modules/string (Makefile.am): Support strcasestr.
46398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46399         * modules/strcasestr-tests (Depends-on): Check for alarm.
46400         * tests/test-strcasestr.c: Augment test.
46401         * lib/str-two-way.h: Clean up stray macro.
46402         * NEWS: Document new module.
46403         * MODULES.html.sh (string handling): Likewise.
46404         * doc/functions/strcasestr.texi: New file.
46405         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46406         here, since it is not a POSIX function.
46407
46408 2008-01-14  Colin Watson  <cjwatson@debian.org>
46409             Bruno Haible  <bruno@clisp.org>
46410
46411         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46412         works fine; if not, set REPLACE_STRSIGNAL.
46413         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46415         REPLACE_STRSIGNAL.
46416         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46417         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46418         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46419
46420 2008-01-14  Bruno Haible  <bruno@clisp.org>
46421
46422         * modules/strsignal (Include): Change to <string.h>.
46423
46424 2008-01-14  Colin Watson  <cjwatson@debian.org>
46425
46426         * modules/argp (Notice): Add a notice recommending to change
46427         XGETTEXT_OPTIONS.
46428         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46429
46430 2008-01-13  Colin Watson  <cjwatson@debian.org>
46431
46432         * modules/strsignal-tests: New file.
46433         * tests/test-strsignal.c: New file.
46434
46435         * lib/strsignal.c: New file, from glibc with modifications.
46436         * lib/siglist.h: New file, from glibc with modifications.
46437         * lib/string.in.h (strsignal): New declaration.
46438         * m4/strsignal.m4: New file.
46439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46440         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46441         * modules/strsignal: New file.
46442         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46443         HAVE_DECL_STRSIGNAL.
46444
46445 2008-01-13  Bruno Haible  <bruno@clisp.org>
46446
46447         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46448         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46449         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46450         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46451
46452 2008-01-13  Bruno Haible  <bruno@clisp.org>
46453
46454         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
46455         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
46456         * lib/argp.h (__attribute__): Likewise.
46457         * lib/c-stack.c (__attribute__): Likewise.
46458         * lib/error.h (__attribute__): Likewise.
46459         * lib/fts.c (__attribute__): Likewise.
46460         * lib/openat.h (__attribute__): Likewise.
46461         * lib/stdio.in.h (__attribute__): Likewise.
46462         * lib/string.in.h (__attribute__): Likewise.
46463         * lib/utimens.c (__attribute__): Likewise.
46464         * lib/vasnprintf.h (__attribute__): Likewise.
46465         * lib/xalloc.h (__attribute__): Likewise.
46466         * lib/xprintf.h (__attribute__): Likewise.
46467         * lib/xstrtol.h (__attribute__): Likewise.
46468         * lib/xvasprintf.h (__attribute__): Likewise.
46469
46470 2008-01-12  Bruno Haible  <bruno@clisp.org>
46471
46472         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46473         * doc/glibc-headers/a.out.texi: New file.
46474         * doc/glibc-headers/aliases.texi: New file.
46475         * doc/glibc-headers/alloca.texi: New file.
46476         * doc/glibc-headers/ar.texi: New file.
46477         * doc/glibc-headers/argp.texi: New file.
46478         * doc/glibc-headers/argz.texi: New file.
46479         * doc/glibc-headers/byteswap.texi: New file.
46480         * doc/glibc-headers/crypt.texi: New file.
46481         * doc/glibc-headers/endian.texi: New file.
46482         * doc/glibc-headers/envz.texi: New file.
46483         * doc/glibc-headers/err.texi: New file.
46484         * doc/glibc-headers/error.texi: New file.
46485         * doc/glibc-headers/execinfo.texi: New file.
46486         * doc/glibc-headers/fpu_control.texi: New file.
46487         * doc/glibc-headers/fstab.texi: New file.
46488         * doc/glibc-headers/fts.texi: New file.
46489         * doc/glibc-headers/getopt.texi: New file.
46490         * doc/glibc-headers/ieee754.texi: New file.
46491         * doc/glibc-headers/ifaddrs.texi: New file.
46492         * doc/glibc-headers/libintl.texi: New file.
46493         * doc/glibc-headers/mcheck.texi: New file.
46494         * doc/glibc-headers/mntent.texi: New file.
46495         * doc/glibc-headers/obstack.texi: New file.
46496         * doc/glibc-headers/paths.texi: New file.
46497         * doc/glibc-headers/printf.texi: New file.
46498         * doc/glibc-headers/pty.texi: New file.
46499         * doc/glibc-headers/resolv.texi: New file.
46500         * doc/glibc-headers/shadow.texi: New file.
46501         * doc/glibc-headers/sysexits.texi: New file.
46502         * doc/glibc-headers/ttyent.texi: New file.
46503
46504 2008-01-12  Jim Meyering  <meyering@redhat.com>
46505
46506         announce-gen: emit Gnulib's git-based version string.
46507         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46508         New option --gnulib-version=V, where V is expected to be
46509         the output of running git describe in the gnulib directory.
46510         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46511         not useful, and plan to stop publishing an xdelta file with each
46512         coreutils release.
46513
46514         * build-aux/announce-gen: Also check for lzma-compressed files.
46515
46516 2008-01-11  Bruno Haible  <bruno@clisp.org>
46517
46518         * tests/test-memmem.c (main): Increase maximum allowed time.
46519         * tests/test-strstr.c (main): Likewise.
46520
46521 2008-01-11  Bruno Haible  <bruno@clisp.org>
46522
46523         * doc/functions/memmem.texi: Add more precisions about platforms.
46524         * doc/functions/strstr.texi: Likewise.
46525
46526 2008-01-10  Eric Blake  <ebb9@byu.net>
46527
46528         * m4/strstr.m4: Delete cruft from copy-n-paste.
46529         Reported by Bruno Haible.
46530
46531 2008-01-10  Bruno Haible  <bruno@clisp.org>
46532
46533         Make c-strstr rely on strstr.
46534         * lib/c-strstr.c: Don't include str-kmp.h.
46535         (c_strstr): Define in terms of strstr.
46536         * modules/c-strstr (Files): Remove lib/str-kmp.h.
46537         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
46538
46539 2008-01-10  Bruno Haible  <bruno@clisp.org>
46540
46541         * doc/gnulib.texi (String Functions in C Locale): New section.
46542         * doc/c-ctype.texi: New file.
46543         * doc/c-strcase.texi: New file.
46544         * doc/c-strcaseeq.texi: New file.
46545         * doc/c-strcasestr.texi: New file.
46546         * doc/c-strstr.texi: New file.
46547         * doc/c-strtod.texi: New file.
46548         * doc/c-strtold.texi: New file.
46549
46550 2008-01-10  Eric Blake  <ebb9@byu.net>
46551
46552         * lib/relocatable.h: Fix a comment.
46553
46554 2008-01-10  Eric Blake  <ebb9@byu.net>
46555
46556         Share two-way algorithm.
46557         * lib/str-two-way.h: New file, merged from...
46558         * lib/memmem.c: ...here...
46559         * lib/strstr.c: ...and here.
46560         * modules/memmem (Files): Use it.
46561         * modules/strstr (Files): Likewise.
46562
46563         Avoid quadratic strstr implementations.
46564         * lib/strstr.c: New file.
46565         * m4/strstr.m4: Likewise.
46566         * modules/strstr: Likewise.
46567         * modules/strstr-tests: Likewise.
46568         * tests/test-strstr.c: Likewise.
46569         * lib/string.in.h (rpl_strstr): Declare.
46570         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
46571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
46572         * modules/string (Makefile.am): Likewise.
46573         * MODULES.html.sh (string handling): Mention new module.
46574         * doc/functions/strstr.texi (strstr): Document the bug.
46575
46576 2008-01-10  Bruno Haible  <bruno@clisp.org>
46577
46578         * lib/relocatable.h (relocate): State whether result is freshly
46579         allocated or not.
46580         * lib/relocatable.c (relocate): Return a freshly allocated string
46581         instead of a pointer to a privately held string.
46582         Reported by Sylvain Beucler <beuc@gnu.org>.
46583
46584 2008-01-10  Colin Watson  <cjwatson@debian.org>
46585
46586         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
46587         s/S_ISNLK/S_ISLNK/.
46588
46589 2008-01-09  Bruno Haible  <bruno@clisp.org>
46590
46591         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
46592         and other files.
46593         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
46594         if it's only a guess.
46595         * modules/memmem: Simplify by depending on memmem-simple.
46596
46597 2008-01-09  Bruno Haible  <bruno@clisp.org>
46598
46599         Work around OpenBSD 4.0 tdelete() bug.
46600         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
46601         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
46602         macros and don't redefine the enum values.
46603         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
46604         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
46605         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
46606
46607 2008-01-09  Bruno Haible  <bruno@clisp.org>
46608
46609         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
46610         (main): Don't perform the tests if setlocale did not install a UTF-8
46611         locale. Needed on OpenBSD 4.0.
46612         * modules/wcwidth-tests (Depends-on): Add localcharset.
46613
46614 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46615
46616         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
46617         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
46618         * NEWS: announce this.
46619         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
46620
46621 2008-01-09  Simon Josefsson  <simon@josefsson.org>
46622         and Eric Blake  <ebb9@byu.net>
46623
46624         Add memmem-simple module.
46625         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
46626         (gl_FUNC_MEMMEM): Separate performance from presence checks.
46627         * modules/memmem-simple: New file.
46628         * modules/memmem (Description): Tweak.
46629         * MODULES.html.sh (string handling): Mention new module.
46630         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
46631         addressed by memmem-simple.
46632         * NEWS: Document the difference.
46633
46634 2008-01-09  Eric Blake  <ebb9@byu.net>
46635
46636         Give gcc some memmem optimization hints.
46637         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
46638         (strcasestr): Declare as pure.
46639         * modules/memmem (Maintainer): Claim my implementation.
46640
46641 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46642
46643         Support AIX 6.1 and higher.
46644         * build-aux/config.libpath: Likewise.
46645         * build-aux/config.rpath: Likewise.
46646
46647 2008-01-08  Jim Meyering  <meyering@redhat.com>
46648             Bruno Haible  <bruno@clisp.org>
46649
46650         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
46651         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
46652         Reported by Peter Fales in
46653         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
46654
46655 2008-01-08  Bruno Haible  <bruno@clisp.org>
46656
46657         * modules/unictype/category-of (Depends-on): Add
46658         unictype/category-none.
46659         * modules/unictype/category-and-tests (Depends-on): Add
46660         unictype/category-{L,N,Lu,Nd}.
46661         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
46662         * modules/unictype/category-or-tests (Depends-on): Add
46663         unictype/category-{L,N}.
46664         * modules/unictype/category-name-tests (Depends-on): Add
46665         unictype/category-{Z,Nl}.
46666         Reported by Simon Josefsson.
46667
46668 2008-01-08  Bruno Haible  <bruno@clisp.org>
46669
46670         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
46671         convention better.
46672         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
46673         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
46674         Reported by Peter Miller <millerp@canb.auug.org.au>.
46675
46676 2008-01-08  Eric Blake  <ebb9@byu.net>
46677
46678         Rewrite memmem to guarantee linear complexity without malloc.
46679         * lib/memmem.c (memmem): Use Two-Way rather than
46680         Knuth-Morris-Pratt, to allow O(1) space usage.
46681         (critical_factorization, two_way_short_needle)
46682         (two_way_long_needle): New functions.
46683         (knuth_morris_pratt): Delete.
46684         * modules/memmem (Depends-on): No longer need malloca or stdbool.
46685         Add stdint.
46686         * tests/test-memmem.c (main): Add tests for periodic needle and
46687         sublinear performance.
46688         * doc/functions/memmem.texi (memmem): Document other deficiencies
46689         in cygwin and older glibc.
46690
46691 2008-01-08  Bruno Haible  <bruno@clisp.org>
46692
46693         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
46694         augmentation.
46695
46696 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
46697
46698         Add a configure time option: --disable-acl.
46699         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
46700         AC_ARG_ENABLE(acl).
46701
46702 2008-01-06  Simon Josefsson  <simon@josefsson.org>
46703
46704         * tests/test-localename.c: Don't include obsolete "setenv.h".
46705
46706         * modules/localename-tests (Depends-on): Need unsetenv.
46707
46708 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46709
46710         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
46711
46712 2008-01-06  Colin Watson  <cjwatson@debian.org>
46713
46714         * users.txt: Add man-db.
46715
46716 2008-01-07  Bruno Haible  <bruno@clisp.org>
46717
46718         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
46719         previous section name.
46720
46721 2008-01-07  Bruno Haible  <bruno@clisp.org>
46722
46723         * lib/progname.c (set_program_name): Don't strip off a leading
46724         "lt-" prefix outside a .libs directory.
46725         Suggested by Paul Eggert.
46726
46727 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
46728             Bruno Haible  <bruno@clisp.org>
46729
46730         Improve memory cleanup in 'relocatable' module.
46731         * lib/relocatable.h (compute_curr_prefix): Change return type to
46732         'char *'.
46733         * lib/relocatable.c (compute_curr_prefix): Change return type to
46734         'char *'. Free curr_installdir after use.
46735         (relocate): Free curr_prefix_better after use.
46736         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
46737
46738 2008-01-01  Bruno Haible  <bruno@clisp.org>
46739
46740         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
46741         failure on older glibc systems.
46742         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46743
46744 2008-01-05  Eric Blake  <ebb9@byu.net>
46745
46746         Avoid quadratic system memmem.
46747         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
46748         Reported by Ralf Wildenhues.
46749
46750         Fix memmem test for mingw.
46751         * modules/memmem-tests (configure.ac): Check for alarm.
46752         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
46753         it.
46754         * doc/functions/memmem.texi: New file.
46755         * doc/gnulib.texi (Function Substitutes): Add memmem.
46756         Reported by Bruno Haible.
46757
46758 2008-01-04  Bruno Haible  <bruno@clisp.org>
46759
46760         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
46761         Require gl_HEADER_STRINGS_H_DEFAULTS, not
46762         gl_HEADER_STRING_H_DEFAULTS.
46763
46764 2008-01-04  Eric Blake  <ebb9@byu.net>
46765
46766         Shorten duration of memmem test.
46767         * tests/test-memmem.c (main): Use alarm to declare failure if test
46768         is taking too long.
46769         Reported by Ralf Wildenhues.
46770
46771 2007-12-21  Simon Josefsson  <simon@josefsson.org>
46772
46773         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
46774         string, needed by strerror.
46775
46776 2008-01-03  Colin Watson  <cjwatson@debian.org>
46777             Bruno Haible  <bruno@clisp.org>
46778
46779         * doc/gnulib-tool.texi (Localization): New section.
46780
46781 2008-01-02  Bruno Haible  <bruno@clisp.org>
46782
46783         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
46784         variables to 'unsigned char *' type.
46785         Reported by Paul Eggert.
46786
46787 2008-01-02  Jim Meyering  <jim@meyering.net>
46788
46789         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
46790
46791 2007-12-31  Jim Meyering  <jim@meyering.net>
46792
46793         Avoid use of private FTS type name.
46794         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
46795
46796 2007-12-30  Karl Berry  <karl@gnu.org>
46797
46798         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
46799         work around defect in Texinfo and/or the standalone Info browser.
46800
46801 2007-12-30  Bruno Haible  <bruno@clisp.org>
46802
46803         Unify 5 copies of the KMP code.
46804         * lib/str-kmp.h: New file.
46805         * lib/c-strcasestr.c: Include str-kmp.h.
46806         (knuth_morris_pratt): Remove function.
46807         (c_strcasestr): Update.
46808         * lib/c-strstr.c: Include str-kmp.h.
46809         (knuth_morris_pratt): Remove function.
46810         (c_strcasestr): Update.
46811         * lib/mbscasestr.c: Include str-kmp.h.
46812         (knuth_morris_pratt_unibyte): Remove function.
46813         * lib/mbsstr.c: Include str-kmp.h.
46814         (knuth_morris_pratt_unibyte): Remove function.
46815         * lib/strcasestr.c: Include str-kmp.h.
46816         (knuth_morris_pratt): Remove function.
46817         (strcasestr): Update.
46818         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
46819         * modules/c-strstr (Files): Likewise.
46820         * modules/mbscasestr (Files): Likewise.
46821         * modules/mbsstr (Files): Likewise.
46822         * modules/strcasestr (Files): Likewise.
46823         Suggested by Paul Eggert.
46824
46825 2007-12-30  Bruno Haible  <bruno@clisp.org>
46826
46827         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
46828         defined.
46829
46830 2007-12-30  Bruno Haible  <bruno@clisp.org>
46831
46832         * lib/xmalloca.h: Include xalloc.h.
46833         (xnmalloca): New macro.
46834
46835 2007-12-30  Bruno Haible  <bruno@clisp.org>
46836
46837         * lib/malloca.h (nmalloca): New macro.
46838         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
46839         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
46840         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
46841         knuth_morris_pratt_multibyte): Likewise.
46842         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
46843         knuth_morris_pratt_multibyte): Likewise.
46844         * lib/memmem.c (knuth_morris_pratt): Likewise.
46845         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
46846
46847 2007-12-25  Bruno Haible  <bruno@clisp.org>
46848
46849         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
46850         * lib/glob.c: Don't include openat.h.
46851         (link_exists2_p): Add back the code that deals with the
46852         !GLOB_ALTDIRFUNC case.
46853         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
46854         let it do the filename concatenation.
46855         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
46856         * modules/glob (Depends-on): Remove openat.
46857
46858 2007-12-31  Bruno Haible  <bruno@clisp.org>
46859
46860         * modules/dirfd (License): Change to LGPLv2+.
46861         Approved by Jim Meyering.
46862
46863 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46864
46865         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
46866         when multiplying M by sizeof (size_t).
46867
46868 2007-12-10  Martin Lambers  <marlam@marlam.de>
46869
46870         Override getpagesize on mingw.
46871         * lib/getpagesize.c: New file.
46872         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
46873         * modules/getpagesize (Files): Add lib/getpagesize.c.
46874         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
46875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46876         REPLACE_GETPAGESIZE.
46877         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
46878
46879 2007-12-25  Bruno Haible  <bruno@clisp.org>
46880
46881         * modules/localcharset (Notice): New field.
46882         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
46883         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
46884
46885 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46886             Bruno Haible  <bruno@clisp.org>
46887
46888         Avoid using the syntax symbol() in formatted documentation.
46889         * MODULES.html.sh (func_module): When replacing symbol() with a
46890         hyperlink, remove the parentheses. Show an error if some remain.
46891         Recognize and render the '...' syntax.
46892         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
46893         Rework. Add paragraph about GCC's inlining.
46894         * doc/alloca.texi: Likewise.
46895         * doc/error.texi: Remove parentheses from symbol reference.
46896         * doc/gnulib-intro.texi: Likewise.
46897         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
46898         * modules/fnmatch (Description): Reword to say "the ... function".
46899         * modules/full-read (Description): Likewise.
46900         * modules/full-write (Description): Likewise.
46901         * modules/safe-read (Description): Likewise.
46902         * modules/safe-write (Description): Likewise.
46903         * modules/strchrnul (Description): Likewise.
46904         * modules/trim (Description): Likewise.
46905         * modules/error (Description): Remove parentheses from symbol
46906         references.
46907         * modules/verror (Description): Likewise.
46908         Reported by Karl Berry.
46909
46910 2007-12-25  Bruno Haible  <bruno@clisp.org>
46911
46912         Fixup after 2007-10-16 commit.
46913         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
46914
46915 2007-12-24  Bruno Haible  <bruno@clisp.org>
46916
46917         Make --enable-relocatable work with DESTDIR.
46918         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
46919         to compute installdir from destprog.
46920         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
46921         also set the RELOC_DESTDIR variable.
46922         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46923
46924 2007-12-24  Bruno Haible  <bruno@clisp.org>
46925
46926         Fix link error due to xalloc_die().
46927         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
46928         of xreadlink.
46929         * lib/relocwrapper.c: Update comments.
46930         * build-aux/install-reloc: Remove xreadlink.c from file list.
46931         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
46932         xreadlink.c.
46933         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46934
46935 2007-12-24  Bruno Haible  <bruno@clisp.org>
46936
46937         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
46938         * lib/setenv.h: Remove file.
46939         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
46940         lib/setenv.h.
46941         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
46942         (Depends-on): Add stdlib.
46943         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
46944         gl_FUNC_UNSETENV.
46945         (Include): Replace setenv.h with <stdlib.h>.
46946         * modules/unsetenv: New file.
46947         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
46948         * lib/unsetenv.c: Include <stdlib.h> first.
46949         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
46950         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
46951         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
46952         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
46953         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
46954         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
46956         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46957         * doc/functions/unsetenv.texi: Update.
46958         * modules/xsetenv (Depends-on): Add unsetenv.
46959         * modules/getdate (Depends-on): Likewise.
46960         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
46961         * lib/xsetenv.c: Don't include setenv.h.
46962         * lib/getdate.y: Likewise.
46963         * lib/relocwrapper.c: Likewise.
46964         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
46965         (Depends-on): Add stdlib.
46966         * NEWS: Mention the changes.
46967         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46968
46969 2007-12-23  Bruno Haible  <bruno@clisp.org>
46970
46971         * lib/memmem.c (memmem): Use lowercase variable names. Tab
46972         indentation.
46973
46974 2007-12-23  Bruno Haible  <bruno@clisp.org>
46975
46976         * lib/c-strcasestr.c: Add more comments.
46977         * lib/c-strstr.c: Likewise.
46978         * lib/mbscasestr.c: Likewise.
46979         * lib/mbsstr.c: Likewise.
46980         * lib/strcasestr.c: Likewise.
46981         * lib/memmem.c: Likewise.
46982
46983 2007-12-23  Bruno Haible  <bruno@clisp.org>
46984
46985         * tests/test-memmem.c: Include <string.h> first.
46986
46987 2007-12-22  Bruno Haible  <bruno@clisp.org>
46988
46989         * gnulib-tool (func_create_testdir): Change $auxdir while generating
46990         the contents of $testsbase.
46991         Reported by Ralf Wildenhues.
46992
46993 2007-12-22  Bruno Haible  <bruno@clisp.org>
46994
46995         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
46996         two variables local_ldadd_before, local_ldadd_last.
46997
46998 2007-12-20  Eric Blake  <ebb9@byu.net>
46999
47000         Work around circular library issue when cross-compiling.
47001         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47002         that progname.o does not need to pull in rpl_memcmp.
47003
47004 2007-12-19  Eric Blake  <ebb9@byu.net>
47005
47006         Fix memmem to avoid O(n^2) worst-case complexity.
47007         * lib/memmem.c (knuth_morris_pratt): New function.
47008         (memmem): Use it if first few naive iterations fail.
47009         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47010         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47011         * modules/memchr (License): Likewise.
47012         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47013         malloca.
47014         * tests/test-memmem.c: Rewrite, borrowing ideas from
47015         test-mbsstr1.c; the old version wouldn't even compile!
47016         * modules/memmem-tests: New file.
47017         * lib/string.in.h (rpl_memmem): Add declaration.
47018         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47020         REPLACE_MEMMEM.
47021
47022 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47023
47024         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47025         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47026         before any system include files, and undef after them all.  This
47027         should fix a problem on VMS reported by John E. Malmberg in
47028         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47029
47030 2007-12-17  Eric Blake  <ebb9@byu.net>
47031
47032         Revert addition of verify, for BSD/OS.
47033         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47034         can't handle large files, for the sake of obsolete platforms.
47035         * modules/fseeko (Depends-on): Remove verify.
47036         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47037         * doc/functions/ftello.texi (ftello): Likewise.
47038         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47039         Reported by Larry Jones.
47040
47041 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47042
47043         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47044         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47045
47046 2007-12-17  Jim Meyering  <meyering@redhat.com>
47047
47048         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47049         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47050         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47051         * modules/getcwd (Depends-on): Add openat.
47052         Reported by Petr Salinger.
47053
47054 2007-12-17  Bruno Haible  <bruno@clisp.org>
47055
47056         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47057         avoid a segmentation fault of the configure test on x86_64 systems.
47058
47059 2007-12-15  Jim Meyering  <meyering@redhat.com>
47060
47061         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47062
47063 2007-12-13  Eric Blake  <ebb9@byu.net>
47064
47065         Another fseek test.
47066         * tests/test-fseek.c (main): Also test ungetc handling.
47067         * tests/test-fseeko.c (main): Likewise.
47068         * modules/fseeko (Depends-on): Add verify.
47069         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47070         large.
47071         Reported by Larry Jones.
47072
47073         Fix fseeko on mingw.
47074         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47075         seek.
47076
47077         Beef up fseek tests.
47078         * tests/test-fseek.c (main): Also test eof handling.
47079         * tests/test-fseeko.c (main): Likewise.
47080         Reported by Larry Jones.
47081
47082 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47083
47084         Fix fseeko on BSD-based platforms.
47085         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47086         successful seek.
47087
47088 2007-12-12  Eric Blake  <ebb9@byu.net>
47089
47090         Allow circular dependency of separate libtests.a
47091         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47092         when use_libtests.
47093
47094 2007-12-11  Eric Blake  <ebb9@byu.net>
47095
47096         Fix bug with -0.0L in previous patch.
47097         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47098         * tests/test-isnan.c (main): Also test on zeroes.
47099         * tests/test-isnanf.c (main): Likewise.
47100         * tests/test-isnanl.h (main): Likewise.
47101
47102         Detect pseudo-denormals on x86 even when cross-compiling.
47103         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47104         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47105         invalid bit patterns that happen to satisfy ==.
47106
47107         Avoid link failures with separate libtests.a.
47108         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47109         last, to satisfy circular dependencies.
47110
47111 2007-12-11  Eric Blake  <ebb9@byu.net>
47112         and Bruno Haible  <bruno@clisp.org>
47113
47114         Fix OpenBSD 4.0 <float.h> handling of long double.
47115         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47116         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47117         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47118
47119 2007-12-11  Jim Meyering  <meyering@redhat.com>
47120
47121         * users.txt: Add libvirt.
47122
47123         Support versions of autoconf prior to 2.59c.
47124         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47125         if it is not already defined.
47126
47127 2007-12-09  Bruno Haible  <bruno@clisp.org>
47128
47129         Let 'gnulib-tool --import' collect sources needed for the tests in
47130         tests/ rather than in lib/.
47131         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47132         argument. If true, add rules to generate libtests.a, and put libtests.a
47133         into $(LDADD). Consider source files in subdirectories and set
47134         uses_subdirs.
47135         (func_emit_initmacro_start, func_emit_initmacro_end,
47136         func_emit_initmacro_done): Pass all arguments explicitly.
47137         (func_import): Determine two module lists main_modules,
47138         testsrelated_modules. Determine use_libtests. Determine two variables
47139         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47140         instead of just sed_transform_lib_file. Determine two variables
47141         main_files and testsrelated_files. Compute 'files' as the union of
47142         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47143         func_add_or_update. In the generated gnulib-comp.m4, collect the
47144         object files for tests/ in different variables than those for lib/.
47145         Substitute LIBTESTS_LIBDEPS.
47146         (func_create_testdir): Combine the uses_subdirs results from
47147         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47148
47149 2007-12-09  Bruno Haible  <bruno@clisp.org>
47150
47151         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47152         the build-aux directory.
47153
47154 2007-12-09  Bruno Haible  <bruno@clisp.org>
47155
47156         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47157         introduced on 2006-09-09.
47158
47159 2007-12-07  Jim Meyering  <meyering@redhat.com>
47160
47161         Let these macros work also with autoconf-2.59.
47162         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47163         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47164         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47165
47166 2007-12-06  Jim Meyering  <meyering@redhat.com>
47167
47168         Avoid a configure-time syntax error in gl_FUNC_ACL.
47169         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47170         function in each branch, before testing the cache variable.
47171
47172 2007-12-04  Eric Blake  <ebb9@byu.net>
47173
47174         Make scripts executable.
47175         * build-aux/config.guess: Add execute permissions.
47176         * build-aux/config.sub: Likewise.
47177         * build-aux/gendocs.sh: Likewise.
47178
47179         Fix frexp on mingw.
47180         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47181         cross-compiling.
47182         * doc/functions/frexp.texi (frexp): Document the bug.
47183
47184         Make cygwin fseeko check more reliable.
47185         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47186         version numbers, rather than unrelated feature check.
47187         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47188         * doc/functions/ftello.texi (ftello): Likewise.
47189         Reported by Bruno Haible.
47190
47191         * m4/strerror.m4: Bump version number.
47192
47193 2007-12-03  Bruno Haible  <bruno@clisp.org>
47194
47195         * doc/functions/mprotect.texi: Mention the mingw problem.
47196
47197 2007-12-03  Eric Blake  <ebb9@byu.net>
47198
47199         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47200         REPLACE_STRERROR is initialized before this macro.
47201
47202 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47203
47204         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47205         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47206         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47207         put -lsec in even for programs other than 'ls'.  This fixes a problem
47208         for gettext reported by Bruno Haible in
47209         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47210         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47211         Add support for Solaris 10.  This isn't efficient, but should get the
47212         job done for now.
47213
47214 2007-12-03  James Youngman  <jay@gnu.org>
47215
47216         * doc/regexprops-generic.texi: change "an close-group" to "a
47217         close-group" and "illegal" to "not allowed".
47218
47219 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47220
47221         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47222         pr_byname.h. Needed for the rare case when the maintainer has done
47223         "make maintainer-clean" in the source directory and then attempts a
47224         build outside the source directory.
47225         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47226         scripts_byname.h.
47227
47228 2007-12-02  Martin Lambers <marlam@marlam.de>
47229             Bruno Haible  <bruno@clisp.org>
47230
47231         * lib/getpagesize.h: Remove file.
47232         * lib/unistd.in.h: Include declaration of getpagesize here.
47233         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47234         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47235         HAVE_SYS_PARAM_H.
47236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47237         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47238         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47239         (Depends-on): Add unistd.
47240         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47241         (Include): Use <unistd.h> instead of getpagesize.h.
47242         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47243         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47244         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47245         gl_GETPAGESIZE invocation, already handled by module dependency.
47246         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47247
47248 2007-12-02  Bruno Haible  <bruno@clisp.org>
47249
47250         * modules/strings-tests: New file.
47251         * tests/test-strings.c: New file.
47252
47253         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47254         * lib/strings.in.h: New file.
47255         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47256         * m4/strings_h.m4: New file.
47257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47258         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47259         * modules/strings: New file.
47260         * modules/string (Makefile.am): Update.
47261         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47262         Reported by Karl Berry.
47263
47264 2007-12-01  Eric Blake  <ebb9@byu.net>
47265
47266         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47267         accomodate fix in cygwin 1.5.25.
47268
47269 2007-12-01  Jim Meyering  <meyering@redhat.com>
47270
47271         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47272         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47273         that would inhibit utf8-optimization of a regexp containing line-
47274         or buffer-anchors, e.g., `^', `$'.
47275
47276 2007-11-30  Bruno Haible  <bruno@clisp.org>
47277
47278         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47279         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47280         glthread_recursive_lock_init.
47281         * lib/lock.c (glthread_recursive_lock_init)
47282         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47283         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47284
47285 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47286
47287         New function qset_acl, like set_acl but with syscall semantics.
47288         * lib/acl.h (qset_acl): New decl.
47289         * lib/acl.c (qset_acl): New function.
47290         (set_acl): Use new function.  Use more-consistent diagnostics.
47291
47292 2007-11-28  Jim Meyering  <meyering@redhat.com>
47293
47294         * modules/physmem (License): Change from GPL to LGPLv2+.
47295
47296 2007-11-26  Bruno Haible  <bruno@clisp.org>
47297
47298         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47299         'long double' type has excess precision.
47300         Reported by Jim Meyering in
47301         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47302
47303 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47304
47305         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47306         Sync from <http://gnu.org/licenses>.
47307         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47308         with license text from same location.
47309         * doc/maintain.texi, doc/standards.texi:  Sync from
47310         <http://savannah.gnu.org/projects/gnustandards>.
47311
47312 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
47313         and Jim Meyering  <meyering@redhat.com>
47314
47315         Adjust getdate' grammar to accept a slightly more regular language.
47316         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47317         Before, the former was rejected.
47318         * lib/getdate.y (digits_to_date_time): New function, factored
47319         out of ...
47320         (number): ...here.  Just call digits_to_date_time.
47321         (hybrid): New non-terminal to handle an <unsigned number,
47322         signed relative offset> sequence consistently.
47323
47324 2007-11-18  Jim Meyering  <meyering@redhat.com>
47325
47326         Pull my changes from coreutils:
47327         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47328         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47329         use of $gnulib_tool_option_extras, so that it's separated from the
47330         preceding argument.
47331
47332         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47333         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47334         parent destination directories before copying a file into place.
47335
47336 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47337
47338         bootstrap: work also with 4-argument variant of AC_INIT
47339         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47340
47341 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47342
47343         Port test-getaddrinfo to Solaris.
47344         Problem reported by Bruno Haible in
47345         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47346         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47347         explanation of setting 'hints'.
47348         Don't reject an implementation merely because it returns EAI_SERVICE.
47349         (EAI_SERVICE): Define to 0 if not defined.
47350
47351 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47352
47353         The license of gnu-make and posix-shell is now "GPLed build tool".
47354         * modules/gnu-make (License): Likewise.
47355         * modules/posix-shell (License): Likewise.
47356
47357         New module posix-shell, for determining a POSIX shell
47358         or perhaps something that is close enough to a POSIX shell.
47359         * m4/posix-shell.m4: New file.
47360         * modules/posix-shell: New file.
47361
47362         * MODULES.html.sh: Mention new module.
47363
47364         New module gnu-make, for determining whether we're using GNU Make.
47365         * m4/gnu-make.m4: New file.
47366         * modules/gnu-make: New file.
47367         * MODULES.html.sh: Mention new module.
47368
47369 2007-11-14  Jim Meyering  <meyering@redhat.com>
47370
47371         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47372         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47373         use this macro to create a function _definition_.
47374         Remove useless "#undef ARGMATCH_DIE".
47375
47376 2007-11-14  Bruno Haible  <bruno@clisp.org>
47377
47378         * lib/config.charset: Update for OpenBSD 4.1.
47379         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47380
47381 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47382
47383         Document 64-bit #if problems in stdint.texi.
47384         * doc/headers/stdint.texi (stdint.h): Mention problems with
47385         64-bit-#if, and how to work around them.
47386
47387         Don't insist on 'long long int' support in the preprocessor.  It
47388         breaks too many things.  For example, PRIdMAX still uses a 'long
47389         long int' format with the latest Sun compiler, even though
47390         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47391         preprocessor problem.  This causes the latest coreutils to dump
47392         core on Solaris 10 sparc with the Sun C compiler.
47393         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47394         the troublesome expressions at configure-time, not at #if-time.
47395         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47396         preprocessor.
47397         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47398         compile-time C checks, done at 'configure'-time.
47399         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47400         * modules/inttypes (Makefile): Substitute the new symbols that
47401         gl_INTTYPES_H now generates.
47402         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47403
47404 2007-11-12  Bruno Haible  <bruno@clisp.org>
47405
47406         Tests for Unicode character classification functions.
47407
47408         * modules/unictype/bidicategory-byname-tests: New file.
47409         * modules/unictype/bidicategory-name-tests: New file.
47410         * modules/unictype/bidicategory-of-tests: New file.
47411         * modules/unictype/bidicategory-test-tests: New file.
47412         * modules/unictype/block-list-tests: New file.
47413         * modules/unictype/block-of-tests: New file.
47414         * modules/unictype/block-test-tests: New file.
47415         * modules/unictype/category-C-tests: New file.
47416         * modules/unictype/category-Cc-tests: New file.
47417         * modules/unictype/category-Cf-tests: New file.
47418         * modules/unictype/category-Cn-tests: New file.
47419         * modules/unictype/category-Co-tests: New file.
47420         * modules/unictype/category-Cs-tests: New file.
47421         * modules/unictype/category-L-tests: New file.
47422         * modules/unictype/category-Ll-tests: New file.
47423         * modules/unictype/category-Lm-tests: New file.
47424         * modules/unictype/category-Lo-tests: New file.
47425         * modules/unictype/category-Lt-tests: New file.
47426         * modules/unictype/category-Lu-tests: New file.
47427         * modules/unictype/category-M-tests: New file.
47428         * modules/unictype/category-Mc-tests: New file.
47429         * modules/unictype/category-Me-tests: New file.
47430         * modules/unictype/category-Mn-tests: New file.
47431         * modules/unictype/category-N-tests: New file.
47432         * modules/unictype/category-Nd-tests: New file.
47433         * modules/unictype/category-Nl-tests: New file.
47434         * modules/unictype/category-No-tests: New file.
47435         * modules/unictype/category-P-tests: New file.
47436         * modules/unictype/category-Pc-tests: New file.
47437         * modules/unictype/category-Pd-tests: New file.
47438         * modules/unictype/category-Pe-tests: New file.
47439         * modules/unictype/category-Pf-tests: New file.
47440         * modules/unictype/category-Pi-tests: New file.
47441         * modules/unictype/category-Po-tests: New file.
47442         * modules/unictype/category-Ps-tests: New file.
47443         * modules/unictype/category-S-tests: New file.
47444         * modules/unictype/category-Sc-tests: New file.
47445         * modules/unictype/category-Sk-tests: New file.
47446         * modules/unictype/category-Sm-tests: New file.
47447         * modules/unictype/category-So-tests: New file.
47448         * modules/unictype/category-Z-tests: New file.
47449         * modules/unictype/category-Zl-tests: New file.
47450         * modules/unictype/category-Zp-tests: New file.
47451         * modules/unictype/category-Zs-tests: New file.
47452         * modules/unictype/category-and-not-tests: New file.
47453         * modules/unictype/category-and-tests: New file.
47454         * modules/unictype/category-byname-tests: New file.
47455         * modules/unictype/category-name-tests: New file.
47456         * modules/unictype/category-none-tests: New file.
47457         * modules/unictype/category-of-tests: New file.
47458         * modules/unictype/category-or-tests: New file.
47459         * modules/unictype/category-test-withtable-tests: New file.
47460         * modules/unictype/combining-class-tests: New file.
47461         * modules/unictype/ctype-alnum-tests: New file.
47462         * modules/unictype/ctype-alpha-tests: New file.
47463         * modules/unictype/ctype-blank-tests: New file.
47464         * modules/unictype/ctype-cntrl-tests: New file.
47465         * modules/unictype/ctype-digit-tests: New file.
47466         * modules/unictype/ctype-graph-tests: New file.
47467         * modules/unictype/ctype-lower-tests: New file.
47468         * modules/unictype/ctype-print-tests: New file.
47469         * modules/unictype/ctype-punct-tests: New file.
47470         * modules/unictype/ctype-space-tests: New file.
47471         * modules/unictype/ctype-upper-tests: New file.
47472         * modules/unictype/ctype-xdigit-tests: New file.
47473         * modules/unictype/decimal-digit-tests: New file.
47474         * modules/unictype/digit-tests: New file.
47475         * modules/unictype/mirror-tests: New file.
47476         * modules/unictype/numeric-tests: New file.
47477         * modules/unictype/property-alphabetic-tests: New file.
47478         * modules/unictype/property-ascii-hex-digit-tests: New file.
47479         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47480         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47481         * modules/unictype/property-bidi-block-separator-tests: New file.
47482         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47483         * modules/unictype/property-bidi-common-separator-tests: New file.
47484         * modules/unictype/property-bidi-control-tests: New file.
47485         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47486         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47487         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47488         * modules/unictype/property-bidi-european-digit-tests: New file.
47489         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47490         * modules/unictype/property-bidi-left-to-right-tests: New file.
47491         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47492         * modules/unictype/property-bidi-other-neutral-tests: New file.
47493         * modules/unictype/property-bidi-pdf-tests: New file.
47494         * modules/unictype/property-bidi-segment-separator-tests: New file.
47495         * modules/unictype/property-bidi-whitespace-tests: New file.
47496         * modules/unictype/property-byname-tests: New file.
47497         * modules/unictype/property-combining-tests: New file.
47498         * modules/unictype/property-composite-tests: New file.
47499         * modules/unictype/property-currency-symbol-tests: New file.
47500         * modules/unictype/property-dash-tests: New file.
47501         * modules/unictype/property-decimal-digit-tests: New file.
47502         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47503         * modules/unictype/property-deprecated-tests: New file.
47504         * modules/unictype/property-diacritic-tests: New file.
47505         * modules/unictype/property-extender-tests: New file.
47506         * modules/unictype/property-format-control-tests: New file.
47507         * modules/unictype/property-grapheme-base-tests: New file.
47508         * modules/unictype/property-grapheme-extend-tests: New file.
47509         * modules/unictype/property-grapheme-link-tests: New file.
47510         * modules/unictype/property-hex-digit-tests: New file.
47511         * modules/unictype/property-hyphen-tests: New file.
47512         * modules/unictype/property-id-continue-tests: New file.
47513         * modules/unictype/property-id-start-tests: New file.
47514         * modules/unictype/property-ideographic-tests: New file.
47515         * modules/unictype/property-ids-binary-operator-tests: New file.
47516         * modules/unictype/property-ids-trinary-operator-tests: New file.
47517         * modules/unictype/property-ignorable-control-tests: New file.
47518         * modules/unictype/property-iso-control-tests: New file.
47519         * modules/unictype/property-join-control-tests: New file.
47520         * modules/unictype/property-left-of-pair-tests: New file.
47521         * modules/unictype/property-line-separator-tests: New file.
47522         * modules/unictype/property-logical-order-exception-tests: New file.
47523         * modules/unictype/property-lowercase-tests: New file.
47524         * modules/unictype/property-math-tests: New file.
47525         * modules/unictype/property-non-break-tests: New file.
47526         * modules/unictype/property-not-a-character-tests: New file.
47527         * modules/unictype/property-numeric-tests: New file.
47528         * modules/unictype/property-other-alphabetic-tests: New file.
47529         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47530         * modules/unictype/property-other-grapheme-extend-tests: New file.
47531         * modules/unictype/property-other-id-continue-tests: New file.
47532         * modules/unictype/property-other-id-start-tests: New file.
47533         * modules/unictype/property-other-lowercase-tests: New file.
47534         * modules/unictype/property-other-math-tests: New file.
47535         * modules/unictype/property-other-uppercase-tests: New file.
47536         * modules/unictype/property-paired-punctuation-tests: New file.
47537         * modules/unictype/property-paragraph-separator-tests: New file.
47538         * modules/unictype/property-pattern-syntax-tests: New file.
47539         * modules/unictype/property-pattern-white-space-tests: New file.
47540         * modules/unictype/property-private-use-tests: New file.
47541         * modules/unictype/property-punctuation-tests: New file.
47542         * modules/unictype/property-quotation-mark-tests: New file.
47543         * modules/unictype/property-radical-tests: New file.
47544         * modules/unictype/property-sentence-terminal-tests: New file.
47545         * modules/unictype/property-soft-dotted-tests: New file.
47546         * modules/unictype/property-space-tests: New file.
47547         * modules/unictype/property-terminal-punctuation-tests: New file.
47548         * modules/unictype/property-test-tests: New file.
47549         * modules/unictype/property-titlecase-tests: New file.
47550         * modules/unictype/property-unassigned-code-value-tests: New file.
47551         * modules/unictype/property-unified-ideograph-tests: New file.
47552         * modules/unictype/property-uppercase-tests: New file.
47553         * modules/unictype/property-variation-selector-tests: New file.
47554         * modules/unictype/property-white-space-tests: New file.
47555         * modules/unictype/property-xid-continue-tests: New file.
47556         * modules/unictype/property-xid-start-tests: New file.
47557         * modules/unictype/property-zero-width-tests: New file.
47558         * modules/unictype/scripts-tests: New file.
47559         * modules/unictype/syntax-c-ident-tests: New file.
47560         * modules/unictype/syntax-c-whitespace-tests: New file.
47561         * modules/unictype/syntax-java-ident-tests: New file.
47562         * modules/unictype/syntax-java-whitespace-tests: New file.
47563         * tests/unictype/test-bidi_byname.c: New file.
47564         * tests/unictype/test-bidi_name.c: New file.
47565         * tests/unictype/test-bidi_of.c: New file.
47566         * tests/unictype/test-bidi_test.c: New file.
47567         * tests/unictype/test-block_list.c: New file.
47568         * tests/unictype/test-block_of.c: New file.
47569         * tests/unictype/test-block_test.c: New file.
47570         * tests/unictype/test-categ_and.c: New file.
47571         * tests/unictype/test-categ_and_not.c: New file.
47572         * tests/unictype/test-categ_byname.c: New file.
47573         * tests/unictype/test-categ_name.c: New file.
47574         * tests/unictype/test-categ_none.c: New file.
47575         * tests/unictype/test-categ_of.c: New file.
47576         * tests/unictype/test-categ_or.c: New file.
47577         * tests/unictype/test-categ_test_withtable.c: New file.
47578         * tests/unictype/test-combining.c: New file.
47579         * tests/unictype/test-decdigit.c: New file.
47580         * tests/unictype/test-digit.c: New file.
47581         * tests/unictype/test-mirror.c: New file.
47582         * tests/unictype/test-numeric.c: New file.
47583         * tests/unictype/test-pr_byname.c: New file.
47584         * tests/unictype/test-pr_test.c: New file.
47585         * tests/unictype/test-predicate-part1.h: New file.
47586         * tests/unictype/test-predicate-part2.h: New file.
47587         * tests/unictype/test-scripts.c: New file.
47588         * tests/unictype/test-sy_c_ident.c: New file.
47589         * tests/unictype/test-sy_java_ident.c: New file.
47590
47591         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
47592         for Unicode 5.0.0.
47593         * tests/unictype/test-categ_Cc.c: Likewise.
47594         * tests/unictype/test-categ_Cf.c: Likewise.
47595         * tests/unictype/test-categ_Cn.c: Likewise.
47596         * tests/unictype/test-categ_Co.c: Likewise.
47597         * tests/unictype/test-categ_Cs.c: Likewise.
47598         * tests/unictype/test-categ_L.c: Likewise.
47599         * tests/unictype/test-categ_Ll.c: Likewise.
47600         * tests/unictype/test-categ_Lm.c: Likewise.
47601         * tests/unictype/test-categ_Lo.c: Likewise.
47602         * tests/unictype/test-categ_Lt.c: Likewise.
47603         * tests/unictype/test-categ_Lu.c: Likewise.
47604         * tests/unictype/test-categ_M.c: Likewise.
47605         * tests/unictype/test-categ_Mc.c: Likewise.
47606         * tests/unictype/test-categ_Me.c: Likewise.
47607         * tests/unictype/test-categ_Mn.c: Likewise.
47608         * tests/unictype/test-categ_N.c: Likewise.
47609         * tests/unictype/test-categ_Nd.c: Likewise.
47610         * tests/unictype/test-categ_Nl.c: Likewise.
47611         * tests/unictype/test-categ_No.c: Likewise.
47612         * tests/unictype/test-categ_P.c: Likewise.
47613         * tests/unictype/test-categ_Pc.c: Likewise.
47614         * tests/unictype/test-categ_Pd.c: Likewise.
47615         * tests/unictype/test-categ_Pe.c: Likewise.
47616         * tests/unictype/test-categ_Pf.c: Likewise.
47617         * tests/unictype/test-categ_Pi.c: Likewise.
47618         * tests/unictype/test-categ_Po.c: Likewise.
47619         * tests/unictype/test-categ_Ps.c: Likewise.
47620         * tests/unictype/test-categ_S.c: Likewise.
47621         * tests/unictype/test-categ_Sc.c: Likewise.
47622         * tests/unictype/test-categ_Sk.c: Likewise.
47623         * tests/unictype/test-categ_Sm.c: Likewise.
47624         * tests/unictype/test-categ_So.c: Likewise.
47625         * tests/unictype/test-categ_Z.c: Likewise.
47626         * tests/unictype/test-categ_Zl.c: Likewise.
47627         * tests/unictype/test-categ_Zp.c: Likewise.
47628         * tests/unictype/test-categ_Zs.c: Likewise.
47629         * tests/unictype/test-ctype_alnum.c: Likewise.
47630         * tests/unictype/test-ctype_alpha.c: Likewise.
47631         * tests/unictype/test-ctype_blank.c: Likewise.
47632         * tests/unictype/test-ctype_cntrl.c: Likewise.
47633         * tests/unictype/test-ctype_digit.c: Likewise.
47634         * tests/unictype/test-ctype_graph.c: Likewise.
47635         * tests/unictype/test-ctype_lower.c: Likewise.
47636         * tests/unictype/test-ctype_print.c: Likewise.
47637         * tests/unictype/test-ctype_punct.c: Likewise.
47638         * tests/unictype/test-ctype_space.c: Likewise.
47639         * tests/unictype/test-ctype_upper.c: Likewise.
47640         * tests/unictype/test-ctype_xdigit.c: Likewise.
47641         * tests/unictype/test-decdigit.h: Likewise.
47642         * tests/unictype/test-digit.h: Likewise.
47643         * tests/unictype/test-numeric.h: Likewise.
47644         * tests/unictype/test-pr_alphabetic.c: Likewise.
47645         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
47646         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
47647         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
47648         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
47649         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
47650         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
47651         * tests/unictype/test-pr_bidi_control.c: Likewise.
47652         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
47653         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
47654         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
47655         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
47656         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
47657         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
47658         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
47659         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
47660         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
47661         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
47662         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
47663         * tests/unictype/test-pr_combining.c: Likewise.
47664         * tests/unictype/test-pr_composite.c: Likewise.
47665         * tests/unictype/test-pr_currency_symbol.c: Likewise.
47666         * tests/unictype/test-pr_dash.c: Likewise.
47667         * tests/unictype/test-pr_decimal_digit.c: Likewise.
47668         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
47669         * tests/unictype/test-pr_deprecated.c: Likewise.
47670         * tests/unictype/test-pr_diacritic.c: Likewise.
47671         * tests/unictype/test-pr_extender.c: Likewise.
47672         * tests/unictype/test-pr_format_control.c: Likewise.
47673         * tests/unictype/test-pr_grapheme_base.c: Likewise.
47674         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
47675         * tests/unictype/test-pr_grapheme_link.c: Likewise.
47676         * tests/unictype/test-pr_hex_digit.c: Likewise.
47677         * tests/unictype/test-pr_hyphen.c: Likewise.
47678         * tests/unictype/test-pr_id_continue.c: Likewise.
47679         * tests/unictype/test-pr_id_start.c: Likewise.
47680         * tests/unictype/test-pr_ideographic.c: Likewise.
47681         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
47682         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
47683         * tests/unictype/test-pr_ignorable_control.c: Likewise.
47684         * tests/unictype/test-pr_iso_control.c: Likewise.
47685         * tests/unictype/test-pr_join_control.c: Likewise.
47686         * tests/unictype/test-pr_left_of_pair.c: Likewise.
47687         * tests/unictype/test-pr_line_separator.c: Likewise.
47688         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
47689         * tests/unictype/test-pr_lowercase.c: Likewise.
47690         * tests/unictype/test-pr_math.c: Likewise.
47691         * tests/unictype/test-pr_non_break.c: Likewise.
47692         * tests/unictype/test-pr_not_a_character.c: Likewise.
47693         * tests/unictype/test-pr_numeric.c: Likewise.
47694         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
47695         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
47696         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
47697         * tests/unictype/test-pr_other_id_continue.c: Likewise.
47698         * tests/unictype/test-pr_other_id_start.c: Likewise.
47699         * tests/unictype/test-pr_other_lowercase.c: Likewise.
47700         * tests/unictype/test-pr_other_math.c: Likewise.
47701         * tests/unictype/test-pr_other_uppercase.c: Likewise.
47702         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
47703         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
47704         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
47705         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
47706         * tests/unictype/test-pr_private_use.c: Likewise.
47707         * tests/unictype/test-pr_punctuation.c: Likewise.
47708         * tests/unictype/test-pr_quotation_mark.c: Likewise.
47709         * tests/unictype/test-pr_radical.c: Likewise.
47710         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
47711         * tests/unictype/test-pr_soft_dotted.c: Likewise.
47712         * tests/unictype/test-pr_space.c: Likewise.
47713         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
47714         * tests/unictype/test-pr_titlecase.c: Likewise.
47715         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
47716         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
47717         * tests/unictype/test-pr_uppercase.c: Likewise.
47718         * tests/unictype/test-pr_variation_selector.c: Likewise.
47719         * tests/unictype/test-pr_white_space.c: Likewise.
47720         * tests/unictype/test-pr_xid_continue.c: Likewise.
47721         * tests/unictype/test-pr_xid_start.c: Likewise.
47722         * tests/unictype/test-pr_zero_width.c: Likewise.
47723         * tests/unictype/test-sy_c_whitespace.c: Likewise.
47724         * tests/unictype/test-sy_java_whitespace.c: Likewise.
47725
47726 2007-11-12  Bruno Haible  <bruno@clisp.org>
47727
47728         Unicode character classification functions.
47729         * lib/unictype.h: New file.
47730         * modules/unictype/base: New file.
47731         * modules/unictype/category-L: New file.
47732         * modules/unictype/category-Lu: New file.
47733         * modules/unictype/category-Ll: New file.
47734         * modules/unictype/category-Lt: New file.
47735         * modules/unictype/category-Lm: New file.
47736         * modules/unictype/category-Lo: New file.
47737         * modules/unictype/category-M: New file.
47738         * modules/unictype/category-Mn: New file.
47739         * modules/unictype/category-Mc: New file.
47740         * modules/unictype/category-Me: New file.
47741         * modules/unictype/category-N: New file.
47742         * modules/unictype/category-Nd: New file.
47743         * modules/unictype/category-Nl: New file.
47744         * modules/unictype/category-No: New file.
47745         * modules/unictype/category-P: New file.
47746         * modules/unictype/category-Pc: New file.
47747         * modules/unictype/category-Pd: New file.
47748         * modules/unictype/category-Ps: New file.
47749         * modules/unictype/category-Pe: New file.
47750         * modules/unictype/category-Pi: New file.
47751         * modules/unictype/category-Pf: New file.
47752         * modules/unictype/category-Po: New file.
47753         * modules/unictype/category-S: New file.
47754         * modules/unictype/category-Sm: New file.
47755         * modules/unictype/category-Sc: New file.
47756         * modules/unictype/category-Sk: New file.
47757         * modules/unictype/category-So: New file.
47758         * modules/unictype/category-Z: New file.
47759         * modules/unictype/category-Zs: New file.
47760         * modules/unictype/category-Zl: New file.
47761         * modules/unictype/category-Zp: New file.
47762         * modules/unictype/category-C: New file.
47763         * modules/unictype/category-Cc: New file.
47764         * modules/unictype/category-Cf: New file.
47765         * modules/unictype/category-Cs: New file.
47766         * modules/unictype/category-Co: New file.
47767         * modules/unictype/category-Cn: New file.
47768         * modules/unictype/category-or: New file.
47769         * modules/unictype/category-of: New file.
47770         * modules/unictype/category-test: New file.
47771         * modules/unictype/category-test-withtable: New file.
47772         * modules/unictype/category-byname: New file.
47773         * modules/unictype/category-none: New file.
47774         * modules/unictype/category-and: New file.
47775         * modules/unictype/category-and-not: New file.
47776         * modules/unictype/category-name: New file.
47777         * modules/unictype/combining-class: New file.
47778         * modules/unictype/category-all: New file.
47779         * modules/unictype/bidicategory-all: New file.
47780         * modules/unictype/bidicategory-byname: New file.
47781         * modules/unictype/bidicategory-name: New file.
47782         * modules/unictype/bidicategory-of: New file.
47783         * modules/unictype/bidicategory-test: New file.
47784         * modules/unictype/decimal-digit: New file.
47785         * modules/unictype/digit: New file.
47786         * modules/unictype/numeric: New file.
47787         * modules/unictype/mirror: New file.
47788         * modules/unictype/property-white-space: New file.
47789         * modules/unictype/property-alphabetic: New file.
47790         * modules/unictype/property-other-alphabetic: New file.
47791         * modules/unictype/property-not-a-character: New file.
47792         * modules/unictype/property-default-ignorable-code-point: New file.
47793         * modules/unictype/property-other-default-ignorable-code-point: New
47794         file.
47795         * modules/unictype/property-deprecated: New file.
47796         * modules/unictype/property-logical-order-exception: New file.
47797         * modules/unictype/property-variation-selector: New file.
47798         * modules/unictype/property-private-use: New file.
47799         * modules/unictype/property-unassigned-code-value: New file.
47800         * modules/unictype/property-uppercase: New file.
47801         * modules/unictype/property-other-uppercase: New file.
47802         * modules/unictype/property-lowercase: New file.
47803         * modules/unictype/property-other-lowercase: New file.
47804         * modules/unictype/property-titlecase: New file.
47805         * modules/unictype/property-soft-dotted: New file.
47806         * modules/unictype/property-id-start: New file.
47807         * modules/unictype/property-other-id-start: New file.
47808         * modules/unictype/property-id-continue: New file.
47809         * modules/unictype/property-other-id-continue: New file.
47810         * modules/unictype/property-xid-start: New file.
47811         * modules/unictype/property-xid-continue: New file.
47812         * modules/unictype/property-pattern-white-space: New file.
47813         * modules/unictype/property-pattern-syntax: New file.
47814         * modules/unictype/property-join-control: New file.
47815         * modules/unictype/property-grapheme-base: New file.
47816         * modules/unictype/property-grapheme-extend: New file.
47817         * modules/unictype/property-other-grapheme-extend: New file.
47818         * modules/unictype/property-grapheme-link: New file.
47819         * modules/unictype/property-bidi-control: New file.
47820         * modules/unictype/property-bidi-left-to-right: New file.
47821         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
47822         * modules/unictype/property-bidi-arabic-right-to-left: New file.
47823         * modules/unictype/property-bidi-european-digit: New file.
47824         * modules/unictype/property-bidi-eur-num-separator: New file.
47825         * modules/unictype/property-bidi-eur-num-terminator: New file.
47826         * modules/unictype/property-bidi-arabic-digit: New file.
47827         * modules/unictype/property-bidi-common-separator: New file.
47828         * modules/unictype/property-bidi-block-separator: New file.
47829         * modules/unictype/property-bidi-segment-separator: New file.
47830         * modules/unictype/property-bidi-whitespace: New file.
47831         * modules/unictype/property-bidi-non-spacing-mark: New file.
47832         * modules/unictype/property-bidi-boundary-neutral: New file.
47833         * modules/unictype/property-bidi-pdf: New file.
47834         * modules/unictype/property-bidi-embedding-or-override: New file.
47835         * modules/unictype/property-bidi-other-neutral: New file.
47836         * modules/unictype/property-hex-digit: New file.
47837         * modules/unictype/property-ascii-hex-digit: New file.
47838         * modules/unictype/property-ideographic: New file.
47839         * modules/unictype/property-unified-ideograph: New file.
47840         * modules/unictype/property-radical: New file.
47841         * modules/unictype/property-ids-binary-operator: New file.
47842         * modules/unictype/property-ids-trinary-operator: New file.
47843         * modules/unictype/property-zero-width: New file.
47844         * modules/unictype/property-space: New file.
47845         * modules/unictype/property-non-break: New file.
47846         * modules/unictype/property-iso-control: New file.
47847         * modules/unictype/property-format-control: New file.
47848         * modules/unictype/property-dash: New file.
47849         * modules/unictype/property-hyphen: New file.
47850         * modules/unictype/property-punctuation: New file.
47851         * modules/unictype/property-line-separator: New file.
47852         * modules/unictype/property-paragraph-separator: New file.
47853         * modules/unictype/property-quotation-mark: New file.
47854         * modules/unictype/property-sentence-terminal: New file.
47855         * modules/unictype/property-terminal-punctuation: New file.
47856         * modules/unictype/property-currency-symbol: New file.
47857         * modules/unictype/property-math: New file.
47858         * modules/unictype/property-other-math: New file.
47859         * modules/unictype/property-paired-punctuation: New file.
47860         * modules/unictype/property-left-of-pair: New file.
47861         * modules/unictype/property-combining: New file.
47862         * modules/unictype/property-composite: New file.
47863         * modules/unictype/property-decimal-digit: New file.
47864         * modules/unictype/property-numeric: New file.
47865         * modules/unictype/property-diacritic: New file.
47866         * modules/unictype/property-extender: New file.
47867         * modules/unictype/property-ignorable-control: New file.
47868         * modules/unictype/property-test: New file.
47869         * modules/unictype/property-byname: New file.
47870         * modules/unictype/property-all: New file.
47871         * modules/unictype/scripts: New file.
47872         * modules/unictype/scripts-all: New file.
47873         * modules/unictype/block-of: New file.
47874         * modules/unictype/block-test: New file.
47875         * modules/unictype/block-list: New file.
47876         * modules/unictype/block-all: New file.
47877         * modules/unictype/syntax-c-whitespace: New file.
47878         * modules/unictype/syntax-java-whitespace: New file.
47879         * modules/unictype/syntax-c-ident: New file.
47880         * modules/unictype/syntax-java-ident: New file.
47881         * modules/unictype/ctype-alnum: New file.
47882         * modules/unictype/ctype-alpha: New file.
47883         * modules/unictype/ctype-cntrl: New file.
47884         * modules/unictype/ctype-digit: New file.
47885         * modules/unictype/ctype-graph: New file.
47886         * modules/unictype/ctype-lower: New file.
47887         * modules/unictype/ctype-print: New file.
47888         * modules/unictype/ctype-punct: New file.
47889         * modules/unictype/ctype-space: New file.
47890         * modules/unictype/ctype-upper: New file.
47891         * modules/unictype/ctype-xdigit: New file.
47892         * modules/unictype/ctype-blank: New file.
47893         * lib/unictype/bidi_byname.c: New file.
47894         * lib/unictype/bidi_name.c: New file.
47895         * lib/unictype/bidi_of.c: New file.
47896         * lib/unictype/bidi_test.c: New file.
47897         * lib/unictype/bitmap.h: New file.
47898         * lib/unictype/block_test.c: New file.
47899         * lib/unictype/blocks.c: New file.
47900         * lib/unictype/categ_C.c: New file.
47901         * lib/unictype/categ_Cc.c: New file.
47902         * lib/unictype/categ_Cf.c: New file.
47903         * lib/unictype/categ_Cn.c: New file.
47904         * lib/unictype/categ_Co.c: New file.
47905         * lib/unictype/categ_Cs.c: New file.
47906         * lib/unictype/categ_L.c: New file.
47907         * lib/unictype/categ_Ll.c: New file.
47908         * lib/unictype/categ_Lm.c: New file.
47909         * lib/unictype/categ_Lo.c: New file.
47910         * lib/unictype/categ_Lt.c: New file.
47911         * lib/unictype/categ_Lu.c: New file.
47912         * lib/unictype/categ_M.c: New file.
47913         * lib/unictype/categ_Mc.c: New file.
47914         * lib/unictype/categ_Me.c: New file.
47915         * lib/unictype/categ_Mn.c: New file.
47916         * lib/unictype/categ_N.c: New file.
47917         * lib/unictype/categ_Nd.c: New file.
47918         * lib/unictype/categ_Nl.c: New file.
47919         * lib/unictype/categ_No.c: New file.
47920         * lib/unictype/categ_P.c: New file.
47921         * lib/unictype/categ_Pc.c: New file.
47922         * lib/unictype/categ_Pd.c: New file.
47923         * lib/unictype/categ_Pe.c: New file.
47924         * lib/unictype/categ_Pf.c: New file.
47925         * lib/unictype/categ_Pi.c: New file.
47926         * lib/unictype/categ_Po.c: New file.
47927         * lib/unictype/categ_Ps.c: New file.
47928         * lib/unictype/categ_S.c: New file.
47929         * lib/unictype/categ_Sc.c: New file.
47930         * lib/unictype/categ_Sk.c: New file.
47931         * lib/unictype/categ_Sm.c: New file.
47932         * lib/unictype/categ_So.c: New file.
47933         * lib/unictype/categ_Z.c: New file.
47934         * lib/unictype/categ_Zl.c: New file.
47935         * lib/unictype/categ_Zp.c: New file.
47936         * lib/unictype/categ_Zs.c: New file.
47937         * lib/unictype/categ_and.c: New file.
47938         * lib/unictype/categ_and_not.c: New file.
47939         * lib/unictype/categ_byname.c: New file.
47940         * lib/unictype/categ_name.c: New file.
47941         * lib/unictype/categ_none.c: New file.
47942         * lib/unictype/categ_of.c: New file.
47943         * lib/unictype/categ_or.c: New file.
47944         * lib/unictype/categ_test.c: New file.
47945         * lib/unictype/combining.c: New file.
47946         * lib/unictype/ctype_alnum.c: New file.
47947         * lib/unictype/ctype_alpha.c: New file.
47948         * lib/unictype/ctype_blank.c: New file.
47949         * lib/unictype/ctype_cntrl.c: New file.
47950         * lib/unictype/ctype_digit.c: New file.
47951         * lib/unictype/ctype_graph.c: New file.
47952         * lib/unictype/ctype_lower.c: New file.
47953         * lib/unictype/ctype_print.c: New file.
47954         * lib/unictype/ctype_punct.c: New file.
47955         * lib/unictype/ctype_space.c: New file.
47956         * lib/unictype/ctype_upper.c: New file.
47957         * lib/unictype/ctype_xdigit.c: New file.
47958         * lib/unictype/decdigit.c: New file.
47959         * lib/unictype/digit.c: New file.
47960         * lib/unictype/identsyntaxmap.h: New file.
47961         * lib/unictype/mirror.c: New file.
47962         * lib/unictype/numeric.c: New file.
47963         * lib/unictype/pr_alphabetic.c: New file.
47964         * lib/unictype/pr_ascii_hex_digit.c: New file.
47965         * lib/unictype/pr_bidi_arabic_digit.c: New file.
47966         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
47967         * lib/unictype/pr_bidi_block_separator.c: New file.
47968         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
47969         * lib/unictype/pr_bidi_common_separator.c: New file.
47970         * lib/unictype/pr_bidi_control.c: New file.
47971         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
47972         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
47973         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
47974         * lib/unictype/pr_bidi_european_digit.c: New file.
47975         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
47976         * lib/unictype/pr_bidi_left_to_right.c: New file.
47977         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
47978         * lib/unictype/pr_bidi_other_neutral.c: New file.
47979         * lib/unictype/pr_bidi_pdf.c: New file.
47980         * lib/unictype/pr_bidi_segment_separator.c: New file.
47981         * lib/unictype/pr_bidi_whitespace.c: New file.
47982         * lib/unictype/pr_byname.c: New file.
47983         * lib/unictype/pr_byname.gperf: New file.
47984         * lib/unictype/pr_combining.c: New file.
47985         * lib/unictype/pr_composite.c: New file.
47986         * lib/unictype/pr_currency_symbol.c: New file.
47987         * lib/unictype/pr_dash.c: New file.
47988         * lib/unictype/pr_decimal_digit.c: New file.
47989         * lib/unictype/pr_default_ignorable_code_point.c: New file.
47990         * lib/unictype/pr_deprecated.c: New file.
47991         * lib/unictype/pr_diacritic.c: New file.
47992         * lib/unictype/pr_extender.c: New file.
47993         * lib/unictype/pr_format_control.c: New file.
47994         * lib/unictype/pr_grapheme_base.c: New file.
47995         * lib/unictype/pr_grapheme_extend.c: New file.
47996         * lib/unictype/pr_grapheme_link.c: New file.
47997         * lib/unictype/pr_hex_digit.c: New file.
47998         * lib/unictype/pr_hyphen.c: New file.
47999         * lib/unictype/pr_id_continue.c: New file.
48000         * lib/unictype/pr_id_start.c: New file.
48001         * lib/unictype/pr_ideographic.c: New file.
48002         * lib/unictype/pr_ids_binary_operator.c: New file.
48003         * lib/unictype/pr_ids_trinary_operator.c: New file.
48004         * lib/unictype/pr_ignorable_control.c: New file.
48005         * lib/unictype/pr_iso_control.c: New file.
48006         * lib/unictype/pr_join_control.c: New file.
48007         * lib/unictype/pr_left_of_pair.c: New file.
48008         * lib/unictype/pr_line_separator.c: New file.
48009         * lib/unictype/pr_logical_order_exception.c: New file.
48010         * lib/unictype/pr_lowercase.c: New file.
48011         * lib/unictype/pr_math.c: New file.
48012         * lib/unictype/pr_non_break.c: New file.
48013         * lib/unictype/pr_not_a_character.c: New file.
48014         * lib/unictype/pr_numeric.c: New file.
48015         * lib/unictype/pr_other_alphabetic.c: New file.
48016         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48017         * lib/unictype/pr_other_grapheme_extend.c: New file.
48018         * lib/unictype/pr_other_id_continue.c: New file.
48019         * lib/unictype/pr_other_id_start.c: New file.
48020         * lib/unictype/pr_other_lowercase.c: New file.
48021         * lib/unictype/pr_other_math.c: New file.
48022         * lib/unictype/pr_other_uppercase.c: New file.
48023         * lib/unictype/pr_paired_punctuation.c: New file.
48024         * lib/unictype/pr_paragraph_separator.c: New file.
48025         * lib/unictype/pr_pattern_syntax.c: New file.
48026         * lib/unictype/pr_pattern_white_space.c: New file.
48027         * lib/unictype/pr_private_use.c: New file.
48028         * lib/unictype/pr_punctuation.c: New file.
48029         * lib/unictype/pr_quotation_mark.c: New file.
48030         * lib/unictype/pr_radical.c: New file.
48031         * lib/unictype/pr_sentence_terminal.c: New file.
48032         * lib/unictype/pr_soft_dotted.c: New file.
48033         * lib/unictype/pr_space.c: New file.
48034         * lib/unictype/pr_terminal_punctuation.c: New file.
48035         * lib/unictype/pr_test.c: New file.
48036         * lib/unictype/pr_titlecase.c: New file.
48037         * lib/unictype/pr_unassigned_code_value.c: New file.
48038         * lib/unictype/pr_unified_ideograph.c: New file.
48039         * lib/unictype/pr_uppercase.c: New file.
48040         * lib/unictype/pr_variation_selector.c: New file.
48041         * lib/unictype/pr_white_space.c: New file.
48042         * lib/unictype/pr_xid_continue.c: New file.
48043         * lib/unictype/pr_xid_start.c: New file.
48044         * lib/unictype/pr_zero_width.c: New file.
48045         * lib/unictype/scripts.c: New file.
48046         * lib/unictype/sy_c_ident.c: New file.
48047         * lib/unictype/sy_c_whitespace.c: New file.
48048         * lib/unictype/sy_java_ident.c: New file.
48049         * lib/unictype/sy_java_whitespace.c: New file.
48050
48051         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48052         Unicode 5.0.0.
48053         * lib/unictype/blocks.h: Likewise.
48054         * lib/unictype/categ_C.h: Likewise.
48055         * lib/unictype/categ_Cc.h: Likewise.
48056         * lib/unictype/categ_Cf.h: Likewise.
48057         * lib/unictype/categ_Cn.h: Likewise.
48058         * lib/unictype/categ_Co.h: Likewise.
48059         * lib/unictype/categ_Cs.h: Likewise.
48060         * lib/unictype/categ_L.h: Likewise.
48061         * lib/unictype/categ_Ll.h: Likewise.
48062         * lib/unictype/categ_Lm.h: Likewise.
48063         * lib/unictype/categ_Lo.h: Likewise.
48064         * lib/unictype/categ_Lt.h: Likewise.
48065         * lib/unictype/categ_Lu.h: Likewise.
48066         * lib/unictype/categ_M.h: Likewise.
48067         * lib/unictype/categ_Mc.h: Likewise.
48068         * lib/unictype/categ_Me.h: Likewise.
48069         * lib/unictype/categ_Mn.h: Likewise.
48070         * lib/unictype/categ_N.h: Likewise.
48071         * lib/unictype/categ_Nd.h: Likewise.
48072         * lib/unictype/categ_Nl.h: Likewise.
48073         * lib/unictype/categ_No.h: Likewise.
48074         * lib/unictype/categ_P.h: Likewise.
48075         * lib/unictype/categ_Pc.h: Likewise.
48076         * lib/unictype/categ_Pd.h: Likewise.
48077         * lib/unictype/categ_Pe.h: Likewise.
48078         * lib/unictype/categ_Pf.h: Likewise.
48079         * lib/unictype/categ_Pi.h: Likewise.
48080         * lib/unictype/categ_Po.h: Likewise.
48081         * lib/unictype/categ_Ps.h: Likewise.
48082         * lib/unictype/categ_S.h: Likewise.
48083         * lib/unictype/categ_Sc.h: Likewise.
48084         * lib/unictype/categ_Sk.h: Likewise.
48085         * lib/unictype/categ_Sm.h: Likewise.
48086         * lib/unictype/categ_So.h: Likewise.
48087         * lib/unictype/categ_Z.h: Likewise.
48088         * lib/unictype/categ_Zl.h: Likewise.
48089         * lib/unictype/categ_Zp.h: Likewise.
48090         * lib/unictype/categ_Zs.h: Likewise.
48091         * lib/unictype/categ_of.h: Likewise.
48092         * lib/unictype/combining.h: Likewise.
48093         * lib/unictype/ctype_alnum.h: Likewise.
48094         * lib/unictype/ctype_alpha.h: Likewise.
48095         * lib/unictype/ctype_blank.h: Likewise.
48096         * lib/unictype/ctype_cntrl.h: Likewise.
48097         * lib/unictype/ctype_digit.h: Likewise.
48098         * lib/unictype/ctype_graph.h: Likewise.
48099         * lib/unictype/ctype_lower.h: Likewise.
48100         * lib/unictype/ctype_print.h: Likewise.
48101         * lib/unictype/ctype_punct.h: Likewise.
48102         * lib/unictype/ctype_space.h: Likewise.
48103         * lib/unictype/ctype_upper.h: Likewise.
48104         * lib/unictype/ctype_xdigit.h: Likewise.
48105         * lib/unictype/decdigit.h: Likewise.
48106         * lib/unictype/digit.h: Likewise.
48107         * lib/unictype/mirror.h: Likewise.
48108         * lib/unictype/numeric.h: Likewise.
48109         * lib/unictype/pr_alphabetic.h: Likewise.
48110         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48111         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48112         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48113         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48114         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48115         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48116         * lib/unictype/pr_bidi_control.h: Likewise.
48117         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48118         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48119         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48120         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48121         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48122         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48123         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48124         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48125         * lib/unictype/pr_bidi_pdf.h: Likewise.
48126         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48127         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48128         * lib/unictype/pr_combining.h: Likewise.
48129         * lib/unictype/pr_composite.h: Likewise.
48130         * lib/unictype/pr_currency_symbol.h: Likewise.
48131         * lib/unictype/pr_dash.h: Likewise.
48132         * lib/unictype/pr_decimal_digit.h: Likewise.
48133         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48134         * lib/unictype/pr_deprecated.h: Likewise.
48135         * lib/unictype/pr_diacritic.h: Likewise.
48136         * lib/unictype/pr_extender.h: Likewise.
48137         * lib/unictype/pr_format_control.h: Likewise.
48138         * lib/unictype/pr_grapheme_base.h: Likewise.
48139         * lib/unictype/pr_grapheme_extend.h: Likewise.
48140         * lib/unictype/pr_grapheme_link.h: Likewise.
48141         * lib/unictype/pr_hex_digit.h: Likewise.
48142         * lib/unictype/pr_hyphen.h: Likewise.
48143         * lib/unictype/pr_id_continue.h: Likewise.
48144         * lib/unictype/pr_id_start.h: Likewise.
48145         * lib/unictype/pr_ideographic.h: Likewise.
48146         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48147         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48148         * lib/unictype/pr_ignorable_control.h: Likewise.
48149         * lib/unictype/pr_iso_control.h: Likewise.
48150         * lib/unictype/pr_join_control.h: Likewise.
48151         * lib/unictype/pr_left_of_pair.h: Likewise.
48152         * lib/unictype/pr_line_separator.h: Likewise.
48153         * lib/unictype/pr_logical_order_exception.h: Likewise.
48154         * lib/unictype/pr_lowercase.h: Likewise.
48155         * lib/unictype/pr_math.h: Likewise.
48156         * lib/unictype/pr_non_break.h: Likewise.
48157         * lib/unictype/pr_not_a_character.h: Likewise.
48158         * lib/unictype/pr_numeric.h: Likewise.
48159         * lib/unictype/pr_other_alphabetic.h: Likewise.
48160         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48161         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48162         * lib/unictype/pr_other_id_continue.h: Likewise.
48163         * lib/unictype/pr_other_id_start.h: Likewise.
48164         * lib/unictype/pr_other_lowercase.h: Likewise.
48165         * lib/unictype/pr_other_math.h: Likewise.
48166         * lib/unictype/pr_other_uppercase.h: Likewise.
48167         * lib/unictype/pr_paired_punctuation.h: Likewise.
48168         * lib/unictype/pr_paragraph_separator.h: Likewise.
48169         * lib/unictype/pr_pattern_syntax.h: Likewise.
48170         * lib/unictype/pr_pattern_white_space.h: Likewise.
48171         * lib/unictype/pr_private_use.h: Likewise.
48172         * lib/unictype/pr_punctuation.h: Likewise.
48173         * lib/unictype/pr_quotation_mark.h: Likewise.
48174         * lib/unictype/pr_radical.h: Likewise.
48175         * lib/unictype/pr_sentence_terminal.h: Likewise.
48176         * lib/unictype/pr_soft_dotted.h: Likewise.
48177         * lib/unictype/pr_space.h: Likewise.
48178         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48179         * lib/unictype/pr_titlecase.h: Likewise.
48180         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48181         * lib/unictype/pr_unified_ideograph.h: Likewise.
48182         * lib/unictype/pr_uppercase.h: Likewise.
48183         * lib/unictype/pr_variation_selector.h: Likewise.
48184         * lib/unictype/pr_white_space.h: Likewise.
48185         * lib/unictype/pr_xid_continue.h: Likewise.
48186         * lib/unictype/pr_xid_start.h: Likewise.
48187         * lib/unictype/pr_zero_width.h: Likewise.
48188         * lib/unictype/scripts.h: Likewise.
48189         * lib/unictype/scripts_byname.gperf: Likewise.
48190         * lib/unictype/sy_c_ident.h: Likewise.
48191         * lib/unictype/sy_c_whitespace.h: Likewise.
48192         * lib/unictype/sy_java_ident.h: Likewise.
48193         * lib/unictype/sy_java_whitespace.h: Likewise.
48194
48195         * lib/unictype/Makefile: New file.
48196         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48197         glibc.
48198         * lib/unictype/3level.h: New file, copied from glibc.
48199         * lib/unictype/3levelbit.h: New file.
48200
48201 2007-11-11  Bruno Haible  <bruno@clisp.org>
48202
48203         * modules/gperf: New file.
48204         * modules/iconv_open (Depends-on): Add it.
48205         (Makefile.am): Remove the GPERF definition.
48206
48207 2007-11-11  Bruno Haible  <bruno@clisp.org>
48208
48209         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48210         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48211
48212 2007-11-11  Bruno Haible  <bruno@clisp.org>
48213
48214         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48215         (usage): Remove function.
48216
48217 2007-11-11  Bruno Haible  <bruno@clisp.org>
48218
48219         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48220         gl_FUNC_CEILF_LIBS.
48221         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48222         gl_FUNC_CEIL_LIBS.
48223         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48224         gl_FUNC_CEILL_LIBS.
48225         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48226         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48227         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48228
48229 2007-11-11  Bruno Haible  <bruno@clisp.org>
48230
48231         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48232         roundf were declared but do not exist on functions.
48233         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48234         roundl were declared but do not exist on functions.
48235         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48236         HAVE_FLOORL_AND_CEILL, respectively.
48237         Needed for Sun C on Solaris 10.
48238
48239 2007-11-11  Bruno Haible  <bruno@clisp.org>
48240
48241         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48242         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48243         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48244         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48245         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48246         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48247         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48248         HAVE_DECL_ROUNDF.
48249         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48250         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48252         of HAVE_DECL_ROUND*.
48253         * modules/math (Makefile.am): Update.
48254
48255 2007-11-10  Bruno Haible  <bruno@clisp.org>
48256
48257         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48258         ptrdiff_t as m4/intl.m4.
48259
48260 2007-11-10  Jim Meyering  <meyering@redhat.com>
48261
48262         Avoid link failure for the argmatch test.
48263         * tests/test-argmatch.c (usage): Define function to avoid a link
48264         failure: argmatch_die requires a usage function.
48265
48266 2007-11-09  Bruno Haible  <bruno@clisp.org>
48267
48268         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48269         * doc/functions/vsnprintf.texi: Likewise.
48270         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48271         with a size argument < 2.
48272
48273 2007-11-09  Bruno Haible  <bruno@clisp.org>
48274
48275         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48276         buffer. Fixes an inefficiency introduced on 2007-11-03.
48277
48278 2007-11-09  Bruno Haible  <bruno@clisp.org>
48279
48280         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48281         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48282
48283 2007-11-08  Jim Meyering  <meyering@redhat.com>
48284
48285         Change cache variable name prefix "jm_" to "gl_" everywhere.
48286         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48287         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48288         * m4/uptime.m4: s/gl_/jm_/
48289
48290 2007-11-07  Bruno Haible  <bruno@clisp.org>
48291
48292         Update to GNU gettext 0.17.
48293         * m4/intl.m4: Update to GNU gettext 0.17.
48294         * m4/po.m4: Likewise.
48295         * modules/gettext (Files): Remove m4/ulonglong.m4.
48296         (configure.ac): Require gettext infrastructure from version 0.17.
48297
48298 2007-11-06  Bruno Haible  <bruno@clisp.org>
48299
48300         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48301         symbolic values are not defined in a public header.
48302         * lib/freadable.c (freadable) [QNX]: Likewise.
48303         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48304         * lib/freading.c (freading) [QNX]: Likewise.
48305         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48306         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48307         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48308         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48309         Reported by Alain Magloire.
48310
48311         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48312
48313 2007-11-05  Bruno Haible  <bruno@clisp.org>
48314
48315         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48316         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48317         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48318         Reported by Eric Blake.
48319
48320 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48321             Bruno Haible  <bruno@clisp.org>
48322
48323         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48324         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48325         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48326         (malloc): Undefine also before including <stdlib.h>.
48327         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48328         Needed on OSF/1 4.0.
48329
48330 2007-11-05  Jim Meyering  <meyering@redhat.com>
48331
48332         git-version-gen: sync from coreutils.
48333         * build-aux/git-version-gen: Add comments.
48334         Change the first '-' to '.' in the snapshot version string,
48335         e.g., 6.9-377-08144 -> 6.9.377-08144
48336         Remove first parameter.
48337         Don't declare a version "-dirty" merely because a time
48338         stamp has changed.
48339
48340 2007-11-04  Bruno Haible  <bruno@clisp.org>
48341
48342         * lib/lock.h: Protect all macro definitions containing an 'if'
48343         statement through a "do { ... } while (0)".
48344         * lib/tls.h: Likewise.
48345
48346 2007-11-04  Bruno Haible  <bruno@clisp.org>
48347
48348         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48349
48350 2007-11-04  Bruno Haible  <bruno@clisp.org>
48351
48352         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48353         * modules/fprintf-posix (Depends-on): Add nocrash.
48354         * modules/snprintf-posix (Depends-on): Likewise.
48355         * modules/sprintf-posix (Depends-on): Likewise.
48356         * modules/vasnprintf-posix (Depends-on): Likewise.
48357         * modules/vasprintf-posix (Depends-on): Likewise.
48358         * modules/vfprintf-posix (Depends-on): Likewise.
48359         * modules/vsnprintf-posix (Depends-on): Likewise.
48360         * modules/vsprintf-posix (Depends-on): Likewise.
48361         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48362         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48363         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48364         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48365         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48366         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48367         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48368
48369 2007-11-04  Bruno Haible  <bruno@clisp.org>
48370
48371         * modules/nocrash: New file.
48372         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48373         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48374
48375 2007-11-04  Bruno Haible  <bruno@clisp.org>
48376
48377         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48378         precision handling.
48379         * tests/test-vasprintf-posix.c (test_function): Likewise.
48380         * tests/test-snprintf-posix.h (test_function): Likewise.
48381         * tests/test-sprintf-posix.h (test_function): Likewise.
48382
48383         Fix *printf behaviour for large precisions on mingw and BeOS.
48384         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48385         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48386         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48387         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48388         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48389         gl_PRINTF_PRECISION and test its result. Invoke
48390         gl_PREREQ_VASNPRINTF_PRECISION.
48391         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48392         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48393         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48394         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48395         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48396         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48397         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48398         * doc/functions/fprintf.texi: Update.
48399         * doc/functions/printf.texi: Update.
48400         * doc/functions/snprintf.texi: Update.
48401         * doc/functions/sprintf.texi: Update.
48402         * doc/functions/vfprintf.texi: Update.
48403         * doc/functions/vprintf.texi: Update.
48404         * doc/functions/vsnprintf.texi: Update.
48405         * doc/functions/vsprintf.texi: Update.
48406
48407 2007-11-04  Bruno Haible  <bruno@clisp.org>
48408
48409         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48410
48411 2007-11-04  Bruno Haible  <bruno@clisp.org>
48412
48413         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48414         Reported by Sylvain Beucler <beuc@gnu.org>.
48415
48416 2007-11-03  Bruno Haible  <bruno@clisp.org>
48417
48418         * tests/test-fprintf-posix2.sh: New file.
48419         * tests/test-fprintf-posix2.c: New file.
48420         * modules/fprintf-posix-tests (Files): Add them.
48421         (TESTS): Add test-fprintf-posix2.sh.
48422         (configure.ac): Check for getrlimit and setrlimit.
48423         (check_PROGRAMS): Add test-fprintf-posix2.
48424
48425         * tests/test-printf-posix2.sh: New file.
48426         * tests/test-printf-posix2.c: New file.
48427         * modules/printf-posix-tests (Files): Add them.
48428         (TESTS): Add test-printf-posix2.sh.
48429         (configure.ac): Check for getrlimit and setrlimit.
48430         (check_PROGRAMS): Add test-printf-posix2.
48431
48432         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48433         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48434         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48435         (decode_double): New function, copied from decode_long_double.
48436         (scale10_round_decimal_decoded): New function, extracted from
48437         scale10_round_decimal_long_double.
48438         (scale10_round_decimal_long_double): Use it.
48439         (scale10_round_decimal_double): New function.
48440         (floorlog10): New function.
48441         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48443         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48444         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48445         gl_PRINTF_ENOMEM and test its result. Invoke
48446         gl_PREREQ_VASNPRINTF_ENOMEM.
48447         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48448         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48449         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48450         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48451         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48452         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48453         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48454         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
48455         * modules/snprintf-posix (Depends-on): Likewise.
48456         * modules/sprintf-posix (Depends-on): Likewise.
48457         * modules/vasnprintf-posix (Depends-on): Likewise.
48458         * modules/vasprintf-posix (Depends-on): Likewise.
48459         * modules/vfprintf-posix (Depends-on): Likewise.
48460         * modules/vsnprintf-posix (Depends-on): Likewise.
48461         * modules/vsprintf-posix (Depends-on): Likewise.
48462         * doc/functions/fprintf.texi: Update.
48463         * doc/functions/printf.texi: Update.
48464         * doc/functions/snprintf.texi: Update.
48465         * doc/functions/sprintf.texi: Update.
48466         * doc/functions/vfprintf.texi: Update.
48467         * doc/functions/vprintf.texi: Update.
48468         * doc/functions/vsnprintf.texi: Update.
48469         * doc/functions/vsprintf.texi: Update.
48470
48471 2007-11-03  Bruno Haible  <bruno@clisp.org>
48472
48473         * modules/frexp-nolibm-tests: New file.
48474
48475         * modules/frexp-nolibm: New file.
48476         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48477
48478 2007-11-03  Bruno Haible  <bruno@clisp.org>
48479
48480         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48481         value is C99 compliant.
48482         Needed for OSF/1 5.1.
48483
48484 2007-11-03  Bruno Haible  <bruno@clisp.org>
48485
48486         Fix out-of-memory handling of vasnprintf.
48487         * lib/printf-parse.c: Include <errno.h>.
48488         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48489         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48490         is already set.
48491
48492 2007-11-02  Eric Blake  <ebb9@byu.net>
48493
48494         Fix tests on cygwin.
48495         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48496
48497 2007-11-01  Bruno Haible  <bruno@clisp.org>
48498
48499         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48500         warning.
48501         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48502         needed for POSIX compatibility.
48503
48504 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48505
48506         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48507         for compatibility with GNU.
48508
48509 2007-11-01  Bruno Haible  <bruno@clisp.org>
48510
48511         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48512         (putenv): Renamed from rpl_putenv. Change argument type from
48513         'const char *' to 'char *'.
48514         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48515         of defining putenv in config.h, just set REPLACE_PUTENV.
48516         * modules/putenv (Depends-on): Add stdlib.
48517         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48518         (Include): Use <stdlib.h>.
48519         * lib/stdlib.in.h (putenv): New declaration.
48520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48521         REPLACE_PUTENV.
48522         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48523         REPLACE_PUTENV.
48524         Needed for MacOS X 10.5.0.
48525         Reported by Peter O'Gorman <peter@pogma.com>.
48526
48527 2007-11-01  Jim Meyering  <meyering@redhat.com>
48528
48529         Treat an empty date string exactly like "0".
48530         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48531         if the remaining date string (to be parsed) is empty, use "0".
48532         Reported by Mischa Molhoek and discussed in this thread:
48533         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48534
48535 2007-10-31  Bruno Haible  <bruno@clisp.org>
48536
48537         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
48538         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
48539         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
48540         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
48541         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
48542         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
48543
48544 2007-10-31  Bruno Haible  <bruno@clisp.org>
48545
48546         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
48547         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
48548         (AC_TYPE_LONG_LONG_INT): Use it.
48549         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
48550         it as well.
48551         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
48552         to m4/longlong.m4.
48553         * modules/stdint (Files): Remove m4/ulonglong.m4.
48554         * modules/strtoull (Files): Use m4/longlong.m4 instead of
48555         m4/ulonglong.m4.
48556         * modules/strtoumax (Files): Likewise.
48557
48558 2007-10-30  Bruno Haible  <bruno@clisp.org>
48559
48560         * modules/xvasprintf-posix: New file.
48561         Suggested by Eric Blake.
48562
48563 2007-10-30  Bruno Haible  <bruno@clisp.org>
48564
48565         * modules/xprintf-posix-tests: New file.
48566         * tests/test-xprintf-posix.sh: New file.
48567         * tests/test-xprintf-posix.c: New file.
48568         * tests/test-xfprintf-posix.c: New file.
48569
48570         * modules/xprintf-posix: New file.
48571
48572 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48573
48574         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
48575         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
48576         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
48577
48578 2007-10-29  Bruno Haible  <bruno@clisp.org>
48579
48580         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
48581         contain the special marker '_cv_'.
48582         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48583         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48584         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48585         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
48586         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48587         Reported by Ralf Wildenhues.
48588
48589 2007-10-29  Bruno Haible  <bruno@clisp.org>
48590
48591         * gnulib-tool (func_import): When --lgpl is not specified, set
48592         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
48593         GPLv3.
48594         Reported by Simon Josefsson.
48595
48596 2007-10-28  Bruno Haible  <bruno@clisp.org>
48597
48598         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
48599         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
48600         HAVE_DECL_ISFINITE.
48601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48602         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
48603         HAVE_DECL_ISFINITE.
48604
48605 2007-10-28  Bruno Haible  <bruno@clisp.org>
48606
48607         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
48608         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
48609
48610 2007-10-28  Bruno Haible  <bruno@clisp.org>
48611
48612         Fix link errors with Sun C 5.0 on Solaris 10.
48613         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
48614         function is declared but not present in the compiler's libm.
48615         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48616         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48617         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
48618         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
48619         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
48620         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
48621         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
48622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48623         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
48624         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
48625         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
48626         HAVE_DECL_FLOORL.
48627
48628 2007-10-28  Bruno Haible  <bruno@clisp.org>
48629
48630         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
48631         gl_FUNC_FLOORL. Cache the result.
48632         (gl_FUNC_FLOORL): Use it.
48633         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
48634         gl_FUNC_CEILL. Cache the result.
48635         (gl_FUNC_CEILL): Use it.
48636
48637         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
48638         gl_FUNC_FLOOR. Cache the result.
48639         (gl_FUNC_FLOOR): Use it.
48640         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
48641         gl_FUNC_CEIL. Cache the result.
48642         (gl_FUNC_CEIL): Use it.
48643
48644         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
48645         gl_FUNC_FLOORF. Cache the result.
48646         (gl_FUNC_FLOORF): Use it.
48647         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
48648         gl_FUNC_CEILF. Cache the result.
48649         (gl_FUNC_CEILF): Use it.
48650
48651 2007-10-28  Bruno Haible  <bruno@clisp.org>
48652
48653         * gnulib-tool: Allow specifying the LGPL version number through
48654         --lgpl=2 or --lgpl=3.
48655         (func_usage): Document --lgpl with argument.
48656         Handle --lgpl=... arguments.
48657         (func_import): Recognize also gl_LGPL calls with an argument. When
48658         --lgpl=2 is used and the module's license is just LGPL, report an
48659         error. Set sed_transform_lib_file according to the lgpl variable. In
48660         the generated files, use --lgpl or gl_LGPL invocations with argument,
48661         if necessary.
48662         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
48663         an LGPv2+ license.
48664         * doc/gnulib-tool.texi (Modified imports): Update explanation of
48665         gl_LGPL macro.
48666
48667 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48668             Bruno Haible  <bruno@clisp.org>
48669
48670         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
48671         (u16_uctomb_aux): Likewise.
48672         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
48673         !HAVE_INLINE.
48674         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
48675
48676 2007-10-28  Bruno Haible  <bruno@clisp.org>
48677
48678         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
48679         Invoke AM_GETTEXT_OPTION if it exists.
48680         * modules/vasprintf: Likewise.
48681         * modules/verror: Likewise.
48682         * modules/xprintf: Likewise.
48683         * modules/xvasprintf: Likewise.
48684
48685 2007-10-27  Ben Pfaff  <blp@gnu.org>
48686
48687         * lib/math.in.h: Define isfinite macro and prototypes for
48688         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
48689         implementations.
48690         * m4/math_h.m4: New substitutions for isfinite module.
48691         * lib/isfinite.c: New file.
48692         * m4/isfinite.m4: New file.
48693         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
48694         * modules/isfinite: New file.
48695         * modules/isfinite-tests: New file.
48696         * tests/tests-isfinite.c: New file.
48697         * doc/functions/isfinite.texi: Mention isfinite module.
48698         * MODULES.html.sh: Mention new module.
48699
48700 2007-10-27  Ben Pfaff  <blp@gnu.org>
48701
48702         Ralf Wildenhues reported that Tru64 4.0D declares the round
48703         functions but does not have definitions.
48704         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
48705         cannot be found in any library, set the output variable to
48706         "missing" instead of "".
48707         * m4/round.m4: Also use our substitute if we cannot find round in
48708         any library, even if it is declared.
48709         * m4/roundf.m4: Likewise for roundf.
48710         * m4/roundl.m4: Likewise for roundl.
48711         * lib/math.in.h: Undefine roundf, round, roundl before defining
48712         their replacements, to allow for hypothetical systems where these
48713         may be defined as macros but not available in libraries.
48714
48715 2007-10-27  Bruno Haible  <bruno@clisp.org>
48716
48717         * doc/gnulib.texi: Invoke @firstparagraphindent.
48718         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
48719         changes in gnulib.
48720         (Source changes): New section.
48721
48722 2007-10-26  Bruno Haible  <bruno@clisp.org>
48723
48724         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
48725         borrowed from autoconf.
48726
48727 2007-10-26  Bruno Haible  <bruno@clisp.org>
48728
48729         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
48730         strerror returned the empty string. Needed on HP-UX 11.00.
48731
48732 2007-10-24  Micah Cowan  <micah@cowan.name>
48733
48734         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
48735         * build-aux/bootstrap: Remove support for now-unnecessary option,
48736         --cvs-user, and envvars CVS_USER, CVS_RSH.
48737
48738 2007-10-24  Jim Meyering  <meyering@redhat.com>
48739
48740         Avoid diagnostics from sha1sum when there is no cached checksum.
48741         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
48742         if the po.s1 file hasn't been created yet.
48743
48744         * build-aux/bootstrap: Sync from coreutils:
48745         2007-10-24  Jim Meyering  <meyering@redhat.com>
48746         Get gnulib from the git repository, not from an obsolete cvs one.
48747         * build-aux/bootstrap: Suggestion from Micah Cowan.
48748         2007-10-04  Jim Meyering  <jim@meyering.net>
48749         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
48750         (update_po_files): Work also when there are no .po files in po/.
48751
48752 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48753
48754         * README: Append ".git" to git and cg examples.
48755         Problem reported by Benoit Sigoure.
48756
48757 2007-10-23  Micah Cowan  <micah@cowan.name>
48758
48759         * users.txt: Add wget.
48760
48761 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48762
48763         Fix linking of some unistdio tests on FreeBSD.
48764         * modules/unistdio/u16-vsnprintf-tests
48765         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
48766         * modules/unistdio/u16-vsprintf-tests
48767         (test_u16_vsnprintf1_LDADD): Likewise.
48768         * modules/unistdio/u32-vsnprintf-tests
48769         (test_u32_vsnprintf1_LDADD): Likewise.
48770         * modules/unistdio/u32-vsprintf-tests
48771         (test_u32_vsprintf1_LDADD): Likewise.
48772         * modules/unistdio/u8-vsnprintf-tests
48773         (test_u8_vsnprintf1_LDADD): Likewise.
48774         * modules/unistdio/u8-vsprintf-tests
48775         (test_u8_vsprintf1_LDADD): Likewise.
48776         * modules/unistdio/ulc-vsnprintf-tests
48777         (test_ulc_vsnprintf1_LDADD): Likewise.
48778         * modules/unistdio/ulc-vsprintf-tests
48779         (test_ulc_vsprintf1_LDADD): Likewise.
48780
48781         Fix linking of some uniconv tests on FreeBSD.
48782         * modules/uniconv/u16-conv-from-enc-tests
48783         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
48784         * modules/uniconv/u16-conv-to-enc-tests
48785         (test_u16_conv_to_enc_LDADD): Likewise.
48786         * modules/uniconv/u16-strconv-from-enc-tests
48787         (test_u16_strconv_from_enc_LDADD): Likewise.
48788         * modules/uniconv/u16-strconv-to-enc-tests
48789         (test_u16_strconv_to_enc_LDADD): Likewise.
48790         * modules/uniconv/u32-conv-from-enc-tests
48791         (test_u32_conv_from_enc_LDADD): Likewise.
48792         * modules/uniconv/u32-conv-to-enc-tests
48793         (test_u32_conv_to_enc_LDADD): Likewise.
48794         * modules/uniconv/u32-strconv-from-enc-tests
48795         (test_u32_strconv_from_enc_LDADD): Likewise.
48796         * modules/uniconv/u32-strconv-to-enc-tests
48797         (test_u32_strconv_to_enc_LDADD): Likewise.
48798         * modules/uniconv/u8-conv-from-enc-tests
48799         (test_u8_conv_from_enc_LDADD): Likewise.
48800         * modules/uniconv/u8-conv-to-enc-tests
48801         (test_u8_conv_to_enc_LDADD): Likewise.
48802         * modules/uniconv/u8-strconv-from-enc-tests
48803         (test_u8_strconv_from_enc_LDADD): Likewise.
48804         * modules/uniconv/u8-strconv-to-enc-tests
48805         (test_u8_strconv_to_enc_LDADD): Likewise.
48806
48807 2007-10-22  Bruno Haible  <bruno@clisp.org>
48808
48809         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
48810         size.
48811
48812 2007-10-22  Eric Blake  <ebb9@byu.net>
48813
48814         Tweak x*printf documentation.
48815         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
48816         variable name and comments.
48817         Suggested by Bruno Haible.
48818
48819 2007-10-22  Bruno Haible  <bruno@clisp.org>
48820
48821         * lib/acl.c (copy_acl): Fix file name in comment.
48822
48823 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48824
48825         Fix Tru64 problem with stdbool.h.
48826         * lib/stdbool.in.h (false, true):
48827         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
48828         Don't declare as an enum in this situation; it runs afoul of Tru64.
48829         Problem reported by Steven M. Schweda in
48830         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
48831
48832 2007-10-22  Eric Blake  <ebb9@byu.net>
48833
48834         Also wrap vf?printf.
48835         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
48836         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
48837         (xvprintf, xvfprintf): New functions.
48838
48839 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48840
48841         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
48842         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
48843
48844         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
48845         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
48846
48847 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48848
48849         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
48850         by Bruno Haible.
48851
48852 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48853
48854         * lib/getloadavg.c
48855         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
48856         Undef `sys' after including sys/table.h, for Tru64 4.0D.
48857
48858         * tests/test-i-ring.c: Work for C89.
48859
48860 2007-10-22  Bruno Haible  <bruno@clisp.org>
48861
48862         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
48863         -1u, in preprocessor expression, so that we don't test for the bug
48864         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
48865         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
48866
48867 2007-10-22  Eric Blake  <ebb9@byu.net>
48868
48869         * tests/test-yesno.sh: Silence stderr during test.
48870
48871 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48872
48873         * modules/crypto/gc-camellia: New file.
48874
48875         * m4/gc-camellia.m4: New file.
48876
48877         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
48878
48879         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
48880
48881 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48882
48883         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
48884         --help to stdout.  Reported by sms@antinode.org (Steven
48885         M. Schweda).
48886
48887 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48888
48889         * users.txt: Fix link to libksba.
48890
48891 2007-10-21  Ben Pfaff  <blp@gnu.org>
48892
48893         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
48894         round.c roundf implementation that depends on floorf and ceilf to
48895         be tested unconditionally.
48896
48897 2007-10-21  Ben Pfaff  <blp@gnu.org>
48898
48899         * m4/check-libm-func.m4: Removed.
48900         * m4/check-math-lib.m4: New file.
48901         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
48902         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
48903         definition and lack of AC_LIBOBJ([roundf]).
48904         * m4/roundl.m4: Ditto, and similarly for roundl.
48905         * modules/round: Reference new m4 file.
48906         * modules/roundf: Ditto.
48907         * modules/roundl: Ditto.
48908         * tests/test-round2.c (main): Use ROUND instead of round.
48909         Bug report from Bruno Haible.
48910
48911 2007-10-21  Bruno Haible  <bruno@clisp.org>
48912
48913         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
48914         context.
48915
48916 2007-10-21  Bruno Haible  <bruno@clisp.org>
48917
48918         * tests/test-wcwidth.c (main): Allow negative result for some control
48919         characters.
48920
48921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
48922         Needed on OSF/1 5.1.
48923
48924 2007-10-21  Bruno Haible  <bruno@clisp.org>
48925
48926         * tests/test-floorf1.c: Include isnanf.h.
48927         (main): Use isnanf() instead of isnan().
48928         * tests/test-ceilf1.c: Include isnanf.h.
48929         (main): Use isnanf() instead of isnan().
48930         * tests/test-truncf1.c: Include isnanf.h.
48931         (main): Use isnanf() instead of isnan().
48932         * tests/test-roundf1.c: Include isnanf.h.
48933         (main): Use isnanf() instead of isnan().
48934
48935 2007-10-21  Eric Blake  <ebb9@byu.net>
48936
48937         * users.txt: Update URL for m4.
48938
48939 2007-10-21  Bruno Haible  <bruno@clisp.org>
48940
48941         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
48942
48943 2007-10-21  Bruno Haible  <bruno@clisp.org>
48944
48945         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
48946         Git's management files if the CVS files are not present.
48947
48948 2007-10-20  Bruno Haible  <bruno@clisp.org>
48949
48950         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
48951         gcc-3.4.x.
48952
48953 2007-10-20  Ben Pfaff  <blp@gnu.org>
48954
48955         * lib/math.in.h: Declare round, roundf, roundl if we are providing
48956         implementations.
48957         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
48958         * lib/round.c: New file.
48959         * lib/roundf.c: New file.
48960         * lib/roundl.c: New file.
48961         * m4/round.m4: New file.
48962         * m4/roundf.m4: New file.
48963         * m4/roundl.m4: New file.
48964         * m4/check-libm-func-m4: New file.
48965         * modules/math: Replace round, roundf, roundl related @VARS@ in
48966         math.in.h.
48967         * modules/round: New file.
48968         * modules/round-tests: New file.
48969         * modules/roundf: New file.
48970         * modules/roundf-tests: New file.
48971         * modules/roundl: New file.
48972         * modules/roundl-tests: New file.
48973         * tests/test-round1.c: New file.
48974         * tests/test-round2.c: New file.
48975         * tests/test-roundf1.c: New file.
48976         * tests/test-roundf2.c: New file.
48977         * tests/test-roundl.c: New file.
48978         * doc/functions/round.texi: Mention round module.
48979         * doc/functions/roundf.texi: Mention roundf module.
48980         * doc/functions/roundl.texi: Mention roundl module.
48981         * MODULES.html.sh: Mention new modules.
48982         Thanks to Bruno Haible for suggestions.
48983
48984 2007-10-20  Jim Meyering  <meyering@redhat.com>
48985
48986         * lib/xprintf.c: Include <config.h> unconditionally.
48987
48988         Change xprintf's license to GPL.
48989         * modules/xprintf (License): s/LGPL/GPL/, since this module
48990         depends on modules (exit and exitfail) which are GPL.
48991         Suggestion from Bruno Haible.
48992
48993         xprintf fixes.
48994         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
48995         Use a clearer diagnostic.
48996         Patch from Bruno Haible.
48997
48998 2007-10-20  Bruno Haible  <bruno@clisp.org>
48999
49000         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49001         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49003
49004 2007-10-20  Bruno Haible  <bruno@clisp.org>
49005
49006         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49007         precision in the comparison result > x - 1 or similar.
49008         * tests/test-ceilf2.c (correct_result_p): Likewise.
49009         * tests/test-truncf2.c (correct_result_p): Likewise.
49010         * tests/test-trunc2.c (correct_result_p): Likewise.
49011         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49012
49013 2007-10-20  Bruno Haible  <bruno@clisp.org>
49014
49015         * modules/ceil: New file.
49016         * m4/ceil.m4: New file.
49017         * doc/functions/ceil.texi: Mention the 'ceil' module.
49018
49019 2007-10-20  Bruno Haible  <bruno@clisp.org>
49020
49021         * modules/floor: New file.
49022         * m4/floor.m4: New file.
49023         * doc/functions/floor.texi: Mention the 'floor' module.
49024
49025 2007-10-20  Bruno Haible  <bruno@clisp.org>
49026
49027         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49028         of %a.
49029         * modules/floorf-tests (Depends-on): Likewise.
49030         * modules/truncf-tests (Depends-on): Likewise.
49031         * modules/trunc-tests (Depends-on): Likewise.
49032         Reported by Ben Pfaff.
49033
49034 2007-10-19  Jim Meyering  <meyering@redhat.com>
49035
49036         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49037         Don't bother testing specific errno values.  Just test ferror.
49038
49039         New module: xprintf
49040         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49041
49042 2007-10-19  Bruno Haible  <bruno@clisp.org>
49043
49044         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49045         syntax.
49046         * modules/javaexec (Makefile.am): Likewise.
49047         * modules/relocatable-prog (Makefile.am): Likewise.
49048         Suggested by Jim Meyering.
49049
49050 2007-10-18  Bruno Haible  <bruno@clisp.org>
49051
49052         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49053         Reported by Jim Meyering.
49054
49055 2007-10-18  Eric Blake  <ebb9@byu.net>
49056
49057         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49058
49059 2007-10-18  Bruno Haible  <bruno@clisp.org>
49060
49061         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49062         the format string into writable memory. Needed in Fortify conditions.
49063
49064 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49065             Bruno Haible  <bruno@clisp.org>
49066
49067         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49068         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49069         * modules/trim (Depends-on): Add mbchar.
49070         (configure.ac): Add gl_FUNC_MBRTOWC.
49071         (Makefile.am): Augment lib_SOURCES.
49072
49073 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49074
49075         Modify glob.c to use fstatat and dirfd, to simplify it.
49076         Suggested by Eric Blake.
49077         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49078         Don't include <stdbool.h>; not used.
49079         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49080         (link_exists_p): Simplify implementation, since we can now assume
49081         dirfd and fstatat.
49082         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49083
49084 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49085
49086         * gnulib-tool (func_get_dependencies): Fix sed script to
49087         match only tests.
49088
49089 2007-10-17  Bruno Haible  <bruno@clisp.org>
49090
49091         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49092         allow locale names without encoding suffix.
49093         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49094         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49095
49096 2007-10-16  Bruno Haible  <bruno@clisp.org>
49097
49098         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49099         * lib/getgroups.c (getgroups): Likewise.
49100         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49101
49102 2007-10-16  Bruno Haible  <bruno@clisp.org>
49103
49104         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49105         * modules/malloc-posix (License): Likewise.
49106         * modules/realloc-posix (License): Likewise.
49107         * modules/calloc-posix (License): Likewise.
49108         * modules/intprops (License): Change from GPL to LGPL, with
49109         Paul Eggert's approval.
49110
49111 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49112
49113         Merge glibc changes into lib/glob.c.
49114
49115         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49116         2007-10-15 04:59:03 UTC.  Here are the changes:
49117
49118         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49119
49120         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49121
49122         * lib/glob.c: Add some branch prediction throughout.
49123
49124         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49125
49126         [BZ #5103]
49127         * lib/glob.c (glob): Recognize patterns starting \/.
49128
49129         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49130
49131         [BZ #3996]
49132         * lib/glob.c (attribute_hidden): Define if not defined.
49133         (glob): Unescape dirname, filename or username when needed and not
49134         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49135         is NULL.  Handle unescaped [ in pattern without closing ].
49136         Don't pass GLOB_CHECK down to recursive glob for directories.
49137         (__glob_pattern_type): New function.
49138         (__glob_pattern_p): Implement using __glob_pattern_type.
49139         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49140         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49141         Remove unreachable code.
49142
49143         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49144
49145         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49146         explain why there are no leaks.
49147
49148         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49149
49150         [BZ #3253]
49151         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49152         time, rather allocate increasingly bigger arrays of pointers, if
49153         possible with alloca, if too large with malloc.
49154
49155 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49156
49157         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49158         Problem reported by H.Merijn Brand in
49159         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49160         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49161         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49162
49163 2007-10-15  Bruno Haible  <bruno@clisp.org>
49164
49165         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49166         with explicit rpl_ prefix.
49167         * lib/fopen.c (fopen): Likewise.
49168         * lib/freopen.c (freopen): Likewise.
49169         * lib/iconv.c (iconv): Likewise.
49170         * lib/iconv_close.c (iconv_close): Likewise.
49171
49172 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49173
49174         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49175
49176 2007-10-15  Bruno Haible  <bruno@clisp.org>
49177
49178         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49179         <stddef.h> instead of <stdlib.h> since we only need NULL.
49180         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49181
49182 2007-10-15  Bruno Haible  <bruno@clisp.org>
49183
49184         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49185         Replace paragraph talking about LIBOBJS.
49186         Reported by Colin Watson <cjwatson@debian.org>.
49187
49188 2007-10-15  Bruno Haible  <bruno@clisp.org>
49189
49190         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49191         <stdlib.h> before using NULL.
49192
49193 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49194
49195         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49196         Reported by Albert Chin <china@thewrittenword.com>.
49197
49198 2007-10-14  Bruno Haible  <bruno@clisp.org>
49199
49200         * modules/iconv_open-utf-tests: New file.
49201         * tests/test-iconv-utf.c: New file.
49202
49203         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49204         * modules/iconv_open-utf: New file.
49205         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49206         (iconv, iconv_close): New declarations.
49207         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49208         be defined.
49209         (iconv_open): Add special handling of conversion between UTF-8 and
49210         UTF-{16,32}{BE,LE}.
49211         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49212         * lib/iconv_close.c: New file.
49213         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49214         gl_FUNC_ICONV_OPEN.
49215         (gl_FUNC_ICONV_OPEN): Use it.
49216         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49217         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49218         and REPLACE_ICONV_UTF.
49219         * modules/iconv_open (Depends-on): Add c-strcase.
49220         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49221         ICONV_CONST.
49222         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49223
49224 2007-10-13  Albert Chin  <china@thewrittenword.com>
49225             Bruno Haible  <bruno@clisp.org>
49226
49227         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49228         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49229
49230 2007-10-13  Bruno Haible  <bruno@clisp.org>
49231
49232         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49233         defined, use the ISO C99 inline semantics.
49234         * lib/argp.h (ARGP_EI): Likewise.
49235
49236 2007-10-13  Bruno Haible  <bruno@clisp.org>
49237
49238         Handle 'inline' change in gcc 4.3.0.
49239         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49240         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49241         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49242         argp_fmtstream_point): Disable 'extern' declaration if the function
49243         definition is going to be provided inline.
49244         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49245         semantics, not the ISO C99 inline semantics.
49246         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49247         'extern' declaration if the function definition is going to be provided
49248         inline.
49249         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49250         the GNU C inline semantics, not the ISO C99 inline semantics. With
49251         GCC 4.2, avoid a warning.
49252
49253 2007-10-13  Bruno Haible  <bruno@clisp.org>
49254
49255         * lib/freading.h (freading): Enable the use of __freading for
49256         glibc >= 2.7.
49257         * lib/freading.c (freading): Likewise.
49258
49259 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49260
49261         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49262         "warning: C99 inline functions are not supported; using GNU89".
49263
49264 2007-10-12  Bruno Haible  <bruno@clisp.org>
49265
49266         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49267         of 2.
49268         * tests/test-ceilf2.c: New file.
49269         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49270
49271         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49272         * modules/ceilf-tests: Update.
49273
49274 2007-10-12  Bruno Haible  <bruno@clisp.org>
49275
49276         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49277         of 2.
49278         * tests/test-floorf2.c: New file.
49279         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49280
49281         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49282         * modules/floorf-tests: Update.
49283
49284 2007-10-12  Bruno Haible  <bruno@clisp.org>
49285
49286         * tests/test-trunc2.c: New file.
49287         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49288
49289         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49290         * modules/trunc-tests: Update.
49291
49292 2007-10-12  Bruno Haible  <bruno@clisp.org>
49293
49294         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49295         of 2.
49296         * tests/test-truncf2.c: New file.
49297         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49298
49299         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49300         * modules/truncf-tests: Update.
49301
49302 2007-10-11  Eric Blake  <ebb9@byu.net>
49303
49304         Don't claim strerror is broken on Interix.
49305         * doc/functions/strerror.texi (strerror): Known broken systems are
49306         now Solaris 8, and not Interix.
49307         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49308         Interix on cross-compile.
49309         Reported by Martin Koeppe in
49310         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49311
49312 2007-10-11  Bruno Haible  <bruno@clisp.org>
49313
49314         * modules/i-ring-tests: New file.
49315         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49316         instead of assert.
49317
49318 2007-10-11  Bruno Haible  <bruno@clisp.org>
49319
49320         * modules/filenamecat-tests: New file.
49321         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49322         * lib/filenamecat.c: Remove test code.
49323
49324 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49325
49326         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49327
49328         * lib/strerror.c: Include <string.h> always, to test interface,
49329         and to remove the need for the dummy.
49330         Include intprops.h to compute width instead of doing it ourselves
49331         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49332         (strerror): Define it to return NULL if there's no system strerror.
49333         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49334         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49335         ancient pre-strerror Unix systems well any more.  Saying "unknown
49336         system error" is enough.
49337         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49338         simpler strerror.c implementation.
49339         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49340         Simplify the tests to reflect the simpler strerror implementation.
49341         * modules/strerror (Depends-on): Add intprops.
49342
49343 2007-10-09  Eric Blake  <ebb9@byu.net>
49344
49345         Silence test-fpending.
49346         * modules/fpending-tests (Files): Add wrapper script.
49347         * tests/test-fpending.sh: New file.
49348
49349 2007-10-09  Bruno Haible  <bruno@clisp.org>
49350
49351         * MODULES.html.sh (func_module): Don't create a hyperlink for
49352         function names like 'printf_frexp'.
49353         (Misc): Add crc, memxor.
49354         (Characteristics of floating types): New section.
49355         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49356         isnanf-nolibm, signbit, trunc, truncf, truncl.
49357         (Enhancements for ISO C 99 functions): New subsection Input/output.
49358         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49359         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49360         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49361         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49362         (Enhancements for POSIX:2001 functions): Add chdir-long.
49363         (File system functions): Add areadlink, chdir-safer, read-file.
49364         Remove cycle-check.
49365         (File system as inode set): New section.
49366         (Date and time): Add gethrxtime.
49367         (Multithreading): Add openmp.
49368         (Internationalization functions): Add localename.
49369         (Unicode string functions): Add unistr/u*-mbsnlen.
49370         (Support for maintaining and releasing projects): Add git-version-gen.
49371         (Lone files): Remove directories.
49372
49373 2007-10-08  Ben Pfaff  <blp@gnu.org>
49374
49375         * lib/xmalloca.h: Fix typo in comment.
49376
49377 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49378
49379         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49380         when avoiding problems with integer overflow.  Use a portable test
49381         instead.
49382
49383 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49384
49385         * modules/dummy (License): Change to LGPLv2+.
49386         * modules/float (License): Likewise
49387         * modules/realloc (License): Likewise
49388         * modules/stdlib (License): Likewise
49389
49390 2007-10-07  Bruno Haible  <bruno@clisp.org>
49391
49392         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49393         * floor.c (TWO_MANT_DIG): Likewise.
49394         * ceil.c (TWO_MANT_DIG): Likewise.
49395         Reported by Ben Pfaff.
49396
49397 2007-10-07  Bruno Haible  <bruno@clisp.org>
49398
49399         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49400         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49401         * lib/frexp.c (FUNC): Likewise.
49402         * lib/printf-frexp.h (printf_frexp): Likewise.
49403         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49404         * lib/printf-frexp.c (FUNC): Likewise.
49405         Suggested by Jim Meyering.
49406
49407 2007-10-07  Jim Meyering  <meyering@redhat.com>
49408
49409         Make xnanosleep's integer overflow test more robust.
49410         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49411         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49412
49413 2007-10-07  Bruno Haible  <bruno@clisp.org>
49414
49415         * NEWS: Mention the license change.
49416
49417         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49418         abbreviations in the modules files.
49419
49420         Change copyright notice from GPLv2+ to GPLv3+.
49421         * README: Change copyright notice.
49422         * MODULES.html.sh: Likewise.
49423         * build-aux/bootstrap.conf: Likewise.
49424         * build-aux/config.libpath: Likewise.
49425         * build-aux/csharpcomp.sh.in: Likewise.
49426         * build-aux/csharpexec.sh.in: Likewise.
49427         * build-aux/install-reloc: Likewise.
49428         * build-aux/javacomp.sh.in: Likewise.
49429         * build-aux/javaexec.sh.in: Likewise.
49430         * build-aux/ldd.sh.in: Likewise.
49431         * build-aux/reloc-ldflags: Likewise.
49432         * build-aux/relocatable.sh.in: Likewise.
49433         * build-aux/x-to-1.in: Likewise.
49434         * check-module: Likewise.
49435         * config/srclistvars.sh: Likewise.
49436         * gnulib-tool: Likewise.
49437         * lib/acl-internal.h: Likewise.
49438         * lib/acl.c: Likewise.
49439         * lib/acl.h: Likewise.
49440         * lib/acl_entries.c: Likewise.
49441         * lib/areadlink-with-size.c: Likewise.
49442         * lib/areadlink.c: Likewise.
49443         * lib/areadlink.h: Likewise.
49444         * lib/argmatch.c: Likewise.
49445         * lib/argmatch.h: Likewise.
49446         * lib/argp-ba.c: Likewise.
49447         * lib/argp-eexst.c: Likewise.
49448         * lib/argp-fmtstream.c: Likewise.
49449         * lib/argp-fmtstream.h: Likewise.
49450         * lib/argp-fs-xinl.c: Likewise.
49451         * lib/argp-help.c: Likewise.
49452         * lib/argp-namefrob.h: Likewise.
49453         * lib/argp-parse.c: Likewise.
49454         * lib/argp-pin.c: Likewise.
49455         * lib/argp-pv.c: Likewise.
49456         * lib/argp-pvh.c: Likewise.
49457         * lib/argp-xinl.c: Likewise.
49458         * lib/argp.h: Likewise.
49459         * lib/at-func.c: Likewise.
49460         * lib/atanl.c: Likewise.
49461         * lib/backupfile.c: Likewise.
49462         * lib/backupfile.h: Likewise.
49463         * lib/basename.c: Likewise.
49464         * lib/binary-io.h: Likewise.
49465         * lib/byteswap.in.h: Likewise.
49466         * lib/c-stack.c: Likewise.
49467         * lib/c-stack.h: Likewise.
49468         * lib/c-strcasestr.c: Likewise.
49469         * lib/c-strcasestr.h: Likewise.
49470         * lib/c-strstr.c: Likewise.
49471         * lib/c-strstr.h: Likewise.
49472         * lib/c-strtod.c: Likewise.
49473         * lib/calloc.c: Likewise.
49474         * lib/canon-host.c: Likewise.
49475         * lib/canon-host.h: Likewise.
49476         * lib/canonicalize-lgpl.c: Likewise.
49477         * lib/canonicalize.c: Likewise.
49478         * lib/canonicalize.h: Likewise.
49479         * lib/ceil.c: Likewise.
49480         * lib/ceilf.c: Likewise.
49481         * lib/ceill.c: Likewise.
49482         * lib/chdir-long.c: Likewise.
49483         * lib/chdir-long.h: Likewise.
49484         * lib/chdir-safer.c: Likewise.
49485         * lib/chdir-safer.h: Likewise.
49486         * lib/chown.c: Likewise.
49487         * lib/classpath.c: Likewise.
49488         * lib/classpath.h: Likewise.
49489         * lib/clean-temp.c: Likewise.
49490         * lib/clean-temp.h: Likewise.
49491         * lib/cloexec.c: Likewise.
49492         * lib/close-stream.c: Likewise.
49493         * lib/closein.c: Likewise.
49494         * lib/closein.h: Likewise.
49495         * lib/closeout.c: Likewise.
49496         * lib/closeout.h: Likewise.
49497         * lib/concat-filename.c: Likewise.
49498         * lib/copy-file.c: Likewise.
49499         * lib/copy-file.h: Likewise.
49500         * lib/count-one-bits.h: Likewise.
49501         * lib/crc.c: Likewise.
49502         * lib/crc.h: Likewise.
49503         * lib/creat-safer.c: Likewise.
49504         * lib/csharpcomp.c: Likewise.
49505         * lib/csharpcomp.h: Likewise.
49506         * lib/csharpexec.c: Likewise.
49507         * lib/csharpexec.h: Likewise.
49508         * lib/cycle-check.c: Likewise.
49509         * lib/cycle-check.h: Likewise.
49510         * lib/diacrit.c: Likewise.
49511         * lib/diacrit.h: Likewise.
49512         * lib/diffseq.h: Likewise.
49513         * lib/dirchownmod.c: Likewise.
49514         * lib/dirent.in.h: Likewise.
49515         * lib/dirfd.c: Likewise.
49516         * lib/dirfd.h: Likewise.
49517         * lib/dirname.c: Likewise.
49518         * lib/dirname.h: Likewise.
49519         * lib/dummy.c: Likewise.
49520         * lib/dup-safer.c: Likewise.
49521         * lib/dup2.c: Likewise.
49522         * lib/eealloc.h: Likewise.
49523         * lib/error.c: Likewise.
49524         * lib/error.h: Likewise.
49525         * lib/euidaccess.c: Likewise.
49526         * lib/exclude.c: Likewise.
49527         * lib/exclude.h: Likewise.
49528         * lib/execute.c: Likewise.
49529         * lib/execute.h: Likewise.
49530         * lib/exitfail.c: Likewise.
49531         * lib/exitfail.h: Likewise.
49532         * lib/expl.c: Likewise.
49533         * lib/fatal-signal.c: Likewise.
49534         * lib/fatal-signal.h: Likewise.
49535         * lib/fbufmode.c: Likewise.
49536         * lib/fbufmode.h: Likewise.
49537         * lib/fchdir.c: Likewise.
49538         * lib/fchmodat.c: Likewise.
49539         * lib/fchownat.c: Likewise.
49540         * lib/fcntl--.h: Likewise.
49541         * lib/fcntl-safer.h: Likewise.
49542         * lib/fcntl.in.h: Likewise.
49543         * lib/fd-safer.c: Likewise.
49544         * lib/fflush.c: Likewise.
49545         * lib/file-has-acl.c: Likewise.
49546         * lib/file-set.c: Likewise.
49547         * lib/file-type.c: Likewise.
49548         * lib/file-type.h: Likewise.
49549         * lib/fileblocks.c: Likewise.
49550         * lib/filemode.c: Likewise.
49551         * lib/filemode.h: Likewise.
49552         * lib/filename.h: Likewise.
49553         * lib/filenamecat.c: Likewise.
49554         * lib/filenamecat.h: Likewise.
49555         * lib/findprog.c: Likewise.
49556         * lib/findprog.h: Likewise.
49557         * lib/float.in.h: Likewise.
49558         * lib/floor.c: Likewise.
49559         * lib/floorf.c: Likewise.
49560         * lib/floorl.c: Likewise.
49561         * lib/fopen-safer.c: Likewise.
49562         * lib/fopen.c: Likewise.
49563         * lib/fpending.c: Likewise.
49564         * lib/fpending.h: Likewise.
49565         * lib/fprintf.c: Likewise.
49566         * lib/fprintftime.h: Likewise.
49567         * lib/fpucw.h: Likewise.
49568         * lib/fpurge.c: Likewise.
49569         * lib/fpurge.h: Likewise.
49570         * lib/freadable.c: Likewise.
49571         * lib/freadable.h: Likewise.
49572         * lib/freadahead.c: Likewise.
49573         * lib/freadahead.h: Likewise.
49574         * lib/freading.c: Likewise.
49575         * lib/freading.h: Likewise.
49576         * lib/free.c: Likewise.
49577         * lib/freopen.c: Likewise.
49578         * lib/frexp.c: Likewise.
49579         * lib/frexpl.c: Likewise.
49580         * lib/fseek.c: Likewise.
49581         * lib/fseterr.c: Likewise.
49582         * lib/fseterr.h: Likewise.
49583         * lib/fstatat.c: Likewise.
49584         * lib/fstrcmp.c: Likewise.
49585         * lib/fstrcmp.h: Likewise.
49586         * lib/fsusage.c: Likewise.
49587         * lib/fsusage.h: Likewise.
49588         * lib/ftell.c: Likewise.
49589         * lib/ftello.c: Likewise.
49590         * lib/fts-cycle.c: Likewise.
49591         * lib/fts.c: Likewise.
49592         * lib/fts_.h: Likewise.
49593         * lib/full-read.c: Likewise.
49594         * lib/full-read.h: Likewise.
49595         * lib/full-write.c: Likewise.
49596         * lib/full-write.h: Likewise.
49597         * lib/fwritable.c: Likewise.
49598         * lib/fwritable.h: Likewise.
49599         * lib/fwriteerror.c: Likewise.
49600         * lib/fwriteerror.h: Likewise.
49601         * lib/fwriting.c: Likewise.
49602         * lib/fwriting.h: Likewise.
49603         * lib/gcd.c: Likewise.
49604         * lib/gcd.h: Likewise.
49605         * lib/getcwd.c: Likewise.
49606         * lib/getdate.h: Likewise.
49607         * lib/getdate.y: Likewise.
49608         * lib/getdomainname.c: Likewise.
49609         * lib/getdomainname.h: Likewise.
49610         * lib/getgroups.c: Likewise.
49611         * lib/gethostname.c: Likewise.
49612         * lib/gethrxtime.c: Likewise.
49613         * lib/gethrxtime.h: Likewise.
49614         * lib/getloadavg.c: Likewise.
49615         * lib/getndelim2.c: Likewise.
49616         * lib/getndelim2.h: Likewise.
49617         * lib/getnline.c: Likewise.
49618         * lib/getnline.h: Likewise.
49619         * lib/getopt.c: Likewise.
49620         * lib/getopt.in.h: Likewise.
49621         * lib/getopt1.c: Likewise.
49622         * lib/getopt_int.h: Likewise.
49623         * lib/getpagesize.h: Likewise.
49624         * lib/getsubopt.c: Likewise.
49625         * lib/gettime.c: Likewise.
49626         * lib/getugroups.c: Likewise.
49627         * lib/getugroups.h: Likewise.
49628         * lib/getusershell.c: Likewise.
49629         * lib/gl_anyavltree_list1.h: Likewise.
49630         * lib/gl_anyavltree_list2.h: Likewise.
49631         * lib/gl_anyhash_list1.h: Likewise.
49632         * lib/gl_anyhash_list2.h: Likewise.
49633         * lib/gl_anylinked_list1.h: Likewise.
49634         * lib/gl_anylinked_list2.h: Likewise.
49635         * lib/gl_anyrbtree_list1.h: Likewise.
49636         * lib/gl_anyrbtree_list2.h: Likewise.
49637         * lib/gl_anytree_list1.h: Likewise.
49638         * lib/gl_anytree_list2.h: Likewise.
49639         * lib/gl_anytree_oset.h: Likewise.
49640         * lib/gl_anytreehash_list1.h: Likewise.
49641         * lib/gl_anytreehash_list2.h: Likewise.
49642         * lib/gl_array_list.c: Likewise.
49643         * lib/gl_array_list.h: Likewise.
49644         * lib/gl_array_oset.c: Likewise.
49645         * lib/gl_array_oset.h: Likewise.
49646         * lib/gl_avltree_list.c: Likewise.
49647         * lib/gl_avltree_list.h: Likewise.
49648         * lib/gl_avltree_oset.c: Likewise.
49649         * lib/gl_avltree_oset.h: Likewise.
49650         * lib/gl_avltreehash_list.c: Likewise.
49651         * lib/gl_avltreehash_list.h: Likewise.
49652         * lib/gl_carray_list.c: Likewise.
49653         * lib/gl_carray_list.h: Likewise.
49654         * lib/gl_linked_list.c: Likewise.
49655         * lib/gl_linked_list.h: Likewise.
49656         * lib/gl_linkedhash_list.c: Likewise.
49657         * lib/gl_linkedhash_list.h: Likewise.
49658         * lib/gl_list.c: Likewise.
49659         * lib/gl_list.h: Likewise.
49660         * lib/gl_oset.c: Likewise.
49661         * lib/gl_oset.h: Likewise.
49662         * lib/gl_rbtree_list.c: Likewise.
49663         * lib/gl_rbtree_list.h: Likewise.
49664         * lib/gl_rbtree_oset.c: Likewise.
49665         * lib/gl_rbtree_oset.h: Likewise.
49666         * lib/gl_rbtreehash_list.c: Likewise.
49667         * lib/gl_rbtreehash_list.h: Likewise.
49668         * lib/gl_sublist.c: Likewise.
49669         * lib/gl_sublist.h: Likewise.
49670         * lib/group-member.c: Likewise.
49671         * lib/group-member.h: Likewise.
49672         * lib/hard-locale.c: Likewise.
49673         * lib/hard-locale.h: Likewise.
49674         * lib/hash-pjw.c: Likewise.
49675         * lib/hash-pjw.h: Likewise.
49676         * lib/hash-triple.c: Likewise.
49677         * lib/hash.c: Likewise.
49678         * lib/hash.h: Likewise.
49679         * lib/human.c: Likewise.
49680         * lib/human.h: Likewise.
49681         * lib/i-ring.c: Likewise.
49682         * lib/i-ring.h: Likewise.
49683         * lib/idcache.c: Likewise.
49684         * lib/imaxabs.c: Likewise.
49685         * lib/imaxdiv.c: Likewise.
49686         * lib/inet_pton.c: Likewise.
49687         * lib/inet_pton.h: Likewise.
49688         * lib/intprops.h: Likewise.
49689         * lib/inttostr.c: Likewise.
49690         * lib/inttostr.h: Likewise.
49691         * lib/inttypes.in.h: Likewise.
49692         * lib/isapipe.c: Likewise.
49693         * lib/isdir.c: Likewise.
49694         * lib/isnan.c: Likewise.
49695         * lib/isnan.h: Likewise.
49696         * lib/isnanf.c: Likewise.
49697         * lib/isnanf.h: Likewise.
49698         * lib/isnanl-nolibm.h: Likewise.
49699         * lib/isnanl.c: Likewise.
49700         * lib/isnanl.h: Likewise.
49701         * lib/javacomp.c: Likewise.
49702         * lib/javacomp.h: Likewise.
49703         * lib/javaexec.c: Likewise.
49704         * lib/javaexec.h: Likewise.
49705         * lib/javaversion.c: Likewise.
49706         * lib/javaversion.h: Likewise.
49707         * lib/javaversion.java: Likewise.
49708         * lib/lbrkprop.h: Likewise.
49709         * lib/lchmod.h: Likewise.
49710         * lib/lchown.c: Likewise.
49711         * lib/ldexpl.c: Likewise.
49712         * lib/linebreak.c: Likewise.
49713         * lib/linebreak.h: Likewise.
49714         * lib/linebuffer.c: Likewise.
49715         * lib/linebuffer.h: Likewise.
49716         * lib/locale.in.h: Likewise.
49717         * lib/logl.c: Likewise.
49718         * lib/long-options.c: Likewise.
49719         * lib/long-options.h: Likewise.
49720         * lib/lstat.c: Likewise.
49721         * lib/lstat.h: Likewise.
49722         * lib/math.in.h: Likewise.
49723         * lib/mbchar.c: Likewise.
49724         * lib/mbchar.h: Likewise.
49725         * lib/mbfile.h: Likewise.
49726         * lib/mbiter.h: Likewise.
49727         * lib/mbscasecmp.c: Likewise.
49728         * lib/mbscasestr.c: Likewise.
49729         * lib/mbschr.c: Likewise.
49730         * lib/mbscspn.c: Likewise.
49731         * lib/mbslen.c: Likewise.
49732         * lib/mbsncasecmp.c: Likewise.
49733         * lib/mbsnlen.c: Likewise.
49734         * lib/mbspbrk.c: Likewise.
49735         * lib/mbspcasecmp.c: Likewise.
49736         * lib/mbsrchr.c: Likewise.
49737         * lib/mbssep.c: Likewise.
49738         * lib/mbsspn.c: Likewise.
49739         * lib/mbsstr.c: Likewise.
49740         * lib/mbstok_r.c: Likewise.
49741         * lib/mbswidth.c: Likewise.
49742         * lib/mbswidth.h: Likewise.
49743         * lib/mbuiter.h: Likewise.
49744         * lib/memcasecmp.c: Likewise.
49745         * lib/memcasecmp.h: Likewise.
49746         * lib/memchr.c: Likewise.
49747         * lib/memcmp.c: Likewise.
49748         * lib/memcoll.c: Likewise.
49749         * lib/memcoll.h: Likewise.
49750         * lib/memcpy.c: Likewise.
49751         * lib/memrchr.c: Likewise.
49752         * lib/mkancesdirs.c: Likewise.
49753         * lib/mkdir-p.c: Likewise.
49754         * lib/mkdir-p.h: Likewise.
49755         * lib/mkdir.c: Likewise.
49756         * lib/mkdirat.c: Likewise.
49757         * lib/mkdtemp.c: Likewise.
49758         * lib/mkstemp-safer.c: Likewise.
49759         * lib/mkstemp.c: Likewise.
49760         * lib/modechange.c: Likewise.
49761         * lib/modechange.h: Likewise.
49762         * lib/mountlist.c: Likewise.
49763         * lib/mountlist.h: Likewise.
49764         * lib/mpsort.c: Likewise.
49765         * lib/nanosleep.c: Likewise.
49766         * lib/obstack.c: Likewise.
49767         * lib/obstack.h: Likewise.
49768         * lib/open-safer.c: Likewise.
49769         * lib/open.c: Likewise.
49770         * lib/openat-die.c: Likewise.
49771         * lib/openat-priv.h: Likewise.
49772         * lib/openat-proc.c: Likewise.
49773         * lib/openat.c: Likewise.
49774         * lib/openat.h: Likewise.
49775         * lib/pagealign_alloc.c: Likewise.
49776         * lib/pagealign_alloc.h: Likewise.
49777         * lib/physmem.c: Likewise.
49778         * lib/physmem.h: Likewise.
49779         * lib/pipe-safer.c: Likewise.
49780         * lib/pipe.c: Likewise.
49781         * lib/pipe.h: Likewise.
49782         * lib/posixtm.c: Likewise.
49783         * lib/posixtm.h: Likewise.
49784         * lib/posixver.c: Likewise.
49785         * lib/printf-frexp.c: Likewise.
49786         * lib/printf-frexp.h: Likewise.
49787         * lib/printf-frexpl.c: Likewise.
49788         * lib/printf-frexpl.h: Likewise.
49789         * lib/printf.c: Likewise.
49790         * lib/progname.c: Likewise.
49791         * lib/progname.h: Likewise.
49792         * lib/progreloc.c: Likewise.
49793         * lib/putenv.c: Likewise.
49794         * lib/quote.c: Likewise.
49795         * lib/quote.h: Likewise.
49796         * lib/quotearg.c: Likewise.
49797         * lib/quotearg.h: Likewise.
49798         * lib/raise.c: Likewise.
49799         * lib/readline.c: Likewise.
49800         * lib/readline.h: Likewise.
49801         * lib/readlink.c: Likewise.
49802         * lib/readtokens.c: Likewise.
49803         * lib/readtokens.h: Likewise.
49804         * lib/readtokens0.c: Likewise.
49805         * lib/readtokens0.h: Likewise.
49806         * lib/readutmp.c: Likewise.
49807         * lib/readutmp.h: Likewise.
49808         * lib/realloc.c: Likewise.
49809         * lib/relocwrapper.c: Likewise.
49810         * lib/rename-dest-slash.c: Likewise.
49811         * lib/rename.c: Likewise.
49812         * lib/rmdir.c: Likewise.
49813         * lib/rpmatch.c: Likewise.
49814         * lib/safe-read.c: Likewise.
49815         * lib/safe-read.h: Likewise.
49816         * lib/safe-write.c: Likewise.
49817         * lib/safe-write.h: Likewise.
49818         * lib/same-inode.h: Likewise.
49819         * lib/same.c: Likewise.
49820         * lib/same.h: Likewise.
49821         * lib/save-cwd.c: Likewise.
49822         * lib/save-cwd.h: Likewise.
49823         * lib/savedir.c: Likewise.
49824         * lib/savedir.h: Likewise.
49825         * lib/savewd.c: Likewise.
49826         * lib/savewd.h: Likewise.
49827         * lib/search.in.h: Likewise.
49828         * lib/setenv.c: Likewise.
49829         * lib/setenv.h: Likewise.
49830         * lib/settime.c: Likewise.
49831         * lib/sh-quote.c: Likewise.
49832         * lib/sh-quote.h: Likewise.
49833         * lib/sig2str.c: Likewise.
49834         * lib/sig2str.h: Likewise.
49835         * lib/signal.in.h: Likewise.
49836         * lib/signbitd.c: Likewise.
49837         * lib/signbitf.c: Likewise.
49838         * lib/signbitl.c: Likewise.
49839         * lib/sigprocmask.c: Likewise.
49840         * lib/sincosl.c: Likewise.
49841         * lib/sleep.c: Likewise.
49842         * lib/sprintf.c: Likewise.
49843         * lib/sqrtl.c: Likewise.
49844         * lib/stat-time.h: Likewise.
49845         * lib/stdio--.h: Likewise.
49846         * lib/stdio-safer.h: Likewise.
49847         * lib/stdlib--.h: Likewise.
49848         * lib/stdlib-safer.h: Likewise.
49849         * lib/stdlib.in.h: Likewise.
49850         * lib/stpcpy.c: Likewise.
49851         * lib/stpncpy.c: Likewise.
49852         * lib/strchrnul.c: Likewise.
49853         * lib/strcspn.c: Likewise.
49854         * lib/strerror.c: Likewise.
49855         * lib/strftime.c: Likewise.
49856         * lib/strftime.h: Likewise.
49857         * lib/striconveh.c: Likewise.
49858         * lib/striconveh.h: Likewise.
49859         * lib/striconveha.c: Likewise.
49860         * lib/striconveha.h: Likewise.
49861         * lib/stripslash.c: Likewise.
49862         * lib/strnlen1.c: Likewise.
49863         * lib/strnlen1.h: Likewise.
49864         * lib/strtod.c: Likewise.
49865         * lib/strtoimax.c: Likewise.
49866         * lib/strtok_r.c: Likewise.
49867         * lib/strtol.c: Likewise.
49868         * lib/strtoll.c: Likewise.
49869         * lib/strtoul.c: Likewise.
49870         * lib/strtoull.c: Likewise.
49871         * lib/sysexits.in.h: Likewise.
49872         * lib/tempname.c: Likewise.
49873         * lib/tempname.h: Likewise.
49874         * lib/timespec.h: Likewise.
49875         * lib/tls.c: Likewise.
49876         * lib/tls.h: Likewise.
49877         * lib/tmpdir.c: Likewise.
49878         * lib/tmpdir.h: Likewise.
49879         * lib/tmpfile-safer.c: Likewise.
49880         * lib/tmpfile.c: Likewise.
49881         * lib/trigl.c: Likewise.
49882         * lib/trigl.h: Likewise.
49883         * lib/trim.c: Likewise.
49884         * lib/trim.h: Likewise.
49885         * lib/trunc.c: Likewise.
49886         * lib/truncf.c: Likewise.
49887         * lib/truncl.c: Likewise.
49888         * lib/tsearch.c: Likewise.
49889         * lib/unicodeio.c: Likewise.
49890         * lib/unicodeio.h: Likewise.
49891         * lib/unistd--.h: Likewise.
49892         * lib/unistd-safer.h: Likewise.
49893         * lib/unistdio/ulc-fprintf.c: Likewise.
49894         * lib/unistdio/ulc-vfprintf.c: Likewise.
49895         * lib/unlinkdir.c: Likewise.
49896         * lib/unlinkdir.h: Likewise.
49897         * lib/unlocked-io.h: Likewise.
49898         * lib/unsetenv.c: Likewise.
49899         * lib/userspec.c: Likewise.
49900         * lib/utime.c: Likewise.
49901         * lib/utimecmp.c: Likewise.
49902         * lib/utimecmp.h: Likewise.
49903         * lib/utimens.c: Likewise.
49904         * lib/verify.h: Likewise.
49905         * lib/verror.c: Likewise.
49906         * lib/verror.h: Likewise.
49907         * lib/version-etc-fsf.c: Likewise.
49908         * lib/version-etc.c: Likewise.
49909         * lib/version-etc.h: Likewise.
49910         * lib/vfprintf.c: Likewise.
49911         * lib/vprintf.c: Likewise.
49912         * lib/vsprintf.c: Likewise.
49913         * lib/w32spawn.h: Likewise.
49914         * lib/wait-process.c: Likewise.
49915         * lib/wait-process.h: Likewise.
49916         * lib/wcwidth.c: Likewise.
49917         * lib/write-any-file.c: Likewise.
49918         * lib/xalloc-die.c: Likewise.
49919         * lib/xalloc.h: Likewise.
49920         * lib/xasprintf.c: Likewise.
49921         * lib/xgetcwd.c: Likewise.
49922         * lib/xgetcwd.h: Likewise.
49923         * lib/xgetdomainname.c: Likewise.
49924         * lib/xgetdomainname.h: Likewise.
49925         * lib/xgethostname.c: Likewise.
49926         * lib/xmalloc.c: Likewise.
49927         * lib/xmalloca.c: Likewise.
49928         * lib/xmalloca.h: Likewise.
49929         * lib/xmemcoll.c: Likewise.
49930         * lib/xnanosleep.c: Likewise.
49931         * lib/xreadlink.c: Likewise.
49932         * lib/xreadlink.h: Likewise.
49933         * lib/xsetenv.c: Likewise.
49934         * lib/xsetenv.h: Likewise.
49935         * lib/xstriconv.c: Likewise.
49936         * lib/xstriconv.h: Likewise.
49937         * lib/xstrndup.c: Likewise.
49938         * lib/xstrndup.h: Likewise.
49939         * lib/xstrtod.c: Likewise.
49940         * lib/xstrtod.h: Likewise.
49941         * lib/xstrtol-error.c: Likewise.
49942         * lib/xstrtol.c: Likewise.
49943         * lib/xstrtol.h: Likewise.
49944         * lib/xtime.h: Likewise.
49945         * lib/xvasprintf.c: Likewise.
49946         * lib/xvasprintf.h: Likewise.
49947         * lib/yesno.c: Likewise.
49948         * lib/yesno.h: Likewise.
49949         * posix-modules: Likewise.
49950         * tests/test-alloca-opt.c: Likewise.
49951         * tests/test-arcfour.c: Likewise.
49952         * tests/test-arctwo.c: Likewise.
49953         * tests/test-argmatch.c: Likewise.
49954         * tests/test-argp-2.sh: Likewise.
49955         * tests/test-argp.c: Likewise.
49956         * tests/test-arpa_inet.c: Likewise.
49957         * tests/test-array_list.c: Likewise.
49958         * tests/test-array_oset.c: Likewise.
49959         * tests/test-atexit.c: Likewise.
49960         * tests/test-avltree_list.c: Likewise.
49961         * tests/test-avltree_oset.c: Likewise.
49962         * tests/test-avltreehash_list.c: Likewise.
49963         * tests/test-base64.c: Likewise.
49964         * tests/test-binary-io.c: Likewise.
49965         * tests/test-byteswap.c: Likewise.
49966         * tests/test-c-ctype.c: Likewise.
49967         * tests/test-c-strcasecmp.c: Likewise.
49968         * tests/test-c-strcasestr.c: Likewise.
49969         * tests/test-c-strncasecmp.c: Likewise.
49970         * tests/test-c-strstr.c: Likewise.
49971         * tests/test-canonicalize-lgpl.c: Likewise.
49972         * tests/test-canonicalize.c: Likewise.
49973         * tests/test-carray_list.c: Likewise.
49974         * tests/test-ceilf.c: Likewise.
49975         * tests/test-ceill.c: Likewise.
49976         * tests/test-count-one-bits.c: Likewise.
49977         * tests/test-crc.c: Likewise.
49978         * tests/test-dirname.c: Likewise.
49979         * tests/test-fbufmode.c: Likewise.
49980         * tests/test-fcntl.c: Likewise.
49981         * tests/test-fflush.c: Likewise.
49982         * tests/test-floorf.c: Likewise.
49983         * tests/test-floorl.c: Likewise.
49984         * tests/test-fopen.c: Likewise.
49985         * tests/test-fprintf-posix.c: Likewise.
49986         * tests/test-fprintf-posix.h: Likewise.
49987         * tests/test-fpurge.c: Likewise.
49988         * tests/test-freadable.c: Likewise.
49989         * tests/test-freadahead.c: Likewise.
49990         * tests/test-freading.c: Likewise.
49991         * tests/test-freopen.c: Likewise.
49992         * tests/test-frexp.c: Likewise.
49993         * tests/test-frexpl.c: Likewise.
49994         * tests/test-fseek.c: Likewise.
49995         * tests/test-fseeko.c: Likewise.
49996         * tests/test-fseterr.c: Likewise.
49997         * tests/test-fstrcmp.c: Likewise.
49998         * tests/test-ftell.c: Likewise.
49999         * tests/test-ftello.c: Likewise.
50000         * tests/test-fwritable.c: Likewise.
50001         * tests/test-fwriting.c: Likewise.
50002         * tests/test-getaddrinfo.c: Likewise.
50003         * tests/test-getpass.c: Likewise.
50004         * tests/test-gettimeofday.c: Likewise.
50005         * tests/test-hmac-md5.c: Likewise.
50006         * tests/test-hmac-sha1.c: Likewise.
50007         * tests/test-iconv.c: Likewise.
50008         * tests/test-iconvme.c: Likewise.
50009         * tests/test-inttypes.c: Likewise.
50010         * tests/test-isnan.c: Likewise.
50011         * tests/test-isnanf.c: Likewise.
50012         * tests/test-isnanl-nolibm.c: Likewise.
50013         * tests/test-isnanl.c: Likewise.
50014         * tests/test-isnanl.h: Likewise.
50015         * tests/test-ldexpl.c: Likewise.
50016         * tests/test-linked_list.c: Likewise.
50017         * tests/test-linkedhash_list.c: Likewise.
50018         * tests/test-locale.c: Likewise.
50019         * tests/test-localename.c: Likewise.
50020         * tests/test-lock.c: Likewise.
50021         * tests/test-lseek.c: Likewise.
50022         * tests/test-malloca.c: Likewise.
50023         * tests/test-math.c: Likewise.
50024         * tests/test-mbscasecmp.c: Likewise.
50025         * tests/test-mbscasestr1.c: Likewise.
50026         * tests/test-mbscasestr2.c: Likewise.
50027         * tests/test-mbscasestr3.c: Likewise.
50028         * tests/test-mbscasestr4.c: Likewise.
50029         * tests/test-mbschr.c: Likewise.
50030         * tests/test-mbscspn.c: Likewise.
50031         * tests/test-mbsncasecmp.c: Likewise.
50032         * tests/test-mbspbrk.c: Likewise.
50033         * tests/test-mbspcasecmp.c: Likewise.
50034         * tests/test-mbsrchr.c: Likewise.
50035         * tests/test-mbsspn.c: Likewise.
50036         * tests/test-mbsstr1.c: Likewise.
50037         * tests/test-mbsstr2.c: Likewise.
50038         * tests/test-mbsstr3.c: Likewise.
50039         * tests/test-md5.c: Likewise.
50040         * tests/test-memmem.c: Likewise.
50041         * tests/test-netinet_in.c: Likewise.
50042         * tests/test-open.c: Likewise.
50043         * tests/test-printf-frexp.c: Likewise.
50044         * tests/test-printf-frexpl.c: Likewise.
50045         * tests/test-printf-posix.c: Likewise.
50046         * tests/test-printf-posix.h: Likewise.
50047         * tests/test-rbtree_list.c: Likewise.
50048         * tests/test-rbtree_oset.c: Likewise.
50049         * tests/test-rbtreehash_list.c: Likewise.
50050         * tests/test-read-file.c: Likewise.
50051         * tests/test-rijndael.c: Likewise.
50052         * tests/test-search.c: Likewise.
50053         * tests/test-signbit.c: Likewise.
50054         * tests/test-sleep.c: Likewise.
50055         * tests/test-snprintf-posix.c: Likewise.
50056         * tests/test-snprintf-posix.h: Likewise.
50057         * tests/test-snprintf.c: Likewise.
50058         * tests/test-sprintf-posix.c: Likewise.
50059         * tests/test-sprintf-posix.h: Likewise.
50060         * tests/test-stat-time.c: Likewise.
50061         * tests/test-stdbool.c: Likewise.
50062         * tests/test-stdint.c: Likewise.
50063         * tests/test-stdio.c: Likewise.
50064         * tests/test-stdlib.c: Likewise.
50065         * tests/test-stpncpy.c: Likewise.
50066         * tests/test-strcasestr.c: Likewise.
50067         * tests/test-striconv.c: Likewise.
50068         * tests/test-striconveh.c: Likewise.
50069         * tests/test-striconveha.c: Likewise.
50070         * tests/test-string.c: Likewise.
50071         * tests/test-sys_select.c: Likewise.
50072         * tests/test-sys_socket.c: Likewise.
50073         * tests/test-sys_stat.c: Likewise.
50074         * tests/test-sys_time.c: Likewise.
50075         * tests/test-sysexits.c: Likewise.
50076         * tests/test-time.c: Likewise.
50077         * tests/test-tls.c: Likewise.
50078         * tests/test-trunc.c: Likewise.
50079         * tests/test-truncf.c: Likewise.
50080         * tests/test-truncl.c: Likewise.
50081         * tests/test-unistd.c: Likewise.
50082         * tests/test-vasnprintf-posix.c: Likewise.
50083         * tests/test-vasnprintf-posix2.c: Likewise.
50084         * tests/test-vasnprintf.c: Likewise.
50085         * tests/test-vasprintf-posix.c: Likewise.
50086         * tests/test-vasprintf.c: Likewise.
50087         * tests/test-verify.c: Likewise.
50088         * tests/test-vfprintf-posix.c: Likewise.
50089         * tests/test-vprintf-posix.c: Likewise.
50090         * tests/test-vsnprintf-posix.c: Likewise.
50091         * tests/test-vsnprintf.c: Likewise.
50092         * tests/test-vsprintf-posix.c: Likewise.
50093         * tests/test-wchar.c: Likewise.
50094         * tests/test-wctype.c: Likewise.
50095         * tests/test-wcwidth.c: Likewise.
50096         * tests/test-xstrtol.c: Likewise.
50097         * tests/test-xvasprintf.c: Likewise.
50098         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50099         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50100         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50101         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50102         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50103         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50104         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50105         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50106         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50107         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50108         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50109         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50110         * tests/uniname/test-uninames.c: Likewise.
50111         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50112         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50113         * tests/unistdio/test-u16-printf1.h: Likewise.
50114         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50115         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50116         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50117         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50118         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50119         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50120         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50121         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50122         * tests/unistdio/test-u32-printf1.h: Likewise.
50123         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50124         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50125         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50126         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50127         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50128         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50129         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50130         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50131         * tests/unistdio/test-u8-printf1.h: Likewise.
50132         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50133         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50134         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50135         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50136         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50137         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50138         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50139         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50140         * tests/unistdio/test-ulc-printf1.h: Likewise.
50141         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50142         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50143         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50144         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50145         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50146         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50147         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50148         * tests/uniwidth/test-u16-width.c: Likewise.
50149         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50150         * tests/uniwidth/test-u32-width.c: Likewise.
50151         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50152         * tests/uniwidth/test-u8-width.c: Likewise.
50153         * tests/uniwidth/test-uc_width.c: Likewise.
50154         * config/srclist-update: Likewise.
50155         (fixlicense): Update to GPLv3+.
50156
50157         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50158         * tests/test-tsearch.c: Change copyright notice.
50159
50160         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50161         * lib/c-strcaseeq.h: Change copyright notice.
50162         * lib/streq.h: Likewise.
50163         * lib/uniconv.h: Likewise.
50164         * lib/uniconv/u-conv-from-enc.h: Likewise.
50165         * lib/uniconv/u-conv-to-enc.h: Likewise.
50166         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50167         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50168         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50169         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50170         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50171         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50172         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50173         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50174         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50175         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50176         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50177         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50178         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50179         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50180         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50181         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50182         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50183         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50184         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50185         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50186         * lib/uniname.h: Likewise.
50187         * lib/uniname/uniname.c: Likewise.
50188         * lib/unistdio.h: Likewise.
50189         * lib/unistdio/u-asnprintf.h: Likewise.
50190         * lib/unistdio/u-asprintf.h: Likewise.
50191         * lib/unistdio/u-printf-args.c: Likewise.
50192         * lib/unistdio/u-printf-args.h: Likewise.
50193         * lib/unistdio/u-printf-parse.h: Likewise.
50194         * lib/unistdio/u-snprintf.h: Likewise.
50195         * lib/unistdio/u-sprintf.h: Likewise.
50196         * lib/unistdio/u-vasprintf.h: Likewise.
50197         * lib/unistdio/u-vsnprintf.h: Likewise.
50198         * lib/unistdio/u-vsprintf.h: Likewise.
50199         * lib/unistdio/u16-asnprintf.c: Likewise.
50200         * lib/unistdio/u16-asprintf.c: Likewise.
50201         * lib/unistdio/u16-printf-parse.c: Likewise.
50202         * lib/unistdio/u16-snprintf.c: Likewise.
50203         * lib/unistdio/u16-sprintf.c: Likewise.
50204         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50205         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50206         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50207         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50208         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50209         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50210         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50211         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50212         * lib/unistdio/u16-vasnprintf.c: Likewise.
50213         * lib/unistdio/u16-vasprintf.c: Likewise.
50214         * lib/unistdio/u16-vsnprintf.c: Likewise.
50215         * lib/unistdio/u16-vsprintf.c: Likewise.
50216         * lib/unistdio/u32-asnprintf.c: Likewise.
50217         * lib/unistdio/u32-asprintf.c: Likewise.
50218         * lib/unistdio/u32-printf-parse.c: Likewise.
50219         * lib/unistdio/u32-snprintf.c: Likewise.
50220         * lib/unistdio/u32-sprintf.c: Likewise.
50221         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50222         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50223         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50224         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50225         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50226         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50227         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50228         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50229         * lib/unistdio/u32-vasnprintf.c: Likewise.
50230         * lib/unistdio/u32-vasprintf.c: Likewise.
50231         * lib/unistdio/u32-vsnprintf.c: Likewise.
50232         * lib/unistdio/u32-vsprintf.c: Likewise.
50233         * lib/unistdio/u8-asnprintf.c: Likewise.
50234         * lib/unistdio/u8-asprintf.c: Likewise.
50235         * lib/unistdio/u8-printf-parse.c: Likewise.
50236         * lib/unistdio/u8-snprintf.c: Likewise.
50237         * lib/unistdio/u8-sprintf.c: Likewise.
50238         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50239         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50240         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50241         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50242         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50243         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50244         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50245         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50246         * lib/unistdio/u8-vasnprintf.c: Likewise.
50247         * lib/unistdio/u8-vasprintf.c: Likewise.
50248         * lib/unistdio/u8-vsnprintf.c: Likewise.
50249         * lib/unistdio/u8-vsprintf.c: Likewise.
50250         * lib/unistdio/ulc-asnprintf.c: Likewise.
50251         * lib/unistdio/ulc-asprintf.c: Likewise.
50252         * lib/unistdio/ulc-printf-parse.c: Likewise.
50253         * lib/unistdio/ulc-snprintf.c: Likewise.
50254         * lib/unistdio/ulc-sprintf.c: Likewise.
50255         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50256         * lib/unistdio/ulc-vasprintf.c: Likewise.
50257         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50258         * lib/unistdio/ulc-vsprintf.c: Likewise.
50259         * lib/unistr.h: Likewise.
50260         * lib/unistr/u-cpy-alloc.h: Likewise.
50261         * lib/unistr/u-cpy.h: Likewise.
50262         * lib/unistr/u-endswith.h: Likewise.
50263         * lib/unistr/u-move.h: Likewise.
50264         * lib/unistr/u-set.h: Likewise.
50265         * lib/unistr/u-startswith.h: Likewise.
50266         * lib/unistr/u-stpcpy.h: Likewise.
50267         * lib/unistr/u-stpncpy.h: Likewise.
50268         * lib/unistr/u-strcat.h: Likewise.
50269         * lib/unistr/u-strcpy.h: Likewise.
50270         * lib/unistr/u-strcspn.h: Likewise.
50271         * lib/unistr/u-strdup.h: Likewise.
50272         * lib/unistr/u-strlen.h: Likewise.
50273         * lib/unistr/u-strncat.h: Likewise.
50274         * lib/unistr/u-strncpy.h: Likewise.
50275         * lib/unistr/u-strnlen.h: Likewise.
50276         * lib/unistr/u-strpbrk.h: Likewise.
50277         * lib/unistr/u-strspn.h: Likewise.
50278         * lib/unistr/u-strstr.h: Likewise.
50279         * lib/unistr/u-strtok.h: Likewise.
50280         * lib/unistr/u16-check.c: Likewise.
50281         * lib/unistr/u16-chr.c: Likewise.
50282         * lib/unistr/u16-cmp.c: Likewise.
50283         * lib/unistr/u16-cpy-alloc.c: Likewise.
50284         * lib/unistr/u16-cpy.c: Likewise.
50285         * lib/unistr/u16-endswith.c: Likewise.
50286         * lib/unistr/u16-mblen.c: Likewise.
50287         * lib/unistr/u16-mbsnlen.c: Likewise.
50288         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50289         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50290         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50291         * lib/unistr/u16-mbtouc.c: Likewise.
50292         * lib/unistr/u16-mbtoucr.c: Likewise.
50293         * lib/unistr/u16-move.c: Likewise.
50294         * lib/unistr/u16-next.c: Likewise.
50295         * lib/unistr/u16-prev.c: Likewise.
50296         * lib/unistr/u16-set.c: Likewise.
50297         * lib/unistr/u16-startswith.c: Likewise.
50298         * lib/unistr/u16-stpcpy.c: Likewise.
50299         * lib/unistr/u16-stpncpy.c: Likewise.
50300         * lib/unistr/u16-strcat.c: Likewise.
50301         * lib/unistr/u16-strchr.c: Likewise.
50302         * lib/unistr/u16-strcmp.c: Likewise.
50303         * lib/unistr/u16-strcpy.c: Likewise.
50304         * lib/unistr/u16-strcspn.c: Likewise.
50305         * lib/unistr/u16-strdup.c: Likewise.
50306         * lib/unistr/u16-strlen.c: Likewise.
50307         * lib/unistr/u16-strmblen.c: Likewise.
50308         * lib/unistr/u16-strmbtouc.c: Likewise.
50309         * lib/unistr/u16-strncat.c: Likewise.
50310         * lib/unistr/u16-strncmp.c: Likewise.
50311         * lib/unistr/u16-strncpy.c: Likewise.
50312         * lib/unistr/u16-strnlen.c: Likewise.
50313         * lib/unistr/u16-strpbrk.c: Likewise.
50314         * lib/unistr/u16-strrchr.c: Likewise.
50315         * lib/unistr/u16-strspn.c: Likewise.
50316         * lib/unistr/u16-strstr.c: Likewise.
50317         * lib/unistr/u16-strtok.c: Likewise.
50318         * lib/unistr/u16-to-u32.c: Likewise.
50319         * lib/unistr/u16-to-u8.c: Likewise.
50320         * lib/unistr/u16-uctomb-aux.c: Likewise.
50321         * lib/unistr/u16-uctomb.c: Likewise.
50322         * lib/unistr/u32-check.c: Likewise.
50323         * lib/unistr/u32-chr.c: Likewise.
50324         * lib/unistr/u32-cmp.c: Likewise.
50325         * lib/unistr/u32-cpy-alloc.c: Likewise.
50326         * lib/unistr/u32-cpy.c: Likewise.
50327         * lib/unistr/u32-endswith.c: Likewise.
50328         * lib/unistr/u32-mblen.c: Likewise.
50329         * lib/unistr/u32-mbsnlen.c: Likewise.
50330         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50331         * lib/unistr/u32-mbtouc.c: Likewise.
50332         * lib/unistr/u32-mbtoucr.c: Likewise.
50333         * lib/unistr/u32-move.c: Likewise.
50334         * lib/unistr/u32-next.c: Likewise.
50335         * lib/unistr/u32-prev.c: Likewise.
50336         * lib/unistr/u32-set.c: Likewise.
50337         * lib/unistr/u32-startswith.c: Likewise.
50338         * lib/unistr/u32-stpcpy.c: Likewise.
50339         * lib/unistr/u32-stpncpy.c: Likewise.
50340         * lib/unistr/u32-strcat.c: Likewise.
50341         * lib/unistr/u32-strchr.c: Likewise.
50342         * lib/unistr/u32-strcmp.c: Likewise.
50343         * lib/unistr/u32-strcpy.c: Likewise.
50344         * lib/unistr/u32-strcspn.c: Likewise.
50345         * lib/unistr/u32-strdup.c: Likewise.
50346         * lib/unistr/u32-strlen.c: Likewise.
50347         * lib/unistr/u32-strmblen.c: Likewise.
50348         * lib/unistr/u32-strmbtouc.c: Likewise.
50349         * lib/unistr/u32-strncat.c: Likewise.
50350         * lib/unistr/u32-strncmp.c: Likewise.
50351         * lib/unistr/u32-strncpy.c: Likewise.
50352         * lib/unistr/u32-strnlen.c: Likewise.
50353         * lib/unistr/u32-strpbrk.c: Likewise.
50354         * lib/unistr/u32-strrchr.c: Likewise.
50355         * lib/unistr/u32-strspn.c: Likewise.
50356         * lib/unistr/u32-strstr.c: Likewise.
50357         * lib/unistr/u32-strtok.c: Likewise.
50358         * lib/unistr/u32-to-u16.c: Likewise.
50359         * lib/unistr/u32-to-u8.c: Likewise.
50360         * lib/unistr/u32-uctomb.c: Likewise.
50361         * lib/unistr/u8-check.c: Likewise.
50362         * lib/unistr/u8-chr.c: Likewise.
50363         * lib/unistr/u8-cmp.c: Likewise.
50364         * lib/unistr/u8-cpy-alloc.c: Likewise.
50365         * lib/unistr/u8-cpy.c: Likewise.
50366         * lib/unistr/u8-endswith.c: Likewise.
50367         * lib/unistr/u8-mblen.c: Likewise.
50368         * lib/unistr/u8-mbsnlen.c: Likewise.
50369         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50370         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50371         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50372         * lib/unistr/u8-mbtouc.c: Likewise.
50373         * lib/unistr/u8-mbtoucr.c: Likewise.
50374         * lib/unistr/u8-move.c: Likewise.
50375         * lib/unistr/u8-next.c: Likewise.
50376         * lib/unistr/u8-prev.c: Likewise.
50377         * lib/unistr/u8-set.c: Likewise.
50378         * lib/unistr/u8-startswith.c: Likewise.
50379         * lib/unistr/u8-stpcpy.c: Likewise.
50380         * lib/unistr/u8-stpncpy.c: Likewise.
50381         * lib/unistr/u8-strcat.c: Likewise.
50382         * lib/unistr/u8-strchr.c: Likewise.
50383         * lib/unistr/u8-strcmp.c: Likewise.
50384         * lib/unistr/u8-strcpy.c: Likewise.
50385         * lib/unistr/u8-strcspn.c: Likewise.
50386         * lib/unistr/u8-strdup.c: Likewise.
50387         * lib/unistr/u8-strlen.c: Likewise.
50388         * lib/unistr/u8-strmblen.c: Likewise.
50389         * lib/unistr/u8-strmbtouc.c: Likewise.
50390         * lib/unistr/u8-strncat.c: Likewise.
50391         * lib/unistr/u8-strncmp.c: Likewise.
50392         * lib/unistr/u8-strncpy.c: Likewise.
50393         * lib/unistr/u8-strnlen.c: Likewise.
50394         * lib/unistr/u8-strpbrk.c: Likewise.
50395         * lib/unistr/u8-strrchr.c: Likewise.
50396         * lib/unistr/u8-strspn.c: Likewise.
50397         * lib/unistr/u8-strstr.c: Likewise.
50398         * lib/unistr/u8-strtok.c: Likewise.
50399         * lib/unistr/u8-to-u16.c: Likewise.
50400         * lib/unistr/u8-to-u32.c: Likewise.
50401         * lib/unistr/u8-uctomb-aux.c: Likewise.
50402         * lib/unistr/u8-uctomb.c: Likewise.
50403         * lib/unitypes.h: Likewise.
50404         * lib/uniwidth.h: Likewise.
50405         * lib/uniwidth/cjk.h: Likewise.
50406         * lib/uniwidth/u16-strwidth.c: Likewise.
50407         * lib/uniwidth/u16-width.c: Likewise.
50408         * lib/uniwidth/u32-strwidth.c: Likewise.
50409         * lib/uniwidth/u32-width.c: Likewise.
50410         * lib/uniwidth/u8-strwidth.c: Likewise.
50411         * lib/uniwidth/u8-width.c: Likewise.
50412         * lib/uniwidth/width.c: Likewise.
50413
50414 2007-10-07  Bruno Haible  <bruno@clisp.org>
50415
50416         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50417         The file is still under LGPL (see modules/inttypes).
50418
50419 2007-10-06  Bruno Haible  <bruno@clisp.org>
50420
50421         * modules/trunc (Dependencies): Add 'extensions'.
50422         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50423         Reported by Ben Pfaff <blp@gnu.org>.
50424
50425 2007-10-06  Bruno Haible  <bruno@clisp.org>
50426
50427         * modules/freopen-tests: New file.
50428         * tests/test-freopen.c: New file.
50429
50430         * modules/fopen-tests: New file.
50431         * tests/test-fopen.c: New file.
50432
50433         * modules/fopen: New file.
50434         * lib/fopen.c: New file.
50435         * m4/fopen.m4: New file.
50436         * modules/freopen: New file.
50437         * lib/freopen.c: New file.
50438         * m4/freopen.m4: New file.
50439         * lib/stdio.in.h (fopen, freopen): New declarations.
50440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50441         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50442         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50443         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50444         * doc/functions/fopen.texi: Mention the 'fopen' module.
50445         * doc/functions/freopen.texi: Mention the 'freopen' module.
50446
50447 2007-10-06  Bruno Haible  <bruno@clisp.org>
50448
50449         * modules/open-tests: New file.
50450         * tests/test-open.c: New file.
50451
50452         * modules/open: New file.
50453         * lib/open.c: New file.
50454         * m4/open.m4: New file.
50455         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
50456         lib/open.c does.
50457         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
50458         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
50459         macros.
50460         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
50461         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
50462         REPLACE_OPEN.
50463         * doc/functions/open.texi: Mention the 'open' module.
50464
50465 2007-10-04  Bruno Haible  <bruno@clisp.org>
50466
50467         * modules/ceill-tests: New file.
50468         * tests/test-ceill.c: New file.
50469
50470         * modules/ceill: New file.
50471         * lib/ceill.c: Replace entire file.
50472         * m4/ceill.m4: New file.
50473         * lib/math.in.h (ceill): Replace declaration.
50474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50475         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50476         * doc/functions/ceill.texi: Mention the 'ceill' module.
50477         * modules/mathl (Files): Remove lib/ceill.c.
50478         (Depends-on): Add ceill.
50479
50480 2007-10-04  Bruno Haible  <bruno@clisp.org>
50481
50482         * modules/ceilf-tests: New file.
50483         * tests/test-ceilf.c: New file.
50484
50485         * modules/ceilf: New file.
50486         * lib/ceil.c: New file.
50487         * lib/ceilf.c: New file.
50488         * m4/ceilf.m4: New file.
50489         * lib/math.in.h (ceilf): New declaration.
50490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50491         HAVE_DECL_CEILF.
50492         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50493         HAVE_DECL_CEILF.
50494         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50495
50496 2007-10-04  Bruno Haible  <bruno@clisp.org>
50497
50498         * modules/floorl-tests: New file.
50499         * tests/test-floorl.c: New file.
50500
50501         * modules/floorl: New file.
50502         * lib/floorl.c: Replace entire file.
50503         * m4/floorl.m4: New file.
50504         * lib/math.in.h (floorl): Replace declaration.
50505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50506         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50507         * doc/functions/floorl.texi: Mention the 'floorl' module.
50508         * modules/mathl (Files): Remove lib/floorl.c.
50509         (Depends-on): Add floorl.
50510
50511 2007-10-04  Bruno Haible  <bruno@clisp.org>
50512
50513         * modules/floorf-tests: New file.
50514         * tests/test-floorf.c: New file.
50515
50516         * modules/floorf: New file.
50517         * lib/floor.c: New file.
50518         * lib/floorf.c: New file.
50519         * m4/floorf.m4: New file.
50520         * lib/math.in.h (floorf): New declaration.
50521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50522         HAVE_DECL_FLOORF.
50523         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50524         HAVE_DECL_FLOORF.
50525         * doc/functions/floorf.texi: Mention the 'floorf' module.
50526
50527 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50528             Bruno Haible  <bruno@clisp.org>
50529
50530         Advertise for the Git server instead of the CVS server.
50531         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50532         repository instead of the CVS one.
50533         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50534         about all VCS systems generically.
50535         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50536
50537 2007-10-04  Bruno Haible  <bruno@clisp.org>
50538
50539         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
50540         means.
50541         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
50542
50543 2007-10-04  Bruno Haible  <bruno@clisp.org>
50544
50545         * modules/truncl-tests: New file.
50546         * tests/test-truncl.c: New file.
50547
50548         * modules/truncl: New file.
50549         * lib/truncl.c: New file.
50550         * m4/truncl.m4: New file.
50551         * lib/math.in.h (truncl): New declaration.
50552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
50553         HAVE_DECL_TRUNCL.
50554         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
50555         HAVE_DECL_TRUNCL.
50556         * doc/functions/truncl.texi: Mention the 'truncl' module.
50557
50558 2007-10-04  Bruno Haible  <bruno@clisp.org>
50559
50560         * modules/truncf-tests: New file.
50561         * tests/test-truncf.c: New file.
50562
50563         * modules/truncf: New file.
50564         * lib/trunc.c: Make paramerizable through USE_* macros.
50565         * lib/truncf.c: New file.
50566         * m4/truncf.m4: New file.
50567         * lib/math.in.h (truncf): New declaration.
50568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
50569         HAVE_DECL_TRUNCF.
50570         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
50571         HAVE_DECL_TRUNCF.
50572         * doc/functions/truncf.texi: Mention the 'truncf' module.
50573
50574 2007-10-03  Bruno Haible  <bruno@clisp.org>
50575
50576         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50577         augmentation also for tests modules.
50578         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
50579         * modules/atexit-tests (Makefile.am): Likewise.
50580         * modules/binary-io-tests (Makefile.am): Likewise.
50581         * modules/c-strcase-tests (Makefile.am): Likewise.
50582         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
50583         * modules/canonicalize-tests (Makefile.am): Likewise.
50584         * modules/closein-tests (Makefile.am): Likewise.
50585         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50586         * modules/freadahead-tests (Makefile.am): Likewise.
50587         * modules/fseek-tests (Makefile.am): Likewise.
50588         * modules/fseeko-tests (Makefile.am): Likewise.
50589         * modules/ftell-tests (Makefile.am): Likewise.
50590         * modules/ftello-tests (Makefile.am): Likewise.
50591         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
50592         * modules/isnanl-tests (Makefile.am): Likewise.
50593         * modules/lseek-tests (Makefile.am): Likewise.
50594         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50595         * modules/mbscasestr-tests (Makefile.am): Likewise.
50596         * modules/mbschr-tests (Makefile.am): Likewise.
50597         * modules/mbscspn-tests (Makefile.am): Likewise.
50598         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50599         * modules/mbspbrk-tests (Makefile.am): Likewise.
50600         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50601         * modules/mbsrchr-tests (Makefile.am): Likewise.
50602         * modules/mbsspn-tests (Makefile.am): Likewise.
50603         * modules/mbsstr-tests (Makefile.am): Likewise.
50604         * modules/printf-posix-tests (Makefile.am): Likewise.
50605         * modules/snprintf-posix-tests (Makefile.am): Likewise.
50606         * modules/sprintf-posix-tests (Makefile.am): Likewise.
50607         * modules/tsearch-tests (Makefile.am): Likewise.
50608         * modules/uniname/uniname-tests (Makefile.am): Likewise.
50609         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50610         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50611         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50612         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50613         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50614         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
50615         * modules/vprintf-posix-tests (Makefile.am): Likewise.
50616         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
50617         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
50618         * modules/xstrtoimax-tests (Makefile.am): Likewise.
50619         * modules/xstrtol-tests (Makefile.am): Likewise.
50620         * modules/xstrtoumax-tests (Makefile.am): Likewise.
50621         * modules/yesno-tests (Makefile.am): Likewise.
50622
50623 2007-10-03  Bruno Haible  <bruno@clisp.org>
50624
50625         * modules/trunc-tests: New file.
50626         * tests/test-trunc.c: New file.
50627
50628         * modules/trunc: New file.
50629         * lib/trunc.c: New file.
50630         * m4/trunc.m4: New file.
50631         * lib/math.in.h (trunc): New declaration.
50632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
50633         HAVE_DECL_TRUNC.
50634         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
50635         HAVE_DECL_TRUNC.
50636         * doc/functions/trunc.texi: Mention the 'trunc' module.
50637
50638 2007-10-03  Bruno Haible  <bruno@clisp.org>
50639
50640         * tests/test-fpending.c: New file, mostly copied
50641         from coreutils/lib/t-fpending.c.
50642         * modules/fpending-tests: New file.
50643
50644 2007-10-03  Bruno Haible  <bruno@clisp.org>
50645
50646         Port the stdio extensions to QNX (untested).
50647         * lib/fseterr.c (fseterr): Add support for QNX.
50648         * lib/fbufmode.c (fbufmode): Likewise.
50649         * lib/freadable.c (freadable): Likewise.
50650         * lib/fwritable.c (fwritable): Likewise.
50651         * lib/freading.c (freading): Likewise.
50652         * lib/fwriting.c (fwriting): Likewise.
50653         * lib/freadahead.c (freadahed): Likewise.
50654         * lib/fpurge.c (fpurge): Likewise.
50655         * lib/fseeko.c (rpl_fseeko): Likewise.
50656
50657 2007-10-03  Bruno Haible  <bruno@clisp.org>
50658             Jim Meyering  <jim@meyering.net>
50659             Eric Blake  <ebb9@byu.net>
50660
50661         * doc/relocatable.texi: Use @command instead of @program.
50662
50663 2007-10-02  Jim Meyering  <jim@meyering.net>
50664
50665         Perform one more "_.h" -> ".in.h" substitution.
50666         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
50667         instead of unistd_.h here, too.
50668
50669 2007-10-01  Bruno Haible  <bruno@clisp.org>
50670
50671         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
50672         Needed for the alloca-opt module.
50673
50674 2007-09-30  Bruno Haible  <bruno@clisp.org>
50675
50676         * lib/alloca.in.h: Renamed from lib/alloca_.h.
50677         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
50678         alloca_.h.
50679         * lib/argz.in.h: Renamed from lib/argz_.h.
50680         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
50681         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
50682         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
50683         byteswap_.h.
50684         * lib/dirent.in.h: Renamed from lib/dirent_.h.
50685         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
50686         dirent_.h.
50687         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
50688         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
50689         fcntl_.h.
50690         * lib/float.in.h: Renamed from lib/float_.h.
50691         * modules/float (Files, Makefile.am): Use float.in.h instead of
50692         float_.h.
50693         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
50694         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
50695         fnmatch_.h.
50696         * lib/getopt.in.h: Renamed from lib/getopt_.h.
50697         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
50698         getopt_.h.
50699         * lib/glob.in.h: Renamed from lib/glob_.h.
50700         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
50701         * lib/iconv.in.h: Renamed from lib/iconv_.h.
50702         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
50703         iconv_.h.
50704         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
50705         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
50706         inttypes_.h.
50707         * lib/locale.in.h: Renamed from lib/locale_.h.
50708         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
50709         locale_.h.
50710         * lib/math.in.h: Renamed from lib/math_.h.
50711         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
50712         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
50713         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
50714         of netinet_in_.h. Add dependency.
50715         * lib/poll.in.h: Renamed from lib/poll_.h.
50716         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
50717         * lib/search.in.h: Renamed from lib/search_.h.
50718         * modules/search (Files, Makefile.am): Use search.in.h instead of
50719         search_.h.
50720         * lib/signal.in.h: Renamed from lib/signal_.h.
50721         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
50722         _signal.h.
50723         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
50724         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
50725         stdbool_.h.
50726         * lib/stdint.in.h: Renamed from lib/stdint_.h.
50727         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
50728         stdint_.h.
50729         * lib/stdio.in.h: Renamed from lib/stdio_.h.
50730         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
50731         stdio_.h.
50732         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
50733         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
50734         stdlib_.h.
50735         * lib/string.in.h: Renamed from lib/string_.h.
50736         * modules/string (Files, Makefile.am): Use string.in.h instead of
50737         string_.h.
50738         * doc/gnulib-tool.texi (Initial import): Update.
50739         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
50740         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
50741         of sys_select_.h. Add dependency.
50742         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
50743         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
50744         of sys_socket_.h.
50745         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
50746         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
50747         sys_stat_.h.
50748         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
50749         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
50750         sys_time_.h.
50751         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
50752         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
50753         sysexits_.h.
50754         * lib/time.in.h: Renamed from lib/time_.h.
50755         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
50756         * lib/unistd.in.h: Renamed from lib/unistd_.h.
50757         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
50758         unistd_.h.
50759         * lib/wchar.in.h: Renamed from lib/wchar_.h.
50760         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
50761         wchar_.h.
50762         * lib/wctype.in.h: Renamed from lib/wctype_.h.
50763         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
50764         wctype_.h.
50765         * build-aux/bootstrap (slurp): Update.
50766         * lib/.cppi-disable: Update.
50767
50768 2007-09-30  Bruno Haible  <bruno@clisp.org>
50769
50770         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
50771         Needed on BeOS.
50772
50773 2007-09-30  Bruno Haible  <bruno@clisp.org>
50774
50775         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
50776
50777 2007-09-29  Bruno Haible  <bruno@clisp.org>
50778
50779         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
50780
50781 2007-09-29  Bruno Haible  <bruno@clisp.org>
50782
50783         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
50784         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
50785         * build-aux/install-reloc: Compile also areadlink.c.
50786         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
50787
50788 2007-09-29  Bruno Haible  <bruno@clisp.org>
50789
50790         * gnulib-tool (func_emit_initmacro_done): Indentation.
50791
50792 2007-09-29  Bruno Haible  <bruno@clisp.org>
50793
50794         * README: Add CVS checkout update instructions.
50795         Info from Bob Proulx <bob@proulx.com>.
50796
50797 2007-09-28  Eric Blake  <ebb9@byu.net>
50798
50799         Provide move-if-change.
50800         * build-aux/move-if-change: New file, based on best practice
50801         rather than any canonical upstream location.
50802
50803 2007-09-28  Jim Meyering  <jim@meyering.net>
50804
50805         Fix canonicalize loop-detection corner case.
50806         Do not attempt to stat the symlink values stored via seen_triple.
50807         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
50808         on linux-2.6.18, (but not 2.6.22).
50809         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
50810         triple_compare.  The former compares dev,ino,filename, while the latter
50811         would actually stat dirname(filename) when dev and ino were equal.
50812         * lib/hash-triple.c: Install <string.h>.
50813         (STREQ): Define.
50814         (triple_compare_ino_str): New function.
50815         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
50816
50817 2007-09-28  Eric Blake  <ebb9@byu.net>
50818
50819         Enforce that AC_REPLACE_FUNCS files exist.
50820         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
50821         override check for typos.
50822
50823         Fix test-closein on Solaris 10.
50824         * tests/test-closein.c (main): Don't assume stdin can be inherited
50825         closed on all systems.
50826         * tests/test-closein.sh: Likewise.
50827         Reported by Piotr Tarnowski.
50828
50829 2007-09-28  Jim Meyering  <jim@meyering.net>
50830
50831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
50832
50833 2007-09-27  Jim Meyering  <jim@meyering.net>
50834
50835         canonicalize: Avoid a false-positive cycle failure.
50836         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
50837         Sort.  Remove cycle-check.
50838         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
50839         not cycle-check.h.
50840         (seen_triple): New function.
50841         (canonicalize_filename_mode): Use it instead of cycle-check.
50842         * tests/test-canonicalize.c: Add a test for this bug.
50843         * tests/test-canonicalize.sh: Set up and run the test.
50844
50845         New module, file-set, from coreutils.
50846         * modules/file-set: Define it.
50847         * lib/file-set.c, lib/file-set.h: Implement.
50848
50849         New module, hash-triple, from coreutils.
50850         * modules/hash-triple: Define it.
50851         * lib/hash-triple.c, lib/hash-triple.h: Implement.
50852
50853 2007-09-25  Eric Blake  <ebb9@byu.net>
50854
50855         Fix strerror on Interix.
50856         * lib/string_.h (strerror): Declare replacement.
50857         * doc/functions/strerror.texi (strerror): Document the Interix
50858         shortcoming.
50859         * modules/string (Makefile.am): Support new hooks.
50860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
50861         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
50862         gl_FUNC_STRERROR_SEPARATE.
50863         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
50864         * lib/strerror.c (rpl_strerror): Provide replacement.
50865         * modules/strerror (Depends-on): Add string.
50866         (configure.ac): Detect use of module.
50867         * tests/test-strerror.c: New file.
50868         * modules/strerror-tests: New test module.
50869         * modules/argp (Depends-on): Add strerror.
50870         * modules/error (Depends-on): Likewise.
50871         Reported by Martin Koeppe.
50872
50873 2007-09-24  Bruno Haible  <bruno@clisp.org>
50874
50875         * README: Update git instructions.
50876
50877 2007-09-24  Eric Blake  <ebb9@byu.net>
50878
50879         Revert fpending breakage from 2007-09-08.
50880         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
50881         __fpending.c.
50882
50883 2007-09-24  Jim Meyering  <jim@meyering.net>
50884
50885         filenamecat.c: Add a test.
50886         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
50887         showing how the function works when DIR is the empty string.
50888
50889 2007-09-21  Simon Josefsson  <simon@josefsson.org>
50890
50891         * tests/test-canonicalize.sh: Turn on executable bit.
50892
50893 2007-09-19  Eric Blake  <ebb9@byu.net>
50894
50895         * README: Update CVS instructions.
50896
50897 2007-09-18  Bruno Haible  <bruno@clisp.org>
50898
50899         * modules/areadlink: New file.
50900         * lib/areadlink.h (areadlink): New declaration.
50901         * lib/areadlink.c: New file, based on lib/xreadlink.c.
50902
50903 2007-09-17  Jim Meyering  <jim@meyering.net>
50904
50905         * lib/savewd.c (ESTALE) [!defined]: Define.
50906         Reported to be required on Interix by Martin Koeppe.
50907
50908 2007-09-17  Bruno Haible  <bruno@clisp.org>
50909
50910         * gnulib-tool (func_version): Use $version.
50911
50912 2007-09-16  Bruno Haible  <bruno@clisp.org>
50913
50914         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
50915         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
50916         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
50917         Reported by Greg Schafer <gschafer@zip.com.au>.
50918
50919 2007-09-15  Bruno Haible  <bruno@clisp.org>
50920
50921         * gnulib-tool (sed): Try a little harder to make bash understand the
50922         alias.
50923         Reported by Bruce Korb <bruce.korb@gmail.com>.
50924
50925 2007-09-13  Eric Blake  <ebb9@byu.net>
50926
50927         * ChangeLog: Remove conflict markers.
50928
50929 2007-09-13  Simon Josefsson  <simon@josefsson.org>
50930
50931         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
50932         Reported by Bruno Haible <bruno@clisp.org>.
50933
50934 2007-09-12  Bruno Haible  <bruno@clisp.org>
50935
50936         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
50937         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
50938         is not defined.
50939
50940 2007-09-12  Eric Blake  <ebb9@byu.net>
50941
50942         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
50943         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
50944         Autoconf definition.
50945         * modules/euidaccess (Depends-on): Add extensions, for
50946         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
50947         * modules/fnmatch (Depends-on): Likewise.
50948         * modules/getaddrinfo (Depends-on): Likewise.
50949         * modules/getdelim (Depends-on): Likewise.
50950         * modules/getline (Depends-on): Likewise.
50951         * modules/getsubopt (Depends-on): Likewise.
50952         * modules/gettext (Depends-on): Likewise.
50953         * modules/group-member (Depends-on): Likewise.
50954         * modules/mbchar (Depends-on): Likewise.
50955         * modules/memmem (Depends-on): Likewise.
50956         * modules/mempcpy (Depends-on): Likewise.
50957         * modules/memrchr (Depends-on): Likewise.
50958         * modules/pagealign_alloc (Depends-on): Likewise.
50959         * modules/readutmp (Depends-on): Likewise.
50960         * modules/stpcpy (Depends-on): Likewise.
50961         * modules/stpncpy (Depends-on): Likewise.
50962         * modules/strchrnul (Depends-on): Likewise.
50963         * modules/strndup (Depends-on): Likewise.
50964         * modules/strsep (Depends-on): Likewise.
50965         * modules/strverscmp (Depends-on): Likewise.
50966         * modules/vasprintf (Depends-on): Likewise.
50967         * modules/wcwidth (Depends-on): Likewise.
50968         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
50969         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
50970         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
50971         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
50972         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50973         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50974         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
50975         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50976         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
50977         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
50978         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50979         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
50980         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
50981         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
50982         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
50983         * m4/readutmp.m4 (gl_READUTMP): Likewise.
50984         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50985         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50987         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50988         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50989         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50990         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50991         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
50992         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
50993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50994         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
50995         so that lock.m4 can be used in gettext without extensions module.
50996
50997 2007-09-11  Bruno Haible  <bruno@clisp.org>
50998
50999         * m4/isc-posix.m4: Remove file.
51000         Suggested by Eric Blake.
51001
51002 2007-09-11  Eric Blake  <ebb9@byu.net>
51003
51004         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51005
51006 2007-09-10  Bruno Haible  <bruno@clisp.org>
51007
51008         * posix-modules: Fix typo in error message.
51009         Reported by Matt <mkraai@beckman.com>.
51010
51011 2007-09-09  Bruno Haible  <bruno@clisp.org>
51012
51013         * doc/functions/getdelim.texi: Update list of platforms lacking the
51014         function.
51015         * doc/functions/getline.texi: Likewise.
51016
51017 2007-09-09  Jim Meyering  <jim@meyering.net>
51018
51019         * lib/hash.c (hash_initialize): Detect calloc failure.
51020         Reported by Bruno Haible.
51021
51022 2007-09-09  Bruno Haible  <bruno@clisp.org>
51023
51024         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51025         malloc or realloc fails.
51026
51027 2007-09-09  Bruno Haible  <bruno@clisp.org>
51028
51029         * modules/getcwd (Depends-on): Add malloc-posix.
51030         * modules/glob (Depends-on): Likewise.
51031         * modules/putenv (Depends-on): Likewise.
51032         * modules/strdup (Depends-on): Likewise.
51033         * modules/getdelim (Depends-on): Add realloc-posix.
51034         * modules/read-file (Depends-on): Likewise.
51035
51036 2007-09-09  Bruno Haible  <bruno@clisp.org>
51037
51038         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51039         (gl_FUNC_MALLOC_POSIX): Require it.
51040         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51041         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51042         * modules/realloc (Files): Add m4/malloc.m4.
51043         * modules/calloc (Files): Likewise.
51044
51045 2007-09-09  Bruno Haible  <bruno@clisp.org>
51046
51047         * modules/malloc-posix: New file.
51048         * modules/malloc (Depends-on): Add malloc-posix.
51049         * lib/malloc.c: Include errno.h.
51050         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51051         and a POSIX-compatible malloc into a single function. Set ENOMEM
51052         when returning NULL.
51053         * m4/malloc.m4: New file.
51054         * doc/functions/malloc.texi: Mention the malloc-posix module.
51055         * lib/stdlib_.h (malloc): New declaration.
51056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51057         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51058         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51059         and HAVE_MALLOC_POSIX.
51060
51061 2007-09-09  Bruno Haible  <bruno@clisp.org>
51062
51063         * modules/realloc-posix: New file.
51064         * modules/realloc (Depends-on): Add realloc-posix.
51065         * lib/realloc.c: Include errno.h.
51066         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51067         and a POSIX-compatible realloc into a single function. Set ENOMEM
51068         when returning NULL.
51069         * m4/realloc.m4: New file.
51070         * doc/functions/realloc.texi: Mention the realloc-posix module.
51071         * lib/stdlib_.h (realloc): New declaration.
51072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51073         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51074         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51075         and HAVE_REALLOC_POSIX.
51076
51077 2007-09-09  Bruno Haible  <bruno@clisp.org>
51078
51079         * modules/calloc-posix: New file.
51080         * modules/calloc (Depends-on): Add calloc-posix.
51081         * lib/calloc.c: Include errno.h.
51082         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51083         and a POSIX-compatible calloc into a single function. Set ENOMEM
51084         when returning NULL.
51085         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51086         * doc/functions/calloc.texi: Mention the calloc-posix module.
51087         * lib/stdlib_.h (calloc): New declaration.
51088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51089         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51090         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51091         and HAVE_CALLOC_POSIX.
51092
51093 2007-09-09  Bruno Haible  <bruno@clisp.org>
51094
51095         Allow for modules to show an arbitrary notice.
51096         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51097         * gnulib-tool: New option --extract-notice.
51098         (func_usage): Document it.
51099         (sed_extract_prog): Update.
51100         (func_get_notice): New function.
51101         (func_modules_notice): New function.
51102         (func_import, func_create_testdir): Invoke it.
51103         Suggested by Jim Meyering.
51104
51105 2007-09-09  Bruno Haible  <bruno@clisp.org>
51106
51107         * gnulib-tool: New options --verbose, --quiet.
51108         (func_usage): Document them.
51109         (verbose): New variable.
51110         (func_execute_command): New function.
51111         (func_import): Don't show the module list and the file list if
51112         $verbose < 0.
51113         (func_create_testdir): Likewise. Use func_execute_command.
51114         (func_create_megatestdir): Use func_execute_command.
51115
51116 2007-09-08  Bruno Haible  <bruno@clisp.org>
51117
51118         * gnulib-tool (func_import): Prefer rsync over wget when available,
51119         for fetching the PO files.
51120
51121 2007-09-08  Bruno Haible  <bruno@clisp.org>
51122
51123         * posix-modules: New file. Portions copied from gnulib-tool.
51124         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51125
51126 2007-09-08  Jim Meyering  <jim@meyering.net>
51127
51128         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51129         * lib/fpending.h: Rename from __fpending.h.
51130         * lib/fpending.c: Rename from __fpending.c.
51131         Include "fpending.h", not "__fpending.h".
51132         * lib/__fpending.h, lib/__fpending.c: Remove files.
51133         * modules/fpending (Files): Reflect new file names.
51134         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51135
51136 2007-09-08  Bruno Haible  <bruno@clisp.org>
51137
51138         * m4/inttypes-h.m4: Remove stub file.
51139
51140 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51141
51142         * doc/headers/stdint.texi: Discuss #include_next issue.
51143
51144 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51147
51148 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51149
51150         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51151         in variable name.
51152
51153 2007-09-03  Jim Meyering  <jim@meyering.net>
51154
51155         New module: git-version-gen.
51156         * modules/git-version-gen: New file.
51157
51158         Import changes from coreutils for bootstrap script.
51159
51160         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51161
51162         bootstrap: uses rsync to download the .po files
51163         * build-aux/bootstrap (po_download_command_format): New global.
51164         (download_po_files): Use rsync.
51165         (update_po_files): Don't remove .po files after download,
51166         so future rsync runs can take advantage of the copies.
51167
51168         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51169
51170         Solve the unnecessary-.po-file-regeneration problem once and for all.
51171         * build-aux/bootstrap (download_po_files): New function, renamed from
51172         get_translations.  Now, downloads, but doesn't update LINGUAS.
51173         (update_po_files): New function.
51174
51175         bootstrap: Ignore more.
51176         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51177         uniwidth to e.g., lib/.gitignore.
51178         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51179
51180         * build-aux/bootstrap: New setting: vc_ignore.
51181         (insert_sorted_if_absent): Create $file if absent.
51182         Adapt to new, possibly empty, list: $vc_ignore.
51183
51184         bootstrap: generate more ignorable names
51185         * build-aux/bootstrap (slurp): When generating ignorable names,
51186         also map .sin to .sed, .gperf to .c, and .y to .c.
51187
51188 2007-09-03  Jim Meyering  <jim@meyering.net>
51189
51190         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51191         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51192
51193 2007-09-02  Bruno Haible  <bruno@clisp.org>
51194
51195         Fix mis-recognition of 'mcs' on QNX 6.
51196         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51197         output contains the string "Mono".
51198         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51199         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51200
51201 2007-09-01  Bruno Haible  <bruno@clisp.org>
51202
51203         Fix collision between uniwidth/* and linebreak modules.
51204         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51205         u32_width): Remove declarations.
51206         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51207         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51208         streq3, streq2, streq1, streq0): Remove functions.
51209         (STREQ): Remove macro.
51210         (is_cjk_encoding): Remove function.
51211         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51212         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51213         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51214         * NEWS: Document the change.
51215
51216 2007-09-01  Bruno Haible  <bruno@clisp.org>
51217
51218         * lib/streq.h: Add double-inclusion guard.
51219
51220 2007-09-01  Karl Berry  <karl@gnu.org>
51221
51222         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51223
51224 2007-08-28  Jim Meyering  <jim@meyering.net>
51225
51226         Rename mreadlink_with_size to areadlink_with_size.
51227         * NEWS: Document the change.
51228         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51229         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51230         * lib/mreadlink.h: Rename this to...
51231         * lib/areadlink.h: ...this.
51232         * modules/mreadlink-with-size: Rename this to...
51233         * modules/areadlink-with-size: ...this.
51234         * lib/canonicalize.c: Reflect the renaming.
51235         * modules/canonicalize: Likewise.
51236
51237 2007-08-26  Bruno Haible  <bruno@clisp.org>
51238
51239         * gnulib-tool (func_import): When deciding which files to remove,
51240         consider also dangling symbolic links.
51241         Reported by Eric Blake.
51242
51243 2007-08-26  Bruno Haible  <bruno@clisp.org>
51244
51245         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51246
51247 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51248
51249         * lib/readline.c: Don't include getline.h, the prototype is now
51250         found in stdio.h.
51251
51252 2007-08-23  Jim Meyering  <jim@meyering.net>
51253
51254         Getdelim touchup.
51255         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51256         around the funlockfile call, since funlockfile never sets errno.
51257         Don't set errno upon failed realloc.
51258
51259 2007-08-22  Eric Blake  <ebb9@byu.net>
51260
51261         Getline touchups.
51262         * lib/getdelim.c (getdelim): Revert regression that required *n to
51263         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51264         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51265         getdelim, rather than whether implementation is missing.
51266         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51267         * lib/stdio_.h (getline): Also declare if replacement is
51268         required.
51269         * doc/functions/getdelim.texi: New file.
51270         * doc/functions/getline.texi: Likewise.
51271         * doc/gnulib.texi (Function Substitutes): Add new files.
51272         Reported by Bruno Haible.
51273
51274 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51275
51276         * users.txt: Add Guile.
51277
51278 2007-08-22  Eric Blake  <ebb9@byu.net>
51279
51280         * tests/test-getdelim.c (main): Use remove, not unlink.
51281         * tests/test-getline.c (main): Likewise.
51282
51283         Move getline and getdelim into stdio.h, per POSIX 200x.
51284         * modules/getline (Files): Remove getline.h.
51285         (Depends-on): Add stdio.
51286         (configure.ac): Add module indicator.
51287         * modules/getdelim (Files): Remove getdelim.h.
51288         (Depends-on): Add stdio.
51289         (configure.ac): Add module indicator.
51290         * modules/stdio (Makefile.am): Work with new indicators.
51291         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51292         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51293         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51294         * lib/getdelim.h: Delete.
51295         * lib/getline.h: Delete.
51296         * lib/stdio_.h (getdelim, getline): Declare.
51297         * modules/getdelim-tests: New module.
51298         * modules/getline-tests: Likewise.
51299         * tests/test-getdelim.c: New file.
51300         * tests/test-getline.c: Likewise.
51301         * NEWS: Document the change.
51302         * lib/getline.c: Update choice of header.
51303         * lib/csharpcomp.c: Likewise.
51304         * lib/getpass.c: Likewise.
51305         * lib/javacomp.c: Likewise.
51306         * lib/javaversion.c: Likewise.
51307         * lib/yesno.c: Likewise.
51308         * lib/getdelim.c: Likewise.
51309         (getdelim): Set errno on failure, and avoid memory leak.
51310
51311 2007-08-19  Bruno Haible  <bruno@clisp.org>
51312
51313         * modules/closein (Depends-on): Add freadahead.
51314         * lib/closein.c: Include freadahead.h.
51315         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51316         is zero.
51317
51318 2007-08-19  Bruno Haible  <bruno@clisp.org>
51319
51320         * modules/freadahead-tests: New file.
51321         * tests/test-freadahead.sh: New file.
51322         * tests/test-freadahead.c: New file.
51323
51324         * modules/freadahead: New file.
51325         * lib/freadahead.h: New file.
51326         * lib/freadahead.c: New file.
51327         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51328         fbufmode, fpurge, freadable, fwritable.
51329
51330 2007-08-19  Eric Blake  <ebb9@byu.net>
51331
51332         Test yesno in combination with closein.
51333         * lib/yesno.c (yesno): Document use of stdin.
51334         * modules/yesno-tests (Files): New module.
51335         * tests/test-yesno.c (main): New file.
51336         * tests/test-yesno.sh: Likewise.
51337
51338 2007-08-19  Bruno Haible  <bruno@clisp.org>
51339
51340         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51341         * lib/fseeko.c (rpl_fseeko): Likewise.
51342         * lib/fseterr.c (fseterr): Likewise.
51343
51344 2007-08-19  Bruno Haible  <bruno@clisp.org>
51345
51346         * tests/test-lseek.c (main): Disable a test for BeOS.
51347         * doc/functions/lseek.texi: Document the BeOS bug.
51348
51349 2007-08-19  Bruno Haible  <bruno@clisp.org>
51350             Eric Blake  <ebb9@byu.net>
51351
51352         * lib/lseek.c: Include <sys/stat.h>.
51353         (rpl_lseek): Add workaround code also for Unix platforms.
51354         Needed for BeOS.
51355         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51356         * doc/functions/lseek.texi: Document BeOS definiency.
51357
51358 2007-08-18  Bruno Haible  <bruno@clisp.org>
51359
51360         * modules/fstrcmp-tests: New file.
51361         * tests/test-fstrcmp.c: New file.
51362
51363 2007-08-18  Bruno Haible  <bruno@clisp.org>
51364
51365         * modules/fstrcmp: New file, from GNU gettext with modifications.
51366         * lib/fstrcmp.h: New file, from GNU gettext.
51367         * lib/fstrcmp.c: New file, from GNU gettext.
51368         * MODULES.html.sh (String handling): Add fstrcmp.
51369
51370 2007-08-18  Bruno Haible  <bruno@clisp.org>
51371
51372         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51373         'bool'.
51374         (diag, compareseq): Remove const from the ctxt argument.
51375         (USE_HEURISTIC): Undefine at the end.
51376
51377 2007-08-18  Jim Meyering  <jim@meyering.net>
51378
51379         New file: lib/idcache.h
51380         * NEWS: Mention the addition.
51381         * modules/idcache (Files): Add lib/idcache.h
51382         * lib/idcache.c: Include "idcache.h".
51383         Don't include <sys/types.h>.
51384         Add a FIXME comment.
51385         Move file-scoped "static" declarations to the top.
51386         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51387
51388 2007-08-17  Bruno Haible  <bruno@clisp.org>
51389         and Paul Eggert  <eggert@cs.ucla.edu>
51390
51391         * MODULES.html.sh: Add diffseq.
51392         * modules/diffseq: New file.
51393         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51394         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51395
51396 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51397
51398         Import changes from coreutils for bootstrap script.
51399
51400         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51401
51402         * build-aux/bootstrap (slurp): Work even in environments where
51403         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51404         current code does not slurp files whose names start with ".", and
51405         this looks like it might be a troublesome area.
51406
51407         2007-07-11  Jim Meyering  <jim@meyering.net>
51408
51409         If there's a GPL vN copyright comment, require that N == 3.
51410
51411         2007-07-08  Jim Meyering  <jim@meyering.net>
51412
51413         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51414         * build-aux/bootstrap (mam_template): Move definition out of loop.
51415
51416         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51417
51418         * build-aux/bootstrap (symlink_to_dir): Rename function from
51419         symlink_to_gnulib.  Add a directory parameter.  Update all
51420         callers.
51421         (cp_mark_as_generated): Also check for -- and link to -- files in
51422         gl/.
51423
51424         2007-07-08  Jim Meyering  <jim@meyering.net>
51425
51426         Adapt to deeper hierarchy in gnulib.
51427         * build-aux/bootstrap (symlink_to_dir): If the destination
51428         directory doesn't exist, create it. This is required at least for
51429         "lib/uniwidth/cjk.h".
51430
51431         2007-05-15  Jim Meyering  <jim@meyering.net>
51432
51433         * build-aux/bootstrap: Now that generated Makefile.am files
51434         are no longer under version control, they must be created at
51435         bootstrap time.
51436
51437 2007-08-14  Ben Pfaff  <blp@gnu.org>
51438
51439         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51440
51441 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51442
51443         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51444         given the changes below.
51445         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51446         even on hosts that have padding bits beyond the supported 64.
51447
51448 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51449
51450         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51451         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51452         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
51453         depends on it.
51454         (xstrtol_error): Remove.
51455         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
51456         but with a different signature.
51457         (ATTRIBUTE_NORETURN, __attribute__): New macros.
51458         * lib/xstrtol-error.c: Include exitfail.h.
51459         (xstrtol_fatal): New function, with a different signature from the
51460         old xstrtol_error, so that the caller need not worry about passing
51461         in an exit status, or about storage management of the option argument.
51462         (xstrtol_error): Now a static function.  Redo signature to
51463         implement xstrtol_fatal.  Output the correct number of hyphens in
51464         front of the option so that the caller need not worry about
51465         storage management.
51466         (N_): New macro.
51467         (_): Remove; not used now.
51468         * modules/xstrtol: Depend on getopt.
51469         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
51470         of old STRTOL_FATAL_ERROR macro.
51471         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51472         of test program.
51473         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51474         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51475
51476 2007-08-08  Eric Blake  <ebb9@byu.net>
51477
51478         * lib/xstrtol-error.c: Add missing include.
51479
51480         Move xstrtol messages into gnulib domain, when --pobase is used.
51481         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51482         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51483         * modules/xstrtol (Files): Distribute new file.
51484         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51485         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51486         * tests/test-xstrtol.c: ...into new file.
51487         * tests/test-xstrtoul.c: Also test xstrtoul.
51488         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51489         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51490         * tests/test-xstrtol.sh: Drive the tests.
51491         * tests/test-xstrtoimax.sh: Likewise.
51492         * tests/test-xstrtoumax.sh: Likewise.
51493         * modules/xstrtol-tests: New module.
51494         * modules/xstrtoimax-tests: Likewise.
51495         * modules/xstrtoumax-tests: Likewise.
51496
51497 2007-08-08  Jim Meyering  <jim@meyering.net>
51498
51499         New function: mfile_name_concat.
51500         * lib/filenamecat.c (mfile_name_concat): New function, just like
51501         file_name_concat, but return NULL upon failure rather than exiting
51502         with a diagnostic.
51503         * lib/filenamecat.h: Declare it.
51504
51505 2007-08-07  Bruno Haible  <bruno@clisp.org>
51506
51507         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51508         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51509         warning from gcc.
51510         Reported by Eric Blake.
51511
51512 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51513
51514         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51515         * modules/crypto/arcfour (License): Likewise.
51516         * modules/crypto/des-tests (License): Likewise.
51517         * modules/crypto/gc-arctwo-tests (License): Likewise.
51518         * modules/crypto/gc-des-tests (License): Likewise.
51519         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51520         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51521         * modules/crypto/gc-md2-tests (License): Likewise.
51522         * modules/crypto/gc-md4-tests (License): Likewise.
51523         * modules/crypto/gc-md5-tests (License): Likewise.
51524         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51525         * modules/crypto/gc-rijndael-tests (License): Likewise.
51526         * modules/crypto/gc-sha1-tests (License): Likewise.
51527         * modules/crypto/gc-tests (License): Likewise.
51528         * modules/crypto/hmac-md5 (License): Likewise.
51529         * modules/crypto/hmac-sha1 (License): Likewise.
51530         * modules/crypto/md2-tests (License): Likewise.
51531         * modules/crypto/md4-tests (License): Likewise.
51532         * modules/crypto/md5 (License): Likewise.
51533         * modules/crypto/rijndael (License): Likewise.
51534         * modules/crypto/sha1 (License): Likewise.
51535         * modules/memxor (License): Likewise.
51536
51537 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51538         and Bruno Haible  <bruno@clisp.org>
51539
51540         * NEWS: Describe interface changes to human, xstrtol.
51541         * lib/human.h: Include <xstrtol.h>.
51542         (human_options): Return enum strtol_error, not int.  Remove
51543         bool arg; take int * instead.
51544         * lib/human.c: Don't include "gettext.h".
51545         (_): Remove; no longer used.
51546         Don't include <xstrtol.h>, since human.h does it.
51547         (human_options): Adjust to abovementioned interface changes.
51548         Do not report error to stderr; that's now the caller's
51549         responsibility.
51550         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
51551         interface change.
51552         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
51553         Str, Argument_type_string.  All uses changed.  Put " argument"
51554         in diagnostics to make them clearer.  Change wording of suffix
51555         message for clarity.
51556         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
51557         Argument_type_string.
51558         (STRTOL_FATAL_WARN): Remove; no longer used.
51559         * modules/human (Depends-on): Remove gettext-h.
51560
51561 2007-08-06  Simon Josefsson  <simon@josefsson.org>
51562
51563         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
51564
51565 2007-07-31  Bruno Haible  <bruno@clisp.org>
51566
51567         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
51568         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
51569         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
51570
51571 2007-07-31  Bruno Haible  <bruno@clisp.org>
51572
51573         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
51574         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
51575
51576 2007-07-30  Bruno Haible  <bruno@clisp.org>
51577
51578         * modules/base64 (License): Use the synonymous term "LGPLv2+".
51579         * modules/c-ctype (License): Likewise.
51580         * modules/c-strcase (License): Likewise.
51581         * modules/check-version (License): Likewise.
51582         * modules/iconv (License): Likewise.
51583         * modules/iconv_open (License): Likewise.
51584         * modules/read-file (License): Likewise.
51585         * modules/striconv (License): Likewise.
51586         * modules/strverscmp (License): Likewise.
51587         * modules/vasprintf (License): Likewise.
51588         * modules/crypto/des (License): Likewise.
51589         * modules/crypto/gc (License): Likewise.
51590         * modules/crypto/gc-arcfour (License): Likewise.
51591         * modules/crypto/gc-arctwo (License): Likewise.
51592         * modules/crypto/gc-des (License): Likewise.
51593         * modules/crypto/gc-hmac-md5 (License): Likewise.
51594         * modules/crypto/gc-hmac-sha1 (License): Likewise.
51595         * modules/crypto/gc-md2 (License): Likewise.
51596         * modules/crypto/gc-md4 (License): Likewise.
51597         * modules/crypto/gc-md5 (License): Likewise.
51598         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
51599         * modules/crypto/gc-random (License): Likewise.
51600         * modules/crypto/gc-rijndael (License): Likewise.
51601         * modules/crypto/gc-sha1 (License): Likewise.
51602         * modules/crypto/md2 (License): Likewise.
51603         * modules/crypto/md4 (License): Likewise.
51604
51605 2007-07-30  Jim Meyering  <jim@meyering.net>
51606
51607         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
51608         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
51609         it has valid stat data.  This bug would cause du not to count the
51610         sizes of inaccessible directories.
51611         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
51612         in <http://bugzilla.redhat.com/250077>.
51613
51614 2007-07-25  Peter O'Gorman  <peter@pogma.com>
51615             Bruno Haible  <bruno@clisp.org>
51616
51617         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
51618         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
51619         #include_next, gives a diagnostic about it, but reports no error in
51620         the exit code.
51621         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51622
51623 2007-07-24  Ben Pfaff  <blp@gnu.org>
51624
51625         Improve name: "count-one-bits" is better than "popcount".
51626         * MODULES.html.sh: Update name.
51627         * lib/popcount.h: Renamed lib/count-one-bits.h.
51628         (popcount): Renamed count_one_bits.
51629         (popcountl): Renamed count_one_bits_l.
51630         (popcountll): Renamed count_one_bits_ll.
51631         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
51632         * modules/popcount: Renamed module/count-one-bits.
51633         * modules/popcount-tests: Renamed module/count-one-bits-tests.
51634         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
51635
51636 2007-07-23  Ben Pfaff  <blp@gnu.org>
51637
51638         * lib/popcount.h (popcount32): Reduce size of constants, to allow
51639         better code generation, and add U to large constants to avoid
51640         warnings, in non-GCC case.
51641         Suggested by Bruno Haible.
51642
51643 2007-07-23  Ben Pfaff  <blp@gnu.org>
51644
51645         * lib/popcount.h: Use verify_true instead of if...abort.
51646         * modules/popcount: Depend on verify module.
51647         Suggested by Jim Meyering.
51648
51649 2007-07-23  Bruno Haible  <bruno@clisp.org>
51650
51651         * gnulib-tool (func_import): Create a .cvsignore file also when the
51652         directory is not yet in CVS but the toplevel directory is. When
51653         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
51654         Reported by Karl Berry.
51655
51656 2007-07-22  Ben Pfaff  <blp@gnu.org>
51657
51658         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
51659         case.
51660         Suggested by Eric Blake.
51661
51662 2007-07-22  Ben Pfaff  <blp@gnu.org>
51663
51664         New module: popcount.
51665         * MODULES.html.sh: Add popcount.
51666         * modules/popcount: New file.
51667         * modules/popcount-tests: New file.
51668         * tests/test-popcount.c: New file.
51669         * lib/popcount.h: New file.
51670         * m4/popcount.m4: New file.
51671
51672 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51673
51674         * build-aux/announce-gen: Update to GPLv3.
51675
51676         * build-aux/config.guess: Update from config.
51677
51678 2007-07-21  Bruno Haible  <bruno@clisp.org>
51679
51680         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
51681         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
51682
51683 2007-07-20  Jim Meyering  <jim@meyering.net>
51684
51685         * check-module: Diagnose a self-dependency.
51686
51687 2007-07-19  Bruno Haible  <bruno@clisp.org>
51688
51689         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
51690         empty.
51691         Reported by Eric Blake.
51692
51693 2007-07-18  Bruno Haible  <bruno@clisp.org>
51694
51695         * gnulib-tool: New options --po-base, --po-domain.
51696         (func_usage): Document them.
51697         (pobase, po_domain): New variables.
51698         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
51699         DEFAULT_TEXT_DOMAIN.
51700         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
51701         (func_import): Consider pobase and po_domain. Create a po/ directory.
51702         (func_create_testdir): Set pobase and po_domain to empty.
51703         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
51704         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
51705
51706 2007-07-18  Bruno Haible  <bruno@clisp.org>
51707
51708         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51709         EXTRA_DIST augmentation for files in build-aux/.
51710
51711 2007-07-16  Bruno Haible  <bruno@clisp.org>
51712
51713         * modules/lseek (License): Use the synonymous term "LGPLv2+".
51714         * modules/getdelim (License): Likewise.
51715
51716 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51717
51718         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
51719         * modules/d-type (License): Likewise.
51720         * modules/extensions (License): Likewise.
51721         * modules/fnmatch (License): Likewise.
51722         * modules/fseeko (License): Likewise.
51723         * modules/getaddrinfo (License): Likewise.
51724         * modules/getline (License): Likewise.
51725         * modules/getlogin_r (License): Likewise.
51726         * modules/getpass (License): Likewise.
51727         * modules/gettimeofday (License): Likewise.
51728         * modules/glob (License): Likewise.
51729         * modules/inet_ntop (License): Likewise.
51730         * modules/malloc (License): Likewise.
51731         * modules/malloca (License): Likewise.
51732         * modules/memmem (License): Likewise.
51733         * modules/mempcpy (License): Likewise.
51734         * modules/memset (License): Likewise.
51735         * modules/minmax (License): Likewise.
51736         * modules/mktime (License): Likewise.
51737         * modules/netinet_in (License): Likewise.
51738         * modules/pathmax (License): Likewise.
51739         * modules/poll (License): Likewise.
51740         * modules/regex (License): Likewise.
51741         * modules/snprintf (License): Likewise.
51742         * modules/stdbool (License): Likewise.
51743         * modules/stdint (License): Likewise.
51744         * modules/stdio (License): Likewise.
51745         * modules/strcase (License): Likewise.
51746         * modules/strcasestr (License): Likewise.
51747         * modules/strdup (License): Likewise.
51748         * modules/string (License): Likewise.
51749         * modules/strndup (License): Likewise.
51750         * modules/strnlen (License): Likewise.
51751         * modules/strpbrk (License): Likewise.
51752         * modules/strptime (License): Likewise.
51753         * modules/strsep (License): Likewise.
51754         * modules/sys_select (License): Likewise.
51755         * modules/sys_socket (License): Likewise.
51756         * modules/sys_stat (License): Likewise.
51757         * modules/sys_time (License): Likewise.
51758         * modules/time (License): Likewise.
51759         * modules/time_r (License): Likewise.
51760         * modules/timegm (License): Likewise.
51761         * modules/unistd (License): Likewise.
51762         * modules/vsnprintf (License): Likewise.
51763         * modules/wctype (License): Likewise.
51764
51765 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51766
51767         * modules/argz (License): LGPLv2+.
51768
51769 2007-07-15  Karl Berry  <karl@gnu.org>
51770
51771         * doc/gnulib.texi: revise node structure per new fdl.texi.
51772
51773 2007-07-14  Bruno Haible  <bruno@clisp.org>
51774
51775         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
51776         the output file.
51777         * lib/uniname/uninames.h: Regenerated.
51778
51779 2007-07-14  Karl Berry  <karl@gnu.org>
51780
51781         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
51782         omitting sectioning and index commands.
51783
51784 2007-07-13  Bruno Haible  <bruno@clisp.org>
51785
51786         New gnulib-tool option --more-symlinks.
51787         * gnulib-tool (func_usage): Document --more-symlinks.
51788         (do_copyrights): New variable.
51789         Recognize option --more-symlinks.
51790         (func_import): Don't add a copyright notice transform to
51791         sed_transform_lib_file if do_copyrights is empty.
51792
51793 2007-07-13  Bruno Haible  <bruno@clisp.org>
51794
51795         * lib/vasnprintf.c (decimal_point_char): Define also if
51796         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
51797         && !NEED_PRINTF_DIRECTIVE_A.
51798         Reported by Clemens Koller <clemens.koller@anagramm.de> via
51799         Gary V. Vaughan <gary@gnu.org>.
51800
51801 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
51802
51803         * lib/inttypes_.h: Undo previous change, since it was fixed
51804         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
51805
51806 2007-07-13  Bruno Haible  <bruno@clisp.org>
51807
51808         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
51809         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
51810
51811 2007-07-13  Jim Meyering  <jim@meyering.net>
51812
51813         df: Don't fail for Tru64's "file-on-file mount".
51814         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
51815         so we fall through and use statfs instead.  Details here:
51816         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
51817         Reported by Albert Chin.
51818
51819 2007-07-13  Bruno Haible  <bruno@clisp.org>
51820
51821         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
51822         * modules/configmake (License): Likewise.
51823         * modules/gettext (License): Likewise.
51824         * modules/gettext-h (License): Likewise.
51825         * modules/include_next (License): Likewise.
51826         * modules/link-warning (License): Likewise.
51827         * modules/localcharset (License): Likewise.
51828         * modules/localename (License): Likewise.
51829         * modules/lock (License): Likewise.
51830         * modules/relocatable-lib-lgpl (License): Likewise.
51831         * modules/size_max (License): Likewise.
51832         * modules/vasnprintf (License): Likewise.
51833         * modules/wchar (License): Likewise.
51834         * modules/xsize (License): Likewise.
51835
51836 2007-07-13  Bruno Haible  <bruno@clisp.org>
51837
51838         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
51839         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
51840
51841 2007-07-12  Bruno Haible  <bruno@clisp.org>
51842
51843         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
51844         in the modules files.
51845
51846 2007-07-11  Karl Berry  <karl@gnu.org>
51847
51848         * MODULES.html.sh (func_module): use
51849          sed -e '\|^'"${includefile}"'$|d'
51850          instead of /.../d, to avoid errors on $includefile's containing /.
51851
51852 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51853
51854         * gnulib-tool (func_import): Avoid duplication of --avoid
51855         statements
51856         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
51857         names to `_' in variable names.
51858
51859 2007-07-10  Eric Blake  <ebb9@byu.net>
51860
51861         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
51862         * NEWS: Document this change.
51863
51864 2007-07-08  Bruno Haible  <bruno@clisp.org>
51865
51866         Update to Unicode 5.0.
51867         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
51868         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
51869         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
51870         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
51871         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
51872         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
51873         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
51874         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
51875         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
51876         U+10A3F, U+1D242..U+1D244.
51877         (nonspacing_table_ind): Update.
51878         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
51879         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
51880
51881 2007-07-08  Bruno Haible  <bruno@clisp.org>
51882
51883         Update to Unicode 5.0.
51884         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
51885         code transform. Extend the name index field of unicode_name_to_code and
51886         unicode_code_to_name from 16 to 24 bits.
51887         * lib/uniname/uniname.c (unicode_character_name,
51888         unicode_name_character): Add the range 0x12xxx to the code transform.
51889         * lib/uniname/uninames.h: Regenerated.
51890         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
51891
51892 2007-07-07  Bruno Haible  <bruno@clisp.org>
51893
51894         * modules/wcwidth-tests: New file.
51895         * tests/test-wcwidth.c: New file.
51896
51897         Work around MacOS X wcwidth() bug.
51898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
51899         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
51900         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
51901         original wcwidth in non-UTF-8 locales.
51902         * modules/wcwidth (Depends-on): Add localcharset, streq,
51903         uniwidth/width.
51904         * doc/functions/wcwidth.texi: Update.
51905
51906 2007-07-07  Bruno Haible  <bruno@clisp.org>
51907
51908         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
51909         (wcwidth): New declaration.
51910         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
51911         macros.
51912         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
51913         here. Prepare for creating <wchar.h> unconditionally.
51914         * modules/wchar (Depends-on): Add link-warning.
51915         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
51916         REPLACE_WCWIDTH, and GL_LINK_WARNING.
51917         * lib/wcwidth.h: Remove file.
51918         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
51919         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
51920         * modules/wcwidth (Files): Remove lib/wcwidth.h.
51921         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
51922         (Include): Replace wcwidth.h with <wchar.h>.
51923         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
51924         * lib/mbchar.h: Don't include wcwidth.h.
51925         * lib/mbswidth.c: Likewise.
51926         * NEWS: Mention the change.
51927
51928 2007-07-07  Bruno Haible  <bruno@clisp.org>
51929
51930         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
51931         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
51932         definition with an external declaration.
51933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
51934         defined as a function. Remove AC_C_INLINE requirement.
51935         * modules/wcwidth (Files): Add lib/wcwidth.c.
51936         (Makefile.am): Remove redundant statement.
51937
51938 2007-07-07  Bruno Haible  <bruno@clisp.org>
51939
51940         * MODULES.html.sh (Unicode string functions): Add the new modules.
51941
51942         * tests/uniwidth/test-u32-strwidth.c: New file.
51943         * modules/uniwidth/u32-strwidth-tests: New file.
51944
51945         * lib/uniwidth/u32-strwidth.c: New file.
51946         * modules/uniwidth/u32-strwidth: New file.
51947
51948         * tests/uniwidth/test-u16-strwidth.c: New file.
51949         * modules/uniwidth/u16-strwidth-tests: New file.
51950
51951         * lib/uniwidth/u16-strwidth.c: New file.
51952         * modules/uniwidth/u16-strwidth: New file.
51953
51954         * tests/uniwidth/test-u8-strwidth.c: New file.
51955         * modules/uniwidth/u8-strwidth-tests: New file.
51956
51957         * lib/uniwidth/u8-strwidth.c: New file.
51958         * modules/uniwidth/u8-strwidth: New file.
51959
51960         * tests/uniwidth/test-u32-width.c: New file.
51961         * modules/uniwidth/u32-width-tests: New file.
51962
51963         * lib/uniwidth/u32-width.c: New file.
51964         * modules/uniwidth/u32-width: New file.
51965
51966         * tests/uniwidth/test-u16-width.c: New file.
51967         * modules/uniwidth/u16-width-tests: New file.
51968
51969         * lib/uniwidth/u16-width.c: New file.
51970         * modules/uniwidth/u16-width: New file.
51971
51972         * tests/uniwidth/test-u8-width.c: New file.
51973         * modules/uniwidth/u8-width-tests: New file.
51974
51975         * lib/uniwidth/u8-width.c: New file.
51976         * modules/uniwidth/u8-width: New file.
51977
51978         * tests/uniwidth/test-uc_width.c: New file.
51979         * modules/uniwidth/width-tests: New file.
51980
51981         * lib/uniwidth/width.c: New file, from GNU libiconv.
51982         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
51983         * modules/uniwidth/width: New file.
51984
51985         * lib/uniwidth.h: New file, from GNU libiconv.
51986         * modules/uniwidth/base: New file.
51987
51988 2007-07-07  Bruno Haible  <bruno@clisp.org>
51989
51990         * lib/uniname.h: New file, from GNU gettext.
51991         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
51992         * lib/uniname/uninames.h: New file, from GNU gettext.
51993         * lib/uniname/uniname.c: New file, from GNU gettext.
51994         * tests/uniname/test-uninames.sh: New file.
51995         * tests/uniname/test-uninames.c: New file, from GNU gettext.
51996         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
51997         * modules/uniname/base: New file.
51998         * modules/uniname/uniname: New file.
51999         * modules/uniname/uniname-tests: New file.
52000         * MODULES.html.sh (Unicode string functions): Add the new modules.
52001
52002 2007-07-06  Bruno Haible  <bruno@clisp.org>
52003
52004         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52005
52006 2007-07-06  Bruno Haible  <bruno@clisp.org>
52007
52008         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52009         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52010         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52011         include <sys/time.h>.
52012         Reported by Eric Blake.
52013
52014 2007-07-06  Eric Blake  <ebb9@byu.net>
52015
52016         Fix testing canonicalize on cygwin.
52017         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52018         Revert patch from 2007-06-19.
52019         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52020         canonicalize module is also in use.
52021         * tests/test-canonicalize.c: New file.
52022         * tests/test-canonicalize.sh: Likewise.
52023         * modules/canonicalize-tests: Likewise.
52024
52025 2007-07-06  Jim Meyering  <jim@meyering.net>
52026
52027         * lib/getugroups.c (getugroups): Detect getgrent failure.
52028         Adjust comment to reflect reality: this function may return -1.
52029
52030 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52031
52032         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52033         the new TP address.
52034         (usage): Fix typo
52035         (gnulib_mk): New variable.
52036
52037 2007-07-05  Jim Meyering  <jim@meyering.net>
52038
52039         Don't let endgrent clobber errno, no matter how improbable.
52040         * lib/getugroups.c (getugroups): Save and restore errno around
52041         endgrent call.
52042
52043         Close the group DB even when failing with 2^31 or more members.
52044         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52045
52046 2007-07-04  Jim Meyering  <jim@meyering.net>
52047
52048         * lib/getugroups.h: New file.
52049         * lib/getugroups.c: Include "getugroups.h".
52050         Remove uses of "register" keyword.
52051         Move local variable, "cp", down into scope where used.
52052         Give "username" parameter the "const" attribute.
52053         * modules/getugroups (Files): Add lib/getugroups.h
52054
52055 2007-07-04  Karl Berry  <karl@gnu.org>
52056
52057         * MODULES.html.sh (func_all_modules): Complete rename of
52058         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52059
52060 2007-07-02  Bruno Haible  <bruno@clisp.org>
52061
52062         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52063         mode, when inttypes.h comes from gnulib.
52064         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52065
52066 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52067
52068         * NEWS: Mention lgpl module name change.
52069
52070         * modules/lgpl-2.1: Renamed from lgpl.
52071
52072         * NEWS: Mention gpl module name change.
52073
52074         * modules/gpl-3.0: New file, based on gpl-2.0.
52075
52076         * modules/gpl-2.0: Renamed from gpl.
52077
52078         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52079         doc/gpl-2.0.texi.
52080
52081 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52082
52083         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52084         #define __STDC_LIMIT_MACROS temporarily while including
52085         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52086         Problem reported by Joel E. Denny in
52087         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52088
52089 2007-07-01  Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/unistdio.h: New file.
52092         * lib/unistdio/u-asnprintf.h: New file.
52093         * lib/unistdio/u-asprintf.h: New file.
52094         * lib/unistdio/u-printf-args.c: New file.
52095         * lib/unistdio/u-printf-args.h: New file.
52096         * lib/unistdio/u-printf-parse.h: New file.
52097         * lib/unistdio/u-snprintf.h: New file.
52098         * lib/unistdio/u-sprintf.h: New file.
52099         * lib/unistdio/u-vasprintf.h: New file.
52100         * lib/unistdio/u-vsnprintf.h: New file.
52101         * lib/unistdio/u-vsprintf.h: New file.
52102         * lib/unistdio/ulc-asnprintf.c: New file.
52103         * lib/unistdio/ulc-asprintf.c: New file.
52104         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52105         * lib/unistdio/ulc-printf-parse.c: New file.
52106         * lib/unistdio/ulc-snprintf.c: New file.
52107         * lib/unistdio/ulc-sprintf.c: New file.
52108         * lib/unistdio/ulc-vasnprintf.c: New file.
52109         * lib/unistdio/ulc-vasprintf.c: New file.
52110         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52111         * lib/unistdio/ulc-vsnprintf.c: New file.
52112         * lib/unistdio/ulc-vsprintf.c: New file.
52113         * lib/unistdio/u8-asnprintf.c: New file.
52114         * lib/unistdio/u8-asprintf.c: New file.
52115         * lib/unistdio/u8-printf-parse.c: New file.
52116         * lib/unistdio/u8-snprintf.c: New file.
52117         * lib/unistdio/u8-sprintf.c: New file.
52118         * lib/unistdio/u8-vasnprintf.c: New file.
52119         * lib/unistdio/u8-vasprintf.c: New file.
52120         * lib/unistdio/u8-vsnprintf.c: New file.
52121         * lib/unistdio/u8-vsprintf.c: New file.
52122         * lib/unistdio/u8-u8-asnprintf.c: New file.
52123         * lib/unistdio/u8-u8-asprintf.c: New file.
52124         * lib/unistdio/u8-u8-snprintf.c: New file.
52125         * lib/unistdio/u8-u8-sprintf.c: New file.
52126         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52127         * lib/unistdio/u8-u8-vasprintf.c: New file.
52128         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52129         * lib/unistdio/u8-u8-vsprintf.c: New file.
52130         * lib/unistdio/u16-asnprintf.c: New file.
52131         * lib/unistdio/u16-asprintf.c: New file.
52132         * lib/unistdio/u16-printf-parse.c: New file.
52133         * lib/unistdio/u16-snprintf.c: New file.
52134         * lib/unistdio/u16-sprintf.c: New file.
52135         * lib/unistdio/u16-vasnprintf.c: New file.
52136         * lib/unistdio/u16-vasprintf.c: New file.
52137         * lib/unistdio/u16-vsnprintf.c: New file.
52138         * lib/unistdio/u16-vsprintf.c: New file.
52139         * lib/unistdio/u16-u16-asnprintf.c: New file.
52140         * lib/unistdio/u16-u16-asprintf.c: New file.
52141         * lib/unistdio/u16-u16-snprintf.c: New file.
52142         * lib/unistdio/u16-u16-sprintf.c: New file.
52143         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52144         * lib/unistdio/u16-u16-vasprintf.c: New file.
52145         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52146         * lib/unistdio/u16-u16-vsprintf.c: New file.
52147         * lib/unistdio/u32-asnprintf.c: New file.
52148         * lib/unistdio/u32-asprintf.c: New file.
52149         * lib/unistdio/u32-printf-parse.c: New file.
52150         * lib/unistdio/u32-snprintf.c: New file.
52151         * lib/unistdio/u32-sprintf.c: New file.
52152         * lib/unistdio/u32-vasnprintf.c: New file.
52153         * lib/unistdio/u32-vasprintf.c: New file.
52154         * lib/unistdio/u32-vsnprintf.c: New file.
52155         * lib/unistdio/u32-vsprintf.c: New file.
52156         * lib/unistdio/u32-u32-asnprintf.c: New file.
52157         * lib/unistdio/u32-u32-asprintf.c: New file.
52158         * lib/unistdio/u32-u32-snprintf.c: New file.
52159         * lib/unistdio/u32-u32-sprintf.c: New file.
52160         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52161         * lib/unistdio/u32-u32-vasprintf.c: New file.
52162         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52163         * lib/unistdio/u32-u32-vsprintf.c: New file.
52164         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52165         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52166         * tests/unistdio/test-ulc-printf1.h: New file.
52167         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52168         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52169         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52170         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52171         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52172         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52173         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52174         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52175         * tests/unistdio/test-u8-asnprintf1.c: New file.
52176         * tests/unistdio/test-u8-asnprintf1.h: New file.
52177         * tests/unistdio/test-u8-printf1.h: New file.
52178         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52179         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52180         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52181         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52182         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52183         * tests/unistdio/test-u8-vasprintf1.c: New file.
52184         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52185         * tests/unistdio/test-u8-vsprintf1.c: New file.
52186         * tests/unistdio/test-u16-asnprintf1.c: New file.
52187         * tests/unistdio/test-u16-asnprintf1.h: New file.
52188         * tests/unistdio/test-u16-printf1.h: New file.
52189         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52190         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52191         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52192         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52193         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52194         * tests/unistdio/test-u16-vasprintf1.c: New file.
52195         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52196         * tests/unistdio/test-u16-vsprintf1.c: New file.
52197         * tests/unistdio/test-u32-asnprintf1.c: New file.
52198         * tests/unistdio/test-u32-asnprintf1.h: New file.
52199         * tests/unistdio/test-u32-printf1.h: New file.
52200         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52201         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52202         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52203         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52204         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52205         * tests/unistdio/test-u32-vasprintf1.c: New file.
52206         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52207         * tests/unistdio/test-u32-vsprintf1.c: New file.
52208         * modules/unistdio/base: New file.
52209         * modules/unistdio/u-printf-args: New file.
52210         * modules/unistdio/ulc-asnprintf: New file.
52211         * modules/unistdio/ulc-asprintf: New file.
52212         * modules/unistdio/ulc-fprintf: New file.
52213         * modules/unistdio/ulc-printf-parse: New file.
52214         * modules/unistdio/ulc-snprintf: New file.
52215         * modules/unistdio/ulc-sprintf: New file.
52216         * modules/unistdio/ulc-vasnprintf: New file.
52217         * modules/unistdio/ulc-vasprintf: New file.
52218         * modules/unistdio/ulc-vfprintf: New file.
52219         * modules/unistdio/ulc-vsnprintf: New file.
52220         * modules/unistdio/ulc-vsprintf: New file.
52221         * modules/unistdio/u8-asnprintf: New file.
52222         * modules/unistdio/u8-asprintf: New file.
52223         * modules/unistdio/u8-printf-parse: New file.
52224         * modules/unistdio/u8-snprintf: New file.
52225         * modules/unistdio/u8-sprintf: New file.
52226         * modules/unistdio/u8-vasnprintf: New file.
52227         * modules/unistdio/u8-vasprintf: New file.
52228         * modules/unistdio/u8-vsnprintf: New file.
52229         * modules/unistdio/u8-vsprintf: New file.
52230         * modules/unistdio/u8-u8-asnprintf: New file.
52231         * modules/unistdio/u8-u8-asprintf: New file.
52232         * modules/unistdio/u8-u8-snprintf: New file.
52233         * modules/unistdio/u8-u8-sprintf: New file.
52234         * modules/unistdio/u8-u8-vasnprintf: New file.
52235         * modules/unistdio/u8-u8-vasprintf: New file.
52236         * modules/unistdio/u8-u8-vsnprintf: New file.
52237         * modules/unistdio/u8-u8-vsprintf: New file.
52238         * modules/unistdio/u16-asnprintf: New file.
52239         * modules/unistdio/u16-asprintf: New file.
52240         * modules/unistdio/u16-printf-parse: New file.
52241         * modules/unistdio/u16-snprintf: New file.
52242         * modules/unistdio/u16-sprintf: New file.
52243         * modules/unistdio/u16-vasnprintf: New file.
52244         * modules/unistdio/u16-vasprintf: New file.
52245         * modules/unistdio/u16-vsnprintf: New file.
52246         * modules/unistdio/u16-vsprintf: New file.
52247         * modules/unistdio/u16-u16-asnprintf: New file.
52248         * modules/unistdio/u16-u16-asprintf: New file.
52249         * modules/unistdio/u16-u16-snprintf: New file.
52250         * modules/unistdio/u16-u16-sprintf: New file.
52251         * modules/unistdio/u16-u16-vasnprintf: New file.
52252         * modules/unistdio/u16-u16-vasprintf: New file.
52253         * modules/unistdio/u16-u16-vsnprintf: New file.
52254         * modules/unistdio/u16-u16-vsprintf: New file.
52255         * modules/unistdio/u32-asnprintf: New file.
52256         * modules/unistdio/u32-asprintf: New file.
52257         * modules/unistdio/u32-printf-parse: New file.
52258         * modules/unistdio/u32-snprintf: New file.
52259         * modules/unistdio/u32-sprintf: New file.
52260         * modules/unistdio/u32-vasnprintf: New file.
52261         * modules/unistdio/u32-vasprintf: New file.
52262         * modules/unistdio/u32-vsnprintf: New file.
52263         * modules/unistdio/u32-vsprintf: New file.
52264         * modules/unistdio/u32-u32-asnprintf: New file.
52265         * modules/unistdio/u32-u32-asprintf: New file.
52266         * modules/unistdio/u32-u32-snprintf: New file.
52267         * modules/unistdio/u32-u32-sprintf: New file.
52268         * modules/unistdio/u32-u32-vasnprintf: New file.
52269         * modules/unistdio/u32-u32-vasprintf: New file.
52270         * modules/unistdio/u32-u32-vsnprintf: New file.
52271         * modules/unistdio/u32-u32-vsprintf: New file.
52272         * modules/unistdio/ulc-asnprintf-tests: New file.
52273         * modules/unistdio/ulc-vasnprintf-tests: New file.
52274         * modules/unistdio/ulc-vasprintf-tests: New file.
52275         * modules/unistdio/ulc-vsnprintf-tests: New file.
52276         * modules/unistdio/ulc-vsprintf-tests: New file.
52277         * modules/unistdio/u8-asnprintf-tests: New file.
52278         * modules/unistdio/u8-vasnprintf-tests: New file.
52279         * modules/unistdio/u8-vasprintf-tests: New file.
52280         * modules/unistdio/u8-vsnprintf-tests: New file.
52281         * modules/unistdio/u8-vsprintf-tests: New file.
52282         * modules/unistdio/u16-asnprintf-tests: New file.
52283         * modules/unistdio/u16-vasnprintf-tests: New file.
52284         * modules/unistdio/u16-vasprintf-tests: New file.
52285         * modules/unistdio/u16-vsnprintf-tests: New file.
52286         * modules/unistdio/u16-vsprintf-tests: New file.
52287         * modules/unistdio/u32-asnprintf-tests: New file.
52288         * modules/unistdio/u32-vasnprintf-tests: New file.
52289         * modules/unistdio/u32-vasprintf-tests: New file.
52290         * modules/unistdio/u32-vsnprintf-tests: New file.
52291         * modules/unistdio/u32-vsprintf-tests: New file.
52292         * MODULES.html.sh (Unicode string functions): Add the new modules.
52293
52294 2007-07-01  Bruno Haible  <bruno@clisp.org>
52295
52296         * lib/sprintf.c (sprintf): Limit the available length estimation,
52297         to avoid address wraparound.
52298         * lib/vsprintf.c (vsprintf): Likewise.
52299         * modules/sprintf-posix (Dependencies): Add stdint.
52300         * modules/vsprintf-posix (Dependencies): Likewise.
52301
52302 2007-07-01  Bruno Haible  <bruno@clisp.org>
52303
52304         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52305         Windows PATH as well. Conservative double-quoting. Comments.
52306
52307 2007-07-01  Bruno Haible  <bruno@clisp.org>
52308             Eric Blake  <ebb9@byu.net>
52309             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52310
52311         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52312         empty components in $PATH, denoting '.'.
52313
52314 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52315
52316         * gnulib-tool: Fix indentation.
52317         (func_create_megatestdir): Likewise.
52318         Report by Bruno Haible.
52319
52320 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52321
52322         Sync from Automake.
52323         * build-aux/gnupload: Fix shell portability issues with for loops.
52324         Report by Karl Berry.
52325
52326 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52327
52328         * build-aux/maint.mk (POURL): Use translationproject.org.
52329
52330 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52331             Bruno Haible  <bruno@clisp.org>
52332
52333         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52334         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52335         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52336         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52337         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52338
52339 2007-06-27  Bruno Haible  <bruno@clisp.org>
52340
52341         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52342         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52343
52344 2007-06-26  Karl Berry  <karl@gnu.org>
52345
52346         * MODULES.html.sh: remove xreadlink-with-size.
52347
52348 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52349
52350         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52351         method that I hope also handles the double-include problem noted
52352         by Bruno Haible in
52353         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52354
52355 2007-06-23  Bruno Haible  <bruno@clisp.org>
52356
52357         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52358         Don't let the 'mostlyclean' target fail if the last subdirectory could
52359         not be removed.
52360         Reported by Karl Berry.
52361
52362 2007-06-23  Bruno Haible  <bruno@clisp.org>
52363
52364         * gnulib-tool (echo): Add a speedier workaround for ksh.
52365         * tests/test-echo.sh: Likewise.
52366
52367 2007-06-23  Bruno Haible  <bruno@clisp.org>
52368
52369         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52370         * tests/test-echo.sh: Likewise.
52371
52372 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52373
52374         * gnulib-tool (IFS): Initialize early, so we don't set it to
52375         empty later.
52376         (self_abspathname): Rewrite algorithm to set it, reindent.
52377         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52378         (func_create_megatestdir): Merge some sed scripts.
52379
52380 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52381
52382         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52383         exposed by Sun Studio 11 cc on Solaris 8.
52384
52385 2007-06-22  Bruno Haible  <bruno@clisp.org>
52386
52387         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52388         backslashes.
52389         * tests/test-echo.sh: New file.
52390
52391 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52392
52393         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52394         simplify `sed_replace_build_aux' scripts, they are portable but
52395         echoing them with `echo' is not.
52396         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52397
52398 2007-06-21  Karl Berry  <karl@gnu.org>
52399
52400         * config/srclist.txt: guess we can't handle the licenses via
52401         srclist at the moment.
52402
52403 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52404
52405         * MODULES.html.sh: Add include_next.
52406         * modules/include_next: New file.
52407
52408 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52409
52410         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52411         INCLUDE_NEXT.
52412         (gl_CHECK_NEXT_HEADERS): New macro.
52413         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52414         the obsolescent gl_ABSOLUTE_HEADER.
52415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52416         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52417         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52418         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52419         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52420         * m4/math_h.m4 (gl_MATH_H): Likewise.
52421         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52422         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52423         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52424         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52425         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52426         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52427         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52428         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52429         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52430         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52431         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52432         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52433         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52434         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52435         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52436         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52437         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52438         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52439         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52440         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52441         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52442         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52443         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52444         * lib/float_.h: Likewise.
52445         * lib/inttypes_.h: Likewise.
52446         * lib/math_.h: Likewise.
52447         * lib/search_.h: Likewise.
52448         * lib/signal_.h: Likewise.
52449         * lib/stdint_.h: Likewise.
52450         * lib/stdio_.h: Likewise.
52451         * lib/stdlib_.h: Likewise.
52452         * lib/string_.h: Likewise.
52453         * lib/sys_stat_.h: Likewise.
52454         * lib/sys_time_.h: Likewise.
52455         * lib/time_.h: Likewise.
52456         * lib/unistd_.h: Likewise.
52457         * lib/wchar_.h: Likewise.
52458         * lib/wctype_.h: Likewise.
52459         * lib/dirent_.h: Likewise.
52460         * lib/iconv_.h: Likewise.
52461         * lib/locale_.h: Likewise.
52462         * lib/netinet_in_.h: Likewise.
52463         * lib/sys_select_.h: Likewise.
52464         * lib/sys_socket_.h: Likewise.
52465         * lib/sysexits_.h: Likewise.
52466         * modules/fcntl (Depends-on): Depend on include_next, not
52467         absolute_header.
52468         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
52469         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
52470         * modules/fchdir: Likewise.
52471         * modules/float: Likewise.
52472         * modules/iconv_open: Likewise.
52473         * modules/inttypes: Likewise.
52474         * modules/locale: Likewise.
52475         * modules/math: Likewise.
52476         * modules/netinet_in: Likewise.
52477         * modules/search: Likewise.
52478         * modules/signal: Likewise.
52479         * modules/stdint: Likewise.
52480         * modules/stdio: Likewise.
52481         * modules/stdlib: Likewise.
52482         * modules/string: Likewise.
52483         * modules/sys_select: Likewise.
52484         * modules/sys_socket: Likewise.
52485         * modules/sys_stat: Likewise.
52486         * modules/sys_time: Likewise.
52487         * modules/sysexits: Likewise.
52488         * modules/time: Likewise.
52489         * modules/unistd: Likewise.
52490         * modules/wchar: Likewise.
52491         * modules/wctype: Likewise.
52492         * modules/sys_stat: Change maintainer to "all".
52493         * modules/unistd: Likewise.
52494
52495 2007-06-20  Karl Berry  <karl@gnu.org>
52496
52497         * config/srclist.txt: track www changes in license files.
52498
52499 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52500
52501         * build-aux/bootstrap: Remove stray dot.
52502         Make sure build_aux settings are honored when linking
52503         gnulib_extra_files.
52504
52505 2007-06-19  Eric Blake  <ebb9@byu.net>
52506
52507         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52508         Allow compilation on cygwin.
52509
52510 2007-06-19  Jim Meyering  <jim@meyering.net>
52511
52512         xreadlink-with-size: Remove module.  No longer used.
52513         Ex-callers now use xreadlink or mreadlink-with-size.
52514         * modules/xreadlink-with-size: Remove module.
52515         * lib/xreadlink-with-size.c: Remove file.
52516         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52517         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52518         just before the function definition *is* accurate.
52519
52520         Eliminate one way canonicalize_filename_mode could exit.
52521         * lib/canonicalize.c (canonicalize_filename_mode):
52522         Use mreadlink_with_size, not xreadlink_with_size.
52523
52524 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52525
52526         Detect porting problems to FreeBSD/arm, which has time_t wider than
52527         long int.  Original problem reported for GNU diff by Xin Li in
52528         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52529         * modules/getdate (Depends-on): Add intprops, verify.
52530         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52531         is an integer type no wider than long int.
52532
52533 2007-06-18  Jim Meyering  <jim@meyering.net>
52534
52535         New module: mreadlink-with-size.
52536         * MODULES.html.sh: Add mreadlink-with-size.
52537         * modules/mreadlink-with-size: New module
52538         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
52539         not xreadlink-with-size.
52540         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
52541
52542 2007-06-16  Bruno Haible  <bruno@clisp.org>
52543
52544         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
52545         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
52546         Reported by Gary V. Vaughan <gary@gnu.org>.
52547
52548 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52549
52550         Revamp lchown so that it lives in unistd.h where it belongs.
52551         * lib/lchown.h: Remove.
52552         * lib/dirchownmod.c: Don't include lib/lchown.h.
52553         * lib/fchownat.c: Likewise.
52554         * lib/openat.c: Likewise.
52555         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
52556         does not follow symlinks.
52557         (EOPNOTSUPP): Define if not defined.
52558         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
52559         is defined to 0.
52560         (lchown): New decl.
52561         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
52562         Do not check for lchown decl.
52563         Set REPLACE_LCHOWN.
52564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
52565         REPLACE_LCHOWN.
52566         * modules/chown: Make it clear it follows symlinks.
52567         * modules/lchown: Make it clear it doesn't follow symlinks.
52568         (Files): Remove lib/lchown.h
52569         (Depends-on): Add unistd.
52570         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
52571         (Include): Include <unistd.h>, not "lchown.h".
52572         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
52573         REPLACE_LCHOWN.
52574
52575 2007-06-15  Jim Meyering  <jim@meyering.net>
52576
52577         Change license (GPL to LGPL) of fsusage and dependents.
52578         * modules/fsusage (License): Change to LGPL.
52579         * modules/full-read (License): Likewise.
52580         * modules/full-write (License): Likewise.
52581         * modules/safe-read (License): Likewise.
52582         * modules/safe-write (License): Likewise.
52583
52584 2007-06-14  Ben Pfaff  <blp@gnu.org>
52585
52586         Missing part of allocsa -> malloca transition.
52587         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
52588         gl_MALLOCA.
52589
52590 2007-06-12  Bruno Haible  <bruno@clisp.org>
52591
52592         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
52593         to ia64, x86_64, i386.
52594         Reported by Eric Blake.
52595
52596 2007-06-12  Bruno Haible  <bruno@clisp.org>
52597
52598         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
52599         cross-compiling to x86_64.
52600
52601 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
52602
52603         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
52604         glitch reported by Ralf Wildenhues in
52605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
52606
52607         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
52608         Vin Shelton.
52609
52610 2007-06-11  Bruno Haible  <bruno@clisp.org>
52611
52612         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
52613         replacement string.
52614         Reported by Eric Blake.
52615
52616 2007-06-10  Bruno Haible  <bruno@clisp.org>
52617
52618         Prepare vasnprintf code for use with Unicode strings.
52619         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
52620         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
52621         TYPE_U32_STRING.
52622         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
52623         a_u32_string variants.
52624         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52625         * lib/printf-args.c: Don't include config.h and the specification
52626         header if PRINTF_FETCHARGS is already defined.
52627         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52628         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
52629         TYPE_U16_STRING, TYPE_U32_STRING.
52630         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
52631         u16_directive, u16_directives, u32_directive, u32_directives): New
52632         types.
52633         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
52634         New declarations.
52635         * lib/printf-parse.c: Don't include config.h and the specification
52636         header if PRINTF_PARSE is already defined. Eliminate the set of
52637         parameters for WIDE_CHAR_VERSION; the user of this file must provide
52638         them now. Include c-ctype.h.
52639         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
52640         directive and CHAR_T_ONLY_ASCII.
52641         * lib/vasnprintf.c: Don't include config.h and the specification header
52642         if VASNPRINTF is already defined.
52643         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
52644         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
52645         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
52646         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
52647         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
52648         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
52649         code accordingly.
52650         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
52651         pad_ourselves also in this case, with the 'c' and 's' directives, and
52652         with a different notion of "width".
52653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
52654
52655 2007-06-10  Bruno Haible  <bruno@clisp.org>
52656
52657         * modules/unistr/u32-mbsnlen: New file.
52658         * lib/unistr/u32-mbsnlen.c: New file.
52659
52660         * modules/unistr/u16-mbsnlen: New file.
52661         * lib/unistr/u16-mbsnlen.c: New file.
52662
52663         * modules/unistr/u8-mbsnlen: New file.
52664         * lib/unistr/u8-mbsnlen.c: New file.
52665
52666         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
52667         declarations.
52668
52669 2007-06-10  Bruno Haible  <bruno@clisp.org>
52670
52671         * lib/string_.h (mbsnlen): New declaration.
52672         * lib/mbsnlen.c: New file.
52673         * m4/mbsnlen.m4: New file.
52674         * modules/mbsnlen: New file.
52675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
52676         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
52677         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
52678
52679 2007-06-10  Bruno Haible  <bruno@clisp.org>
52680
52681         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
52682
52683 2007-06-10  Bruno Haible  <bruno@clisp.org>
52684
52685         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
52686         * lib/mbuiter.h: Likewise.
52687
52688 2007-06-10  Bruno Haible  <bruno@clisp.org>
52689
52690         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
52691         declaration.
52692
52693 2007-06-10  Karl Berry  <karl@gnu.org>
52694
52695         * config/srclist.txt: remove gettext entries, Bruno prefers
52696         to update individually.
52697
52698 2007-06-10  Bruno Haible  <bruno@clisp.org>
52699
52700         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
52701         'maxlen'. Ensure only length + width bytes are allocated, not
52702         length + 1 + width.
52703
52704 2007-06-09  Bruno Haible  <bruno@clisp.org>
52705
52706         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
52707         (CHAR_T): Remove macro.
52708         (VASNPRINTF): Update.
52709
52710 2007-06-09  Bruno Haible  <bruno@clisp.org>
52711
52712         * MODULES.html.sh (Unicode string functions): Add the new modules.
52713
52714         * modules/uniconv/u32-conv-to-enc: New file.
52715         * lib/uniconv/u32-conv-to-enc.c: New file.
52716         * modules/uniconv/u32-conv-to-enc-tests: New file.
52717         * tests/uniconv/test-u32-conv-to-enc.c: New file.
52718
52719         * modules/uniconv/u16-conv-to-enc: New file.
52720         * lib/uniconv/u16-conv-to-enc.c: New file.
52721         * lib/uniconv/u-conv-to-enc.h: New file.
52722         * modules/uniconv/u16-conv-to-enc-tests: New file.
52723         * tests/uniconv/test-u16-conv-to-enc.c: New file.
52724
52725         * modules/uniconv/u8-conv-to-enc: New file.
52726         * lib/uniconv/u8-conv-to-enc.c: New file.
52727         * modules/uniconv/u8-conv-to-enc-tests: New file.
52728         * tests/uniconv/test-u8-conv-to-enc.c: New file.
52729
52730         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
52731         u32_conv_to_encoding): New declarations.
52732
52733 2007-06-09  Bruno Haible  <bruno@clisp.org>
52734
52735         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
52736
52737 2007-06-09  Bruno Haible  <bruno@clisp.org>
52738
52739         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
52740         * modules/malloca: Renamed from modules/allocsa, updated.
52741         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
52742         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
52743         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
52744         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
52745         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
52746         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
52747         * modules/xmalloca: Renamed from modules/xallocsa, updated.
52748         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
52749         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
52750         * modules/c-strcasestr (Depends-on): Update.
52751         * lib/c-strcasestr.c: Update.
52752         * modules/c-strstr (Depends-on): Update.
52753         * lib/c-strstr.c: Update.
52754         * modules/canonicalize-lgpl (Depends-on): Update.
52755         * lib/canonicalize-lgpl.c: Update.
52756         * modules/clean-temp (Depends-on): Update.
52757         * lib/clean-temp.c: Update.
52758         * modules/csharpcomp (Depends-on): Update.
52759         * lib/csharpcomp.c: Update.
52760         * modules/csharpexec (Depends-on): Update.
52761         * lib/csharpexec.c: Update.
52762         * modules/javacomp (Depends-on): Update.
52763         * lib/javacomp.c: Update.
52764         * modules/javaexec (Depends-on): Update.
52765         * lib/javaexec.c: Update.
52766         * modules/mbscasestr (Depends-on): Update.
52767         * lib/mbscasestr.c: Update.
52768         * modules/mbsstr (Depends-on): Update.
52769         * lib/mbsstr.c: Update.
52770         * modules/setenv (Depends-on): Update.
52771         * lib/setenv.c: Update.
52772         * modules/strcasestr (Depends-on): Update.
52773         * lib/strcasestr.c: Update.
52774         * modules/striconveha (Depends-on): Update.
52775         * lib/striconveha.c: Update.
52776         * modules/relocatable-prog-wrapper (Files): Update.
52777         * lib/relocwrapper.c: Update.
52778         * build-aux/install-reloc: Update.
52779         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
52780
52781 2007-06-08  Bruno Haible  <bruno@clisp.org>
52782
52783         Port to uClibc.
52784         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
52785         * lib/fpurge.c (fpurge): Likewise.
52786         * lib/freading.c (freading): Likewise.
52787         * lib/fseeko.c (rpl_fseeko): Likewise.
52788         * lib/fseterr.c (fseterr): Likewise.
52789         * lib/fwriting.c (fwriting): Likewise.
52790         * tests/test-fflush.c (main): Avoid a failure on uClibc.
52791
52792 2007-06-08  Bruno Haible  <bruno@clisp.org>
52793
52794         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
52795         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
52796         * modules/gettext (Files): Add m4/intlmacosx.m4.
52797
52798 2007-06-07  Bruno Haible  <bruno@clisp.org>
52799
52800         * modules/localename-tests: New file.
52801         * tests/test-localename.c: New file.
52802
52803         New module 'localename'.
52804         * lib/localename.h: New file.
52805         * lib/localename.c: New file, from GNU gettext.
52806         * m4/localename.m4: New file.
52807         * modules/localename: New file.
52808
52809 2007-06-07  Bruno Haible  <bruno@clisp.org>
52810
52811         Work around the lack of <wchar.h> on some builds of uClibc.
52812         * doc/headers/wchar.texi: Update.
52813         * lib/wchar_.h: Include <wchar.h> only if it exists.
52814         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
52815         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
52816         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
52817         doesn't exist.
52818         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
52819         * modules/mbfile (Depends-on): Add wchar.
52820         * modules/mbiter (Depends-on): Likewise.
52821         * modules/mbuiter (Depends-on): Likewise.
52822         Reported by Simon Josefsson.
52823
52824 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
52825
52826         Work around problem reported by Steven M. Schweda in
52827         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
52828         Tru64 5.1B with the Compaq compiler environment installed declares
52829         an 'isblank' function but does not define it in the C library.
52830         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
52831         * lib/regex_internal.h (isblank): Likewise.
52832         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
52833         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52834
52835 2007-06-05  Bruno Haible  <bruno@clisp.org>
52836
52837         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
52838         ia64.
52839         * modules/printf-safe: New file.
52840         * modules/fprintf-posix (Depends-on): Add printf-safe.
52841         * modules/printf-posix (Depends-on): Likewise.
52842         * modules/snprintf-posix (Depends-on): Likewise.
52843         * modules/sprintf-posix (Depends-on): Likewise.
52844         * modules/vasnprintf-posix (Depends-on): Likewise.
52845         * modules/vasprintf-posix (Depends-on): Likewise.
52846         * modules/vfprintf-posix (Depends-on): Likewise.
52847         * modules/vprintf-posix (Depends-on): Likewise.
52848         * modules/vsnprintf-posix (Depends-on): Likewise.
52849         * modules/vsprintf-posix (Depends-on): Likewise.
52850         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
52851         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
52852         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
52853         "no" on i386, x86_64, ia64.
52854         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
52855         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52856         on i386, x86_64, ia64.
52857         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
52858         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52859         on i386, x86_64, ia64.
52860         * tests/test-vasnprintf-posix.c: Include float.h.
52861         (LDBL80_WORDS): New macro.
52862         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52863         on i386, x86_64, ia64.
52864         * tests/test-vasprintf-posix.c: Include float.h.
52865         (LDBL80_WORDS): New macro.
52866         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52867         on i386, x86_64, ia64.
52868         * tests/test-snprintf-posix.c: Include float.h.
52869         * tests/test-sprintf-posix.c: Likewise.
52870         * tests/test-vsnprintf-posix.c: Likewise.
52871         * tests/test-vsprintf-posix.c: Likewise.
52872
52873 2007-06-05  Bruno Haible  <bruno@clisp.org>
52874
52875         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
52876         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
52877         non-IEEE numbers on i386, x86_64, ia64.
52878         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
52879         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
52880         * tests/test-isnanl.h: Include float.h.
52881         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
52882
52883 2007-06-05  Bruno Haible  <bruno@clisp.org>
52884
52885         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
52886         also the %a / %A. Handle the %a / %A code before this extra handling.
52887
52888 2007-06-05  Bruno Haible  <bruno@clisp.org>
52889
52890         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
52891         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
52892
52893 2007-06-05  Bruno Haible  <bruno@clisp.org>
52894
52895         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
52896         typo in variable name.
52897
52898 2007-06-05  Eric Blake  <ebb9@byu.net>
52899
52900         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
52901         Reported by Simon Josefsson.
52902
52903 2007-06-04  Bruno Haible  <bruno@clisp.org>
52904
52905         Avoid test failures on some PowerPC platforms.
52906         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
52907         Define differently for PowerPC.
52908         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
52909         Reported by Gary V. Vaughan <gary@gnu.org>.
52910
52911 2007-06-02  Bruno Haible  <bruno@clisp.org>
52912
52913         Fix test-stdint failure on FreeBSD/ia64.
52914         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
52915         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
52916         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
52917         * doc/headers/stdint.texi: Update.
52918
52919 2007-06-01  Bruno Haible  <bruno@clisp.org>
52920
52921         * tests/test-binary-io.c (main): Pass a third argument to open().
52922         Reported by Gary V. Vaughan <gary@gnu.org>.
52923
52924 2007-06-01  Bruno Haible  <bruno@clisp.org>
52925
52926         * doc/functions/frexpl.texi: Update for mingw.
52927
52928 2007-06-01  Bruno Haible  <bruno@clisp.org>
52929
52930         * tests/test-lseek.c (main): Disable test of errno for invalid third
52931         argument.
52932         * doc/functions/lseek.texi: Update.
52933         Reported by Gary V. Vaughan <gary@gnu.org>.
52934
52935 2007-05-28  Bruno Haible  <bruno@clisp.org>
52936
52937         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
52938
52939 2007-05-31  Eric Blake  <ebb9@byu.net>
52940
52941         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
52942         cross compiling.
52943
52944 2007-05-30  Eric Blake  <ebb9@byu.net>
52945         and Bruno Haible  <bruno@clisp.org>
52946
52947         Work around mingw test failures exposed by m4-1.4.9b.
52948         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
52949         * tests/test-unistd.c: Disable uid_t and git_t tests for the
52950         moment.
52951
52952 2007-05-30  Bruno Haible  <bruno@clisp.org>
52953
52954         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
52955         assuming that they are closed. Needed on HP-UX 11.
52956
52957 2007-05-29  Bruno Haible  <bruno@clisp.org>
52958
52959         Fix a problem with #include_next.
52960         * lib/dirent_.h: Split the double-inclusion guard.
52961         * lib/fcntl_.h: Likewise.
52962         * lib/float_.h: Likewise.
52963         * lib/iconv_.h: Likewise.
52964         * lib/inttypes_.h: Likewise.
52965         * lib/locale_.h: Likewise.
52966         * lib/math_.h: Likewise.
52967         * lib/netinet_in_.h: Likewise.
52968         * lib/search_.h: Likewise.
52969         * lib/signal_.h: Likewise.
52970         * lib/stdint_.h: Likewise.
52971         * lib/stdio_.h: Likewise.
52972         * lib/stdlib_.h: Likewise.
52973         * lib/string_.h: Likewise.
52974         * lib/sys_select_.h: Likewise.
52975         * lib/sys_socket_.h: Likewise.
52976         * lib/sys_stat_.h: Likewise.
52977         * lib/sys_time_.h: Likewise.
52978         * lib/sysexits_.h: Likewise.
52979         * lib/time_.h: Likewise.
52980         * lib/unistd_.h: Likewise.
52981         * lib/wchar_.h: Likewise.
52982         * lib/wctype_.h: Likewise.
52983
52984 2007-05-29  Bruno Haible  <bruno@clisp.org>
52985
52986         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
52987         for the moment.
52988
52989 2007-05-29  Bruno Haible  <bruno@clisp.org>
52990
52991         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
52992         invocation.
52993         Reported by Eric Blake.
52994
52995 2007-05-29  Bruno Haible  <bruno@clisp.org>
52996
52997         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
52998         compiling case.
52999
53000 2007-05-29  Eric Blake  <ebb9@byu.net>
53001             Bruno Haible  <bruno@clisp.org>
53002
53003         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53004         cross compiles.
53005
53006 2007-05-28  Eric Blake  <ebb9@byu.net>
53007
53008         * modules/closein-tests (test_closein_LDADD): Support test on
53009         cygwin with libtool.
53010
53011 2007-05-28  Bruno Haible  <bruno@clisp.org>
53012
53013         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53014         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53015         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53016         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53017         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53018         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53019         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53020         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53021         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53022
53023 2007-05-28  Eric Blake  <ebb9@byu.net>
53024
53025         Unconditionally include <config.h> in unit tests.
53026         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53027         * tests/test-allocsa.c, tests/test-arcfour.c,
53028         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53029         tests/test-array_list.c, tests/test-array_oset.c,
53030         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53031         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53032         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53033         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53034         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53035         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53036         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53037         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53038         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53039         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53040         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53041         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53042         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53043         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53044         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53045         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53046         test-md5.c, test-memmem.c, test-printf-posix.c,
53047         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53048         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53049         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53050         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53051         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53052         test-vasnprintf-posix2.c, test-vasnprintf.c,
53053         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53054         test-vfprintf-posix.c, test-vprintf-posix.c,
53055         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53056         test-xvasprintf.c: Likewise.
53057
53058 2007-05-28  Bruno Haible  <bruno@clisp.org>
53059
53060         * gnulib-tool (func_import): Remember the --with-tests command-line
53061         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53062         Reported by Eric Blake.
53063
53064 2007-05-28  Bruno Haible  <bruno@clisp.org>
53065
53066         * modules/ftell-tests: New file.
53067         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53068         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53069
53070         * lib/ftell.c: New file.
53071         * modules/ftell: New file.
53072         * m4/ftell.m4: New file.
53073         * doc/functions/ftell.texi: Update.
53074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53075         REPLACE_FTELL.
53076         * lib/stdio_.h (rpl_ftell): New declaration.
53077         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53078         REPLACE_FTELL.
53079
53080 2007-05-28  Eric Blake  <ebb9@byu.net>
53081
53082         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53083
53084 2007-05-28  Bruno Haible  <bruno@clisp.org>
53085
53086         * modules/fseek-tests: New file.
53087         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53088         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53089
53090         * lib/fseek.c: New file.
53091         * modules/fseek: New file.
53092         * m4/fseek.m4: New file.
53093         * doc/functions/fseek.texi: Update.
53094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53095         REPLACE_FSEEK.
53096         * lib/stdio_.h (rpl_fseek): New declaration.
53097         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53098         REPLACE_FSEEK.
53099
53100 2007-05-28  Bruno Haible  <bruno@clisp.org>
53101
53102         * lib/stdio_.h (fflush): More comments.
53103
53104 2007-05-28  Bruno Haible  <bruno@clisp.org>
53105
53106         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53107         runtime test.
53108
53109 2007-05-28  Eric Blake  <ebb9@byu.net>
53110
53111         Improve lseek module.
53112         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53113         * lib/unistd_.h (lseek): Scale back link warning message.
53114         * tests/test-lseek.c: Beef up test.
53115         * tests/test-lseek.sh: Exercise more facets of lseek.
53116         Reported by Bruno Haible.
53117
53118 2007-05-28  Bruno Haible  <bruno@clisp.org>
53119
53120         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53121         to define.
53122
53123 2007-05-27  Bruno Haible  <bruno@clisp.org>
53124
53125         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53126
53127 2007-05-27  Bruno Haible  <bruno@clisp.org>
53128
53129         * modules/openmp: New file.
53130         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53131         Noah Misch.
53132
53133 2007-05-26  Bruno Haible  <bruno@clisp.org>
53134
53135         * modules/chdir-long (Depends-on): Add fchdir.
53136         * modules/chdir-safer (Depends-on): Likewise.
53137         * modules/fts (Depends-on): Likewise.
53138         * modules/fts-lgpl (Depends-on): Likewise.
53139         * modules/openat (Depends-on): Likewise.
53140         * modules/savewd (Depends-on): Likewise.
53141
53142 2007-05-24  Eric Blake  <ebb9@byu.net>
53143
53144         Fix lseek on mingw.
53145         * modules/lseek: New module.
53146         * m4/lseek.m4: New file.
53147         * lib/lseek.c: New file.
53148         * modules/lseek-tests: New file.
53149         * tests/test-lseek.c: New file.
53150         * tests/test-lseek.sh: New file.
53151         * MODULES.html.sh: Document lseek module.
53152         * modules/fflush (Depends-on): Add lseek, fseeko.
53153         * modules/fseeko (Depends-on): Likewise.
53154         * modules/ftello (Depends-on): Likewise.
53155         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53156         broken.
53157         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53158         broken.
53159         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53160         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53161         * lib/ftello.c (rpl_ftello): Likewise.
53162         * tests/test-fseeko.c (main): Test this.
53163         * tests/test-fseeko.sh: Likewise.
53164         * tests/test-ftello.c (main): Likewise.
53165         * tests/test-ftello.sh: Likewise.
53166         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53167         implies replacing fseek.
53168         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53169         HAVE_FTELLO.
53170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53171         * modules/unistd (Makefile.am): Likewise.
53172         * lib/unistd_.h (lseek): Declare a replacement.
53173         * doc/functions/lseek.texi (lseek): Document this fix.
53174         * doc/functions/fseek.texi (fseek): Likewise.
53175         * doc/functions/ftell.texi (ftell): Likewise.
53176
53177 2007-05-24  Bruno Haible  <bruno@clisp.org>
53178
53179         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53180         in the printed representation of a NaN.
53181         * tests/test-vasprintf-posix.c (test_function): Likewise.
53182         * tests/test-snprintf-posix.h (test_function): Likewise.
53183         * tests/test-sprintf-posix.h (test_function): Likewise.
53184         Reported by Eric Blake.
53185
53186 2007-05-23  Eric Blake  <ebb9@byu.net>
53187
53188         Fix fseeko/ftello on cygwin 1.5.24.
53189         * doc/functions/fseeko.texi (fseeko): Document the fix.
53190         * doc/functions/ftello.texi (ftello): Document the fix.
53191         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53192         * doc/functions/stdout.text (stdout): New file.
53193         * doc/functions/stderr.text (stderr): New file.
53194         * doc/gnulib.texi (Function Substitutes): Use new files.
53195         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53196         prior to 1.7.0.
53197         * tests/test-ftello.c (main): Likewise for ftello.
53198         * tests/test-fseeko.sh: New file.
53199         * tests/test-ftello.sh: New file.
53200         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53201         with seekable stdin.
53202         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53203         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53204         (gl_REPLACE_FSEEKO): New macro.
53205         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53206         * modules/fseeko (Files): Distribute fseeko.c.
53207         * modules/ftello (Files): Distribute ftello.c.
53208         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53209         mode.
53210         * lib/ftello.c (rpl_ftello): New file.
53211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53212         fseeko, ftello.
53213         (gl_STDIN_LARGE_OFFSET): New macro.
53214         * modules/stdio (Makefile.am): Perform the replacement.
53215         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53216
53217 2007-05-23  Bruno Haible  <bruno@clisp.org>
53218
53219         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53220         GNULIB_POSIXCHECK is defined.
53221
53222 2007-05-21  Bruno Haible  <bruno@clisp.org>
53223
53224         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53225         Check also the output for NaN arguments. When cross-compiling, guess
53226         no on IRIX.
53227         * lib/vasnprintf.c: Update comments.
53228         * tests/test-vasnprintf-posix.c (strisnan): New function.
53229         (test_function): Use it.
53230         * tests/test-vasprintf-posix.c (strisnan): New function.
53231         (test_function): Use it.
53232         * tests/test-snprintf-posix.h (strisnan): New function.
53233         (test_function): Use it.
53234         * tests/test-sprintf-posix.h (strisnan): New function.
53235         (test_function): Use it.
53236         Reported by Eric Blake.
53237
53238 2007-05-20  Bruno Haible  <bruno@clisp.org>
53239
53240         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53241         numbers that fails on BeOS.
53242         * doc/functions/frexpl.texi: Update.
53243
53244 2007-05-20  Jim Meyering  <jim@meyering.net>
53245
53246         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53247         forced upon us by glibc-2.6.
53248
53249 2007-05-20  Bruno Haible  <bruno@clisp.org>
53250
53251         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53252         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53253         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53254         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53255         NEED_PRINTF_INFINITE.
53256         (is_infinitel): New function.
53257         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53259         gl_PREREQ_VASNPRINTF_INFINITE.
53260         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53261         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53262         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53263         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53264         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53265         gl_PREREQ_VASNPRINTF_INFINITE.
53266         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53267         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53268         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53269         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53270         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53271         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53272         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53273         * doc/functions/fprintf.texi: Update.
53274         * doc/functions/printf.texi: Update.
53275         * doc/functions/snprintf.texi: Update.
53276         * doc/functions/sprintf.texi: Update.
53277         * doc/functions/vfprintf.texi: Update.
53278         * doc/functions/vprintf.texi: Update.
53279         * doc/functions/vsnprintf.texi: Update.
53280         * doc/functions/vsprintf.texi: Update.
53281
53282 2007-05-20  Bruno Haible  <bruno@clisp.org>
53283
53284         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53285         was not found in libc.
53286         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53287
53288 2007-05-20  Bruno Haible  <bruno@clisp.org>
53289
53290         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53291         printed as "-nan" instead of "nan".
53292         * tests/test-vasprintf-posix.c (test_function): Likewise.
53293         * tests/test-snprintf-posix.h (test_function): Likewise.
53294         * tests/test-sprintf-posix.h (test_function): Likewise.
53295         Needed for HP-UX 11.
53296
53297 2007-05-20  Jim Meyering  <jim@meyering.net>
53298
53299         Fix buggy test for the fchownat-deref bug.
53300         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53301         symlink required for the run-test.  Without it, this test would
53302         always declare that fchownat doesn't work, and client code would
53303         unnecessarily use the replacement function with fixed libc.
53304         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53305         Reported by Greg Schafer.
53306
53307 2007-05-19  Bruno Haible  <bruno@clisp.org>
53308
53309         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53310         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53311         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53312         Needed for IRIX 6.5 and Solaris 2.5.1.
53313
53314 2007-05-19  Bruno Haible  <bruno@clisp.org>
53315
53316         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53317         (test_function): Skip tests involving -0.0 on platforms where
53318         -0.0 = 0.0.
53319         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53320         (test_function): Skip tests involving -0.0 on platforms where
53321         -0.0 = 0.0.
53322         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53323         (test_function): Skip tests involving -0.0 on platforms where
53324         -0.0 = 0.0.
53325         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53326         (test_function): Skip tests involving -0.0 on platforms where
53327         -0.0 = 0.0.
53328         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53329         tests.
53330         * tests/test-printf-posix.h (test_function): Likewise.
53331         * tests/test-printf-posix.output: Remove all -0.0 related results.
53332         Needed for IRIX 6.5.
53333
53334 2007-05-19  Bruno Haible  <bruno@clisp.org>
53335
53336         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53337         printed as "nan0x7fffffff" instead of "nan".
53338         * tests/test-vasprintf-posix.c (test_function): Likewise.
53339         * tests/test-snprintf-posix.h (test_function): Likewise.
53340         * tests/test-sprintf-posix.h (test_function): Likewise.
53341         * tests/test-fprintf-posix.h (NaN): Remove macro.
53342         (test_function): Remove all NaN related tests.
53343         * tests/test-printf-posix.h (NaN): Remove macro.
53344         (test_function): Remove all NaN related tests.
53345         * tests/test-printf-posix.output: Remove all NaN related results.
53346         Needed for IRIX 6.5.
53347
53348 2007-05-19  Bruno Haible  <bruno@clisp.org>
53349
53350         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53351         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53352
53353 2007-05-19  Bruno Haible  <bruno@clisp.org>
53354
53355         * lib/float_.h: New file.
53356         * m4/float_h.m4: New file.
53357         * modules/float: New file.
53358         * modules/isnanl (Dependencies): Add float.
53359         * modules/isnanl-nolibm (Dependencies): Likewise.
53360         * modules/mathl (Dependencies): Likewise.
53361         * modules/printf-frexpl (Dependencies): Likewise.
53362         * modules/signbit (Dependencies): Likewise.
53363         * modules/vasnprintf (Dependencies): Likewise.
53364         * doc/headers/float.texi: Update.
53365
53366 2007-05-19  Jim Meyering  <jim@meyering.net>
53367
53368         * lib/utimens.c (gl_futimens): Rename from futimens,
53369         now that glibc-2.6 declares futimens.
53370         * lib/utimens.h: Likewise.
53371
53372 2007-05-19  Bruno Haible  <bruno@clisp.org>
53373
53374         Avoid test failures on mingw.
53375         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53376         * tests/test-printf-posix.sh: Likewise.
53377         * tests/test-vfprintf-posix.sh: Likewise.
53378         * tests/test-vprintf-posix.sh: Likewise.
53379
53380 2007-05-19  Bruno Haible  <bruno@clisp.org>
53381
53382         Fix *printf result for NaN, Inf, -0.0 on mingw.
53383         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53384         * lib/vasnprintf.c: Include math.h and isnan.h.
53385         (is_infinite_or_zero): New function.
53386         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53387         values in the %f, %F, %e, %E, %g, %G directives.
53388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53389         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53390         gl_PRINTF_INFINITE and test its result. Invoke
53391         gl_PREREQ_VASNPRINTF_INFINITE.
53392         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53393         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53395         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53396         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53397         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53398         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53399         * doc/functions/fprintf.texi: Update.
53400         * doc/functions/printf.texi: Update.
53401         * doc/functions/snprintf.texi: Update.
53402         * doc/functions/sprintf.texi: Update.
53403         * doc/functions/vfprintf.texi: Update.
53404         * doc/functions/vprintf.texi: Update.
53405         * doc/functions/vsnprintf.texi: Update.
53406         * doc/functions/vsprintf.texi: Update.
53407
53408 2007-05-19  Bruno Haible  <bruno@clisp.org>
53409
53410         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53411         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53412         Instead of multiplying with 10^k, set extra_zeroes to k.
53413         (scale10_round_long_double): Remove function.
53414
53415 2007-05-18  Bruno Haible  <bruno@clisp.org>
53416
53417         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53418         introduced on 2007-05-06.
53419
53420 2007-05-18  Bruno Haible  <bruno@clisp.org>
53421
53422         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53423         %g directives.
53424         * tests/test-vasprintf-posix.c (test_function): Likewise.
53425         * tests/test-snprintf-posix.h (test_function): Likewise.
53426         * tests/test-sprintf-posix.h (test_function): Likewise.
53427
53428 2007-05-18  Bruno Haible  <bruno@clisp.org>
53429
53430         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53431         (strmatch): New function.
53432         (test_function): Test the %f directive on numbers of various exponents.
53433         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53434         (strmatch): New function.
53435         (test_function): Test the %f directive on numbers of various exponents.
53436         * tests/test-snprintf-posix.h (strmatch): New function.
53437         (test_function): Test the %f directive on numbers of various exponents.
53438         * tests/test-sprintf-posix.h (strmatch): New function.
53439         (test_function): Test the %f directive on numbers of various exponents.
53440         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53441         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53442         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53443         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53444
53445 2007-05-18  Bruno Haible  <bruno@clisp.org>
53446
53447         Add support for 'long double' number output.
53448         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53449         * lib/vasnprintf.c: Include math.h and float+.h.
53450         (mp_limb_t): New type.
53451         (GMP_LIMB_BITS): New macro.
53452         (mp_twolimb_t): New type.
53453         (GMP_TWOLIMB_BITS): New macro.
53454         (mpn_t): New type.
53455         (multiply, divide, convert_to_decimal, decode_long_double,
53456         scale10_round_long_double, scale10_round_decimal_long_double,
53457         floorlog10l): New functions.
53458         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
53459         for the %f, %F, %e, %E, %g, %G directives.
53460         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
53461         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53462         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
53463         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
53464         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53465         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53466         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53467         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53468         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53469         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53470         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53471         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53472         * modules/snprintf-posix (Depends-on): Likewise.
53473         * modules/sprintf-posix (Depends-on): Likewise.
53474         * modules/vasnprintf-posix (Depends-on): Likewise.
53475         * modules/vasprintf-posix (Depends-on): Likewise.
53476         * modules/vfprintf-posix (Depends-on): Likewise.
53477         * modules/vsnprintf-posix (Depends-on): Likewise.
53478         * modules/vsprintf-posix (Depends-on): Likewise.
53479         * modules/vasnprintf (Files): Add lib/float+.h.
53480         * doc/functions/fprintf.texi: Update.
53481         * doc/functions/printf.texi: Update.
53482         * doc/functions/snprintf.texi: Update.
53483         * doc/functions/sprintf.texi: Update.
53484         * doc/functions/vfprintf.texi: Update.
53485         * doc/functions/vprintf.texi: Update.
53486         * doc/functions/vsnprintf.texi: Update.
53487         * doc/functions/vsprintf.texi: Update.
53488
53489 2007-05-18  Bruno Haible  <bruno@clisp.org>
53490
53491         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53492
53493 2007-05-18  Bruno Haible  <bruno@clisp.org>
53494
53495         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53496         for printing 64-bit integers. Needed for mingw.
53497
53498 2007-05-18  Bruno Haible  <bruno@clisp.org>
53499
53500         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53501         gl_FUNC_FREXPL_WORKS.
53502         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53503
53504 2007-05-18  Bruno Haible  <bruno@clisp.org>
53505
53506         * modules/frexpl-nolibm-tests: New file.
53507
53508         * modules/frexpl-nolibm: New file.
53509         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53510
53511 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53512
53513         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53514         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53515         GCC 4.2, which otherwise issues a lot of warnings.
53516         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53517         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53518         Likewise.
53519         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53520         * modules/iconv_open (iconv.h): Likewise.
53521         * modules/locale (locale.h): Likewise.
53522         * modules/netinet_in (netinet/in.h): Likewise.
53523         * modules/sys_select (sys_select.h): Likewise.
53524         * modules/sys_socket (sys/socket.h): Likewise.
53525         * modules/sys_stat (sys/stat.h): Likewise.
53526         * modules/sysexits (sysexits.h): Likewise.
53527         * modules/unistd (unistd.h): Likewise.
53528
53529 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53530
53531         * modules/closein-tests (Makefile.am): Distribute
53532         `test-closein.sh'.
53533
53534 2007-05-17  Bruno Haible  <bruno@clisp.org>
53535
53536         * tests/test-printf-posix.output: Renamed from
53537         tests/test-fprintf-posix.out.
53538         * modules/fprintf-posix-tests: Update.
53539         * modules/printf-posix-tests: Update.
53540         * modules/vfprintf-posix-tests: Update.
53541         * modules/vprintf-posix-tests: Update.
53542         * tests/test-fprintf-posix.sh: Update.
53543         * tests/test-printf-posix.sh: Update.
53544         * tests/test-vfprintf-posix.sh: Update.
53545         * tests/test-vprintf-posix.sh: Update.
53546         Reported by Ralf Wildenhues.
53547
53548 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53549
53550         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
53551         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53552         GCC 4.2, which otherwise issues a lot of warnings.
53553         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
53554         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
53555         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
53556         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
53557         it should no longer be needed.
53558         * lib/string_.h: Likewise.
53559         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
53560         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
53561         * modules/inttypes (inttypes.h): Likewise.
53562         * modules/math (math.h): Likewise.
53563         * modules/search (search.h): Likewise.
53564         * modules/signal (signal.h): Likewise.
53565         * modules/stdint (stdint.h): Likewise.
53566         * modules/stdio (stdio.h): Likewise.
53567         * modules/stdlib (stdlib.h): Likewise.
53568         * modules/string (string.h): Likewise.
53569         * modules/sys_time (sys/time.h): Likewise.
53570         * modules/time (time.h): Likewise.
53571         * modules/wchar (wchar.h): Likewise.
53572         * modules/wctype (wtype.h): Likewise.
53573
53574 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53575
53576         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
53577
53578 2007-05-13  Bruno Haible  <bruno@clisp.org>
53579
53580         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
53581         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53582         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
53583         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53584         (gl_PREREQ_STRTOK_R): Don't require it here.
53585
53586 2007-05-13  Bruno Haible  <bruno@clisp.org>
53587
53588         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
53589         when used in C++ mode.
53590
53591 2007-05-12  Bruno Haible  <bruno@clisp.org>
53592
53593         * lib/linebuffer.h: Tweak doc.
53594         * lib/linebuffer.c: Likewise.
53595
53596 2007-05-12  James Youngman  <jay@gnu.org>
53597
53598         * lib/linebuffer.c (readlinebuffer_delim): New function,
53599         like readlinebuffer, but use a caller-specified delimiter.
53600         (readlinebuffer): Just call readlinebuffer_delim with '\n'
53601         as the delimiter.
53602         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
53603
53604 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53605
53606         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
53607         * modules/openat (Files): Remove openat-die.c.
53608         (Depends-on): Add openat-die.
53609         * modules/openat-die: New module.
53610
53611 2007-05-06  Bruno Haible  <bruno@clisp.org>
53612
53613         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
53614         Update with info about Cygwin.
53615         * doc/functions/fprintf.texi: Update.
53616         * doc/functions/printf.texi: Update.
53617         * doc/functions/snprintf.texi: Update.
53618         * doc/functions/sprintf.texi: Update.
53619         * doc/functions/vfprintf.texi: Update.
53620         * doc/functions/vprintf.texi: Update.
53621         * doc/functions/vsnprintf.texi: Update.
53622         * doc/functions/vsprintf.texi: Update.
53623         Reported by Eric Blake.
53624
53625 2007-05-06  Bruno Haible  <bruno@clisp.org>
53626
53627         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
53628         padding ourselves for the floating-point directives.
53629         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
53630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
53631         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53632         gl_PRINTF_FLAG_ZERO and test its result. Invoke
53633         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
53634         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53635         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53636         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53637         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53638         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53640         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53641         * tests/test-snprintf-posix.h (test_function): Also check the width
53642         and some flags in the %f directive.
53643         * tests/test-sprintf-posix.h (test_function): Likewise.
53644         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53645         * tests/test-vasprintf-posix.c (test_function): Likewise.
53646         * doc/functions/fprintf.texi: Update.
53647         * doc/functions/printf.texi: Update.
53648         * doc/functions/snprintf.texi: Update.
53649         * doc/functions/sprintf.texi: Update.
53650         * doc/functions/vfprintf.texi: Update.
53651         * doc/functions/vprintf.texi: Update.
53652         * doc/functions/vsnprintf.texi: Update.
53653         * doc/functions/vsprintf.texi: Update.
53654
53655 2007-05-06  Bruno Haible  <bruno@clisp.org>
53656
53657         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
53658         pass the ' flag character to sprintf or snprintf.
53659         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
53660         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
53661         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53662         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
53663         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
53664         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53665         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53666         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53667         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53668         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53669         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53670         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53671         * tests/test-snprintf-posix.h (test_function): Also check the grouping
53672         flag.
53673         * tests/test-sprintf-posix.h (test_function): Likewise.
53674         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53675         * tests/test-vasprintf-posix.c (test_function): Likewise.
53676         * doc/functions/fprintf.texi: Update.
53677         * doc/functions/printf.texi: Update.
53678         * doc/functions/snprintf.texi: Update.
53679         * doc/functions/sprintf.texi: Update.
53680         * doc/functions/vfprintf.texi: Update.
53681         * doc/functions/vprintf.texi: Update.
53682         * doc/functions/vsnprintf.texi: Update.
53683         * doc/functions/vsprintf.texi: Update.
53684
53685 2007-05-01  Bruno Haible  <bruno@clisp.org>
53686
53687         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
53688
53689 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
53690
53691         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
53692         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
53693
53694 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53695
53696         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
53697         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
53698         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
53699
53700 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
53701
53702         * lib/argp-help.c (struct hol_entry): New member `ord'.
53703         (HOL_ENTRY_PTRCMP): Use ord for comparison
53704         (hol_sort): Initialize ord.
53705
53706 2007-05-01  Bruno Haible  <bruno@clisp.org>
53707
53708         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
53709         Reported by Eric Blake.
53710         * doc/gnulib.texi (Function Substitutes): Update.
53711
53712 2007-05-01  Bruno Haible  <bruno@clisp.org>
53713
53714         * doc/functions.texi: Remove file, now redundant through
53715         doc/functions/*.texi.
53716
53717 2007-05-01  Bruno Haible  <bruno@clisp.org>
53718
53719         * modules/argp (Depends-on): Add sleep.
53720
53721 2007-05-01  Bruno Haible  <bruno@clisp.org>
53722
53723         * modules/sleep-tests: New file.
53724         * tests/test-sleep.c: New file.
53725
53726         * modules/sleep: New file.
53727         * lib/sleep.c: New file.
53728         * m4/sleep.m4: New file.
53729         * lib/unistd_.h (sleep): New declaration.
53730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
53731         HAVE_SLEEP.
53732         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
53733         * doc/functions/sleep.texi: Document the sleep module.
53734
53735 2007-05-01  Bruno Haible  <bruno@clisp.org>
53736
53737         * lib/sigprocmask.h: Remove file.
53738         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
53739         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
53740         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
53741         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
53742         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
53743         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
53744         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
53745         HAVE_SIGSET_T as a shell variable.
53746         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
53747         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
53748         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
53749         (Depends-on): Add signal. Remove verify.
53750         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
53751         (Include): Mention <signal.h> instead of sigprocmask.h.
53752         * NEWS: Mention the change.
53753         * lib/fatal-signal.c: Don't include sigprocmask.h.
53754
53755 2007-05-01  Bruno Haible  <bruno@clisp.org>
53756
53757         * modules/signal: New file.
53758         * lib/signal_.h: New file.
53759         * m4/signal_h.m4: New file.
53760
53761 2007-05-01  Bruno Haible  <bruno@clisp.org>
53762
53763         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
53764         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
53765         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
53766         HAVE_WCTYPE_CTMP_BUG into wctype.h.
53767
53768 2007-05-01  Bruno Haible  <bruno@clisp.org>
53769
53770         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
53771         configure time.
53772         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
53773         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
53774         * modules/sys_stat (Makefile.am): Substitute their values into
53775         sys/stat.h.
53776
53777 2007-05-01  Bruno Haible  <bruno@clisp.org>
53778
53779         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
53780         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
53781         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
53782
53783 2007-05-01  Bruno Haible  <bruno@clisp.org>
53784
53785         * doc/header/assert.texi: Undo last change: don't mention the gnulib
53786         'assert' module here.
53787
53788 2007-05-01  Bruno Haible  <bruno@clisp.org>
53789
53790         * doc/functions/*.texi: New files.
53791         * doc/functions/google-ranking.txt: New file.
53792         * doc/gnulib.texi (Function Substitutes): New chapter.
53793         (ctime, inet_ntoa): Remove sections.
53794         * doc/ctime.texi: Remove file.
53795         * doc/inet_ntoa.texi: Remove file.
53796         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
53797         dependencies.
53798         (%.info): New rule, specifying a --reference-limit.
53799
53800 2007-05-01  Bruno Haible  <bruno@clisp.org>
53801
53802         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
53803
53804 2007-05-01  Bruno Haible  <bruno@clisp.org>
53805
53806         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
53807         the portability of 'mkdir' to mingw systems.
53808
53809 2007-05-01  Bruno Haible  <bruno@clisp.org>
53810
53811         * doc/headers/google-ranking.txt: New file.
53812
53813 2007-04-30  Eric Blake  <ebb9@byu.net>
53814
53815         Prefer fseeko to fseek.
53816         * modules/getpass (Depends-on): Add fseeko.
53817         * lib/getpass.c (getpass): Use fseeko, not fseek.
53818
53819 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
53820
53821         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
53822         assumes the sorting is stable, while most qsort implementations
53823         are not.  Use argument addresses to ensure they never compare as
53824         equal.
53825
53826         * tests/test-argp-2.sh (usage-indent test): Fix output
53827         (func_compare): Restore diff options
53828         * tests/test-argp.c: Restore #include "progname.h"
53829
53830 2007-04-29  Bruno Haible  <bruno@clisp.org>
53831
53832         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
53833         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53834         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
53835         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53836         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
53837         (configure.ac): Define CHECK_SNPRINTF_POSIX.
53838         (TESTS, check_PROGRAMS): Add test-snprintf.
53839         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
53840         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
53841         (TESTS, check_PROGRAMS): Add test-vsnprintf.
53842         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
53843         assertions that fail on HP-UX, OSF/1, or IRIX.
53844         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
53845
53846 2007-04-29  Bruno Haible  <bruno@clisp.org>
53847
53848         * MODULES.html.sh (posix_functions): Remove 'contents'.
53849
53850 2007-04-29  Karl Berry  <karl@gnu.org>
53851
53852         * config/srclist.txt (gendocs_template_min): new entry.
53853
53854 2007-04-29  Bruno Haible  <bruno@clisp.org>
53855
53856         Work around fpurge bug on BSD systems.
53857         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
53858         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
53859         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
53860         fpurge to rpl_fpurge if the system already has this function.
53861         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
53862         the case where the system already has this function. Correct invariants
53863         on BSD systems.
53864         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
53865         BSD systems.
53866
53867 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53868
53869         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
53870         proposed by Sven Verdoolaege.
53871
53872         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
53873         options.
53874         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
53875         (usage and help tests): Update
53876
53877 2007-04-29  Bruno Haible  <bruno@clisp.org>
53878
53879         * tests/test-fflush.c (main): Use a file of size 17, not 10.
53880         Print more information in case of failure. Disable a test on BeOS.
53881
53882 2007-04-29  Bruno Haible  <bruno@clisp.org>
53883
53884         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
53885         This helps debugging on systems on which no gdb is available.
53886
53887 2007-04-29  Bruno Haible  <bruno@clisp.org>
53888
53889         * lib/freading.h: Improve comments.
53890         * lib/fwriting.h: Likewise.
53891         * tests/test-freading.c (main): Don't check freading immediately after
53892         repositioning. Needed for glibc.
53893
53894 2007-04-29  Bruno Haible  <bruno@clisp.org>
53895
53896         * lib/freading.c (freading): Trivial simplification.
53897
53898 2007-04-28  Bruno Haible  <bruno@clisp.org>
53899
53900         * tests/test-fwriting.c (main): Also test the interaction between
53901         fflush and fwriting.
53902         * modules/fwriting-tests (Depends-on): Add fflush.
53903
53904         * tests/test-freading.c (main): Also test the interaction between
53905         fflush and freading.
53906         * modules/freading-tests (Depends-on): Add fflush.
53907
53908 2007-04-28  Bruno Haible  <bruno@clisp.org>
53909
53910         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
53911         fseeko and ftello.
53912         Suggested by Eric Blake.
53913
53914 2007-04-28  Jim Meyering  <jim@meyering.net>
53915
53916         Avoid false-negative in gl_STDINT_H's C99 conformance test.
53917         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
53918         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
53919
53920 2007-04-27  Eric Blake  <ebb9@byu.net>
53921
53922         * doc/headers/assert.texi (assert.h): Document assert module use.
53923
53924 2007-04-27  Bruno Haible  <bruno@clisp.org>
53925
53926         * doc/headers/*.texi: New files.
53927         * doc/gnulib.texi (Header File Substitutes): New chapter.
53928         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
53929         dependencies.
53930         (standards.info ,standards.html, standards.dvi): Update dependencies.
53931         (mostlyclean, clean): New targets.
53932
53933 2007-04-27  Bruno Haible  <bruno@clisp.org>
53934
53935         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
53936         * modules/sysexits (Files, Makefile.am): Update.
53937
53938         * lib/sys_socket_.h: Renamed from lib/socket_.h.
53939         * modules/sys_socket (Files, Makefile.am): Update.
53940
53941         * lib/sys_stat_.h: Renamed from lib/stat_.h.
53942         * modules/sys_stat (Files, Makefile.am): Update.
53943
53944 2007-04-27  Eric Blake  <ebb9@byu.net>
53945
53946         * lib/freading.h: Improve comments.
53947         * lib/fwriting.h: Likewise.
53948         * lib/fflush.c: Likewise.
53949
53950         Fix closein for mingw.
53951         * modules/closein-tests: Add tests for closein.
53952         * tests/test-closein.c: New file.
53953         * tests/test-closein.sh: Likewise.
53954         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
53955         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
53956
53957 2007-04-27  Bruno Haible  <bruno@clisp.org>
53958
53959         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
53960         version is < 6.
53961         * lib/math_.h [__DECC]: Likewise.
53962         * lib/stdio_.h [__DECC]: Likewise.
53963         * lib/stdlib_.h [__DECC]: Likewise.
53964         * lib/string_.h [__DECC]: Likewise.
53965         * lib/time_.h [__DECC]: Likewise.
53966         * lib/wchar_.h [__DECC]: Likewise.
53967         * lib/wctype_.h [__DECC]: Likewise.
53968
53969 2007-04-27  Bruno Haible  <bruno@clisp.org>
53970
53971         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
53972
53973 2007-04-27  Bruno Haible  <bruno@clisp.org>
53974
53975         * lib/fflush.c: Add comments.
53976         * modules/fpurge-tests (Depends-on): Add fflush.
53977         * modules/freadable-tests (Depends-on): Likewise.
53978         * modules/fwritable-tests (Depends-on): Likewise.
53979
53980 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
53981
53982         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
53983         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
53984         Report by Bruno Haible <bruno@clisp.org>.
53985
53986 2007-04-26  Eric Blake  <ebb9@byu.net>
53987
53988         Fix fflush on mingw.
53989         * modules/fflush (Depends-on): Add freading.
53990         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
53991         but unread data.
53992
53993 2007-04-26  Eric Blake  <ebb9@byu.net>
53994         and Bruno Haible  <bruno@clisp.org>
53995
53996         Implement freading and fwriting.
53997         * lib/freading.c: New file.
53998         * lib/freading.h: Likewise.
53999         * m4/freading.m4: Likewise.
54000         * modules/freading: Likewise.
54001         * modules/freading-tests: Likewise.
54002         * tests/test-freading.c: Likewise.
54003         * lib/fwriting.c: New file.
54004         * lib/fwriting.h: Likewise.
54005         * m4/fwriting.m4: Likewise.
54006         * modules/fwriting: Likewise.
54007         * modules/fwriting-tests: Likewise.
54008         * tests/test-fwriting.c: Likewise.
54009         * MODULES.html.sh (File stream based Input/Output): Mention them.
54010
54011 2007-04-26  Bruno Haible  <bruno@clisp.org>
54012
54013         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54014         'long' when we assume it.
54015         Suggested by Eric Blake.
54016
54017 2007-04-26  Bruno Haible  <bruno@clisp.org>
54018
54019         Ensure fseeko, ftello are declared on glibc systems.
54020         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54021         * modules/fseeko (configure.ac-early): Likewise.
54022         * modules/ftello (configure.ac-early): Likewise.
54023         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54024         AC_FUNC_FSEEKO for this.
54025         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54026         (gl_CHECK_FSEEKO): Remove macro.
54027
54028 2007-04-26  Bruno Haible  <bruno@clisp.org>
54029
54030         * tests/test-fflush.c (main): Also check the ftell result after
54031         fflush and fseek/fseeko.
54032         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54033         file descriptor position cache in the stream.
54034         * lib/fseeko.c (rpl_fseeko): Likewise.
54035
54036 2007-04-26  Bruno Haible  <bruno@clisp.org>
54037
54038         * modules/fflush-tests (Depends-on): Add fseeko.
54039
54040 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54041             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54042
54043         * lib/argz_.h: ensure error_t definition is obtained in same
54044         mechanism system argz.h would have.
54045         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54046         argz facilities are known bad.  Err on the side of caution if
54047         cross-compiling.
54048
54049 2007-04-25  Eric Blake  <ebb9@byu.net>
54050
54051         * lib/fpurge.c (includes): Use stdlib.h for free.
54052         * tests/test-fflush.c (main): Also test fflush-fseeko.
54053
54054 2007-04-25  Bruno Haible  <bruno@clisp.org>
54055
54056         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54057         * lib/fseeko.c: New file.
54058         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54059         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54060         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54061         gl_FUNC_FSEEKO.
54062         (gl_FUNC_FSEEKO): Invoke it.
54063         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54064         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54065         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54066
54067 2007-04-25  Bruno Haible  <bruno@clisp.org>
54068
54069         * modules/fflush (Depends-on): Add ftello.
54070
54071 2007-04-25  Bruno Haible  <bruno@clisp.org>
54072
54073         * modules/ftello-tests: New file.
54074         * tests/test-ftello.c: New file.
54075
54076         * modules/ftello: New file.
54077         * m4/ftello.m4: New file.
54078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54079         HAVE_FTELLO.
54080         * lib/stdio_.h (ftello): New declaration.
54081         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54082         HAVE_FTELLO.
54083
54084 2007-04-25  Bruno Haible  <bruno@clisp.org>
54085
54086         * modules/fseeko-tests: New file.
54087         * tests/test-fseeko.c: New file.
54088
54089         * modules/fseeko: New file.
54090         * m4/fseeko.m4: New file.
54091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54092         HAVE_FSEEKO.
54093         * lib/stdio_.h (fseeko): New declaration.
54094         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54095         HAVE_FSEEKO.
54096
54097 2007-04-25  Bruno Haible  <bruno@clisp.org>
54098
54099         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54100
54101 2007-04-25  Bruno Haible  <bruno@clisp.org>
54102
54103         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54104         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54105         * tests/test-unistd.c: Likewise.
54106         * tests/test-fcntl.c: Likewise.
54107
54108 2007-04-23  Eric Blake  <ebb9@byu.net>
54109
54110         * lib/fflush.c: Fix missing include.
54111         Reported by Bruno Haible.
54112
54113 2007-04-23  Bruno Haible  <bruno@clisp.org>
54114
54115         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54116         Reported by Eric Blake.
54117
54118 2007-04-23  Bruno Haible  <bruno@clisp.org>
54119
54120         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54121
54122 2007-04-23  Bruno Haible  <bruno@clisp.org>
54123
54124         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54125
54126 2007-04-23  Bruno Haible  <bruno@clisp.org>
54127
54128         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54129         Needed on HP-UX 11.
54130
54131 2007-04-16  Eric Blake  <ebb9@byu.net>
54132
54133         Make fflush rely on fpurge.
54134         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54135         open coding all variants.
54136         * modules/fflush (Depends-on): Add fpurge and unistd.
54137         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54138         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54139
54140         Fix --with-tests compilation on cygwin.
54141         * modules/argmatch-tests (Makefile.am): List gnulib library first
54142         in LDADD.
54143         * modules/argp-tests (Makefile.am): Likewise.
54144         * modules/array-list-tests (Makefile.am): Likewise.
54145         * modules/array-oset-tests (Makefile.am): Likewise.
54146         * modules/avltree-list-tests (Makefile.am): Likewise.
54147         * modules/avltree-oset-tests (Makefile.am): Likewise.
54148         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54149         * modules/carray-list-tests (Makefile.am): Likewise.
54150         * modules/dirname-tests (Makefile.am): Likewise.
54151         * modules/frexp-tests (Makefile.am): Likewise.
54152         * modules/isnanl-tests (Makefile.am): Likewise.
54153         * modules/linked-list-tests (Makefile.am): Likewise.
54154         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54155         * modules/lock-tests (Makefile.am): Likewise.
54156         * modules/rbtree-list-tests (Makefile.am): Likewise.
54157         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54158         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54159         * modules/tls-tests (Makefile.am): Likewise.
54160         * modules/tsearch-tests (Makefile.am): Likewise.
54161         * modules/xvasprintf-tests (Makefile.am): Likewise.
54162
54163         Fix fpurge for cygwin.
54164         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54165         value.
54166         * modules/fpurge-tests (Depends-on): Clean up trash.
54167
54168 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54169
54170         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54171
54172         * m4/autobuild.m4: Re-indent.
54173
54174 2007-04-13  Bruno Haible  <bruno@clisp.org>
54175
54176         * modules/fpurge-tests: New file.
54177         * tests/test-fpurge.c: New file.
54178
54179         * modules/fpurge: New file.
54180         * lib/fpurge.h: New file.
54181         * lib/fpurge.c: New file.
54182         * m4/fpurge.m4: New file.
54183
54184 2007-04-13  Bruno Haible  <bruno@clisp.org>
54185
54186         * modules/fbufmode-tests: New file.
54187         * tests/test-fbufmode.c: New file.
54188
54189         * modules/fbufmode: New file.
54190         * lib/fbufmode.h: New file.
54191         * lib/fbufmode.c: New file.
54192         * m4/fbufmode.m4: New file.
54193
54194 2007-04-13  Bruno Haible  <bruno@clisp.org>
54195
54196         * modules/fwritable-tests: New file.
54197         * tests/test-fwritable.c: New file.
54198
54199         * modules/fwritable: New file.
54200         * lib/fwritable.h: New file.
54201         * lib/fwritable.c: New file.
54202         * m4/fwritable.m4: New file.
54203
54204 2007-04-13  Bruno Haible  <bruno@clisp.org>
54205
54206         * modules/freadable-tests: New file.
54207         * tests/test-freadable.c: New file.
54208
54209         * modules/freadable: New file.
54210         * lib/freadable.h: New file.
54211         * lib/freadable.c: New file.
54212         * m4/freadable.m4: New file.
54213
54214 2007-04-13  Bruno Haible  <bruno@clisp.org>
54215
54216         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54217         MOSTLYCLEANFILES.
54218
54219 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54220
54221         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54222         gzip bootstrap.conf to avoid dragging in i18n machinery.
54223         (gnulib_tool_option): Use it.
54224
54225 2007-04-13  Bruno Haible  <bruno@clisp.org>
54226
54227         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54228         %F directives.
54229         * tests/test-vasprintf-posix.c (test_function): Likewise.
54230         * tests/test-snprintf-posix.h (test_function): Likewise.
54231         * tests/test-sprintf-posix.h (test_function): Likewise.
54232         * tests/test-fprintf-posix.h (test_function): Likewise.
54233         * tests/test-printf-posix.h (test_function): Likewise.
54234         * tests/test-fprintf-posix.out: Likewise.
54235
54236 2007-04-13  Bruno Haible  <bruno@clisp.org>
54237
54238         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54239         * modules/tls-tests (configure.ac): Likewise.
54240         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54241
54242 2007-04-13  Bruno Haible  <bruno@clisp.org>
54243
54244         * lib/tls.c (glthread_tls_get): Fix return type.
54245         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54246
54247 2007-04-12  Eric Blake  <ebb9@byu.net>
54248
54249         * modules/gettime (Depends-on): Remove gettime.
54250         Reported by Dmitry V. Levin.
54251
54252 2007-04-12  Bruno Haible  <bruno@clisp.org>
54253
54254         * modules/fflush (Include): Mention <stdio.h>.
54255         * modules/strtoimax (Include): Mention <inttypes.h>.
54256         * modules/strtoumax (Include): Likewise.
54257
54258 2007-04-12  Eric Blake  <ebb9@byu.net>
54259
54260         * .cvsignore: New file.
54261         * .gitignore: Likewise.
54262
54263 2007-04-12  Bruno Haible  <bruno@clisp.org>
54264
54265         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54266         not before, since $(LDADD) often contains libgnu.a.
54267         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54268         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54269         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54270         Needed on Cygwin.
54271
54272 2007-04-12  Eric Blake  <ebb9@byu.net>
54273
54274         Work around glibc's failure to flush stdin on fclose.
54275         * lib/closein.c (close_stdin): Flush stdin before closing.
54276
54277         Work around glibc's failure to reset seekable stdin on exit.
54278         * modules/closein: New module.
54279         * lib/closein.c: New file.
54280         * lib/closein.h: Likewise.
54281         * m4/closein.m4: Likewise.
54282         * MODULES.html.sh (File stream based Input/Output): Document it.
54283
54284 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54285
54286         * gnulib-tool: Rename generated 'autobuild' script to
54287         'do-autobuild' in --create-megatestdir output.
54288
54289         * doc/gnulib.texi (Build robot for gnulib): Fix.
54290
54291 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54292
54293         * modules/sysexits (Depends-on): Add absolute-header.
54294
54295 2007-04-12  Eric Blake  <ebb9@byu.net>
54296
54297         No need to preserve errno on success.
54298         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54299         Reported by Bruno Haible.
54300
54301 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54302
54303         * MODULES.html.sh (Support for maintaining and releasing
54304         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54305
54306 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54307
54308         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54309
54310 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54311
54312         * modules/autobuild: New module.
54313
54314         * m4/autobuild.m4: New file.
54315
54316 2007-04-11  Bruno Haible  <bruno@clisp.org>
54317
54318         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54319         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54320         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54322         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54326         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54327         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54328         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54329         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54330         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54331         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54332         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54333         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54334         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54335         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54336         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54337         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54338         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54339         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54340         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54341         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54342         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54343         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54344         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54345         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54346         Reported by Eric Blake.
54347
54348 2007-04-11  Bruno Haible  <bruno@clisp.org>
54349
54350         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54351
54352 2007-04-10  Bruno Haible  <bruno@clisp.org>
54353
54354         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54355         for NaN and Infinity. Needed on FreeBSD 6.1.
54356         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54357         regarding results for "%010a" of Infinity and NaN.
54358         * tests/test-vasprintf-posix.c (test_function): Likewise.
54359         * tests/test-snprintf-posix.h (test_function): Likewise.
54360         * tests/test-sprintf-posix.h (test_function): Likewise.
54361         * tests/test-fprintf-posix.h (test_function): Likewise.
54362         * tests/test-printf-posix.h (test_function): Likewise.
54363         * tests/test-fprintf-posix.out: Likewise.
54364
54365 2007-04-10  Bruno Haible  <bruno@clisp.org>
54366
54367         * modules/locale-tests: New file.
54368         * tests/test-locale.c: New file.
54369
54370         * modules/locale: New file.
54371         * lib/locale_.h: New file.
54372         * m4/locale_h.m4: New file.
54373
54374 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54375             Bruno Haible  <bruno@clisp.org>
54376
54377         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54378         be determined, test for availability of the copysignf, copysign,
54379         copysignl functions.
54380         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54381         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54382         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54383
54384 2007-04-09  Eric Blake  <ebb9@byu.net>
54385
54386         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54387         * modules/stdio (Makefile.am): Support fflush.
54388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54389         * modules/fflush: New file.
54390         * lib/fflush.c: Likewise.
54391         * m4/fflush.m4: Likewise.
54392         * modules/fflush-tests: New test.
54393         * tests/test-fflush.c: Likewise.
54394         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54395
54396 2007-04-06  Bruno Haible  <bruno@clisp.org>
54397
54398         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54399         (VASNPRINTF): Use signbit for faster determination whether to print a
54400         minus sign.
54401         * modules/vasnprintf (Files): Remove lib/float+.h.
54402         * modules/fprintf-posix (Depends-on): Add signbit.
54403         * modules/snprintf-posix (Depends-on): Likewise.
54404         * modules/sprintf-posix (Depends-on): Likewise.
54405         * modules/vasnprintf-posix (Depends-on): Likewise.
54406         * modules/vasprintf-posix (Depends-on): Likewise.
54407         * modules/vfprintf-posix (Depends-on): Likewise.
54408         * modules/vsnprintf-posix (Depends-on): Likewise.
54409         * modules/vsprintf-posix (Depends-on): Likewise.
54410
54411 2007-04-06  Bruno Haible  <bruno@clisp.org>
54412
54413         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54414         * tests/test-frexpl.c (main): Likewise.
54415         * tests/test-ldexpl.c (main): Likewise.
54416         * modules/frexp-tests (Depends-on): Add signbit.
54417         * modules/frexpl-tests (Depdends-on): Likewise.
54418         * modules/ldexpl-tests (Depdends-on): Likewise.
54419
54420 2007-04-06  Bruno Haible  <bruno@clisp.org>
54421
54422         * modules/signbit-tests: New file.
54423         * tests/test-signbit.c: New file.
54424
54425         * modules/signbit: New file.
54426         * lib/signbitf.c: New file.
54427         * lib/signbitd.c: New file.
54428         * lib/signbitl.c: New file.
54429         * m4/signbit.m4: New file.
54430         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54431         (signbit): New macro.
54432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54433         REPLACE_SIGNBIT.
54434         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54435         REPLACE_FREXPL into math.h.
54436
54437 2007-04-06  Bruno Haible  <bruno@clisp.org>
54438
54439         * modules/isnanf-nolibm-tests: New file.
54440         * tests/test-isnanf.c: New file.
54441
54442         * modules/isnanf-nolibm: New file.
54443         * lib/isnanf.h: New file.
54444         * lib/isnanf.c: New file.
54445         * lib/isnan.c: Consider the USE_FLOAT macro.
54446         * m4/isnanf.m4: New file.
54447
54448 2007-04-06  Bruno Haible  <bruno@clisp.org>
54449
54450         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54451         (Link): New section.
54452
54453         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
54454
54455 2007-04-06  Bruno Haible  <bruno@clisp.org>
54456
54457         Assume the 'long double' type.
54458         * m4/longdouble.m4: Remove file.
54459         * config/srclist.txt: Don't mention longdouble.m4.
54460         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
54461         * lib/float+.h: Likewise.
54462         * lib/frexp.c: Likewise.
54463         * lib/printf-args.h: Likewise.
54464         * lib/printf-args.c: Likewise.
54465         * lib/printf-frexp.c: Likewise.
54466         * lib/printf-parse.c: Likewise.
54467         * lib/vasnprintf.c: Likewise.
54468         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
54469         * m4/intl.m4: Likewise.
54470         * m4/isnanl.m4: Likewise.
54471         * m4/printf.m4: Likewise.
54472         * m4/printf-frexpl.m4: Likewise.
54473         * m4/vasnprintf.m4: Likewise.
54474         * modules/allocsa (Files): Remove m4/longdouble.m4.
54475         * modules/gettext (Files): Likewise.
54476         * modules/relocatable-prog-wrapper (Files): Likewise.
54477         * modules/vasnprintf (Files): Likewise.
54478         * modules/isnanl (Files): Likewise.
54479         (Include): Simplify.
54480         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54481         (Include): Simplify.
54482         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54483         (Include): Simplify.
54484         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54485         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54486         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54487         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54488         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54489         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54490         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54491         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54492         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54493         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54494         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54495         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54496         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54497         * tests/test-isnanl.c: Likewise.
54498         * tests/test-snprintf-posix.h: Likewise.
54499         * tests/test-sprintf-posix.h: Likewise.
54500         * tests/test-vasnprintf-posix.c: Likewise.
54501         * tests/test-vasnprintf-posix2.c: Likewise.
54502         * tests/test-vasprintf-posix.c: Likewise.
54503
54504 2007-04-06  Bruno Haible  <bruno@clisp.org>
54505
54506         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54507         * lib/math_.h [__DECC]: Include the overridden include file through
54508         #include_next, outside the double-inclusion guard.
54509         * lib/stdio_.h [__DECC]: Likewise.
54510         * lib/stdlib_.h [__DECC]: Likewise.
54511         * lib/string_.h [__DECC]: Likewise.
54512         * lib/time_.h [__DECC]: Likewise.
54513         * lib/wchar_.h [__DECC]: Likewise.
54514         * lib/wctype_.h [__DECC]: Likewise.
54515         * lib/inttypes_.h [__DECC]: Likewise.
54516         Reported by Albert Chin <china@thewrittenword.com> in
54517         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54518
54519 2007-04-04  Eric Blake  <ebb9@byu.net>
54520
54521         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54522         1.5.x.
54523
54524 2007-04-04  Bruno Haible  <bruno@clisp.org>
54525
54526         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54527         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54528
54529 2007-04-04  Bruno Haible  <bruno@clisp.org>
54530
54531         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54532         results for "%010a" of Infinity and NaN.
54533         * tests/test-vasprintf-posix.c (test_function): Likewise.
54534         * tests/test-snprintf-posix.h (test_function): Likewise.
54535         * tests/test-sprintf-posix.h (test_function): Likewise.
54536         * tests/test-fprintf-posix.h (test_function): Remove these tests.
54537         * tests/test-printf-posix.h (test_function): Likewise.
54538         * tests/test-fprintf-posix.out: Update.
54539         Needed for FreeBSD 6.1.
54540
54541 2007-04-04  Bruno Haible  <bruno@clisp.org>
54542
54543         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
54544         directly used by the gnulib modules nor by gnulib-tool.
54545
54546 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54547
54548         * DEPENDENCIES: Give overall description of version dependency
54549         desirability.  Use more-typical names for apps.
54550         Add shell, coreutils, diffutils, grep, tar, gzip.
54551
54552 2007-04-04  Simon Josefsson  <simon@josefsson.org>
54553
54554         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
54555
54556 2007-04-04  Karl Berry  <karl@gnu.org>
54557
54558         * MODULES.html.sh (func_module): missing '.
54559
54560 2007-04-03  Bruno Haible  <bruno@clisp.org>
54561
54562         * modules/argmatch-tests (Makefile.am): New variable
54563         test_argmatch_LDADD.
54564         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
54565         * modules/array-list-tests (Makefile.am): New variable
54566         test_array_list_LDADD.
54567         * modules/array-oset-tests (Makefile.am): New variable
54568         test_array_oset_LDADD.
54569         * modules/avltree-list-tests (Makefile.am): New variable
54570         test_avltree_list_LDADD.
54571         * modules/avltree-oset-tests (Makefile.am): New variable
54572         test_avltree_oset_LDADD.
54573         * modules/avltreehash-list-tests (Makefile.am): New variable
54574         test_avltreehash_list_LDADD.
54575         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
54576         test_canonicalize_lgpl_LDADD.
54577         * modules/carray-list-tests (Makefile.am): New variable
54578         test_carray_list_LDADD.
54579         * modules/dirname-tests (Makefile.am): New variable
54580         test_dirname_LDADD.
54581         * modules/linked-list-tests (Makefile.am): New variable
54582         test_linked_list_LDADD.
54583         * modules/linkedhash-list-tests (Makefile.am): New variable
54584         test_linkedhash_list_LDADD.
54585         * modules/rbtree-list-tests (Makefile.am): New variable
54586         test_rbtree_list_LDADD.
54587         * modules/rbtree-oset-tests (Makefile.am): New variable
54588         test_rbtree_oset_LDADD.
54589         * modules/rbtreehash-list-tests (Makefile.am): New variable
54590         test_rbtreehash_list_LDADD.
54591         * modules/xvasprintf-tests (Makefile.am): New variable
54592         test_xvasprintf_LDADD.
54593         Reported by Eric Blake.
54594
54595 2007-04-03  Eric Blake  <ebb9@byu.net>
54596
54597         * DEPENDENCIES: Weaken m4 requirements.
54598
54599 2007-04-03  Bruno Haible  <bruno@clisp.org>
54600
54601         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
54602         * modules/isnanl-tests (configure.ac): Likewise.
54603
54604 2007-04-03  Ben Pfaff  <blp@gnu.org>
54605
54606         * modules/iconv_open: Add $(srcdir)/ to source directory
54607         references in Makefile fragments that call gperf, to fix VPATH
54608         builds.
54609
54610 2007-04-03  Bruno Haible  <bruno@clisp.org>
54611
54612         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
54613         * lib/ldexpl.c: Undo last change.
54614
54615 2007-04-03  Bruno Haible  <bruno@clisp.org>
54616
54617         * modules/printf-frexpl (Depends-on): Undo last change.
54618         (Files): Add m4/ldexpl.m4.
54619
54620 2007-04-03  Bruno Haible  <bruno@clisp.org>
54621
54622         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
54623         * modules/isnanl (Link): New section.
54624
54625         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
54626         * modules/frexp (Link): New section.
54627
54628         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
54629         * modules/frexpl (Link): New section.
54630
54631         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
54632         * modules/ldexpl (Link): New section.
54633
54634 2007-04-03  Bruno Haible  <bruno@clisp.org>
54635
54636         * modules/TEMPLATE-EXTENDED: New file.
54637         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
54638
54639 2007-04-03  Bruno Haible  <bruno@clisp.org>
54640
54641         * DEPENDENCIES: New file.
54642         Suggested by Simon Josefsson.
54643
54644 2007-04-03  Bruno Haible  <bruno@clisp.org>
54645
54646         * doc/gnulib.texi: Escape @.
54647
54648 2007-04-03  James Youngman  <jay@gnu.org>
54649         and Paul Eggert  <eggert@cs.ucla.edu>
54650
54651         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
54652         birthtime on all systems that have birthtime, not just those which
54653         use st_birthtimensec rather than st_birthtim.  Putting zero in
54654         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
54655         that the birth time is not available for files on an NFS mount.
54656
54657 2007-04-03  Simon Josefsson  <simon@josefsson.org>
54658
54659         * modules/memxor: Move back from crypto/, suggested by Bruno.
54660         * modules/crypto/hmac-sha1: Fix memxor dependency.
54661
54662         * modules/crypto/gc: Moved from ../.
54663
54664 2007-04-02  Eric Blake  <ebb9@byu.net>
54665
54666         * lib/ldexpl.c (includes): Avoid libm.
54667
54668         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
54669
54670 2007-04-02  Bruno Haible  <bruno@clisp.org>
54671
54672         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
54673         on IRIX.
54674
54675 2007-04-02  Bruno Haible  <bruno@clisp.org>
54676
54677         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
54678         x86 or x86_64 platforms running MacOS X.
54679         Reported by Ryan Schmidt <@ryandesign.com>.
54680
54681 2007-04-02  Bruno Haible  <bruno@clisp.org>
54682
54683         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
54684         i386.
54685
54686 2007-04-01  Simon Josefsson  <simon@josefsson.org>
54687
54688         * modules/crypto/arcfour: Moved from ../.
54689         * modules/crypto/arcfour-tests: Moved from ../.
54690         * modules/crypto/arctwo: Moved from ../.
54691         * modules/crypto/arctwo-tests: Moved from ../.
54692         * modules/crypto/des: Moved from ../.
54693         * modules/crypto/des-tests: Moved from ../.
54694         * modules/crypto/gc-arcfour: Moved from ../.
54695         * modules/crypto/gc-arcfour-tests: Moved from ../.
54696         * modules/crypto/gc-arctwo: Moved from ../.
54697         * modules/crypto/gc-arctwo-tests: Moved from ../.
54698         * modules/crypto/gc-des: Moved from ../.
54699         * modules/crypto/gc-des-tests: Moved from ../.
54700         * modules/crypto/gc-hmac-md5: Moved from ../.
54701         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
54702         * modules/crypto/gc-hmac-sha1: Moved from ../.
54703         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
54704         * modules/crypto/gc-md2: Moved from ../.
54705         * modules/crypto/gc-md2-tests: Moved from ../.
54706         * modules/crypto/gc-md4: Moved from ../.
54707         * modules/crypto/gc-md4-tests: Moved from ../.
54708         * modules/crypto/gc-md5: Moved from ../.
54709         * modules/crypto/gc-md5-tests: Moved from ../.
54710         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
54711         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
54712         * modules/crypto/gc-random: Moved from ../.
54713         * modules/crypto/gc-rijndael: Moved from ../.
54714         * modules/crypto/gc-rijndael-tests: Moved from ../.
54715         * modules/crypto/gc-sha1: Moved from ../.
54716         * modules/crypto/gc-sha1-tests: Moved from ../.
54717         * modules/crypto/gc-tests: Moved from ../.
54718         * modules/crypto/hmac-md5: Moved from ../.
54719         * modules/crypto/hmac-md5-tests: Moved from ../.
54720         * modules/crypto/hmac-sha1: Moved from ../.
54721         * modules/crypto/hmac-sha1-tests: Moved from ../.
54722         * modules/crypto/md2: Moved from ../.
54723         * modules/crypto/md2-tests: Moved from ../.
54724         * modules/crypto/md4: Moved from ../.
54725         * modules/crypto/md4-tests: Moved from ../.
54726         * modules/crypto/md5: Moved from ../.
54727         * modules/crypto/md5-tests: Moved from ../.
54728         * modules/crypto/memxor: Moved from ../.
54729         * modules/crypto/rijndael: Moved from ../.
54730         * modules/crypto/rijndael-tests: Moved from ../.
54731         * modules/crypto/sha1: Moved from ../.
54732
54733 2007-03-30  James Youngman  <jay@gnu.org>
54734
54735         * tests/test-stat-time.c (prepare_test): use chmod() rather than
54736         rename() to change the ctime of a file (because ctime is unaffected
54737         by rename on jfs2 on AIX 5.1).
54738         (main): Start by doing cleanup, in case a previous run failed leaving
54739         test files behind.
54740
54741 2007-03-31  Bruno Haible  <bruno@clisp.org>
54742
54743         Support old proprietary implementations of iconv.
54744         * modules/iconv_open: New file.
54745         * lib/iconv_.h: New file.
54746         * m4/iconv_h.m4: New file.
54747         * lib/iconv_open.c: New file.
54748         * lib/iconv_open-aix.gperf: New file.
54749         * lib/iconv_open-hpux.gperf: New file.
54750         * lib/iconv_open-irix.gperf: New file.
54751         * lib/iconv_open-osf.gperf: New file.
54752         * m4/iconv_open.m4: New file.
54753         * modules/linebreak (Depends-on): Add iconv_open.
54754         * modules/striconv (Depends-on): Likewise.
54755         * modules/striconveh (Depends-on): Likewise.
54756         * modules/unicodeio (Depends-on): Likewise.
54757         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
54758         (iconv_t)(-1).
54759         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
54760         conversion if cd is (iconv_t)(-1).
54761         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
54762         is not possible.
54763
54764 2007-03-31  Bruno Haible  <bruno@clisp.org>
54765
54766         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54767         work on Solaris either. Protect also second use of "autodetect_jp".
54768
54769 2007-03-31  Bruno Haible  <bruno@clisp.org>
54770
54771         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
54772         the function is not present.
54773
54774 2007-03-31  Bruno Haible  <bruno@clisp.org>
54775
54776         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
54777         the function is not present.
54778
54779 2007-03-31  Bruno Haible  <bruno@clisp.org>
54780
54781         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
54782         a bug in HP-UX iconv_open().
54783
54784 2007-03-31  Bruno Haible  <bruno@clisp.org>
54785
54786         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
54787         (Mathematics <math.h>): New section, add fpieee.
54788         (Input/output <stdio.h>): Add fseterr.
54789         (Mathematics <math.h>): New section, add printf-frexp.
54790         (Container data structures): Add sublist.
54791         (Core language properties): Add fpucw, inline.
54792         (Functions for greatest-width integer types <inttypes.h>): Add
54793         imaxabs, imaxdiv, inttypes.
54794         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
54795         isnanl-nolibm, ldexp.
54796         (Mathematics <math.h>): New section, add printf-frexpl.
54797         (Support for systems lacking POSIX:2001): Add fprintf-posix,
54798         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
54799         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
54800         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
54801         (Unicode string functions): Add unistr/u*-mbtoucr.
54802         (Java): Add javacomp-script, javaexec-script.
54803         (C#): Add csharpcomp-script, csharpexec-script.
54804         (Support for building libraries and executables): Add havelib,
54805         relocatable-*.
54806         (Support for maintaining and releasing projects): Renamed from
54807         'Support for maintaining and release projects'. Add announce-gen.
54808
54809 2007-03-31  Bruno Haible  <bruno@clisp.org>
54810
54811         * README: Talk primarily about git.
54812         (git and CVS): Renamed from CVS.
54813         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
54814         gnulib is available through git.
54815         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
54816
54817 2007-03-30  Bruno Haible  <bruno@clisp.org>
54818
54819         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
54820         * lib/poll_.h: Likewise.
54821         * lib/stat_.h: Likewise.
54822         * lib/sys_time_.h: Likewise.
54823         * lib/sysexit_.h: Likewise.
54824         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
54825         * lib/stdbool_.h: Likewise.
54826         * lib/byteswap_.h: Add double-inclusion guard.
54827
54828 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
54829
54830         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
54831
54832 2007-03-30  Karl Berry  <karl@gnu.org>
54833
54834         * config/srclist-update: double space after USA in the license
54835         substitution, since that's how it's usually (?) written.
54836
54837 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54838
54839         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
54840         reported by Bruno Haible.
54841
54842 2007-03-29  Bruno Haible  <bruno@clisp.org>
54843
54844         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
54845         a bug in AIX iconv().
54846
54847 2007-03-29  Bruno Haible  <bruno@clisp.org>
54848
54849         * modules/ldexpl-tests: New file.
54850         * tests/test-ldexpl.c: New file.
54851
54852 2007-03-29  Bruno Haible  <bruno@clisp.org>
54853
54854         * lib/ldexpl.c: Include fpucw.h.
54855         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
54856         multiplication.
54857         * modules/ldexpl (Depends-on): Add fpucw.
54858
54859 2007-03-29  Bruno Haible  <bruno@clisp.org>
54860
54861         * modules/ldexpl: New file.
54862         * m4/ldexpl.m4: New file.
54863         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
54864         set.
54865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
54866         REPLACE_LDEXPL.
54867         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
54868         REPLACE_LDEXPL.
54869         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54870         gl_FUNC_LDEXPL_WORKS.
54871         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
54872         * modules/mathl (Files): Remove lib/ldexpl.c.
54873         (Depends-on): Add ldexpl.
54874
54875 2007-03-29  Bruno Haible  <bruno@clisp.org>
54876
54877         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
54878
54879 2007-03-29  Bruno Haible  <bruno@clisp.org>
54880
54881         * tests/test-striconveh.c (main): Don't assume that a direct conversion
54882         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
54883         and possibly also HP-UX.
54884         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54885         work on AIX, IRIX, HP-UX, OSF/1.
54886         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
54887         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
54888         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
54889         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
54890         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
54891         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
54892
54893 2007-03-29  Bruno Haible  <bruno@clisp.org>
54894
54895         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
54896
54897 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54898
54899         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
54900         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
54901
54902 2007-03-29  Eric Blake  <ebb9@byu.net>
54903
54904         * lib/acl-internal.h: Remove redundant include.
54905         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
54906         Cygwin when a file is locked.
54907
54908 2007-03-29  Bruno Haible  <bruno@clisp.org>
54909
54910         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
54911         file.
54912         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
54913
54914 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54915
54916         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
54917         try to remove a parent directory if the child couldn't be removed
54918         (except for the first rmdir, which could fail because the child
54919         doesn't exist).  Problem reported by Jeff Blaine in
54920         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
54921
54922 2007-03-28  Bruno Haible  <bruno@clisp.org>
54923
54924         * lib/striconveh.c (utf8conv_carefully): New function.
54925         (mem_cd_iconveh_internal): Invoke it.
54926
54927 2007-03-28  Bruno Haible  <bruno@clisp.org>
54928
54929         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
54930         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
54931         input.
54932         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
54933         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
54934         unistr/u8-uctomb.
54935
54936 2007-03-28  Bruno Haible  <bruno@clisp.org>
54937
54938         * modules/unistr/u8-mbtoucr: New file.
54939         * lib/unistr/u8-mbtoucr.c: New file.
54940         * modules/unistr/u16-mbtoucr: New file.
54941         * lib/unistr/u16-mbtoucr.c: New file.
54942         * modules/unistr/u16-mbtoucr: New file.
54943         * lib/unistr/u16-mbtoucr.c: New file.
54944         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
54945
54946 2007-03-27  Simon Josefsson  <simon@josefsson.org>
54947             Bruno Haible  <bruno@clisp.org>
54948
54949         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
54950         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
54951         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
54952
54953         * m4/stdio_h.m4: Add stubs for vasprintf too.
54954
54955         * modules/stdio: Support vasprintf in sed command.
54956
54957         * modules/vasprintf: Depend on stdio for prototypes.  Remove
54958         vasprintf.h.  Add stdio module indicator.
54959
54960         * lib/stdio_.h: Declare asprintf and vasprintf, based on
54961         vasprintf.h.
54962
54963         * lib/vasprintf.h: File removed.
54964
54965         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
54966         * lib/vasprintf.c: Ditto.
54967         * lib/xvasprintf.c: Ditto.
54968         * tests/test-vasprintf-posix.c: Ditto.
54969         * tests/test-vasprintf.c: Ditto.
54970
54971 2007-03-27  Bruno Haible  <bruno@clisp.org>
54972
54973         Make vasnprintf multithread-safe.
54974         * lib/vasnprintf.c (decimal_point_char): New function.
54975         (VASNPRINTF): Use it.
54976         Suggested by Simon Josefsson.
54977
54978 2007-03-27  Eric Blake  <ebb9@byu.net>
54979
54980         Support sub-second birthtime on cygwin.
54981         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
54982         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
54983         (get_stat_birthtime): Also work with st_birthtim.
54984
54985 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
54986
54987         * lib/stat-time.h (USE_BIRTHTIME): Remove.
54988         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
54989         (get_stat_birthtime_ns): Do not try to use "spare" fields.
54990         (get_stat_birthtime_ns): Simplify compile-time tests.
54991         (get_stat_birthtime): Change the API to look like
54992         get_stat_mtime etc., except return a negative tv_nsec on error.
54993         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
54994         Don't check for "spare" fields.
54995         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
54996         or for struct stat.st_birthtime, as these tests aren't used.
54997         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
54998
54999 2007-03-27  Bruno Haible  <bruno@clisp.org>
55000
55001         * lib/stat-time.h: Include <sys/stat.h>.
55002
55003 2007-03-27  James Youngman  <jay@gnu.org>
55004
55005         * lib/stat-time.h (get_stat_birthtime): New function for
55006           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55007         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55008           and its variants.
55009         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55010         * modules/stat-time-test: New file.
55011         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55012
55013 2007-03-26  Bruno Haible  <bruno@clisp.org>
55014
55015         Better support of signalling NaNs.
55016         * lib/atanl.c: Include isnanl.h.
55017         (atanl): Perform test for NaN at the beginning of the function and
55018         through a call to isnanl.
55019         * lib/cosl.c: Include isnanl.h.
55020         (cosl): Perform test for NaN at the beginning of the function and
55021         through a call to isnanl.
55022         * lib/ldexpl.c: Include isnanl.h.
55023         (ldexpl): Perform test for NaN through a call to isnanl.
55024         * lib/logl.c: Include isnanl.h.
55025         (logl): Perform test for NaN at the beginning of the function and
55026         through a call to isnanl.
55027         * lib/sinl.c: Include isnanl.h.
55028         (sinl): Perform test for NaN at the beginning of the function and
55029         through a call to isnanl.
55030         * lib/sqrtl.c: Include isnanl.h.
55031         (sqrtl): Perform test for NaN at the beginning of the function and
55032         through a call to isnanl.
55033         * lib/tanl.c: Include isnanl.h.
55034         (tanl): Perform test for NaN at the beginning of the function and
55035         through a call to isnanl.
55036         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55037         * modules/mathl (Depends-on): Add isnanl.
55038
55039 2007-03-26  Eric Blake  <ebb9@byu.net>
55040
55041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55042         regression in logic sense of previous patch.
55043
55044 2007-03-26  Bruno Haible  <bruno@clisp.org>
55045
55046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55047         unportable shell command "if ! ...".
55048         Reported by Ralf Wildenhues.
55049
55050 2007-03-25  Bruno Haible  <bruno@clisp.org>
55051
55052         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55053         <sysexits.h> file, and only add EX_CONFIG.
55054         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55055         absolute file name and whether it is sufficient. Substitute also
55056         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55057         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55058         ABSOLUTE_SYSEXITS_H into sysexits.h.
55059
55060 2007-03-25  Bruno Haible  <bruno@clisp.org>
55061
55062         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55063         hints is NULL.
55064
55065 2007-03-25  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55068         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55069
55070 2007-03-25  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/vasnprintf.c: Include langinfo.h.
55073         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55074         multithread-safe.
55075         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55076         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55077         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55078         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55079         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55080         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55081         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55082         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55083         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55084         Reported by Simon Josefsson.
55085
55086 2007-03-25  Bruno Haible  <bruno@clisp.org>
55087
55088         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55089         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55090         * modules/vasnprintf (Depends-on): Add stdint.
55091
55092 2007-03-25  Bruno Haible  <bruno@clisp.org>
55093
55094         * modules/fpieee: New file.
55095         * m4/fpieee.m4: New file.
55096         * modules/isnan-nolibm (Depends-on): Add fpieee.
55097         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55098         * modules/isnanl (Depends-on): Add fpieee.
55099
55100 2007-03-25  Bruno Haible  <bruno@clisp.org>
55101
55102         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55103
55104 2007-03-25  Bruno Haible  <bruno@clisp.org>
55105
55106         Avoid test failures on IRIX 6.5.
55107         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55108         (main): Use it.
55109         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55110         macros.
55111         (main): Use them.
55112
55113 2007-03-25  Bruno Haible  <bruno@clisp.org>
55114
55115         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55116         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55117         exists but doesn't work.
55118         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55119         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55121         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55122         math.h.
55123
55124 2007-03-25  Bruno Haible  <bruno@clisp.org>
55125
55126         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55127         returns inf. Needed on IRIX 6.5.
55128
55129 2007-03-25  Bruno Haible  <bruno@clisp.org>
55130
55131         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55132         (main): Use isnanl instead of x != x idiom.
55133         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55134
55135         * tests/test-frexp.c: Include isnan.h.
55136         (main): Use isnan instead of x != x idiom.
55137         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55138
55139 2007-03-25  Bruno Haible  <bruno@clisp.org>
55140
55141         * tests/test-frexp.c (NaN): New function/macro.
55142         (main): Use it instead of 0.0 / 0.0.
55143         * tests/test-isnan.c (NaN): New function/macro.
55144         (main): Use it instead of 0.0 / 0.0.
55145         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55146         (test_function): Use it instead of 0.0 / 0.0.
55147         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55148         (test_function): Use it instead of 0.0 / 0.0.
55149         * tests/test-snprintf-posix.h (NaN): New function/macro.
55150         (test_function): Use it instead of 0.0 / 0.0.
55151         * tests/test-sprintf-posix.h (NaN): New function/macro.
55152         (test_function): Use it instead of 0.0 / 0.0.
55153         * tests/test-fprintf-posix.h (NaN): New function/macro.
55154         (test_function): Use it instead of 0.0 / 0.0.
55155         * tests/test-printf-posix.h (NaN): New function/macro.
55156         (test_function): Use it instead of 0.0 / 0.0.
55157
55158         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55159
55160 2007-03-25  Bruno Haible  <bruno@clisp.org>
55161
55162         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55163
55164 2007-03-25  Bruno Haible  <bruno@clisp.org>
55165
55166         * lib/regexec.c (merge_state_with_log): Make static.
55167
55168 2007-03-25  Bruno Haible  <bruno@clisp.org>
55169
55170         * lib/trigl.c (kernel_rem_pio2): Make static.
55171
55172 2007-03-25  Bruno Haible  <bruno@clisp.org>
55173
55174         * lib/sincosl.c (sincosl_table): Make static.
55175
55176 2007-03-25  Bruno Haible  <bruno@clisp.org>
55177
55178         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55179         if the compiler does not support C99.
55180
55181 2007-03-25  Bruno Haible  <bruno@clisp.org>
55182
55183         * modules/time (Makefile.am): Ensure all rule action lines start with a
55184         tab.
55185
55186 2007-03-24  Bruno Haible  <bruno@clisp.org>
55187
55188         * modules/tsearch-tests: New file.
55189         * tests/test-tsearch.sh: New file.
55190         * tests/test-tsearch.c: New file, mostly copied from glibc.
55191
55192         * modules/search-tests: New file.
55193         * tests/test-search.c: New file.
55194
55195         * modules/search: New file.
55196         * lib/search_.h: New file, incorporating lib/tsearch.h.
55197         * m4/search_h.m4: New file.
55198         * lib/tsearch.h: Remove file.
55199         * lib/tsearch.c: Include search.h instead of tsearch.h.
55200         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55201         HAVE_TSEARCH.
55202         * modules/tsearch (Files): Remove lib/tsearch.h.
55203         (Depends-on): Add search.
55204         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55205         (Include): Change tsearch.h into search.h.
55206
55207 2007-03-24  Bruno Haible  <bruno@clisp.org>
55208
55209         * modules/fpucw: New file.
55210         * lib/fpucw.h: New file.
55211         * lib/frexp.c: Include fpucw.h.
55212         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55213         (FUNC): Use them.
55214         * lib/printf-frexp.c: Include fpucw.h.
55215         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55216         (FUNC): Use them.
55217         * lib/vasnprintf.c: Include fpucw.h.
55218         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55219         'long double' calculations.
55220         * tests/test-frexpl.c: Include fpucw.h.
55221         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55222         * tests/test-printf-frexpl.c: Include fpucw.h.
55223         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55224         * modules/frexpl (Depends-on): Add fpucw.
55225         * modules/printf-frexpl (Depends-on): Likewise.
55226         * modules/fprintf-posix (Depends-on): Likewise.
55227         * modules/snprintf-posix (Depends-on): Likewise.
55228         * modules/sprintf-posix (Depends-on): Likewise.
55229         * modules/vasnprintf-posix (Depends-on): Likewise.
55230         * modules/vasprintf-posix (Depends-on): Likewise.
55231         * modules/vfprintf-posix (Depends-on): Likewise.
55232         * modules/vsnprintf-posix (Depends-on): Likewise.
55233         * modules/vsprintf-posix (Depends-on): Likewise.
55234         * modules/frexpl-tests (Depends-on): Likewise.
55235         * modules/printf-frexpl-tests (Depends-on): Likewise.
55236
55237 2007-03-24  Bruno Haible  <bruno@clisp.org>
55238
55239         * lib/float+.h: New file.
55240         * lib/isnan.c: Include float+.h.
55241         (SIZE): New macro.
55242         (FUNC): Compare only SIZE bytes of the value.
55243         * lib/vasnprintf.c: Include float+.h.
55244         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55245         SIZEOF_LDBL or SIZEOF_DBL bytes.
55246         * modules/isnan-nolibm (Files): Add lib/float+.h.
55247         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55248         * modules/isnanl (Files): Add lib/float+.h.
55249         * modules/vasnprintf (Files): Add lib/float+.h.
55250
55251 2007-03-24  Bruno Haible  <bruno@clisp.org>
55252
55253         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55254         include isnanl-nolibm.h.
55255
55256 2007-03-24  Bruno Haible  <bruno@clisp.org>
55257
55258         * tests/test-read-file.c (main): Don't produce spurious output for
55259         expected situations. Make the test fail if it encountered unexpected
55260         results.
55261
55262 2007-03-24  Bruno Haible  <bruno@clisp.org>
55263
55264         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55265         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55266
55267 2007-03-24  Bruno Haible  <bruno@clisp.org>
55268
55269         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55270
55271 2007-03-24  Bruno Haible  <bruno@clisp.org>
55272
55273         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55274         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55275
55276         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55277         * modules/utf8-ucs4: Turn into a symbolic link to module
55278         unistr/u8-mbtouc.
55279
55280         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55281         utf8-ucs4-unsafe.
55282         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55283         unistr/u8-mbtouc-unsafe.
55284
55285         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55286         * modules/utf16-ucs4: Turn into a symbolic link to module
55287         unistr/u16-mbtouc.
55288
55289         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55290         utf16-ucs4-unsafe.
55291         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55292         unistr/u16-mbtouc-unsafe.
55293
55294         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55295         * modules/ucs4-utf8: Turn into a symbolic link to module
55296         unistr/u8-ubtomb.
55297
55298         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55299         * modules/ucs4-utf16: Turn into a symbolic link to module
55300         unistr/u16-ubtomb.
55301
55302 2007-03-24  Bruno Haible  <bruno@clisp.org>
55303
55304         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55305         Enable the function only if HAVE_INLINE.
55306         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55307         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55308         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55309         Enable the function only if HAVE_INLINE.
55310         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55311         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55312         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55313         Enable the function only if HAVE_INLINE.
55314         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55315         Enable the function only if HAVE_INLINE.
55316         * modules/utf8-ucs4: Update.
55317         * modules/utf8-ucs4-unsafe: Update.
55318         * modules/utf16-ucs4: Update.
55319         * modules/utf16-ucs4-unsafe: Update.
55320         * modules/ucs4-utf8: Update.
55321         * modules/ucs4-utf16: Update.
55322
55323 2007-03-24  Bruno Haible  <bruno@clisp.org>
55324
55325         * lib/utf8-ucs4.h: Remove file.
55326         * lib/utf8-ucs4-unsafe.h: Remove file.
55327         * lib/utf16-ucs4.h: Remove file.
55328         * lib/utf16-ucs4-unsafe.h: Remove file.
55329         * lib/ucs4-utf8.h: Remove file.
55330         * lib/ucs4-utf16.h: Remove file.
55331         * lib/unistr.h: Include their previous contents.
55332         * m4/utf-ucs4.m4: Remove file.
55333         * m4/ucs4-utf.m4: Remove file.
55334         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55335         (Depends-on): Add unistr/base.
55336         (configure.ac): Remove gl_UTF_UCS4.
55337         (Makefile.am): Update.
55338         (Include): Change to unistr.h.
55339         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55340         (Depends-on): Add unistr/base.
55341         (configure.ac): Remove gl_UTF_UCS4.
55342         (Makefile.am): Update.
55343         (Include): Change to unistr.h.
55344         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55345         (Depends-on): Add unistr/base.
55346         (configure.ac): Remove gl_UTF_UCS4.
55347         (Makefile.am): Update.
55348         (Include): Change to unistr.h.
55349         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55350         (Depends-on): Add unistr/base.
55351         (configure.ac): Remove gl_UTF_UCS4.
55352         (Makefile.am): Update.
55353         (Include): Change to unistr.h.
55354         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55355         (Depends-on): Add unistr/base.
55356         (configure.ac): Remove gl_UCS4_UTF.
55357         (Makefile.am): Update.
55358         (Include): Change to unistr.h.
55359         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55360         (Depends-on): Add unistr/base.
55361         (configure.ac): Remove gl_UCS4_UTF.
55362         (Makefile.am): Update.
55363         (Include): Change to unistr.h.
55364         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55365         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55366         utf8-ucs4-unsafe.h.
55367         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55368         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55369         utf16-ucs4-unsafe.h.
55370         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55371         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55372         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55373         * lib/unistr/u8-strchr.c: Likewise.
55374         * lib/unistr/u8-strrchr.c: Likewise.
55375         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55376         * lib/unistr/u16-strchr.c: Likewise.
55377         * lib/unistr/u16-strrchr.c: Likewise.
55378         * lib/striconveh.c: Update.
55379         * lib/linebreak.c: Update.
55380
55381 2007-03-24  Bruno Haible  <bruno@clisp.org>
55382
55383         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55384         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55385
55386 2007-03-22  Bruno Haible  <bruno@clisp.org>
55387
55388         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55389
55390 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55391
55392         * MODULES.html.sh (File system functions): New module write-any-file.
55393         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55394         * m4/write-any-file.m4: New files.
55395
55396 2007-03-23  Eric Blake  <ebb9@byu.net>
55397
55398         * gnulib-tool: Rearrange space-tab sequences, since some editors
55399         like to eat them.
55400
55401 2007-03-23  Eric Blake  <ebb9@byu.net>
55402
55403         * lib/version-etc.c (version_etc_va): Update license wording to
55404         be more concise.  Recommended by Richard Stallman.
55405
55406 2007-03-22  Bruno Haible  <bruno@clisp.org>
55407
55408         * lib/poll.c (MSG_PEEK): New fallback definition.
55409
55410 2007-03-22  Bruno Haible  <bruno@clisp.org>
55411
55412         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55413         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55414         (main): Update.
55415         Fixes a compilation error on BeOS.
55416
55417 2007-03-22  Bruno Haible  <bruno@clisp.org>
55418
55419         * modules/frexpl-tests: New file.
55420         * tests/test-frexpl.c: New file.
55421
55422         * modules/frexpl: New file.
55423         * m4/frexpl.m4: New file.
55424         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55425         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55427         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55428         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55429         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55430
55431 2007-03-22  Bruno Haible  <bruno@clisp.org>
55432
55433         * lib/frexpl.c: Share code with lib/frexp.c.
55434         * modules/mathl (Files): Add lib/frexp.c.
55435         (Depends-on): Add isnanl-nolibm.
55436
55437 2007-03-22  Bruno Haible  <bruno@clisp.org>
55438
55439         * modules/printf-frexp (Files): Add m4/frexp.m4.
55440         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55441         only if the found frexp function actually works.
55442
55443 2007-03-22  Bruno Haible  <bruno@clisp.org>
55444
55445         * lib/frexp.c: Remove older implementation that uses divisions.
55446
55447 2007-03-21  Bruno Haible  <bruno@clisp.org>
55448
55449         * modules/frexp-tests: New file.
55450         * tests/test-frexp.c: New file.
55451
55452         * modules/frexp: New file.
55453         * lib/frexp.c: New file.
55454         * m4/frexp.m4: New file.
55455         * lib/math_.h (frexp): New declaration.
55456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
55457         REPLACE_FREXP.
55458         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
55459
55460 2007-03-21  Bruno Haible  <bruno@clisp.org>
55461
55462         * modules/isnanl-tests: New file.
55463         * tests/test-isnanl.c: New file.
55464
55465         * modules/isnanl: New file.
55466         * lib/isnanl.h: New file.
55467         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
55468         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
55469         gl_FUNC_ISNANL_WORKS.
55470         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55471         New macros.
55472
55473 2007-03-21  Bruno Haible  <bruno@clisp.org>
55474
55475         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55476         lib/isnanl.h.
55477         (Include): Update.
55478         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55479         * lib/vasnprintf.c: Update.
55480         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55481         tests/test-isnanl.h, remove tests/test-isnanl.c.
55482         (Makefile.am): Update.
55483         * tests/test-isnanl-nolibm.c: New file.
55484         * tests/test-isnanl.h: New file.
55485         * tests/test-isnanl.c: Remove file.
55486
55487 2007-03-21  Jim Meyering  <jim@meyering.net>
55488
55489         When trying to open ".", treat ESTALE like EACCES.
55490         * lib/savewd.c (savewd_save): Resort to forking not just upon
55491         failure with EACCES, but also when errno is ESTALE.
55492
55493 2007-03-20  Bruno Haible  <bruno@clisp.org>
55494
55495         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55496         Needed on AIX 5.1. Reported by Matthew Woehlke.
55497
55498 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55499
55500         Suggestions by Bruno Haible:
55501         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55502         our own.
55503         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55504         * modules/acl (Depends-on): Add gettext.
55505
55506 2007-03-19  Bruno Haible  <bruno@clisp.org>
55507
55508         * modules/iconvme: Remove file.
55509         * lib/iconvme.h: Remove file.
55510         * lib/iconvme.c: Remove file.
55511         * m4/iconvme.m4: Remove file.
55512
55513 2007-03-19  Bruno Haible  <bruno@clisp.org>
55514
55515         * doc/relocatable-maint.texi: Break long shell script line.
55516         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55517
55518 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55519
55520         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55521         handle file_has_acl.
55522         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55523         * lib/acl.c: Move header inclusions and related macro defns into
55524         lib/acl-internal.h.
55525         (S_ISLNK): Remove defn, since that's now done for us.
55526         (file_has_acl): Move to lib/file-has-acl.c.
55527         Call acl_trivial if available.  This is the crucial part of the fix.
55528         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55529         shared within the library.  Rewrite a bit, partly to make it compatible
55530         with the GNU coding style.
55531         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55532         Remove unnecessary double-quotes.
55533         Don't test for acl_to_text; the build will catch that.
55534         Replace acl_entries if it doesn't exist and it is needed.
55535         Check for -lsec and acl_trivial (as used on Solaris 10).
55536         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
55537         lib/file-has-acl.c.
55538         (Depends-on): Add sys_stat, for S_ISLNK.
55539
55540 2007-03-19  Ben Pfaff  <blp@gnu.org>
55541
55542         * doc/gnulib.texi: Fix typos.
55543         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55544
55545 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
55548         If size is zero here, buf must be zero.
55549
55550 2007-03-19  Simon Josefsson  <simon@josefsson.org>
55551
55552         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
55553         <bruno@clisp.org>.
55554
55555 2007-03-18  Bruno Haible  <bruno@clisp.org>
55556
55557         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
55558         Suggested by Eric Blake.
55559
55560 2007-03-18  Ben Pfaff  <blp@gnu.org>
55561
55562         * doc/relocatable.texi: Recommend using as prefix a directory
55563         that does not exist and will never be created.  Based on
55564         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
55565         and others.
55566
55567 2007-03-17  Bruno Haible  <bruno@clisp.org>
55568
55569         * lib/fchownat.c: Include lchown.h.
55570
55571 2007-03-17  Bruno Haible  <bruno@clisp.org>
55572
55573         Fix endless loop when the given allocated size was > INT_MAX.
55574         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
55575         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
55576         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
55577         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
55578         * lib/sprintf.c (sprintf): Likewise.
55579
55580 2007-03-17  Bruno Haible  <bruno@clisp.org>
55581
55582         * tests/test-argp-2.sh (func_compare): Output a context diff.
55583
55584 2007-03-17  Bruno Haible  <bruno@clisp.org>
55585
55586         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
55587         locale's decimal-point character.
55588
55589 2007-03-17  Bruno Haible  <bruno@clisp.org>
55590
55591         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
55592         before comparing it. Needed because on some platforms (e.g. x86) a
55593         'long double' occupies less bytes than sizeof (long double).
55594
55595 2007-03-17  Bruno Haible  <bruno@clisp.org>
55596
55597         * tests/test-crc.c (main): Make printf statements 64-bit clean.
55598         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
55599         * tests/test-getaddrinfo.c (simple): Likewise.
55600         * tests/test-read-file.c (main): Likewise.
55601
55602 2007-03-17  Bruno Haible  <bruno@clisp.org>
55603
55604         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
55605
55606 2007-03-17  Bruno Haible  <bruno@clisp.org>
55607
55608         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
55609         unused variable.
55610
55611 2007-03-17  Bruno Haible  <bruno@clisp.org>
55612
55613         * tests/test-c-strcasecmp.c: Include c-strcase.h.
55614         * tests/test-c-strncasecmp.c: Likewise.
55615
55616 2007-03-17  Bruno Haible  <bruno@clisp.org>
55617
55618         * modules/stdlib (Depends-on): Add unistd.
55619         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
55620         Needed for MacOS X 10.3.
55621
55622 2007-03-17  Bruno Haible  <bruno@clisp.org>
55623
55624         * lib/unistr/u-strdup.h: Include <stdlib.h>.
55625
55626 2007-03-17  Bruno Haible  <bruno@clisp.org>
55627
55628         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
55629
55630 2007-03-17  Bruno Haible  <bruno@clisp.org>
55631
55632         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
55633         to reflect files copied from gnulib (with or without modifications).
55634         Suggested by Jim Meyering.
55635
55636 2007-03-17  Eric Blake  <ebb9@byu.net>
55637
55638         * NEWS: Document stdlib change from 2007-02-18.
55639
55640 2007-03-17  Jim Meyering  <jim@meyering.net>
55641
55642         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
55643         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
55644         someone uses a name containing shell meta-characters.
55645         Reported by Alfred M. Szmidt.
55646
55647         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
55648
55649 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55650
55651         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
55652         and copy gettext configuration files only if configure.ac contains
55653         a use of AM_GNU_GETTEXT_VERSION.
55654
55655 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55656
55657         * build-aux/bootstrap (gnulib_name): New variable.
55658         (gnulib_tool_options): Use it.
55659
55660 2007-03-13  Simon Josefsson  <simon@josefsson.org>
55661
55662         * tests/test-des.c: Use new namespace.
55663
55664 2007-03-15  Bruno Haible  <bruno@clisp.org>
55665
55666         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
55667         Reported by James Youngman <jay@gnu.org>.
55668
55669 2007-03-15  Bruno Haible  <bruno@clisp.org>
55670
55671         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
55672         declared prototype. Needed with cc on OSF/1 5.1.
55673
55674 2007-03-15  Bruno Haible  <bruno@clisp.org>
55675
55676         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
55677         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
55678         (struct gl_list_implementation): Add dispose_fn argument to the
55679         'create_empty', 'create' methods.
55680         (struct gl_list_impl_base): Add field 'dispose_fn'.
55681         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
55682         argument.
55683         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
55684         dispose_fn argument.
55685         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
55686         dispose_fn on the dropped values.
55687         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
55688         dispose_fn argument.
55689         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
55690         dropped values.
55691         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
55692         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55693         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
55694         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55695         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
55696         argument.
55697         (gl_tree_list_free): Call dispose_fn on the dropped values.
55698         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
55699         the dropped values.
55700         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55701         Add dispose_fn argument.
55702         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
55703         Call dispose_fn on the dropped values.
55704         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
55705         Add dispose_fn argument.
55706         (gl_sublist_create): Initialize the 'dispose_fn' field.
55707         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
55708         * tests/test-array_list.c (main): Update.
55709         * tests/test-carray_list.c (main): Update.
55710         * tests/test-avltree_list.c (main): Update.
55711         * tests/test-rbtree_list.c (main): Update.
55712         * tests/test-avltreehash_list.c (main): Update.
55713         * tests/test-rbtreehash_list.c (main): Update.
55714         * tests/test-linked_list.c (main): Update.
55715         * tests/test-linkedhash_list.c (main): Update.
55716         * tests/test-array_oset.c (main): Update.
55717
55718 2007-03-15  Bruno Haible  <bruno@clisp.org>
55719
55720         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
55721         (gl_oset_create_empty): Add dispose_fn argument.
55722         (struct gl_oset_implementation): Add dispose_fn argument to
55723         'create_empty' method.
55724         (struct gl_oset_impl_base): Add dispose_fn field.
55725         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
55726         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
55727         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
55728         values.
55729         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
55730         (gl_tree_oset_free): Call dispose_fn on the dropped values.
55731         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55732         dropped value.
55733         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55734         dropped value.
55735         * tests/test-array_oset.c (main): Update.
55736         * tests/test-avltree_oset.c (main): Update.
55737         * tests/test-rbtree_oset.c (main): Update.
55738         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
55739
55740 2007-03-13  Bruno Haible  <bruno@clisp.org>
55741
55742         * tests/test-stdbool.c (i): Update after last patch.
55743
55744 2007-03-12  Bruno Haible  <bruno@clisp.org>
55745
55746         * lib/quotearg.c: Include <wctype.h> early, before the definition of
55747         the iswprint macro. Needed on Solaris 2.5.1.
55748
55749 2007-03-12  Bruno Haible  <bruno@clisp.org>
55750
55751         * tests/test-printf-frexp.c (main): Declare x as volatile.
55752
55753 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55754
55755         * doc/gnulib.texi (Build robot for gnulib): New section.
55756
55757 2007-03-12  Jim Meyering  <jim@meyering.net>
55758
55759         * build-aux/bootstrap: New file.
55760         * build-aux/bootstrap.conf: New file, from coreutils.
55761
55762 2007-03-11  Bruno Haible  <bruno@clisp.org>
55763
55764         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
55765
55766 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55767
55768         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
55769         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
55770         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
55771
55772 2007-03-11  Bruno Haible  <bruno@clisp.org>
55773
55774         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
55775         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
55776
55777 2007-03-11  Bruno Haible  <bruno@clisp.org>
55778
55779         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
55780         formula. Needed for SunPRO C 5.0.
55781
55782 2007-03-11  Bruno Haible  <bruno@clisp.org>
55783
55784         * modules/long-options (Depends-on): Add getopt.
55785
55786 2007-03-11  Bruno Haible  <bruno@clisp.org>
55787
55788         * modules/modechange (Depends-on): Add stdbool.
55789
55790 2007-03-11  Bruno Haible  <bruno@clisp.org>
55791
55792         * modules/i-ring (Depends-on): Add stdbool.
55793
55794 2007-03-11  Bruno Haible  <bruno@clisp.org>
55795
55796         * modules/gc-des (Depends-on): Add stdbool.
55797
55798 2007-03-11  Bruno Haible  <bruno@clisp.org>
55799
55800         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
55801
55802 2007-03-11  Bruno Haible  <bruno@clisp.org>
55803
55804         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
55805
55806 2007-03-11  Bruno Haible  <bruno@clisp.org>
55807
55808         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
55809
55810 2007-03-11  Bruno Haible  <bruno@clisp.org>
55811
55812         * lib/vasnprintf.c (sprintf): Undefine.
55813
55814 2007-03-11  Bruno Haible  <bruno@clisp.org>
55815
55816         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
55817         initializers in SunPRO C and Compaq C compilers.
55818
55819 2007-03-11  Bruno Haible  <bruno@clisp.org>
55820
55821         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
55822         decrementing code ANSI C compliant.
55823
55824 2007-03-11  Bruno Haible  <bruno@clisp.org>
55825
55826         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
55827         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
55828
55829 2007-03-11  Bruno Haible  <bruno@clisp.org>
55830
55831         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
55832         <stdbool.h> substitute doesn't pass.
55833
55834 2007-03-11  Bruno Haible  <bruno@clisp.org>
55835
55836         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
55837
55838 2007-03-11  Bruno Haible  <bruno@clisp.org>
55839
55840         * gnulib-tool (func_create_megatestdir): Create also an autobuild
55841         script, for submission to autobuild.josefsson.org.
55842
55843 2007-03-10  Bruno Haible  <bruno@clisp.org>
55844
55845         * modules/canonicalize-lgpl-tests: New file.
55846         * tests/test-canonicalize-lgpl.sh: New file.
55847         * tests/test-canonicalize-lgpl.c: New file.
55848
55849         * modules/c-strcase-tests: New file.
55850         * tests/test-c-strcase.sh: New file.
55851         * tests/test-c-strcasecmp.c: New file.
55852         * tests/test-c-strncasecmp.c: New file.
55853
55854         * modules/atexit-tests: New file.
55855         * tests/test-atexit.sh: New file.
55856         * tests/test-atexit.c: New file.
55857
55858 2007-03-10  Bruno Haible  <bruno@clisp.org>
55859
55860         * tests/test-binary-io.sh: Use temporary filenames that are not so
55861         likely to clash with those of other tests (in a parallel make).
55862         * tests/test-binary-io.c: Likewise.
55863
55864 2007-03-10  Bruno Haible  <bruno@clisp.org>
55865
55866         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
55867         fallback; use #error instead.
55868         Suggested by Simon Josefsson.
55869
55870 2007-03-10  Bruno Haible  <bruno@clisp.org>
55871
55872         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
55873         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
55874         first and the last.
55875
55876 2007-03-10  Bruno Haible  <bruno@clisp.org>
55877
55878         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
55879
55880 2007-03-10  Bruno Haible  <bruno@clisp.org>
55881
55882         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
55883         "make distcheck".
55884         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
55885         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
55886         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
55887
55888 2007-03-10  Bruno Haible  <bruno@clisp.org>
55889
55890         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
55891         variable.
55892         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
55893         variable.
55894
55895 2007-03-09  Eric Blake  <ebb9@byu.net>
55896         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
55897
55898         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
55899         types are not being provided by gnulib.
55900         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
55901         types are supported.
55902
55903 2007-03-10  Bruno Haible  <bruno@clisp.org>
55904
55905         * lib/stdio_.h (__attribute__): New macro.
55906         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
55907         vsprintf): Specify __attribute__ __format__ for GCC.
55908         Suggested by Eric Blake.
55909
55910 2007-03-09  Bruno Haible  <bruno@clisp.org>
55911
55912         * modules/printf-posix-tests: New file.
55913         * tests/test-printf-posix.sh: New file.
55914         * tests/test-printf-posix.c: New file.
55915
55916         * modules/printf-posix: New file.
55917         * lib/printf.c: New file.
55918         * m4/printf-posix-rpl.m4: New file.
55919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
55920         REPLACE_PRINTF.
55921         * lib/stdio_.h (printf): New declaration.
55922         (format, __format__, ____printf____, ____scanf____, ____strftime____,
55923         ____strfmon____): New macros.
55924         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
55925         REPLACE_PRINTF.
55926
55927 2007-03-09  Bruno Haible  <bruno@clisp.org>
55928
55929         * tests/test-vasnprintf-posix2.sh: New file.
55930         * tests/test-vasnprintf-posix2.c: New file.
55931         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
55932         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
55933         (Makefile.am): Activate test-vasnprintf-posix2.sh.
55934
55935         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
55936         a locale dependent decimal point, rather than always '.'.
55937
55938 2007-03-09  Eric Blake  <ebb9@byu.net>
55939
55940         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
55941         spite of platforms like Tandem/NSK that define it to -1.
55942
55943 2007-03-08  Bruno Haible  <bruno@clisp.org>
55944
55945         * modules/vprintf-posix-tests: New file.
55946         * tests/test-vprintf-posix.sh: New file.
55947         * tests/test-vprintf-posix.c: New file.
55948         * tests/test-printf-posix.h: New file.
55949
55950         * modules/vprintf-posix: New file.
55951         * lib/vprintf.c: New file.
55952         * m4/vprintf-posix.m4: New file.
55953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
55954         REPLACE_VPRINTF.
55955         * lib/stdio_.h (vprintf): New declaration.
55956         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
55957         REPLACE_VPRINTF.
55958
55959 2007-03-08  Bruno Haible  <bruno@clisp.org>
55960
55961         * modules/fprintf-posix-tests: New file.
55962         * tests/test-fprintf-posix.sh: New file.
55963         * tests/test-fprintf-posix.c: New file.
55964
55965         * modules/fprintf-posix: New file.
55966         * lib/fprintf.c: New file.
55967         * m4/fprintf-posix.m4: New file.
55968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
55969         REPLACE_FPRINTF.
55970         * lib/stdio_.h (fprintf): New declaration.
55971         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
55972         REPLACE_FPRINTF.
55973
55974 2007-03-08  Bruno Haible  <bruno@clisp.org>
55975
55976         * modules/vfprintf-posix-tests: New file.
55977         * tests/test-vfprintf-posix.sh: New file.
55978         * tests/test-vfprintf-posix.c: New file.
55979         * tests/test-fprintf-posix.h: New file.
55980         * tests/test-fprintf-posix.out: New file.
55981
55982         * modules/vfprintf-posix: New file.
55983         * lib/vfprintf.c: New file.
55984         * m4/vfprintf-posix.m4: New file.
55985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
55986         REPLACE_VFPRINTF.
55987         * lib/stdio_.h (vfprintf): New declaration.
55988         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
55989         REPLACE_VFPRINTF.
55990
55991 2007-03-08  Bruno Haible  <bruno@clisp.org>
55992
55993         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
55994
55995 2007-03-08  Bruno Haible  <bruno@clisp.org>
55996
55997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
55998         instead of 'expr' invocations.
55999         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56000         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56001         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56004         Suggested by Paul Eggert.
56005
56006 2007-03-08  Bruno Haible  <bruno@clisp.org>
56007
56008         * modules/fseterr-tests: New file.
56009         * tests/test-fseterr.c: New file.
56010
56011         * modules/fseterr: New file.
56012         * lib/fseterr.h: New file.
56013         * lib/fseterr.c: New file.
56014
56015 2007-03-08  Bruno Haible  <bruno@clisp.org>
56016
56017         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56018         * lib/getopt_.h: Likewise.
56019         * lib/mbswidth.h: Likewise.
56020         * lib/setenv.h: Likewise.
56021         * lib/vasnprintf.h: Likewise.
56022         * lib/vasprintf.h: Likewise.
56023         * lib/verror.h: Likewise.
56024         * lib/xsetenv.h: Likewise.
56025         * lib/xvasprintf.h: Likewise.
56026
56027 2007-03-08  Jim Meyering  <jim@meyering.net>
56028
56029         * users.txt: Add parted.
56030
56031         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56032
56033 2007-03-07  Bruno Haible  <bruno@clisp.org>
56034
56035         * m4/printf.m4: Make the shell script snippets copy&pastable.
56036
56037 2007-03-02  Bruno Haible  <bruno@clisp.org>
56038
56039         * lib/netinet_in_.h: New file.
56040         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56041         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56042         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56043         (Depends-on): Add absolute-header.
56044         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56045         into netinet/in.h.
56046
56047 2007-03-03  Bruno Haible  <bruno@clisp.org>
56048
56049         * lib/sys_select_.h: New file.
56050         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56051         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56052         * modules/sys_select (Files): Add lib/sys_select_.h.
56053         (Depends-on): Add absolute-header.
56054         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56055         into sys/select.h.
56056
56057 2007-03-02  Bruno Haible  <bruno@clisp.org>
56058
56059         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56060         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56061         values.
56062         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56063         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56064         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56065         * modules/sys_socket (Depends-on): Add absolute-header.
56066         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56067         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56068         (Include): Remove requirement of inclusion of <sys/types.h>.
56069
56070 2007-03-02  Bruno Haible  <bruno@clisp.org>
56071
56072         * lib/byteswap_.h (bswap_32): Fix formula.
56073
56074 2007-03-06  Bruno Haible  <bruno@clisp.org>
56075
56076         * modules/sprintf-posix-tests: New file.
56077         * tests/test-sprintf-posix.c: New file.
56078
56079         * modules/sprintf-posix: New file.
56080         * lib/sprintf.c: New file.
56081         * m4/sprintf-posix.m4: New file.
56082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56083         REPLACE_SPRINTF.
56084         * lib/stdio_.h (sprintf): New declaration.
56085         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56086         REPLACE_SPRINTF.
56087
56088 2007-03-06  Bruno Haible  <bruno@clisp.org>
56089
56090         * modules/vsprintf-posix-tests: New file.
56091         * tests/test-vsprintf-posix.c: New file.
56092         * tests/test-sprintf-posix.h: New file.
56093
56094         * modules/vsprintf-posix: New file.
56095         * lib/vsprintf.c: New file.
56096         * m4/vsprintf-posix.m4: New file.
56097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56098         REPLACE_VSPRINTF.
56099         * lib/stdio_.h (vsprintf): New declaration.
56100         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56101         REPLACE_VSPRINTF.
56102
56103 2007-03-06  Bruno Haible  <bruno@clisp.org>
56104
56105         * modules/vsnprintf (Depend-on): Remove minmax.
56106
56107 2007-03-06  Bruno Haible  <bruno@clisp.org>
56108
56109         * modules/snprintf-posix-tests: New file.
56110         * tests/test-snprintf-posix.c: New file.
56111
56112         * modules/snprintf-posix: New file.
56113         * m4/snprintf-posix.m4: New file.
56114         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56115         gl_FUNC_SNPRINTF.
56116         (gl_FUNC_SNPRINTF): Invoke it.
56117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56118         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56119         is set.
56120         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56121
56122 2007-03-06  Bruno Haible  <bruno@clisp.org>
56123
56124         * modules/vsnprintf-posix-tests: New file.
56125         * tests/test-vsnprintf-posix.c: New file.
56126         * tests/test-snprintf-posix.h: New file.
56127
56128         * modules/vsnprintf-posix: New file.
56129         * m4/vsnprintf-posix.m4: New file.
56130         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56131         gl_FUNC_VSNPRINTF.
56132         (gl_FUNC_VSNPRINTF): Invoke it.
56133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56134         * lib/stdio_.h (vsnprintf): Define as a replacement if
56135         REPLACE_VSNPRINTF is set.
56136         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56137
56138 2007-03-06  Bruno Haible  <bruno@clisp.org>
56139
56140         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56141         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56142
56143 2007-03-06  Bruno Haible  <bruno@clisp.org>
56144
56145         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56146         (asinl): Declare also if HAVE_DECL_ASINL is set.
56147         (atanl): Declare also if HAVE_DECL_ATANL is set.
56148         (ceill): Declare also if HAVE_DECL_CEILL is set.
56149         (cosl): Declare also if HAVE_DECL_COSL is set.
56150         (expl): Declare also if HAVE_DECL_EXPL is set.
56151         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56152         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56153         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56154         (logl): Declare also if HAVE_DECL_LOGL is set.
56155         (sinl): Declare also if HAVE_DECL_SINL is set.
56156         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56157         (tanl): Declare also if HAVE_DECL_TANL is set.
56158         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56160         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56161         declaration of frexpl, ldexpl.
56162         * modules/printf-frexpl (Depends-on): Add math.
56163         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56164
56165 2007-03-05  Bruno Haible  <bruno@clisp.org>
56166
56167         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56168         frexpl and ldexpl are declared.
56169         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56170
56171 2007-03-05  Bruno Haible  <bruno@clisp.org>
56172
56173         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56174         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56175
56176 2007-03-05  Bruno Haible  <bruno@clisp.org>
56177
56178         * lib/stdio_.h: Include <stddef.h>.
56179
56180 2007-03-05  Bruno Haible  <bruno@clisp.org>
56181
56182         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56183
56184 2007-03-05  Bruno Haible  <bruno@clisp.org>
56185
56186         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56187         NetBSD 4, from Ralf Wildenhues.
56188
56189 2007-03-04  Bruno Haible  <bruno@clisp.org>
56190
56191         * lib/vasprintf.h: Update #if logic for the case when the functions
56192         exist but are overridden.
56193
56194 2007-03-04  Bruno Haible  <bruno@clisp.org>
56195
56196         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56197         implementations: glibc-2.4 and MacOS X 10.3.
56198         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56199         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56200         * tests/test-vasprintf-posix.c (test_function): Likewise.
56201
56202 2007-03-04  Bruno Haible  <bruno@clisp.org>
56203
56204         * modules/vasprintf-posix-tests: New file.
56205         * tests/test-vasprintf-posix.c: New file.
56206
56207         * modules/vasprintf-posix: New file.
56208         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56209         defined.
56210         * m4/vasprintf-posix.m4: New file.
56211         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56212         gl_FUNC_VASPRINTF.
56213         (gl_FUNC_VASPRINTF): Invoke it.
56214         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56215         here.
56216         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56217
56218 2007-03-04  Bruno Haible  <bruno@clisp.org>
56219
56220         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56221         REPLACE_GETTIMEOFDAY.
56222         * modules/sys_time (Makefile.am): Likewise.
56223         * m4/sys_time_h.m4: Likewise.
56224         * m4/gettimeofday.m4: Likewise.
56225
56226 2007-03-04  Bruno Haible  <bruno@clisp.org>
56227
56228         * modules/vasnprintf-posix-tests: New file.
56229         * tests/test-vasnprintf-posix.c: New file.
56230
56231         * modules/vasnprintf-posix: New file.
56232         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56233         printf-frexpl.h.
56234         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56235         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56236         REPLACE_VASNPRINTF is defined.
56237         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56238         gl_FUNC_VASNPRINTF.
56239         (gl_FUNC_VASNPRINTF): Invoke it.
56240         * m4/vasnprintf-posix.m4: New file.
56241         * m4/printf.m4: New file.
56242
56243 2007-03-04  Bruno Haible  <bruno@clisp.org>
56244
56245         Compile progreloc.c only if --enable-relocatable is specified.
56246         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56247         if --enable-relocatable was specified.
56248         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56249         lib_SOURCES.
56250
56251 2007-03-04  Jim Meyering  <jim@meyering.net>
56252
56253         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56254         Use it consistently, rather than enumerating errno constants.
56255
56256 2007-03-04  Bruno Haible  <bruno@clisp.org>
56257
56258         * modules/xvasprintf-tests: New file.
56259         * tests/test-xvasprintf.c: New file.
56260
56261         * modules/vasprintf-tests: New file.
56262         * tests/test-vasprintf.c: New file.
56263
56264         * modules/vasnprintf-tests: New file.
56265         * tests/test-vasnprintf.c: New file.
56266
56267         * modules/vsnprintf-tests: New file.
56268         * tests/test-vsnprintf.c: New file.
56269
56270         * modules/snprintf-tests: New file.
56271         * tests/test-snprintf.c: New file.
56272
56273 2007-03-04  Bruno Haible  <bruno@clisp.org>
56274
56275         Compile relocatable.c only if --enable-relocatable is specified.
56276         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56277         gl_RELOCATABLE_LIBRARY.
56278         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56279         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56280         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56281         gl_RELOCATABLE_LIBRARY.
56282         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56283         (Makefile.am): Remove lib_SOURCES.
56284         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56285         gl_RELOCATABLE_LIBRARY.
56286         (Makefile.am): Remove lib_SOURCES.
56287         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56288         always.
56289         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56290         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56291
56292 2007-03-04  Bruno Haible  <bruno@clisp.org>
56293
56294         * modules/argmatch-tests: New file.
56295         * tests/test-argmatch.c: New file.
56296
56297         * tests/test-allocsa.c (main): Halve the number of loop runs.
56298
56299         * modules/alloca-opt-tests: New file.
56300         * tests/test-alloca-opt.c: New file.
56301
56302 2007-03-04  Jim Meyering  <jim@meyering.net>
56303
56304         Work around difference between Linux ACLs and Solaris 10 ZFS.
56305         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56306         for EINVAL.
56307
56308 2007-03-03  Bruno Haible  <bruno@clisp.org>
56309
56310         * modules/relocatable-prog (Depends-on): Add back progreloc's
56311         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56312
56313 2007-03-03  Bruno Haible  <bruno@clisp.org>
56314
56315         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56316         * modules/relocatable-lib: New file.
56317
56318 2007-03-03  Bruno Haible  <bruno@clisp.org>
56319
56320         * modules/relocatable-prog: Renamed from modules/relocatable.
56321         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56322
56323 2007-03-03  Bruno Haible  <bruno@clisp.org>
56324
56325         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56326         m4/relocatable-lib.m4.
56327         (Depends-on): Remove 'relocatable'.
56328         (configure.ac): Add gl_RELOCATABLE_NOP.
56329
56330 2007-03-03  Bruno Haible  <bruno@clisp.org>
56331
56332         * modules/relocatable-prog-wrapper: New file.
56333         * modules/relocatable (Depends-on): Add it. Remove all other
56334         dependencies except progname.
56335         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56336
56337         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56338         (gl_FUNC_STRERROR): Nop.
56339         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56340
56341         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56342         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56343
56344         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56345         (gl_FUNC_READLINK): Update.
56346
56347         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56348
56349 2007-03-03  Bruno Haible  <bruno@clisp.org>
56350
56351         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56352         * modules/xreadlink (Depends-on): Add unistd.
56353         * modules/xreadlink-with-size (Depends-on): Likewise.
56354
56355 2007-03-03  Bruno Haible  <bruno@clisp.org>
56356
56357         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56358         extracted from gt_FUNC_SETENV.
56359         (gt_FUNC_SETENV): Remove macro.
56360         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56361         remove gt_FUNC_SETENV.
56362
56363 2007-03-03  Bruno Haible  <bruno@clisp.org>
56364
56365         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56366         ENABLE_RELOCATABLE here.
56367         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56368
56369 2007-03-03  Bruno Haible  <bruno@clisp.org>
56370
56371         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56372         * tests/test-rbtreehash_list.c: Include progname.h.
56373         (main): Call set_program_name.
56374
56375         * modules/rbtree-oset-tests (Depends-on): Add progname.
56376         * tests/test-rbtree_oset.c: Include progname.h.
56377         (main): Call set_program_name.
56378
56379         * modules/rbtree-list-tests (Depends-on): Add progname.
56380         * tests/test-rbtree_list.c: Include progname.h.
56381         (main): Call set_program_name.
56382
56383         * modules/linked-list-tests (Depends-on): Add progname.
56384         * tests/test-linked_list.c: Include progname.h.
56385         (main): Call set_program_name.
56386
56387 2007-03-03  Bruno Haible  <bruno@clisp.org>
56388
56389         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56390         All uses of __restrict changed to _Restrict_.
56391         * lib/glob_.h (__restrict): Remove macro.
56392
56393 2007-03-02  Bruno Haible  <bruno@clisp.org>
56394
56395         * modules/gettext (configure.ac): Require gettext infrastructure
56396         from version 0.16.1.
56397
56398 2007-03-02  Bruno Haible  <bruno@clisp.org>
56399
56400         * modules/linkedhash-list-tests (Depends-on): Add progname.
56401         * tests/test-linkedhash_list.c: Include progname.h.
56402         (main): Call set_program_name.
56403
56404         * modules/carray-list-tests (Depends-on): Add progname.
56405         * tests/test-carray_list.c: Include progname.h.
56406         (main): Call set_program_name.
56407
56408         * modules/avltreehash-list-tests (Depends-on): Add progname.
56409         * tests/test-avltreehash_list.c: Include progname.h.
56410         (main): Call set_program_name.
56411
56412         * modules/avltree-oset-tests (Depends-on): Add progname.
56413         * tests/test-avltree_oset.c: Include progname.h.
56414         (main): Call set_program_name.
56415
56416         * modules/avltree-list-tests (Depends-on): Add progname.
56417         * tests/test-avltree_list.c: Include progname.h.
56418         (main): Call set_program_name.
56419
56420         * modules/array-oset-tests (Depends-on): Add progname.
56421         * tests/test-array_oset.c: Include progname.h.
56422         (main): Call set_program_name.
56423
56424         * modules/array-list-tests (Depends-on): Add progname.
56425         * tests/test-array_list.c: Include progname.h.
56426         (main): Call set_program_name.
56427
56428         * modules/argp-tests (Depends-on): Add progname.
56429         * tests/test-argp.c: Include argp.h first. Include progname.h.
56430         (main): Call set_program_name.
56431
56432 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56433
56434         * doc/gnulib-tool.texi (Initial import): Reword description of
56435         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56436         limited effect even if defined after the first system include.
56437
56438 2007-03-01  Bruno Haible  <bruno@clisp.org>
56439
56440         * build-aux/config.libpath: Update to libtool-1.5.22.
56441         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56442
56443 2007-03-01  Bruno Haible  <bruno@clisp.org>
56444
56445         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56446         foo_CFLAGS.
56447         Reported by Ralf Wildenhues.
56448
56449 2007-03-01  Bruno Haible  <bruno@clisp.org>
56450
56451         * build-aux/install-reloc: Remove object files left over by some
56452         compilers.
56453         Reported by Ralf Wildenhues.
56454
56455 2007-03-01  Bruno Haible  <bruno@clisp.org>
56456
56457         * build-aux/install-reloc: Break long lines.
56458
56459 2007-03-01  Bruno Haible  <bruno@clisp.org>
56460
56461         * doc/relocatable.texi: Document that it may not work on OpenBSD.
56462         Reported by Ralf Wildenhues.
56463
56464 2007-03-01  Bruno Haible  <bruno@clisp.org>
56465
56466         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
56467         include ordering constraints.
56468
56469 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56470
56471         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56472         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56473         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56474         as another example.
56475         * lib/time_.h: Fix misspelling.
56476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56477         Require gl_HEADER_TIME_H_DEFAULTS.
56478         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56479         * m4/time_r.m4 (gl_TIME_R): Likewise.
56480         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56481
56482 2007-03-01  Bruno Haible  <bruno@clisp.org>
56483
56484         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56485         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56486
56487 2007-03-01  Jim Meyering  <jim@meyering.net>
56488
56489         * modules/xreadlink (Maintainer): Add my name.
56490         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56491
56492 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56493             Bruno Haible  <bruno@clisp.org>
56494
56495         * build-aux/install-reloc: Compile also c-ctype.c.
56496         * build-aux/relocatable.sh.in: New file.
56497         * doc/relocatable.texi: New file.
56498         * doc/relocatable-maint.texi: New file.
56499         * doc/gnulib.texi: Include relocatable-maint.texi.
56500         * lib/progreloc.c: Include unistd.h unconditionally.
56501         * lib/relocwrapper.c: Include unistd.h unconditionally.
56502         Include c-ctype.h.
56503         (add_dotbin): Use c_tolower.
56504         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56505         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56506         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56507         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56508         to m4/relocatable-lib.m4.
56509         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56510         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56511         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56512         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56513         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56514         * modules/relocatable: New file.
56515         * modules/relocatable-lib: New file.
56516         * modules/relocatable-script: New file.
56517
56518 2007-02-28  Bruno Haible  <bruno@clisp.org>
56519
56520         Import --enable-relocatable infrastructure.
56521         * build-aux/config.libpath: New file, from GNU gettext.
56522         * build-aux/install-reloc: New file, from GNU gettext.
56523         * build-aux/reloc-ldflags: New file, from GNU gettext.
56524         * lib/relocatable.h: New file, from GNU gettext.
56525         * lib/relocatable.c: New file, from GNU gettext.
56526         * lib/relocwrapper.c: New file, from GNU gettext.
56527         * m4/relocatable.m4: New file, from GNU gettext.
56528
56529 2007-02-28  Bruno Haible  <bruno@clisp.org>
56530
56531         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56532
56533         * modules/xreadlink: New file, from GNU gettext with modifications.
56534         * lib/xreadlink.c: New file, from GNU gettext.
56535         * lib/xreadlink.h: Add comments.
56536         (xreadlink): New declaration.
56537
56538         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
56539         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
56540         lib/xreadlink-with-size.c.
56541         (configure.ac): Remove gl_XREADLINK invocation.
56542         (Makefile.am): Augment lib_SOURCES.
56543         * m4/xreadlink.m4: Remove file.
56544         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
56545         (xreadlink_with_size): Renamed from xreadink.
56546         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
56547         * modules/canonicalize (Depends-on): Replace xreadlink with
56548         xreadlink-with-size.
56549         * lib/canonicalize.c (canonicalize_filename_mode): Update.
56550
56551 2007-02-25  Jim Meyering  <jim@meyering.net>
56552
56553         * build-aux/announce-gen: When complaining about excess arguments,
56554         list them.
56555
56556 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56557
56558         * README: Document signed integer overflow situation more
56559         accurately.
56560
56561 2007-02-25  Bruno Haible  <bruno@clisp.org>
56562
56563         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
56564         'a' or 'A' conversion.
56565
56566 2007-02-25  Bruno Haible  <bruno@clisp.org>
56567
56568         * modules/filename: Renamed from modules/pathname.
56569         (Files): Replace lib/pathname.h with lib/filename.h. Replace
56570         lib/concatpath.c with lib/concat-filename.c.
56571         (Makefile.am): Update.
56572         (Include): Replace pathname.h with filename.h.
56573         * lib/filename.h: Renamed from lib/pathname.h.
56574         (concatenated_filename): Renamed from concatenated_pathname.
56575         * lib/concat-filename.c: Renamed from lib/concatpath.c.
56576         (concatenated_filename): Renamed from concatenated_pathname.
56577         * lib/findprog.c: Include filename.h instead of pathname.h.
56578         (find_in_path): Update.
56579         * lib/javacomp.c: Include filename.h instead of pathname.h.
56580         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56581         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56582         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56583         is_oldgcj_14_13_usable, is_javac_usable): Update.
56584         * lib/javaexec.c: Include filename.h instead of pathname.h.
56585         (execute_java_class): Update.
56586         * modules/findprog: Update.
56587         * modules/javacomp: Update.
56588         * modules/javaexec: Update.
56589         * MODULES.html.sh (File system functions): Add 'filename', remove
56590         'pathname'.
56591
56592 2007-02-25  Bruno Haible  <bruno@clisp.org>
56593
56594         * modules/printf-frexpl-tests: New file.
56595         * tests/test-printf-frexpl.c: New file.
56596
56597         * modules/printf-frexpl: New file.
56598         * lib/printf-frexpl.h: New file.
56599         * lib/printf-frexpl.c: New file.
56600         * m4/printf-frexpl.m4: New file.
56601
56602 2007-02-25  Bruno Haible  <bruno@clisp.org>
56603
56604         * modules/printf-frexp-tests: New file.
56605         * tests/test-printf-frexp.c: New file.
56606
56607         * modules/printf-frexp: New file.
56608         * lib/printf-frexp.h: New file.
56609         * lib/printf-frexp.c: New file.
56610         * m4/printf-frexp.m4: New file.
56611
56612 2007-02-25  Bruno Haible  <bruno@clisp.org>
56613
56614         Assume automake >= 1.10 for the tests.
56615         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
56616         * modules/arctwo-tests: Likewise.
56617         * modules/argp-tests: Likewise.
56618         * modules/avltree-list-tests: Likewise.
56619         * modules/avltree-oset-tests: Likewise.
56620         * modules/avltreehash-list-tests: Likewise.
56621         * modules/carray-list-tests: Likewise.
56622         * modules/crc-tests: Likewise.
56623         * modules/des-tests: Likewise.
56624         * modules/gc-arcfour-tests: Likewise.
56625         * modules/gc-arctwo-tests: Likewise.
56626         * modules/gc-des-tests: Likewise.
56627         * modules/gc-hmac-md5-tests: Likewise.
56628         * modules/gc-hmac-sha1-tests: Likewise.
56629         * modules/gc-md2-tests: Likewise.
56630         * modules/gc-md4-tests: Likewise.
56631         * modules/gc-md5-tests: Likewise.
56632         * modules/gc-pbkdf2-sha1-tests: Likewise.
56633         * modules/gc-rijndael-tests: Likewise.
56634         * modules/gc-sha1-tests: Likewise.
56635         * modules/gc-tests: Likewise.
56636         * modules/getaddrinfo-tests: Likewise.
56637         * modules/hmac-md5-tests: Likewise.
56638         * modules/hmac-sha1-tests: Likewise.
56639         * modules/linked-list-tests: Likewise.
56640         * modules/linkedhash-list-tests: Likewise.
56641         * modules/lock-tests: Likewise.
56642         * modules/md2-tests: Likewise.
56643         * modules/md4-tests: Likewise.
56644         * modules/md5-tests: Likewise.
56645         * modules/rbtree-list-tests: Likewise.
56646         * modules/rbtree-oset-tests: Likewise.
56647         * modules/rbtreehash-list-tests: Likewise.
56648         * modules/read-file-tests: Likewise.
56649         * modules/rijndael-tests: Likewise.
56650         * modules/stdint-tests: Likewise.
56651         * modules/tls-tests: Likewise.
56652
56653 2007-02-24  Bruno Haible  <bruno@clisp.org>
56654
56655         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
56656         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
56657         function; instead check whether isnan with a double argument links.
56658         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
56659         function; instead check whether isnan with a 'long double' argument
56660         links.
56661         Reported by Eric Blake <ebb9@byu.net>.
56662
56663 2007-02-24  Bruno Haible  <bruno@clisp.org>
56664
56665         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
56666         defined.
56667         * lib/isnanl.c: Remove all code. Just include isnan.c.
56668         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
56669
56670 2007-02-25  Jim Meyering  <jim@meyering.net>
56671
56672         Avoid conflicting types for 'unsetenv' on FreeBSD.
56673         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
56674         conflicting with FreeBSD's (5.0 and 6.1) function declaration
56675         in stdlib.h.
56676
56677 2007-02-24  Bruno Haible  <bruno@clisp.org>
56678
56679         * modules/isnanl-nolibm-tests: New file.
56680         * tests/test-isnanl.c: New file.
56681
56682         * modules/isnanl-nolibm: New file.
56683         * lib/isnanl.h: New file.
56684         * lib/isnanl.c: New file.
56685         * m4/isnanl.m4: New file.
56686
56687 2007-02-24  Bruno Haible  <bruno@clisp.org>
56688
56689         * modules/isnan-nolibm-tests: New file.
56690         * tests/test-isnan.c: New file.
56691
56692         * modules/isnan-nolibm: New file.
56693         * lib/isnan.h: New file.
56694         * lib/isnan.c: New file.
56695         * m4/isnan.m4: New file.
56696
56697 2007-02-24  Bruno Haible  <bruno@clisp.org>
56698
56699         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
56700         assume that an exponent fits in 20 bits.
56701
56702 2007-02-24  Jim Meyering  <jim@meyering.net>
56703
56704         * m4/regex.m4: Update the description of the configure-time option,
56705         --without-included-regex, to state accurately what the defaults are,
56706         and perhaps to give people an idea why using this option is risky.
56707
56708 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56709
56710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
56711         loops on small arguments.  This attempts to avoid the problem
56712         Bruno Haible reported for AIX 4.3.2 in
56713         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
56714
56715 2007-02-23  Bruno Haible  <bruno@clisp.org>
56716
56717         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
56718         Needed for help2man.
56719
56720 2007-02-23  Karl Berry  <karl@gnu.org>
56721
56722         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
56723         exists, foo.h should be cvs-ignored, not committed.
56724
56725 2007-02-23  Eric Blake  <ebb9@byu.net>
56726
56727         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
56728         * lib/stat-time.h (includes): Likewise.
56729         * lib/utimecmp.c (includes): Likewise.
56730         * lib/utimens.h (includes): Likewise.
56731         * lib/getdate.y (includes): Also include "timespec.h" for use
56732         internal to the module.
56733         * modules/utimens (Depends-on): Revert yesterday's patch.
56734         * modules/nanosleep (Depends-on): Add missing dependency.
56735
56736 2007-02-22  Bruno Haible  <bruno@clisp.org>
56737
56738         * lib/glob.c: Don't include getlogin_r.h.
56739
56740 2007-02-22  Jim Meyering  <jim@meyering.net>
56741
56742         * modules/utimens (Depends-on): Add timespec, required for
56743         utimens.h's inclusion of timespec.h.
56744
56745 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
56746
56747         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
56748         long unreadable paths in GNU/Linux.  Problem reported by Andreas
56749         Schwab in
56750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
56751         I'll try to think of a better way to fix the Solaris problem.
56752
56753         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
56754         like glibc; on Solaris 10, it fails with errno == EINVAL.
56755         POSIX says the behavior is unspecified if the first argument is NULL,
56756         so play it safe and never pass NULL to the system getcwd.
56757
56758 2007-02-21  Jim Meyering  <jim@meyering.net>
56759
56760         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
56761         of gettimeofday.  It would conflict with the one now always
56762         provided via sys_time_.h.  Reported by Matthew Woehlke, as
56763         an IRIX 6.5 build failure.
56764
56765 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
56766
56767         Minor fixups to port to Solaris 10 with Sun C 5.8.
56768         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
56769         * modules/getcwd (Depends-on): Add dirfd.
56770         * lib/putenv.c (putenv): #undef it.
56771         (rpl_putenv): New decl.
56772         (malloc, free): Include <stdlib.h> rather than prototyping separately.
56773
56774 2007-02-20  Bruno Haible  <bruno@clisp.org>
56775
56776         * modules/stdio-tests: New file.
56777         * tests/test-stdio.c: New file.
56778
56779         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
56780         (Depends-on): Add stdio.
56781         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56782         (Include): Use <stdio.h> instead of vsnprintf.h.
56783         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56784         HAVE_DECL_VSNPRINTF.
56785         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
56786
56787         * modules/snprintf (Files): Remove lib/snprintf.h.
56788         (Depends-on): Add stdio.
56789         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56790         (Include): Use <stdio.h> instead of snprintf.h.
56791         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56792         HAVE_DECL_SNPRINTF.
56793         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
56794         * lib/getaddrinfo.c: Likewise.
56795
56796         * modules/stdio: New file.
56797         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
56798         * lib/snprintf.h: Remove file.
56799         * lib/vsnprintf.h: Remove file.
56800         * lib/.cppi-disable: Remove snprintf.h.
56801         * m4/stdio_h.m4: New file.
56802         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
56803
56804 2007-02-20  Jim Meyering  <jim@meyering.net>
56805
56806         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
56807         used by e.g., mingw.  From Bruno Haible.
56808
56809 2007-02-19  Bruno Haible  <bruno@clisp.org>
56810
56811         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
56812         warnings.
56813         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56814
56815 2007-02-19  Bruno Haible  <bruno@clisp.org>
56816
56817         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
56818         from mingw users.
56819
56820 2007-02-19  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
56823         warnings.
56824         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
56825
56826 2007-02-19  Jim Meyering  <jim@meyering.net>
56827
56828         Don't use FD after a successful "fdopendir (fd)".
56829         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
56830         Reset it by calling dirfd on the just-obtained DIR*.
56831
56832         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
56833         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
56834
56835 2007-02-18  Bruno Haible  <bruno@clisp.org>
56836
56837         * lib/readlink.c: Include <unistd.h>.
56838         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
56839         HAVE_READLINK.
56840         * modules/readlink (Depends-on): Add unistd.
56841         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56842         (Include): Add <unistd.h>.
56843
56844         * lib/getlogin_r.h: Remove file.
56845         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
56846         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
56847         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
56848         HAVE_DECL_GETLOGIN_R.
56849         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
56850         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56851         (Include): Use <unistd.h> instead of getlogin_r.h.
56852
56853         * lib/getcwd.h: Remove file.
56854         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
56855         * lib/xgetcwd.c: Likewise.
56856         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
56857         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
56858         * modules/getcwd (Files): Remove lib/getcwd.h.
56859         (Depends-on): Add unistd.
56860         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56861         (Include): Use <unistd.h> instad of getcwd.h.
56862
56863         * lib/ftruncate.c: Include <unistd.h> first.
56864         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
56865         Set HAVE_FTRUNCATE.
56866         * modules/ftruncate (Depends-on): Add unistd.
56867         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56868
56869         * lib/fchdir.c: Include <unistd.h> first.
56870         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
56871         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
56872         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
56873         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56874         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
56875
56876         * lib/dup2.c: Include <unistd.h> first.
56877         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
56878         HAVE_DUP2.
56879         * modules/dup2 (Depends-on): Add unistd.
56880         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56881
56882         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
56883         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
56884         REPLACE_CHOWN. Don't define chown as a macro here.
56885         * modules/chown (Depends-on): Add unistd.
56886         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56887
56888         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
56889         Add definition for GL_LINK_WARNING.
56890         (chown, dup2): New declarations.
56891         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
56892         link warning.
56893         (ftruncate): New declaration.
56894         (getcwd): New declaration, taken from old getcwd.h.
56895         (getlogin_r): New declaration, taken from old getlogin_r.h.
56896         (readlink): New declaration.
56897         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
56898         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
56899         (gl_PREREQ_UNISTD): Remove macro.
56900         (gl_UNISTD_MODULE_INDICATOR): New macro.
56901         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
56902         many new variables. Don't set UNISTD_H.
56903         * modules/unistd (Description): Change.
56904         (Depends-on): Add link-warning.
56905         (configure.ac): Update.
56906         (Makefile.am): Create unistd.h always. Substitute many new variables
56907         into it.
56908
56909 2007-02-18  Bruno Haible  <bruno@clisp.org>
56910
56911         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
56912         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
56913         HAVE_GETSUBOPT.
56914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
56915         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
56916         * lib/getsubopt.h: Remove file.
56917         * modules/getsubopt (Files): Remove lib/getsubopt.h.
56918         (Depends-on): Add stdlib.
56919         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56920         (Includes): Use <stdlib.h> instead of getsubopt.h.
56921         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
56922         Set HAVE_GETSUBOPT.
56923         * lib/getsubopt.c: Don't include getsubopt.h.
56924
56925 2007-02-18  Bruno Haible  <bruno@clisp.org>
56926
56927         * modules/fchdir (Depends-on): Add dup2.
56928
56929 2007-02-18  Bruno Haible  <bruno@clisp.org>
56930
56931         * lib/stdlib_.h: Handle glibc's special invocation convention
56932         specially.
56933
56934 2007-02-18  Bruno Haible  <bruno@clisp.org>
56935
56936         * modules/stdlib-tests: New file.
56937         * tests/test-stdlib.c: New file.
56938
56939         * modules/mkstemp (Files): Remove lib/mkstemp.h.
56940         (Depends-on): Add stdlib.
56941         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56942         (Includes): Use <stdlib.h> instead of mkstemp.h.
56943         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56944         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
56945         * lib/mkstemp.c: Don't include mkstemp.h.
56946         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
56947         * lib/stdlib--.h: Don't include mkstemp.h.
56948
56949         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
56950         (Depends-on): Add stdlib.
56951         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56952         (Includes): Use <stdlib.h> instead of mkdtemp.h.
56953         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56954         HAVE_MKDTEMP.
56955         * lib/mkdtemp.c: Don't include mkdtemp.h.
56956         * lib/clean-temp.c: Don't include mkdtemp.h.
56957
56958         * modules/exit (Files): Remove lib/exit.h.
56959         (Depends-on): Add stdlib.
56960         (Makefile.am): Remove lib_SOURCES.
56961         (Include): Use <stdlib.h> instead of exit.h.
56962         * lib/argmatch.c: Don't include exit.h.
56963         * lib/execute.c: Likewise.
56964         * lib/pagealign_alloc.c: Likewise.
56965         * lib/pipe.c: Likewise.
56966         * lib/wait-process.c: Likewise.
56967         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
56968         * lib/exitfail.c: Likewise.
56969         * lib/savewd.c: Likewise.
56970         * lib/xsetenv.c: Likewise.
56971
56972         * modules/stdlib: New file.
56973         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
56974         and extra comments about mkstemp().
56975         * lib/exit.h: Remove file.
56976         * lib/mkdtemp.h: Remove file.
56977         * lib/mkstemp.h: Remove file.
56978         * m4/stdlib_h.m4: New file.
56979         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
56980
56981 2007-02-18  Bruno Haible  <bruno@clisp.org>
56982
56983         * modules/math-tests: New file.
56984         * tests/test-math.c: New file.
56985
56986         * modules/math: New file.
56987         * modules/mathl (Files): Remove lib/mathl.h.
56988         (Depends-on): Add math.
56989         (Makefile.am): Don't mention mathl.h.
56990         (Include): Use <math.h> instead of mathl.h.
56991         * lib/math_.h: New file.
56992         * lib/mathl.h: Remove file.
56993         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
56994         mathl.h.
56995         * lib/asinl.c: Likewise.
56996         * lib/atanl.c: Likewise.
56997         * lib/ceill.c: Likewise.
56998         * lib/cosl.c: Likewise.
56999         * lib/expl.c: Likewise.
57000         * lib/floorl.c: Likewise.
57001         * lib/frexpl.c: Likewise.
57002         * lib/ldexpl.c: Likewise.
57003         * lib/logl.c: Likewise.
57004         * lib/sincosl.c: Likewise.
57005         * lib/sinl.c: Likewise.
57006         * lib/sqrtl.c: Likewise.
57007         * lib/tanl.c: Likewise.
57008         * lib/trigl.c: Likewise.
57009         * m4/math_h.m4: New file.
57010         * MODULES.html.sh (Mathematics): Add math.
57011
57012 2007-02-17  Bruno Haible  <bruno@clisp.org>
57013
57014         * modules/wctype-tests: New file.
57015         * tests/test-wctype.c: New file.
57016
57017         * modules/wchar-tests: New file.
57018         * tests/test-wchar.c: New file.
57019
57020         * modules/unistd-tests: New file.
57021         * tests/test-unistd.c: New file.
57022
57023         * modules/time-tests: New file.
57024         * tests/test-time.c: New file.
57025
57026         * modules/sysexits-tests: New file.
57027         * tests/test-sysexits.c: New file.
57028
57029         * modules/sys_time-tests: New file.
57030         * tests/test-sys_time.c: New file.
57031
57032         * modules/sys_stat-tests: New file.
57033         * tests/test-sys_stat.c: New file.
57034
57035         * modules/sys_socket-tests: New file.
57036         * tests/test-sys_socket.c: New file.
57037
57038         * modules/sys_select-tests: New file.
57039         * tests/test-sys_select.c: New file.
57040
57041         * modules/string-tests: New file.
57042         * tests/test-string.c: New file.
57043
57044         * modules/stdbool-tests: New file.
57045         * tests/test-stdbool.c: New file.
57046
57047         * modules/netinet_in-tests: New file.
57048         * tests/test-netinet_in.c: New file.
57049
57050         * modules/inttypes-tests: New file.
57051         * tests/test-inttypes.c: New file.
57052
57053         * modules/fcntl-tests: New file.
57054         * tests/test-fcntl.c: New file.
57055
57056         * modules/byteswap-tests: New file.
57057         * tests/test-byteswap.c: New file.
57058
57059         * modules/arpa_inet-tests: New file.
57060         * tests/test-arpa_inet.c: New file.
57061
57062 2007-02-17  Bruno Haible  <bruno@clisp.org>
57063
57064         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57065         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57066         if the corresponding module is not enabled. Emit link warnings if
57067         the function is used nevertheless.
57068         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57069         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57070         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57071         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57072         * modules/inttypes (Depends-on): Add link-warning.
57073         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57074         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57075         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57076         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57077         * modules/imaxdiv (configure.ac): Likewise.
57078         * modules/strtoimax (configure.ac): Likewise.
57079         * modules/strtoumax (configure.ac): Likewise.
57080
57081 2007-02-17  Bruno Haible  <bruno@clisp.org>
57082
57083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57084         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57085         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57086         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57087
57088 2007-02-17  Bruno Haible  <bruno@clisp.org>
57089
57090         * modules/link-warning: New file.
57091         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57092         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57093         * modules/string (Depends-on): Add link-warning.
57094         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57095         string.h.
57096         * MODULES.html.sh (Support for building libraries and executables): Add
57097         link-warning.
57098
57099 2007-02-17  Bruno Haible  <bruno@clisp.org>
57100
57101         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57102         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57103         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57104         long lines.
57105
57106 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57107             Bruno Haible  <bruno@clisp.org>
57108
57109         * modules/tmpfile: New file.
57110         * lib/tmpfile.c: New file.
57111         * m4/tmpfile.m4: New file.
57112         * MODULES.html.sh (func_all_modules): New section "Input/output".
57113
57114 2007-02-15  Bruno Haible  <bruno@clisp.org>
57115
57116         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57117         (supports_delete_on_close): New function.
57118         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57119
57120 2007-02-14  Bruno Haible  <bruno@clisp.org>
57121
57122         * modules/mbspcasecmp-tests: New file.
57123         * tests/test-mbspcasecmp.sh: New file.
57124         * tests/test-mbspcasecmp.c: New file.
57125
57126         New module mbspcasecmp.
57127         * modules/mbspcasecmp: New file.
57128         * lib/mbspcasecmp.c: New file.
57129         * lib/string_.h (strncasecmp): Change warning message.
57130         (mbspcasecmp): New declaration.
57131         * m4/mbspcasecmp.m4: New file.
57132         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57133         GNULIB_MBSPCASECMP.
57134         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57135         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57136
57137 2007-02-14  Bruno Haible  <bruno@clisp.org>
57138
57139         * modules/mbsncasecmp-tests: New file.
57140         * tests/test-mbsncasecmp.sh: New file.
57141         * tests/test-mbsncasecmp.c: New file.
57142
57143         New module mbsncasecmp.
57144         * modules/mbsncasecmp: New file.
57145         * lib/mbsncasecmp.c: New file.
57146         * lib/string_.h (mbsncasecmp): New declaration.
57147         * m4/mbsncasecmp.m4: New file.
57148         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57149         GNULIB_MBSNCASECMP.
57150         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57151         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57152
57153 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57154
57155         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57156         Verify that it doesn't overlap with our flags.
57157         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57158         do not have the desired effect in multibyte locales; instead, use
57159         mbscasecmp.
57160         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57161         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57162         we don't require GNU fnmatch ourselves (if our users require it, they
57163         should do so explicitly).
57164
57165         Fix regex code so it doesn't rely on strcasecmp.
57166         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57167         Otherwise, include gnulib's langinfo.h.
57168         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57169         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57170         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57171         * modules/regex (FILES): Remove m4/codeset.m4.
57172         (Depends-on): Add localcharset.  Remove strcase.
57173
57174 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57175
57176         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57177         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57178
57179 2007-02-13  Bruno Haible  <bruno@clisp.org>
57180
57181         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57182         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57183
57184 2007-02-12  Bruno Haible  <bruno@clisp.org>
57185
57186         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57187         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57188         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57189         time warning rather than a link error.
57190
57191 2007-02-12  Bruno Haible  <bruno@clisp.org>
57192
57193         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57194         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57196
57197 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57198
57199         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57200         args, not 2.
57201
57202 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57203
57204         New module 'time', so that apps can include <time.h> as per
57205         POSIX and GNU instead of separate include files like time_r.h
57206         and timegm.h.  This implementation tries out a simpler approach
57207         for replacing decls in standard include files (as compared to
57208         the string module), somewhat as an experiment.
57209
57210         * config/srclist.txt: Comment out mktime.c for now.
57211         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57212         since it doesn't apply any more.  Use generic wording instead.
57213         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57214         'time'.
57215         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57216         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57217         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57218         Don't include <sys/types.h>; no longer needed since we assume C89.
57219         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57220         * lib/strftime.c: Likewise.
57221         * lib/time_r.c: Likewise.
57222         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57223         * lib/nanosleep.c: Include <time.h> first, to check interface.
57224         * lib/strptime.c: Likewise.
57225         * lib/time_r.c: Likewise.
57226         * lib/timegm.c: Likewise.
57227         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57228         needed.
57229         * lib/timegm.c: Don't include timegm.h; no longer needed.
57230         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57231         time.h now handles any problems in that area.
57232         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57233         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57234         that time.h defines struct timespec.
57235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57236         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57237         handles that.
57238         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57239         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57240         needed.  Set REPLACE_LOCALTIME.
57241         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57242         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57243         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57244         nanosleep; time_h.m4 now does that.  Don't require
57245         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57246         module handles this now.
57247         * modules/getdate (Depends-on): Remove timespec.  Add time.
57248         * modules/nanosleep (Depends-on): Likewise.
57249         * modules/stat-time (Depends-on): Likewise.
57250         * modules/nanosleep (Include): Include time.h, not timespec.h.
57251         * modules/strptime (Files): Remove lib/strptime.h.
57252         (Depends-on): Add extensions, time.
57253         (Include): Include time.h, not strptime.h.
57254         * modules/time_r (Files): Remove lib/time_r.h.
57255         (Depends-on): Add time.
57256         (Include): Include time.h, not time_r.h.
57257         * modules/timegm: Likewise.
57258         * modules/timespec (Description): Now does timespec-related decls
57259         of our own, instead of struct timespec itself.
57260         (Depends-on): Add time; remove extensions.
57261         (Maintainer): Add self.
57262         * modules/utimecmp (Depends-on): Add time; remove timespec.
57263         * modules/utimens (Depends-on): Likewise.
57264         * modules/xnanosleep (Depends-on): Likewise.
57265
57266 2007-02-11  Bruno Haible  <bruno@clisp.org>
57267
57268         * lib/c-strstr.c: Include allocsa.h.
57269         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57270         * lib/c-strcasestr.c: Include allocsa.h.
57271         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57272         * lib/strcasestr.c: Include allocsa.h.
57273         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57274         * lib/mbsstr.c: Include allocsa.h.
57275         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57276         allocsa/freesa instead of malloc/free.
57277         * lib/mbscasestr.c: Include allocsa.h.
57278         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57279         allocsa/freesa instead of malloc/free.
57280         * modules/c-strstr (Depends-on): Add allocsa.
57281         * modules/c-strcasestr (Depends-on): Likewise.
57282         * modules/strcasestr (Depends-on): Likewise.
57283         * modules/mbsstr (Depends-on): Likewise.
57284         * modules/mbscasestr (Depends-on): Likewise.
57285
57286 2007-02-11  Bruno Haible  <bruno@clisp.org>
57287
57288         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57289
57290         * modules/mbsspn-tests: New file.
57291         * tests/test-mbsspn.sh: New file.
57292         * tests/test-mbsspn.c: New file.
57293
57294 2007-02-11  Bruno Haible  <bruno@clisp.org>
57295
57296         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57297
57298         * modules/mbspbrk-tests: New file.
57299         * tests/test-mbspbrk.sh: New file.
57300         * tests/test-mbspbrk.c: New file.
57301
57302 2007-02-11  Bruno Haible  <bruno@clisp.org>
57303
57304         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57305         unneeded cast.
57306
57307         * modules/mbscspn-tests: New file.
57308         * tests/test-mbscspn.sh: New file.
57309         * tests/test-mbscspn.c: New file.
57310
57311 2007-02-11  Bruno Haible  <bruno@clisp.org>
57312
57313         * modules/mbscasecmp-tests: New file.
57314         * tests/test-mbscasecmp.sh: New file.
57315         * tests/test-mbscasecmp.c: New file.
57316
57317 2007-02-11  Bruno Haible  <bruno@clisp.org>
57318
57319         Ensure O(n) worst-case complexity of mbscasestr.
57320         * lib/mbscasestr.c: Include stdbool.h.
57321         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57322         functions.
57323         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57324         the bookkeeping indicates that it's worth it.
57325         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57326
57327         * modules/mbscasestr-tests: New file.
57328         * tests/test-mbscasestr1.c: New file.
57329         * tests/test-mbscasestr2.sh: New file.
57330         * tests/test-mbscasestr2.c: New file.
57331         * tests/test-mbscasestr3.sh: New file.
57332         * tests/test-mbscasestr3.c: New file.
57333         * tests/test-mbscasestr4.sh: New file.
57334         * tests/test-mbscasestr4.c: New file.
57335         * m4/locale-tr.m4: New file.
57336
57337 2007-02-11  Bruno Haible  <bruno@clisp.org>
57338
57339         Ensure O(n) worst-case complexity of mbsstr.
57340         * lib/mbsstr.c: Include stdbool.h.
57341         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57342         functions.
57343         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57344         bookkeeping indicates that it's worth it.
57345         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57346
57347         * modules/mbsstr-tests: New file.
57348         * tests/test-mbsstr1.c: New file.
57349         * tests/test-mbsstr2.sh: New file.
57350         * tests/test-mbsstr2.c: New file.
57351         * tests/test-mbsstr3.sh: New file.
57352         * tests/test-mbsstr3.c: New file.
57353         * m4/locale-fr.m4: New file.
57354
57355 2007-02-11  Bruno Haible  <bruno@clisp.org>
57356
57357         * lib/mbsrchr.c (mbsrchr): Fix bug.
57358
57359         * modules/mbsrchr-tests: New file.
57360         * tests/test-mbsrchr.sh: New file.
57361         * tests/test-mbsrchr.c: New file.
57362
57363 2007-02-11  Bruno Haible  <bruno@clisp.org>
57364
57365         * lib/mbschr.c (mbschr): Fix bug.
57366
57367         * modules/mbschr-tests: New file.
57368         * tests/test-mbschr.sh: New file.
57369         * tests/test-mbschr.c: New file.
57370         * m4/locale-zh.m4: New file.
57371
57372 2007-02-11  Bruno Haible  <bruno@clisp.org>
57373
57374         Support for copying multibyte string iterators.
57375         * lib/mbiter.h: Include <string.h>.
57376         (mbiter_multi_copy): New function.
57377         (mbi_copy): New macro.
57378         * lib/mbuiter.h: Include <string.h>.
57379         (mbuiter_multi_copy): New function.
57380         (mbui_copy): New macro.
57381
57382 2007-02-11  Bruno Haible  <bruno@clisp.org>
57383
57384         New module mbslen.
57385         * modules/mbslen: New file.
57386         * lib/mbslen.c: New file.
57387         * lib/string_.h (mbslen): New declaration.
57388         * m4/mbslen.m4: New file.
57389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57390         GNULIB_MBSLEN.
57391         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57392         * MODULES.html.sh (Internationalization functions): Add mbslen.
57393
57394 2007-02-11  Bruno Haible  <bruno@clisp.org>
57395
57396         Ensure O(n) worst-case complexity of strcasestr substitute.
57397         * lib/strcasestr.c: Include stdbool.h.
57398         (knuth_morris_pratt): New function.
57399         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57400         bookkeeping indicates that it's worth it.
57401         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57402
57403         * modules/strcasestr-tests: New file.
57404         * tests/test-strcasestr.c: New file.
57405
57406 2007-02-11  Bruno Haible  <bruno@clisp.org>
57407
57408         Ensure O(n) worst-case complexity of c_strcasestr.
57409         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57410         (knuth_morris_pratt): New function.
57411         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57412         the bookkeeping indicates that it's worth it.
57413         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57414
57415         * modules/c-strcasestr-tests: New file.
57416         * tests/test-c-strcasestr.c: New file.
57417
57418 2007-02-11  Bruno Haible  <bruno@clisp.org>
57419
57420         Ensure O(n) worst-case complexity of c_strstr.
57421         * lib/c-strstr.c: Include stdbool.h, string.h.
57422         (knuth_morris_pratt): New function.
57423         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57424         bookkeeping indicates that it's worth it.
57425         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57426
57427         * lib/c-strstr.c: Complete rewrite for maintainability.
57428
57429         * modules/c-strstr-tests: New file.
57430         * tests/test-c-strstr.c: New file.
57431
57432 2007-02-11  Bruno Haible  <bruno@clisp.org>
57433
57434         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57435         5.2.1 and earlier, whereby \055 was treated just like the range
57436         delimiter '-'.
57437         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57438
57439 2007-02-08  Bruno Haible  <bruno@clisp.org>
57440
57441         * modules/regex (Depends-on): Add stdbool.
57442         Reported by Dalibor Topic <robilad@kaffe.org>.
57443
57444 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57445
57446         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57447         Prefer returning from main to exiting from it.
57448         Remove unnecessary parens after sizeof.
57449
57450 2007-02-05  Bruno Haible  <bruno@clisp.org>
57451
57452         New module mbssep.
57453         * modules/mbssep: New file.
57454         * lib/mbssep.c: New file.
57455         * lib/string_.h (strsep): Add a conditional link warning.
57456         (mbssep): New declaration.
57457         * m4/mbssep.m4: New file.
57458         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57459         GNULIB_MBSSEP.
57460         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
57461         * MODULES.html.sh (Internationalization functions): Add mbssep.
57462
57463 2007-02-05  Bruno Haible  <bruno@clisp.org>
57464
57465         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
57466         Optimize search in case of 1 delimiter.
57467
57468 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57469
57470         * lib/acl.h: Include sys/types.h before sys/acl.h.
57471
57472 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57473
57474         Merge upstream fix for glibc bugzilla #3957:
57475
57476         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57477
57478         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57479         bit for RE_HAT_LISTS_NOT_NEWLINE.
57480         (build_charclass_op): Remove bogus comment.
57481
57482 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57483
57484         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57485
57486 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57487
57488         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57489         * lib/memmem.c [!defined _LIBC]: Include config.h.
57490
57491 2007-02-04  Bruno Haible  <bruno@clisp.org>
57492
57493         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57494         warning message.
57495
57496 2007-02-04  Bruno Haible  <bruno@clisp.org>
57497
57498         New module mbstok_r.
57499         * modules/mbstok_r: New file.
57500         * lib/mbstok_r.c: New file.
57501         * lib/string_.h (strtok_r): Change argument names to match the
57502         comments. Add a conditional link warning.
57503         (mbstok_r): New declaration.
57504         * m4/mbstok_r.m4: New file.
57505         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57506         GNULIB_MBSTOK_R.
57507         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57508         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57509
57510 2007-02-04  Bruno Haible  <bruno@clisp.org>
57511
57512         New module mbsspn.
57513         * modules/mbsspn: New file.
57514         * lib/mbsspn.c: New file.
57515         * lib/string_.h (strspn): Add a conditional link warning.
57516         (mbsspn): New declaration.
57517         * m4/mbsspn.m4: New file.
57518         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57519         GNULIB_MBSSPN.
57520         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57521         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57522
57523 2007-02-04  Bruno Haible  <bruno@clisp.org>
57524
57525         New module mbspbrk.
57526         * modules/mbspbrk: New file.
57527         * lib/mbspbrk.c: New file.
57528         * lib/string_.h (strpbrk): Add a conditional link warning.
57529         (mbspbrk): New declaration.
57530         * m4/mbspbrk.m4: New file.
57531         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57532         GNULIB_MBSPBRK.
57533         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57534         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57535
57536 2007-02-04  Bruno Haible  <bruno@clisp.org>
57537
57538         New module mbscspn.
57539         * modules/mbscspn: New file.
57540         * lib/mbscspn.c: New file.
57541         * lib/string_.h (strcspn): Add a conditional link warning.
57542         (mbscspn): New declaration.
57543         * m4/mbscspn.m4: New file.
57544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57545         GNULIB_MBSCSPN.
57546         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
57547         * MODULES.html.sh (Internationalization functions): Add mbscspn.
57548
57549 2007-02-04  Bruno Haible  <bruno@clisp.org>
57550
57551         New module mbscasestr, reduced goal of strcasestr.
57552         * modules/mbscasestr: New file.
57553         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
57554         (mbscasestr): Renamed from strcasestr.
57555         * lib/strcasestr.c: Don't include mbuiter.h.
57556         (strcasestr): Remove support for multibyte locales.
57557         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
57558         Change the conditional link warning.
57559         (mbscasestr): New declaration.
57560         * m4/mbscasestr.m4: New file.
57561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
57562         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
57563         REPLACE_STRCASESTR.
57564         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
57565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57566         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57567         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
57568         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
57569         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57570         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
57571         (Depends-on): Remove mbuiter.
57572         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
57573
57574 2007-02-04  Bruno Haible  <bruno@clisp.org>
57575
57576         Simplify handling of strncasecmp.
57577         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
57578         the conditional link warning.
57579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57580         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
57581         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
57582         * modules/strcase (configure.ac): Don't invoke
57583         gl_STRING_MODULE_INDICATOR.
57584         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
57585
57586 2007-02-04  Bruno Haible  <bruno@clisp.org>
57587
57588         New module mbscasecmp, reduced goal of strcasecmp.
57589         * modules/mbscasecmp: New file.
57590         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
57591         (mbscasecmp): Renamed from strcasecmp.
57592         * lib/strcasecmp.c: Don't include mbuiter.h.
57593         (strcasecmp): Remove support for multibyte locales.
57594         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
57595         Change the conditional link warning.
57596         (mbscasecmp): New declaration.
57597         * m4/mbscasecmp.m4: New file.
57598         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
57599         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
57600         REPLACE_STRCASECMP.
57601         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
57602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57603         GNULIB_MBSCASECMP.
57604         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
57605         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
57606         * modules/strcase (Files): Remove m4/mbrtowc.m4.
57607         (Depends-on): Remove mbuiter.
57608         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
57609
57610 2007-02-04  Bruno Haible  <bruno@clisp.org>
57611
57612         New module mbsstr. Remove module strstr.
57613         * modules/mbsstr: New file.
57614         * modules/strstr: Remove file.
57615         * lib/mbsstr.c: Renamed from lib/strstr.c.
57616         (mbsstr): Renamed from strstr.
57617         * lib/string_.h (strstr): Remove declaration. Change the conditional
57618         link warning.
57619         (mbsstr): New declaration.
57620         * m4/mbsstr.m4: New file.
57621         * m4/strstr.m4: Remove file.
57622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
57623         REPLACE_STRSTR.
57624         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
57625         Don't initialize GNULIB_STRSTR.
57626         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
57627         substitute GNULIB_STRSTR and REPLACE_STRSTR.
57628         * MODULES.html.sh (Internationalization functions): Add mbsstr.
57629         (Support for systems lacking ANSI C 89): Remove strstr.
57630
57631 2007-02-04  Bruno Haible  <bruno@clisp.org>
57632
57633         New module mbsrchr.
57634         * modules/mbsrchr: New file.
57635         * lib/mbsrchr.c: New file.
57636         * lib/string_.h (strrchr): Add a conditional link warning.
57637         (mbsrchr): New declaration.
57638         * m4/mbsrchr.m4: New file.
57639         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57640         GNULIB_MBSRCHR.
57641         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
57642         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
57643
57644 2007-02-04  Bruno Haible  <bruno@clisp.org>
57645
57646         New module mbschr.
57647         * modules/mbschr: New file.
57648         * lib/mbschr.c: New file.
57649         * lib/string_.h (strchr): Add a conditional link warning.
57650         (mbschr): New declaration.
57651         * m4/mbschr.m4: New file.
57652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57653         GNULIB_MBSCHR.
57654         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
57655         * MODULES.html.sh (Internationalization functions): Add mbschr.
57656
57657 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57658
57659         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
57660
57661         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
57662
57663 2007-02-04  Bruno Haible  <bruno@clisp.org>
57664
57665         New module description section 'configure.ac-early'.
57666         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
57667         (func_get_autoconf_early_snippet): New function.
57668         (func_import, func_create_testdir): Use it. Remove special cases for
57669         modules 'extensions' and 'lock'.
57670         * modules/extensions (configure.ac-early): Require
57671         gl_USE_SYSTEM_EXTENSIONS.
57672         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
57673
57674 2007-02-04  Bruno Haible  <bruno@clisp.org>
57675
57676         Make use of gcj-4.3's -fsource and -ftarget option.
57677         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
57678         and if so try the options -fsource and -ftarget.
57679         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
57680         source_version, ftarget_option, target_version arguments.
57681         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
57682         (is_envjavac_oldgcj_14_14_usable): Renamed from
57683         is_envjavac_gcj_14_14_usable.
57684         (is_envjavac_oldgcj_14_13_usable): Renamed from
57685         is_envjavac_gcj_14_13_usable.
57686         (is_gcj_present): Update.
57687         (is_gcj_43, is_gcj43_usable): New functions.
57688         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
57689         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
57690         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
57691         try the options -fsource and -ftarget.
57692
57693 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57694
57695         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
57696         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
57697         larger value.
57698
57699 2007-02-03  Jim Meyering  <jim@meyering.net>
57700
57701         Give tools a better chance to allocate space for very large buffers.
57702         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
57703
57704         Make pwd and readlink work also when run with an unreadable parent dir
57705         on systems with openat support.
57706         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
57707         provided getcwd function, even when we have openat support.
57708         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
57709
57710 2007-02-02  Bruno Haible  <bruno@clisp.org>
57711
57712         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57713         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
57714         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
57715         portability problems if one of these functions is only used on specific
57716         platforms.
57717         Reported by Paul Eggert.
57718
57719 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
57720
57721         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
57722         is causing more trouble than it's curing.
57723         * lib/regex_internal.h (__mempcpy): Remove.
57724         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
57725         (and make the code a tad smaller to boot).
57726         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
57727
57728 2007-02-02  Jim Meyering  <jim@meyering.net>
57729
57730         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
57731         section, not in the Makefile.am: one.
57732
57733 2007-02-02  Eric Blake  <ebb9@byu.net>
57734
57735         * lib/strchrnul.c: Always include config.h first.
57736
57737         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
57738         gnulib strstr is not necessary here.
57739
57740 2007-02-02  Simon Josefsson  <simon@josefsson.org>
57741
57742         * m4/socklen.m4: Fix typo.
57743
57744 2007-02-02  Eric Blake  <ebb9@byu.net>
57745
57746         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
57747         * modules/netinet_in (Makefile.am): Likewise.
57748
57749 2007-02-01  Bruno Haible  <bruno@clisp.org>
57750
57751         * lib/string_.h (GL_LINK_WARNING): New macro.
57752         (strcasecmp, strstr, strcasestr): If provided by the system,
57753         conditionally define as a macro that leads to a warning instead of to
57754         an error.
57755         (strncasecmp): Conditionally define as a macro that leads to a warning.
57756
57757 2007-02-01  Karl Berry  <karl@gnu.org>
57758
57759         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
57760
57761 2007-02-01  Bruno Haible  <bruno@clisp.org>
57762
57763         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
57764         renamings.
57765
57766 2007-02-01  Eric Blake  <ebb9@byu.net>
57767
57768         * modules/regex (Depends-on): Revert dependence on mempcpy.
57769         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
57770         module's definition of mempcpy.
57771         Reported by Paul Eggert.
57772
57773 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
57774
57775         * lib/string_.h: If the gnulib module XYZ is not present, undefine
57776         the symbol XYZ before redefining it.  This fixes a problem with
57777         programs that don't use XYZ, when compiled on systems that define
57778         XYZ to something else.
57779
57780 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
57781
57782         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
57783         occurs when "mkdir -m foo" creates a setgid directory that is (1)
57784         writeable to group or other and (2) is intended to have a special
57785         mode bit that is set or cleared.  In such a case, the directory
57786         should be neither group- nor other-writeable until the special
57787         mode bits are right.
57788
57789 2007-01-31  Eric Blake  <ebb9@byu.net>
57790
57791         * modules/mountlist (Depends-on): Add strstr.
57792
57793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
57794         bug.
57795         * modules/string (Makefile.am): Remove redundant replacement.
57796         * modules/regex (Depends-on): Add mempcpy.
57797
57798 2007-01-31  Bruno Haible  <bruno@clisp.org>
57799
57800         New module description field 'Link'.
57801         * gnulib-tool (func_usage): Document --extract-link-directive.
57802         (sed_extract_prog): Recognize 'Link' directive.
57803         (func_get_link_directive): New function.
57804         (func_import): Show summary of link directives.
57805         Handle --extract-link-directive option.
57806         * modules/acl (Link): New section.
57807         * modules/clock-time (Link): New section.
57808         * modules/euidaccess (Link): New section.
57809         * modules/gettext (Link): New section.
57810         * modules/iconv (Link): New section.
57811         * modules/lock (Link): New section.
57812         * modules/nanosleep (Link): New section.
57813         * modules/readline (Link): New section.
57814
57815 2007-01-27  Bruno Haible  <bruno@clisp.org>
57816
57817         Enforce the use of gnulib modules for unportable <string.h> functions.
57818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
57819         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
57820         (gl_HEADER_STRING_H_BODY): Require it.
57821         * lib/string_.h: If the gnulib module XYZ is not present, redefine
57822         the symbol XYZ to one that gives a link error.
57823         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
57824         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
57825         * modules/mempcpy (configure.ac): Likewise.
57826         * modules/memrchr (configure.ac): Likewise.
57827         * modules/stpcpy (configure.ac): Likewise.
57828         * modules/stpncpy (configure.ac): Likewise.
57829         * modules/strcase (configure.ac): Likewise.
57830         * modules/strcasestr (configure.ac): Likewise.
57831         * modules/strchrnul (configure.ac): Likewise.
57832         * modules/strdup (configure.ac): Likewise.
57833         * modules/strndup (configure.ac): Likewise.
57834         * modules/strnlen (configure.ac): Likewise.
57835         * modules/strpbrk (configure.ac): Likewise.
57836         * modules/strsep (configure.ac): Likewise.
57837         * modules/strstr (configure.ac): Likewise.
57838         * modules/strtok_r (configure.ac): Likewise.
57839
57840 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
57841
57842         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
57843
57844 2007-01-30  Jim Meyering  <jim@meyering.net>
57845
57846         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
57847
57848 2007-01-29  Bruno Haible  <bruno@clisp.org>
57849
57850         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
57851         * lib/execute.c: Likewise.
57852         * lib/pipe.c: Likewise.
57853         * lib/printf-args.h: Likewise.
57854         * lib/printf-args.c: Likewise.
57855         * lib/printf-parse.c: Likewise.
57856         * lib/vasnprintf.c: Likewise.
57857
57858 2007-01-29  Eric Blake  <ebb9@byu.net>
57859
57860         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
57861         declaration.
57862
57863 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
57864
57865         * lib/strptime.h (strptime): Use 'restrict' for args where
57866         POSIX requires this.
57867         * lib/strptime.c (strptime): Likewise.
57868         Change license notice from LGPL to GPL, since gnulib-tool will
57869         change this as needed.
57870         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
57871         defined.
57872         Include "strptime.h" first, to check interface.
57873         Do not #undef _LIBC and _NL_CURRENT.
57874         Do not include <stdlib.h>; no longer needed.
57875         Include "time_r.h" and declare ptime_locale_status
57876         only if _LIBC is not defined.
57877         (__P): Remove unused macro.
57878         (match_string): Bring back glibc version, but use it only if _LIBC
57879         is defined.
57880         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
57881         Remove unnecessary assertion and abort() call.
57882         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
57883         * m4/strptime.m4: Fix serial number comment.
57884         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
57885         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
57886         (Depends-on): Add time_r.
57887
57888 2007-01-29  Bruno Haible  <bruno@clisp.org>
57889
57890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57891         strptime.
57892         * modules/strptime (Depends-on): Add stdbool.
57893         * lib/strptime.h: Include <time.h> always. Add comments.
57894
57895 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57896
57897         * modules/strptime: New file.
57898         * lib/strptime.h: New file.
57899         * lib/strptime.c: New file.
57900         * m4/strptime.m4: New file.
57901
57902 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57903
57904         * MODULES.html.sh: New module mpsort.
57905         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
57906
57907         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
57908         a circularity problem with HP-UX ia64 reported by Bob Proulx in
57909         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
57910         All uses changed.
57911         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
57912         All uses changed.
57913         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
57914         to _Restrict_.
57915         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
57916         the parameter matches the prototype.
57917
57918 2007-01-28  Jim Meyering  <jim@meyering.net>
57919
57920         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
57921         sys/time.h here, reverting that part of the previous patch:
57922         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
57923
57924 2007-01-28  Bruno Haible  <bruno@clisp.org>
57925
57926         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
57927         value of $(SYS_TIME_H).
57928         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
57929         remove it conditionally, too. [added by Jim Meyering]
57930         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
57931         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57932         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
57933         GETTIMEOFDAY_REPLACEMENT to 1.
57934
57935 2007-01-28  Bruno Haible  <bruno@clisp.org>
57936
57937         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
57938         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
57939         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
57940         Set UNISTD_H instead of UNISTD_H2.
57941         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
57942
57943 2007-01-28  Bruno Haible  <bruno@clisp.org>
57944
57945         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
57946         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
57947
57948 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57949
57950         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
57951         (func_create_testdir): Ensure C locale for `grep' and `tr'
57952         character ranges.
57953         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
57954         ACLOCAL_AMFLAGS parsing state machine.
57955
57956 2007-01-27  Bruno Haible  <bruno@clisp.org>
57957
57958         * modules/unistr/base: Update.
57959
57960 2007-01-27  Bruno Haible  <bruno@clisp.org>
57961
57962         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
57963         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
57964         * modules/unistr/u32-mbtouc-unsafe: Renamed from
57965         modules/unistr/u32-mbtouc.
57966         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
57967         * lib/unistr.h: Update.
57968         * lib/linebreak.c: Update.
57969         * modules/unistr/u32-mbtouc: Renamed from
57970         modules/unistr/u32-mbtouc-safe.
57971         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
57972         * lib/unistr.h: Update.
57973         * lib/unistr/u32-to-u8.c: Update.
57974         * lib/unistr/u32-to-u16.c: Update.
57975
57976 2007-01-27  Bruno Haible  <bruno@clisp.org>
57977
57978         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
57979         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
57980         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
57981         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
57982         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
57983         * modules/unistr/u16-mbtouc-unsafe: Renamed from
57984         modules/unistr/u16-mbtouc.
57985         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
57986         * lib/unistr.h: Update.
57987         * lib/linebreak.c: Update.
57988         * modules/linebreak: Update.
57989         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
57990         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
57991         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
57992         * modules/unistr/u16-mbtouc: Renamed from
57993         modules/unistr/u16-mbtouc-safe.
57994         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
57995         * lib/unistr.h: Update.
57996         * lib/unistr/u16-to-u8.c: Update.
57997         * modules/unistr/u16-to-u8: Update.
57998         * lib/unistr/u16-to-u32.c: Update.
57999         * modules/unistr/u16-to-u32: Update.
58000
58001 2007-01-27  Bruno Haible  <bruno@clisp.org>
58002
58003         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58004         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58005         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58006         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58007         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58008         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58009         modules/unistr/u8-mbtouc.
58010         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58011         * lib/unistr.h: Update.
58012         * lib/striconveh.c: Update.
58013         * modules/striconveh: Update.
58014         * lib/linebreak.c: Update.
58015         * modules/linebreak: Update.
58016         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58017         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58018         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58019         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58020         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58021         * lib/unistr.h: Update.
58022         * lib/striconveh.c: Update.
58023         * modules/striconveh: Update.
58024         * lib/unistr/u8-to-u16.c: Update.
58025         * modules/unistr/u8-to-u16: Update.
58026         * lib/unistr/u8-to-u32.c: Update.
58027         * modules/unistr/u8-to-u32: Update.
58028
58029 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58030
58031         Sync from Libtool.
58032         * lib/argz.c: Do not include strings.h nor memory.h, include
58033         string.h unconditionally.  Patch by Simon Josefsson.
58034
58035 2007-01-27  Bruno Haible  <bruno@clisp.org>
58036
58037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58038         from gl_HEADER_STRING_H_BODY.
58039         (gl_HEADER_STRING_H_BODY): Require it.
58040         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58041         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58042         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58043         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58044         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58045         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58046         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58047         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58048         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58049         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58050         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58051         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58052         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58053         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58054         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58055
58056 2007-01-27  Bruno Haible  <bruno@clisp.org>
58057
58058         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58059         check_PROGRAMS into noinst_PROGRAMS.
58060         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58061         check_PROGRAMS in this case.
58062         (func_import): Set for_test to false.
58063         (func_create_testdir): Set for_test to true.
58064
58065 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58066             Bruno Haible  <bruno@clisp.org>
58067
58068         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58069         (Depends-on): Add string.
58070         (Includes): Use <string.h> instead of strcasestr.h.
58071         * modules/string (Makefile.am): Also substitute the value of
58072         REPLACE_STRCASESTR.
58073         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58074         assume strcasestr is declared in <string.h> not <strings.h>. Also
58075         set REPLACE_STRCASESTR.
58076         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58077         REPLACE_STRCASESTR.
58078         * lib/strcasestr.h: Remove file.
58079         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58080         * lib/string_.h (strcasestr): New declaration.
58081
58082 2007-01-27  Bruno Haible  <bruno@clisp.org>
58083
58084         * lib/string_.h: Use 'extern'.
58085
58086 2007-01-27  Jim Meyering  <jim@meyering.net>
58087
58088         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58089         of set-but-not-used local, "q".
58090
58091         * lib/mempcpy.c: Include <config.h> before <string.h>.
58092         This fixes a compilation error on HP-UX, due to the system's
58093         "restrict"-using mempcpy prototype.
58094
58095 2007-01-26  Bruno Haible  <bruno@clisp.org>
58096
58097         Small optimization.
58098         * lib/javacomp.c: Include c-strstr.h.
58099          (is_envjavac_gcj): Use c_strstr instead of strstr.
58100         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58101
58102 2007-01-26  Bruno Haible  <bruno@clisp.org>
58103
58104         * MODULES.html.sh (Unicode string functions): Add the new modules.
58105
58106         * modules/uniconv/u32-strconv-to-locale: New file.
58107         * lib/uniconv/u32-strconv-to-locale.c: New file.
58108
58109         * modules/uniconv/u16-strconv-to-locale: New file.
58110         * lib/uniconv/u16-strconv-to-locale.c: New file.
58111
58112         * modules/uniconv/u8-strconv-to-locale: New file.
58113         * lib/uniconv/u8-strconv-to-locale.c: New file.
58114
58115         * modules/uniconv/u32-strconv-from-locale: New file.
58116         * lib/uniconv/u32-strconv-from-locale.c: New file.
58117
58118         * modules/uniconv/u16-strconv-from-locale: New file.
58119         * lib/uniconv/u16-strconv-from-locale.c: New file.
58120
58121         * modules/uniconv/u8-strconv-from-locale: New file.
58122         * lib/uniconv/u8-strconv-from-locale.c: New file.
58123
58124         * modules/uniconv/u32-strconv-to-enc: New file.
58125         * lib/uniconv/u32-strconv-to-enc.c: New file.
58126         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58127         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58128
58129         * modules/uniconv/u16-strconv-to-enc: New file.
58130         * lib/uniconv/u16-strconv-to-enc.c: New file.
58131         * lib/uniconv/u-strconv-to-enc.h: New file.
58132         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58133         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58134
58135         * modules/uniconv/u8-strconv-to-enc: New file.
58136         * lib/uniconv/u8-strconv-to-enc.c: New file.
58137         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58138         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58139
58140         * modules/uniconv/u32-strconv-from-enc: New file.
58141         * lib/uniconv/u32-strconv-from-enc.c: New file.
58142         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58143         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58144
58145         * modules/uniconv/u16-strconv-from-enc: New file.
58146         * lib/uniconv/u16-strconv-from-enc.c: New file.
58147         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58148         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58149
58150         * modules/uniconv/u8-strconv-from-enc: New file.
58151         * lib/uniconv/u8-strconv-from-enc.c: New file.
58152         * lib/uniconv/u-strconv-from-enc.h: New file.
58153         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58154         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58155
58156         * modules/uniconv/u32-conv-from-enc: New file.
58157         * lib/uniconv/u32-conv-from-enc.c: New file.
58158         * modules/uniconv/u32-conv-from-enc-tests: New file.
58159         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58160
58161         * modules/uniconv/u16-conv-from-enc: New file.
58162         * lib/uniconv/u16-conv-from-enc.c: New file.
58163         * lib/uniconv/u-conv-from-enc.h: New file.
58164         * modules/uniconv/u16-conv-from-enc-tests: New file.
58165         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58166
58167         * modules/uniconv/u8-conv-from-enc: New file.
58168         * lib/uniconv/u8-conv-from-enc.c: New file.
58169         * modules/uniconv/u8-conv-from-enc-tests: New file.
58170         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58171
58172         * modules/uniconv/base: New file.
58173         * lib/uniconv.h: New file.
58174
58175 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58176
58177         * doc/gnulib-tool.texi (Initial import): Update to match current
58178         behavior with strdup module.
58179         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58180         * lib/memmem.h: Remove; all uses removed.  This is now done
58181         by <string.h>.
58182         * lib/mempcpy.h: Likewise.
58183         * lib/memrchr.h: Likewise.
58184         * lib/stpcpy.h: Likewise.
58185         * lib/stpncpy.h: Likewise.
58186         * lib/strcase.h: Likewise.
58187         * lib/strchrnul.h: Likewise.
58188         * lib/strdup.h: Likewise.
58189         * lib/strndup.h: Likewise.
58190         * lib/strnlen.h: Likewise.
58191         * lib/strpbrk.h: Likewise.
58192         * lib/strsep.h: Likewise.
58193         * lib/strstr.h: Likewise.
58194         * lib/strtok_r.h: Likewise.
58195         * lib/string_.h: New file.
58196         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58197         Rely on <string.h> instead.
58198         * lib/canon-host.c: Likewise.
58199         * lib/chdir-long.c: Likewise.
58200         * lib/concatpath.c: Likewise.
58201         * lib/exclude.c: Likewise.
58202         * lib/fchdir.c: Likewise.
58203         * lib/getaddrinfo.c: Likewise.
58204         * lib/getcwd.c: Likewise.
58205         * lib/getsubopt.c: Likewise.
58206         * lib/glob.c: Likewise.
58207         * lib/hard-locale.c: Likewise.
58208         * lib/iconvme.c: Likewise.
58209         * lib/javacomp.c: Likewise.
58210         * lib/mempcpy.c: Likewise.
58211         * lib/memrchr.c: Likewise.
58212         * lib/regex_internal.h: Likewise.
58213         * lib/stpncpy.c: Likewise.
58214         * lib/strcasecmp.c: Likewise.
58215         * lib/strchrnul.c: Likewise.
58216         * lib/strdup.c: Likewise.
58217         * lib/striconv.c: Likewise.
58218         * lib/striconveh.c: Likewise.
58219         * lib/striconveha.c: Likewise.
58220         * lib/strncasecmp.c: Likewise.
58221         * lib/strndup.c: Likewise.
58222         * lib/strnlen.c: Likewise.
58223         * lib/strsep.c: Likewise.
58224         * lib/strstr.c: Likewise.
58225         * lib/strtok_r.c: Likewise.
58226         * lib/userspec.c: Likewise.
58227         * lib/w32spawn.h: Likewise.
58228         * lib/xstrndup.c: Likewise.
58229         * lib/mountlist.c (strstr): Remove decl.
58230         * m4/string_h.m4: New file.
58231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58232         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58233         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58234         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58235         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58236         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58237         Set REPLACE_STRCASECMP if necessary.
58238         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58239         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58240         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58241         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58242         HAVE_DECL_STRDUP if necessary.
58243         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58244         since gl_FUNC_STRNDUP does that now.
58245         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58246         Check for decl here...
58247         (gl_PREREQ_STRNLEN): ... not here.
58248         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58249         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58250         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58251         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58252         necessary.
58253         * modules/string: New file.
58254         * modules/memmem (Files): Remove special-purpose include file.
58255         (Depends-on): Add string.
58256         (Include): Include <string.h>, not the removed file.
58257         * modules/mempcpy: Likewise.
58258         * modules/memrchr: Likewise.
58259         * modules/stpcpy: Likewise.
58260         * modules/stpncpy: Likewise.
58261         * modules/strcase: Likewise.
58262         * modules/strchrnul: Likewise.
58263         * modules/strdup: Likewise.
58264         * modules/strndup: Likewise.
58265         * modules/strnlen: Likewise.
58266         * modules/strpbrk: Likewise.
58267         * modules/strsep: Likewise.
58268         * modules/strstr: Likewise.
58269         * modules/strtok_r: Likewise.
58270         * tests/test-dirname.c: Don't include "strdup.h", since
58271         <string.h> now suffices.
58272         * tests/test-memmem.c: Don't include "memmem.h", since
58273         <string.h> now suffices.
58274
58275 2007-01-25  Bruno Haible  <bruno@clisp.org>
58276
58277         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58278         *resultp is 0.
58279
58280         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58281         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58282         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58283         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58284
58285         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58286         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58287         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58288         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58289         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58290         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58291
58292 2007-01-24  Bruno Haible  <bruno@clisp.org>
58293
58294         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58295         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58296         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58297         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58298         gl_FUNC_FTS_CORE.
58299         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58300         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58301         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58302         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58303         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58304         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58305         gl_FUNC_FCHOWNAT.
58306         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58307         gl_FUNC_STRFTIME.
58308         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58309         Reported by Ralf Wildenhues.
58310
58311 2007-01-24  Bruno Haible  <bruno@clisp.org>
58312
58313         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58314         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58315         gl_GETADDRINFO.
58316         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58317         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58318         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58319
58320 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58321
58322         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58323         Don't use 'exit'; just return from 'main'.
58324         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58325
58326         * lib/fnmatch_.h: Readjust white space and comments to match
58327         glibc, to avoid spurious diffs.
58328
58329 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58330
58331         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58332         2004-12-01 change by Jakub Jelinek, since this code won't compile
58333         if !LIBC.  Problem reported by Bob Proulx.
58334
58335 2007-01-23  Bruno Haible  <bruno@clisp.org>
58336
58337         * lib/striconveh.c: Include c-strcaseeq.h.
58338         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58339         * modules/striconveh (Depends-on): Add c-strcaseeq.
58340
58341 2007-01-23  Bruno Haible  <bruno@clisp.org>
58342
58343         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58344
58345         * modules/c-strcaseeq: New file.
58346         * lib/c-strcaseeq.h: New file.
58347
58348         * modules/streq: New file.
58349         * lib/streq.h: New file.
58350
58351 2007-01-23  Bruno Haible  <bruno@clisp.org>
58352
58353         * modules/striconveha-tests: New file.
58354         * tests/test-striconveha.c: New file.
58355
58356         * lib/striconveha.h: Include <stdbool.h>.
58357         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58358         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58359         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58360         (mem_iconveha): New function.
58361         (str_iconveha_notranslit): Renamed from str_iconveha.
58362         (str_iconveha): New function.
58363         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58364         c-strcase.
58365
58366 2007-01-23  Bruno Haible  <bruno@clisp.org>
58367
58368         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58369         encodings without forgiving before trying any encoding with handler.
58370         (str_iconveha): Try all encodings without forgiving before trying any
58371         encoding with handler.
58372
58373 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58374
58375         Import the following changes from libc.
58376
58377         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58378
58379         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58380
58381         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58382
58383         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58384         normal_bracket label.
58385
58386         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58387
58388         [BZ #361]
58389         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58390         to normal_bracket after fetching the next character.
58391
58392 2007-01-22  Bruno Haible  <bruno@clisp.org>
58393
58394         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58395         argument.
58396         * lib/striconveh.c (iconv_carefully_1): New function.
58397         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58398         argument.
58399         (str_cd_iconveh): Update.
58400         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58401         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58402         * tests/test-striconveh.c (MAGIC): New macro.
58403         (new_offsets): New function.
58404         (main): Test call with and without offsets.
58405
58406 2007-01-22  Bruno Haible  <bruno@clisp.org>
58407
58408         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58409         * modules/sys_select (Makefile.am): Likewise.
58410         * modules/sys_socket (Makefile.am): Likewise.
58411         * modules/sys_time (Makefile.am): Likewise.
58412
58413 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58414
58415         * modules/gettimeofday (License): Change from GPL to LGPL, since
58416         gettimeofday is a library function.
58417
58418 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58419
58420         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58421
58422 2007-01-21  Bruno Haible  <bruno@clisp.org>
58423
58424         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58425
58426 2007-01-21  Bruno Haible  <bruno@clisp.org>
58427
58428         * modules/striconveha: New file.
58429         * lib/striconveha.h: New file.
58430         * lib/striconveha.c: New file.
58431         * MODULES.html.sh (Internationalization functions): Add striconveha.
58432         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58433         string.
58434         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58435
58436 2007-01-21  Bruno Haible  <bruno@clisp.org>
58437
58438         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58439         * lib/striconveh.c (str_iconveh): Likewise.
58440
58441 2007-01-21  Bruno Haible  <bruno@clisp.org>
58442
58443         * lib/striconveh.h (mem_iconveh): New declaration.
58444         * lib/striconveh.c (mem_iconveh): New function.
58445         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58446
58447 2007-01-21  Bruno Haible  <bruno@clisp.org>
58448
58449         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58450
58451         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58452         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
58453         original result buffer.
58454         (str_cd_iconveh): Update.
58455         * tests/test-striconveh.c (main): Update.
58456
58457         * lib/striconv.h (mem_cd_iconv): Change specification.
58458         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
58459         result buffer.
58460         (str_cd_iconv): Update.
58461         * tests/test-striconv.c (main): Update.
58462
58463 2007-01-21  Bruno Haible  <bruno@clisp.org>
58464
58465         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
58466
58467 2007-01-20  Jim Meyering  <jim@meyering.net>
58468
58469         * lib/userspec.c (parse_with_separator): If a user or group string
58470         starts with "+", skip the corresponding name-to-ID look-up, since
58471         such a look-up must fail: user and group names may not include "+".
58472
58473 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58474
58475         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58476         since we now assume the sys_time module.
58477         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58478         check for sys/time.h; no longer needed.
58479         * modules/poll (Depends-on): Depend on sys_time.
58480
58481 2007-01-18  Bruno Haible  <bruno@clisp.org>
58482
58483         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58484         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58485
58486         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58487         gettimeofday.
58488
58489         * tests/test-gettimeofday.c: Include <time.h>.
58490         (dummy): Remove variable.
58491
58492         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58493         gl_HEADER_SYS_TIME_H.
58494         (gl_HEADER_SYS_TIME_H): New macro.
58495
58496         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58497         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58498         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58499         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58500         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58501         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58502         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58503         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58504         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58505         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58506         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58507
58508         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58509         last change; it caused a compilation error when cross-compiling to
58510         Cygwin.
58511
58512 2007-01-18  Jim Meyering  <jim@meyering.net>
58513
58514         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58515         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58516         than the race-prone "test -d sys || mkdir sys".
58517         (configure.ac): Use AC_PROG_MKDIR_P.
58518         * modules/sys_select: Likewise.
58519         * modules/sys_socket: Likewise.
58520         * modules/sys_time: Likewise.
58521
58522 2007-01-18  Eric Blake  <ebb9@byu.net>
58523
58524         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58525         replace gettimeofday.
58526         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58527         name, to avoid infinite recursion.
58528
58529 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58530
58531         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58532         module sys_time.
58533         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58534         assume timespec.h defines struct timeval.
58535         * lib/settime.c: Likewise.
58536         * lib/utimens.c: Likewise.
58537         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58538         since we now assume the gettimeofday module.
58539         * lib/tempname.c (__gen_tempname): Likewise.
58540         * lib/gettimeofday.h: Remove.
58541         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
58542         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
58543         Include <time.h>, for 'time()'.
58544         (localtime_buffer_addr): Also use this workaround if
58545         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
58546         to simplify the uses.  All uses changed.
58547         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
58548         that #undef is inside {}, and 'const' follows type name consistently.
58549         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
58550         (gettimeofday): Do not use the maximum possible value for
58551         tv->tv_usec, since that might break usages other than ls.c.
58552         Instead, we'll leave ls.c alone.  This undoes today's patch
58553         by Bruno.  Add a compile-time warning for 1s-clock resolution;
58554         we've never observed the problem but might as well keep the
58555         canary.
58556         * lib/nanosleep.c: Include timespec.h first, for interface check.
58557         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
58558         now assume the sys_time module.
58559         * lib/tempname.c: Likewise.
58560         * lib/timespec.h: Likewise.
58561         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
58562         needed.
58563         * lib/strftime.c: Likewise.
58564         * lib/timespec.h: Likewise.
58565         * lib/posixtm.c: Include posixtm.h first, for interface check.
58566         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
58567         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
58568         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
58569         * lib/sys_time_.h: New file.
58570         * lib/timespec.h (struct timespec): Use long int, not long.
58571         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58572         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
58573         Remove obsolescent call to AC_HEADER_TIME.
58574         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58576         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58577         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
58578         Likewise.
58579         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
58580         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
58581         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
58582         into the sys_time module.  Check for gettimeofday just once.
58583         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
58584         for gettimeofday signature to just check the signature.  Merely
58585         compile it, since linking doesn't test signature.  Improve test for
58586         whether gettimeofday.o is actually needed.
58587         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
58588         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
58589         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
58590         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58591         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
58592         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
58593         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
58594         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
58595         than worrying about sys/time.h.
58596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58597         Don't bother worrying about TIME_WITH_SYS_TIME.
58598         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58599         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
58600         * m4/sys_time_h.m4: New file.
58601         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
58602         Don't include sys/time.h.  Return from main rather than exiting.
58603         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
58604         all uses changed.
58605         * modules/gethrxtime (Depends-on): Add sys_time.
58606         * modules/gettime (Depends-on): Likewise.
58607         * modules/gettimeofday (Depends-on): Likewise.
58608         * modules/nanosleep (Depends-on): Likewise.
58609         * modules/settime (Depends-on): Likewise.
58610         * modules/tempname (Depends-on): Likewise.
58611         * modules/utimens (Depends-on): Likewise.
58612         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
58613         (Include): Change back to <sys/time.h>.
58614         (Maintainer): Add self.
58615         * modules/sys_time: New file.
58616         * modules/tempname (Depends-on): Add gettimeofday.
58617         * tests/test-gettimeofday.c: Include <sys/time.h>
58618         rather than gettimeofday.h.
58619
58620 2007-01-17  Bruno Haible  <bruno@clisp.org>
58621
58622         * gnulib-tool (func_get_license): Revert last patch. Instead, let
58623         the license default to GPL.
58624         (func_create_testdir): Don't complain if a module is LGPL and its
58625         tests module depends on GPLed modules.
58626
58627 2007-01-17  Bruno Haible  <bruno@clisp.org>
58628
58629         * lib/gettimeofday.c (gettimeofday): Add code for the case
58630         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
58631         maximum possible value for tv->tv_usec, rather than the minimum one.
58632
58633 2005-10-08  Martin Lambers  <marlam@marlam.de>
58634 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58635 2007-01-16  Bruno Haible  <bruno@clisp.org>
58636
58637         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
58638         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
58639         gl_FUNC_GETTIMEOFDAY.
58640         (Include): Add gettimeofday.h.
58641         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
58642         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
58643         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
58644         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
58645         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
58646         * lib/gettimeofday.h: New file.
58647         * lib/gettimeofday.c: Include <sys/timeb.h>.
58648         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
58649         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58650         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
58651         fall back on time().
58652
58653         * tests/test-gettimeofday.c: New file.
58654         * modules/gettimeofday-tests: New file.
58655
58656 2007-01-16  Eric Blake  <ebb9@byu.net>
58657
58658         * modules/fnmatch (Depends-on): Depend on wchar.
58659         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
58660         * m4/fnmatch.m4: Likewise.
58661         * modules/mbchar (Makefile.am): Assume <wchar.h>.
58662         * m4/mbchar.m4: Likewise.
58663         * modules/mbswidth (Depends-on): Depend on wchar.
58664         * lib/mbswidth.c: Assume <wchar.h>.
58665         * m4/mbswidth.m4: Likewise.
58666         * modules/quotearg (Depends-on): Depend on wchar.
58667         * lib/quotearg.c: Assume <wchar.h>.
58668         * m4/quotearg.m4: Likewise.
58669         * modules/regex (Depends-on): Depend on wchar.
58670         * lib/regex_internal.h: Assume <wchar.h>.
58671         * m4/regex.m4: Likewise.
58672         * modules/stdint (Depends-on): Depend on wchar.
58673         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
58674         * m4/stdint.m4: Likewise.
58675         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
58676         * modules/strftime (Depends-on): Depend on wchar.
58677         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
58678         * modules/strtol (Depends-on): Depend on wchar.
58679         * lib/strtol.c: Assume <wchar.h>.
58680         * modules/wcwidth (Depends-on): Depend on wchar.
58681         * lib/wcwidth.h: Assume <wchar.h>.
58682         * m4/wcwidth.m4: Likewise.
58683
58684 2007-01-16  Bruno Haible  <bruno@clisp.org>
58685
58686         * modules/csharpexec-script: New, created from...
58687         * modules/csharpexec: ... this.
58688
58689 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58690
58691         * modules/javaexec-script: New, created from...
58692         * modules/javaexec: ... this.
58693
58694 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58695
58696         * modules/poll (Dependencies): Add sys_select.
58697
58698 2007-01-15  Jim Meyering  <jim@meyering.net>
58699
58700         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
58701         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
58702         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
58703         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
58704
58705 2007-01-15  Bruno Haible  <bruno@clisp.org>
58706
58707         * modules/striconveh: New file.
58708         * lib/striconveh.h: New file.
58709         * lib/striconveh.c: New file.
58710         * MODULES.html.sh (Internationalization functions): Add striconveh.
58711
58712         * modules/striconveh-tests: New file.
58713         * tests/test-striconveh.c: New file.
58714
58715 2007-01-15  Bruno Haible  <bruno@clisp.org>
58716
58717         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
58718         not from GNU libiconv or GNU libc.
58719
58720 2007-01-15  Bruno Haible  <bruno@clisp.org>
58721
58722         * doc/gnulib-intro.texi (Copyright): Explain the different license
58723         terms for module descriptions, autoconf macros, tests, documentation.
58724
58725 2007-01-14  Bruno Haible  <bruno@clisp.org>
58726
58727         * modules/striconv-tests: New file.
58728         * tests/test-striconv.c: New file.
58729
58730 2007-01-14  Bruno Haible  <bruno@clisp.org>
58731
58732         * modules/iconv-tests: New file.
58733         * tests/test-iconv.c: New file.
58734
58735 2007-01-14  Bruno Haible  <bruno@clisp.org>
58736
58737         * gnulib-tool (func_get_license): For test modules, use the license of
58738         the main module.
58739
58740 2007-01-14  Bruno Haible  <bruno@clisp.org>
58741
58742         * modules/iconv (Include): Clarify that <iconv.h> can only be included
58743         if iconv is found to exist.
58744
58745 2007-01-14  Bruno Haible  <bruno@clisp.org>
58746
58747         * modules/c-ctype-tests: New file.
58748         * tests/test-c-ctype.c: New file.
58749
58750 2007-01-14  Bruno Haible  <bruno@clisp.org>
58751
58752         * modules/binary-io-tests: New file.
58753         * tests/test-binary-io.sh: New file.
58754         * tests/test-binary-io.c: New file.
58755
58756 2007-01-14  Bruno Haible  <bruno@clisp.org>
58757
58758         * modules/array-oset-tests: New file.
58759         * tests/test-array_oset.c: New file.
58760
58761 2007-01-14  Bruno Haible  <bruno@clisp.org>
58762
58763         * modules/array-list-tests: New file.
58764         * tests/test-array_list.c: New file.
58765
58766 2007-01-14  Bruno Haible  <bruno@clisp.org>
58767
58768         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
58769         and make.
58770         Reported by Simon Josefsson in
58771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
58772
58773 2007-01-14  Bruno Haible  <bruno@clisp.org>
58774
58775         * modules/allocsa-tests: New file.
58776         * tests/test-allocsa.c: New file.
58777
58778 2007-01-14  Bruno Haible  <bruno@clisp.org>
58779
58780         * modules/fchdir (Depends-on): Add absolute-header.
58781         * modules/unistd (Depends-on): Likewise.
58782
58783 2006-12-30  Bruno Haible  <bruno@clisp.org>
58784
58785         * modules/fchdir: New file.
58786         * modules/unistd (Files): Add lib/unistd_.h.
58787         (Makefile.am): Generate unistd.h from unistd_.h.
58788         * lib/fchdir.c: New file.
58789         * lib/dirent_.h: New file.
58790         * lib/unistd_.h: New file.
58791         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
58792         * m4/fchdir.m4: New file.
58793         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
58794         (gl_HEADER_UNISTD): Invoke it.
58795         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
58796         function.
58797         * lib/backupfile.c (opendir, closedir): Undefine.
58798         * lib/chown.c (open, close): Undefine.
58799         * lib/clean-temp.c (open, close): Undefine.
58800         * lib/copy-file.c (open, close): Undefine.
58801         * lib/execute.c (open, close): Undefine.
58802         * lib/fsusage.c (open, close): Undefine.
58803         * lib/gc-gnulib.c (open, close): Undefine.
58804         * lib/getcwd.c (opendir, closedir): Undefine.
58805         * lib/glob.c (opendir, closedir): Undefine.
58806         * lib/javacomp.c (open, close): Undefine.
58807         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
58808         * lib/openat-proc.c (open, close): Undefine.
58809         * lib/pagealign_alloc.c (open, close): Undefine.
58810         * lib/pipe.c (open, close): Undefine.
58811         * lib/progreloc.c (open, close): Undefine.
58812         * lib/savedir.c (opendir, closedir): Undefine.
58813         * lib/utime.c (open, close): Undefine.
58814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
58815
58816 2007-01-10  Bruno Haible  <bruno@clisp.org>
58817
58818         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
58819
58820 2007-01-12  Eric Blake  <ebb9@byu.net>
58821
58822         Provide a robust <wchar.h>.  Further simplifications are now
58823         possible in other modules, but not included here.
58824         * modules/wchar: New module.
58825         * m4/wchar.m4: New file.
58826         * lib/wchar_.h: Likewise.
58827         * modules/mbchar (Depends-on): Depend on wchar, as the first use
58828         of the new module.
58829         * MODULES.html.sh (Extended multibyte and wide character utilities):
58830         New section.
58831
58832 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
58833
58834         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
58835         to a reasonable default for memory allocation.
58836         (xreadlink): Don't allocate a huge buffer, to work around a buggy
58837         file system that reports garbage st_size values for symlinks.
58838         Problem reported by Liyang Hu.
58839
58840 2007-01-11  Simon Josefsson  <simon@josefsson.org>
58841
58842         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
58843         Emacs .#* auto-save files).
58844
58845 2007-01-11  Bruno Haible  <bruno@clisp.org>
58846
58847         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
58848         directory.
58849
58850 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58851
58852         Use @...@ consistently in lib/wctype_.h.
58853         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
58854         on it being set to 1 or 0.
58855         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
58856         go back to AC_SUBSTing it.
58857         * modules/wctype (Makefile.am): Undo previous change.
58858
58859 2007-01-10  Eric Blake  <ebb9@byu.net>
58860
58861         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
58862         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
58863         * modules/wctype (Makefile.am): Likewise.
58864         Reported by Chris McGuire.
58865
58866 2007-01-10  Jim Meyering  <jim@meyering.net>
58867
58868         fts.c: a small readability/maintainability improvement
58869         * lib/fts.c (fts_read): Make this code slightly more readable and
58870         maintainable by hoisting the "sp->fts_cur = p" assignments to
58871         immediately follow the statements that set P.  Derived from
58872         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
58873
58874 2007-01-10  Eric Blake  <ebb9@byu.net>
58875
58876         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
58877         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
58878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58879         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
58880         Reported by Chris McGuire.
58881
58882 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58883
58884         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
58885         in sed script.
58886
58887 2007-01-09  Bruno Haible  <bruno@clisp.org>
58888
58889         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
58890         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
58891         variables.
58892         (func_module): Use them.
58893
58894 2007-01-09  Bruno Haible  <bruno@clisp.org>
58895
58896         * modules/unistr/base: New file.
58897         * lib/unistr.h: New file.
58898
58899         * modules/unistr/u8-to-u16: New file.
58900         * lib/unistr/u8-to-u16.c: New file.
58901
58902         * modules/unistr/u8-to-u32: New file.
58903         * lib/unistr/u8-to-u32.c: New file.
58904
58905         * modules/unistr/u16-to-u8: New file.
58906         * lib/unistr/u16-to-u8.c: New file.
58907
58908         * modules/unistr/u16-to-u32: New file.
58909         * lib/unistr/u16-to-u32.c: New file.
58910
58911         * modules/unistr/u32-to-u8: New file.
58912         * lib/unistr/u32-to-u8.c: New file.
58913
58914         * modules/unistr/u32-to-u16: New file.
58915         * lib/unistr/u32-to-u16.c: New file.
58916
58917         * modules/unistr/u8-check: New file.
58918         * modules/unistr/u16-check: New file.
58919         * modules/unistr/u32-check: New file.
58920         * lib/unistr/u8-check.c: New file.
58921         * lib/unistr/u16-check.c: New file.
58922         * lib/unistr/u32-check.c: New file.
58923
58924         * modules/unistr/u8-chr: New file.
58925         * modules/unistr/u16-chr: New file.
58926         * modules/unistr/u32-chr: New file.
58927         * lib/unistr/u8-chr.c: New file.
58928         * lib/unistr/u16-chr.c: New file.
58929         * lib/unistr/u32-chr.c: New file.
58930
58931         * modules/unistr/u8-cmp: New file.
58932         * modules/unistr/u16-cmp: New file.
58933         * modules/unistr/u32-cmp: New file.
58934         * lib/unistr/u8-cmp.c: New file.
58935         * lib/unistr/u16-cmp.c: New file.
58936         * lib/unistr/u32-cmp.c: New file.
58937
58938         * modules/unistr/u8-cpy: New file.
58939         * modules/unistr/u16-cpy: New file.
58940         * modules/unistr/u32-cpy: New file.
58941         * lib/unistr/u8-cpy.c: New file.
58942         * lib/unistr/u16-cpy.c: New file.
58943         * lib/unistr/u32-cpy.c: New file.
58944         * lib/unistr/u-cpy.h: New file.
58945
58946         * modules/unistr/u8-cpy-alloc: New file.
58947         * modules/unistr/u16-cpy-alloc: New file.
58948         * modules/unistr/u32-cpy-alloc: New file.
58949         * lib/unistr/u8-cpy-alloc.c: New file.
58950         * lib/unistr/u16-cpy-alloc.c: New file.
58951         * lib/unistr/u32-cpy-alloc.c: New file.
58952         * lib/unistr/u-cpy-alloc.h: New file.
58953
58954         * modules/unistr/u8-endswith: New file.
58955         * modules/unistr/u16-endswith: New file.
58956         * modules/unistr/u32-endswith: New file.
58957         * lib/unistr/u8-endswith.c: New file.
58958         * lib/unistr/u16-endswith.c: New file.
58959         * lib/unistr/u32-endswith.c: New file.
58960         * lib/unistr/u-endswith.h: New file.
58961
58962         * modules/unistr/u8-mblen: New file.
58963         * modules/unistr/u16-mblen: New file.
58964         * modules/unistr/u32-mblen: New file.
58965         * lib/unistr/u8-mblen.c: New file.
58966         * lib/unistr/u16-mblen.c: New file.
58967         * lib/unistr/u32-mblen.c: New file.
58968
58969         * modules/unistr/u8-mbtouc: New file.
58970         * modules/unistr/u16-mbtouc: New file.
58971         * modules/unistr/u32-mbtouc: New file.
58972         * lib/unistr/u8-mbtouc.c: New file.
58973         * lib/unistr/u16-mbtouc.c: New file.
58974         * lib/unistr/u32-mbtouc.c: New file.
58975
58976         * modules/unistr/u8-mbtouc-safe: New file.
58977         * modules/unistr/u16-mbtouc-safe: New file.
58978         * modules/unistr/u32-mbtouc-safe: New file.
58979         * lib/unistr/u8-mbtouc-safe.c: New file.
58980         * lib/unistr/u16-mbtouc-safe.c: New file.
58981         * lib/unistr/u32-mbtouc-safe.c: New file.
58982
58983         * modules/unistr/u8-move: New file.
58984         * modules/unistr/u16-move: New file.
58985         * modules/unistr/u32-move: New file.
58986         * lib/unistr/u8-move.c: New file.
58987         * lib/unistr/u16-move.c: New file.
58988         * lib/unistr/u32-move.c: New file.
58989         * lib/unistr/u-move.h: New file.
58990
58991         * modules/unistr/u8-next: New file.
58992         * modules/unistr/u16-next: New file.
58993         * modules/unistr/u32-next: New file.
58994         * lib/unistr/u8-next.c: New file.
58995         * lib/unistr/u16-next.c: New file.
58996         * lib/unistr/u32-next.c: New file.
58997
58998         * modules/unistr/u8-prev: New file.
58999         * modules/unistr/u16-prev: New file.
59000         * modules/unistr/u32-prev: New file.
59001         * lib/unistr/u8-prev.c: New file.
59002         * lib/unistr/u16-prev.c: New file.
59003         * lib/unistr/u32-prev.c: New file.
59004
59005         * modules/unistr/u8-set: New file.
59006         * modules/unistr/u16-set: New file.
59007         * modules/unistr/u32-set: New file.
59008         * lib/unistr/u8-set.c: New file.
59009         * lib/unistr/u16-set.c: New file.
59010         * lib/unistr/u32-set.c: New file.
59011         * lib/unistr/u-set.h: New file.
59012
59013         * modules/unistr/u8-startswith: New file.
59014         * modules/unistr/u16-startswith: New file.
59015         * modules/unistr/u32-startswith: New file.
59016         * lib/unistr/u8-startswith.c: New file.
59017         * lib/unistr/u16-startswith.c: New file.
59018         * lib/unistr/u32-startswith.c: New file.
59019         * lib/unistr/u-startswith.h: New file.
59020
59021         * modules/unistr/u8-stpcpy: New file.
59022         * modules/unistr/u16-stpcpy: New file.
59023         * modules/unistr/u32-stpcpy: New file.
59024         * lib/unistr/u8-stpcpy.c: New file.
59025         * lib/unistr/u16-stpcpy.c: New file.
59026         * lib/unistr/u32-stpcpy.c: New file.
59027         * lib/unistr/u-stpcpy.h: New file.
59028
59029         * modules/unistr/u8-stpncpy: New file.
59030         * modules/unistr/u16-stpncpy: New file.
59031         * modules/unistr/u32-stpncpy: New file.
59032         * lib/unistr/u8-stpncpy.c: New file.
59033         * lib/unistr/u16-stpncpy.c: New file.
59034         * lib/unistr/u32-stpncpy.c: New file.
59035         * lib/unistr/u-stpncpy.h: New file.
59036
59037         * modules/unistr/u8-strcat: New file.
59038         * modules/unistr/u16-strcat: New file.
59039         * modules/unistr/u32-strcat: New file.
59040         * lib/unistr/u8-strcat.c: New file.
59041         * lib/unistr/u16-strcat.c: New file.
59042         * lib/unistr/u32-strcat.c: New file.
59043         * lib/unistr/u-strcat.h: New file.
59044
59045         * modules/unistr/u8-strchr: New file.
59046         * modules/unistr/u16-strchr: New file.
59047         * modules/unistr/u32-strchr: New file.
59048         * lib/unistr/u8-strchr.c: New file.
59049         * lib/unistr/u16-strchr.c: New file.
59050         * lib/unistr/u32-strchr.c: New file.
59051
59052         * modules/unistr/u8-strcmp: New file.
59053         * modules/unistr/u16-strcmp: New file.
59054         * modules/unistr/u32-strcmp: New file.
59055         * lib/unistr/u8-strcmp.c: New file.
59056         * lib/unistr/u16-strcmp.c: New file.
59057         * lib/unistr/u32-strcmp.c: New file.
59058
59059         * modules/unistr/u8-strcpy: New file.
59060         * modules/unistr/u16-strcpy: New file.
59061         * modules/unistr/u32-strcpy: New file.
59062         * lib/unistr/u8-strcpy.c: New file.
59063         * lib/unistr/u16-strcpy.c: New file.
59064         * lib/unistr/u32-strcpy.c: New file.
59065         * lib/unistr/u-strcpy.h: New file.
59066
59067         * modules/unistr/u8-strcspn: New file.
59068         * modules/unistr/u16-strcspn: New file.
59069         * modules/unistr/u32-strcspn: New file.
59070         * lib/unistr/u8-strcspn.c: New file.
59071         * lib/unistr/u16-strcspn.c: New file.
59072         * lib/unistr/u32-strcspn.c: New file.
59073         * lib/unistr/u-strcspn.h: New file.
59074
59075         * modules/unistr/u8-strdup: New file.
59076         * modules/unistr/u16-strdup: New file.
59077         * modules/unistr/u32-strdup: New file.
59078         * lib/unistr/u8-strdup.c: New file.
59079         * lib/unistr/u16-strdup.c: New file.
59080         * lib/unistr/u32-strdup.c: New file.
59081         * lib/unistr/u-strdup.h: New file.
59082
59083         * modules/unistr/u8-strlen: New file.
59084         * modules/unistr/u16-strlen: New file.
59085         * modules/unistr/u32-strlen: New file.
59086         * lib/unistr/u8-strlen.c: New file.
59087         * lib/unistr/u16-strlen.c: New file.
59088         * lib/unistr/u32-strlen.c: New file.
59089         * lib/unistr/u-strlen.h: New file.
59090
59091         * modules/unistr/u8-strmblen: New file.
59092         * modules/unistr/u16-strmblen: New file.
59093         * modules/unistr/u32-strmblen: New file.
59094         * lib/unistr/u8-strmblen.c: New file.
59095         * lib/unistr/u16-strmblen.c: New file.
59096         * lib/unistr/u32-strmblen.c: New file.
59097
59098         * modules/unistr/u8-strmbtouc: New file.
59099         * modules/unistr/u16-strmbtouc: New file.
59100         * modules/unistr/u32-strmbtouc: New file.
59101         * lib/unistr/u8-strmbtouc.c: New file.
59102         * lib/unistr/u16-strmbtouc.c: New file.
59103         * lib/unistr/u32-strmbtouc.c: New file.
59104
59105         * modules/unistr/u8-strncat: New file.
59106         * modules/unistr/u16-strncat: New file.
59107         * modules/unistr/u32-strncat: New file.
59108         * lib/unistr/u8-strncat.c: New file.
59109         * lib/unistr/u16-strncat.c: New file.
59110         * lib/unistr/u32-strncat.c: New file.
59111         * lib/unistr/u-strncat.h: New file.
59112
59113         * modules/unistr/u8-strncmp: New file.
59114         * modules/unistr/u16-strncmp: New file.
59115         * modules/unistr/u32-strncmp: New file.
59116         * lib/unistr/u8-strncmp.c: New file.
59117         * lib/unistr/u16-strncmp.c: New file.
59118         * lib/unistr/u32-strncmp.c: New file.
59119
59120         * modules/unistr/u8-strncpy: New file.
59121         * modules/unistr/u16-strncpy: New file.
59122         * modules/unistr/u32-strncpy: New file.
59123         * lib/unistr/u8-strncpy.c: New file.
59124         * lib/unistr/u16-strncpy.c: New file.
59125         * lib/unistr/u32-strncpy.c: New file.
59126         * lib/unistr/u-strncpy.h: New file.
59127
59128         * modules/unistr/u8-strnlen: New file.
59129         * modules/unistr/u16-strnlen: New file.
59130         * modules/unistr/u32-strnlen: New file.
59131         * lib/unistr/u8-strnlen.c: New file.
59132         * lib/unistr/u16-strnlen.c: New file.
59133         * lib/unistr/u32-strnlen.c: New file.
59134         * lib/unistr/u-strnlen.h: New file.
59135
59136         * modules/unistr/u8-strpbrk: New file.
59137         * modules/unistr/u16-strpbrk: New file.
59138         * modules/unistr/u32-strpbrk: New file.
59139         * lib/unistr/u8-strpbrk.c: New file.
59140         * lib/unistr/u16-strpbrk.c: New file.
59141         * lib/unistr/u32-strpbrk.c: New file.
59142         * lib/unistr/u-strpbrk.h: New file.
59143
59144         * modules/unistr/u8-strrchr: New file.
59145         * modules/unistr/u16-strrchr: New file.
59146         * modules/unistr/u32-strrchr: New file.
59147         * lib/unistr/u8-strrchr.c: New file.
59148         * lib/unistr/u16-strrchr.c: New file.
59149         * lib/unistr/u32-strrchr.c: New file.
59150
59151         * modules/unistr/u8-strspn: New file.
59152         * modules/unistr/u16-strspn: New file.
59153         * modules/unistr/u32-strspn: New file.
59154         * lib/unistr/u8-strspn.c: New file.
59155         * lib/unistr/u16-strspn.c: New file.
59156         * lib/unistr/u32-strspn.c: New file.
59157         * lib/unistr/u-strspn.h: New file.
59158
59159         * modules/unistr/u8-strstr: New file.
59160         * modules/unistr/u16-strstr: New file.
59161         * modules/unistr/u32-strstr: New file.
59162         * lib/unistr/u8-strstr.c: New file.
59163         * lib/unistr/u16-strstr.c: New file.
59164         * lib/unistr/u32-strstr.c: New file.
59165         * lib/unistr/u-strstr.h: New file.
59166
59167         * modules/unistr/u8-strtok: New file.
59168         * modules/unistr/u16-strtok: New file.
59169         * modules/unistr/u32-strtok: New file.
59170         * lib/unistr/u8-strtok.c: New file.
59171         * lib/unistr/u16-strtok.c: New file.
59172         * lib/unistr/u32-strtok.c: New file.
59173         * lib/unistr/u-strtok.h: New file.
59174
59175         * modules/unistr/u8-uctomb: New file.
59176         * modules/unistr/u16-uctomb: New file.
59177         * modules/unistr/u32-uctomb: New file.
59178         * lib/unistr/u8-uctomb.c: New file.
59179         * lib/unistr/u16-uctomb.c: New file.
59180         * lib/unistr/u32-uctomb.c: New file.
59181
59182         * MODULES.html.sh (Unicode string functions): Add the new modules.
59183
59184 2007-01-08  Bruno Haible  <bruno@clisp.org>
59185
59186         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59187         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59188         subdirectories.
59189
59190 2007-01-08  Karl Berry  <karl@gnu.org>
59191
59192         * doc/error.texi: mention that main() fns must set program_name
59193         when progname is used.
59194
59195 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59196
59197         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59198         WCTYPE_H is empty, for the benefit of builds from non-distclean
59199         directories.  Problem reported by Eric Blake in
59200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59201
59202 2007-01-08  Bruno Haible  <bruno@clisp.org>
59203
59204         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59205         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59206         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59207         PROVIDE_CANONICALIZE_FILENAME_MODE.
59208         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59209
59210 2007-01-08  Bruno Haible  <bruno@clisp.org>
59211
59212         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59213         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59214         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59215         * lib/fts.c: Likewise.
59216         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59217
59218 2006-12-25  Bruno Haible  <bruno@clisp.org>
59219
59220         * modules/utf8-ucs4-safe: New file.
59221         * lib/utf8-ucs4-safe.h: New file.
59222         * lib/unistr/utf8-ucs4-safe.c: New file.
59223
59224         * modules/utf16-ucs4-safe: New file.
59225         * lib/utf16-ucs4-safe.h: New file.
59226         * lib/unistr/utf16-ucs4-safe.c: New file.
59227
59228         * MODULES.html.sh (Unicode string functions): Add the new modules.
59229
59230 2007-01-08  Bruno Haible  <bruno@clisp.org>
59231
59232         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59233         (Depends-on): Add unitypes.
59234         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59235         (u8_mbtouc_aux): Move out to separate file.
59236         (u8_mbtouc): Use ucs4_t, uint8_t types.
59237         * lib/unistr/utf8-ucs4.c: New file.
59238
59239         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59240         (Depends-on): Add unitypes.
59241         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59242         (u16_mbtouc_aux): Move out to separate file.
59243         (u16_mbtouc): Use ucs4_t, uint16_t types.
59244         * lib/unistr/utf16-ucs4.c: New file.
59245
59246         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59247         (Depends-on): Add unitypes.
59248         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59249         (u8_uctomb_aux): Move out to separate file.
59250         (u8_uctomb): Use ucs4_t, uint8_t types.
59251         * lib/unistr/ucs4-utf8.c: New file.
59252
59253         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59254         (Depends-on): Add unitypes.
59255         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59256         (u16_uctomb_aux): Move out to separate file.
59257         (u16_uctomb): Use ucs4_t, uint16_t types.
59258         * lib/unistr/ucs4-utf16.c: New file.
59259
59260 2006-12-25  Bruno Haible  <bruno@clisp.org>
59261
59262         * modules/unitypes: New file.
59263         * lib/unitypes.h: New file.
59264         * MODULES.html.sh (func_all_modules): New section "Unicode string
59265         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59266         this section. Add unitypes.
59267
59268 2007-01-08  Bruno Haible  <bruno@clisp.org>
59269
59270         Avoid variable names that conflict with those from libtool.
59271         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59272         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59273         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59274         library_names_spec to acl_library_names_spec, hardcode_* to
59275         acl_hardcode_*.
59276         Reported by Ralf Wildenhues.
59277
59278 2007-01-08  Bruno Haible  <bruno@clisp.org>
59279
59280         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59281         definition.
59282         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59283         definition.
59284         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59285         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59286         definition.
59287         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59288         definition.
59289         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59290         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59291         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59292         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59293         definition.
59294         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59295         definition.
59296         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59297         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59298         GC_USE_<algorithm>.
59299         * lib/gc-libgcrypt.c: Likewise.
59300         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59301         * modules/gc-arctwo (configure.ac): Likewise.
59302         * modules/gc-des (configure.ac): Likewise.
59303         * modules/gc-hmac-md5 (configure.ac): Likewise.
59304         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59305         * modules/gc-md2 (configure.ac): Likewise.
59306         * modules/gc-md4 (configure.ac): Likewise.
59307         * modules/gc-md5 (configure.ac): Likewise.
59308         * modules/gc-random (configure.ac): Likewise.
59309         * modules/gc-rijndael (configure.ac): Likewise.
59310         * modules/gc-sha1 (configure.ac): Likewise.
59311
59312 2007-01-08  Bruno Haible  <bruno@clisp.org>
59313
59314         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59315         macro definition.
59316         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59317         definition.
59318         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59319         definition.
59320         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59321         * modules/fcntl-safer (configure.ac): Likewise.
59322         * modules/fopen-safer (configure.ac): Likewise.
59323         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59324         GNULIB_FWRITEERROR macro definition.
59325
59326 2007-01-08  Bruno Haible  <bruno@clisp.org>
59327
59328         * m4/gnulib-common.m4: New file.
59329         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59330         (func_get_filelist): Add m4/gnulib-common.m4.
59331
59332 2007-01-08  Bruno Haible  <bruno@clisp.org>
59333
59334         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59335         command.
59336
59337 2007-01-08  Jim Meyering  <jim@meyering.net>
59338
59339         Use a more robust test for a "can't happen" condition.
59340         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59341         narrowed the st_size value.  Presuming the "can't happen" condition
59342         is true, that narrowing could conceivably convert an invalid st_size
59343         value into a valid one.  Instead, use a change based on Matthew
59344         Woehlke's original patch.
59345
59346         Slight readability improvement: use an assert-like macro
59347         in place of literal "abort ()" uses.
59348         * lib/fts.c (fts_assert): Define.
59349         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59350         Use this macro instead of a bare 'abort'.
59351
59352 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59353
59354         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59355         simply work around them.
59356         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59357         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59358         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59359         declaring.
59360         Don't bother to define as macros, since the standard doesn't require it.
59361         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59362         longer worry about IRIX 5.3.
59363         (HAVE_WCTYPE_CTMP_BUG): Remove.
59364
59365 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59366
59367         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59368         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59369         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59370         Problems reported by Georg Schwarz for IRIX 5.3.
59371
59372         * gnulib-tool (autoconf_minversion): Take the maximum version number
59373         found, not the minimum.  Problem reported by James Youngman.
59374
59375 2007-01-03  Karl Berry  <karl@gnu.org>
59376
59377         * doc/error.texi: new file, explaining interaction with progname.
59378         * doc/gnulib.texi: include it.  Update copyright.
59379
59380 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59381
59382         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59383         AC_CANONICAL_HOST, to improve autobuild outputs.
59384
59385 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59386             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59387
59388         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59389         sockets, server sockets, and other file descriptors.  Count errors
59390         to compute the return value.  Reorder the code a bit to be easier
59391         to follow.  Don't set event bits that were not requested (except
59392         POLLERR and POLLHUP).
59393
59394 2007-01-01  Bruno Haible  <bruno@clisp.org>
59395
59396         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59397
59398 2007-01-03  Jim Meyering  <jim@meyering.net>
59399
59400         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59401
59402 2007-01-02  Bruno Haible  <bruno@clisp.org>
59403
59404         * modules/settime (Include): Require timespec.h.
59405         * modules/nanosleep (Include): Likewise.
59406
59407 2007-01-01  Bruno Haible  <bruno@clisp.org>
59408
59409         * gnulib-tool (func_emit_copyright_notice): Bump year.
59410         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59411
59412 2007-01-01  Bruno Haible  <bruno@clisp.org>
59413
59414         Improve support for OpenBSD.
59415         * build-aux/config.rpath (libname_spec): Export.
59416         (library_names_spec): New variable. Export.
59417         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59418         library_names_spec from the config.rpath output. Locate shared library
59419         through the name pattern in library_names_spec.
59420
59421 2007-01-01  Eric Blake  <ebb9@byu.net>
59422
59423         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59424
59425 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59426
59427         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59428         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59429         assume the C locale, and avoid an "eval" that could cause trouble.
59430         Problem with SORT reported by Bob Proulx.
59431
59432         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59433         Define.  Trivial patch from Henning Nielsen Lund, originally
59434         sent to bug-grep@gnu.org today.
59435
59436 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59437
59438         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59439         struct stat.  Problem reported by Henning Nielsen Lund.
59440         * lib/acl.c: Include acl.h first, to check interface.  Don't
59441         bother to include sys/types.h and sys/stat.h again.
59442
59443 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59444
59445         Import the following change from libc; problem reported by
59446         Sven Verdoolaege.
59447
59448         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59449
59450         [BZ #1373]
59451         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59452
59453 2006-12-28  Jim Meyering  <jim@meyering.net>
59454
59455         * build-aux/announce-gen: Do not assume that the package
59456         builds any of tar.gz, tar.bz2, and .xdelta files.
59457         Suggestion from Simon Josefsson.
59458
59459 2006-12-28  Simon Josefsson  <simon@josefsson.org>
59460
59461         * modules/announce-gen: New file.
59462
59463 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59464
59465         * lib/mbchar.h: Just include <wctype.h>; the wctype module
59466         handles its gotchas now.
59467         * lib/mbswidth.c: Likewise.
59468         * lib/wcwidth.h: Likewise.
59469         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
59470         and iswcntrl; the wctype module does this stuff now.
59471         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59473         * modules/mbchar (Depends-on): Add wctype.
59474         * modules/mbswidth (Depends-on): Likewise.
59475         * modules/wcwidth (Depends-on): Likewise.
59476
59477 2006-12-27  Eric Blake  <ebb9@byu.net>
59478
59479         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59480         module uses more than what <wctype.h> is required to provide.
59481
59482 2006-12-26  Eric Blake  <ebb9@byu.net>
59483
59484         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59485
59486 2006-12-26  Eric Blake  <ebb9@byu.net>
59487
59488         * modules/absolute-header: New module.
59489         * modules/fcntl (Depends-on): Depend on it.
59490         * modules/inttypes (Depends-on): Likewise.
59491         * modules/stdint (Depends-on): Likewise.
59492         * modules/sys_stat (Depends-on): Likewise.
59493         * modules/wctype (Depends-on): Likewise.
59494         * MODULES.html.sh (Support for building libraries and
59495         executables): Document it.
59496
59497 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59498
59499         * gnulib-tool (SED): Remove, undoing previous change.
59500         The problem was that it broke coreutils on Solaris, because
59501         "sed --posix" leaked into a makefile.
59502         (sed): New alias, if 'alias' and GNU sed.
59503
59504 2006-12-24  Jim Meyering  <jim@meyering.net>
59505
59506         Work around an fchownat bug in glibc-2.4:
59507         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59508         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59509         in spite of the -P option.
59510         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59511         New macros.
59512         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59513         * modules/openat (Files): Add lib/fchownat.c.
59514         * lib/openat.c (fchownat): Don't define here.  Move to...
59515         * lib/fchownat.c: ...this new file.
59516
59517 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59518
59519         Fix bug reported by Bruno Haible in
59520         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59521         where quotearg.c didn't compile on Mac OS X 10.2 because it
59522         lacks <wchar.h> and wint_t.
59523         * lib/wctype_.h (__wctype_wint_t): New type.
59524         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59525         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59526         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59527         Arg is now of type __wctype_wint_t, not wint_t.
59528         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59529         substitute HAVE_WINT_T.
59530         * modules/wctype (Files): Add m4/wint_t.m4.
59531         (wctype.h): Substitute HAVE_WINT_T.
59532
59533 2006-12-23  Bruno Haible  <bruno@clisp.org>
59534
59535         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59536
59537 2006-12-23  Bruno Haible  <bruno@clisp.org>
59538
59539         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
59540         S_ISLNK.
59541         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
59542         mingw.
59543
59544 2006-12-22  Bruno Haible  <bruno@clisp.org>
59545
59546         * lib/copy-file.c: Include acl.h.
59547         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
59548         Close the file descriptors only after being done with copy_acl.
59549         * modules/copy-file (Depends-on): Add acl.
59550
59551 2006-12-22  Bruno Haible  <bruno@clisp.org>
59552
59553         * gnulib-tool (SED): New variable.
59554         Use $SED instead of sed everywhere.
59555
59556 2006-12-22  Bruno Haible  <bruno@clisp.org>
59557
59558         * modules/no-c++: New file.
59559         * m4/no-c++.m4: New file.
59560         * MODULES.html.sh (Support for building libraries and executables):
59561         Add no-c++.
59562
59563 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59564
59565         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59566         Include <limits.h>, and use its INT_MAX to rewrite the
59567         j loop so that it does not overflow 'int'.  Problem reported by
59568         Ralf Wildenhues in
59569         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
59570         Play it safe by shifting left by 1 rather than multiplying by 2,
59571         as GCC is less likely to optimize this away when the value
59572         is signed (when it assumes overflow leads to undefined behavior).
59573         Also, don't assume time_t uses two's complement.
59574
59575 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59576
59577         * MODULES.html.sh: New module wctype.
59578         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
59579         * lib/fnmatch.c: Don't bother to include <wchar.h> before
59580         <wctype.h>, since the new wctype module should fix this.
59581         * lib/quotearg.c: Include <wctype.h> unconditionally, since
59582         the wctype module should arrange for it.
59583         * lib/regex_internal.h: Likewise.
59584         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
59585         since the wctype module should handle this now.
59586         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
59587         * modules/fnmatch (Depends-on): Add wctype.
59588         * modules/quotearg (Depends-on): Likewise.
59589         * modules/regex (Depends-on): Likewise.
59590
59591 2006-12-19  Bruno Haible  <bruno@clisp.org>
59592
59593         * lib/strdup.h [C++]: Wrap definitions in extern "C".
59594         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
59595
59596 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59597
59598         * modules/savewd (Depends-on): Fix dependency on fcntl.
59599
59600 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59601
59602         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
59603         conforms to C99, rather than relying on the user's environment
59604         setting of STDINT_H.
59605
59606 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59607         and Eric Blake  <ebb9@byu.net>
59608
59609         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
59610         This is more consistent with the other defines here.
59611         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
59612         Port to z/OS.  Problem reported by Paul Gilmartin.
59613         Change local vars to use gl_ prefix rather than ac_.
59614         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
59615         with other defines.
59616         * modules/double-slash-root: New module.
59617         * modules/dirname (Files): Remove m4/double-slash-root.m4.
59618         (Depends-on): Add double-slash-root.
59619         * MODULES.html.sh (File system functions): Mention new module.
59620
59621 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
59622
59623         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
59624         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
59625         This is for the benefit of gzip, which doesn't do i18n.
59626
59627 2006-12-12  Jim Meyering  <jim@meyering.net>
59628
59629         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
59630         Reported by Andreas Schwab <schwab@suse.de>.
59631
59632 2006-12-12  Bruno Haible  <bruno@clisp.org>
59633
59634         Merge these changes.
59635         2006-09-05  Bruno Haible  <bruno@clisp.org>
59636         * lib/iconvme.c (iconv_string): No need to save and restore errno when
59637         iconv_alloc succeeded.
59638         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
59639         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
59640         test for " && dest " at the end - dest is always != NULL there. Call
59641         iconv with 4xNULL arguments initially, to reset the state. Call iconv
59642         with 2xNULL arguments, also to flush the state storage. Handle the
59643         IRIX iconv behaviour. Realloc the final result, to throw away unused
59644         memory.
59645
59646 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
59647
59648         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
59649         and fchmodat unconditionally, since glibc 2.4 has them.
59650         Problem reported by Arkadiusz Miskiewicz.
59651
59652 2006-12-10  Bruno Haible  <bruno@clisp.org>
59653
59654         * gnulib-tool (func_import): Show the include files only for those
59655         modules that are copied and specified.
59656         Reported by Karl Berry.
59657
59658 2006-12-08  Jim Meyering  <jim@meyering.net>
59659
59660         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
59661         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
59662
59663         * build-aux/announce-gen: Add two new options, both optional:
59664         --bootstrap-tools=TOOL_LIST
59665               a comma-separated list of tools, e.g.,
59666               autoconf,automake,bison,gnulib
59667         --gnulib-snapshot-date=DATE
59668               if gnulib is in the bootstrap tool list,
59669               then report this as the snapshot date.
59670               If not specified, use the current date/time.
59671               If you specify a date here, be sure it's UTC.
59672
59673 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59674
59675         * tests/test-argp-2.sh: Fix test to match actual output.
59676         (func_compare): Fix sed script to be portable.
59677
59678 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
59679
59680         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
59681         workaround for this case.  It is not autoconfigured now; offhand
59682         it's hard to see how to autoconfigure it.
59683
59684 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59685
59686         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
59687         a directory that is about to be chowned.  Such a directory's
59688         initial file permissions should permit the owner only and this
59689         should not be changed until after the chown, since the group and
59690         other bits would be incorrect if they granted permission before
59691         the chown.
59692
59693         Fix porting problem for iswctype reported by Georg Schwarz in:
59694         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
59695         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
59696         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
59697         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
59698         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59699
59700 2006-12-03  Jim Meyering  <jim@meyering.net>
59701
59702         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
59703         p->fts_statp may not yet be defined.
59704         (fts_read): Instead, set it in the caller, once p->fts_statp is
59705         sure to be defined, and corresponds to a top-level directory.
59706         This bug made du -x fail.  Here's the coreutils test case:
59707         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
59708         Reported by Mike Frysinger.
59709
59710 2006-12-01  Jim Meyering  <jim@meyering.net>
59711
59712         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
59713         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
59714         Reported by Simon Josefsson.
59715
59716 2006-11-30  Jim Meyering  <jim@meyering.net>
59717
59718         * m4/warning.m4: Use the all-permissive copyright notice
59719         recommended by RMS (rather than LGPL).
59720         * m4/vararrays.m4: Likewise.
59721         * m4/flexmember.m4: Likewise.
59722
59723 2006-11-29  Bruno Haible  <bruno@clisp.org>
59724
59725         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59726         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
59727         using +=.
59728         Reported by Simon Josefsson <simon@josefsson.org>.
59729
59730 2006-11-28  James Youngman <jay@gnu.org>
59731
59732         * README: Advise users that they might find the bug-gnulib@gnu.org
59733         and autotools-announce@gnu.org mailing lists useful.
59734
59735 2006-11-28  Bruno Haible  <bruno@clisp.org>
59736
59737         * m4/ptrdiff_max.m4: Remove file.
59738
59739 2006-11-21  Bruno Haible  <bruno@clisp.org>
59740
59741         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
59742         _AC_COMPUTE_INT.
59743         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59744         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
59745         _AC_COMPUTE_INT.
59746         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59747         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
59748         _AC_COMPUTE_INT.
59749         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59750
59751 2006-11-28  Jim Meyering  <jim@meyering.net>
59752
59753         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
59754         warning from "gcc -Wshadow" about shadowing the builtin.
59755
59756 2006-11-27  Bruno Haible  <bruno@clisp.org>
59757
59758         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
59759         _AC_COMPUTE_INT.
59760         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59761
59762 2006-11-27  Bruno Haible  <bruno@clisp.org>
59763             Paul Eggert  <eggert@cs.ucla.edu>
59764
59765         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
59766
59767 2006-11-26  Bruno Haible  <bruno@clisp.org>
59768
59769         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59770         noinst_LTLIBRARIES.
59771
59772 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
59773             Bruno Haible  <bruno@clisp.org>
59774
59775         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
59776         if compiling with "gcc -ansi".
59777
59778 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
59779
59780         Fix some incompatibilities with gcc -ansi -pedantic.
59781         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
59782         if compiling pedantically with GCC, unless it's C99 or later.
59783         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
59784         it mishandles gcc -ansi -pedantic as well.
59785         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
59786         if gcc -pedantic.
59787         * lib/regexec.c (check_node_accept_bytes): Don't use auto
59788         initializers for struct if -pedantic, unless it's C99 or later.
59789
59790 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
59791
59792         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
59793         Don't close an fd more than once. Identical atimes indicate
59794         success, not failure.
59795
59796 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
59797
59798         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
59799
59800 2006-11-23  Jim Meyering  <jim@meyering.net>
59801
59802         * build-aux/announce-gen: New file.  From coreutils.
59803
59804 2006-11-22  Jim Meyering  <jim@meyering.net>
59805
59806         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
59807         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
59808         (fts_read): Use a temporary to narrow the overused st_size member
59809         before using it in a switch statement.  Reported by Matthew Woehlke.
59810
59811         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
59812         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59813
59814 2006-11-20  Bruno Haible  <bruno@clisp.org>
59815
59816         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
59817         changequote instead of pairs of brackets.
59818         Reported by Andreas Schwab <schwab@suse.de>.
59819
59820 2006-11-21  Jim Meyering  <jim@meyering.net>
59821
59822         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
59823         so as to remain compatible with older compilers.
59824         Patch from Michael Deutschmann.
59825
59826 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59827
59828         * MODULES.html.sh (File system functions): Add openat.
59829
59830         * lib/openat.h (rpl_fstatat): New macro, if
59831         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
59832         (fstatat): Define to rpl_fstatat under the same conditions,
59833         unless COMPILING_FSTATAT.
59834         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
59835         seems to have the bug.
59836         * lib/fstatat.c: New file.
59837         * modules/openat (Files): Add it.
59838
59839 2006-11-20  Bruno Haible  <bruno@clisp.org>
59840
59841         * Makefile: New file.
59842
59843 2006-11-20  Jim Meyering  <jim@meyering.net>
59844
59845         The beginnings of syntax-related checks for gnulib.
59846         * lib/Makefile: New file.
59847         * lib/t-idcache: New script.  Ensure that the two halves of
59848         idcache.c stay in sync.
59849
59850         * lib/idcache.c: Adjust comments in user- and group- portions to
59851         be more accurate, and to be consistent with one another.
59852
59853 2006-11-20  Jim Meyering  <jim@meyering.net>
59854
59855         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
59856         continue using the flexible array member (thus, this module performs
59857         half as many malloc calls), with the addition that...
59858         (getgroup, getuser): Consistently record a non-match via an empty
59859         "name" string, and map an empty string match to a NULL return value.
59860         * modules/idcache (Depends-on): Re-add flexmember.
59861
59862         * lib/idcache.c (getuser): Remove all uses of the register keyword.
59863         (getuidbyname, getgroup, getgidbyname): Likewise.
59864
59865         Use cleaner syntax: NULL rather than 0.
59866         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
59867
59868 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59869
59870         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
59871         It mishandled the case where the group was missing.
59872         Problem reported by Greg Schafer.
59873         * modules/idcache: Likewise.
59874
59875 2006-11-18  Jim Meyering  <jim@meyering.net>
59876
59877         * check-module (%exempt_header): Add exception for some
59878         conditionally-included headers.
59879
59880         * modules/i-ring (Depends-on): Add verify.
59881         (License): Change to LGPL.
59882
59883 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59884
59885         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
59886         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
59887         and inttostr.h.  Use snprintf rather than uinttostr, so that
59888         LGPLed code doesn't depend on GPLed.
59889
59890 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59891
59892         * modules/inline (License): Change from GPL to LGPL.
59893
59894 2006-11-17  Jim Meyering  <jim@meyering.net>
59895
59896         * modules/d-type (License): Switch to LGPL.
59897
59898 2006-11-15  Bruno Haible  <bruno@clisp.org>
59899
59900         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
59901
59902 2006-11-15  Eric Blake  <ebb9@byu.net>
59903
59904         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
59905         the module dependency.
59906
59907 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59908             Bruno Haible  <bruno@clisp.org>
59909
59910         * gnulib-tool (func_create_testdir): Add license consistency check.
59911
59912 2006-11-15  Eric Blake  <ebb9@byu.net>
59913
59914         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
59915         random "(cached)" in configure output.
59916
59917 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59918
59919         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
59920         test for conforming inttypes.h is both announced and cached.
59921
59922         * MODULES.html.sh (seen_modules, seen_files): New variables.
59923         (func_module): Rewrite to use a few less gnulib-tool and sed
59924         invocations.  Avoid a couple of quadratic algorithms for ...
59925         (missed_modules, missed_files): ... these, with ...
59926         (func_append, func_tmpdir): ... these new functions, from
59927         gnulib-tool.  Analogously, install traps for cleanup.
59928
59929         * tests/test-gc.c (main): Remove unused variables.
59930         * tests/test-read-file.c: Include stdlib.h, for 'free'.
59931
59932 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
59933
59934         * modules/inttostr (License): Change to LGPL.
59935
59936 2006-11-14  Eric Blake  <ebb9@byu.net>
59937
59938         * modules/tempname (License): Change to LGPL.
59939
59940 2006-11-14  Eric Blake  <ebb9@byu.net>
59941
59942         * doc/functions.texi (Function Portability): *printf functions on
59943         Cygwin now understand all POSIX size specifiers.
59944
59945 2006-11-14  Bruno Haible  <bruno@clisp.org>
59946
59947         * modules/c-ctype (License): Change to LGPL.
59948
59949 2006-11-12  Bruno Haible  <bruno@clisp.org>
59950
59951         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59952         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
59953         for GNOME libraries, for which the include files are installed in
59954         subdirectories of $prefix/include.
59955
59956 2006-11-12  Bruno Haible  <bruno@clisp.org>
59957
59958         * m4/lib-link.m4: Require at least autoconf-2.54.
59959         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
59960         name to underscores for the --with option.
59961
59962 2006-11-13  Bruno Haible  <bruno@clisp.org>
59963
59964         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
59965         the tests directory.
59966         Reported by Ralf Wildenhues.
59967
59968 2006-11-13  Bruno Haible  <bruno@clisp.org>
59969
59970         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
59971         (func_emit_initmacro_end): Undo the override here.
59972         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
59973         Works around the famous automake error in coreutils.
59974
59975 2006-11-13  Eric Blake  <ebb9@byu.net>
59976
59977         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
59978         element, not its node.
59979
59980 2006-11-12  Bruno Haible  <bruno@clisp.org>
59981
59982         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
59983         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
59984
59985 2006-11-12  Bruno Haible  <bruno@clisp.org>
59986
59987         * gnulib-tool: New option --local-symlink.
59988         (func_usage): Document it.
59989         (lsymbolic): New variable.
59990         (func_import, func_create_testdir): If --symlink was not specified,
59991         test whether --local-symlink was specified and the file comes from
59992         the local_gnulib_dir.
59993
59994 2006-11-12  Bruno Haible  <bruno@clisp.org>
59995
59996         * gnulib-tool (func_ln): New function.
59997         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
59998
59999 2006-11-12  Bruno Haible  <bruno@clisp.org>
60000
60001         Finish support for source files in subdirectories.
60002         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60003         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60004         AUTOMAKE_OPTIONS.
60005         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60006
60007 2006-11-12  Bruno Haible  <bruno@clisp.org>
60008
60009         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60010         EXTRA_lib_SOURCES augmentation.
60011         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60012
60013 2006-11-12  Jim Meyering  <jim@meyering.net>
60014
60015         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60016         file descriptors.  This also averts a failure on systems with
60017         native openat support when a traversed directory lacks "x" access.
60018         * lib/fts_.h: Include "i-ring.h"
60019         (struct FTS) [fts_fd_ring]: New member.
60020         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60021         (FCHDIR): Add parentheses.
60022         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60023         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60024         When descending, rather than simply closing the previous
60025         fts_cwd_fd value, push that file descriptor onto the ring.
60026         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60027         (fts_open): Initialize the new fd_ring member.
60028         (fts_close): Clear the ring.
60029         (fts_safe_changedir): When possible, use our new fd_ring to skip
60030         the diropen and fstat and dev/ino comparison that would normally
60031         accompany a virtual `chdir ("..")'.
60032
60033         * modules/fts (Depends-on): Add i-ring.
60034         * modules/i-ring: New module.
60035         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60036         * m4/i-ring.m4: New file.
60037
60038 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60039
60040         * gnulib-tool (func_create_testdir): Fix replacement of
60041         `build-aux' in configure.ac.  Run autotools in gltests
60042         subdirectory.
60043         (func_create_testdir, func_create_megatestdir, test): There is
60044         no need for '--force' in most autotool invocations in a new
60045         tree.  Actually fail the whole test if any of the tools, or the
60046         configure or make stages fail.
60047
60048         Sync from Automake.
60049         * build-aux/gnupload: Revert last change.  Add pointer to upload
60050         instructions of the GNU Maintenance Instructions.
60051         Suggestion by Karl Berry.
60052
60053 2006-11-10  Jim Meyering  <jim@meyering.net>
60054
60055         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60056
60057 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60058
60059         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60060         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60061         (bind_textdomain_codeset) [! ENABLE_NLS]:
60062         Evaluate all the arguments.  That way, callers get compatible behavior
60063         if the arguments have side effects.  Also, it avoids some GCC
60064         diagnostics in some cases; Joel E. Denny reported problems when Bison
60065         was configured with --enable-gcc-warnigs.
60066
60067 2006-11-10  Jim Meyering  <jim@meyering.net>
60068
60069         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60070         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60071         account.
60072
60073 2006-11-10  Jim Meyering  <jim@meyering.net>
60074
60075         * modules/inline: New file/module.
60076         * modules/xalloc (Files): Remove m4/inline.m4.
60077         (Depends-on): Add inline, instead.
60078         * modules/oset: Likewise.
60079         * modules/list: Likewise.
60080
60081 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60082
60083         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60084         Problem reported by Matthew Woehlke.
60085
60086 2006-11-09  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/tempname.c (gen_tempname): Remove variant that invokes
60089         __gen_tempname.
60090         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60091         __gen_tempname.
60092
60093 2006-11-08  Bruno Haible  <bruno@clisp.org>
60094
60095         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60096         to 'yes' instead of 'cross-compiling'.
60097
60098 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60099
60100         * lib/quotearg.h (quotearg_free): New decl.
60101         * lib/quotearg.c (quotearg_free): New function.
60102         (slot0, nslots, slotvec0, slotvec):
60103         Now file-scope so that quotearg_free can get at them.
60104
60105 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60106
60107         Sync from Automake.
60108         * build-aux/gnupload: Add missing 'gnu' to example URL.
60109         Report by Karl Berry.
60110
60111 2006-11-08  Bruno Haible  <bruno@clisp.org>
60112
60113         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60114         Suggested by Paul Eggert.
60115
60116 2006-11-08  Jim Meyering  <jim@meyering.net>
60117
60118         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60119         It's already included if !_LIBC.
60120         (fts_safe_changedir): Add a comment.
60121
60122 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60123
60124         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60125         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60126         Matthew Woehlke.
60127
60128         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60129         definitions up, to avoid colliding with change below.
60130         (static_inline) [HAVE_INLINE]: New macro.
60131         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60132         Provide extern decls when !HAVE_INLINE.  Do not define unless
60133         static_inline is defined, either by us or by xmalloc.c.  Use
60134         static_inline rather than static inline.
60135         (XCALLOC): Optimize sizeof(T) = 1 case.
60136         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60137
60138 2006-11-07  Bruno Haible  <bruno@clisp.org>
60139
60140         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60141         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60142         AC_C_INLINE.
60143         * modules/xalloc (Files): Add m4/inline.m4.
60144
60145 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60146
60147         * README: Fix typo.
60148         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60149         (Miscellanous Notes): ...from this.
60150
60151 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60152
60153         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60154         Mention that offsetof should be used instead of sizeof.
60155         From Bruno Haible.
60156
60157 2006-11-07  Bruno Haible  <bruno@clisp.org>
60158
60159         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60160
60161 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60162
60163         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60164         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60165         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60166         (gl_tree_add_before, gl_tree_add_after):
60167         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60168         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60169         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60170         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60171         (gl_linked_add_after, gl_linked_add_at): Likewise.
60172         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60173         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60174         (gl_tree_add_before, gl_tree_add_after): Likewise.
60175         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60176         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60177         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60178
60179 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60180
60181         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60182
60183 2006-11-06  Bruno Haible  <bruno@clisp.org>
60184
60185         * m4/inline.m4: New file.
60186         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60187         * modules/list (Files): Add m4/inline.m4.
60188         * modules/oset (Files): Likewise.
60189
60190 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60191
60192         * lib/idcache.c: Include <stddef.h>, for offsetof.
60193         (struct userid.name): Change from char * to a flexible array member.
60194         All uses changed.
60195         * modules/idcache (Depends-on): Add flexmember.
60196
60197         * MODULES.html.sh (Core language properties): New module flexmember.
60198         * modules/flexmember, m4/flexmember.m4: New files.
60199
60200         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60201         inline functions that are identical with the old xnmalloc_inline,
60202         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60203         that we can avoid some unnecessary integer multiplications and
60204         divisions in the common case where the element size is known at
60205         compile time.
60206         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60207         needed.
60208         (xnboundedmalloc): Remove.
60209         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60210         arguments, for consistency with rest of this header.
60211         (xcharalloc): Rewrite using XNMALLOC.
60212         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60213         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60214         versions have been moved to lib/xalloc.h and renamed to be the
60215         non-*_inline versions.
60216         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60217         and xnrealloc functions, since those functions are now inline and
60218         now call us.
60219         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60220         renaming described above.
60221         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60222         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60223         captures the dependency in AC_C_INLINE.
60224
60225         New module canonicalize-lgpl, proposed by Charles Wilson in
60226         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60227         with a few small changes afterwards.
60228         * MODULES.html.sh (File system functions): New module
60229         canonicalize-lgpl.
60230         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60231         and canonicalize_file_name.
60232         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60233         * modules/canonicalize-lgpl: New files.
60234
60235 2006-11-05  Bruno Haible  <bruno@clisp.org>
60236
60237         * gnulib-tool (func_import, func_create_testdir): Create directories
60238         also for files in subdirectories of lib/.
60239
60240 2006-11-05  Bruno Haible  <bruno@clisp.org>
60241
60242         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60243         ANSI C compliant.
60244
60245 2006-11-03  Bruno Haible  <bruno@clisp.org>
60246
60247         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60248         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60249         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60250         (xnboundedmalloc): New inline function.
60251         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60252         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60253         xmalloc.
60254         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60255         xmalloc.
60256         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60257         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60258         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60259         xmalloc.
60260         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60261         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60262         xmalloc.
60263         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60264         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60265         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60266         xmalloc.
60267         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60268         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60269         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60270         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60271         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60272         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60273         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60274
60275 2006-11-03  Bruno Haible  <bruno@clisp.org>
60276
60277         * lib/c-ctype.h [C++]: Define functions without name mangling.
60278         * lib/fwriteerror.h [C++]: Likewise.
60279         * lib/gcd.h [C++]: Likewise.
60280         * lib/linebreak.h [C++]: Likewise.
60281
60282 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60283
60284         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60285         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60286         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60287         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60288         Check for functions and headers just once.
60289         Check for declaration of canonicalize_file_name.
60290         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60291
60292 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60293
60294         * gnulib-tool (func_import): Fix typo in actioncmd.
60295
60296 2006-11-02  Bruno Haible  <bruno@clisp.org>
60297
60298         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60299         newline sequence in the Makefile.am snippet as a space, like "make"
60300         does.
60301         Reported by Roger Persson <perrog@gmail.com>.
60302
60303 2006-11-01  Bruno Haible  <bruno@clisp.org>
60304
60305         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60306         already declared in <string.h>.
60307         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60308
60309 2006-11-01  Bruno Haible  <bruno@clisp.org>
60310
60311         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60312         * lib/strcase.h: Include <string.h>.
60313         (strcasecmp): Define to rpl_strcasecmp here.
60314
60315 2006-11-01  Bruno Haible  <bruno@clisp.org>
60316
60317         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60318
60319 2006-11-01  Eric Blake  <ebb9@byu.net>
60320
60321         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60322
60323         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60324
60325 2006-10-29  Bruno Haible  <bruno@clisp.org>
60326
60327         Make it compile in C++ mode.
60328         * lib/full-write.c (full_rw): Add a cast.
60329
60330 2006-11-01  Bruno Haible  <bruno@clisp.org>
60331
60332         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60333         be POSIX compliant.
60334         Reported by Roger Persson <perrog@gmail.com>.
60335
60336 2006-11-01  Eric Blake  <ebb9@byu.net>
60337
60338         * lib/getopt_.h: Fix comments.
60339
60340 2006-10-31  Eric Blake  <ebb9@byu.net>
60341
60342         * modules/tmpdir (Depends-on): Add sys_stat.
60343         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60344         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60345         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60346         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60347         tempname.
60348
60349 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60350
60351         Avoid some C++ diagnostics reported by Bruno Haible.
60352         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60353         xmalloc.
60354         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60355         (struct slotvec): Move to top level.
60356         (quotearg_n_options): Rewrite to avoid xmalloc.
60357         * lib/xalloc.h (xcharalloc): New function.
60358         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60359         [defined __cplusplus]: Add function template that provides result
60360         type propagation.  This part of the change is from Bruno Haible.
60361
60362 2006-10-29  Bruno Haible  <bruno@clisp.org>
60363
60364         Make it compile in C++ mode.
60365         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60366         * lib/strnlen1.c (strnlen1): Cast memchr result.
60367         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60368         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60369         (create_temp_dir): Rename local variable 'template'.
60370         (compile_csharp_using_sscli): Add cast.
60371         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60372         * lib/findprog.c (find_in_path): Likewise.
60373         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60374         * lib/wait-process.c (register_slave_subprocess): Likewise.
60375
60376 2006-10-22  Bruno Haible  <bruno@clisp.org>
60377
60378         * modules/tsearch: New file.
60379         * lib/tsearch.h: New file.
60380         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60381         * m4/tsearch.m4: New file.
60382         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60383
60384 2006-10-29  Eric Blake  <ebb9@byu.net>
60385
60386         * lib/arcfour.c: Assume config.h.
60387         * lib/arctwo.c: Likewise.
60388         * lib/base64.c: Likewise.
60389         * lib/check-version.c: Likewise.
60390         * lib/crc.c: Likewise.
60391         * lib/des.c: Likewise.
60392         * lib/gc-gnulib.c: Likewise.
60393         * lib/gc-libgcrypt.c: Likewise.
60394         * lib/gc-pbkdf2-sha1.c: Likewise.
60395         * lib/getaddrinfo.c: Likewise.
60396         * lib/getdelim.c: Likewise.
60397         * lib/getline.c: Likewise.
60398         * lib/hmac-md5.c: Likewise.
60399         * lib/hmac-sha1.c: Likewise.
60400         * lib/iconvme.c: Likewise.
60401         * lib/md2.c: Likewise.
60402         * lib/md4.c: Likewise.
60403         * lib/memxor.c: Likewise.
60404         * lib/read-file.c: Likewise.
60405         * lib/readline.c: Likewise.
60406         * lib/rijndael-alg-fst.c: Likewise.
60407         * lib/rijndael-api-fst.c: Likewise.
60408         * lib/xgetdomainname.c: Likewise.
60409
60410 2006-10-28  Eric Blake  <ebb9@byu.net>
60411
60412         * lib/xstrndup.c: Assume config.h.
60413
60414 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60415
60416         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60417         stat-macros.h is now for our own macros, whereas stat_h is for
60418         macros in the <sys/stat.h> name space.
60419         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60420         (STAT_MACROS_H): Remove.
60421         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60422         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60423         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60424         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60425         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60426         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60427         Move these macros to ...
60428         * lib/stat_.h: here.  Don't include stat-macros.h.
60429         * lib/canonicalize.c: Don't include stat-macros.h.
60430         * lib/chown.c: Likewise.
60431         * lib/euidaccess.c: Likewise.
60432         * lib/file-type.c: Likewise.
60433         * lib/filemode.c: Likewise.
60434         * lib/glob.c: Likewise.
60435         * lib/isapipe.c: Likewise.
60436         * lib/lchown.c: Likewise.
60437         * lib/lstat.c: Likewise.
60438         * lib/mkdir-p.c: Likewise.
60439         * lib/rmdir.c: Likewise.
60440         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60441         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60442         unless mkdir isn't declared, to speed up 'configure'.
60443         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60444         would define all the S_* symbols.
60445         * modules/canonicalize (Depends-on):
60446         Depend on sys_stat, not stat-macros.
60447         * modules/chown: Likewise.
60448         * modules/euidaccess: Likewise.
60449         * modules/filemode: Likewise.
60450         * modules/file-type: Likewise.
60451         * modules/glob: Likewise.
60452         * modules/isapipe: Likewise.
60453         * modules/lchown: Likewise.
60454         * modules/lstat: Likewise.
60455         * modules/mkancesdirs: Likewise.
60456         * modules/rmdir: Likewise.
60457         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
60458         * modules/modechange: Likewise.
60459         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
60460         (configure.ac): Remove gl_STAT_MACROS.
60461         * modules/sys_stat (Depends-on): Remove stat-macros.
60462
60463 2006-10-27  Bruno Haible  <bruno@clisp.org>
60464
60465         * m4/signed.m4: Remove file.
60466         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
60467         invocation.
60468         * modules/vasnprintf (Files): Remove m4/signed.m4.
60469
60470 2006-10-27  Bruno Haible  <bruno@clisp.org>
60471
60472         Update to GNU gettext 0.16.
60473         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60474         m4/inttypes-h.m4, m4/signed.m4.
60475         * m4/gettext.m4: Update to GNU gettext 0.16.
60476         * m4/intl.m4: New file, from GNU gettext.
60477         * m4/intldir.m4: New file, from GNU gettext.
60478         * config/srclist.txt: Update
60479
60480 2006-10-27  Eric Blake  <ebb9@byu.net>
60481
60482         * MODULES.html.sh: Document tempname.
60483         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60484         dependencies.
60485         (Files): Move lib/tempname.c...
60486         * modules/tempname: ...to this new module.
60487         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60488         (gl_PREREQ_TEMPNAME): Move...
60489         * m4/tempname.m4: ...to this new file.
60490         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60491         * modules/sys_stat (Depends-on): Add stat-macros.
60492         * lib/stat_.h (includes): Pick up stat macros.
60493         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60494         if stat macros are broken.
60495         * lib/tempname.c (includes): No need to include "stat-macros.h".
60496         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60497         (direxists, __path_search) [!_LIBC]: Don't compile these in
60498         gnulib; the tmpdir module covers that.
60499         * lib/tempname.h: New file.
60500
60501 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60502
60503         * COPYING: Explain how gnulib-tool converts licence headers.
60504         Almost all wording by Eric Blake.
60505
60506 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60507
60508         * lib/mbchar.h (is_basic_table): Make read-only.
60509         * lib/mbchar.c (is_basic_table): Likewise.
60510         Reported by John Darrington.
60511
60512 2006-10-25  Bruno Haible  <bruno@clisp.org>
60513
60514         * lib/progname.h (set_program_name): Undefine before defining.
60515
60516 2006-10-25  Bruno Haible  <bruno@clisp.org>
60517
60518         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60519         false for non-gcc C++ compilers.
60520         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60521
60522 2006-10-24  Bruno Haible  <bruno@clisp.org>
60523
60524         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60525         iconv implementations like Irix iconv.
60526
60527 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60528
60529         * modules/vararrays: New file.
60530         * m4/vararrays.m4: New file, taken from diffutils.
60531         * MODULES.html.sh: New module vararrays.
60532
60533 2006-10-24  Karl Berry  <karl@gnu.org>
60534
60535         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60536         Don't call GNU Unix.
60537
60538 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60539
60540         * users.txt: Add Libtool.
60541
60542         Sync from Libtool:
60543
60544         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60545
60546         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
60547         to gnulib's policy of including config.h unconditionally.
60548
60549 2006-10-24  Bruno Haible  <bruno@clisp.org>
60550
60551         * modules/wcwidth (Files): Add m4/wint_t.m4.
60552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
60553         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
60554
60555 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60556
60557         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
60558         to pacify GCC with some -W flags enabled.  Problem reported by
60559         Bruno Haible.
60560
60561 2006-10-24  Jim Meyering  <jim@meyering.net>
60562
60563         * MODULES.html.sh: Remove uinttostr.  It's not a module.
60564         Reported by Karl Berry.
60565
60566 2006-10-23  Bruno Haible  <bruno@clisp.org>
60567
60568         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
60569
60570 2006-10-24  Bruno Haible  <bruno@clisp.org>
60571
60572         * lib/gl_list.h: Use C comment style, not C++ comment style.
60573
60574 2006-10-23  Eric Blake  <ebb9@byu.net>
60575
60576         * lib/getaddrinfo.c (includes): Add missing include.
60577
60578 2006-10-23  Bruno Haible  <bruno@clisp.org>
60579             Paul Eggert  <eggert@cs.ucla.edu>
60580
60581         Ability to rename obstack_free.
60582         * lib/obstack.h (__obstack_free): New macro. Declare instead of
60583         obstack_free.
60584         (obstack_free): Invoke the __obstack_free macro.
60585         * lib/obstack.c (obstack_free): Use __obstack_free macro.
60586
60587 2006-10-23  Bruno Haible  <bruno@clisp.org>
60588             Paul Eggert  <eggert@cs.ucla.edu>
60589
60590         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
60591         __argc, __argv from the declaration. (They are defined as macros on
60592         mingw.)
60593
60594 2006-10-22  Bruno Haible  <bruno@clisp.org>
60595
60596         * doc/gnulib-intro.texi: New file.
60597         * doc/gnulib.texi: Include it.
60598
60599 2006-10-21  Bruno Haible  <bruno@clisp.org>
60600
60601         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
60602         "Introduction", "Miscellanous Notes", "Particular Modules".
60603
60604 2006-10-21  Bruno Haible  <bruno@clisp.org>
60605
60606         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60607         Change mostlyclean-local rule to avoid sh syntax error from bash
60608         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
60609
60610 2006-10-23  Jim Meyering  <jim@meyering.net>
60611
60612         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
60613         in place of snprintf.
60614
60615         * modules/inttostr (Files): Add lib/uinttostr.c.
60616         * lib/uinttostr.c (inttostr): New file/function.
60617         * lib/inttostr.h (uinttostr): Declare.
60618         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
60619         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60620         Add uinttostr.
60621         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
60622
60623 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60624
60625         * lib/canonicalize.c (ELOOP): Define if not already defined.
60626         Problem reported by Bruno Haible in
60627         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
60628
60629 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60630
60631         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
60632         Problem reported by Perry Smith and Ville Laurikari.
60633
60634         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
60635         uses.
60636
60637 2006-10-19  Bruno Haible  <bruno@clisp.org>
60638
60639         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
60640         for mingw.
60641
60642 2006-10-19  Bruno Haible  <bruno@clisp.org>
60643
60644         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
60645         Needed for mingw.
60646
60647 2006-10-19  Bruno Haible  <bruno@clisp.org>
60648
60649         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
60650
60651 2006-10-19  Bruno Haible  <bruno@clisp.org>
60652
60653         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
60654         it.
60655
60656 2006-10-19  Bruno Haible  <bruno@clisp.org>
60657
60658         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
60659         invocation.
60660
60661 2006-10-19  Bruno Haible  <bruno@clisp.org>
60662
60663         * gnulib-tool (func_create_testdir): Don't include ftruncate and
60664         mountlist by default.
60665
60666 2006-10-16  Bruno Haible  <bruno@clisp.org>
60667
60668         * lib/c-strstr.c: Include c-strstr.h.
60669
60670 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60671
60672         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
60673         in a slash.
60674
60675 2006-10-18  Bruno Haible  <bruno@clisp.org>
60676
60677         * lib/lock.h [C++]: Wrap definitions in extern "C".
60678
60679 2006-10-18  Bruno Haible  <bruno@clisp.org>
60680
60681         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
60682         gl_LIBOBJS list.
60683
60684 2006-10-18  Bruno Haible  <bruno@clisp.org>
60685
60686         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
60687
60688 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
60689
60690         * lib/xstrtol.h: Include gettext.h.
60691         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
60692         Problem reported by Eric Blake.
60693         * modules/xstrtol (Depends-on): Add gettext-h.
60694
60695 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
60696
60697         * lib/strftime.c (advance): New macro.
60698         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
60699         incomplete type, so you can't add 0 to it.  Problem and patch
60700         reported by Eelco Dolstra for dietlibc.
60701
60702 2006-10-18  Jim Meyering  <jim@meyering.net>
60703
60704         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
60705         type for a local, and rename it: s/up/user_proc/.
60706
60707 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60708
60709         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
60710         READ_UTMP_USER_PROCESS.
60711         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
60712
60713 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60714
60715         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
60716         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
60717
60718 2006-10-17  Eric Blake  <ebb9@byu.net>
60719
60720         * lib/sigprocmask.c (sigprocmask): Fix typo.
60721
60722         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
60723
60724         * modules/clean-temp (Makefile.am): Don't add to make output...
60725         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
60726         config.h.
60727
60728 2006-10-17  Bruno Haible  <bruno@clisp.org>
60729
60730         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
60731         differently if DEFAULT_TEXT_DOMAIN is set.
60732
60733 2006-10-16  Bruno Haible  <bruno@clisp.org>
60734
60735         * lib/clean-temp.c: Include fwriteerror.h.
60736
60737 2006-10-16  Bruno Haible  <bruno@clisp.org>
60738
60739         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
60740
60741 2006-10-16  Bruno Haible  <bruno@clisp.org>
60742
60743         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
60744         * lib/sigprocmask.h: Include <sys/types.h>.
60745         (sigset_t): Use the system's definition if present.
60746
60747 2006-10-17  Eric Blake  <ebb9@byu.net>
60748
60749         * lib/xvasprintf.c (includes): Assume config.h.
60750         * lib/xasprintf.c (includes): Likewise.
60751
60752 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60753
60754         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
60755         at least as wide as intmax_t.
60756
60757 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
60758
60759         (Imported from Automake.)
60760         * build-aux/gnupload: Update to version 1.1 of directive file.
60761
60762 2006-10-16  Eric Blake  <ebb9@byu.net>
60763
60764         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
60765         match Automake 1.10a.
60766
60767 2006-10-14  Bruno Haible  <bruno@clisp.org>
60768
60769         * modules/sigprocmask: New file.
60770         * lib/sigprocmask.h: New file.
60771         * lib/sigprocmask.c: New file.
60772         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
60773         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
60774         request sigprocmask.o.
60775         (gl_PREREQ_SIGPROCMASK): New macro.
60776         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
60777         (Depends-on): Add sigprocmask.
60778         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
60779         gt_SIGNALBLOCKING. Test for 'raise' only once.
60780         * lib/fatal-signal.c: Include sigprocmask.h.
60781         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
60782         unblock_fatal_signals): Define always.
60783         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60784         sigprocmask.
60785
60786 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60787
60788         Sync from Automake.
60789         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
60790         which incorrectly sets the mode of an existing destination
60791         directory.  In some cases the unpatched install-sh could do the
60792         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
60793         system.  We hope this is rare in practice, but it's clearly worth
60794         fixing.  Problem reported by Alex Unleashed in
60795         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
60796         Also, don't bother to check for -m bugs unless we're using -m;
60797         suggested by Stepan Kasal.
60798
60799 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60800
60801         Sync from Automake.
60802         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
60803         `-c' flag, so they appear at the same position as in %FASTDEP%
60804         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
60805         which ignores unknown options only after the first non-option.
60806         Bug report against M4 by Nelson H. F. Beebe.
60807
60808 2006-10-13  Jim Meyering  <jim@meyering.net>
60809
60810         Fix a bug in yesterday's change.
60811         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
60812         p->fts_statp->st_dev would be used uninitialized.
60813         Ensures that we always call fts_stat on the very first entry.
60814         Miklos Szeredi reported that find -xdev stopped working.
60815
60816 2006-10-12  Bruno Haible  <bruno@clisp.org>
60817
60818         * gnulib-tool (func_get_automake_snippet): Append an automatically
60819         computed EXTRA_DIST augmentation.
60820         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
60821         * modules/alloca-opt (Makefile.am): Likewise.
60822         * modules/allocsa (Makefile.am): Likewise.
60823         * modules/arcfour (Makefile.am): Likewise.
60824         * modules/arctwo (Makefile.am): Likewise.
60825         * modules/argmatch (Makefile.am): Likewise.
60826         * modules/argz (Makefile.am): Likewise.
60827         * modules/atexit (Makefile.am): Likewise.
60828         * modules/backupfile (Makefile.am): Likewise.
60829         * modules/byteswap (Makefile.am): Likewise.
60830         * modules/c-strtod (Makefile.am): Likewise.
60831         * modules/c-strtold (Makefile.am): Likewise.
60832         * modules/calloc (Makefile.am): Likewise.
60833         * modules/canon-host (Makefile.am): Likewise.
60834         * modules/canonicalize (Makefile.am): Likewise.
60835         * modules/chdir-long (Makefile.am): Likewise.
60836         * modules/chdir-safer (Makefile.am): Likewise.
60837         * modules/check-version (Makefile.am): Likewise.
60838         * modules/chown (Makefile.am): Likewise.
60839         * modules/cloexec (Makefile.am): Likewise.
60840         * modules/close-stream (Makefile.am): Likewise.
60841         * modules/closeout (Makefile.am): Likewise.
60842         * modules/crc (Makefile.am): Likewise.
60843         * modules/csharpexec (Makefile.am): Likewise.
60844         * modules/cycle-check (Makefile.am): Likewise.
60845         * modules/des (Makefile.am): Likewise.
60846         * modules/dev-ino (Makefile.am): Likewise.
60847         * modules/dirfd (Makefile.am): Likewise.
60848         * modules/dirname (Makefile.am): Likewise.
60849         * modules/dup2 (Makefile.am): Likewise.
60850         * modules/eealloc (Makefile.am): Likewise.
60851         * modules/error (Makefile.am): Likewise.
60852         * modules/euidaccess (Makefile.am): Likewise.
60853         * modules/exclude (Makefile.am): Likewise.
60854         * modules/exitfail (Makefile.am): Likewise.
60855         * modules/fcntl-safer (Makefile.am): Likewise.
60856         * modules/fcntl (Makefile.am): Likewise.
60857         * modules/file-type (Makefile.am): Likewise.
60858         * modules/fileblocks (Makefile.am): Likewise.
60859         * modules/filemode (Makefile.am): Likewise.
60860         * modules/filenamecat (Makefile.am): Likewise.
60861         * modules/fnmatch (Makefile.am): Likewise.
60862         * modules/fopen-safer (Makefile.am): Likewise.
60863         * modules/fpending (Makefile.am): Likewise.
60864         * modules/fprintftime (Makefile.am): Likewise.
60865         * modules/free (Makefile.am): Likewise.
60866         * modules/fsusage (Makefile.am): Likewise.
60867         * modules/ftruncate (Makefile.am): Likewise.
60868         * modules/fts (Makefile.am): Likewise.
60869         * modules/gc-arcfour (Makefile.am): Likewise.
60870         * modules/gc-des (Makefile.am): Likewise.
60871         * modules/gc-hmac-md5 (Makefile.am): Likewise.
60872         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
60873         * modules/gc-md4 (Makefile.am): Likewise.
60874         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60875         * modules/gc-sha1 (Makefile.am): Likewise.
60876         * modules/gc (Makefile.am): Likewise.
60877         * modules/getaddrinfo (Makefile.am): Likewise.
60878         * modules/getcwd (Makefile.am): Likewise.
60879         * modules/getdelim (Makefile.am): Likewise.
60880         * modules/getdomainname (Makefile.am): Likewise.
60881         * modules/getgroups (Makefile.am): Likewise.
60882         * modules/gethostname (Makefile.am): Likewise.
60883         * modules/gethrxtime (Makefile.am): Likewise.
60884         * modules/getline (Makefile.am): Likewise.
60885         * modules/getloadavg (Makefile.am): Likewise.
60886         * modules/getlogin_r (Makefile.am): Likewise.
60887         * modules/getndelim2 (Makefile.am): Likewise.
60888         * modules/getopt (Makefile.am): Likewise.
60889         * modules/getpagesize (Makefile.am): Likewise.
60890         * modules/getpass-gnu (Makefile.am): Likewise.
60891         * modules/getpass (Makefile.am): Likewise.
60892         * modules/getsubopt (Makefile.am): Likewise.
60893         * modules/gettime (Makefile.am): Likewise.
60894         * modules/gettimeofday (Makefile.am): Likewise.
60895         * modules/getugroups (Makefile.am): Likewise.
60896         * modules/getusershell (Makefile.am): Likewise.
60897         * modules/glob (Makefile.am): Likewise.
60898         * modules/group-member (Makefile.am): Likewise.
60899         * modules/hard-locale (Makefile.am): Likewise.
60900         * modules/hash (Makefile.am): Likewise.
60901         * modules/hmac-md5 (Makefile.am): Likewise.
60902         * modules/hmac-sha1 (Makefile.am): Likewise.
60903         * modules/human (Makefile.am): Likewise.
60904         * modules/idcache (Makefile.am): Likewise.
60905         * modules/imaxabs (Makefile.am): Likewise.
60906         * modules/imaxdiv (Makefile.am): Likewise.
60907         * modules/inet_ntop (Makefile.am): Likewise.
60908         * modules/inet_pton (Makefile.am): Likewise.
60909         * modules/intprops (Makefile.am): Likewise.
60910         * modules/inttostr (Makefile.am): Likewise.
60911         * modules/inttypes (Makefile.am): Likewise.
60912         * modules/isapipe (Makefile.am): Likewise.
60913         * modules/javaversion (Makefile.am): Likewise.
60914         * modules/lchmod (Makefile.am): Likewise.
60915         * modules/lchown (Makefile.am): Likewise.
60916         * modules/localcharset (Makefile.am): Likewise.
60917         * modules/long-options (Makefile.am): Likewise.
60918         * modules/lstat (Makefile.am): Likewise.
60919         * modules/malloc (Makefile.am): Likewise.
60920         * modules/mathl (Makefile.am): Likewise.
60921         * modules/mbchar (Makefile.am): Likewise.
60922         * modules/md2 (Makefile.am): Likewise.
60923         * modules/md4 (Makefile.am): Likewise.
60924         * modules/md5 (Makefile.am): Likewise.
60925         * modules/memcasecmp (Makefile.am): Likewise.
60926         * modules/memchr (Makefile.am): Likewise.
60927         * modules/memcmp (Makefile.am): Likewise.
60928         * modules/memcoll (Makefile.am): Likewise.
60929         * modules/memcpy (Makefile.am): Likewise.
60930         * modules/memmem (Makefile.am): Likewise.
60931         * modules/memmove (Makefile.am): Likewise.
60932         * modules/mempcpy (Makefile.am): Likewise.
60933         * modules/memrchr (Makefile.am): Likewise.
60934         * modules/memset (Makefile.am): Likewise.
60935         * modules/memxor (Makefile.am): Likewise.
60936         * modules/mkancesdirs (Makefile.am): Likewise.
60937         * modules/mkdir-p (Makefile.am): Likewise.
60938         * modules/mkdir (Makefile.am): Likewise.
60939         * modules/mkdtemp (Makefile.am): Likewise.
60940         * modules/mkstemp (Makefile.am): Likewise.
60941         * modules/mktime (Makefile.am): Likewise.
60942         * modules/modechange (Makefile.am): Likewise.
60943         * modules/mountlist (Makefile.am): Likewise.
60944         * modules/nanosleep (Makefile.am): Likewise.
60945         * modules/obstack (Makefile.am): Likewise.
60946         * modules/openat (Makefile.am): Likewise.
60947         * modules/pagealign_alloc (Makefile.am): Likewise.
60948         * modules/pathmax (Makefile.am): Likewise.
60949         * modules/physmem (Makefile.am): Likewise.
60950         * modules/poll (Makefile.am): Likewise.
60951         * modules/posixtm (Makefile.am): Likewise.
60952         * modules/posixver (Makefile.am): Likewise.
60953         * modules/putenv (Makefile.am): Likewise.
60954         * modules/quote (Makefile.am): Likewise.
60955         * modules/quotearg (Makefile.am): Likewise.
60956         * modules/raise (Makefile.am): Likewise.
60957         * modules/read-file (Makefile.am): Likewise.
60958         * modules/readline (Makefile.am): Likewise.
60959         * modules/readlink (Makefile.am): Likewise.
60960         * modules/readtokens (Makefile.am): Likewise.
60961         * modules/readutmp (Makefile.am): Likewise.
60962         * modules/realloc (Makefile.am): Likewise.
60963         * modules/regex (Makefile.am): Likewise.
60964         * modules/rename-dest-slash (Makefile.am): Likewise.
60965         * modules/rename (Makefile.am): Likewise.
60966         * modules/rijndael (Makefile.am): Likewise.
60967         * modules/rmdir (Makefile.am): Likewise.
60968         * modules/rpmatch (Makefile.am): Likewise.
60969         * modules/safe-read (Makefile.am): Likewise.
60970         * modules/safe-write (Makefile.am): Likewise.
60971         * modules/same-inode (Makefile.am): Likewise.
60972         * modules/same (Makefile.am): Likewise.
60973         * modules/save-cwd (Makefile.am): Likewise.
60974         * modules/savedir (Makefile.am): Likewise.
60975         * modules/setenv (Makefile.am): Likewise.
60976         * modules/settime (Makefile.am): Likewise.
60977         * modules/sha1 (Makefile.am): Likewise.
60978         * modules/sig2str (Makefile.am): Likewise.
60979         * modules/snprintf (Makefile.am): Likewise.
60980         * modules/stat-macros (Makefile.am): Likewise.
60981         * modules/stat-time (Makefile.am): Likewise.
60982         * modules/stdbool (Makefile.am): Likewise.
60983         * modules/stdint (Makefile.am): Likewise.
60984         * modules/stdlib-safer (Makefile.am): Likewise.
60985         * modules/stpcpy (Makefile.am): Likewise.
60986         * modules/stpncpy (Makefile.am): Likewise.
60987         * modules/strcase (Makefile.am): Likewise.
60988         * modules/strcasestr (Makefile.am): Likewise.
60989         * modules/strchrnul (Makefile.am): Likewise.
60990         * modules/strcspn (Makefile.am): Likewise.
60991         * modules/strdup (Makefile.am): Likewise.
60992         * modules/strerror (Makefile.am): Likewise.
60993         * modules/strftime (Makefile.am): Likewise.
60994         * modules/strndup (Makefile.am): Likewise.
60995         * modules/strnlen (Makefile.am): Likewise.
60996         * modules/strpbrk (Makefile.am): Likewise.
60997         * modules/strsep (Makefile.am): Likewise.
60998         * modules/strstr (Makefile.am): Likewise.
60999         * modules/strtod (Makefile.am): Likewise.
61000         * modules/strtoimax (Makefile.am): Likewise.
61001         * modules/strtok_r (Makefile.am): Likewise.
61002         * modules/strtol (Makefile.am): Likewise.
61003         * modules/strtoll (Makefile.am): Likewise.
61004         * modules/strtoul (Makefile.am): Likewise.
61005         * modules/strtoull (Makefile.am): Likewise.
61006         * modules/strtoumax (Makefile.am): Likewise.
61007         * modules/strverscmp (Makefile.am): Likewise.
61008         * modules/sys_socket (Makefile.am): Likewise.
61009         * modules/sys_stat (Makefile.am): Likewise.
61010         * modules/sysexits (Makefile.am): Likewise.
61011         * modules/time_r (Makefile.am): Likewise.
61012         * modules/timegm (Makefile.am): Likewise.
61013         * modules/timespec (Makefile.am): Likewise.
61014         * modules/tmpfile-safer (Makefile.am): Likewise.
61015         * modules/trim (Makefile.am): Likewise.
61016         * modules/unistd-safer (Makefile.am): Likewise.
61017         * modules/unlinkdir (Makefile.am): Likewise.
61018         * modules/unlocked-io (Makefile.am): Likewise.
61019         * modules/userspec (Makefile.am): Likewise.
61020         * modules/utime (Makefile.am): Likewise.
61021         * modules/utimecmp (Makefile.am): Likewise.
61022         * modules/utimens (Makefile.am): Likewise.
61023         * modules/vasnprintf (Makefile.am): Likewise.
61024         * modules/vasprintf (Makefile.am): Likewise.
61025         * modules/vsnprintf (Makefile.am): Likewise.
61026         * modules/xalloc (Makefile.am): Likewise.
61027         * modules/xgetcwd (Makefile.am): Likewise.
61028         * modules/xnanosleep (Makefile.am): Likewise.
61029         * modules/xreadlink (Makefile.am): Likewise.
61030         * modules/xstrtod (Makefile.am): Likewise.
61031         * modules/xstrtol (Makefile.am): Likewise.
61032         * modules/xstrtold (Makefile.am): Likewise.
61033         * modules/yesno (Makefile.am): Likewise.
61034         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61035
61036 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61037
61038         * modules/error (Makefile.am): Distribute files through
61039         EXTRA_DIST, not lib_SOURCES.
61040
61041 2006-10-12  Eric Blake  <ebb9@byu.net>
61042
61043         * modules/error (Makefile.am): Distribute files in /lib.
61044         * modules/obstack (Makefile.am): Likewise.
61045
61046 2006-10-12  Bruno Haible  <bruno@clisp.org>
61047
61048         * modules/acl (Makefile.am): Distribute all files in lib/ through
61049         EXTRA_DIST.
61050         * modules/arcfour (Makefile.am): Likewise.
61051         * modules/arctwo (Makefile.am): Likewise.
61052         * modules/argmatch (Makefile.am): Likewise.
61053         * modules/argz (Makefile.am): Likewise.
61054         * modules/atexit (Makefile.am): Likewise.
61055         * modules/backupfile (Makefile.am): Likewise.
61056         * modules/c-strtod (Makefile.am): Likewise.
61057         * modules/c-strtold (Makefile.am): Likewise.
61058         * modules/calloc (Makefile.am): Likewise.
61059         * modules/canon-host (Makefile.am): Likewise.
61060         * modules/canonicalize (Makefile.am): Likewise.
61061         * modules/chdir-long (Makefile.am): Likewise.
61062         * modules/chdir-safer (Makefile.am): Likewise.
61063         * modules/check-version (Makefile.am): Likewise.
61064         * modules/chown (Makefile.am): Likewise.
61065         * modules/cloexec (Makefile.am): Likewise.
61066         * modules/close-stream (Makefile.am): Likewise.
61067         * modules/closeout (Makefile.am): Likewise.
61068         * modules/crc (Makefile.am): Likewise.
61069         * modules/cycle-check (Makefile.am): Likewise.
61070         * modules/des (Makefile.am): Likewise.
61071         * modules/dirfd (Makefile.am): Likewise.
61072         * modules/dirname (Makefile.am): Likewise.
61073         * modules/dup2 (Makefile.am): Likewise.
61074         * modules/euidaccess (Makefile.am): Likewise.
61075         * modules/exclude (Makefile.am): Likewise.
61076         * modules/exitfail (Makefile.am): Likewise.
61077         * modules/fcntl-safer (Makefile.am): Likewise.
61078         * modules/file-type (Makefile.am): Likewise.
61079         * modules/fileblocks (Makefile.am): Likewise.
61080         * modules/filemode (Makefile.am): Likewise.
61081         * modules/filenamecat (Makefile.am): Likewise.
61082         * modules/fnmatch (Makefile.am): Likewise.
61083         * modules/fopen-safer (Makefile.am): Likewise.
61084         * modules/fpending (Makefile.am): Likewise.
61085         * modules/fprintftime (Makefile.am): Likewise.
61086         * modules/free (Makefile.am): Likewise.
61087         * modules/fsusage (Makefile.am): Likewise.
61088         * modules/ftruncate (Makefile.am): Likewise.
61089         * modules/fts (Makefile.am): Likewise.
61090         * modules/gc (Makefile.am): Likewise.
61091         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61092         * modules/getaddrinfo (Makefile.am): Likewise.
61093         * modules/getcwd (Makefile.am): Likewise.
61094         * modules/getdelim (Makefile.am): Likewise.
61095         * modules/getdomainname (Makefile.am): Likewise.
61096         * modules/getgroups (Makefile.am): Likewise.
61097         * modules/gethostname (Makefile.am): Likewise.
61098         * modules/gethrxtime (Makefile.am): Likewise.
61099         * modules/getline (Makefile.am): Likewise.
61100         * modules/getloadavg (Makefile.am): Likewise.
61101         * modules/getlogin_r (Makefile.am): Likewise.
61102         * modules/getopt (Makefile.am): Likewise.
61103         * modules/getpass (Makefile.am): Likewise.
61104         * modules/getpass-gnu (Makefile.am): Likewise.
61105         * modules/getsubopt (Makefile.am): Likewise.
61106         * modules/gettime (Makefile.am): Likewise.
61107         * modules/gettimeofday (Makefile.am): Likewise.
61108         * modules/getugroups (Makefile.am): Likewise.
61109         * modules/getusershell (Makefile.am): Likewise.
61110         * modules/glob (Makefile.am): Likewise.
61111         * modules/group-member (Makefile.am): Likewise.
61112         * modules/hard-locale (Makefile.am): Likewise.
61113         * modules/hash (Makefile.am): Likewise.
61114         * modules/hmac-md5 (Makefile.am): Likewise.
61115         * modules/hmac-sha1 (Makefile.am): Likewise.
61116         * modules/human (Makefile.am): Likewise.
61117         * modules/idcache (Makefile.am): Likewise.
61118         * modules/imaxabs (Makefile.am): Likewise.
61119         * modules/imaxdiv (Makefile.am): Likewise.
61120         * modules/inet_ntop (Makefile.am): Likewise.
61121         * modules/inet_pton (Makefile.am): Likewise.
61122         * modules/inttostr (Makefile.am): Likewise.
61123         * modules/isapipe (Makefile.am): Likewise.
61124         * modules/lchown (Makefile.am): Likewise.
61125         * modules/long-options (Makefile.am): Likewise.
61126         * modules/lstat (Makefile.am): Likewise.
61127         * modules/malloc (Makefile.am): Likewise.
61128         * modules/mathl (Makefile.am): Likewise.
61129         * modules/mbchar (Makefile.am): Likewise.
61130         * modules/md2 (Makefile.am): Likewise.
61131         * modules/md4 (Makefile.am): Likewise.
61132         * modules/md5 (Makefile.am): Likewise.
61133         * modules/memcasecmp (Makefile.am): Likewise.
61134         * modules/memchr (Makefile.am): Likewise.
61135         * modules/memcmp (Makefile.am): Likewise.
61136         * modules/memcoll (Makefile.am): Likewise.
61137         * modules/memcpy (Makefile.am): Likewise.
61138         * modules/memmem (Makefile.am): Likewise.
61139         * modules/memmove (Makefile.am): Likewise.
61140         * modules/mempcpy (Makefile.am): Likewise.
61141         * modules/memrchr (Makefile.am): Likewise.
61142         * modules/memset (Makefile.am): Likewise.
61143         * modules/memxor (Makefile.am): Likewise.
61144         * modules/mkancesdirs (Makefile.am): Likewise.
61145         * modules/mkdir (Makefile.am): Likewise.
61146         * modules/mkdir-p (Makefile.am): Likewise.
61147         * modules/mkdtemp (Makefile.am): Likewise.
61148         * modules/mkstemp (Makefile.am): Likewise.
61149         * modules/mktime (Makefile.am): Likewise.
61150         * modules/modechange (Makefile.am): Likewise.
61151         * modules/mountlist (Makefile.am): Likewise.
61152         * modules/nanosleep (Makefile.am): Likewise.
61153         * modules/openat (Makefile.am): Likewise.
61154         * modules/pagealign_alloc (Makefile.am): Likewise.
61155         * modules/physmem (Makefile.am): Likewise.
61156         * modules/poll (Makefile.am): Likewise.
61157         * modules/posixtm (Makefile.am): Likewise.
61158         * modules/posixver (Makefile.am): Likewise.
61159         * modules/putenv (Makefile.am): Likewise.
61160         * modules/quote (Makefile.am): Likewise.
61161         * modules/quotearg (Makefile.am): Likewise.
61162         * modules/raise (Makefile.am): Likewise.
61163         * modules/read-file (Makefile.am): Likewise.
61164         * modules/readline (Makefile.am): Likewise.
61165         * modules/readlink (Makefile.am): Likewise.
61166         * modules/readtokens (Makefile.am): Likewise.
61167         * modules/readutmp (Makefile.am): Likewise.
61168         * modules/realloc (Makefile.am): Likewise.
61169         * modules/regex (Makefile.am): Likewise.
61170         * modules/rename (Makefile.am): Likewise.
61171         * modules/rename-dest-slash (Makefile.am): Likewise.
61172         * modules/rijndael (Makefile.am): Likewise.
61173         * modules/rmdir (Makefile.am): Likewise.
61174         * modules/rpmatch (Makefile.am): Likewise.
61175         * modules/safe-read (Makefile.am): Likewise.
61176         * modules/safe-write (Makefile.am): Likewise.
61177         * modules/same (Makefile.am): Likewise.
61178         * modules/save-cwd (Makefile.am): Likewise.
61179         * modules/savedir (Makefile.am): Likewise.
61180         * modules/setenv (Makefile.am): Likewise.
61181         * modules/settime (Makefile.am): Likewise.
61182         * modules/sha1 (Makefile.am): Likewise.
61183         * modules/sig2str (Makefile.am): Likewise.
61184         * modules/snprintf (Makefile.am): Likewise.
61185         * modules/stdlib-safer (Makefile.am): Likewise.
61186         * modules/stpcpy (Makefile.am): Likewise.
61187         * modules/stpncpy (Makefile.am): Likewise.
61188         * modules/strcase (Makefile.am): Likewise.
61189         * modules/strcasestr (Makefile.am): Likewise.
61190         * modules/strchrnul (Makefile.am): Likewise.
61191         * modules/strcspn (Makefile.am): Likewise.
61192         * modules/strdup (Makefile.am): Likewise.
61193         * modules/strerror (Makefile.am): Likewise.
61194         * modules/strftime (Makefile.am): Likewise.
61195         * modules/strndup (Makefile.am): Likewise.
61196         * modules/strnlen (Makefile.am): Likewise.
61197         * modules/strpbrk (Makefile.am): Likewise.
61198         * modules/strsep (Makefile.am): Likewise.
61199         * modules/strstr (Makefile.am): Likewise.
61200         * modules/strtod (Makefile.am): Likewise.
61201         * modules/strtoimax (Makefile.am): Likewise.
61202         * modules/strtok_r (Makefile.am): Likewise.
61203         * modules/strtol (Makefile.am): Likewise.
61204         * modules/strtoll (Makefile.am): Likewise.
61205         * modules/strtoul (Makefile.am): Likewise.
61206         * modules/strtoull (Makefile.am): Likewise.
61207         * modules/strtoumax (Makefile.am): Likewise.
61208         * modules/strverscmp (Makefile.am): Likewise.
61209         * modules/time_r (Makefile.am): Likewise.
61210         * modules/timegm (Makefile.am): Likewise.
61211         * modules/tmpfile-safer (Makefile.am): Likewise.
61212         * modules/unistd-safer (Makefile.am): Likewise.
61213         * modules/unlinkdir (Makefile.am): Likewise.
61214         * modules/userspec (Makefile.am): Likewise.
61215         * modules/utime (Makefile.am): Likewise.
61216         * modules/utimecmp (Makefile.am): Likewise.
61217         * modules/utimens (Makefile.am): Likewise.
61218         * modules/vasnprintf (Makefile.am): Likewise.
61219         * modules/vasprintf (Makefile.am): Likewise.
61220         * modules/vsnprintf (Makefile.am): Likewise.
61221         * modules/xalloc (Makefile.am): Likewise.
61222         * modules/xgetcwd (Makefile.am): Likewise.
61223         * modules/xnanosleep (Makefile.am): Likewise.
61224         * modules/xreadlink (Makefile.am): Likewise.
61225         * modules/xstrtod (Makefile.am): Likewise.
61226         * modules/xstrtol (Makefile.am): Likewise.
61227         * modules/xstrtold (Makefile.am): Likewise.
61228         * modules/yesno (Makefile.am): Likewise.
61229
61230 2006-10-12  Jim Meyering  <jim@meyering.net>
61231
61232         * m4/getloadavg.m4: Revert the change below.
61233
61234         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61235         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61236         fail with a symlink, which is what coreutils' ./bootstrap now
61237         creates by default.
61238
61239 2006-10-12  Bruno Haible  <bruno@clisp.org>
61240
61241         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61242         mingw.
61243         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61244         MSVC and mingw explicitly.
61245
61246 2006-10-11  Simon Josefsson  <jas@extundo.com>
61247             Bruno Haible  <bruno@clisp.org>
61248
61249         Add support for multiple gnulib-tool invocations in the scope of a
61250         single configure.ac file.
61251         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61252         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61253         with the same contents as the _LIBADD variable.
61254         (func_emit_initmacro_start, func_emit_initmacro_end,
61255         func_emit_initmacro_done): New functions.
61256         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61257         gl_LIBOBJS and gl_LTLIBOBJS.
61258
61259 2006-10-11  Bruno Haible  <bruno@clisp.org>
61260
61261         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61262         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61263         autoreconf. Instead, invoke autopoint explicitly but move back the
61264         *.m4 files from gnulib.
61265
61266 2006-10-11  Bruno Haible  <bruno@clisp.org>
61267
61268         * gnulib-tool (func_usage): Make module names after --create-testdir
61269         optional.
61270         (func_create_testdir): If no module was specified, use nearly all
61271         modules.
61272
61273 2006-10-12  Jim Meyering  <jim@meyering.net>
61274
61275         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61276         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61277         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61278         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61279         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61280         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61281         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61282         (fts_set_stat_required): New function.
61283         (fts_open): Defer the calls to fts_stat, if possible or requested.
61284         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61285         into fts_stat itself.
61286         (fts_read): Perform any required (deferred) fts_stat call.
61287         (fts_build): Likewise, for the directory we're about to open and read.
61288         In the readdir loop, carefully decide whether each entry will require
61289         an eventual call to fts_stat, using dirent.d_type info if available.
61290         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61291         a command line argument into this function.  Update all callers.
61292         Map a return value of FTS_DOT to FTS_D for a command line argument.
61293         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61294         Thanks to Miklos Szeredi for his tenacity and for the initial
61295         bug report about "find" failing on a FUSE-based file system.
61296
61297         * lib/fts.c (fts_open): Use consistent indentation.
61298
61299 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61300
61301         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61302         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61303         reported by Jim Meyering.  All uses of cache variables renamed
61304         to match Autoconf's.
61305         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61306         the other one.
61307
61308         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61309         Fix misspelling in diagnostic.
61310
61311 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61312
61313         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61314         defined.  Problem reported by Matthew Woehlke.
61315
61316         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61317         Add support for Tandem NonStop R series.
61318         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61319         Use new macro.
61320
61321         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61322         (has_trailing_slash): Omit size arg; all callers changed.
61323         Omit 'inline', since it doesn't help performance and we'd
61324         need to configure it.
61325         Don't count //, ///, etc. as having a trailing slash.
61326         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61327         (rpl_rename_dest_slash): On failure, use rename's errno rather
61328         than (in some cases) an incorrect or junk errno.
61329         Simplify code by removing need to compute length; this does
61330         cause it to make two passes instead of one over the file name,
61331         but it's worth it.
61332
61333         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61334         change, since Autoconf's version may no longer be appropriate now
61335         that we are using CVS Autoconf's version.  Add support for Tandem.
61336
61337 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61338             Bruno Haible  <bruno@clisp.org>
61339
61340         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61341         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61342         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61343         gl_AC_TYPE_LONG_LONG.
61344
61345         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61346         instead of HAVE_LONG_LONG.
61347         * lib/printf-args.c (printf_fetchargs): Likewise.
61348         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61349         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61350         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61351         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61352         gl_AC_TYPE_LONG_LONG.
61353
61354 2006-10-11  Bruno Haible  <bruno@clisp.org>
61355
61356         * m4/longlong.m4: Add comments.
61357         * m4/ulonglong.m4: Likewise.
61358
61359 2006-10-10  Bruno Haible  <bruno@clisp.org>
61360
61361         Make it possible to #define stpcpy, strdup to aliases.
61362         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61363         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61364
61365 2006-10-10  Bruno Haible  <bruno@clisp.org>
61366
61367         Make it possible to #define gcd to an alias.
61368         * lib/gcd.c: Include config.h.
61369
61370 2006-10-10  Bruno Haible  <bruno@clisp.org>
61371
61372         Make it possible to #define c_isascii to an alias.
61373         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61374         defined. Undefine the macros before defining them, to avoid gcc
61375         warnings.
61376         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61377         define NO_C_CTYPE_MACROS early.
61378
61379 2006-10-10  Bruno Haible  <bruno@clisp.org>
61380
61381         Make it possible to #define set_program_name to an alias.
61382         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61383         ENABLE_RELOCATABLE early.
61384
61385 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61386
61387         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61388         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61389         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61390         More generally, don't assume that 64-bit signed int is available
61391         if unsigned int is, and vice versa.
61392         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61393         unsigned symbols, not on their signed counterparts.
61394         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61395         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61396         (UINT64_C, UINTMAX_C):
61397         Likewise.
61398         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61399         unsigned counterparts.
61400         (Have_long_long, Unsigned): New macros.
61401         (Int): Renamed from INT.
61402         (strtoimax): Use the new macros.
61403         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61404         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61405         * modules/inttypes (inttypes.h): Substitute
61406         HAVE_UNSIGNED_LONG_LONG_INT.
61407         * modules/stdint (stdint.h): Likewise.
61408         (Files): Add m4/ulonglong.m4.
61409
61410 2006-10-10  Bruno Haible  <bruno@clisp.org>
61411
61412         Fix a gcc -Wshadow warning.
61413         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61414         to 'bucket'.
61415         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61416         gl_linked_indexof_from_to): Likewise.
61417         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61418         Likewise.
61419         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61420         Likewise.
61421         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61422         Reported by Eric Blake.
61423
61424 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61425
61426         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61427         for NetBSD.  Problem reported by Bruno Haible.
61428
61429 2006-10-09  Jim Meyering  <jim@meyering.net>
61430
61431         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61432         Patch from Bruno Haible.
61433
61434 2006-10-09  Jim Meyering  <jim@meyering.net>
61435
61436         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61437         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61438         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61439
61440 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61441
61442         Don't include <config.h> twice; this doesn't work in some cases,
61443         e.g., when config.h has "#define intmax_t long long int" and
61444         we include <config.h>, <inttypes.h>, <config.h> in that order.
61445         Problem reported by Matthew Woehlke in:
61446         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61447         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61448         * lib/fts-cycle.c: Don't include config.h.
61449         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61450         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61451         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61452         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
61453         inttypes.h.
61454         * lib/xstrtoumax.c: Likewise.
61455         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
61456         __strtol and the like, so that this module is more like its siblings.
61457         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
61458         Remove; no longer needed now that we assume gnulib inttypes.h.
61459
61460 2006-10-08  Bruno Haible  <bruno@clisp.org>
61461
61462         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
61463         option.
61464
61465 2006-10-07  Jim Meyering  <jim@meyering.net>
61466
61467         * modules/inttypes (inttypes.h): Revert what seems to have been
61468         an inadvertent part of today's change: use "|", not "/" in the
61469         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
61470
61471 2006-10-07  Bruno Haible  <bruno@clisp.org>
61472
61473         * modules/sublist: New file.
61474
61475 2006-10-07  Bruno Haible  <bruno@clisp.org>
61476
61477         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61478         * modules/argz (argz.h): Likewise.
61479         * modules/arpa_inet (arpa/inet.h): Likewise.
61480         * modules/byteswap (byteswap.h): Likewise.
61481         * modules/configmake (configmake.h): Likewise.
61482         * modules/fcntl (fcntl.h): Likewise.
61483         * modules/fnmatch (fnmatch.h): Likewise.
61484         * modules/getopt (getopt.h): Likewise.
61485         * modules/glob (glob.h): Likewise.
61486         * modules/inttypes (inttypes.h): Likewise.
61487         * modules/netinet_in (netinet/in.h): Likewise.
61488         * modules/poll (poll.h): Likewise.
61489         * modules/stdbool (stdbool.h): Likewise.
61490         * modules/stdint (stdint.h): Likewise.
61491         * modules/sys_select (sys/select.h): Likewise.
61492         * modules/sys_socket (sys/socket.h): Likewise.
61493         * modules/sys_stat (sys/stat.h): Likewise.
61494         * modules/sysexits (sysexits.h): Likewise.
61495         * modules/unistd (unistd.h): Likewise.
61496         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61497         Add a "DO NOT EDIT" comment to the generated file.
61498         (func_import): Likewise for gnulib-comp.m4.
61499
61500 2006-10-07  Bruno Haible  <bruno@clisp.org>
61501
61502         * lib/gl_sublist.h: New file.
61503         * lib/gl_sublist.c: New file.
61504
61505 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61506
61507         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61508         name (relative to the original working directory) and the file
61509         name component (relative to the temporary working directory).  All
61510         callers changed.
61511         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61512         * lib/mkdir-p.c (make_dir_parents): Likewise.
61513         * lib/mkdir-p.h (make_dir_parents): Likewise.
61514
61515 2006-10-06  Eric Blake  <ebb9@byu.net>
61516
61517         Define several macros for use by the clean-temp module.
61518         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61519         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61520         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61521
61522         * lib/clean-temp.h (close_stream_temp): New declaration.
61523         * lib/clean-temp.c (includes): Pull in headers according to what
61524         other modules are in use.
61525         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61526
61527 2006-10-06  Bruno Haible  <bruno@clisp.org>
61528
61529         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61530         instead of fopen, fwriteerror.
61531
61532 2006-10-06  Bruno Haible  <bruno@clisp.org>
61533
61534         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61535         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61536         int.
61537         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
61538         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
61539         Return an error indicator.
61540         Suggested by Eric Blake.
61541
61542 2006-10-06  Bruno Haible  <bruno@clisp.org>
61543
61544         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
61545         Reported by Eric Blake.
61546
61547 2006-10-06  Bruno Haible  <bruno@clisp.org>
61548
61549         * modules/closeout (Description): Mention stderr too.
61550
61551 2006-10-06  Bruno Haible  <bruno@clisp.org>
61552         and Paul Eggert  <eggert@cs.ucla.edu>
61553
61554         * lib/closeout.c (close_stdout): Also close stderr.
61555         * lib/closeout.h: Update comment.
61556
61557 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61558
61559         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
61560         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
61561         * lib/dirchownmod.c: Include lchown.h.
61562         * lib/lchown.c: Don't include files that lchown.h now includes.
61563         Don't declare chown, since lchown.h now does that.
61564         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
61565         (lchown): Define to rpl_chown if lchown is declared but
61566         does not exist.  Declare using a prototype if lchown is not
61567         declared.  Add a copyright notice.
61568         * lib/mkstemp.h: Include <unistd.h>.
61569         * lib/openat.c: Include lchown.h.
61570
61571         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
61572         we now test for that separately.
61573         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
61574         rather than O_NOFOLLOW, when testing whether it's possible to
61575         avoid a race condition reliably.
61576         * lib/savewd.c (savewd_chdir): Likewise.
61577
61578         Remove macros that are no longer needed now that stdint.h is
61579         reliable.
61580         * lib/fsusage.c (UINTMAX_MAX): Remove.
61581         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
61582         * lib/utimecmp.c (SIZE_MAX): Remove.
61583
61584         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
61585
61586         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
61587         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
61588         O_NOATIME works.
61589
61590 2006-10-05  Bruno Haible  <bruno@clisp.org>
61591
61592         * lib/gl_list.h (gl_sortedlist_search_from_to,
61593         gl_sortedlist_indexof_from_to): New declarations.
61594         (gl_list_implementation): New fields sortedlist_search_from_to,
61595         sortedlist_indexof_from_to.
61596         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
61597         inline functions.
61598         * lib/gl_list.c (gl_sortedlist_search_from_to,
61599         gl_sortedlist_indexof_from_to): New functions.
61600         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
61601         function.
61602         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
61603         (gl_array_sortedlist_search_from_to): New function.
61604         (gl_array_list_implementation): Update.
61605         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
61606         function.
61607         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
61608         (gl_carray_sortedlist_search_from_to): New function.
61609         (gl_carray_list_implementation): Update.
61610         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
61611         gl_linked_sortedlist_indexof_from_to): New functions.
61612         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61613         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61614         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
61615         gl_tree_sortedlist_indexof_from_to): New functions.
61616         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61617         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61618         Update.
61619         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61620         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
61621         Update.
61622
61623 2006-10-05  Bruno Haible  <bruno@clisp.org>
61624
61625         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
61626         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
61627         (struct gl_list_implementation): Add fields search_from_to,
61628         indexof_from_to. Remove fields search, indexof.
61629         (gl_list_search): Use the search_from_to method.
61630         (gl_list_search_from, gl_list_search_from_to): New functions.
61631         (gl_list_indexof): Use the indexof_from_to method.
61632         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61633         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
61634         (gl_list_search_from, gl_list_search_from_to): New functions.
61635         (gl_list_indexof): Use the indexof_from_to method.
61636         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61637         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
61638         gl_array_indexof. Add start_index, end_index arguments.
61639         (gl_array_search_from_to): Renamed from gl_array_search. Add
61640         start_index, end_index arguments.
61641         (gl_array_remove, gl_array_list_implementation): Update.
61642         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
61643         gl_carray_indexof. Add start_index, end_index arguments.
61644         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
61645         start_index, end_index arguments.
61646         (gl_carray_remove, gl_carray_list_implementation): Update.
61647         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
61648         gl_linked_search. Add start_index, end_index arguments.
61649         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
61650         start_index, end_index arguments.
61651         (gl_linked_remove): Update.
61652         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61653         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61654         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
61655         field to 'size_t'.
61656         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
61657         gl_tree_search. Add start_index, end_index arguments.
61658         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61659         start_index, end_index arguments.
61660         (gl_tree_remove): Update.
61661         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61662         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61663         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
61664         function.
61665         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
61666         gl_tree_search. Add start_index, end_index arguments.
61667         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61668         start_index, end_index arguments.
61669         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61670         Update.
61671         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61672
61673 2006-10-05  Bruno Haible  <bruno@clisp.org>
61674
61675         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
61676
61677         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
61678         fwriteerror_temp): New declarations.
61679         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
61680         (descriptors): New variable.
61681         (cleanup): First, close the descriptors.
61682         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
61683         fclose_temp, fwriteerror_temp): New functions.
61684
61685 2006-10-04  Jim Meyering  <jim@meyering.net>
61686
61687         * lib/fts.c (fts_open): Tiny comment change.
61688
61689 2006-10-04  Bruno Haible  <bruno@clisp.org>
61690
61691         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
61692         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
61693         gl_LOCK_BODY.
61694         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
61695         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
61696         gl_LOCK_EARLY_BODY.
61697         (gl_LOCK): Require gl_LOCK_BODY.
61698
61699 2006-10-04  Bruno Haible  <bruno@clisp.org>
61700
61701         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
61702         (gl_oset_search_atleast): New declaration.
61703         (struct gl_oset_implementation): Add field 'search_atleast'.
61704         (gl_oset_search_atleast): New inline function.
61705         * lib/gl_oset.c (gl_oset_search_atleast): New function.
61706         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
61707         (gl_array_oset_implementation): Update.
61708         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
61709         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
61710         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
61711
61712 2006-10-04  Bruno Haible  <bruno@clisp.org>
61713
61714         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
61715
61716 2006-10-03  Bruno Haible  <bruno@clisp.org>
61717
61718         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
61719         from gl_avltreehash_list_implementation.
61720
61721 2006-10-03  Bruno Haible  <bruno@clisp.org>
61722
61723         * lib/gl_oset.c (gl_oset_add): Fix return type.
61724
61725 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
61726
61727         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
61728
61729 2006-10-02  Eric Blake  <ebb9@byu.net>
61730
61731         * modules/strnlen (Depends-on): Add extensions.
61732
61733 2006-10-02  Eric Blake  <ebb9@byu.net>
61734
61735         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
61736         definition in 2.60+.
61737
61738 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
61739
61740         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
61741         checks.
61742
61743 2006-10-02  Bruno Haible  <bruno@clisp.org>
61744
61745         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
61746         to the AUTOMAKE_OPTIONS.
61747         Reported by Jim Meyering.
61748
61749 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61750
61751         Work around bug in Solaris 10 /proc file system:
61752         /proc/self/fd/NNN/.. isn't the parent directory of
61753         the directory whose file descriptor is NNN.  This needs to
61754         be worked around at run time, not compile time, since a
61755         program might be built on Solaris 8, where things work, and
61756         run on Solaris 10.
61757         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
61758         to use the following interface instead:
61759         (OPENAT_BUFFER_SIZE): New macro.
61760         (openat_proc_name): New function.
61761         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
61762         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
61763         Likewise.
61764         * lib/openat-proc.c: New file.
61765         * modules/openat (Files): Add lib/openat-proc.c.
61766         (Depends-on): Add same-inode, stdbool.
61767         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
61768
61769 2006-09-29  Bruno Haible  <bruno@clisp.org>
61770
61771         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
61772         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
61773         argument. Set stdout_closed before testing for ferror, not after.
61774         (fwriteerror, fwriteerror_no_ebadf): New functions.
61775
61776 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61777
61778         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
61779
61780 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
61781
61782         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
61783         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
61784
61785 2006-09-28  Jim Meyering  <jim@meyering.net>
61786
61787         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
61788         Include <unistd.h>.
61789
61790 2006-09-28  Bruno Haible  <bruno@clisp.org>
61791
61792         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
61793         * modules/linkedhash-list (Depends-on): Likewise.
61794         * modules/rbtreehash-list (Depends-on): Likewise.
61795
61796 2006-09-28  Bruno Haible  <bruno@clisp.org>
61797
61798         * lib/strndup.h: Simplify the redefinition of strndup.
61799         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
61800         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
61801
61802 2006-09-28  Bruno Haible  <bruno@clisp.org>
61803
61804         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
61805         * lib/gl_linkedhash_list.c: Likewise.
61806         * lib/gl_rbtreehash_list.c: Likewise.
61807
61808 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61809
61810         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
61811         getaddrinfo.
61812
61813         * lib/__fpending.h: Don't include <stdio_ext.h> unless
61814         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
61815         it causes <stdio_ext.h> to cause a compile-time error.
61816         Problem reported by Nelson H. F. Beebe.
61817         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
61818         of HAVE_DECL___PENDING.
61819
61820         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
61821         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
61822         declaration.
61823
61824 2006-09-27  Jim Meyering  <jim@meyering.net>
61825
61826         This file could end up with a definition for a function
61827         named __strndup, rather than rpl_strndup on a system with
61828         incomplete weak_alias support.
61829         * lib/strndup.c (strndup): Rename from __strndup.
61830         Remove #defines that used to map __strndup to strndup.
61831         Don't use K&R prototypes.
61832         Remove LIBC-related code, since this file is not sync'd with glibc.
61833         * lib/strndup.h: Revamp, accordingly.
61834         * m4/strndup.m4: Modernize.
61835
61836 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61837
61838         * modules/savewd (Depends-on): Add 'raise'.
61839         * lib/savewd.c: Include <signal.h>, for 'raise'.
61840
61841 2006-09-26  Jim Meyering  <jim@meyering.net>
61842
61843         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
61844         when we detect Darwin 8.7.0's acl_get_file bug.
61845         Rearrange to perform the new (below) run-test while $LIBS
61846         contains any acl-related library.  Set USE_ACL at the end.
61847         (gl_ACL_GET_FILE): New function.
61848
61849 2006-09-26  Eric Blake  <ebb9@byu.net>
61850
61851         * lib/verror.c: Include <config.h> unconditionally.
61852
61853 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
61854
61855         * modules/clock-time (Maintainer): Add self.
61856         * modules/getlogin_r (Depends-on): Add extensions.
61857
61858 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61859
61860         * modules/clock-time: New module.
61861         * modules/nanosleep (Depends-on): Add clock-time.
61862         * modules/gethrxtime (Depends-on): Likewise.
61863         * modules/gettime (Depends-on): Likewise.
61864         * modules/settime (Depends-on): Likewise.
61865
61866         * modules/fts-lgpl: Depend on openat.
61867         * modules/mkancesdirs: Depend on savewd.
61868         * modules/mkdir-p: Likewise.
61869
61870 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61871
61872         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
61873
61874         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
61875         `gl_have_arbitrary_file_name_length_limit' to
61876         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
61877         actually works between configure runs.
61878
61879 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61880             Bruno Haible  <bruno@clisp.org>
61881
61882         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
61883
61884 2006-09-25  Jim Meyering  <jim@meyering.net>
61885
61886         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
61887         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
61888
61889 2006-09-25  Eric Blake  <ebb9@byu.net>
61890
61891         * gnulib-tool (func_import, func_create_testdir): Fix typos in
61892         exec's in 2006-09-18 patch when shuffling fds.
61893
61894 2006-09-25  Bruno Haible  <bruno@clisp.org>
61895
61896         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
61897         Reported by Jim Meyering.
61898
61899 2006-09-24  Jim Meyering  <jim@meyering.net>
61900
61901         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
61902         compare a pointer against a literal "0".  That caused failures with
61903         at least HP-UX's hpcc.
61904
61905 2006-09-22  Simon Josefsson  <jas@extundo.com>
61906
61907         * modules/gc-sha1:
61908         * modules/gc-md4:
61909         * modules/gc-hmac-sha1:
61910         * modules/gc-hmac-md5:
61911         * modules/gc-des:
61912         * modules/gc-arcfour: Distribute more files.
61913
61914 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61915
61916         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
61917         (gl_linked_iterator_from_to): Initialize struct completely.
61918         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
61919         (gl_tree_iterator_from_to): Likewise
61920         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
61921         * lib/gl_array_list.c [lint] (gl_array_iterator)
61922         (gl_array_iterator_from_to): Likewise.
61923         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
61924         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
61925         (gl_carray_iterator_from_to): Likewise.
61926
61927         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
61928         * lib/md4.c (md4_process_block): Remove unused variable.
61929         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
61930         parentheses for clarity.
61931
61932 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61933
61934         * modules/bison-i18n (Depends-on): Add gettext.
61935
61936 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61937
61938         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
61939         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
61940         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
61941         also add missing comma that caused broken test.
61942         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
61943         stdlib.h, for `abort'.
61944         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
61945         variables.
61946         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
61947         include unistd.h if present, for `rmdir'.
61948         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
61949         variables.
61950         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
61951         in the process include standard headers for prototypes.
61952         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
61953         gets declared on GNU/Linux.
61954         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
61955         unistd.h, for `rmdir'.
61956         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
61957
61958         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
61959         always true.
61960         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
61961
61962         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
61963
61964 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61965
61966         * gnulib-tool (func_version): Create output all at once.  This
61967         may help avoid triggering unnecessary SIGPIPEs, and at any
61968         rate it doesn't hurt.
61969
61970 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61971             Bruno Haible  <bruno@clisp.org>
61972
61973         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
61974         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61975         * m4/signed.m4 (bh_C_SIGNED): Likewise.
61976
61977         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
61978         (gl_FUNC_VASPRINTF): Invoke it.
61979
61980 2006-09-22  Bruno Haible  <bruno@clisp.org>
61981
61982         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
61983         getloadavg.c as first argument.
61984
61985 2006-09-22  Bruno Haible  <bruno@clisp.org>
61986
61987         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
61988         at the beginning of the gl_INIT macro.
61989         * modules/getloadavg (configure.ac): Pass $gl_source_base to
61990         gl_GETLOADAVG.
61991
61992 2006-09-22  Bruno Haible  <bruno@clisp.org>
61993
61994         * gnulib-tool (func_create_megatestdir): Don't include the config-h
61995         module.
61996         Suggested by Ralf Wildenhues.
61997
61998 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61999
62000         Import this patch from libc:
62001
62002         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62003
62004         * lib/regex_internal.c (re_string_reconstruct): Handle
62005         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62006         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62007         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62008         re_string_context_at.
62009
62010         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62011         now requires it.
62012         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62013         gl_REGEX now does it for us.
62014         (gl_REGEX): Add test taken from
62015         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62016
62017         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62018         Check that large offsets work.  Modernize Autoconf usages.
62019         Prefer "yes" to mean a good thing rather than a bad.
62020         Don't put "#define mkstemp" in config.h, as this might interfere
62021         with standard system headers that "#define mkstemp mkstemp64".
62022
62023         * modules/mkstemp (Depends-on): Add extensions, so that
62024         mkstemp is visible on some platforms.
62025         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62026         (Include): Change to "mkstemp.h" from <stdlib.h>.
62027         (Files): Add mkstemp.h.
62028
62029         * lib/mkstemp.h: New file, since some standard headers
62030         #define mkstemp.
62031         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62032         Include "mkstemp.h".
62033         Make the _LIBC code resemble glibc original more,
62034         e.g., use K&R style.
62035         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62036         (mkstemp): Remove, since mkstemp.h does this for us.
62037         * lib/stdlib--.h: Include mkstemp.h.
62038
62039         Import this patch from libc:
62040
62041         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62042
62043         * lib/tempname.c (__gen_tempname): Change attempts_min
62044         into a macro.  Use preprocessor to decide how to initialize
62045         attempts [Coverity CID 67].
62046
62047 2006-09-20  Bruno Haible  <bruno@clisp.org>
62048
62049         * lib/mkdtemp.c: Import from libc.
62050         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62051                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62052                 attempts_min into a macro.  Use preprocessor to decide how to
62053                 initialize attempts [Coverity CID 67].
62054         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62055                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62056                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62057
62058 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62059
62060         * gnulib-tool (func_exit): New function, to allow to pass the
62061         exit status portably through the trap.  Use everywhere.
62062         (--help, --version): Signal a write error.
62063         (trap): catch SIGPIPE, for write errors.
62064         Exit at the end of the trap, with the correct exit status.
62065
62066 2006-09-19  Karl Berry  <karl@gnu.org>
62067
62068         * doc/gnulib.texi: note about the license texinfo files.
62069
62070 2006-09-19  Eric Blake  <ebb9@byu.net>
62071
62072         * gnulib-tool: Avoid space-tab.
62073
62074 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62075
62076         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62077         that prevented coreutils 6.1 from building.  Problem reported
62078         by Petter Reinholdtsen.
62079
62080 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62081
62082         * gnulib-tool (avoidlist): Fix typo that broke options like
62083         --avoid=lock that are used by coreutils bootstrap.
62084
62085 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62086
62087         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62088         more systematically.
62089
62090 2006-09-18  Jim Meyering  <jim@meyering.net>
62091
62092         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62093
62094 2006-09-18  Bruno Haible  <bruno@clisp.org>
62095
62096         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62097
62098 2006-09-18  Bruno Haible  <bruno@clisp.org>
62099
62100         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62101         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62102         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62103         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62104         * m4/gettext.m4: Require autoconf >= 2.52.
62105         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62106         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62107         of gl_cv_header_inttypes_h.
62108
62109 2006-09-18  Bruno Haible  <bruno@clisp.org>
62110
62111         * lib/javaversion.c: Include configmake.h.
62112
62113 2006-09-18  Bruno Haible  <bruno@clisp.org>
62114
62115         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62116         avoid that the while loops be executed in a subshell.
62117
62118 2006-09-18  Bruno Haible  <bruno@clisp.org>
62119
62120         * MODULES.html.sh (func_module): Break long lines.
62121         Suggested by Bruce Korb <bkorb@gnu.org>.
62122
62123 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62124
62125         Speed up by a factor of 1.12.
62126         * gnulib-tool (nl): New variable.
62127         (func_import): Rewrite include directive extraction to only read each
62128         directive once.
62129
62130 2006-09-17  Bruno Haible  <bruno@clisp.org>
62131
62132         * modules/javaversion (Makefile.am): Remove DEFS setting.
62133         (Depends-on): Add configmake, for PKGDATADIR definition.
62134
62135 2006-09-17  Bruno Haible  <bruno@clisp.org>
62136
62137         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62138
62139 2006-09-17  Bruno Haible  <bruno@clisp.org>
62140
62141         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62142         (func_modules_transitive_closure, func_modules_add_dummy,
62143         func_modules_to_filelist, func_import, func_create_testdir,
62144         func_create_megatestdir, ...): Use it wherever possible.
62145         Suggested by Ralf Wildenhues.
62146
62147 2006-09-16  Karl Berry  <karl@gnu.org>
62148
62149         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62150         to avoid sectioning errors.
62151         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62152         [ifinfo]: blank line after @center-ed titles.
62153         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62154         Spell FSF address consistently with others.
62155         (These changes approved by rms.)
62156
62157 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62158
62159         Speed up by a factor of 1.61.
62160         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62161         already checked module names again.
62162
62163 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62164
62165         Speed up by a factor of 1.13.
62166         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62167         for new_files, and the input to func_add_or_update.
62168
62169 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62170
62171         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62172         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62173
62174 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62175
62176         * modules/mkancesdirs (Depends-on): Add fcntl.
62177         * modules/savewd: New file.
62178         * MODULES.html.sh (File system functions): Add savewd.
62179
62180         * modules/configmake (Makefile.am): Add support for the
62181         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62182
62183 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62184
62185         * m4/savewd.m4: New file.
62186
62187 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62188
62189         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62190         (dirchownmod): New arg FD.  All callers changed.
62191         Use FD rather than opening the directory ourself, as opening is
62192         now the caller's responsibility.
62193         * lib/dirchownmod.h: Likewise.
62194         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62195         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62196         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62197         (test_dir): Remove.
62198         (mkancesdirs): Return length of prefix of FILE that has already
62199         been made, or -2 if there is a child doing the work.  Redo
62200         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62201         ".", and treat ".." specially since it might stray back into
62202         already-created areas.  Use a subprocess if necessary.  New arg
62203         WD; all users changed.  MAKE_DIR function should now return 1
62204         if it creates a directory that is not readable.  Return -2 if
62205         a child process is spun off.
62206         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62207         Adjust signature to match code.
62208         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62209         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62210         all users changed.
62211         * lib/savewd.c, lib/savewd.h: New files.
62212
62213 2006-09-15  Jim Meyering  <jim@meyering.net>
62214
62215         * modules/rename-dest-slash: New module.
62216         * MODULES.html.sh (posix_compat): Add it here.
62217
62218         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62219
62220 2006-09-15  Jim Meyering  <jim@meyering.net>
62221
62222         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62223         file.
62224
62225         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62226
62227 2006-09-15  Jim Meyering  <jim@meyering.net>
62228
62229         * lib/rename-dest-slash.c (has_trailing_slash): Use
62230         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62231         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62232         test before testing whether SRC is a directory.
62233         Suggestions from Bruno Haible.
62234
62235         Avoid a warning about an unused variable.
62236         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62237         into the #ifdef block where it's used.
62238
62239         * lib/rename-dest-slash.c: New file.
62240
62241 2006-09-14  Bruno Haible  <bruno@clisp.org>
62242
62243         * lib/allocsa.c: Include <config.h> unconditionally.
62244         * lib/asnprintf.c: Likewise.
62245         * lib/asprintf.c: Likewise.
62246         * lib/c-strcasecmp.c: Likewise.
62247         * lib/c-strcasestr.c: Likewise.
62248         * lib/c-strncasecmp.c: Likewise.
62249         * lib/c-strstr.c: Likewise.
62250         * lib/classpath.c: Likewise.
62251         * lib/clean-temp.c: Likewise.
62252         * lib/concatpath.c: Likewise.
62253         * lib/copy-file.c: Likewise.
62254         * lib/csharpcomp.c: Likewise.
62255         * lib/csharpexec.c: Likewise.
62256         * lib/execute.c: Likewise.
62257         * lib/fatal-signal.c: Likewise.
62258         * lib/findprog.c: Likewise.
62259         * lib/fwriteerror.c: Likewise.
62260         * lib/gl_array_list.c: Likewise.
62261         * lib/gl_array_oset.c: Likewise.
62262         * lib/gl_avltree_list.c: Likewise.
62263         * lib/gl_avltree_oset.c: Likewise.
62264         * lib/gl_avltreehash_list.c: Likewise.
62265         * lib/gl_carray_list.c: Likewise.
62266         * lib/gl_linked_list.c: Likewise.
62267         * lib/gl_linkedhash_list.c: Likewise.
62268         * lib/gl_list.c: Likewise.
62269         * lib/gl_oset.c: Likewise.
62270         * lib/gl_rbtree_list.c: Likewise.
62271         * lib/gl_rbtree_oset.c: Likewise.
62272         * lib/gl_rbtreehash_list.c: Likewise.
62273         * lib/imaxabs.c: Likewise.
62274         * lib/imaxdiv.c: Likewise.
62275         * lib/javacomp.c: Likewise.
62276         * lib/javaexec.c: Likewise.
62277         * lib/javaversion.c: Likewise.
62278         * lib/linebreak.c: Likewise.
62279         * lib/localcharset.c: Likewise.
62280         * lib/lock.c: Likewise.
62281         * lib/mbchar.c: Likewise.
62282         * lib/mbswidth.c: Likewise.
62283         * lib/mkdtemp.c: Likewise.
62284         * lib/pipe.c: Likewise.
62285         * lib/printf-args.c: Likewise.
62286         * lib/printf-parse.c: Likewise.
62287         * lib/progname.c: Likewise.
62288         * lib/progreloc.c: Likewise.
62289         * lib/readlink.c: Likewise.
62290         * lib/sh-quote.c: Likewise.
62291         * lib/stpcpy.c: Likewise.
62292         * lib/stpncpy.c: Likewise.
62293         * lib/strcasecmp.c: Likewise.
62294         * lib/strcasestr.c: Likewise.
62295         * lib/strcspn.c: Likewise.
62296         * lib/striconv.c: Likewise.
62297         * lib/strncasecmp.c: Likewise.
62298         * lib/strnlen1.c: Likewise.
62299         * lib/strstr.c: Likewise.
62300         * lib/strtok_r.c: Likewise.
62301         * lib/tls.c: Likewise.
62302         * lib/tmpdir.c: Likewise.
62303         * lib/unicodeio.c: Likewise.
62304         * lib/unsetenv.c: Likewise.
62305         * lib/vasnprintf.c: Likewise.
62306         * lib/vasprintf.c: Likewise.
62307         * lib/wait-process.c: Likewise.
62308         * lib/xallocsa.c: Likewise.
62309         * lib/xsetenv.c: Likewise.
62310         * lib/xstriconv.c: Likewise.
62311
62312 2006-09-13  Simon Josefsson  <jas@extundo.com>
62313
62314         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62315         that internally, suggested by Ralf Wildenhues
62316         <Ralf.Wildenhues@gmx.de>.
62317
62318 2006-09-13  Simon Josefsson  <jas@extundo.com>
62319
62320         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62321         @LIBOBJS@.
62322         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62323
62324 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62325
62326         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62327         longer worry about uses that don't define HAVE_CONFIG_H.
62328         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62329         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62330         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62331         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62332         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62333         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62334         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62335         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62336         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62337         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62338         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62339         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62340         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62341         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62342         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62343         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62344         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62345         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62346         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62347         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62348         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62349         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62350         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62351         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62352         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62353         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62354         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62355         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62356         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62357         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62358         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62359         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62360         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62361         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62362         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62363         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62364         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62365         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62366         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62367         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62368         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62369         Likewise.
62370
62371 2006-09-13  Eric Blake  <ebb9@byu.net>
62372
62373         * lib/getopt.c: Fix typo in last commit.
62374
62375 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62376
62377         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62378         dgettext.
62379
62380 2006-09-12  Jim Meyering  <jim@meyering.net>
62381
62382         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62383         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62384         Reported by Nelson H. F. Beebe.
62385
62386 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62387
62388         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62389         program_invocation_name and program_invocation_short_name are
62390         initialized.
62391         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62392         and program_invocation_short_name to argp.h, so they are visible
62393         to user programs.
62394         * lib/argp.h: Likewise
62395
62396 2006-09-10  Bruno Haible  <bruno@clisp.org>
62397
62398         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62399         m4/inttypes_h.m4, m4/uintmax_t.m4.
62400
62401 2006-09-10  Bruno Haible  <bruno@clisp.org>
62402
62403         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62404         gl_AC_TYPE_UINTMAX_T.
62405
62406 2006-09-10  Bruno Haible  <bruno@clisp.org>
62407
62408         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62409
62410 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62411
62412         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62413         convention.  Text proposed by Bruno Haible.
62414         (struct argp_option): Document the use of N_() wrappers.
62415
62416         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62417         '\v', and translate the two parts separately, instead of feeding
62418         the whole string to gettext.  This allows to exclude
62419         '\v' from the strings visible to the translator by writing doc
62420         strings as N_("..") "\v" N_("..").
62421
62422 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62423
62424         * config/srclist.txt: Undo latest change; the bug was fixed.
62425
62426 2006-09-09  Bruno Haible  <bruno@clisp.org>
62427
62428         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62429         assignments if building a library without libtool.
62430         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62431         in func_emit_lib_Makefile_am.
62432         (func_import): When building a static library libfoo.a, arrange to
62433         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62434         (func_create_testdir): Likewise.
62435         * modules/gc (configure.ac, Makefile.am): If building statically,
62436         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62437         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62438         * modules/striconv (configure.ac, Makefile.am): Likewise.
62439         Based on a suggestion by Ralf Wildenhues.
62440
62441 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62442
62443         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62444         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62445         Also:
62446
62447         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62448         Add year_2050_test to catch glibc bug 2821
62449         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62450
62451         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62452         Prefer #ifdef to #if.
62453
62454         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
62455         Return from 'main' instead of calling 'exit'.
62456
62457 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62458
62459         * lib/mktime.c (guess_time_tm): Fix bug where mktime
62460         returned the maximum time_t value rather than (time_t) -1.
62461         Problem originally reported by William Bardwell
62462         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62463
62464         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62465         Moved to here ...
62466         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62467         ... from here.
62468
62469 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62470
62471         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62472         2821 is fixed.
62473
62474 2006-09-08  Jim Meyering  <jim@meyering.net>
62475
62476         Don't make generated files read-only.  That would bother too many
62477         people.  However, do retain the ability to work when targets are
62478         read-only: remove the destination and temporary files before writing
62479         them (when generated via sed or echo), or by using the -f option for
62480         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62481         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62482         * modules/byteswap, modules/configmake, modules/fcntl:
62483         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62484         * modules/localcharset, modules/netinet_in, modules/poll:
62485         * modules/stdbool, modules/stdint, modules/sys_select:
62486         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62487
62488 2006-09-08  Jim Meyering  <jim@meyering.net>
62489
62490         Avoid new build failure on FreeBSD 6.0.
62491         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62492         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62493         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62494
62495 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62496
62497         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62498
62499 2006-09-07  Jim Meyering  <jim@meyering.net>
62500
62501         Fix global typo in last change: use chmod u-w, not chmod u-x.
62502         Spotted by Paul Eggert and Bruce Korb.
62503         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62504         * modules/byteswap, modules/configmake, modules/fcntl:
62505         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62506         * modules/localcharset, modules/netinet_in, modules/poll:
62507         * modules/stdbool, modules/stdint, modules/sys_select:
62508         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62509
62510 2006-09-06  Jim Meyering  <jim@meyering.net>
62511
62512         Make generated files be read-only.
62513         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62514         Ensure that each generated file is now read-only.
62515         * modules/argz: Likewise.
62516         * modules/arpa_inet: Likewise.
62517         * modules/byteswap: Likewise.
62518         * modules/configmake: Likewise.
62519         * modules/fcntl: Likewise.
62520         * modules/fnmatch: Likewise.
62521         * modules/getopt: Likewise.
62522         * modules/glob: Likewise.
62523         * modules/inttypes: Likewise.
62524         * modules/netinet_in: Likewise.
62525         * modules/poll: Likewise.
62526         * modules/stdbool: Likewise.
62527         * modules/stdint: Likewise.
62528         * modules/sys_select: Likewise.
62529         * modules/sys_socket: Likewise.
62530         * modules/sys_stat: Likewise.
62531         * modules/sysexits: Likewise.
62532         * modules/localcharset: Same as above, but continue using temporary
62533         file named "t-$@" (why different?) rather than the "$@-t" used
62534         everywhere else.
62535
62536         * modules/sysexits (Makefile.am): Replace literal occurrences
62537         of "sysexit.h" more readable, and more consistent, "$@".
62538
62539 2006-09-06  Bruno Haible  <bruno@clisp.org>
62540
62541         * modules/striconv: New file.
62542         * modules/xstriconv: New file.
62543         * MODULES.html.sh (Internationalization functions): Add striconv,
62544         xstriconv.
62545
62546 2006-09-06  Bruno Haible  <bruno@clisp.org>
62547
62548         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
62549         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
62550         not using libtool correctly.
62551
62552 2006-09-06  Bruno Haible  <bruno@clisp.org>
62553
62554         * lib/striconv.h: New file.
62555         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
62556         iconvstring.c.
62557         * lib/xstriconv.h: New file.
62558         * lib/xstriconv.c: New file.
62559
62560 2006-09-06  Bruno Haible  <bruno@clisp.org>
62561
62562         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62563         lib_..._LDFLAGS.
62564
62565 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62566
62567         * lib/argz_.h: Sync from Libtool.
62568
62569         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
62570                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62571
62572         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
62573
62574 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62575
62576         * modules/trim: New file.
62577
62578 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62579
62580         * lib/trim.h: New file.
62581         * lib/trim.c: New file.
62582
62583 2006-09-05  Bruno Haible  <bruno@clisp.org>
62584
62585         * MODULES.html.sh (String handling): Add trim.
62586
62587 2006-09-04  Karl Berry  <karl@gnu.org>
62588
62589         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
62590         until next release.
62591
62592 2006-09-03  Bruno Haible  <bruno@clisp.org>
62593
62594         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
62595         correctly.
62596
62597 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62598
62599         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
62600         not gl_GETLOADAVG.  Omit unneeded semicolons.
62601         Problems reported by Ralf Wildenhues in
62602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62603         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
62604         at the end, which is the usual gnulib style.
62605
62606         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
62607         of doing all the work ourselves.
62608         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
62609         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
62610
62611 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62612
62613         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
62614         Problem reported by Ralf Wildenhues in
62615         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62616
62617         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
62618         HAVE_STRUCT_STATFS_F_FSTYPENAME.
62619
62620 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62621
62622         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
62623         yesterday's patch by changing test -n to test -z.
62624
62625 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62626
62627         * modules/getloadavg (Files): Add m4/getloadavg.m4.
62628         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
62629         the former is now obsolescent.
62630
62631         * modules/chdir-long (Depends-on): Add fcntl.
62632
62633 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62634
62635         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
62636         obsolescent, and programs should use gnulib instead.
62637         * m4/getloadavg.m4: New file, with contents taken from Autoconf
62638         but with prefixes changed.
62639
62640 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62641
62642         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
62643         or stdbool.h, because they might not exist while configuring.
62644
62645         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
62646         Don't include unistd.h or limits.h; not needed, since chdir-long.h
62647         does that for us.
62648         (O_DIRECTORY): Remove.
62649
62650 2006-08-31  Eric Blake  <ebb9@byu.net>
62651
62652         * gnulib-tool: Don't let emacs change spaces to TAB.
62653
62654 2006-08-31  Bruno Haible  <bruno@clisp.org>
62655
62656         * gnulib-tool: When calling func_import more than once, do it in a
62657         subshell.
62658         Reported by Eric Blake <ebb9@byu.net>.
62659
62660 2006-08-31  Bruno Haible  <bruno@clisp.org>
62661
62662         * gnulib-tool (nl): Remove variable.
62663         (sed_transform_lib_file): Use more robust test for config-h module.
62664         (func_import): Fix typo in 2006-08-25 patch.
62665
62666 2006-08-31  Bruno Haible  <bruno@clisp.org>
62667
62668         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
62669         specified, augment Makefile.am variables instead of assigning them.
62670
62671 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62672
62673         Work around a bug in both the Linux and SunOS 64-bit kernels:
62674         nanosleep mishandles sleeps for longer than 2**31 seconds.
62675         Problem reported by Frank v Waveren in
62676         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
62678         Check for nanosleep bug.
62679         (LIB_NANOSLEEP): Append clock_gettime library if needed.
62680
62681 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62682
62683         Work around a bug in both the Linux and SunOS 64-bit kernels:
62684         nanosleep mishandles sleeps for longer than 2**31 seconds.
62685         Problem reported by Frank v Waveren in
62686         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62687         * lib/nanosleep.c (BILLION): New constant.
62688         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
62689         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
62690         implementation.
62691
62692 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62693
62694         * modules/nanosleep (Depends-on): Add gettime.
62695
62696 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62697         and Simon Josefsson  <jas@extundo.com>
62698         and Oskar Liljeblad  <oskar@osk.mine.nu>
62699
62700         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
62701         * gnulib-tool (func_import): New license type 'unmodifiable license
62702         text'.
62703         * modules/fdl: Use it.  Longer description.
62704         * module/gpl, module/lgpl: New files.
62705
62706 2006-08-30  Jim Meyering  <jim@meyering.net>
62707
62708         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
62709         shadowing the parameter.
62710
62711 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62712
62713         Sync from Libtool:
62714
62715         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62716
62717         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
62718         sharing with gnulib.  Report by Eric Blake.
62719
62720 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62721
62722         * modules/isapipe: New file.
62723         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
62724
62725 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62726
62727         * modules/configmake (Makefile.am): Add a comment, and omit
62728         the CONFIGMAKE_ prefix from generated macro names.  Suggested
62729         by Bruno Haible.
62730
62731 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62732
62733         * m4/isapipe.m4: New file.
62734
62735 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62736
62737         * lib/isapipe.c, lib/isapipe.h: New files.
62738
62739 2006-08-29  Jim Meyering  <jim@meyering.net>
62740
62741         * modules/configmake (Makefile.am): Make configmake.h depend on
62742         Makefile.  Otherwise, a stale configmake.h could hang around.
62743
62744 2006-08-29  Eric Blake  <ebb9@byu.net>
62745
62746         * lib/error.c (error_at_line, print_errno_message): Match libc, after
62747         resolution of upstream bug 3044.
62748
62749 2006-08-29  Bruno Haible  <bruno@clisp.org>
62750
62751         * modules/localcharset (Depends-on): Add configmake.
62752         (Makefile.am): Remove setting of LIBDIR through DEFS.
62753
62754 2006-08-29  Bruno Haible  <bruno@clisp.org>
62755
62756         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
62757         defined.
62758
62759 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62760
62761         * modules/fcntl: New file.
62762         * modules/chdir-safer (Depends-on): Add fcntl.
62763         * modules/fts: Likewise.
62764         * modules/mkdir-p: Likewise.
62765
62766         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
62767         This undoes the most recent change, since we're now addressing the
62768         problem in a different way.
62769
62770         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
62771         into output, since the output might be called Makefile.am even
62772         if $makefile_name is something different.
62773         (func_import): Use $makefile_am rather than
62774         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
62775         empty.
62776
62777         * modules/inttypes (Files): Add m4/inttypes-h.m4.
62778
62779 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62780
62781         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
62782         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
62783         recent change to stdint.m4, since we're now addressing the problem in a
62784         different way.
62785
62786 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62787
62788         * m4/fcntl_h.m4: New file.
62789
62790 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62791
62792         * lib/fcntl_.h: New file.
62793         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
62794         the fcntl module.
62795         * lib/dirchownmod.c: Likewise.
62796         * lib/fts.c: Likewise.
62797
62798         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
62799         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
62800         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
62801         just before including <inttypes.h>, to avoid circular inclusion.
62802
62803 2006-08-28  Jim Meyering  <jim@meyering.net>
62804
62805         * doc/visibility.texi: Actually read and correct the grammar of the
62806         sentence affected by yesterday's change.
62807
62808 2006-08-28  Eric Blake  <ebb9@byu.net>
62809
62810         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
62811         needs wrapper.
62812
62813 2006-08-28  Eric Blake  <ebb9@byu.net>
62814
62815         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
62816
62817 2006-08-28  Eric Blake  <ebb9@byu.net>
62818
62819         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
62820
62821 2006-08-28  Bruno Haible  <bruno@clisp.org>
62822
62823         * modules/c-strstr: New file, from GNU gettext.
62824         * MODULES.html.sh (String handling): Add c-strstr.
62825
62826 2006-08-28  Bruno Haible  <bruno@clisp.org>
62827
62828         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
62829         macros.
62830         Reported by Eric Blake.
62831
62832 2006-08-28  Bruno Haible  <bruno@clisp.org>
62833
62834         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
62835         (VASNPRINTF): Return a string of length > INT_MAX without failing.
62836         * lib/vasprintf.c: Include errno.h, limits.h.
62837         (EOVERFLOW): New fallback definition.
62838         (vasprintf): Test here whether the string length is > INT_MAX.
62839         * lib/vsnprintf.c: Include errno.h, limits.h.
62840         (EOVERFLOW): New fallback definition.
62841         (vsnprintf): Fix bug when generated string was too long for the buffer.
62842         Test here whether the string length is > INT_MAX.
62843
62844 2006-08-28  Bruno Haible  <bruno@clisp.org>
62845
62846         * lib/inttypes_.h (SCNX*): Remove definitions.
62847         Reported by Eric Blake.
62848
62849 2006-08-28  Bruno Haible  <bruno@clisp.org>
62850
62851         * lib/c-strstr.h: New file, from GNU gettext.
62852         * lib/c-strstr.c: New file, from GNU gettext.
62853
62854 2006-08-28  Bruno Haible  <bruno@clisp.org>
62855
62856         * gnulib-tool: Reorder some statements.
62857
62858 2006-08-28  Bruno Haible  <bruno@clisp.org>
62859
62860         * gnulib-tool: New option --makefile-name.
62861         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
62862         $makefile_name.
62863         (func_import): Write $makefile_name to the cache file, and read it from
62864         there unless explicitly specified. Use $makefile_name as file name
62865         instead of Makefile.am. Adjust the recommendations accordingly.
62866
62867 2006-08-28  Bruno Haible  <bruno@clisp.org>
62868
62869         * gnulib-tool (func_verify_module): Check against misapplying patch.
62870
62871 2006-08-28  Bruno Haible  <bruno@clisp.org>
62872
62873         * gnulib-tool (func_relativize, func_relconcat): New functions.
62874         Give an error if --local-dir is given with --update.
62875         Remove trailing slashes from $local_gnulib_dir.
62876         (func_import): Store the relativized $local_gnulib_dir in
62877         gnulib-cache.m4, and read it from there if not specified explicitly.
62878
62879 2006-08-28  Bruno Haible  <bruno@clisp.org>
62880
62881         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
62882         is the current directory. Respect also $local_gnulib_dir.
62883
62884 2006-08-28  Bruno Haible  <bruno@clisp.org>
62885             Simon Josefsson  <jas@extundo.com>
62886
62887         BeOS portability.
62888         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
62889
62890 2006-08-27  Jim Meyering  <jim@meyering.net>
62891
62892         * doc/visibility.texi: Remove duplicate word: "pointer".
62893
62894 2006-08-26  Bruno Haible  <bruno@clisp.org>
62895
62896         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
62897         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
62898         (Makefile.am): Create inttypes.h from inttypes_.h.
62899         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
62900
62901         * modules/imaxabs: New file.
62902
62903         * modules/imaxdiv: New file.
62904
62905 2006-08-26  Bruno Haible  <bruno@clisp.org>
62906
62907         * m4/inttypes.m4: New file.
62908         * m4/_inttypes_h.m4: Remove file.
62909         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
62910         PRI_MACROS_BROKEN.
62911         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
62912
62913         * m4/imaxabs.m4: New file.
62914
62915         * m4/imaxdiv.m4: New file.
62916
62917 2006-08-26  Bruno Haible  <bruno@clisp.org>
62918
62919         * lib/inttypes_.h: New file.
62920         * lib/inttypes.h: Remove file.
62921         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
62922
62923         * lib/imaxabs.c: New file.
62924
62925         * lib/imaxdiv.c: New file.
62926
62927 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62928
62929         New config-h module, so that "make" output needn't be cluttered
62930         by -DHAVE_CONFIG_H.
62931         * MODULES.html.sh (Support for building libraries and executables):
62932         Add config-h.
62933         * modules/config-h: New file.
62934         * gnulib-tool (nl, sed_transform_lib_file): New vars.
62935         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
62936         the config-h module is used.
62937
62938         New configmake module, so that "make" output needn't be cluttered
62939         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
62940         * MODULES.html.sh (Support for building libraries and executables):
62941         Add configmake.
62942         * modules/configmake: New file.
62943
62944 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62945
62946         * m4/config-h.m4: New file.
62947
62948 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62949
62950         * config/srclist.txt: Add elisp-comp.
62951
62952 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62953
62954         * MODULES.html.sh (Support for building libraries and executables):
62955         Add elisp-comp.
62956         * build-aux/elisp-comp: New file.
62957         * modules/elisp-comp: New file.
62958
62959 2006-08-24  Bruno Haible  <bruno@clisp.org>
62960
62961         * gnulib-tool (func_create_testdir): Use non-default values of
62962         sourcebase and m4base.
62963
62964 2006-08-24  Bruno Haible  <bruno@clisp.org>
62965
62966         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
62967         HTML structure.
62968
62969 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62970
62971         * modules/openat (Depends-on): Add lchown.
62972
62973 2006-08-23  Bruno Haible  <bruno@clisp.org>
62974
62975         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
62976         of gl_LOCK_EARLY instead of gl_LOCK.
62977
62978 2006-08-23  Bruno Haible  <bruno@clisp.org>
62979
62980         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
62981         on OSF/1 to no.
62982         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
62983
62984 2006-08-23  Bruno Haible  <bruno@clisp.org>
62985
62986         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
62987         as unusable.
62988
62989         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
62990         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
62991         (gl_LOCK): New macro.
62992
62993 2006-08-22  Simon Josefsson  <jas@extundo.com>
62994
62995         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
62996         to md5 module.
62997
62998 2006-08-22  Simon Josefsson  <jas@extundo.com>
62999
63000         * MODULES.html.sh: Add "Support for maintaining and release
63001         projects".
63002
63003         * build-aux/gnupload: New file, from coreutils.
63004
63005 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63006
63007         Avoid the need for AC_LIBSOURCES in m4 macros.
63008         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63009         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63010         * modules/check-version (EXTRA_DIST): Add check-version.h.
63011         * modules/crc (EXTRA_DIST): Add crc.h.
63012         * modules/des (EXTRA_DIST): Add des.h.
63013         * modules/gc (EXTRA_DIST): Add gc.h.
63014         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63015         * modules/getline (EXTRA_DIST): Add getline.h.
63016         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63017         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63018         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63019         * modules/md2 (EXTRA_DIST): Add md2.h.
63020         * modules/md4 (EXTRA_DIST): Add md4.h.
63021         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63022         * modules/read-file (EXTRA_DIST): Add read-file.h.
63023         * modules/readline (EXTRA_DIST): Add readline.h.
63024         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63025         rijndael-api-fst.h.
63026
63027 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63028
63029         * m4/rijndael.m4 (gl_ARCFOUR):
63030         * m4/arctwo.m4 (gl_ARCTWO):
63031         * m4/check-version.m4 (gl_CHECK_VERSION):
63032         * m4/crc.m4 (gl_CRC):
63033         * m4/des.m4 (gl_DES):
63034         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63035         * m4/gc.m4 (gl_GC):
63036         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63037         * m4/getline.m4 (gl_FUNC_GETLINE):
63038         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63039         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63040         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63041         * m4/md2.m4 (gl_MD2):
63042         * m4/md4.m4 (gl_MD4):
63043         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63044         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63045         * m4/readline.m4 (gl_FUNC_READLINE):
63046         * m4/rijndael.m4 (gl_RIJNDAEL):
63047         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63048         to get the necessary .h files and whatnot.
63049
63050 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63051
63052         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63053         gnulib rather than the other way around.
63054         * config/srclistvars.sh (COREUTILS): Remove.
63055
63056 2006-08-22  Jim Meyering  <jim@meyering.net>
63057
63058         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63059
63060         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63061
63062 2006-08-22  Eric Blake  <ebb9@byu.net>
63063
63064         * modules/regexprops-generic: New file.
63065         * MODULES.html.sh (Support for building documentation): List it.
63066
63067 2006-08-22  Eric Blake  <ebb9@byu.net>
63068
63069         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63070         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63071         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63072         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63073
63074 2006-08-22  Bruno Haible  <bruno@clisp.org>
63075
63076         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63077         and lib_LTLIBRARIES like the other lib_* variables.
63078
63079 2006-08-22  Bruno Haible  <bruno@clisp.org>
63080
63081         * build-aux/x-to-1.in: New file, from GNU gettext.
63082
63083 2006-08-22  Bruno Haible  <bruno@clisp.org>
63084
63085         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63086         <utmpx.h> exists.
63087
63088 2006-08-22  Bruno Haible  <bruno@clisp.org>
63089
63090         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63091         <utmpx.h> exists.
63092
63093 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63094
63095         BeOS portability.
63096         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63097         exist.
63098         Problem reported by Bruno Haible.
63099
63100 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63101
63102         Avoid the need for AC_LIBSOURCES in m4 macros.
63103         * modules/acl (EXTRA_DIST): Add acl.h.
63104         * modules/argmatch (Files): Add m4/argmatch.m4.
63105         (configure.ac): Add gl_ARGMATCH.
63106         (EXTRA_DIST): Renamed from lib_SOURCES, for
63107         consistency with the other modules.  Remove argmatch.c.
63108         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63109         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63110         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63111         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63112         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63113         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63114         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63115         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63116         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63117         * modules/closeout (EXTRA_DIST): Add closeout.h.
63118         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63119         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63120         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63121         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63122         dirname.h; remove basename.c and stripslash.c.
63123         * modules/exclude (EXTRA_DIST): Add exclude.h.
63124         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63125         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63126         * modules/file-type (EXTRA_DIST): Add file-type.h.
63127         * modules/filemode (EXTRA_DIST): Add filemode.h.
63128         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63129         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63130         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63131         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63132         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63133         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63134         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63135         * modules/getdate (EXTRA_DIST): Add getdate.c.
63136         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63137         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63138         * modules/getpass (EXTRA_DIST): Add getpass.h.
63139         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63140         * modules/group-member (EXTRA_DIST): Add group-member.h.
63141         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63142         * modules/hash (EXTRA_DIST): Add hash.h.
63143         * modules/human (EXTRA_DIST): Add human.h.
63144         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63145         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63146         * modules/lchown (EXTRA_DIST): Add lchown.h.
63147         * modules/long-options (EXTRA_DIST): Add long-options.h.
63148         * modules/lstat (EXTRA_DIST): Add lstat.h.
63149         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63150         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63151         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63152         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63153         * modules/memxor (EXTRA_DIST): Add memxor.h.
63154         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63155         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63156         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63157         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63158         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63159         * modules/physmem (EXTRA_DIST): Add physmem.h.
63160         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63161         * modules/posixver (EXTRA_DIST): Add posixver.h.
63162         * modules/quote (EXTRA_DIST): Add quote.h.
63163         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63164         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63165         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63166         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63167         regex_internal.h regexec.c.
63168         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63169         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63170         * modules/same (EXTRA_DIST): Add same.h.
63171         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63172         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63173         * modules/savedir (EXTRA_DIST): Add savedir.h.
63174         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63175         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63176         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63177         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63178         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63179         * modules/strdup (EXTRA_DIST): Add strdup.h.
63180         * modules/strftime (EXTRA_DIST): Add strftime.h.
63181         * modules/strndup (EXTRA_DIST): Add strndup.h.
63182         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63183         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63184         * modules/time_r (EXTRA_DIST): Add time_r.h.
63185         * modules/timespec (EXTRA_DIST): Add timespec.h.
63186         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63187         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63188         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63189         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63190         * modules/userspec (EXTRA_DIST): Add userspec.h.
63191         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63192         * modules/utimens (EXTRA_DIST): Add utimens.h.
63193         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63194         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63195         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63196         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63197         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63198         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63199         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63200         * modules/yesno (EXTRA_DIST): Add yesno.h.
63201
63202 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63203
63204         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63205
63206         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63207         * m4/dev-ino.m4, same-inode.m4: Remove.
63208
63209         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63210         * m4/acl.m4 (AC_FUNC_ACL):
63211         * m4/backupfile.m4 (gl_BACKUPFILE):
63212         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63213         * m4/canon-host.m4 (gl_CANON_HOST):
63214         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63215         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63216         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63217         * m4/cloexec.m4 (gl_CLOEXEC):
63218         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63219         * m4/closeout.m4 (gl_CLOSEOUT):
63220         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63221         * m4/dirname.m4 (gl_DIRNAME):
63222         * m4/exclude.m4 (gl_EXCLUDE):
63223         * m4/exitfail.m4 (gl_EXITFAIL):
63224         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63225         * m4/file-type.m4 (gl_FILE_TYPE):
63226         * m4/filemode.m4 (gl_FILEMODE):
63227         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63228         * m4/fpending.m4 (gl_FUNC_FPENDING):
63229         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63230         * m4/fts.m4 (gl_FUNC_FTS):
63231         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63232         * m4/getdate.m4 (gl_GETDATE):
63233         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63234         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63235         * m4/getpass.m4 (gl_FUNC_GETPASS):
63236         * m4/gettime.m4 (gl_GETTIME):
63237         * m4/getugroups.m4 (gl_GETUGROUPS):
63238         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63239         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63240         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63241         * m4/hash.m4 (gl_HASH):
63242         * m4/idcache.m4 (gl_IDCACHE):
63243         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63244         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63245         * m4/long-options.m4 (gl_LONG_OPTIONS):
63246         * m4/lstat.m4 (gl_FUNC_LSTAT):
63247         * m4/md5.m4 (gl_MD5):
63248         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63249         * m4/memcoll.m4 (gl_MEMCOLL):
63250         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63251         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63252         * m4/memxor.m4 (gl_MEMXOR):
63253         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63254         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63255         * m4/modechange.m4 (gl_MODECHANGE):
63256         * m4/mountlist.m4 (gl_MOUNTLIST):
63257         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63258         * m4/openat.m4 (gl_FUNC_OPENAT):
63259         * m4/pathmax.m4 (gl_PATHMAX):
63260         * m4/physmem.m4 (gl_PHYSMEM):
63261         * m4/posixtm.m4 (gl_POSIXTM):
63262         * m4/posixver.m4 (gl_POSIXVER):
63263         * m4/quote.m4 (gl_QUOTE):
63264         * m4/quotearg.m4 (gl_QUOTEARG):
63265         * m4/readtokens.m4 (gl_READTOKENS):
63266         * m4/readutmp.m4 (gl_READUTMP):
63267         * m4/regex.m4 (gl_REGEX):
63268         * m4/safe-read.m4 (gl_SAFE_READ):
63269         * m4/safe-write.m4 (gl_SAFE_WRITE):
63270         * m4/same.m4 (gl_SAME):
63271         * m4/save-cwd.m4 (gl_SAVE_CWD):
63272         * m4/savedir.m4 (gl_SAVEDIR):
63273         * m4/settime.m4 (gl_SETTIME):
63274         * m4/sha1.m4 (gl_SHA1):
63275         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63276         * m4/stat-macros.m4 (gl_STAT_MACROS):
63277         * m4/stat-time.m4 (gl_STAT_TIME):
63278         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63279         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63280         * m4/strdup.m4 (gl_FUNC_STRDUP):
63281         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63282         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63283         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63284         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63285         * m4/time_r.m4 (gl_TIME_R):
63286         * m4/timespec.m4 (gl_TIMESPEC):
63287         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63288         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63289         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63290         * m4/userspec.m4 (gl_USERSPEC):
63291         * m4/utimecmp.m4 (gl_UTIMECMP):
63292         * m4/utimens.m4 (gl_UTIMENS):
63293         * m4/xalloc.m4 (gl_XALLOC):
63294         * m4/xgetcwd.m4 (gl_XGETCWD):
63295         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63296         * m4/xreadlink.m4 (gl_XREADLINK):
63297         * m4/xstrtod.m4 (gl_XSTRTOD):
63298         * m4/yesno.m4 (gl_YESNO):
63299         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63300         to get the necessary .h files and whatnot.
63301
63302 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63303             Bruno Haible  <bruno@clisp.org>
63304
63305         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63306         /bin/sh understanding of '!' conditional negation.
63307
63308 2006-08-21  Jim Meyering  <jim@meyering.net>
63309
63310         * modules/openat (Depends-on): Really alphabetize.
63311
63312         * modules/acl (Depends-on): Add error and quote.
63313
63314         * check-module (find_included_lib_files): Add at-func.c to the
63315         ok-to-include-more-than-once white list.
63316
63317         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63318
63319 2006-08-21  Bruno Haible  <bruno@clisp.org>
63320
63321         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63322         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63323         Reported by Martin Lambers <marlam@marlam.de>.
63324
63325 2006-08-21  Bruno Haible  <bruno@clisp.org>
63326
63327         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63328         specify an installation location, don't emit a noinst_LIBRARIES or
63329         noinst_LTLIBRARIES assignment.
63330
63331 2006-08-21  Bruno Haible  <bruno@clisp.org>
63332
63333         BeOS portability.
63334         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63335         BeOS has mbrtowc() but no <wctype.h>.
63336
63337 2006-08-21  Bruno Haible  <bruno@clisp.org>
63338
63339         BeOS portability.
63340         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63341         exist.
63342
63343 2006-08-21  Bruno Haible  <bruno@clisp.org>
63344
63345         BeOS portability.
63346         * lib/mbchar.h: Include <wctype.h> only if it exists.
63347
63348 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63349
63350         Remove files that are no longer needed by their respective modules.
63351         * m4/obstack.m4: Remove.
63352         * m4/strerror_r.m4: Remove.
63353         * m4/uint32_t.m4: Remove.
63354         * m4/uintptr_t.m4: Remove.
63355         * m4/ullong_max.m4: Remove.
63356         * m4/xstrtoimax.m4: Remove.
63357         * m4/xstrtoumax.m4: Remove.
63358
63359         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63360         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63361         dependencies now capture this.
63362
63363         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63364         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63365         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63366         * m4/human.m4 (gl_HUMAN): Likewise.
63367         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63368         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63369
63370         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63371
63372         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63373         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63374         stdint.
63375         * m4/human.m4 (gl_HUMAN): Likewise.
63376         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63377         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63378         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63379         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63380         * m4/xstrtol (gl_XSTRTOL): Likewise.
63381
63382         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63383         AC_TYPE_LONG_LONG_INT.
63384         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63385         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63386         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63387         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63388
63389         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63390         on stdbool.
63391
63392         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63393         (gl_PREREQ_XSTRTOUL): Remove.
63394
63395         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63396
63397         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63398         mode.
63399
63400 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63401
63402         Add and change modules to make it easier for coreutils to use
63403         gnulib-tool.
63404         * modules/backupfile (Files): Remove m4/d-ino.m4.
63405         (Depends-on): Add d-ino.
63406         * modules/cycle-check (Depends-on): Add stdint.
63407         (lib_SOURCES): Add cycle-check.h.
63408         * modules/d-ino: New module.
63409         * modules/d-type: New module.
63410         * modules/error (Files): Remove m4/strerror_r.m4.
63411         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63412         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63413         m4/inttypes_h.m4, m4/uintmax_t.m4.
63414         (Depends-on): Add stdint.
63415         (lib_SOURCES): Add fsusage.h.
63416         * modules/getcwd (Files): Remove d-ino.m4.
63417         (Depends-on): Add d-ino.
63418         * modules/getndelim2 (Depends-on): Add stdint.
63419         * modules/glob (Files): Remove m4/d-type.m4.
63420         (Depends-on): Add d-type.
63421         * modules/host-os: New module.
63422         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63423         m4/inttypes_h.m4, m4/uintmax_t.m4.
63424         * Depends-on: Add stdint.
63425         (lib_SOURCES): Add human.h.
63426         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63427         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63428         m4/uintmax_t.m4, m4/ulonglong.m4.
63429         (Depends-on): Add stdint.
63430         (EXTRA_DIST): Add inttostr.h.
63431         * modules/lchmod: New module.
63432         * modules/link-follow: New module.
63433         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63434         (Depends-on): Add lchmod.
63435         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63436         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63437         (Depends-on): Add stdint.
63438         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63439         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63440         (Depends-on): Add stdint.
63441         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63442         * modules/perl: New module.
63443         * modules/regex (Depends-on): Add stdint.
63444         * modules/rmdir-errno: New module.
63445         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63446         m4/intmax_t.m4.
63447         (Depends-on): Add stdint.
63448         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63449         m4/uintmax_t.m4.
63450         (Depends-on): Add stdint.
63451         * modules/unlink-busy: New module.
63452         * modules/utimecmp (Depends-on): Add stdint.
63453         * modules/uptime: New module.
63454         * modules/winsz-ioctl: New module.
63455         * modules/winsz-termios: New module.
63456         * modules/xnanosleep (Depends-on): Add nanosleep.
63457         * modules/ullong_max: Remove.
63458         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
63459         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
63460         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
63461         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
63462         (Depends-on): Add inttypes.
63463         (lib_SOURCES): Add xstrtol.h.
63464         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
63465         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
63466         * MODULES.html.sh: Move 'assert' into the assert section.
63467         Move 'dummy' into the linking section.
63468         Remove ullong_max.
63469         Add section for compatibility checks for POSIX:2001 functions,
63470         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63471         winsz-ioctl, and winsz-termios into it.
63472         Add lchmod.
63473         Add top-level Misc section and put host-os, perl, and uptime
63474         into it.
63475
63476 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63477
63478         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63479         now assume the stdint module.  Do not include inttypes.h.
63480         * lib/fsusage.h: Likewise.
63481         * lib/getndelim2.c: Likewise.
63482         * lib/human.h: Likewise.
63483         * lib/inttostr.h: Likewise.
63484         * lib/obstack.c: Likewise.
63485         * lib/regex_internal.h: Likewise.
63486         * lib/tempname.c: Likewise.
63487         * lib/utimecmp.c: Likewise.
63488         * lib/xstrtol.h: Likewise.
63489
63490         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63491
63492         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63493         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63494         * lib/xtime.h: Likewise.
63495
63496 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63497
63498         * modules/openat (Files): Add lib/fchmodat.c.
63499         Fixes problem reported by Jay Youngman.
63500
63501 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63502
63503         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63504         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63505
63506 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63507             Bruno Haible  <bruno@clisp.org>
63508
63509         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63510         and is a script that invokes bison. Tighten the code. Add comments.
63511
63512 2006-08-18  Jim Meyering  <jim@meyering.net>
63513
63514         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63515         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63516         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63517         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63518
63519 2006-08-18  Bruno Haible  <bruno@clisp.org>
63520
63521         * modules/bison-i18n: New file.
63522         * MODULES.html.sh (Internationalization functions): Add it.
63523
63524 2006-08-18  Bruno Haible  <bruno@clisp.org>
63525
63526         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63527         sys/statvfs.h. When getmntinfo was found, check its declaration and
63528         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63529
63530 2006-08-18  Bruno Haible  <bruno@clisp.org>
63531
63532         * m4/bison-i18n.m4: New file, from bison.
63533
63534 2006-08-18  Bruno Haible  <bruno@clisp.org>
63535
63536         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
63537         (ME_DUMMY): Treat "kernfs" as a dummy.
63538         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
63539
63540 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63541
63542         Update from coreutils.
63543
63544         2006-08-15  Jim Meyering  <jim@meyering.net>
63545
63546         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
63547
63548         2006-01-17  Jim Meyering  <jim@meyering.net>
63549
63550         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
63551
63552         2006-01-11  Jim Meyering  <jim@meyering.net>
63553
63554         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
63555         Check for the lchmod function.
63556
63557 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63558
63559         Update from coreutils.
63560
63561         * lib/__fpending.h: Add copyright notice.
63562         * lib/fprintftime.h: Likewise.
63563         * lib/savedir.c: Use (C) in copyright notice.
63564         * lib/savedir.h: Likewise.
63565
63566         2006-08-15  Jim Meyering  <jim@meyering.net>
63567
63568         * lib/at-func.c: New file, with the logic of all emulated at-functions.
63569         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
63570         in support of the EXPECTED_ERRNO macro.
63571         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
63572         definitions.  Instead, define the appropriate symbols and include
63573         "at-func.c".
63574         * lib/mkdirat.c (mkdirat): Likewise.
63575         * lib/fchmodat.c (fchmodat): Likewise.
63576         (ENOSYS): Remove definition.
63577         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
63578         it.  Don't include "unistd--.h" -- it wasn't ever used.
63579
63580         2006-01-17  Jim Meyering  <jim@meyering.net>
63581
63582         Rewrite fts.c not to change the current working directory,
63583         by using openat, fstatat, fdopendir, etc..
63584
63585         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
63586         (HAVE_OPENAT_SUPPORT): Define.
63587         [_LIBC] (fchdir): Don't undef or define; no longer used.
63588         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
63589         Now, this `function' always succeeds, and consumes its file descriptor
63590         parameter -- so callers must not close such FDs.  Update callers.
63591         (diropen_fd, opendirat, cwd_advance_fd): New functions.
63592         (diropen): Add parameter, SP.  Adjust all callers.
63593         Implement using diropen_fd, rather than open.
63594         (fts_open): Initialize new member, fts_cwd_fd.
63595         Remove fts_rft-setting code.
63596         (fts_close): Close fts_cwd_fd, if necessary.
63597         (__opendir2): Define in terms of opendir or opendirat,
63598         depending on whether the FST_NOCHDIR flag is set.
63599         (fts_build): Since fts_safe_changedir consumes its FD, and since
63600         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
63601         and close the dup'd file descriptor upon failure.
63602         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
63603         (fts_safe_changedir): Tweak semantics to reflect that this function
63604         now calls cwd_advance_fd and hence consumes its FD argument.
63605         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
63606         [struct FTS] (fts_rft): Remove now-unused member.
63607         [struct FTS] (fts_cycle.state): Improve comment.
63608
63609         * lib/openat.c (openat_needs_fchdir): New function.
63610         * lib/openat.h (openat_needs_fchdir): Declare it.
63611
63612 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63613
63614         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
63615         Problem and fix reported by Pádraig Brady in
63616         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
63617
63618 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63619
63620         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
63621
63622 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63623
63624         * lib/memcoll.c (memcoll): Optimize for the common case where the
63625         arguments are bytewise equal.
63626
63627 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63628
63629         * doc/regexprops-generic.texi: Add a copyright notice.
63630
63631 2006-08-15  Bruno Haible  <bruno@clisp.org>
63632
63633         * modules/tmpdir (License): Change to LGPL.
63634
63635 2006-08-15  Bruno Haible  <bruno@clisp.org>
63636
63637         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
63638         module.
63639
63640 2006-08-14  Simon Josefsson  <jas@extundo.com>
63641
63642         * config/srclist.txt: Add gnupload.
63643
63644 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63645
63646         Change copyright notice from LGPL 2 to GPL 2, since that's the
63647         standard form used in the gnulib repository.
63648         * tests/test-lock.c: Likewise.
63649         * tests/test-stdint.c: Likewise.
63650         * tests/test-tls.c: Likewise.
63651
63652         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
63653         prelude-manager.  User shorter URLs for GNU projects, without '?'.
63654         Add copyright notice.
63655
63656         * check-module: Add copyright notice.  Output a copyright
63657         notice if "--version" is specified.
63658         * modules/COPYING: New file.
63659         * tests/test-getaddrinfo.c: Add copyright notice.
63660         * tests/test-verify.c: Likewise.
63661
63662 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63663
63664         Change copyright notice from LGPL 2 to GPL 2, since that's the
63665         standard form used in the gnulib repository.
63666         * lib/lock.c: LGPL -> GPL.
63667         * lib/lock.h: Likewise.
63668         * lib/strnlen1.c: Likewise.
63669         * lib/strnlen1.h: Likewise.
63670         * lib/tls.c: Likewise.
63671         * lib/tls.h: Likewise.
63672         * lib/tmpdir.c: Likewise.
63673
63674         * lib/TODO: Remove; this belongs only in coreutils.
63675
63676 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63677
63678         Add copyright notices to long-enough files that lack them, since
63679         otherwise the files aren't clearly free.  Use the same notice that
63680         getdate.texi already uses.
63681         * doc/alloca-opt.texi: Add copyright notice.
63682         * doc/alloca.texi: Likewise.
63683         * doc/ctime.texi: Likewise.
63684         * doc/functions.texi: Likewise.
63685         * doc/gcd.texi: Likewise.
63686         * doc/gnulib-tool.texi: Likewise.
63687         * doc/inet_ntoa.texi: Likewise.
63688         * doc/visibility.texi: Likewise.
63689
63690         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
63691         * doc/quote.texi: Add copyright notice.
63692
63693         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
63694         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
63695         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
63696         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
63697         is now obsolete, and give a pointer to the Sun list.
63698         Add copyright notice.
63699
63700 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63701
63702         * config/srclistvars.sh: Add copyright notice.
63703
63704 2006-08-14  Eric Blake  <ebb9@byu.net>
63705
63706         Import the following change from libc:
63707
63708         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
63709
63710         Upstream bug 2997.
63711         * lib/misc/error.c: Add space between program name and message if file
63712         name is missing.
63713
63714 2006-08-12  Karl Berry  <karl@gnu.org>
63715
63716         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
63717         remove, these originate in gnulib now.
63718
63719 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63720
63721         * doc/Makefile (standards.info standards.html standards.dvi):
63722         Also depend on make-stds.texi.
63723
63724 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63725
63726         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
63727         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
63728
63729         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
63730         in wchar_t.  Problem reported by Eric Blake.
63731
63732         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
63733         LEN is smaller than SIZE.  Suggested by Bruno Haible.
63734         Also, help the compiler to keep LEN in a register.
63735
63736 2006-08-11  Eric Blake  <ebb9@byu.net>
63737
63738         * users.txt: Sort.  Add tar.
63739
63740 2006-08-11  Bruno Haible  <bruno@clisp.org>
63741
63742         * users.txt: New file.
63743
63744 2006-08-11  Bruno Haible  <bruno@clisp.org>
63745
63746         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
63747         before <wchar.h>. Needed for OSF/1 and BSD/OS.
63748
63749 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63750
63751         * modules/snprintf (Depends-on): Remove minmax.
63752         (Maintainer): Add self and Bruno.
63753
63754 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63755
63756         * lib/.cppi-disable: Add snprintf.h, socket_.h.
63757         * lib/snprintf.c: Include <errno.h> and <limits.h>.
63758         (EOVERFLOW): Define if the system does not.
63759         Do not include "minmax.h"; it wasn't used.
63760         (snprintf): Don't assume size_t promotes to an unsigned type.
63761         Fix bug when generated string was too long for the buffer: the
63762         buffer's contents are supposed to be the initial prefix of the
63763         output.  Don't assume vasnprintf returns EOVERFLOW if the size
63764         exceeds INT_MAX; do the check ourselves.
63765
63766         Import the following changes from libc:
63767
63768         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
63769
63770         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
63771         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
63772         set wc to the byte which couldn't be converted.
63773         (re_string_reconstruct): Don't clear valid_raw_len before calling
63774         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
63775         tip_context using re_string_context_at.
63776
63777         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
63778
63779         * lib/posix/regex.h: g++ still cannot handled [restrict].
63780
63781         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
63782
63783         * lib/posix/regex.h: Remove special handling for VMS.
63784
63785 2006-08-10  Jim Meyering  <jim@meyering.net>
63786
63787         * modules/same-inode: New module.
63788         * modules/dev-ino: New module.
63789         * modules/cycle-check: Depend on these modules, rather than simply
63790         including their .h files.
63791         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
63792         required via m4/cycle-check.m4.
63793         * modules/same: Depend on new same-inode module, rather than
63794         including same-inode.h.
63795         * modules/chdir-safer: New file.
63796
63797         * modules/chown (Depends-on): Add stat-macros.
63798
63799 2006-08-10  Jim Meyering  <jim@meyering.net>
63800
63801         * m4/cycle-check.m4: New file.
63802         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
63803         * m4/dev-ino.m4, m4/same-inode.m4: New files.
63804
63805 2006-08-10  Eric Blake  <ebb9@byu.net>
63806
63807         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
63808         in from original proposal.
63809
63810 2006-08-10  Eric Blake  <ebb9@byu.net>
63811         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63812
63813         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
63814         namespace.
63815
63816 2006-08-10  Bruno Haible  <bruno@clisp.org>
63817
63818         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
63819         as well.
63820
63821 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63822
63823         Sync from coreutils.
63824
63825         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
63826
63827         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
63828         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
63829
63830 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63831
63832         * modules/restrict: Remove; no longer needed now that we assume
63833         Autoconf 2.59 or later.
63834         * MODULES.html.sh: Remove 'restrict'.
63835         * modules/argp (Depends-on): Remove 'restrict'.
63836         * modules/base64 (Depends-on): Likewise.
63837         * modules/gc (Depends-on): Likewise.
63838         * modules/getaddrinfo (Depends-on): Likewise.
63839         * modules/glob (Depends-on): Likewise.
63840         * modules/inet_ntop (Depends-on): Likewise.
63841         * modules/inet_pton (Depends-on): Likewise.
63842         * modules/memxor (Depends-on): Likewise.
63843         * modules/regex (Depends-on): Likewise.
63844         * modules/strtok_r (Depends-on): Likewise.
63845         * modules/time_r (Depends-on): Likewise.
63846
63847 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63848
63849         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
63850         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
63851         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63852         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
63853         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
63854         * m4/memxor.m4 (gl_MEMXOR): Likewise.
63855         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
63856         gl_C_RESTRICT replaced by AC_C_RESTRICT.
63857
63858         Merge from coreutils.
63859         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
63860         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
63861         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63862         * m4/time_r.m4 (gl_TIME_R): Likewise.
63863
63864 2006-08-09  Karl Berry  <karl@gnu.org>
63865
63866         * config/srclist.txt: no more gettext-tools, per Bruno.
63867
63868 2006-08-08  Eric Blake  <ebb9@byu.net>
63869
63870         * modules/verror: New module.
63871         * MODULES.html.sh: Document it.
63872
63873 2006-08-08  Eric Blake  <ebb9@byu.net>
63874
63875         * lib/verror.h, lib/verror.c: New files.
63876
63877 2006-08-08  Eric Blake  <ebb9@byu.net>
63878
63879         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
63880         verror_at_line output complies with GNU Coding Standards even when
63881         file is NULL.
63882
63883 2006-08-07  Bruno Haible  <bruno@clisp.org>
63884
63885         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
63886         versions of AIX.
63887         Reported by Ralf Wildenhues.
63888
63889 2006-08-07  Bruno Haible  <bruno@clisp.org>
63890
63891         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
63892         in an AC_DEFUN. Needed so that the autoconf snippets can use
63893         AC_REQUIRE.
63894
63895 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63896
63897         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63898         Initialize pkgdata_DATA.
63899         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
63900         overriding it.
63901
63902 2006-08-06  Eric Blake  <ebb9@byu.net>
63903
63904         * lib/error.h: Fold in some upstream changes from glibc.
63905         * lib/error.c: Likewise.
63906
63907 2006-08-04  Bruno Haible  <bruno@clisp.org>
63908
63909         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63910         Make the mostlyclean-local rule depend on mostlyclean-generic.
63911         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
63912
63913 2006-07-31  Bruno Haible  <bruno@clisp.org>
63914
63915         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
63916         <stdlib.h>, <string.h>.
63917
63918 2006-07-30  Bruno Haible  <bruno@clisp.org>
63919
63920         * modules/readlink (License): Change to LGPL.
63921
63922 2006-07-30  Bruno Haible  <bruno@clisp.org>
63923
63924         * modules/javaversion (Makefile.am): Distribute javaversion.java and
63925         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
63926         set PKGDATADIR to point to it.
63927
63928 2006-07-30  Bruno Haible  <bruno@clisp.org>
63929
63930         * modules/csharpexec (configure.ac): Comment out macro invocation.
63931         * modules/javaexec (configure.ac): Likewise.
63932         * modules/javacomp-script (configure.ac): Likewise.
63933
63934         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
63935
63936 2006-07-30  Bruno Haible  <bruno@clisp.org>
63937
63938         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
63939         linked-list.
63940
63941 2006-07-30  Bruno Haible  <bruno@clisp.org>
63942
63943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
63944
63945 2006-07-30  Bruno Haible  <bruno@clisp.org>
63946
63947         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63948         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
63949         get removed.
63950
63951 2006-07-29  Bruno Haible  <bruno@clisp.org>
63952
63953         Make it possible for gnulib-tool to work with locally modified or
63954         augmented gnulib repositories.
63955         * gnulib-tool (func_usage): Document --local-dir option.
63956         (local_gnulib_dir): New variable.
63957         Handle --local-dir option.
63958         (func_lookup_file): New function.
63959         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
63960         (func_get_description, func_get_filelist, func_get_description,
63961         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
63962         func_get_automake_snippet, func_get_include_directive,
63963         func_get_license, func_get_maintainer): Use func_lookup_file.
63964         (func_import, func_create_testdir): Use func_lookup_file.
63965
63966 2006-07-29  Bruno Haible  <bruno@clisp.org>
63967
63968         * modules/setenv (Depends-on): Add unistd.
63969
63970 2006-07-29  Bruno Haible  <bruno@clisp.org>
63971
63972         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
63973
63974 2006-07-29  Bruno Haible  <bruno@clisp.org>
63975
63976         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
63977
63978 2006-07-29  Bruno Haible  <bruno@clisp.org>
63979
63980         * gnulib-tool (import, update): If there is no Makefile.am, look at
63981         aclocal.m4, instead of bailing out.
63982
63983 2006-07-29  Bruno Haible  <bruno@clisp.org>
63984
63985         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
63986         Categorize the options by when they are useful.
63987
63988 2006-07-29  Bruno Haible  <bruno@clisp.org>
63989
63990         * gnulib-tool (func_usage): Document option --no-libtool.
63991         Handle option --no-libtool.
63992         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
63993         for changed semantics of $libtool variable.
63994         (func_import): Likewise. If libtool is not used, show this through
63995         an option --no-libtool.
63996         (func_create_testdir): Update.
63997
63998 2006-07-29  Bruno Haible  <bruno@clisp.org>
63999
64000         * gnulib-tool (func_import): Extend error message about missing
64001         --doc-base.
64002
64003 2006-07-29  Bruno Haible  <bruno@clisp.org>
64004
64005         * gnulib-tool (func_import): Don't create the $docbase directory if
64006         there is no file to store there.
64007
64008 2006-07-29  Bruno Haible  <bruno@clisp.org>
64009
64010         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64011         relevant, look for configure.ac there, not in the current directory.
64012         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64013
64014 2006-07-29  Bruno Haible  <bruno@clisp.org>
64015
64016         * gnulib-tool (SORT): New variable.
64017         (func_usage): Undocument --assume-autoconf option.
64018         Remove --assume-autoconf option handling.
64019         (autoconf_minversion): Determine from the contents of configure.ac.
64020         (func_import): Remove autoconf_minversion handling.
64021         Suggested by Eric Blake.
64022
64023 2006-07-29  Bruno Haible  <bruno@clisp.org>
64024
64025         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64026
64027 2006-07-29  Bruno Haible  <bruno@clisp.org>
64028
64029         * config/srclist.txt (*setenv.[ch]): Remove rules.
64030
64031 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64032
64033         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64034
64035 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64036
64037         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64038         arpa/inet.h.
64039
64040 2006-07-28  Simon Josefsson  <jas@extundo.com>
64041
64042         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64043         * modules/inet_pton (Depends-on): Likewise.
64044
64045 2006-07-28  Simon Josefsson  <jas@extundo.com>
64046
64047         * m4/netinet_in_h.m4: New file.
64048
64049 2006-07-28  Simon Josefsson  <jas@extundo.com>
64050
64051         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64052         #include's.
64053
64054 2006-07-28  Simon Josefsson  <jas@extundo.com>
64055
64056         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64057         #include's.
64058
64059 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64060
64061         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64062         setgid on directories only if they set these bits.
64063         * lib/modechange.h: Remove obsolete comment about masks.
64064
64065 2006-07-28  Eric Blake  <ebb9@byu.net>
64066
64067         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64068         macro expansion.
64069
64070 2006-07-28  Bruno Haible  <bruno@clisp.org>
64071
64072         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64073
64074 2006-07-28  Bruno Haible  <bruno@clisp.org>
64075
64076         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64077
64078 2006-07-28  Bruno Haible  <bruno@clisp.org>
64079
64080         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64081         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64082         Define fallbacks.
64083         Avoids link error on FreeBSD 4.x.
64084         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64085
64086         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64087         encoding.
64088         * lib/mbswidth.c (iswcntrl): Likewise.
64089
64090 2006-07-27  Bruno Haible  <bruno@clisp.org>
64091
64092         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64093         test.
64094
64095 2006-07-27  Bruno Haible  <bruno@clisp.org>
64096
64097         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64098         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64099         defined.
64100
64101 2006-07-26  Eric Blake  <ebb9@byu.net>
64102
64103         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64104
64105 2006-07-26  Eric Blake  <ebb9@byu.net>
64106
64107         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64108         like mingw that lack mkstemp.
64109         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64110         avoid compilation warning on mingw.
64111
64112 2006-07-26  Bruno Haible  <bruno@clisp.org>
64113
64114         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64115         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64116         INT_FAST*_MIN, INTPTR_MIN.
64117
64118 2006-07-25  Bruno Haible  <bruno@clisp.org>
64119
64120         * modules/version-etc (Depends-on): Add stdarg.
64121
64122 2006-07-25  Bruno Haible  <bruno@clisp.org>
64123
64124         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64125         complex commands.
64126
64127 2006-07-25  Bruno Haible  <bruno@clisp.org>
64128
64129         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64130         defined in <stdarg.h> or config.h.
64131
64132 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64133
64134         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64135         (gl_STDIO_SAFER): Remove.
64136
64137 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64138
64139         * MODULES.html.sh (File stream based Input/Output):
64140         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64141         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64142         * modules/fopen-safer, modules/tmpfile-safer: New files.
64143         * modules/stdio-safer: Remove.
64144
64145 2006-07-24  Bruno Haible  <bruno@clisp.org>
64146
64147         * modules/tmpdir: New file.
64148         * MODULES.html.sh (File system functions): Add it.
64149
64150 2006-07-24  Bruno Haible  <bruno@clisp.org>
64151
64152         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64153         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64154
64155 2006-07-24  Bruno Haible  <bruno@clisp.org>
64156
64157         * modules/clean-temp: New file.
64158
64159 2006-07-24  Bruno Haible  <bruno@clisp.org>
64160
64161         * m4/tmpdir.m4: New file, from GNU gettext.
64162
64163 2006-07-24  Bruno Haible  <bruno@clisp.org>
64164
64165         * lib/tmpdir.h: New file, from GNU gettext.
64166         * lib/tmpdir.c: New file, from GNU gettext.
64167
64168 2006-07-24  Bruno Haible  <bruno@clisp.org>
64169
64170         * lib/clean-temp.h: New file, from GNU gettext.
64171         * lib/clean-temp.c: New file, from GNU gettext.
64172
64173 2006-07-23  Eric Blake  <ebb9@byu.net>
64174
64175         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64176         (Depends-on): Add binary-io.
64177
64178 2006-07-23  Eric Blake  <ebb9@byu.net>
64179
64180         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64181
64182 2006-07-23  Eric Blake  <ebb9@byu.net>
64183
64184         * lib/tmpfile-safer.c: New file.
64185         * lib/stdio-safer.h (fopen_safer): Add prototype.
64186         * lib/stdio--.h (tmpfile): Make safer.
64187
64188 2006-07-23  Bruno Haible  <bruno@clisp.org>
64189
64190         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64191         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64192         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64193         gl_linked_remove_at): Use it.
64194
64195 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64196         and Simon Josefsson <jas@extundo.com>
64197
64198         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64199
64200         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64201
64202 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64203
64204         * modules/close-stream: New file.
64205         * modules/closeout (Description): Make it clear that it exits
64206         with a diagnostic on error.
64207         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64208         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64209
64210 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64211
64212         * m4/close-stream.m4: New file.
64213
64214 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64215
64216         * lib/close-stream.c, lib/close-stream.h: New files.
64217
64218 2006-07-22  Bruno Haible  <bruno@clisp.org>
64219
64220         Merge from GNU gettext 0.15.
64221
64222         2006-05-01  Bruno Haible  <bruno@clisp.org>
64223
64224                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64225
64226         2006-07-22  Bruno Haible  <bruno@clisp.org>
64227
64228                 * modules/javaversion: New file.
64229                 * MODULES.html.sh (Java): Add javaversion.
64230
64231         2006-03-12  Bruno Haible  <bruno@clisp.org>
64232
64233                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64234
64235         2005-12-04  Bruno Haible  <bruno@clisp.org>
64236
64237                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64238                 (untested).
64239
64240         2006-06-21  Bruno Haible  <bruno@clisp.org>
64241
64242                 Avoid warnings from recent versions of mcs.
64243                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64244                 -o, -L, -r any more. Use options documented since mcs-1.0
64245                 instead. Similarly for -g.
64246
64247         2005-12-04  Bruno Haible  <bruno@clisp.org>
64248
64249                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64250                 .resources, not .resource.
64251
64252         2005-07-09  Bruno Haible  <bruno@clisp.org>
64253
64254                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64255                 add a .dll suffix.
64256                 Reported by Mark Junker <mjscod@gmx.de>.
64257
64258         2006-07-22  Bruno Haible  <bruno@clisp.org>
64259
64260                 * modules/gettext: Upgrade to gettext-0.15.
64261                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64262                 m4/visibility.m4.
64263                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64264
64265 2006-07-22  Bruno Haible  <bruno@clisp.org>
64266
64267         Merge from GNU gettext 0.15.
64268
64269         2006-03-25  Bruno Haible  <bruno@clisp.org>
64270
64271                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64272
64273         2006-07-21  Bruno Haible  <bruno@clisp.org>
64274
64275                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64276                 "1.1".
64277
64278         2006-05-09  Bruno Haible  <bruno@clisp.org>
64279
64280                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64281                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64282                 for the conftestver execution.
64283
64284         2006-05-01  Bruno Haible  <bruno@clisp.org>
64285
64286                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64287                 optional target-version argument. Verify that the compiler
64288                 groks source of the specified source-version, or add -source
64289                 option as necessary. Verify that the compiler produces
64290                 bytecode in the specified target-version, or add -target and
64291                 -source options as necessary. Make the result of the test
64292                 available as variable CONF_JAVAC. Also log error output in
64293                 config.log.
64294
64295         2006-03-11  Bruno Haible  <bruno@clisp.org>
64296
64297                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64298
64299         2006-05-09  Bruno Haible  <bruno@clisp.org>
64300
64301                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64302                 CLASSPATH_SEPARATOR to a semicolon.
64303
64304         2006-03-12  Bruno Haible  <bruno@clisp.org>
64305
64306                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64307                 available as variable CONF_JAVA, for subsequent autoconf
64308                 tests. Also log error output in config.log.
64309
64310         2006-07-19  Bruno Haible  <bruno@clisp.org>
64311
64312                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64313                 that getline works on glibc2 systems. Needed to avoid trouble
64314                 in relocatable.c.
64315                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64316
64317         2005-12-04  Bruno Haible  <bruno@clisp.org>
64318
64319                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64320                 launcher (untested).
64321
64322         2005-12-04  Bruno Haible  <bruno@clisp.org>
64323
64324                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64325
64326         2006-07-22  Bruno Haible  <bruno@clisp.org>
64327
64328                 * gettext.m4: Update from GNU gettext-0.15.
64329                 * nls.m4: Likewise.
64330                 * po.m4: Likewise.
64331                 * inttypes-pri.m4: Likewise.
64332                 * inttypes-h.m4: Renamed from inttypes.m4.
64333                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64334
64335 2006-07-22  Bruno Haible  <bruno@clisp.org>
64336
64337         Merge from GNU gettext 0.15.
64338
64339         2005-07-05  Bruno Haible  <bruno@clisp.org>
64340
64341                 * printf-args.c (printf_fetchargs): Work around broken
64342                 definition of wint_t on mingw.
64343
64344         2005-02-12  Bruno Haible  <bruno@clisp.org>
64345
64346                 * xallocsa.h: Add extern "C" for C++.
64347
64348         2006-05-17  Bruno Haible  <bruno@clisp.org>
64349
64350                 Cygwin portability.
64351                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64352
64353         2006-04-30  Bruno Haible  <bruno@clisp.org>
64354
64355                 * progreloc.c: Include <mach-o/dyld.h> if available.
64356                 (find_executable): Use _NSGetExecutablePath when possible.
64357
64358         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64359
64360                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64361                 function.
64362
64363         2005-12-29  Bruno Haible  <bruno@clisp.org>
64364
64365                 * progreloc.c (set_program_name_and_installdir): Fix
64366                 compilation error.
64367
64368         2005-12-04  Bruno Haible  <bruno@clisp.org>
64369
64370                 Cygwin portability.
64371                 * progreloc.c: Include <windows.h> also on Cygwin.
64372                 (find_executable): Add support for Cygwin.
64373                 (set_program_name_and_installdir): Handle also platforms with
64374                 nonempty EXEEXT.
64375
64376         2006-07-11  Bruno Haible  <bruno@clisp.org>
64377
64378                 * javacomp.c: Fix a comment.
64379                 Reported by Jim Meyering.
64380
64381         2006-04-30  Bruno Haible  <bruno@clisp.org>
64382
64383                 * javacomp.h (compile_java_class): Add source_version,
64384                 target_version arguments.
64385                 * javacomp.c: Rewritten to choose only a compiler that
64386                 respects the specified source_version and target_version.
64387
64388         2006-06-27  Bruno Haible  <bruno@clisp.org>
64389
64390                 Assume correct S_ISDIR macro.
64391                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64392
64393         2006-07-22  Bruno Haible  <bruno@clisp.org>
64394
64395                 * javaversion.h: New file, from GNU gettext.
64396                 * javaversion.c: New file, from GNU gettext.
64397                 * javaversion.java: New file, from GNU gettext.
64398                 * javaversion.class: New file, from GNU gettext.
64399
64400         2006-05-17  Bruno Haible  <bruno@clisp.org>
64401
64402                 Cygwin portability.
64403                 * javaexec.c (execute_java_class): Test for jview program
64404                 also on Cygwin.
64405
64406         2006-04-09  Bruno Haible  <bruno@clisp.org>
64407
64408                 * fatal-signal.c: Don't include string.h.
64409                 (at_fatal_signal): Use a copying loop instead of memcpy.
64410
64411         2005-12-04  Bruno Haible  <bruno@clisp.org>
64412
64413                 * csharpexec.c: Add support for 'clix' launcher (untested).
64414                 (execute_csharp_using_sscli): New function.
64415                 (execute_csharp_program): Call it.
64416
64417         2006-06-21  Bruno Haible  <bruno@clisp.org>
64418
64419                 Avoid warnings from recent versions of mcs.
64420                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64421                 -o, -L, -r any more. Use options documented since mcs-1.0
64422                 instead. Similarly for -g.
64423
64424         2005-07-09  Bruno Haible  <bruno@clisp.org>
64425
64426                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64427                 add a .dll suffix.
64428                 Reported by Mark Junker <mjscod@gmx.de>.
64429
64430         2006-06-17  Bruno Haible  <bruno@clisp.org>
64431
64432                 * config.charset: Update for NetBSD 3.0.
64433
64434         2006-05-17  Bruno Haible  <bruno@clisp.org>
64435
64436                 Cygwin portability.
64437                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64438
64439         2006-05-16  Bruno Haible  <bruno@clisp.org>
64440
64441                 * localcharset.c [CYGWIN]: Include <windows.h>.
64442                 (get_charset_aliases): For Cygwin, return the same CPxxx
64443                 aliases list as under WIN32.
64444                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64445                 the environment variables. Fall back to GetACP().
64446
64447         2006-04-05  Bruno Haible  <bruno@clisp.org>
64448
64449                 * config.charset: Update Juan Manuel Guerrero's address.
64450
64451         2005-02-12  Bruno Haible  <bruno@clisp.org>
64452
64453                 * allocsa.h: Add extern "C" for C++.
64454
64455         2005-02-10  Bruno Haible  <bruno@clisp.org>
64456
64457                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
64458                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
64459
64460         2006-07-22  Bruno Haible  <bruno@clisp.org>
64461
64462                 * gettext.h: Update to GNU gettext-0.15.
64463
64464 2006-07-22  Bruno Haible  <bruno@clisp.org>
64465
64466         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
64467         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
64468         lib-prefix.m4, longdouble.m4, ssize_t.m4.
64469
64470 2006-07-21  Eric Blake  <ebb9@byu.net>
64471
64472         * modules/stdlib-safer: New file.
64473         * MODULES.html.sh (File stream based Input/Output): Add
64474         stdlib-safer.
64475
64476 2006-07-21  Eric Blake  <ebb9@byu.net>
64477
64478         * lib/stdlib-safer.h: New file from coreutils, required by
64479         stdlib--.h.
64480
64481 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64482
64483         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64484
64485 2006-07-20  Bruno Haible  <bruno@clisp.org>
64486
64487         * gnulib-tool: Recognize new option --assume-autoconf.
64488         (autoconf_minversion): New variable.
64489         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64490
64491 2006-07-20  Bruno Haible  <bruno@clisp.org>
64492
64493         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64494
64495 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64496
64497         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64498         Reindent and repaginate.
64499
64500 2006-07-19  Derek Price  <derek@ximbiot.com>
64501
64502         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64503         Correct grammar.
64504
64505 2006-07-17  Bruno Haible  <bruno@clisp.org>
64506
64507         * modules/list: New file.
64508         * modules/array-list: New file.
64509         * modules/carray-list, modules/carray-list-tests: New files.
64510         * modules/linked-list, modules/linked-list-tests: New files.
64511         * modules/avltree-list, modules/avltree-list-tests: New files.
64512         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64513         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64514         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64515         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64516         * modules/oset: New file.
64517         * modules/array-oset: New file.
64518         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64519         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64520         * tests/test-carray_list.c: New file.
64521         * tests/test-linked_list.c: New file.
64522         * tests/test-avltree_list.c: New file.
64523         * tests/test-rbtree_list.c: New file.
64524         * tests/test-linkedhash_list.c: New file.
64525         * tests/test-avltreehash_list.c: New file.
64526         * tests/test-rbtreehash_list.c: New file.
64527         * tests/test-avltree_oset.c: New file.
64528         * tests/test-rbtree_oset.c: New file.
64529         * MODULES.html.sh (Container data structures): New section.
64530
64531 2006-07-17  Bruno Haible  <bruno@clisp.org>
64532
64533         * m4/gl_list.m4: New file.
64534
64535 2006-07-17  Bruno Haible  <bruno@clisp.org>
64536
64537         * lib/gl_list.h: New file.
64538         * lib/gl_list.c: New file.
64539         * lib/gl_array_list.h: New file.
64540         * lib/gl_array_list.c: New file.
64541         * lib/gl_carray_list.h: New file.
64542         * lib/gl_carray_list.c: New file.
64543         * lib/gl_linked_list.h: New file.
64544         * lib/gl_linked_list.c: New file.
64545         * lib/gl_anylinked_list1.h: New file.
64546         * lib/gl_anylinked_list2.h: New file.
64547         * lib/gl_avltree_list.h: New file.
64548         * lib/gl_avltree_list.c: New file.
64549         * lib/gl_anyavltree_list1.h: New file.
64550         * lib/gl_anyavltree_list2.h: New file.
64551         * lib/gl_rbtree_list.h: New file.
64552         * lib/gl_rbtree_list.c: New file.
64553         * lib/gl_anyrbtree_list1.h: New file.
64554         * lib/gl_anyrbtree_list2.h: New file.
64555         * lib/gl_anytree_list1.h: New file.
64556         * lib/gl_anytree_list2.h: New file.
64557         * lib/gl_linkedhash_list.h: New file.
64558         * lib/gl_linkedhash_list.c: New file.
64559         * lib/gl_anyhash_list1.h: New file.
64560         * lib/gl_anyhash_list2.h: New file.
64561         * lib/gl_avltreehash_list.h: New file.
64562         * lib/gl_avltreehash_list.c: New file.
64563         * lib/gl_rbtreehash_list.h: New file.
64564         * lib/gl_rbtreehash_list.c: New file.
64565         * lib/gl_anytreehash_list1.h: New file.
64566         * lib/gl_anytreehash_list2.h: New file.
64567
64568         * lib/gl_oset.h: New file.
64569         * lib/gl_oset.c: New file.
64570         * lib/gl_array_oset.h: New file.
64571         * lib/gl_array_oset.c: New file.
64572         * lib/gl_avltree_oset.h: New file.
64573         * lib/gl_avltree_oset.c: New file.
64574         * lib/gl_rbtree_oset.h: New file.
64575         * lib/gl_rbtree_oset.c: New file.
64576         * lib/gl_anytree_oset.h: New file.
64577
64578 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64579
64580         * m4/mkancesdirs.m4: New file.
64581         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
64582         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
64583         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
64584         it.
64585
64586 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64587
64588         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
64589         * lib/mkancesdirs.h: New files.
64590         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
64591         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
64592         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
64593         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
64594         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
64595         callers changed.  Revamp internals significantly, by not
64596         attempting to create directories that are temporarily more
64597         permissive than the final results.  Do not attempt to use
64598         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
64599         This removes some race conditions, fixes some bugs, and simplifies
64600         things.  Use new dirchownmod function to do owner and mode changes.
64601         * lib/mkdir-p.h: Likewise.
64602         * lib/modechange.c (octal_to_mode): New function.
64603         (struct mode_change): New member mentioned.
64604         (make_node_op_equals): New arg mentioned.  All callers changed.
64605         (mode_compile): Keep track of which mode bits the user has explicitly
64606         mentioned.
64607         (mode_adjust): New arg DIR, so that we implement the X op correctly.
64608         New arg PMODE_BITS, to keep track of which mode bits the user
64609         mentioned; it treats S_ISUID and S_ISGID speciall.
64610         All callers changed.
64611         * lib/modechange.h: Likewise.
64612
64613 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64614
64615         * MODULES.html.sh: Add mkancestors.
64616         * modules/mkancesdirs: New module.
64617         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
64618         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
64619         The chdir-safer and afs files are now orphans; I'll remove them
64620         unless someone speaks up.
64621         Add lib/dirchownmod.c, lib/dirchownmod.h.
64622         (Depends-on): Remove alloca, chown, save-cwd, dirname.
64623         Add lchown, mkancesdirs.
64624         (Maintainer): Add self.
64625
64626 2006-07-15  Karl Berry  <karl@gnu.org>
64627
64628         * gnulib-tool: help message wording/arrangement.
64629
64630 2006-07-14  Simon Josefsson  <jas@extundo.com>
64631
64632         * doc/gnulib.texi (Libtool and Windows): New section.
64633
64634 2006-07-12  Simon Josefsson  <jas@extundo.com>
64635
64636         * modules/gendocs (License): Fix license, approved by Karl.
64637
64638 2006-07-12  Eric Blake  <ebb9@byu.net>
64639
64640         * MODULES.html.sh: Add gendocs.
64641
64642 2006-07-11  Eric Blake  <ebb9@byu.net>
64643
64644         * modules/fdl: New module, to install doc/fdl.texi.
64645         * MODULES.html.sh: Add new section for documentation modules.
64646         * gnulib-tool: Avoid space-tab.
64647         (--doc-base): New option, to manage files from doc.
64648
64649 2006-07-11  Eric Blake  <ebb9@byu.net>
64650
64651         * m4/absolute-header.m4: Fix comments to match recent change.
64652
64653 2006-07-11  Eric Blake  <ebb9@byu.net>
64654
64655         * gnulib-tool: List --doc-base before --tests-base.
64656
64657 2006-07-11  Derek R. Price  <derek@ximbiot.com>
64658
64659         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
64660
64661 2006-07-11  Bruno Haible  <bruno@clisp.org>
64662
64663         * README: Mention where to put documentation.
64664
64665 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64666
64667         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
64668
64669 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64670
64671         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
64672         to stdint.m4.
64673
64674 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64675
64676         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
64677         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
64678         "no/such/file/stdint.h" when there is no such file, so that
64679         the resulting C code can be parsed by dodgy compilers.
64680         Problems reported by Bob Proulx.
64681
64682 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64683
64684         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
64685         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64686         macros into the GNU _D_EXACT_NAMLEN.
64687         * lib/savedir.c:  Likewise.
64688         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
64689
64690 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64691         and Paul Eggert  <eggert@cs.ucla.edu>
64692
64693         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
64694         * m4/savedir.m4:
64695         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64696         macros into the GNU _D_EXACT_NAMLEN.
64697
64698 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64699
64700         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
64701         around the absolute name, to work around a problem with the HP-UX
64702         11.23 native C compiler, reported by Bob Proulx.
64703
64704 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64705
64706         * doc/maintain.texi, make-stds.texi: Sync from
64707         <http://savannah.gnu.org/projects/gnustandards>.
64708
64709 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64710
64711         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
64712
64713 2006-07-09  Jim Meyering  <jim@meyering.net>
64714
64715         * m4/glob.m4: Remove a doubled word in a comment.
64716
64717 2006-07-09  Jim Meyering  <jim@meyering.net>
64718
64719         * lib/argp-pv.c: Remove a doubled word in a comment.
64720         * lib/check-version.c (check_version): Likewise.
64721         * lib/javacomp.c (compile_java_class): Likewise.
64722
64723 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64724
64725         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
64726         for the benefit of people using Autoconf 2.60.  If you want to
64727         support older Autoconf versions you can copy m4/onceonly_2_57.m4
64728         (or m4/onceonly.m4, if pre-2.57) manually.
64729
64730 2006-07-08  Jim Meyering  <jim@meyering.net>
64731
64732         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
64733         comment.
64734         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
64735         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
64736         comment.
64737
64738 2006-07-08  Jim Meyering  <jim@meyering.net>
64739
64740         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
64741
64742 2006-07-07  Simon Josefsson  <jas@extundo.com>
64743
64744         * tests/test-crc.c: Change expected crc value, the test vector
64745         were probably computed using the old broken crc.c?
64746
64747 2006-07-06  Simon Josefsson  <jas@extundo.com>
64748
64749         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
64750         now the canonical place for the M4 file).
64751
64752         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
64753         from the sys_socket dependency now.
64754
64755         * modules/inet_pton (Files): Ditto.
64756
64757         * modules/inet_ntop (Files): Ditto.
64758
64759 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64760
64761         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
64762         not gl_PREREQ_GETUSERSHELL.
64763
64764 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64765
64766         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
64767         with only one argument, for Autoconf 2.60.
64768         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
64769         expand to nothing, so add a shell command to avoid syntax error.
64770         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64771
64772 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64773
64774         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
64775
64776 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64777
64778         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
64779         no longer needed.  Check for isblank decl.
64780         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
64781         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
64782         of existence.
64783
64784 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64785
64786         * lib/getloadavg.c: Use __VMS, not VMS.
64787         * lib/getopt.c: Likewise.
64788         * lib/getpagesize.h: Likewise.
64789         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
64790         and probably does not work.
64791
64792 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64793
64794         * lib/.cppi-disable: Add wcwidth.
64795         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
64796         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
64797         (ISGRAPH): Remove.  All uses changed to isgraph.
64798         (FOLD) [!defined _LIBC]: Remove special case.
64799         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
64800         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
64801         HAVE_ISBLANK.
64802         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
64803         case.
64804
64805 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64806
64807         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
64808         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
64809         brackets.  Other minor changes to suppress some compiler
64810         warnings.
64811
64812 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64813         and Paul Eggert  <eggert@cs.ucla.edu>
64814
64815         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
64816         of invoking obsolescent AC_HEADER_DIRENT macro.
64817         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
64818         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
64819         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64820         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
64821         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
64822         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64823         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
64824         * m4/readdir.m4: Remove; no longer needed.
64825
64826 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64827         and Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
64830         Don't worry about this obsolete case any more.
64831         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
64832         directories.
64833         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
64834         worry about this obsolete case any more.
64835         * lib/fts.c: Likewise.
64836         * lib/getcwd.c: Likewise.
64837         * lib/glob.h: Likewise.
64838         * lib/savedir.c: Likewise.
64839
64840 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64841
64842         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
64843         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
64844         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
64845         needed.
64846         All uses removed.
64847         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64848         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64849         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
64850         needed.
64851         * m4/getdate.m4 (gl_GETDATE): Likewise.
64852         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64853         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64854         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64855         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64856         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64857         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64858         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
64859         needed.
64860
64861 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64862
64863         * lib/memcasecmp.c: Include <limits.h>.
64864         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
64865         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
64866         Don't assume isdigit succeeds only on '0' through '9'.
64867
64868 2006-07-05  Eric Blake  <ebb9@byu.net>
64869
64870         * modules/getaddrinfo (Depends-on): Add snprintf.
64871
64872 2006-07-05  Eric Blake  <ebb9@byu.net>
64873
64874         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
64875         to avoid 'header present but could not be compiled' on cygwin.
64876
64877 2006-07-05  Eric Blake  <ebb9@byu.net>
64878
64879         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
64880         missing from netdb.h.
64881         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
64882
64883 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64884
64885         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
64886         no longer needed.
64887         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
64888         * m4/getdate.m4 (gl_GETDATE): Likewise.
64889         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64890         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64891         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64892         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64893         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64894
64895 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64896
64897         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
64898         All uses of is_space replaced by isspace.
64899         * lib/exit.h: Don't talk about STDC_HEADERS.
64900         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
64901         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
64902         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
64903         replaced by isprint etc.
64904         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
64905         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64906         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
64907         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
64908         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
64909         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64910
64911 2006-07-05  Bruno Haible  <bruno@clisp.org>
64912
64913         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
64914         the function exists, before testing against AIX.
64915         Reported by Martin Lambers <marlam@marlam.de>.
64916
64917 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64918
64919         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
64920         From Mark D. Baushke.
64921
64922 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
64925         to the absolute name, not just one, to bypass Sun C 5.8's
64926         "warning: #include of /usr/include/... may be non-portable".
64927
64928 2006-07-04  Eric Blake  <ebb9@byu.net>
64929
64930         * modules/dirname-tests: New test module.
64931         * tests/test-dirname.c: New file, replacing dirname.c
64932         TEST_DIRNAME section that was recently deleted.
64933
64934 2006-07-04  Bruno Haible  <bruno@clisp.org>
64935
64936         Assume ANSI C header files and <ctype.h> functions.
64937         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
64938         (mbsnwidth): Use isprint, iscntrl instead.
64939
64940 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64941
64942         Merge from coreutils.
64943         * MODULES.html.sh: Add xstrtold.
64944         * modules/xstrtold: New file.
64945         * modules/cycle-check (Files): Add lib/same-inode.h.
64946         * modules/dirname (Files): Add m4/double-slash-root.m4.
64947         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
64948         * modules/mkdir-p (Files): Add lib/same-inode.h.
64949         * modules/same (Files): Add lib/same-inode.h.
64950
64951 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64952
64953         * m4/absolute-header.m4: Renamed from full-header-path.m4.
64954         This is to keep the terminology clean; POSIX talks about
64955         "absolute pathnames", not "full pathnames", but the GNU
64956         Coding Standards say to use "path" for something else;
64957         so use "absolute" to keep both sides happy.
64958         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
64959         Set gl_absolute_header, not gl_full_header_path.
64960         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
64961         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
64962         All uses changed.
64963
64964         Merge from coreutils.
64965
64966         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64967
64968         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
64969         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
64970         want to require the building of c-strtod.o.
64971         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
64972         needs -lm directly.
64973         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
64974
64975         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64976
64977         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
64978         --as-needed option if available.  Problem reported by Albert Chin in
64979         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
64980         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
64981         cc merely issues a bunch of annoying warnings for --as-needed
64982         (this problem was reported by Bob Proulx).  Also, try linking with
64983         -lm to detect a bug in binutils 2.16 (this problem was reported
64984         by Ralf Wildenhues).
64985
64986         2006-06-18  Jim Meyering  <jim@meyering.net>
64987
64988         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
64989         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
64990         macro.
64991         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
64992         also check for glibc-2.4's abort-inducing bug.
64993
64994         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
64995         Low-probability clean-up should be to use rmdir to get rid of
64996         the just-created directory, not unlink.
64997
64998         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
64999         configure fail, and request a bug report to inform us about it.
65000         Add a comment that, barring reports to the contrary, in 2007 we'll
65001         assume ftruncate is universally available.
65002
65003         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65004
65005         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65006
65007         2006-03-12  Jim Meyering  <jim@meyering.net>
65008
65009         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65010         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65011         * m4/same.m4 (gl_SAME): Likewise.
65012         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65013
65014         2006-03-11  Eric Blake  <ebb9@byu.net>
65015
65016         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65017         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65018         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65019         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65020
65021 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65022
65023         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65024         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65025         reported by Mark D. Baushke, one in
65026         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65027
65028         Merge from coreutils.
65029
65030         * lib/.cppi-disable: Add stdint_.h.
65031         * lib/.cvsignore: Add stdint.h.
65032
65033         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65034
65035         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65036         both double and long double versions.
65037         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65038         * lib/xstrtold.c: New file.
65039         * lib/xstrtod.h (xstrtold): New decl.
65040
65041         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65042
65043         * lib/filemode.c (setst): Remove.
65044         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65045         (arguably) clearer, and the generated code is a bit smaller on my
65046         Debian GNU/Linux stable x86 host.
65047
65048         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65049
65050         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65051         Assume that filemode.h includes sys/types.h and sys/stat.h.
65052         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65053         (ftypelet): Reorder to put common cases first, for efficiency.
65054         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65055         to do 'M'.
65056         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65057         of 10, for compatibility with FreeBSD.  All callers changed.
65058         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65059         types that can't be deduced solely from st_mode.  First arg is now a
65060         const pointer.
65061         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65062         (strmode): Renamed from mode_string.
65063         (filemodestring): New decl.
65064         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65065         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65066         needed.
65067         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65068
65069         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65070
65071         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65072         fsusage.h now does that.  Include fsusage.h first, to test interface.
65073         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65074         at most one method (the old code could have generated decls that
65075         didn't conform to C89, not that this was ever exercised).
65076         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65077
65078         2006-03-19  Jim Meyering  <jim@meyering.net>
65079
65080         Work even in a chroot where d_ino values for entries in "/"
65081         don't match the stat.st_ino values for the same names.
65082         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65083         number, iterate through all entries again, using lstat instead.
65084         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65085         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65086
65087         * lib/getcwd.c (__getcwd): Clarify a comment.
65088         Use memcpy in place of a call to strcpy.
65089
65090         2006-03-12  Jim Meyering  <jim@meyering.net>
65091
65092         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65093         matches that of the current directory (which we're about to chdir ".."
65094         out of), then save the dev-ino of the parent, instead.
65095
65096         * lib/same-inode.h (SAME_INODE): New file/macro.
65097         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65098         Include "same-inode.h", instead.
65099         * lib/same.c: Likewise.
65100         * lib/cycle-check.h: Include "same-inode.h".
65101         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65102         * lib/cycle-check.c (SAME_INODE): Remove definition.
65103         * lib/root-dev-ino.h: Include "same-inode.h".
65104
65105         2006-03-11  Eric Blake  <ebb9@byu.net>
65106
65107         * lib/same.c (same_name): s/base_name/last_component/
65108         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65109         * lib/filenamecat.c (file_name_concat): Likewise.
65110
65111         2006-03-11  Eric Blake  <ebb9@byu.net>,
65112                     Paul Eggert  <eggert@cs.ucla.edu>
65113
65114         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65115         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65116         drive prefix.
65117         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65118         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65119         (last_component): New method.
65120         * lib/dirname.c (dir_len): Determine when drive letters need a
65121         subsequent slash.  Preserve // when it is special.
65122         (dir_name): Don't append dot when drive letter is absolute.
65123         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65124         * lib/basename.c (base_name): New semantics - malloc the result.
65125         Preserve // when it is special.  Preserve relative files that look
65126         like drive letters.
65127         (base_len): Preserve // when it is special.
65128         (last_component): New method, similar to old base_name semantics.
65129         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65130         base_name.  Strip redundant slashes from ///.
65131
65132 2006-07-03  Jim Meyering  <jim@meyering.net>
65133
65134         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65135         macro is used before the first cycle_check call.
65136
65137 2006-07-03  Eric Blake  <ebb9@byu.net>
65138
65139         * modules/dirname (Depends-on): Add xstrndup.
65140
65141 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65142
65143         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65144         test cases, so that config.log is a bit easier to follow.
65145
65146 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65147
65148         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65149         both are 64 bits, since this seems to be the tradition, and this
65150         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65151         we ever run into a host that prefers long long to long in this
65152         case, we'll need another configure-time test.  Problem reported by
65153         Jim Meyering.
65154
65155 2006-07-02  Eric Blake  <ebb9@byu.net>
65156
65157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65158
65159 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65160
65161         * modules/inttypes (Depends-on): No longer depends on stdint.
65162         * modules/stdint (Description): Say more about assumptions.
65163         Say that the fast types might differ.  Say macros are used.
65164         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65165         (Makefile.am): Revise list of substituted symbols to match
65166         new stdint.m4.
65167         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65168         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65169         * tests/test-stdint.c (verify_same_types)
65170         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65171         the code conforms to C99/C89.
65172         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65173         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65174
65175 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65176
65177         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65178         but fix a bug, by requiring at least 64 bits.
65179         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65180         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65181         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65182         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65183
65184         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65185         changes.  Make 2.59 a prerequisite.  Check and substitute for
65186         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65187         inttypes.h.  Do not use special include files; just use the
65188         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65189         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65190         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65191         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65192         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65193         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65194         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65195         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65196         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65197         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65198         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65199         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65200         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65201         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65202         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65203         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65204         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65205         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65206         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65207         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65208         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65209         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65210         not check for things that C99 does not require, e.g., int8_t.  If
65211         a test isn't needed unless <stdint.h> isn't working, and is
65212         unlikely to be needed for any other reason, then don't do it
65213         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65214         size_t, since we assume C89 freestanding at least.  Do not check
65215         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65216         the right thing even if the types are not defined.  Instead use:
65217         (gl_STDINT_TYPE_PROPERTIES): New macro.
65218         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65219         testing whether <sys/types.h> clashes, as Autoconf does this for
65220         us now.  All uses removed.
65221         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65222         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65223         (gl_CHECK_TYPE_SAME):
65224         Remove; no longer needed.
65225         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65226         exists, since we'll return 0 anyway in that case.
65227         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65228
65229 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65230
65231         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65232         possible collision with system files.
65233         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65234         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65235         WCHAR_MIN and WCHAR_MAX in this case.
65236         (<stddef.h>): Do not include; no longer needed.
65237         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65238         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65239         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65240         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65241         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65242         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65243         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65244         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65245         !defined(__c99))]: Include in this case too, since it's harmless
65246         now.
65247         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65248         dangerous to do so.
65249         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65250         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65251         (_STDINT_MIN, _STDINT_MAX): New macros.
65252         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65253         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65254         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65255         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65256         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65257         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65258         macros, not typedefs; this simplifies things quite a bit.
65259         Use long int for all types narrower than int64_t.
65260         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65261         Define in terms of long long int or int64_t or long int,
65262         not int64_t or int32_t.  This saves some compile-time testing.
65263         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65264         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65265         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65266         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65267         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65268         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65269         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65270         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65271         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65272         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65273         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65274         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65275         undef any previous version and define our own version, for
65276         simplicity and consistency with the new macros for types.
65277         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65278         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65279         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65280         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65281         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65282         @WINT_T_SUFFIX@ to keep things simple here.
65283         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65284         Simplify by assuming typical 8/16/32/64 host, since we're
65285         already doing that elsewhere anyway.
65286         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65287         and assume long long int is 64 bits if available.  This
65288         speeds up 'configure'.
65289
65290 2006-07-01  Eric Blake  <ebb9@byu.net>
65291
65292         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65293         Reported by Andreas Buening.
65294
65295 2006-07-01  Eric Blake  <ebb9@byu.net>
65296
65297         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65298
65299 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65300
65301         * lib/getaddrinfo.c: fixed typo
65302
65303 2006-06-29  Jim Meyering  <jim@meyering.net>
65304
65305         * modules/strftime (Maintainer): Add my name, since with the
65306         FPRINTFTIME changes strftime.c has forked from glibc.
65307
65308 2006-06-29  Eric Blake  <ebb9@byu.net>
65309
65310         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65311
65312 2006-06-29  Eric Blake  <ebb9@byu.net>
65313
65314         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65315
65316 2006-06-29  Eric Blake  <ebb9@byu.net>
65317
65318         * lib/stat_.h: New file.
65319
65320 2006-06-29  Eric Blake  <ebb9@byu.net>
65321
65322         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65323         unused static function.
65324
65325 2006-06-29  Eric Blake  <ebb9@byu.net>
65326
65327         * doc/functions.texi (Function Portability): Document missing lstat
65328         on mingw.
65329
65330 2006-06-29  Eric Blake  <ebb9@byu.net>
65331
65332         * MODULES.html.sh: Add sys_stat.
65333         * modules/sys_stat: New module.
65334         * modules/mkstemp (Depends-on): Add sys_stat.
65335
65336 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65337
65338         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65339
65340 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65341
65342         * m4/c-bs-a.m4: Removed.
65343
65344 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65345
65346         * lib/strftime.c: Assume strftime() exists.
65347
65348 2006-06-29  Derek Price  <derek@ximbiot.com>
65349
65350         * modules/c-bs-a: Removed - \a is C89.
65351         * MODULES.html.sh: Remove c-bs-a.
65352
65353 2006-06-29  Bruno Haible  <bruno@clisp.org>
65354
65355         * modules/wcwidth (License): Change to LGPL.
65356
65357 2006-06-28  Simon Josefsson  <jas@extundo.com>
65358
65359         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65360         on _WIN32.
65361
65362         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65363         getnameinfo.
65364
65365 2006-06-28  Simon Josefsson  <jas@extundo.com>
65366
65367         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65368
65369 2006-06-28  Simon Josefsson  <jas@extundo.com>
65370
65371         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65372         functions there.  It will succeed on Windows XP, but on Windows
65373         2000 and (presumably) earlier, it will fail, and use the internal
65374         re-implementation.
65375         (use_win32_p): New function.
65376         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65377         Support AI_NUMERICSERV to disable getservbyname.
65378         (getnameinfo): New function, only supports
65379         NI_NUMERICHOST|NI_NUMERICSERV for now.
65380
65381         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65382         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65383         getnameinfo.
65384
65385 2006-06-28  Eric Blake  <ebb9@byu.net>
65386
65387         * modules/wcwidth: New file.
65388         * modules/mbchar (Depends-on): Add wcwidth.
65389         * modules/mbswidth (Depends-on): Add wcwidth.
65390         * MODULES.html.sh: Add wcwidth.
65391
65392 2006-06-28  Eric Blake  <ebb9@byu.net>
65393
65394         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65396
65397 2006-06-28  Eric Blake  <ebb9@byu.net>
65398
65399         * lib/xvasprintf.h: Fix comments.
65400
65401 2006-06-28  Eric Blake  <ebb9@byu.net>
65402
65403         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65404         * lib/mbswidth.c (wcwidth): Move from here...
65405         * lib/wcwidth.h: ...to this new file.
65406
65407 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65408
65409         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65410
65411         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65412         it's obsolete.
65413         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65414
65415 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65416
65417         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65418         Autoconf 2.60 says this stuff was obsolete.
65419
65420 2006-06-28  Bruno Haible  <bruno@clisp.org>
65421
65422         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65423
65424 2006-06-28  Bruno Haible  <bruno@clisp.org>
65425
65426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65427         gt_TYPE_WCHAR_T.
65428
65429 2006-06-28  Bruno Haible  <bruno@clisp.org>
65430
65431         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65432         declaration for wcwidth.
65433         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65434
65435 2006-06-28  Bruno Haible  <bruno@clisp.org>
65436
65437         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65438         (mkdir): Define using _mkdir.
65439
65440 2006-06-28  Bruno Haible  <bruno@clisp.org>
65441
65442         * lib/getaddrinfo.h: Fix POSIX URL.
65443         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65444         _WIN32.
65445         (use_win32_p): Make static.
65446         (getaddrinfo): Reject service name if it is empty or does not consist
65447         solely of decimal digits, or if its value is > 65535.
65448         (getnameinfo): Remove useless casts.
65449
65450 2006-06-27  Simon Josefsson  <jas@extundo.com>
65451
65452         * modules/sys_select: New file, suggested by Bruno Haible, Paul
65453         Eggert and Martin Lambers.
65454
65455 2006-06-27  Simon Josefsson  <jas@extundo.com>
65456
65457         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
65458         Eggert and Martin Lambers.
65459
65460 2006-06-27  Bruno Haible  <bruno@clisp.org>
65461
65462         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
65463         result to 0, not to empty.
65464         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
65465
65466 2006-06-27  Bruno Haible  <bruno@clisp.org>
65467
65468         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
65469
65470 2006-06-26  Simon Josefsson  <jas@extundo.com>
65471
65472         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65473         present.
65474
65475 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65476
65477         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65478         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65479         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65480
65481 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65482
65483         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65484
65485 2006-06-26  Bruno Haible  <bruno@clisp.org>
65486
65487         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65488
65489 2006-06-26  Bruno Haible  <bruno@clisp.org>
65490
65491         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65492
65493 2006-06-26  Bruno Haible  <bruno@clisp.org>
65494
65495         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65496         SGI C compiler in pre-C99 mode.
65497         Suggested by Mark D. Baushke and Larry Jones.
65498
65499 2006-06-26  Bruno Haible  <bruno@clisp.org>
65500
65501         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65502         WCHAR_MAX.
65503         Reported by Mark D. Baushke and Larry Jones.
65504
65505 2006-06-26  Bruno Haible  <bruno@clisp.org>
65506
65507         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65508         in pre-C99 mode.
65509         Suggested by Mark D. Baushke and Larry Jones.
65510
65511 2006-06-23  Simon Josefsson  <jas@extundo.com>
65512             Bruno Haible  <bruno@clisp.org>
65513
65514         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65515         Emit mostlyclean-local rule.
65516         (func_emit_tests_Makefile_am): Likewise.
65517         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65518
65519 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65520
65521         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65522
65523 2006-06-23  Bruno Haible  <bruno@clisp.org>
65524
65525         * tests/test-stdint.c: Update to match ISO C 99 Technical
65526         Corrigendum 1.
65527
65528 2006-06-23  Bruno Haible  <bruno@clisp.org>
65529
65530         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65531
65532 2006-06-23  Bruno Haible  <bruno@clisp.org>
65533
65534         * lib/stdint_.h: Treat IRIX like OpenBSD.
65535
65536 2006-06-23  Bruno Haible  <bruno@clisp.org>
65537
65538         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
65539         ISO C 99 Technical Corrigendum 1.
65540
65541 2006-06-22  Simon Josefsson  <jas@extundo.com>
65542
65543         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
65544         MinGW.
65545
65546 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65547
65548         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
65549         needed.  Some compiler complained about some of them.  Problem reported
65550         by Larry Jones in
65551         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
65552
65553 2006-06-21  Simon Josefsson  <jas@extundo.com>
65554
65555         * tests/test-getaddrinfo.c: New file.
65556
65557         * modules/getaddrinfo-tests: New file.
65558
65559         * MODULES.html.sh: Add inet_pton.
65560
65561         * modules/inet_pton: New file.
65562
65563 2006-06-21  Simon Josefsson  <jas@extundo.com>
65564
65565         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
65566         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
65567         of using the (limited) gnulib implementation on Windows XP.
65568
65569         * m4/inet_pton.m4: New file.
65570
65571 2006-06-21  Simon Josefsson  <jas@extundo.com>
65572
65573         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
65574         variable.
65575
65576         * lib/socket_.h: Don't define WINVER.
65577
65578         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
65579         slightly modified to work in gnulib.
65580
65581 2006-06-21  Simon Josefsson  <jas@extundo.com>
65582
65583         * doc/gnulib.texi (Windows sockets): Add.
65584
65585 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65586
65587         * lib/read-file.c (fread_file): Start with buffer allocation of
65588         0 bytes rather than 1 byte; this simplifies the code.
65589         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
65590         code to free buffer and save/restore errno.
65591         (internal_read_file): Remove unused local.
65592
65593 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65594
65595         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
65596         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
65597         Problem reported by Denis Excoffier in
65598         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
65599
65600 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65601
65602         * modules/sys_socket, modules/socklen: Include sys/types since
65603         FreeBSD 4.x's sys/socket.h needs it.
65604
65605 2006-06-19  Simon Josefsson  <jas@extundo.com>
65606
65607         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
65608
65609 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65610
65611         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
65612
65613 2006-06-19  Bruno Haible  <bruno@clisp.org>
65614
65615         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
65616         and FULL_PATH_INTTYPES_H in angle brackets.
65617         Reported by Mark D. Baushke <mdb@gnu.org>.
65618
65619 2006-06-17  Eric Blake  <ebb9@byu.net>
65620
65621         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
65622         errno.
65623
65624 2006-06-17  Bruno Haible  <bruno@clisp.org>
65625
65626         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
65627         <sys/inttypes.h>.
65628
65629 2006-06-17  Bruno Haible  <bruno@clisp.org>
65630
65631         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
65632         whether errno is declared. Assume <errno.h> declares errno.
65633
65634 2006-06-17  Bruno Haible  <bruno@clisp.org>
65635
65636         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
65637
65638 2006-06-17  Bruno Haible  <bruno@clisp.org>
65639
65640         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
65641         problem on Solaris 2.5.1.
65642
65643 2006-06-16  Eric Blake  <ebb9@byu.net>
65644
65645         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
65646         * lib/unicodeio.c [!defined errno]: Likewise.
65647         * lib/strtol.c [!defined errno]: Likewise.
65648         * lib/strtod.c [!defined errno]: Likewise.
65649
65650 2006-06-15  Eric Blake  <ebb9@byu.net>
65651
65652         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
65653
65654 2006-06-15  Eric Blake  <ebb9@byu.net>
65655
65656         * config/srclist.txt (ssize_t.m4): Lose sync.
65657
65658 2006-06-15  Bruno Haible  <bruno@clisp.org>
65659
65660         * modules/stdint (Files): Include m4/full-header-path.m4,
65661         m4/size_max.m4, m4/wchar_t.m4.
65662         (Makefile.am): Many more substitutions.
65663         * modules/stdint-tests: New file.
65664         * tests/test-stdint.c: New file.
65665
65666 2006-06-15  Bruno Haible  <bruno@clisp.org>
65667
65668         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
65669         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
65670         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
65671         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
65672         gl_CHECK_TYPE_SAME): New macros.
65673
65674 2006-06-15  Bruno Haible  <bruno@clisp.org>
65675
65676         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
65677
65678 2006-06-15  Bruno Haible  <bruno@clisp.org>
65679
65680         * lib/stdint_.h: Rewritten to be fully auto-configured.
65681         Fixes bug on HP-UX/IA64.
65682
65683 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
65684
65685         * lib/getdate.y (__attribute__): Don't define if already defined.
65686         Problem reported by Larry Jones.
65687         * lib/utimens.c (__attribute__): Likewise.
65688
65689 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
65690
65691         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
65692         reported by Andreas Schwab.
65693
65694 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65695             Bruno Haible  <bruno@clisp.org>
65696
65697         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
65698         check for the declaration of strnlen and a run test that exposes the
65699         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
65700         rpl_strndup.
65701
65702 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65703             Bruno Haible  <bruno@clisp.org>
65704
65705         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
65706
65707 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65708
65709         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
65710         compile test, for Tru64 4.0D.
65711
65712 2006-05-28  Karl Berry  <karl@gnu.org>
65713
65714         * config/srclist.txt (printf-args.c): lose sync.
65715
65716 2006-05-26  Martin Lambers  <marlam@marlam.de>
65717
65718         * lib/getpass.c: Updates the test for the native W32 API, and adds
65719         missing includes, thus fixing compilation warnings.
65720
65721 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65722
65723         * lib/exclude.c (exclude_fnmatch): New function.
65724         (excluded_file_name): Call exclude_fnmatch.
65725         * lib/exclude.h (excluded_file_name): New prototype
65726
65727 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
65728
65729         * lib/tempname.c (small_open, large_open): New macros.
65730         (__open, __open64) [!_LIBC]: Remove.
65731         (__gen_tempname): Use small_open and large_open instead of __open
65732         and __open64.  This fixes a portability bug on HP-UX 11.11i
65733         reported by Simon Wing-Tang in
65734         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
65735
65736 2006-05-24  Bruno Haible  <bruno@clisp.org>
65737
65738         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
65739         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
65740         Reported by Thorsten Maerz <torte@netztorte.de> via
65741         Aaron Stone <aaron@serendipity.cx>.
65742
65743 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65744
65745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
65746         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
65747         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
65748         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
65749         not really conditional on the cache.
65750         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
65751
65752 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65753
65754         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
65755         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
65756         (my_usleep): Don't mishandle maximum value.
65757
65758 2006-05-19  Jim Meyering  <jim@meyering.net>
65759
65760         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
65761
65762 2006-05-17  Bruno Haible  <bruno@clisp.org>
65763
65764         Cygwin portability.
65765         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
65766
65767 2006-05-17  Bruno Haible  <bruno@clisp.org>
65768
65769         * lib/stdint_.h: Fix recognition of Cygwin.
65770
65771 2006-05-15  Bruno Haible  <bruno@clisp.org>
65772
65773         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
65774         on libtool patch by Ralf Wildenhues.
65775
65776 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65777
65778         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
65779         test for C99 conformance; (bool) 0.5 is an integer constant
65780         expression, but (bool) -0.5 is not.  Problem reported by Fedor
65781         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
65782
65783 2006-05-11  Simon Josefsson  <jas@extundo.com>
65784
65785         * m4/xvasprintf.m4: Fix obvious typo.
65786
65787 2006-05-11  Jim Meyering  <jim@meyering.net>
65788
65789         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
65790         James Lemley.
65791
65792 2006-05-10  Simon Josefsson  <jas@extundo.com>
65793
65794         * lib/md4.c: Typo fix, update copyright years.
65795         (K1, K2): Don't use L because it turn computations into 64-bit on
65796         64-bit platforms.
65797
65798 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
65799
65800         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
65801         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
65802         unwanted sign propagation, e.g., on hosts with 64-bit int.
65803         There still are some problems with reeelly weird theoretical hosts
65804         (e.g., 33-bit int) but it's not worth worrying about now.
65805         * lib/sha1.c (rol): Likewise.
65806         (K1, K2, K3, K4): Remove unnecessary L suffix.
65807
65808 2006-05-10  Bruno Haible  <bruno@clisp.org>
65809
65810         * lib/des.c: Cast to avoid warnings.
65811
65812 2006-05-09  Bruno Haible  <bruno@clisp.org>
65813
65814         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
65815         (Depends-on): Depend also on xsize, stdarg.
65816         (configure.ac): Add gl_XVASPRINTF.
65817
65818 2006-05-09  Bruno Haible  <bruno@clisp.org>
65819
65820         * m4/xvasprintf.m4: New file.
65821
65822 2006-05-09  Bruno Haible  <bruno@clisp.org>
65823
65824         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
65825         (EOVERFLOW): Define fallback value.
65826         (xstrcat): New function.
65827         (xvasprintf): Recognize the special case of a string concatenation.
65828
65829 2006-05-08  Eric Blake  <ebb9@byu.net>
65830
65831         * gnulib-tool (func_version): Base copyright year on CVS date.
65832         (func_emit_copyright_notice): New function.
65833         (func_emit_lib_Makefile_am): Use it.
65834         (func_emit_tests_Makefile_am): Likewise.
65835         (func_import): Likewise.
65836
65837 2006-05-08  Bruno Haible  <bruno@clisp.org>
65838
65839         * modules/stdarg: New file.
65840         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
65841
65842 2006-05-08  Bruno Haible  <bruno@clisp.org>
65843
65844         * m4/stdarg.m4: New file, from GNU gettext.
65845
65846 2006-05-08  Bruno Haible  <bruno@clisp.org>
65847
65848         * config/srclist.txt (build-aux/config.rpath): different from latest
65849         release.
65850
65851 2006-05-08  Bruno Haible  <bruno@clisp.org>
65852
65853         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
65854
65855 2006-05-05  Jim Meyering  <jim@meyering.net>
65856
65857         * m4/warning.m4: New file, derived from bison's file by the same name.
65858
65859 2006-05-03  Bruno Haible  <bruno@clisp.org>
65860
65861         * lib/stdint_.h: Shorter URL.
65862         * lib/inttypes.h: Likewise.
65863
65864 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65865
65866         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
65867
65868 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65869
65870         * lib/verify.h: Document the internals better.  Most of this change
65871         was written by Bruno Haible.
65872
65873 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65874
65875         * doc/verify.texi: New file, partly based on a proposal by
65876         Bruno Haible.
65877
65878 2006-05-02  Bruno Haible  <bruno@clisp.org>
65879
65880         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
65881         test from here...
65882         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
65883
65884 2006-04-29  Bruno Haible  <bruno@clisp.org>
65885
65886         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
65887         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
65888
65889 2006-04-29  Bruno Haible  <bruno@clisp.org>
65890
65891         * gnulib-tool: Make --update option actually work.
65892
65893 2006-04-29  Bruno Haible  <bruno@clisp.org>
65894
65895         * doc/gcd.texi: New file.
65896         * doc/gnulib.texi: Include it.
65897
65898 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
65899
65900         * lib/getdate.y (get_date): When adding relative date, start with the
65901         initial time, not with the result of the first mktime call.
65902
65903 2006-04-25  Bruno Haible  <bruno@clisp.org>
65904
65905         * gnulib-tool (func_import): Output the include directives in three
65906         blocks, sorted separately.
65907         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65908
65909 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65910
65911         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
65912         to define main with arguments, for C++.  Reported by Eric Blake.
65913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
65914         Prefer 'int main ()' to 'int main (void)', for C++.
65915         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
65916         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
65917         for 'main', for C99 and C++.
65918
65919 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65920
65921         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
65922         Don't assume that exit status -1 is valid.
65923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65924         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
65925         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
65926         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
65927         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
65928         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
65929         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
65930         functions can be used without declaring them, or that you can
65931         exit with status -1.
65932         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
65933
65934 2006-04-24  Karl Berry  <karl@gnu.org>
65935
65936         * config/srclist.txt (longdouble.m4): sync lost.
65937
65938 2006-04-24  Eric Blake  <ebb9@byu.net>
65939
65940         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
65941
65942 2006-04-24  Bruno Haible  <bruno@clisp.org>
65943
65944         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
65945         poll() implementation in AIX.
65946         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65947
65948 2006-04-24  Bruno Haible  <bruno@clisp.org>
65949
65950         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
65951         assigned exactly once.
65952
65953 2006-04-23  Claudio Fontana  <claudio@gnu.org>
65954             Bruno Haible  <bruno@clisp.org>
65955
65956         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
65957         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
65958         for AM_CPPFLAGS.
65959
65960 2006-04-23  Bruno Haible  <bruno@clisp.org>
65961
65962         * modules/copy-file: Depend on unistd.
65963         * modules/execute: Likewise.
65964         * modules/fatal-signal: Likewise.
65965         * modules/findprog: Likewise.
65966         * modules/mkdtemp : Likewise.
65967         * modules/pipe: Likewise.
65968         * modules/wait-process: Likewise.
65969
65970 2006-04-23  Bruno Haible  <bruno@clisp.org>
65971
65972         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
65973         condition was already detected.
65974         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65975
65976 2006-04-23  Bruno Haible  <bruno@clisp.org>
65977
65978         * lib/copy-file.c: Include <unistd.h> unconditionally.
65979         * lib/execute.c: Likewise.
65980         * lib/fatal-signal.c: Likewise.
65981         * lib/findprog.c: Likewise.
65982         * lib/mkdtemp.c: Likewise.
65983         * lib/pipe.h: Likewise.
65984         * lib/pipe.c: Likewise.
65985         * lib/wait-process.h: Likewise.
65986
65987 2006-04-23  Bruno Haible  <bruno@clisp.org>
65988
65989         * gnulib-tool (func_usage): Fix --import description. Document
65990         --update.
65991         (func_import): Create temporary file in a temporary directory, if
65992         --dry-run is specified. Silence errors from 'grep' when there are no
65993         m4 files in $m4dir.
65994         (func_create_testdir): Silence errors from 'grep' when there are no
65995         m4 files in $m4dir.
65996         Reported by Karl Berry <karl@freefriends.org>.
65997
65998 2006-04-20  Bruno Haible  <bruno@clisp.org>
65999
66000         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66001         one argument, so that the code will be portable to Autoconf 2.60.
66002         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66003         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66004         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66005
66006 2006-04-19  Derek Price  <derek@ximbiot.com>
66007             Eric Blake  <ebb9@byu.net>
66008
66009         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66010         rather than "/full/path.h".  Update comment to match.  Shorten &
66011         generalize m4_translit call via AS_TR_CPP.
66012
66013 2006-04-19  Derek Price  <derek@ximbiot.com>
66014             Eric Blake  <ebb9@byu.net>
66015
66016         * lib/inttypes.h: Correct grammar in comment.
66017
66018 2006-04-18  Derek Price  <derek@ximbiot.com>
66019             Paul Eggert  <eggert@cs.ucla.edu>
66020
66021         * modules/inttypes: New file.
66022         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66023
66024 2006-04-18  Derek Price  <derek@ximbiot.com>
66025             Paul Eggert  <eggert@cs.ucla.edu>
66026
66027         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66028         New files.
66029
66030 2006-04-18  Derek Price  <derek@ximbiot.com>
66031             Paul Eggert  <eggert@cs.ucla.edu>
66032
66033         * lib/inttypes.h: New file.
66034         * lib/strtoimax.c: Assume <inttypes.h>.
66035
66036 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66037
66038         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66039         isn't mounted.  Problem reported by Kir Kolyshkin.
66040
66041 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66042
66043         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66044         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66045         Derek R. Price.
66046         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66047         implementation.
66048
66049 2006-04-12  Eric Blake  <ebb9@byu.net>
66050
66051         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66052         is now done automatically by the corresponding Autoconf macro.
66053
66054 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66055
66056         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66057         time_r.h.
66058
66059 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66060
66061         Merge regex changes from libc, removing some of our
66062         POSIX-conformance changes that were rejected and redoing them in a
66063         less-intrusive way.
66064
66065         * lib/regcomp.c (re_compile_internal, init_dfa):
66066         Length arg is now size_t, not Idx.  All uses changed.
66067         (peek_token): Forward decl now says internal_function.
66068         (__re_error_msgid, __re_error_msgid_idx):
66069         Now static rather than extern with attribute_hidden.
66070         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66071         For some reason libc prefers K&R style defns for external functions.
66072         (regerror) [!defined _LIBC]: Likewise.
66073         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66074         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66075         (build_range_exp, build_collating_symbol):
66076         Use K&R-style defn.
66077         (re_compile_fastmap): Use '\0' to memset, not 0.
66078         (utf8_sb_map): Make the calculations more obvious.
66079         (init_dfa, parse_bracket_exp, build_charclass_op):
66080         Call calloc and cast result, as glibc does.
66081         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66082         (build_range_exp, build_collating_symbol):
66083         Now internal functions.
66084
66085         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66086
66087         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66088         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66089         Don't depend on VMS; depend on __VMS instead, for POSIX
66090         namespace cleanness.
66091         (regoff_t): Define to ssize_t, not long int.
66092
66093         Remove the REG_ macros named below.  Instead, make the old names
66094         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66095         __USE_GNU_REGEX.
66096         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66097         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66098         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66099         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66100         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66101         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66102         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66103         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66104         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66105         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66106         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66107         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66108         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66109         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66110         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66111         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66112         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66113         (REG_NREGS):
66114         Remove.  All uses replaced by the old RE_* names.
66115         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66116         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66117         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66118         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66119         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66120         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66121         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66122         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66123         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66124         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66125         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66126         Don't bother having these macros be independent of each others'
66127         values, since they no longer exist in the POSIX name space.
66128
66129         Rename the following member names back to their old names,
66130         unless !__USE_GNU_REGEX.  All uses changed back.
66131         (buffer): Renamed from re_buffer.
66132         (allocated): Renamed from re_allocated.
66133         (used): Renamed from re_used.
66134         (syntax): Renamed from re_syntax.
66135         (fastmap): Renamed from re_fastmap.
66136         (translate): Renamed from re_translate.
66137         (can_be_null): Renamed from re_can_be_null.
66138         (regs_allocated): Renamed from re_regs_allocated.
66139         (fastmap_accurate): Renamed from re_fastmap_accurate.
66140         (no_sub): Renamed from re_no_sub.
66141         (not_bol): Renamed from re_not_bol.
66142         (not_eol): Renamed from re_not_eol.
66143         (newline_anchor): Renamed from re_newline_anchor.
66144         (num_regs): Renamed from rm_num_regs.
66145         (start): Renamed from rm_start.
66146         (end): Renamed from rm_end.
66147
66148         (free_state): Move up a bit.
66149
66150         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66151         #define to be empty.
66152         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66153         when that is what is intended.
66154         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66155         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66156         (MAX): New macro.
66157         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66158         All uses changed back to re_malloc, etc.  It's now the caller's
66159         responsibility to check for overflow; all callers changed.
66160         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66161         (re_x2nrealloc): Remove.
66162         (free_state): Remove decl.
66163
66164         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66165         (re_set_registers, re_exec):
66166         Use K&R-style defn.
66167
66168         2006-01-31  Roland McGrath  <roland@redhat.com>
66169
66170         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66171         Reported by Mike Frysinger <vapier@gentoo.org>.
66172
66173         2006-01-15  Andreas Jaeger  <aj@suse.de>
66174
66175         [BZ #1950]
66176         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66177         build_wcs_upper_buffer change.
66178         (build_wcs_upper_buffer): Change return type.
66179
66180         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66181
66182         * lib/regex_internal.h: Include <stdint.h> if available.
66183
66184         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66185
66186         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66187
66188         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66189
66190         * lib/regcomp.c: Adjust for changed secondary hash function.
66191
66192         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66193
66194         * lib/regex.h: Pretty printing.
66195         Clean up namespace a bit.
66196
66197         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66198
66199         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66200         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66201
66202         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66203                     Ulrich Drepper  <drepper@redhat.com>
66204
66205         [BZ #1302]
66206         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66207         changed.
66208         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66209
66210         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66211
66212         [BZ #281]
66213         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66214         * lib/regcomp.c: Remove unnecessary uses of
66215         unsigned RE_TRANSLATE_TYPE.
66216         * lib/regex_internal.h: Likewise.
66217         * lib/regex_internal.c: Likewise.
66218         * lib/regexec.c: Likewise.
66219         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66220
66221         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66222
66223         * lib/regexec.c (find_recover_state): Remove unnecessary
66224         initialization.
66225         (transit_state_bkref): Make DFA a const pointer.
66226         (get_subexp): Likewise.
66227         (check_arrival): Likewise.
66228         (update_cur_sifted_state): Likewise.
66229         (re_search_internal): Likewise.
66230         (prune_impossible_nodes): Likewise.
66231         (acquire_init_state_context): Likewise.
66232         (proceed_next_node): Likewise.
66233         (set_regs): Likewise.
66234         (free_fail_stack_return): Likewise.
66235         (check_arrival_expand_ecl): Mark DFA parameter as const.
66236         (check_arrival_expand_ecl_sub): Likewise.
66237         (check_subexp_limits): Likewise.
66238         (sub_epsilon_src_nodes):  Likewise.
66239         (add_epsilon_src_nodes):  Likewise.
66240         (merge_state_array): Likewise.
66241         (update_regs): Likewise.
66242         (build_trtable): Likewise.
66243         (sift_states_backward): Mark MCTX parameter as const.
66244         (build_sifted_states): Likewise.
66245         (update_cur_sifted_state): Likewise.
66246         (sift_states_mkref): Likewise.
66247         (check_arrival_expand_ecl): Mark eclosure as const.
66248         (check_dst_limits_calc_pos_1): Likewise.
66249         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66250         pointer.
66251
66252         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66253
66254         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66255         (transit_state_sb): Likewise.
66256         (transit_state_mb): Likewise.
66257         (sift_states_iter_mb): Likewise.
66258         (check_arrival_add_next_nodes): Likewise.
66259         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66260         [_LIBC] (re_search_2_stub): Use mempcpy.
66261
66262         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66263         mbrtowc for very simple UTF-8 case.
66264
66265         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66266         a pointer-to-const.
66267         (re_acquire_state_context): Likewise.
66268         * lib/regex_internal.h: Adjust prototypes.
66269
66270         * lib/regex.c: Prevent using C++ compilers.
66271
66272         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66273         (re_acquire_state_context): Likewise.
66274
66275 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66276
66277         * modules/regex (Depends-on): Add ssize_t.
66278
66279 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66280
66281         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66282         translation table.
66283
66284 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66285
66286         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66287
66288 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66289             Bruno Haible  <bruno@clisp.org>
66290
66291         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66292         <sys/types.h> and <inttypes.h>.
66293
66294 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66295
66296         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66297         `__error_t_defined', so argp.h will not typedef the former.
66298
66299 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66300
66301         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66302         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66303         glibc names.  Even if glibc is changed to conform to POSIX, the
66304         traditional names will be available anyway, since regex depends on
66305         the extensions module.  Also, fix a longstanding typo in the
66306         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66307         reported by Emanuele Giaquinta.  Also, change sense of cached
66308         variable, so that the message makes sense.
66309
66310 2006-03-24  Simon Josefsson  <jas@extundo.com>
66311
66312         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66313         including some doc fixes.
66314         (base64_encode_alloc): Fix +1 bug on allocation failures.
66315
66316 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66317
66318         * lib/base64.c (base64_encode): Do not read past end of array with
66319         unsanitized input on systems with CHAR_BIT > 8.
66320
66321 2006-03-24  Eric Blake  <ebb9@byu.net>
66322
66323         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66324
66325 2006-03-22  Karl Berry  <karl@gnu.org>
66326
66327         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66328         * config/srclistvars.sh (COREUTILS): new var.
66329
66330 2006-03-17  Jim Meyering  <jim@meyering.net>
66331
66332         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66333         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66334
66335 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66336
66337         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66338         no longer needs it.  Instead, check that regoff_t is as least
66339         as wide as ptrdiff_t.
66340
66341         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66342         so that our regex.h stays compatible with the installed regex.
66343         This is helpful for installers who configure --without-included-regex.
66344         Problem reported by Emanuele Giaquinta.
66345
66346 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66347
66348         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66349         Typedef to long int, not to off_, as POSIX will likely change
66350         in that direction.
66351
66352 2006-03-15  Eric Blake  <ebb9@byu.net>
66353
66354         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66355
66356 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66357
66358         * lib/argp-help.c (validate_uparams): Fix typo
66359         * lib/argp-parse.c (argp_default_options): Consistently begin help
66360         messages with a lowercase letter.
66361
66362 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66363
66364         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66365         overrun buffers and shouldn't be used (much as gets shouldn't be
66366         used).
66367         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66368
66369 2006-03-08  Simon Josefsson  <jas@extundo.com>
66370
66371         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66372         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66373
66374 2006-03-08  Simon Josefsson  <jas@extundo.com>
66375
66376         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66377         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66378
66379 2006-03-08  Simon Josefsson  <jas@extundo.com>
66380
66381         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66382         signal that configure disabled the device.
66383
66384 2006-03-08  Simon Josefsson  <jas@extundo.com>
66385
66386         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66387         languages.
66388
66389 2006-03-07  Simon Josefsson  <jas@extundo.com>
66390
66391         * modules/getopt (Depends-on): Add unistd.
66392
66393         * modules/unistd: New file.
66394
66395 2006-03-07  Simon Josefsson  <jas@extundo.com>
66396
66397         * modules/gc-random: New file.
66398
66399 2006-03-07  Simon Josefsson  <jas@extundo.com>
66400
66401         * m4/unistd_h.m4: New file.
66402
66403 2006-03-07  Simon Josefsson  <jas@extundo.com>
66404
66405         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66406         test to be side-effect free by storing the result in the cache
66407         variable gl_cv_lib_readline, and moving the assignment of
66408         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66409         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66410
66411 2006-03-07  Simon Josefsson  <jas@extundo.com>
66412
66413         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66414         error on missing devices (the functions will return an error).
66415
66416         * m4/gc.m4: Move random stuff to gc-random.m4
66417
66418 2006-03-07  Simon Josefsson  <jas@extundo.com>
66419
66420         * lib/unistd_.h: New file.
66421
66422 2006-03-07  Simon Josefsson  <jas@extundo.com>
66423
66424         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66425
66426 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66427
66428         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66429         Problem reported by Juan Manuel Guerrero.
66430
66431 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66432
66433         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66434         the unistd module.
66435         * lib/getlogin_r.c: Likewise.
66436         * lib/getlogin_r.h: Likewise.
66437         * lib/glob.c: Likewise.
66438         * lib/pagealign_alloc.c: Likewise.
66439         * lib/unistd_.h: Remove; no longer needed.
66440
66441 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66442
66443         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66444         Add unistd.
66445         * modules/c-stack (Depends-on): Add unistd.
66446         * modules/getlogin_r: Likewise.
66447         * modules/glob: Likewise.
66448         * modules/pagealign_alloc: Likewise.
66449         * modules/unistd (Files): Remove lib/unistd_.h.
66450         (EXTRA_DIST): Remove.
66451         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66452         need unistd_.h.
66453         (MOSTLYCLEANFILES): Remove unistd.h-t.
66454
66455 2006-03-03  Simon Josefsson  <jas@extundo.com>
66456
66457         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
66458
66459 2006-03-03  Simon Josefsson  <jas@extundo.com>
66460
66461         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
66462         libidn and bison.
66463
66464 2006-03-03  Simon Josefsson  <jas@extundo.com>
66465
66466         * build-aux/maint.mk: Add indent target.
66467
66468 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
66469
66470         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66471         our replacement poll.h in any case, to avoid a differing
66472         declaration from a system header.  Seen on AIX.
66473
66474 2006-03-01  Simon Josefsson  <jas@extundo.com>
66475
66476         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66477         <kasal@ucw.cz>.
66478
66479 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66480
66481         * modules/gettime (Depends-on): Add extensions module.
66482         * modules/nanosleep (Depends-on): Likewise.
66483         * modules/settime (Depends-on): Likewise.
66484
66485 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66486
66487         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66488         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66489         pedantically.
66490         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66491         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66492
66493         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66494         not "==".  Reported by Ralf Wildenhues.
66495
66496 2006-03-01  Karl Berry  <karl@gnu.org>
66497
66498         * doc/Copyright/request-*: new files, synced from gnuorg.
66499
66500 2006-03-01  Karl Berry  <karl@gnu.org>
66501
66502         * config/srclist.txt (Copyright/*): new entries.
66503
66504 2006-02-28  Simon Josefsson  <jas@extundo.com>
66505
66506         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66507
66508 2006-02-27  Simon Josefsson  <jas@extundo.com>
66509
66510         * lib/base64.h: Indent #define's.  From Jim Meyering
66511         <jim@meyering.net>.
66512
66513 2006-02-27  Jim Meyering  <jim@meyering.net>
66514
66515         Revert the change of 2006-02-24, so these files can continue
66516         to be sync'd from gettext.
66517         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66518         of `config.h'.
66519
66520 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66521
66522         * modules/intprops: New file.
66523         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66524         Add intprops.
66525         * modules/getloadavg (Files): Remove lib/intprops.h.
66526         (Depends-on): Add intprops.
66527         * modules/human: Likewise.
66528         * modules/inttostr: Likewise.
66529         * modules/openat: Likewise.
66530         * modules/sig2str: Likewise.
66531         * modules/userspec: Likewise.
66532         * modules/utimecmp: Likewise.
66533         * modules/xnanosleep: Likewise.
66534         * modules/xstrtol: Likewise.
66535
66536 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
66537
66538         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
66539         * modules/lock-tests (TESTS): Use $(EXEEXT).
66540         * modules/tls-tests: Likewise.
66541         * modules/argp-tests: Likewise.
66542         (check_PROGRAMS): New var, replacing...
66543         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
66544
66545 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66546
66547         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
66548         `config.h'.
66549
66550 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66551
66552         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
66553
66554 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66555
66556         Sync from coreutils.
66557         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
66558         gl_CHDIR_SAFER.
66559
66560 2006-02-22  Jim Meyering  <jim@meyering.net>
66561
66562         Sync from coreutils.
66563         * m4/chdir-safer.m4: New file.
66564
66565 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66566
66567         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
66568         AT_FDCWD exceeds INT_MAX.
66569         * lib/openat.h (AT_FDCWD): Likewise.
66570
66571 2006-02-17  Eric Blake  <address@hidden>
66572
66573         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
66574
66575 2006-02-16  Simon Josefsson  <jas@extundo.com>
66576
66577         * modules/getaddrinfo (Depends-on): Add sys_socket.
66578
66579 2006-02-15  Simon Josefsson  <jas@extundo.com>
66580
66581         * build-aux/maint.mk: Add dsyntax-check rule.
66582
66583 2006-02-15  Eric Blake  <ebb9@byu.net>
66584
66585         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
66586         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
66587         'present but cannot compile' warnings on cygwin.
66588         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
66589         use ws2tcpip.h if sys/socket.h works.
66590         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
66591         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
66592
66593 2006-02-14  Simon Josefsson  <jas@extundo.com>
66594
66595         * modules/maintainer-makefile (Files): Rename.
66596
66597         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
66598         and (the local) Makefile.cfg to maint-cfg.mk.
66599
66600         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
66601         to the latter.
66602
66603         * modules/maintainer-makefile: New module.
66604
66605         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
66606         severaly stripped to make it possible to build it up from scratch
66607         with reliable tests.
66608
66609         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
66610         fixes to permit overriding the default actions when configure and
66611         makefile are not available.
66612
66613 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66614
66615         Sync from coreutils.
66616         * modules/lstat (Depends-on): Don't depend on xalloc.
66617         (License): Change from GPL to LGPL, since this is now simply a
66618         replacement for a libc function.
66619
66620 2006-02-14  Jim Meyering  <jim@meyering.net>
66621
66622         Sync from coreutils.
66623
66624         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
66625         failure on deficient systems, and simplify gnulib lgpl dependencies.
66626         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
66627         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
66628
66629         * lib/xalloc-die.c: Remove unused definition of N_.
66630
66631 2006-02-14  Jim Meyering  <jim@meyering.net>
66632
66633         Sync from coreutils.
66634         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
66635         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
66636         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
66637         double-quote uses of that variable, to accommodate the rare case in
66638         which getmntent is available in none of the libraries checked.  This
66639         happens at least on FreeBSD 5.0.
66640
66641 2006-02-13  Simon Josefsson  <jas@extundo.com>
66642
66643         * gnulib-tool (Usage): Fix --import, from
66644         karl@freefriends.org (Karl Berry).
66645
66646 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66647
66648         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
66649
66650 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
66651
66652         * lib/argp-namefrob.h: Restore changes accidentally lost during the
66653         "autoupdate" on 2005-12-12.
66654
66655 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66656
66657         * modules/closeout (Depends-on): Remove atexit.
66658
66659 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66660
66661         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
66662         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
66663
66664 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66665
66666         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
66667         __EXTENSIONS__ if this causes compilation to fail.  Problem
66668         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
66669         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
66670
66671 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
66672
66673         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
66674         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
66675         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
66676         All uses changed.
66677
66678 2006-01-26  Simon Josefsson  <jas@extundo.com>
66679
66680         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
66681         prototype is visible on mingw32.
66682
66683         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
66684         for mingw32.
66685
66686         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
66687         mingw32).
66688
66689 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66690
66691         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
66692         attempt to open for write; this always fails, at least on POSIX
66693         hosts.  This reinstates the 2006-01-09 change, which was
66694         inadvertently removed.
66695
66696 2006-01-26  Bruno Haible  <bruno@clisp.org>
66697
66698         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
66699         Reported by Paul Eggert.
66700
66701 2006-01-26  Bruno Haible  <bruno@clisp.org>
66702             Paul Eggert  <eggert@cs.ucla.edu>
66703
66704         * lib/stdbool_.h (_Bool)
66705         [(! (defined __cplusplus || defined __BEOS__)
66706           && !defined __GNUC__
66707           && !(defined __HP_cc || defined __xlc__
66708                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
66709                || defined __sgi))]:
66710         #define to signed char in these cases too; this simplifies
66711         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
66712         etc., separately) and makes it more conservative.
66713
66714 2006-01-25  Simon Josefsson  <jas@extundo.com>
66715
66716         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
66717         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
66718         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
66719
66720 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66721
66722         * lib/argp-namefrob.h: Bugfix. Remove stray #
66723
66724 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
66725
66726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
66727         so that we test the test.
66728         Check for yet another HP-UX cc bug involving *bool |= bool.
66729
66730 2006-01-25  Karl Berry  <karl@gnu.org>
66731
66732         * config/srclist.txt (vasnprintf.c): sync lost.
66733
66734 2006-01-25  Jim Meyering  <jim@meyering.net>
66735
66736         Sync from the stable (b5) branch of coreutils:
66737
66738         * lib/fts.c (fts_children): Don't let close() clobber errno from
66739         failed fchdir().
66740
66741         * lib/fts.c (fts_stat): When following a symlink-to-directory,
66742         don't necessarily interpret stat-fails+lstat-succeeds as indicating
66743         a dangling symlink.  That can also happen at least for ELOOP.
66744         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
66745         FYI, this bug predates the inclusion of fts.c in coreutils.
66746
66747         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
66748         in their own block, so pre-c99 compilers don't object.
66749
66750         Avoid the double-free (first in fts_read, second in fts_close) that
66751         would occur when an `active' directory is made inaccessible (e.g.,
66752         via chmod a-x) during a traversal.
66753         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66754         before returning.  Reproduce this failure by
66755         mkdir -p a/b; cd a; chmod a-x . b
66756         Reported by Stavros Passas.
66757
66758 2006-01-25  Jim Meyering  <jim@meyering.net>
66759
66760         * lib/fileblocks.c: Remove more useless parentheses.
66761         * lib/readutmp.h: Likewise.
66762
66763 2006-01-25  Bruno Haible  <bruno@clisp.org>
66764
66765         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
66766         warnings.
66767         Reported by Paul Eggert.
66768
66769 2006-01-25  Bruno Haible  <bruno@clisp.org>
66770
66771         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
66772         rid of a trap command. For Solaris sh.
66773         Reported by Mark D. Baushke <mdb@gnu.org>.
66774
66775 2006-01-24  Simon Josefsson  <jas@extundo.com>
66776
66777         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
66778         Bruno.
66779
66780 2006-01-24  Karl Berry  <karl@gnu.org>
66781
66782         * config/srclist.txt (argp-namefrob.h): sync lost.
66783
66784 2006-01-24  Jim Meyering  <jim@meyering.net>
66785
66786         * modules/openat (Files): Add lib/intprops.h.
66787         From Mark D. Baushke.
66788
66789 2006-01-24  Jim Meyering  <jim@meyering.net>
66790
66791         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
66792         Reported by Mark D. Baushke.
66793
66794 2006-01-24  Jim Meyering  <jim@meyering.net>
66795
66796         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
66797
66798 2006-01-24  Bruno Haible  <bruno@clisp.org>
66799
66800         * modules/strnlen (Maintainer): Change from glibc to all.
66801
66802 2006-01-24  Bruno Haible  <bruno@clisp.org>
66803
66804         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
66805         Patch by Paul Eggert.
66806
66807 2006-01-24  Bruno Haible  <bruno@clisp.org>
66808
66809         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
66810         already has it.
66811         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
66812         2005-11-26.
66813
66814         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
66815         'signed char' to avoid problems with the built-in _Bool type.
66816         Reported by Paul Eggert on 2005-11-26.
66817
66818 2006-01-24  Bruno Haible  <bruno@clisp.org>
66819
66820         * gnulib-tool (func_import): Avoid constructing complicated sed
66821         expressions inside backquote.
66822         Report and solution by Mark D. Baushke <mdb@gnu.org>.
66823
66824 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
66825
66826         These changes imported from libc.
66827         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
66828         test and two separate function calls.
66829         * lib/strndup.c (__strndup): Add libc_hidden_def.
66830
66831 2006-01-23  Simon Josefsson  <jas@extundo.com>
66832
66833         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
66834         Remove the test_*_SOURCES variable: automake infers it by default.
66835         * modules/tls-tests: Likewise.
66836
66837 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66838
66839         Work around porting bugs reported by Dieter in
66840         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
66841         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
66842         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
66843         Include "getopt.h" first, to check interface.
66844         (getenv): Declare only if defined HAVE_DECL_GETENV &&
66845         !HAVE_DECL_GETENV.
66846         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
66847         (__strndup): Revert to K&R-style function dfns, the glibc style.
66848         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
66849         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
66850         Include strnlen.h first, to get prototype properly.
66851         (strnlen): Renamed from __strnlen.
66852         Remove weak alias.
66853
66854 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66855
66856         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
66857
66858 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66859
66860         * config/srclist.txt: Adjust to reflect glibc reorganization.
66861         This affects only comments.
66862
66863 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66864
66865          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
66866          Reported by Bruce Korb <bkorb@gnu.org>.
66867
66868 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66869
66870         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
66871         to pacify gcc -Wswitch-default.
66872
66873 2006-01-22  Bruno Haible  <bruno@clisp.org>
66874
66875         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
66876         temporary buffer for sprintf, take into account the precision also
66877         for 'd', 'i', 'u', 'o', 'x', 'X'.
66878
66879 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66880
66881         * modules/argp-tests: New module
66882         * tests/test-argp.c: New file
66883         * tests/test-argp-2.sh: New file
66884
66885 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66886
66887         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
66888         (__argp_base_name): Removed
66889         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
66890         typo.
66891         (__argp_base_name): Provide macro definition or extern declaration
66892         depending on the configuration
66893
66894 2006-01-20  Simon Josefsson  <jas@extundo.com>
66895
66896         * modules/inet_ntop (Depends-on): Depend on sys_socket.
66897
66898 2006-01-20  Simon Josefsson  <jas@extundo.com>
66899
66900         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
66901
66902 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66903
66904         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
66905         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
66906         Suggested by Bruno Haible.
66907
66908 2006-01-20  Karl Berry  <karl@gnu.org>
66909
66910         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
66911         until changes propagate, I guess.
66912
66913 2006-01-19  Simon Josefsson  <jas@extundo.com>
66914
66915         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
66916
66917 2006-01-19  Simon Josefsson  <jas@extundo.com>
66918
66919         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
66920
66921 2006-01-19  Simon Josefsson  <jas@extundo.com>
66922
66923         * gnulib-tool: Set check_PROGRAMS.
66924
66925         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66926         modules/des-tests, modules/gc-arcfour-tests,
66927         modules/gc-arctwo-tests, modules/gc-des-tests,
66928         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66929         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66930         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66931         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66932         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66933         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
66934         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
66935         test_*_SOURCES.
66936
66937 2006-01-18  Simon Josefsson  <jas@extundo.com>
66938
66939         * modules/socklen (Depends-on): Depend on sys_socket.
66940
66941 2006-01-18  Simon Josefsson  <jas@extundo.com>
66942
66943         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66944         modules/des-tests, modules/gc-arcfour-tests,
66945         modules/gc-arctwo-tests, modules/gc-des-tests,
66946         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66947         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66948         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66949         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66950         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66951         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
66952         $(EXEEXT) to automake TESTS variable, for mingw32.
66953
66954 2006-01-17  Simon Josefsson  <jas@extundo.com>
66955
66956         * modules/socklen (Include): Need sys/socket.h.
66957
66958 2006-01-17  Bruno Haible  <bruno@clisp.org>
66959
66960         * modules/ssize_t (Include): Add <sys/types.h>.
66961
66962 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
66963
66964         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
66965         it's not portable and it doesn't work with cross-compiles.
66966         Problem reported by Bruno Haible.  Fix missing-$ typo in
66967         'test "gl_cv_ignore_unused_libraries" ...' that prevented
66968         -zignore from being used with Sun's C compiler.
66969
66970 2006-01-12  Simon Josefsson  <jas@extundo.com>
66971
66972         * lib/base64.c: Fix warning, reported by Bruno Haible
66973         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
66974
66975 2006-01-12  Bruno Haible  <bruno@clisp.org>
66976
66977         * modules/ldd: New file.
66978         * build-aux/ldd.sh.in: New file.
66979         * MODULES.html.sh (Support for building libraries and executables): Add
66980         ldd.
66981
66982 2006-01-12  Bruno Haible  <bruno@clisp.org>
66983
66984         * m4/ldd.m4: New file.
66985
66986 2006-01-12  Bruno Haible  <bruno@clisp.org>
66987
66988         * gnulib-tool (func_import, func_create_testdir): Don't go into an
66989         endless loop while replacing $auxdir with build-aux.
66990
66991 2006-01-11  Simon Josefsson  <jas@extundo.com>
66992
66993         * lib/stdint_.h (SIZE_MAX): Add missing (.
66994
66995 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
66996
66997         Sync from coreutils.
66998         * lib/md5.c: Fix commentary typos.
66999         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67000         * lib/md5.h (__attribute__): Remove; unused.
67001         * lib/sha1.c: Fix commentary to match md5 better.
67002         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67003         so that we don't need to worry about alignment.  All uses changed.
67004         This merges the 2005-10-28 md5 change into sha1.
67005
67006 2006-01-11  Jim Meyering  <jim@meyering.net>
67007
67008         Sync from coreutils.
67009         * lib/md5.c (OP): Fix spacing.
67010
67011 2006-01-11  Bruno Haible  <bruno@clisp.org>
67012
67013         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67014         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67015         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67016
67017 2006-01-11  Bruno Haible  <bruno@clisp.org>
67018
67019         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67020         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67021         the "early" section as well.
67022
67023 2006-01-11  Bruno Haible  <bruno@clisp.org>
67024
67025         Avoid "ar: no archive members specified" error on MacOS X.
67026         * gnulib-tool (func_modules_add_dummy): New function.
67027         (func_import, func_create_testdir): Invoke it.
67028
67029 2006-01-11  Bruno Haible  <bruno@clisp.org>
67030
67031         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67032         with $auxdir in AC_CONFIG_FILES statements.
67033
67034 2006-01-11  Bruno Haible  <bruno@clisp.org>
67035
67036         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67037         Initialize also noinst_HEADERS to empty.
67038
67039 2006-01-11  Bruno Haible  <bruno@clisp.org>
67040
67041         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67042         variables.
67043         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67044         autoreconf.
67045
67046 2006-01-11  Bruno Haible  <bruno@clisp.org>
67047
67048         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67049         overridable by the user.
67050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67051
67052 2006-01-10  Simon Josefsson  <jas@extundo.com>
67053
67054         * modules/sys_socket: New file.
67055
67056 2006-01-10  Simon Josefsson  <jas@extundo.com>
67057
67058         * m4/sys_socket_h.m4: New file.
67059
67060 2006-01-10  Simon Josefsson  <jas@extundo.com>
67061
67062         * lib/socket_.h: New file.
67063
67064 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67065
67066         * modules/readutmp (Maintainer): Add myself.
67067
67068 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67069
67070         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67071         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67072         People who are still concerned with buggy memcmp implementations
67073         can invoke gl_FUNC_MEMCMP themselves.
67074
67075 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67076
67077         * lib/regex_internal.h (BITSET_WORD_BITS):
67078         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67079         preprocessor mishandles large unsigned values as if they were signed.
67080         Problem reported by Claudio Fontana in
67081         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67082
67083 2006-01-10  Jim Meyering  <jim@meyering.net>
67084
67085         Avoid the double-free (first in fts_read, second in fts_close) that
67086         would occur when an `active' directory is made inaccessible (e.g.,
67087         via chmod a-x) during a traversal.
67088         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67089         before returning.  Reproduce this failure by
67090         mkdir -p a/b; cd a; chmod a-x . b
67091         Reported by Stavros Passas.
67092
67093         Sync from coreutils.
67094         * lib/sha1.c: Tweak grammar in a comment.
67095
67096 2006-01-10  Jim Meyering  <jim@meyering.net>
67097
67098         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67099         Patch by Joerg Sonnenberger.
67100
67101 2006-01-10  Bruno Haible  <bruno@clisp.org>
67102
67103         * modules/readutmp: Depend on module free.
67104         * modules/strtok_r: Depend on module restrict.
67105
67106 2006-01-10  Bruno Haible  <bruno@clisp.org>
67107
67108         * modules/gettext (configure.ac): Add an invocation of
67109         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67110
67111 2006-01-10  Bruno Haible  <bruno@clisp.org>
67112
67113         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67114         Reported by Werner Lemberg <wl@gnu.org>.
67115
67116 2006-01-10  Bruno Haible  <bruno@clisp.org>
67117
67118         * lib/localcharset.c: Update from GNU gettext.
67119
67120 2006-01-10  Bruno Haible  <bruno@clisp.org>
67121
67122         * lib/argp.h (__const): Remove macro. Use const instead.
67123         * lib/argp-fmtstream.h (__const): Likewise.
67124         * lib/glob_.h (__const): Remove macro.
67125         * lib/glob-libc.h: Use const instead of __const.
67126
67127 2006-01-10  Bruno Haible  <bruno@clisp.org>
67128
67129         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67130         variable.
67131         Needed to avoid an automake error regarding the 'gettext' module.
67132
67133 2006-01-09  Simon Josefsson  <jas@extundo.com>
67134
67135         * modules/inet_ntop (Depends-on): Add restrict.
67136
67137 2006-01-09  Simon Josefsson  <jas@extundo.com>
67138
67139         * modules/gc-rijndael-tests (License): Put under LGPL.
67140
67141         * modules/gc-des-tests (License): Likewise.
67142
67143         * modules/gc-arcfour-tests (License): Likewise.
67144
67145         * modules/gc-arctwo-tests (License): Likewise.
67146
67147         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67148
67149         * modules/gc-hmac-sha1-tests (Files): Likewise.
67150
67151         * modules/gc-hmac-md5-tests (License): Likewise.
67152
67153         * modules/gc-sha1-tests (License): Likewise.
67154
67155         * modules/gc-md5-tests (License): Likewise.
67156
67157         * modules/gc-md4-tests (License): Likewise.
67158
67159         * modules/gc-md2-tests (License): Likewise.
67160
67161         * modules/gc-tests (License): Likewise.
67162
67163         * modules/des-tests (License): Likewise.
67164
67165         * modules/md4-tests (License): Likewise.
67166
67167         * modules/md2-tests (License): Likewise.
67168
67169 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67170
67171         Sync from coreutils:
67172
67173         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67174         * modules/lib-ignore: New file.
67175         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67176         chdir-safer.m4, lchmod.m4.
67177         * modules/openat: Add mkdirat.c, openat-priv.h.
67178
67179 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67180
67181         Sync from coreutils.
67182         * m4/lib-ignore.m4: New file.
67183         * m4/lchmod.m4: New file.
67184
67185 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67186
67187         Sync from coreutils.
67188         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67189         for write access: POSIX says that must fail.
67190         * lib/fts.c (diropen): Likewise.
67191         * lib/save-cwd.c (save_cwd): Likewise.
67192         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67193         well, for minor improvements on hosts that lack O_DIRECTORY.
67194         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67195         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67196         Fall back on chown if open failed with EACCES.
67197
67198         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67199         Report an error at compile-time if only a 1-second nominal clock
67200         resolution is found.
67201
67202         * lib/lchmod.h: New file.
67203         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67204         (make_dir_parents): Use lchown rather than chown, and
67205         lchmod rather than chmod.
67206
67207         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67208         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67209         "proc" reported by n0dalus.
67210
67211         * lib/mountlist.c: Include <limits.h>.
67212         (dev_from_mount_options)
67213         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67214         New function.  It no longer assumes "dev=" has the System V meaning
67215         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67216         (read_file_system_list)
67217         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67218         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67219         dev= in that case.
67220
67221         * lib/posixtm.h (PDS_PRE_2000): New macro.
67222         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67223         allow_century.  All usages changed.  Reject dates outside the range
67224         1969-1999 if PDS_PRE_2000 is used.
67225
67226 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67227
67228         Sync from coreutils.
67229         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67230         (Time of day items): Mention the possibility of leap seconds.
67231         Problem reported by Dr. David Alan Gilbert.
67232
67233 2006-01-09  Jim Meyering  <jim@meyering.net>
67234
67235         Sync from coreutils.
67236
67237         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67238
67239         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67240
67241         * lib/modechange.c (mode_compile): Reject an invalid mode string
67242         that starts with an octal digit.  From Andreas Gruenbacher.
67243
67244         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67245         and dup to open_safer and dup_safer, respectively.
67246         (openat_permissive): Fix typo in comment.
67247
67248         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67249         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67250         (_): Remove; no longer needed.
67251         (openat): Renamed from rpl_openat; no need for rpl_openat
67252         since openat.h renames openat for us.
67253         Replace most of the body with a call to openat_permissive,
67254         to avoid duplicate code.
67255         Port to (probably hypothetical) environments were mode_t is
67256         wider than int.
67257         (openat_permissive): Require mode arg, so that we can check
67258         types better.  Put it just after flags.  Change cwd failure
67259         indicator from pointer-to-bool to pointer-to-errno-value.
67260         All callers changed.
67261         Invoke openat_save_fail and/or openat_restore_fail if
67262         cwd_errno is null, so that openat can call us.
67263         (openat_permissive, fdopendir, fstatat, unlinkat):
67264         Simplify errno handling to avoid some duplicate code,
67265         as it's OK to set errno on success.
67266         * lib/openat.h: Revamp code so that function macros depend on
67267         __OPENAT_PREFIX only, not also on AT_FDCWD.
67268         (openat_ro): Remove.  Caller changed to use openat_permissive.
67269         (openat_permissive): Now a macro, if not a function.
67270         (openat_restore_fail, openat_save_fail): Now always functions,
67271         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67272
67273         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67274         and openat.c.
67275         * lib/mkdirat.c: Include openat-priv.h.
67276         Remove definitions of macros defined therein.
67277         * lib/openat.c: Likewise.
67278
67279         * lib/mkdirat.c (mkdirat): New file and function.
67280         * lib/openat.h (mkdirat): Declare.
67281
67282         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67283
67284         * lib/openat.h (openat_permissive): Declare.
67285         (openat_ro): Define.
67286
67287         * lib/openat.c (EXPECTED_ERRNO): New macro.
67288         (openat_permissive): New function -- used in remove.c rewrite.
67289         (all functions): Set errno just before returning, only if there
67290         was an actual failure.
67291         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67292
67293         Emulate openat-family functions using Linux's procfs, if possible.
67294         Idea and some code based on Ulrich Drepper's glibc changes.
67295
67296         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67297         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67298         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67299         before falling back on save_cwd and restore_cwd.
67300         (fdopendir, fstatat, unlinkat): Likewise.
67301
67302         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67303         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67304
67305         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67306         as second argument to va_arg.  Otherwise, some versions of gcc
67307         warn that `if this code is reached, the program will abort'.
67308
67309 2006-01-09  Jim Meyering  <jim@meyering.net>
67310
67311         Sync from coreutils.
67312         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67313         Require openat-priv.h.
67314
67315 2006-01-09  Bruno Haible  <bruno@clisp.org>
67316
67317         * modules/strnlen (Include): Use strnlen.h.
67318
67319 2006-01-09  Bruno Haible  <bruno@clisp.org>
67320
67321         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67322
67323 2006-01-09  Bruno Haible  <bruno@clisp.org>
67324
67325         * lib/sysexit_.h (EX_OK): New macro.
67326         Suggested by Martin Lambers <marlam@marlam.de>.
67327
67328 2006-01-09  Bruno Haible  <bruno@clisp.org>
67329
67330         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67331         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67332
67333 2006-01-09  Bruno Haible  <bruno@clisp.org>
67334
67335         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67336         numbers.
67337
67338 2006-01-09  Bruno Haible  <bruno@clisp.org>
67339
67340         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67341         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67342         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67343         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67344
67345 2006-01-09  Bruno Haible  <bruno@clisp.org>
67346
67347         * build-aux/javacomp.sh.in: New file, moved from lib/.
67348         * modules/javacomp-script (Files): Update.
67349         (configure.ac): Add AC_CONFIG_FILES invocation.
67350         (EXTRA_DIST): Remove variable.
67351
67352         * build-aux/javaexec.sh.in: New file, moved from lib/.
67353         * modules/javaexec (Files): Update.
67354         (configure.ac): Add AC_CONFIG_FILES invocation.
67355         (EXTRA_DIST): Remove javaexec.sh.in.
67356
67357         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67358         * modules/csharpcomp-script (Files): Update.
67359         (configure.ac): Add AC_CONFIG_FILES invocation.
67360         (EXTRA_DIST): Remove variable.
67361
67362         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67363         * modules/csharpexec (Files): Update.
67364         (configure.ac): Add AC_CONFIG_FILES invocation.
67365         (EXTRA_DIST): Remove csharpexec.sh.in.
67366
67367 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67368
67369         Sync from coreutils.
67370
67371         Add POSIX ACL support
67372         * lib/acl.h (copy_acl, set_acl): Add declarations.
67373         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67374         systems other than Linux.
67375         (chmod_or_fchmod): New function: use fchmod when possible,
67376         and chmod otherwise.
67377         (file_has_acl): Add a POSIX ACL implementation, with a
67378         Linux-specific subcase.
67379         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67380         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67381         acls are unsupported.
67382         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67383         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67384         are unsupported.
67385
67386 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67387
67388         Sync from coreutils.
67389         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67390
67391 2006-01-07  Bruno Haible  <bruno@clisp.org>
67392
67393         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67394         gl_EARLY.
67395
67396 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67397
67398         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67399         Problem reported for Mingw by Mark Junker.
67400
67401 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67402
67403         * README: Gnulib normally doesn't generate a tarball.
67404
67405 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67408         long int, not int, for nanosecond counts, so that people who are
67409         used to POSIX struct timespec won't be surprised.  Reported by Jim
67410         Meyering.
67411
67412 2005-12-28  Bruno Haible  <bruno@clisp.org>
67413
67414         * build-aux/config.rpath: Update from GNU gettext.
67415
67416 2005-12-16  Jim Meyering  <jim@meyering.net>
67417
67418         * modules/fprintftime: New module.
67419         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67420
67421 2005-12-16  Jim Meyering  <jim@meyering.net>
67422
67423         * m4/fprintftime.m4: New file.
67424
67425 2005-12-16  Jim Meyering  <jim@meyering.net>
67426
67427         * lib/fprintftime.c, lib/fprintftime.h: New files.
67428
67429 2005-12-15  Simon Josefsson  <jas@extundo.com>
67430
67431         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67432         new m4/socklen.m4.
67433
67434 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67435
67436         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67437         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67438
67439 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67440
67441         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67442         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67443         struct uparams is valid. Fall back to the default values if it is
67444         not.
67445
67446 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67447
67448         * modules/argp (Files): Add argp-pin.c
67449         (Depends-on): dirname
67450         (lib_SOURCES): Add argp-pin.c
67451
67452 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67453
67454         * m4/argp.m4:  Check if program_invocation_name and
67455         program_invocation_short_name are declared and define appropriate
67456         macros if they are not.
67457
67458 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67459
67460         * lib/argp-help.c (__argp_base_name): New function
67461         (__argp_short_program_name): Rewrite using __argp_base_name
67462         * lib/argp-namefrob.h: Define program_invocation_name and
67463         program_invocation_short_name if requested
67464         (__argp_base_name): Add prototype
67465         * lib/argp-parse.c (argp_def): Use gettext wrappers
67466         (argp_default_parser): Use __argp_base_name
67467         * lib/argp-pin.c: New file. Defines program_invocation_name and
67468         program_invocation_short_name on systems that lack them.
67469
67470 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67471
67472         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67473         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67474         porting problem reported by Georg Schwarz in
67475         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67476
67477 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67478
67479         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67480         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67481         porting problem reported by Georg Schwarz in
67482         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67483
67484 2005-12-05  Bruno Haible  <bruno@clisp.org>
67485
67486         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67487         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67488         Reported by Mark Junker <mjscod@gmx.de>.
67489
67490 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67491
67492         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67493         Use implementation from Albert Chin, with some
67494         comments/corrections by Stepan Kasal and myself.
67495
67496 2005-12-02  Bruno Haible  <bruno@clisp.org>
67497
67498         * gnulib-tool (func_import): Accept GPLed build tool modules when
67499         --lgpl is given.
67500         * modules/csharpcomp-script: New file.
67501         * modules/csharpcomp: Depend on it.
67502         * modules/javacomp-script: New file.
67503         * modules/javacomp: Depend on it.
67504         Suggested by Simon Josefsson.
67505
67506 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67507
67508         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67509         statement, to work around an HP-UX 10.20 compiler bug reported by
67510         Peter O'Gorman.
67511
67512 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67513
67514         * modules/savedir (Depends-on): Add openat.
67515
67516 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67517
67518         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67519         (uintmax_t) [defined uintmax_t]: Do not declare.
67520         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67521         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67522         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67523         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67524         sake of portability to weird hosts that C allows (though we don't
67525         know of any practical examples).
67526
67527         * lib/savedir.h (fdsavedir): New decl.
67528         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67529         contains most of the former guts of savedir.
67530         (savedir): Use savedirstream.
67531         Include "openat.h".
67532
67533 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67534
67535         * modules/obstack (Files): Add m4/ulonglong.m4.
67536         Problem reported by Davide Angelocola.
67537
67538 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
67539
67540         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
67541         coreutils no longer futzes with rounding modes.
67542
67543 2005-11-14  Jim Meyering  <jim@meyering.net>
67544
67545         * lib/mkstemp-safer.c: Include <config.h>, required for possible
67546         replacement of mkstemp.
67547
67548 2005-11-10  Simon Josefsson  <jas@extundo.com>
67549
67550         * lib/readline.c: Remove EOL.
67551
67552 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67553
67554         * modules/gethrxtime (Depends-on): Add gettime.
67555
67556 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67557
67558         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
67559         or gettimeofday; no longer needed.
67560
67561 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67562
67563         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
67564         time business.
67565         (gethrxtime) [! (HAVE_NANOUPTIME
67566         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
67567         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
67568         our own approximation.
67569
67570 2005-11-08  Eric Blake  <ebb9@byu.net>
67571
67572         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67573
67574 2005-11-08  Eric Blake  <ebb9@byu.net>
67575
67576         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67577
67578 2005-11-04  Bruno Haible  <bruno@clisp.org>
67579
67580         * gnulib-tool: Implement --update mode.
67581
67582 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67583
67584         Fix porting problem reported by Theodoros V. Kalamatianos.
67585         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
67586         Don't assume that futimes failing means we must fail.
67587
67588 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67589
67590         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
67591         variables to suggest the intended function of the PATH_MAX check.
67592
67593 2005-10-30  Kean Johnston  <jkj@sco.com>
67594
67595         Trivial changes to support SCO systems.
67596         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
67597         as PATH_MAX.
67598         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
67599         where __ptr is null when no I/O is pending.
67600
67601 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67602
67603         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
67604         leave errno alone.  Problem reported by Dmitry V. Levin.
67605
67606 2005-10-28  Simon Josefsson  <jas@extundo.com>
67607
67608         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
67609         Test more.
67610
67611         * tests/test-gc-md2.c, tests/test-md2.c: New files.
67612
67613         * modules/md2, modules/md2-tests: New files.
67614
67615 2005-10-28  Simon Josefsson  <jas@extundo.com>
67616
67617         * m4/inet_ntop.m4: More tests.
67618
67619         * m4/gc-md2.m4, md2.m4: New file.
67620
67621 2005-10-28  Simon Josefsson  <jas@extundo.com>
67622
67623         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
67624         "restrict" keywords, as per POSIX.  Protect the function
67625         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
67626         Don't use K&R prototypes.  Check the sprintf return values.
67627         Re-define EAFNOSUPPORT if not present.  Indent.
67628
67629         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
67630         suggested by Bruno Haible <bruno@clisp.org>.
67631
67632         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
67633
67634         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
67635
67636         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
67637         libgcrypt).
67638
67639         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
67640
67641         * lib/md2.h, lib/md2.c: New files.
67642
67643 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
67646         errno alone.  Problem reported by Frederic Jolliton.
67647
67648 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67649
67650         * modules/verify (License): Change from GPL to LGPL.  This is a
67651         tiny module and there are apparently near-equivalents that are
67652         under the BSD license.
67653
67654 2005-10-24  Simon Josefsson  <jas@extundo.com>
67655
67656         * modules/sha1: Relicense to LGPL.
67657
67658 2005-10-24  Simon Josefsson  <jas@extundo.com>
67659
67660         * lib/md4.h: Shrink buffer size, now that we changed the type.
67661
67662 2005-10-23  Simon Josefsson  <jas@extundo.com>
67663
67664         * gnulib-tool (func_import): Fix --tests-base.
67665
67666 2005-10-22  Simon Josefsson  <jas@extundo.com>
67667
67668         * modules/arcfour (Depends-on): Need stdint.
67669
67670 2005-10-22  Simon Josefsson  <jas@extundo.com>
67671
67672         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
67673         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
67674
67675 2005-10-22  Simon Josefsson  <jas@extundo.com>
67676
67677         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
67678         suggested by Bruno Haible <bruno@clisp.org>.
67679
67680 2005-10-22  Simon Josefsson  <jas@extundo.com>
67681
67682         * lib/crc.h: Include stddef.h, for size_t.
67683
67684 2005-10-22  Simon Josefsson  <jas@extundo.com>
67685
67686         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
67687         arcfour_context struct (simplify test vector testing in GNU
67688         Shishi).
67689
67690 2005-10-21  Simon Josefsson  <jas@extundo.com>
67691
67692         * modules/des, modules/des-tests: New files.
67693
67694         * modules/gc-des, modules/gc-des-tests: New files.
67695
67696         * tests/test-des.c, tests/test-gc-des.c: New file.
67697
67698 2005-10-21  Simon Josefsson  <jas@extundo.com>
67699
67700         * modules/arctwo, modules/arctwo-tests: New files.
67701
67702         * tests/test-arctwo.c: New file.
67703
67704         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
67705
67706         * tests/test-gc-arctwo.c: New file.
67707
67708 2005-10-21  Simon Josefsson  <jas@extundo.com>
67709
67710         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
67711         Bruno Haible <bruno@clisp.org>.
67712
67713         * m4/gc-des.m4: New file.
67714
67715 2005-10-21  Simon Josefsson  <jas@extundo.com>
67716
67717         * m4/arctwo.m4: New file.
67718
67719         * m4/gc-arctwo.m4: New file.
67720
67721 2005-10-21  Simon Josefsson  <jas@extundo.com>
67722
67723         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
67724         block.
67725
67726 2005-10-21  Simon Josefsson  <jas@extundo.com>
67727
67728         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
67729         <bruno@clisp.org>.
67730
67731         * lib/hmac-sha1.c (hmac_sha1): Likewise.
67732
67733         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
67734         Bruno Haible <bruno@clisp.org>.
67735
67736         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
67737         <bruno@clisp.org>.
67738
67739 2005-10-21  Simon Josefsson  <jas@extundo.com>
67740
67741         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
67742
67743 2005-10-21  Simon Josefsson  <jas@extundo.com>
67744
67745         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
67746
67747 2005-10-21  Simon Josefsson  <jas@extundo.com>
67748
67749         * lib/des.h, lib/des.c: New files.
67750
67751         * lib/gc-gnulib.c: Support DES.c
67752
67753 2005-10-21  Simon Josefsson  <jas@extundo.com>
67754
67755         * lib/arctwo.h, lib/arctwo.c: New files.
67756
67757         * lib/gc-gnulib.c: Support ARCTWO.
67758
67759 2005-10-21  Simon Josefsson  <jas@extundo.com>
67760
67761         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
67762         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67763
67764 2005-10-21  Simon Josefsson  <jas@extundo.com>
67765
67766         * gnulib-tool (func_import, func_create_testdir): Define automake
67767         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
67768         Makefile.am snippet),
67769         suggested by Bruno Haible <bruno@clisp.org>.
67770
67771         * modules/gc (Makefile.am): Use it.
67772
67773 2005-10-21  Bruno Haible  <bruno@clisp.org>
67774
67775         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
67776         patch.
67777
67778 2005-10-19  Simon Josefsson  <jas@extundo.com>
67779
67780         * tests/test-gc-rijndael.c: New file.
67781
67782         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
67783
67784 2005-10-19  Simon Josefsson  <jas@extundo.com>
67785
67786         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
67787         interface too.
67788
67789 2005-10-19  Simon Josefsson  <jas@extundo.com>
67790
67791         * tests/test-gc-arcfour.c: New file.
67792
67793         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
67794
67795 2005-10-19  Simon Josefsson  <jas@extundo.com>
67796
67797         * modules/gc-md4, modules/gc-md4-tests: New file.
67798
67799         * tests/test-gc-md4.c: New file.
67800
67801 2005-10-19  Simon Josefsson  <jas@extundo.com>
67802
67803         * m4/gc-md4.m4: New file.
67804
67805 2005-10-19  Simon Josefsson  <jas@extundo.com>
67806
67807         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
67808         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
67809         <kasal@ucw.cz>.
67810
67811 2005-10-19  Simon Josefsson  <jas@extundo.com>
67812
67813         * m4/gc-arcfour.m4: New file.
67814
67815         * m4/gc-rijndael.m4: New file.
67816
67817 2005-10-19  Simon Josefsson  <jas@extundo.com>
67818
67819         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
67820
67821 2005-10-19  Simon Josefsson  <jas@extundo.com>
67822
67823         * lib/gc-gnulib.c: Support ARCFOUR.
67824
67825 2005-10-19  Simon Josefsson  <jas@extundo.com>
67826
67827         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
67828         support.
67829
67830         * lib/gc.h: Add ECB enum type.
67831
67832         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
67833
67834 2005-10-18  Simon Josefsson  <jas@extundo.com>
67835
67836         * tests/test-md5.c: New file.
67837
67838         * modules/md5-tests: New file.
67839
67840 2005-10-18  Simon Josefsson  <jas@extundo.com>
67841
67842         * tests/test-md4.c: New file.
67843
67844         * modules/md4, modules/md4-tests: New files.
67845
67846 2005-10-18  Simon Josefsson  <jas@extundo.com>
67847
67848         * m4/md4.m4: New file.
67849
67850 2005-10-18  Simon Josefsson  <jas@extundo.com>
67851
67852         * lib/md4.h, lib/md4.c: New files, based on md5.?.
67853
67854 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
67855
67856         * gnulib-tool (func_create_testdir): Omit the second check whether
67857         BUILT_SOURCES in nonempty.
67858
67859 2005-10-17  Simon Josefsson  <jas@extundo.com>
67860
67861         * tests/test-rijndael.c: New file.
67862
67863 2005-10-17  Simon Josefsson  <jas@extundo.com>
67864
67865         * modules/sha1: Depend on stdint instead of md5.
67866
67867         * modules/md5: Depend on stdint, remove uint32_t.
67868
67869 2005-10-17  Simon Josefsson  <jas@extundo.com>
67870
67871         * modules/gc-sha1-tests: New file.
67872
67873         * tests/test-gc-sha1.c: New file.
67874
67875 2005-10-17  Simon Josefsson  <jas@extundo.com>
67876
67877         * m4/md5.m4: Remove call to uint32_t.m4.
67878
67879 2005-10-17  Simon Josefsson  <jas@extundo.com>
67880
67881         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
67882
67883         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
67884         md5.h.
67885
67886         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
67887
67888         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
67889
67890 2005-10-17  Simon Josefsson  <jas@extundo.com>
67891
67892         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
67893
67894 2005-10-17  Simon Josefsson  <jas@extundo.com>
67895
67896         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
67897
67898 2005-10-17  Simon Josefsson  <jas@extundo.com>
67899
67900         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
67901
67902         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
67903
67904 2005-10-17  Bruno Haible  <bruno@clisp.org>
67905
67906         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
67907         that it can also be used in a test.
67908
67909 2005-10-16  Bruno Haible  <bruno@clisp.org>
67910
67911         * gnulib-tool (func_emit_tests_Makefile_am): Also define
67912         TESTS_ENVIRONMENT, so that individual tests can augment it.
67913
67914         * gnulib-tool (func_create_testdir): Use an intermediate target for
67915         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
67916         macros, like $(ALLOCA_H), which cannot be passed through the command
67917         line.
67918
67919 2005-10-15  Simon Josefsson  <jas@extundo.com>
67920
67921         * modules/rijndael-tests: New file.
67922
67923         * modules/rijndael: New file.
67924
67925 2005-10-15  Simon Josefsson  <jas@extundo.com>
67926
67927         * m4/rijndael.m4: New file.
67928
67929 2005-10-15  Simon Josefsson  <jas@extundo.com>
67930
67931         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
67932
67933         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
67934
67935 2005-10-14  Simon Josefsson  <jas@extundo.com>
67936
67937         * tests/test-arcfour.c: New file.
67938
67939         * modules/arcfour, modules/arcfour-tests: New files.
67940
67941 2005-10-14  Simon Josefsson  <jas@extundo.com>
67942
67943         * m4/arcfour.m4: New file.
67944
67945 2005-10-14  Simon Josefsson  <jas@extundo.com>
67946
67947         * lib/arcfour.h, lib/arcfour.c: New files.
67948
67949 2005-10-14  Roland McGrath  <roland@redhat.com>
67950
67951         Import from libc.  [BZ #1331]
67952         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
67953         macro argument.
67954         Reported by Matej Vela <vela@debian.org>.
67955
67956 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67957
67958         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
67959         include <wchar.h>; no longer needed.
67960
67961 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67962
67963         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
67964
67965 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
67966         and  Ulrich Drepper  <drepper@redhat.com>
67967
67968         Import from libc.
67969         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
67970         instead of inline stream orientation test and two separate
67971         function calls.  Pay no attention to USE_IN_LIBIO.
67972
67973 2005-10-13  Simon Josefsson  <jas@extundo.com>
67974
67975         * modules/gc-hmac-md5-tests: New file.
67976
67977         * tests/test-gc-hmac-sha1.c: New file.
67978
67979         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
67980
67981         * modules/gc-hmac-md5-tests: New file.
67982
67983         * tests/test-gc-md5.c: New file.
67984
67985         * modules/gc-md5-tests: New file.
67986
67987 2005-10-13  Simon Josefsson  <jas@extundo.com>
67988
67989         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
67990         Move memory allocation outside of loop.
67991
67992 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
67993
67994         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
67995         intermediate directory is in a read-only file system.  Problem
67996         reported by Eric Blake.
67997
67998 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
67999
68000         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68001
68002 2005-10-12  Simon Josefsson  <jas@extundo.com>
68003
68004         * tests/test-hmac-sha1.c: New file.
68005
68006         * modules/hmac-sha1-tests: New file.
68007
68008         * modules/hmac-sha1: New file.
68009
68010 2005-10-12  Simon Josefsson  <jas@extundo.com>
68011
68012         * modules/gc-sha1: New file.
68013
68014 2005-10-12  Simon Josefsson  <jas@extundo.com>
68015
68016         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68017
68018         * tests/test-gc-pbkdf2-sha1.c: New file.
68019
68020 2005-10-12  Simon Josefsson  <jas@extundo.com>
68021
68022         * modules/gc-md5, modules/gc-hmac-md5: New files.
68023
68024         * modules/gc (Files): Remove md5, memxor and hmac files.
68025
68026 2005-10-12  Simon Josefsson  <jas@extundo.com>
68027
68028         * m4/gc-pbkdf2-sha1.m4: New file.
68029
68030         * m4/gc-hmac-sha1.m4: New file.
68031
68032         * m4/gc-sha1: New file.
68033
68034         * m4/hmac-sha1.m4: New file.
68035
68036 2005-10-12  Simon Josefsson  <jas@extundo.com>
68037
68038         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68039
68040         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68041
68042 2005-10-12  Simon Josefsson  <jas@extundo.com>
68043
68044         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68045         suggested by Bruno Haible <bruno@clisp.org>.
68046
68047 2005-10-12  Simon Josefsson  <jas@extundo.com>
68048
68049         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68050
68051 2005-10-12  Simon Josefsson  <jas@extundo.com>
68052
68053         * lib/gc-pbkdf2-sha1.c: New file.
68054
68055         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68056
68057 2005-10-12  Simon Josefsson  <jas@extundo.com>
68058
68059         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68060
68061         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68062
68063 2005-10-12  Simon Josefsson  <jas@extundo.com>
68064
68065         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68066         GC_USE_HMAC_MD5, respectively.
68067
68068         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68069         (gc_md5): Fix typo.
68070
68071         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68072
68073         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68074
68075         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68076
68077 2005-10-12  Bruno Haible  <bruno@clisp.org>
68078
68079         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68080         Reported by Stepan Kasal <kasal@ucw.cz>.
68081
68082 2005-10-11  Simon Josefsson  <jas@extundo.com>
68083
68084         * tests/test-crc.c: New file.
68085
68086         * modules/crc, modules/crc-tests: New files.
68087
68088 2005-10-11  Simon Josefsson  <jas@extundo.com>
68089
68090         * m4/crc.m4: New file.
68091
68092 2005-10-11  Simon Josefsson  <jas@extundo.com>
68093
68094         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68095
68096         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68097
68098         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68099
68100 2005-10-11  Simon Josefsson  <jas@extundo.com>
68101
68102         * lib/crc.h, lib/crc.c: New files.
68103
68104         * lib/gc.h (gc_hash_buffer): Add doc.
68105
68106 2005-10-11  Bruno Haible  <bruno@clisp.org>
68107
68108         * modules/c-strcasestr: New file.
68109         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68110
68111 2005-10-11  Bruno Haible  <bruno@clisp.org>
68112
68113         * modules/c-strcase: New file.
68114         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68115
68116 2005-10-11  Bruno Haible  <bruno@clisp.org>
68117
68118         * lib/strcasecmp.c: Include limits.h.
68119         (strcasecmp): Avoid integer overflow on exotic platforms.
68120         * lib/strncasecmp.c: Include limits.h.
68121         (strncasecmp): Avoid integer overflow on exotic platforms.
68122         Reported by Paul Eggert.
68123
68124 2005-10-11  Bruno Haible  <bruno@clisp.org>
68125
68126         * lib/c-strcasestr.h: New file, from GNU gettext.
68127         * lib/c-strcasestr.c: New file, from GNU gettext.
68128
68129 2005-10-11  Bruno Haible  <bruno@clisp.org>
68130
68131         * lib/c-strcase.h: New file, from GNU gettext.
68132         * lib/c-strcasecmp.c: New file, from GNU gettext.
68133         * lib/c-strncasecmp.c: New file, from GNU gettext.
68134
68135 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68136
68137         * modules/mempcpy (License): GPL -> LGPL.
68138         * modules/strchrnul (License): Likewise.
68139         * modules/sysexits (License): Likewise.
68140
68141 2005-10-08  Simon Josefsson  <jas@extundo.com>
68142
68143         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68144
68145 2005-10-07  Simon Josefsson  <jas@extundo.com>
68146
68147         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68148
68149 2005-10-06  Simon Josefsson  <jas@extundo.com>
68150
68151         * tests/test-hmac-md5.c: New file.
68152
68153         * modules/hmac-md5-tests: New file.
68154
68155         * modules/hmac-md5: New file.
68156
68157 2005-10-06  Simon Josefsson  <jas@extundo.com>
68158
68159         * m4/hmac-md5.m4: New file.
68160
68161         * m4/memxor.m4: Require gl_C_RESTRICT.
68162
68163 2005-10-06  Simon Josefsson  <jas@extundo.com>
68164
68165         * lib/memxor.c (memxor): Avoid casts and warnings.
68166
68167 2005-10-06  Simon Josefsson  <jas@extundo.com>
68168
68169         * lib/hmac-md5.c: New file.
68170
68171         * lib/hmac.h: New file.
68172
68173 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68174
68175         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68176         promotes to int, not unsigned int, to catch the AIX 5.3
68177         compiler bug.
68178
68179 2005-10-05  Simon Josefsson  <jas@extundo.com>
68180
68181         * modules/memxor: New file.
68182
68183         * modules/iconv (Files): Move config.rpath to havelib, it is used
68184         there.
68185
68186         * modules/havelib (Files): Add config.rpath.
68187
68188 2005-10-05  Simon Josefsson  <jas@extundo.com>
68189
68190         * m4/memxor.m4: New file.
68191
68192 2005-10-05  Simon Josefsson  <jas@extundo.com>
68193
68194         * lib/memxor.c (memxor): Fix compiler error.
68195
68196         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68197         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68198
68199         * lib/memxor.h, lib/memxor.c: New files.
68200
68201         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68202         we assume all systems have it, suggested by Jim Meyering
68203         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68204         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68205         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68206         same reasons.
68207
68208 2005-10-05  Simon Josefsson  <jas@extundo.com>
68209
68210         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68211
68212 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68213
68214         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68215         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68216         needed, since the source code now assumes these .h files.
68217
68218 2005-10-05  Derek Price  <derek@ximbiot.com>
68219
68220         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68221
68222 2005-10-05  Bruno Haible  <bruno@clisp.org>
68223
68224         * modules/stdint (License): Change to LGPL.
68225
68226 2005-10-04  Simon Josefsson  <jas@extundo.com>
68227
68228         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68229         D. Baushke" <mdb@gnu.org>.
68230
68231 2005-10-04  Bruno Haible  <bruno@clisp.org>
68232
68233         * lib/verify.h (verify_true): Provide alternative definition for C++.
68234
68235 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68236
68237         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68238         (SSIZE_MAX): New macro, if not already defined.
68239         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68240         than 2 GiB.
68241
68242 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68243
68244         Sync from coreutils.
68245         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68246         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68247         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68248         ULLONG_MAX doesn't work with 2.7.2.1.
68249
68250 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68251
68252         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68253         From Ben Pfaff.
68254
68255         * modules/exclude (Depends-on): Depend on verify.
68256         * modules/strtoimax (Depends-on): Likewise.
68257         * modules/utimecmp (Depends-on): Likewise.
68258
68259 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68260
68261         * lib/exclude.c: Include verify.h.
68262         (verify): Remove.  All callers changed to use verify.h's version.
68263         * lib/strtoimax.c: Likewise.
68264         * lib/utimecmp.c: Likewis.e
68265
68266         Sync from coreutils.
68267         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68268         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68269         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68270         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68271         bother returning ENOSYS if settimeofday or stime fails; just let
68272         them return whatever errno they want to return.
68273         * lib/utimens.c: Include unistd.h, for dup2.
68274         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68275         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68276
68277 2005-10-02  Jim Meyering  <jim@meyering.net>
68278
68279         Sync from coreutils.
68280         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68281         from glibc-2.2.5 that fails for read-only files.
68282
68283 2005-10-02  Jim Meyering  <jim@meyering.net>
68284
68285         Sync from coreutils.
68286         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68287         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68288         `#if HAVE_CONFIG_H'.
68289         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68290         Remove AT_FDCWD test.
68291         Do not consume the fd unless successful.
68292         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68293         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68294         block, so that we don't even try to compile it if settimeofday is
68295         available.  This works around a compilation failure on OSF1 V5.1,
68296         due to stime requiring a `long int*' while tv_sec is `int'.
68297
68298 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68299
68300         Sync from coreutils.
68301         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68302         against `yes', rather than just testing for nonempty.
68303
68304 2005-10-01  Simon Josefsson  <jas@extundo.com>
68305
68306         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68307         and Darwin.
68308
68309         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68310         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68311         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68312         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68313         Check if struct addrinfo is declared.
68314
68315 2005-10-01  Simon Josefsson  <jas@extundo.com>
68316
68317         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68318         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68319         AI_* and EAI_* definitions.  Protect function declarations.
68320
68321 2005-10-01  Jim Meyering  <jim@meyering.net>
68322
68323         Sync from coreutils.
68324
68325         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68326         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68327         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68328         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68329         in the inet and nsl libraries.  Required on Solaris 5.7.
68330
68331 2005-10-01  Jim Meyering  <jim@meyering.net>
68332
68333         Sync from coreutils.
68334         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68335         in the inet and nsl libraries.  Required on Solaris 5.7.
68336
68337 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68338
68339         * lib/getdelim.c (getdelim): Remove unused variables.
68340
68341 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68342
68343         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68344         so that the code works even with ancient cpp.  Portability problem
68345         with GCC 2.7.2.1 reported by Thomas M.Ott.
68346
68347 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68348
68349         * modules/regex (Depends-on): Add strcase.
68350
68351         * modules/gethostname (Licence): Change from GPL to LGPL, since
68352         gethostname.c is a trivial implementation of a standard library
68353         function.
68354         * modules/poll (License): Change from GPL to LGPL, since it's
68355         derived from LGPL code.
68356
68357 2005-09-27  Jim Meyering  <jim@meyering.net>
68358
68359         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68360         HAVE_CONFIG_H.
68361
68362         * lib/intprops.h (signed_type_or_expr__): Define.
68363         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68364         for unsigned types.
68365
68366 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68367
68368         * lib/verify.h (verify_expr): Remove, replacing with:
68369         (verify_true): New macro that returns true instead of void.
68370         (verify_type__): Remove.
68371         (verify): Use verify_true rather than verify_type__.
68372
68373 2005-09-26  Bruno Haible  <bruno@clisp.org>
68374
68375         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68376         is necessary.
68377         (lib_SOURCES): Remove mbchar.c.
68378         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68379         (Files): Add m4/mbrtowc.m4.
68380         * modules/mbiter: Likewise.
68381         * modules/mbuiter: Likewise.
68382
68383 2005-09-26  Bruno Haible  <bruno@clisp.org>
68384
68385         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68386         compile mbchar.c if they are not both present.
68387         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68388         * m4/mbiter.m4 (gl_MBITER): Likewise.
68389         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68390         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68391         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68392
68393 2005-09-25  Jim Meyering  <jim@meyering.net>
68394
68395         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68396         also uses socklen_t.
68397
68398 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68399
68400         * lib/utimens.c (ENOSYS): Define if not already defined.
68401         (futimens): Support having a null PATH if the file descriptor
68402         is nonnegative.
68403
68404         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68405         Remove.
68406         (__attribute): Define to empty unless GCC 3.1 or later.
68407         This works around a core dump on OpenBSD 3.4, which has GCC
68408         2.95.3, which dumps core when given __attribute__(()).  It also
68409         simplifies other tests, since we really don't want to bother with
68410         worrying about which ancient version of GCC supported what.
68411         Original problem reported by Yoann Vandoorselaere, with part of
68412         the fix suggested by Derek Price.
68413
68414 2005-09-24  Jim Meyering  <jim@meyering.net>
68415
68416         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68417         so we can once again use a positive bitfield width of 1 -- now we
68418         don't have to explain why we were using a bitfield width of 2.
68419
68420 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68421
68422         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68423         and similarly for the other external symbols.  Problem reported
68424         by James Gallager.
68425
68426         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68427         bug reported by Jim Meyering.
68428
68429         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68430         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68431         not needed, since socklen is a prerequisite module.
68432
68433 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68434
68435         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68436         Problem reported by Eric Blake.
68437         (getaddrinfo): Initialize se so that it's not garbage.
68438         Redo internal storage allocation so that it doesn't make unportable
68439         assumptions about alignment.
68440         Fix a memory leak.
68441
68442         * lib/utimens.c (futimens): Use futimesat if available.
68443         Prefer it to futimes since it doesn't have the futimes bug.
68444
68445         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68446         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68447         Instead, declare a function that returns a pointer to an array,
68448         and use verify_type__ to declare the size of the array.
68449         Problem and germ of a solution reported by Bruno Haible.
68450         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68451         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68452
68453 2005-09-23  Jim Meyering  <jim@meyering.net>
68454
68455         Sync from coreutils.
68456         Correct build failure (socklen_t not defined) on at least
68457         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
68458         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
68459
68460 2005-09-23  Jim Meyering  <jim@meyering.net>
68461
68462         * modules/getaddrinfo (Depends-on): Add socklen.
68463
68464 2005-09-23  Bruno Haible  <bruno@clisp.org>
68465
68466         * tests/test-verify.c: New file.
68467
68468 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68469
68470         Sync from coreutils.
68471
68472         * modules/argmatch (Depends-on): Add verify.
68473         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68474         unistd-safer.
68475         * modules/save-cwd (Depends-on): Likewise.
68476
68477         * modules/openat (Files): Add lib/openat-die.c.
68478         (Depends-on): Remove error, exitfail.
68479         Add dirname.
68480
68481         * modules/verify: New file.
68482         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68483         with "verify" module.
68484
68485 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68486
68487         Sync from coreutils.
68488
68489         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68490         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68491         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68492         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68493         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68494         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68495         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68496         Don't bother checking for string.h, stdlib.h, unistd.h.
68497         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68498         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68499         module's job.
68500         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68501         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68502
68503         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68504         (gl_GETDATE): Use it.
68505
68506         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68507
68508 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         Sync from coreutils.
68511
68512         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68513         stat-time.h.
68514         * lib/argmatch.h: Include verify.h
68515         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68516         (ARGMATCH_ASSERT): Remove; unused.
68517         * lib/canonicalize.c: Assume STDC_HEADERS.
68518         * lib/exclude.c: Include "strcase.h".
68519         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68520         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68521         and stdio-safer.h.
68522         (getusershell): Call fopen, not fopen_safer.
68523         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68524         Do not include unistd-safer.h.
68525         (save_cwd): Don't call fd_safer; no longer needed
68526         now that we include fcntl--.h.
68527
68528         * lib/getdate.y (relative_time): New type.
68529         (RELATIVE_TIME_0): New constant.
68530         (parser_control): Use relative_time instead of doing it ourselves.
68531         (%union): Add new relative_time rel member.
68532         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68533         Now typeless.
68534         (relunit, relunit_snumber): Now of type rel.
68535         (zone, rel, relunit, get_date): Adjust to above changes.
68536
68537         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
68538         Do not include unistd-safer.h.
68539         (getloadavg): Don't call fd_safer; no longer needed
68540         now that we include fcntl--.h.
68541
68542         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
68543         (make_dir_parents): Treat ENOSYS like EEXIST.
68544
68545         Improve quality of diagnostics on restore_cwd failure.
68546         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
68547         (make_dir_parents): Last arg is now int * (for errno), not bool *.
68548         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
68549         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
68550         each time through the loop.  Do not diagnose restore_cwd failure;
68551         that is the caller's job (and perhaps the caller does not care).
68552
68553         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
68554         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
68555         If the file already exists but is not a directory, don't bother
68556         to try to make its parents.
68557         Close potential file descriptor leak if we can't chdir("/") (!).
68558         Don't always return true if chdir($PWD) fails; return true only
68559         if the requested action was done successfully (except for the
68560         chdir($PWD)).
68561         Don't log final directory unless we actually made it.
68562         Refactor to avoid duplicate code to fix up permissions.
68563         Don't attempt to fix up parent permissions if chdir($PWD) fails.
68564
68565         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
68566         to make it a bit faster and (I hope) clearer.
68567         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
68568         Fix bug in formats like %2N.
68569
68570         * lib/verify.h: New file.
68571
68572 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68573
68574         Sync from coreutils.
68575         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
68576
68577 2005-09-22  Jim Meyering  <jim@meyering.net>
68578
68579         Sync from coreutils.
68580
68581         * m4/lstat.m4 (gl_FUNC_LSTAT):
68582         Use AC_LIBSOURCES to require lstat.c and lstat.h.
68583         Remove obsolete comment.
68584         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
68585         * m4/xstrtod.m4: Likewise.
68586
68587         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
68588
68589 2005-09-22  Jim Meyering  <jim@meyering.net>
68590
68591         Sync from coreutils.
68592
68593         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
68594
68595         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
68596         the .tm_year member, since otherwise gcc-4.0 would now warn about
68597         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
68598
68599         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
68600         order to avoid an unsuppressible warning from gcc on 64-bit systems.
68601
68602         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
68603         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
68604         when run in a time zone for which daylight savings time is in effect
68605         for the starting date.
68606
68607         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
68608         stop us from restricting permissions of just-created absolute-named
68609         directories.
68610         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
68611         to restore initial working directory.
68612         * lib/mkdir-p.c (make_dir_parents): New parameter:
68613         different_working_dir, to tell caller if/when we change the working
68614         directory and are unable to return to the initial one.
68615         * lib/mkdir-p.h (make_dir_parents): Update prototype.
68616         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
68617         `return false'.  This fixes a bug introduced on 2004-07-30.
68618
68619         * lib/openat.c (fdopendir): Be sure to close the supplied
68620         file descriptor before returning.  This makes our replacement
68621         implementation a little closer to Solaris's, where fdopendir
68622         ties the file descriptor to the returned DIR* pointer.
68623         * lib/openat.c (unlinkat): New function.
68624         * lib/openat.h (unlinkat): Add prototype.
68625         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
68626         (openat_restore_fail): Rename from openat_restore_die.
68627         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
68628
68629         Provide an alternative to exiting immediately upon save_cwd or
68630         restore_cwd failure.  Now, an application can arrange e.g.,
68631         to perform a longjump in that case.
68632         * lib/openat.c: Include dirname.h.
68633         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
68634         (rpl_openat, fdopendir, fstatat): Call openat_save_die
68635         and openat_restore_die rather than calling error directly.
68636         Don't include "error.h" or "exitfail.h"; they're no longer needed.
68637
68638         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
68639         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
68640         define.
68641
68642         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
68643         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
68644                             int utc, int nanoseconds);
68645         Background:
68646         date should not have to allocate a megabyte of virtual memory to
68647         handle a format argument like +%1048575T.  When implemented with
68648         strftime, it must allocate such a buffer, use strftime to fill it
68649         in, print it, then free it.
68650         With fprintftime, it simply prints everything and exits.
68651         With no need for memory allocation, that's one fewer way to fail.
68652         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
68653         optional field width, not before, so we accept %9:z, not %:9z.
68654         (my_strftime): Be sure to use L_('x') for literals.
68655
68656         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
68657         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
68658         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
68659         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
68660         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
68661         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
68662         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
68663         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
68664         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
68665         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
68666         * lib/xgethostname.c, lib/xreadlink.c:
68667         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
68668
68669         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
68670         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
68671         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
68672         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68673         and don't include <sys/file.h>).
68674
68675 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
68676
68677         Sync from coreutils.
68678
68679         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
68680         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
68681         [!LDAV_DONE]: Avoid unused variable warning.
68682
68683 2005-09-21  Bruno Haible  <bruno@clisp.org>
68684
68685         * lib/unicodeio.h (unicode_to_mb): New declaration.
68686
68687 2005-09-20  Derek Price  <derek@ximbiot.com>
68688
68689         * lib/getaddrinfo.c: Don't include <netdb.h> included from
68690         getaddrinfo.h.
68691
68692 2005-09-20  Bruno Haible  <bruno@clisp.org>
68693
68694         * gnulib-tool: Remove trailing slashes from the values specified for
68695         --source-base, --m4-base, --tests-base, --aux-dir.
68696         Suggested by Simon Josefsson <jas@extundo.com>.
68697
68698 2005-09-20  Bruno Haible  <bruno@clisp.org>
68699
68700         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
68701         func_modules_to_filelist, func_import, func_create_testdir): Make all
68702         sorting results locale-independent, so that gnulib-cache.m4 doesn't
68703         change when gnulib-tool is invoked in a different locale.
68704
68705 2005-09-19  Simon Josefsson  <jas@extundo.com>
68706
68707         * m4/socklen.m4: Fix typo.
68708
68709 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68710
68711         Use a consistent style for including <config.h>.
68712         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
68713         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
68714         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
68715         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
68716         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
68717         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
68718         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
68719         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
68720         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
68721         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
68722         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
68723         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
68724         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
68725         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
68726         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
68727         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
68728         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
68729         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
68730         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
68731         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
68732         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
68733         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
68734         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
68735         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
68736         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
68737         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
68738         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
68739         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
68740         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
68741         lib/xstrtoumax.c, lib/yesno.c:
68742         Standardize inclusion of config.h.
68743         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
68744         lib/inttostr.h:  Removed inclusion of config.h from header files.
68745         * lib/inttostr.c:  Adjusted in-tree users.
68746         * lib/timespec.h: Remove superfluous warning to include config.h.
68747         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
68748         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
68749         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
68750         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
68751         config.h with HAVE_CONFIG_H.
68752
68753 2005-09-19  Jim Meyering  <jim@meyering.net>
68754
68755         * modules/pathmax (License): Change to LGPL.
68756
68757 2005-09-19  Derek Price  <derek@ximbiot.com>
68758
68759         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
68760
68761 2005-09-19  Bruno Haible  <bruno@clisp.org>
68762
68763         * gnulib-tool (import): Provide default for --tests-base.
68764
68765 2005-09-19  Bruno Haible  <bruno@clisp.org>
68766
68767         * doc/quote.texi: New file, extracted from gnulib.texi.
68768         * doc/ctime.texi: New file, extracted from gnulib.texi.
68769         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
68770         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
68771         * doc/gnulib.texi: Include them.
68772
68773 2005-09-18  Bruno Haible  <bruno@clisp.org>
68774
68775         Portability fix.
68776         * gnulib-tool (func_readlink): New function.
68777         (func_ln_if_changed): Use it.
68778
68779 2005-09-18  Bruno Haible  <bruno@clisp.org>
68780
68781         * gnulib-tool: Support --with-tests also with --import.
68782         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
68783         (func_import): Use variables $testsbase and $inctests. Emit a
68784         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
68785         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
68786         SUBDIRS += $testsdir.
68787         (func_create_testdir): Update.
68788
68789 2005-09-18  Bruno Haible  <bruno@clisp.org>
68790
68791         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
68792         instead of $dry_run.
68793         (func_cp_if_changed, func_mv_if_changed): Remove functions.
68794         (func_ln_if_changed): Don't handle dry-run here.
68795         (func_import): In dry-run mode, detect more precisely which actions
68796         would be performed, and don't use "...ing" verbs.
68797
68798 2005-09-18  Bruno Haible  <bruno@clisp.org>
68799
68800         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
68801         (func_import): Use join on two temporary files instead of three nested
68802         loops, in order to determine which files are new or old.
68803
68804 2005-09-18  Bruno Haible  <bruno@clisp.org>
68805
68806         * gnulib-tool (func_import): Comment out code that spits out the
68807         new files with --dry-run.
68808
68809 2005-09-18  Bruno Haible  <bruno@clisp.org>
68810
68811         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
68812
68813 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68814
68815         * lib/stat-time.h: New file.
68816         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
68817         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
68818         in a different way.
68819         (timespec_cmp): New function.
68820         * lib/utimecmp.c: Include stat-time.h.
68821         (SYSCALL_RESOLUTION): Depend on whether various struct stat
68822         members exist, not on the obsolescent ST_MTIM_NSEC.
68823         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
68824
68825 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68826
68827         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
68828
68829 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68830
68831         * MODULES.html.sh (File system functions): Add stat-time.
68832         * modules/stat-time: New file.
68833         * modules/timespec (Files): Remove m4/st_mtim.m4; this
68834         is now done in a different way, by the stat-time module.
68835         * modules/utimecmp (Depends-on): Add stat-time.
68836
68837 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68838
68839         * m4/st_mtim.m4: Remove.  Superseded by...
68840         * m4/stat-time.m4: New file.
68841         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
68842         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
68843
68844 2005-09-15  Derek Price  <derek@ximbiot.com>
68845
68846         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
68847
68848 2005-09-15  Derek Price  <derek@ximbiot.com>
68849
68850         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
68851         * lib/regex_internal.c: Ditto, using this...
68852         (__GNUC_PREREQ): ...new macro.
68853         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
68854         using...
68855         (__GNUC_PREREQ): ...this new macro.
68856
68857         * lib/strstr.h: Include string.h. Define strstr as a macro here.
68858
68859 2005-09-15  Derek Price  <derek@ximbiot.com>
68860             Paul Eggert  <eggert@cs.ucla.edu>
68861
68862         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
68863         changes, consolidating in...
68864         * lib/regex_internal.h: ...this file.
68865
68866 2005-09-13  Jim Meyering  <jim@meyering.net>
68867
68868         * lib/canon-host.c: Filter through gnu indent and reword comments
68869         slightly.
68870         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
68871
68872 2005-09-13  Derek Price  <derek@ximbiot.com>
68873
68874         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
68875         failure.
68876         Reported by Jim Meyering  <jim@meyering.net>.
68877
68878 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68879
68880         * lib/base64.c: Typo.
68881         (base64_encode): Put b64str in initialized data section.
68882
68883 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
68884
68885         Merge glibc and coreutils changes into gnulib, plus a few
68886         extra fixes.
68887         * lib/md5.c: Use #error rather than a string.
68888         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
68889         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
68890         (__attribute__): Define to empty for non recent-GCC.
68891         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
68892         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
68893         Renamed from their non-__ counterparts, with new macros replacing
68894         them if not _LIBC.  Add __THROW attribute.
68895         (rol): Remove.
68896         (struct md5_ctx): Align buffer if using GCC.
68897         * lib/sha1.h (struct sha1_ctx): Likewise.
68898         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
68899         The old name was backwards.
68900         (NOTSWAP): Remove; not used.
68901         (rol): New macro, moved here from md5.h.
68902         (sha1_process_block): Remove a FIXME that doesn't make sense.
68903
68904 2005-09-12  Derek Price  <derek@ximbiot.com>
68905
68906         Return usable errors from canon-host.
68907         * lib/canon-host.h: New file.
68908         * lib/canon-host.c (canon_host): Wrap...
68909         (canon_host_r): ...this new function, which now relies exclusively on
68910         getaddrinfo.
68911         (ch_strerror): New function.
68912         (last_cherror): New global.
68913         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
68914         interface.
68915         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
68916         void *.
68917         (freeaddrinfo): Free ai->ai_canonname when set.
68918
68919 2005-09-12  Derek Price  <derek@ximbiot.com>
68920
68921         Make canon-host require getaddrinfo.
68922         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
68923         AC_LIBSOURCE canon-host.h.  Call...
68924         (gl_PREREQ_CANON_HOST): ...this new function, which requires
68925         gl_GETADDRINFO.
68926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
68927
68928 2005-09-12  Derek Price  <derek@ximbiot.com>
68929
68930         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
68931         LGPL.
68932         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
68933
68934 2005-09-12  Derek Price  <derek@ximbiot.com>
68935
68936         * lib/gai_strerror.c: Include config.h when available.  Include
68937         getaddrinfo.h before other headers to test interface.
68938         Reported by Larry Jones <lawrence.jones@ugs.com>.
68939
68940 2005-09-12  Derek Price  <derek@ximbiot.com>
68941             Paul Eggert  <eggert@cs.ucla.edu>
68942
68943         * modules/glob (Files): Add glob-libc.h.
68944
68945 2005-09-12  Derek Price  <derek@ximbiot.com>
68946             Paul Eggert  <eggert@cs.ucla.edu>
68947
68948         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
68949         glob_.h, glob-libc.h.
68950         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
68951
68952 2005-09-12  Derek Price  <derek@ximbiot.com>
68953             Paul Eggert  <eggert@cs.ucla.edu>
68954
68955         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
68956         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
68957         protecting things that should be done only in gnulib contexts.
68958         * lib/glob_.h: New file, containing only the glob things needed for
68959         gnulib.
68960         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
68961         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
68962         (glob, globfree, glob_pattern_p): Now defined simply in terms of
68963         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
68964         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
68965         and to respect the namespace rules better.
68966
68967 2005-09-08  Simon Josefsson  <jas@extundo.com>
68968
68969         * modules/socklen: New file.
68970
68971 2005-09-08  Simon Josefsson  <jas@extundo.com>
68972
68973         * m4/socklen.m4: New file.
68974
68975 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68976
68977         * modules/utimens (Files): Add m4/utimbuf.m4, since
68978         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
68979         Reported by Sergey Poznyakoff.
68980
68981 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68982
68983         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
68984         definitions, since that's the preferred style in glibc.
68985         Fix a minor spacing issue, and update copyright notice to match
68986         glibc's.
68987
68988 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68989
68990         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
68991
68992 2005-09-06  Simon Josefsson  <jas@extundo.com>
68993
68994         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
68995         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
68996
68997 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68998
68999         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69000         warning.
69001
69002 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69003
69004         * config/srclist.txt: Add glibc bug 1302.
69005
69006 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69007
69008         Change bitset word type from unsigned int to unsigned long int,
69009         as this has better performance on typical 64-bit hosts.
69010         Port bitset code to hosts with unusual word sizes.
69011         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69012         (build_collating_symbol):
69013         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69014         argument is a bitset.  This is merely a style issue, but it makes
69015         it clearer that an entire array is expected.
69016         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69017         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69018         Port to the case where bitset_word is not the same as unsigned int.
69019         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69020         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69021         Likewise.
69022         * lib/regexec.c (check_dst_limits_calc_pos_1,
69023         check_subexp_matching_top):
69024         (build_trtable, group_nodes_into_DFAstates):
69025         Likewise.
69026         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69027         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69028         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69029         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69030         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69031         * lib/regcomp.c (optimize_subexps, lower_subexp):
69032         Work even if bitset_word has holes in its bitwise representation.
69033         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69034         * lib/regexec.c (check_dst_limits_calc_pos_1,
69035         check_subexp_matching_top):
69036         Likewise.
69037         * lib/regex_internal.c (re_string_reconstruct):
69038         Don't assume UCHAR_MAX == 255.
69039         * lib/regex_internal.h (bitset_set_all): Likewise.
69040         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69041         All uses changed.
69042         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69043         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69044         All uses changed.
69045         (BITSET_WORD_MAX): New macro.
69046         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69047         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69048         (bitset_empty, bitset_copy):
69049         Prefer sizeof (bitset) to multiplying it out ourselves.
69050         (bitset_not_merge): Remove; unused.
69051         (bitset_contain): Return bool, not unsigned int with one bit on.
69052         All callers changed.
69053         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69054         alignment than re_node_set; do this by defining a new internal
69055         type struct dests_alloc and using it to allocate memory.
69056
69057 2005-09-05  Bruno Haible  <bruno@clisp.org>
69058
69059         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69060         links.
69061
69062 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69063
69064         * modules/size_max (Makefile.am): Add size_max.h
69065
69066 2005-09-04  Derek Price  <derek@ximbiot.com>
69067
69068         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69069
69070 2005-09-03  Simon Josefsson  <jas@extundo.com>
69071
69072         * gnulib-tool: Fix typo.
69073
69074 2005-09-03  Simon Josefsson  <jas@extundo.com>
69075
69076         * config/srclist.txt: Add glibc bug 1293.
69077
69078 2005-09-03  Derek Price  <derek@ximbiot.com>
69079
69080         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69081         From Larry Jones <lawrence.jones@ugs.com>.
69082
69083 2005-09-02  Simon Josefsson  <jas@extundo.com>
69084
69085         * modules/socklen: New file.
69086
69087 2005-09-02  Simon Josefsson  <jas@extundo.com>
69088
69089         * modules/havelib: New module.
69090
69091         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69092         Use havelib.
69093
69094 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69095
69096         Check for arithmetic overflow when calculating sizes, to prevent
69097         some buffer-overflow issues.  These patches are conservative, in the
69098         sense that when I couldn't determine whether an overflow was possible,
69099         I inserted a run-time check.
69100         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69101         macros.
69102         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69103         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69104         (re_xnrealloc, re_x2nrealloc): New inline functions.
69105         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69106         parse_bracket_exp):
69107         (build_equiv_class, build_charclass): Check for arithmetic overflow
69108         in size expression calculations.
69109         * lib/regex_internal.c (re_string_realloc_buffers):
69110         (build_wcs_upper_buffer, re_node_set_add_intersect):
69111         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69112         (re_dfa_add_node, register_state): Likewise.
69113         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69114         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69115         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69116         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69117
69118 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69119
69120         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69121         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69122
69123 2005-09-02  Bruno Haible  <bruno@clisp.org>
69124
69125         Support for lib vs. lib64 distinction on biarch platforms.
69126         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69127         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69128         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69129
69130 2005-09-02  Bruno Haible  <bruno@clisp.org>
69131
69132         * gnulib-tool (import): In the other first-use case, provide defaults
69133         as well.
69134
69135 2005-09-02  Bruno Haible  <bruno@clisp.org>
69136
69137         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69138         patches not yet found in the latest gettext release.
69139
69140 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69141
69142         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69143         to avoid a collision with bits/local_lim.h in glibc.
69144         All uses changed.  Problem reported by Dmitry V. Levin in
69145         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69146
69147         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69148         bugs in int versus size_t comparisons.
69149         (re_string_context_at): Fix bug where the code assumed that
69150         Idx is signed.
69151
69152         Use bool where appropriate.
69153         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69154         All callers changed.
69155         (calc_eclosure_iter): Likewise, for ROOT arg.
69156         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69157         (build_charclass_op): Likewise, for NON_MATCH arg.
69158         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69159         (re_string_construct_common): Likewise, for ICASE arg.
69160         * lib/regexec.c (re_search_2_stub, re_search_stub):
69161         Likewise, for RET_LEN arg.
69162         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69163         (set_regs): Likewise, for FL_BACKTRACK arg.
69164         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69165         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69166         (calc_eclosure_iter, parse_bracket_exp):
69167         Use bool for internal variables that are booleans.
69168         * lib/regexec.c (re_search_internal, check_matching,
69169         proceed_next_node):
69170         (set_regs, build_sifted_states, sift_states_bkref):
69171         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69172         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69173         (find_collation_sequence_value):
69174         Likewise.
69175         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69176         (re_node_set_compare):
69177         Return bool, not int. All callers changed.
69178         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69179         (build_trtable, check_node_accept): Likewise.
69180         * lib/regex_internal.h: Include stdbool.h.
69181
69182         Fix bugs uncovered when converting to bool.
69183         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69184         failure instead of charging ahead blindly.
69185         * lib/regex_internal.c (register_state): Likewise.
69186         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69187         for freeing internal storage.
69188         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69189         bitset pieces used as boolean, to avoid undefined behavior
69190         on hosts that do int overflow checking.
69191
69192 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69193
69194         * config/srclist.txt: Add glibc bugs 1285-1287.
69195
69196 2005-09-01  Jim Meyering  <jim@meyering.net>
69197
69198         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69199         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69200         Require gl_STAT_MACROS, too.
69201
69202 2005-09-01  Bruno Haible  <bruno@clisp.org>
69203
69204         * gnulib-tool (import): In the first-use case, provide defaults.
69205
69206 2005-09-01  Bruno Haible  <bruno@clisp.org>
69207
69208         * gnulib-tool (func_import): Remove the .tmp files.
69209
69210 2005-09-01  Bruno Haible  <bruno@clisp.org>
69211
69212         * gnulib-tool (func_import): Fix handling of symbolic links.
69213
69214 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69215
69216         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69217         old glibc regex code mishandles strings longer than 2**31 bytes.
69218         This patch fixes this when the regex code is used in gnulib
69219         (i.e., outside glibc).
69220
69221         This patch should not affect the use of the regex code inside
69222         glibc.  No doubt this problem also needs to be handled for glibc
69223         as well, but the result will be an incompatible change to the
69224         glibc ABI, and the old ABI will have to be supported too.  That
69225         can be the the subject for another patch.
69226
69227         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69228         governing whether the rest of this patch is active.  By default,
69229         the macro is disabled and the patch has no effect.
69230         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69231         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69232         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69233         (re_match_2, re_set_registers): Use the new types.
69234         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69235         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69236         New macros.
69237         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69238         (re_string_context_at, bin_tree_t, re_dfastate_t):
69239         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69240         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69241         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69242         (re_string_char_size_at, re_string_wchar_at):
69243         (re_string_elem_size_at):
69244         Use the new types and macros to port to 64-bit hosts.
69245         Use unsigned types for internal values, so that the code
69246         mostly works even for arrays larger than SSIZE_MAX.
69247         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69248         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69249         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69250         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69251         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69252         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69253         (calc_inveclosure, parse_dup_op, build_range_exp):
69254         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69255         (fetch_number, create_token_tree, mark_opt_subexp):
69256         Likewise.
69257         * lib/regex_internal.c (re_string_construct_common,
69258         create_ci_newstate):
69259         (create_cd_newstate, re_string_allocate, re_string_construct):
69260         (re_string_realloc_buffers, build_wcs_upper_buffer):
69261         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69262         (re_string_reconstruct, re_string_peek_byte_case):
69263         (re_string_fetch_byte_case, re_string_context_at):
69264         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69265         (re_node_set_init_copy, re_node_set_add_intersect):
69266         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69267         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69268         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69269         (re_acquire_state, re_acquire_state_context, register_state):
69270         Likewise.
69271         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69272         search_cur_bkref_entry):
69273         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69274         (re_search_internal, re_search_2_stub, re_search_stub)
69275         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69276         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69277         (update_cur_sifted_state, check_dst_limits):
69278         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69279         (check_subexp_limits, sift_states_bkref, merge_state_array):
69280         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69281         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69282         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69283         (expand_bkref_cache, check_node_accept_bytes):
69284         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69285         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69286         (acquire_init_state_context, check_halt_node_context):
69287         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69288         (sift_states_backward, clean_state_log_if_needed):
69289         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69290         (find_recover_state, transit_state_sb, transit_state_mb):
69291         (transit_state_bkref, build_trtable, match_ctx_clean):
69292         Likewise.
69293         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69294         to work around an assumption that REG_MISSING is negative.
69295
69296         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69297         (seek_collating_symbol_entry) [defined _LIBC]:
69298         (lookup_collation_sequence_value) [defined _LIBC]:
69299         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69300         Use prototypes rather than old-style function definitions.
69301         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69302         (transit_state_sb) [0]:
69303         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69304
69305         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69306         rm_eo.
69307
69308         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69309         (optimize_subexps, lower_subexp):
69310         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69311         since the signed shift might overflow.  Use 1u<<31 instead.
69312         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69313         Likewise.
69314         * lib/regexec.c (check_dst_limits_calc_pos_1,
69315         check_subexp_matching_top): Likewise.
69316
69317         * lib/regcomp.c (optimize_subexps, lower_subexp):
69318         Use CHAR_BIT rather than 8, for clarity.
69319         * lib/regexec.c (check_dst_limits_calc_pos_1):
69320         (check_subexp_matching_top): Likewise.
69321         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69322         have to worry about portability issues when shifting it left.
69323         Remove no-longer-needed test for table_size > 0.
69324         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69325         in a word, as the resulting behavior is undefined.
69326         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69327         in one case, a <= should have been an <, and in another case the
69328         whole test was missing.
69329         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69330         the standard name CHAR_BIT.
69331         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69332         this is not true on one's complement and signed-magnitude hosts.
69333
69334         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69335         next_last_offset.
69336         (struct re_dfa_t): Remove unused member states_alloc.
69337         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69338
69339 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69340
69341         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69342         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69343         and large-file glibc and in 32-bit large-file Solaris.
69344
69345 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69346
69347         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69348         lengths fit in regoff_t; this isn't true if regoff_t is the same
69349         width as size_t.
69350         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69351         (= START + RANGE) instead of RANGE.  This avoids overflow
69352         problems when regoff_t is the same width as size_t.
69353         All callers changed.
69354         (re_search_2_stub): Check for overflow when adding the
69355         sizes of the two strings.
69356         (re_search_stub): Check for overflow when adding START
69357         to RANGE; if it occurs, substitute the extreme value.
69358
69359 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69360
69361         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69362
69363 2005-08-31  Jim Meyering  <jim@meyering.net>
69364
69365         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69366         a pointer-to-const.
69367         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69368         (register_state): Likewise.
69369         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69370         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69371         (group_nodes_into_DFAstates): Likewise.
69372
69373 2005-08-31  Jim Meyering  <jim@meyering.net>
69374
69375         * check-module: Add a FIXME comment.
69376
69377 2005-08-31  Eric Blake  <ebb9@byu.net>
69378
69379         * modules/unistd-safer (Files): Add unistd--.h.
69380         * modules/stdio-safer (Files): Add stdio--.h.
69381
69382 2005-08-31  Derek Price  <derek@ximbiot.com>
69383
69384         * lib/getdelim.c (getdelim): Return EOF on EOF.
69385         Reported by Larry Jones <lawrence.jones@ugs.com>.
69386
69387 2005-08-31  Bruno Haible  <bruno@clisp.org>
69388
69389         Avoid unnecessary diffs in the generated lib/Makefile.am.
69390         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69391         the generated files.
69392         (func_import): Don't set cmd.
69393
69394 2005-08-31  Bruno Haible  <bruno@clisp.org>
69395
69396         * lib/strstr.c: Include <stddef.h>, for NULL.
69397         * lib/strcasestr.c: Likewise.
69398         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69399
69400 2005-08-31  Bruno Haible  <bruno@clisp.org>
69401
69402         * gnulib-tool: New option --macro-prefix.
69403         (func_import): Use macro_prefix.
69404         (import): Handle option --macro-prefix.
69405
69406 2005-08-31  Bruno Haible  <bruno@clisp.org>
69407
69408         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69409         Also use new variables cached_lgpl, cached_libtool.
69410
69411 2005-08-31  Bruno Haible  <bruno@clisp.org>
69412
69413         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69414         always instantiating them.
69415
69416 2005-08-31  Bruno Haible  <bruno@clisp.org>
69417
69418         * gnulib-tool (func_import): Read the previous cached settings
69419         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69420         earlier added by gnulib but are now dropped. Warn when a gnulib file
69421         overwrites a non-gnulib file.
69422
69423 2005-08-31  Bruno Haible  <bruno@clisp.org>
69424
69425         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69426         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69427         projects that don't keep autogenerated files in CVS. Put into
69428         actioncmd only the specified modules, not the transitive closure.
69429
69430 2005-08-31  Bruno Haible  <bruno@clisp.org>
69431
69432         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69433         Create directories that shall be filled.
69434         (import): Don't look for gl_* macros in configure.ac. Recurse across
69435         all directories containing a gnulib-cache.m4 files, if meaningful.
69436
69437 2005-08-31  Bruno Haible  <bruno@clisp.org>
69438
69439         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69440         (import): Set seen_libtool when we see gl_LIBTOOL.
69441
69442 2005-08-31  Bruno Haible  <bruno@clisp.org>
69443
69444         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69445         declaration macro definitions from generated gnulib.m4.
69446
69447 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69448
69449         * lib/iconvme.h: Add prototype for iconv_alloc.
69450
69451 2005-08-29  Simon Josefsson  <jas@extundo.com>
69452
69453         * lib/iconvme.c: Fix errno.
69454
69455 2005-08-29  Bruno Haible  <bruno@clisp.org>
69456
69457         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
69458         that it works when the directory contains spaces.
69459
69460 2005-08-29  Bruno Haible  <bruno@clisp.org>
69461
69462         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
69463
69464 2005-08-29  Bruno Haible  <bruno@clisp.org>
69465
69466         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
69467         Emit more advice.
69468
69469 2005-08-29  Bruno Haible  <bruno@clisp.org>
69470         and Stepan Kasal  <kasal@ucw.cz>
69471
69472         * check-module: If more parameters are given, check each of them
69473         separately; add more exceptions, as noted by Jim Meyering.
69474         (check_module): New procedure.
69475         (%exempt_header): Now contains all exceptions.
69476
69477 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69478
69479         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69480
69481 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69482
69483         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69484
69485 2005-08-28  Bruno Haible  <bruno@clisp.org>
69486
69487         * m4/gnulib-tool.m4: New file.
69488
69489 2005-08-27  Jim Meyering  <jim@meyering.net>
69490
69491         * modules/unistd-safer (Files): Add pipe-safer.c.
69492         * modules/fcntl-safer (Files): Add creat-safer.c.
69493
69494 2005-08-27  Jim Meyering  <jim@meyering.net>
69495
69496         * m4/stdlib-safer.m4: New file.  From coreutils.
69497         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69498         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69499         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69500         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69501         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69502
69503 2005-08-27  Jim Meyering  <jim@meyering.net>
69504
69505         * lib/fopen-safer.c: Merge minor changes from coreutils.
69506         * lib/dup-safer.c: Likewise.
69507         * lib/fd-safer.c: Likewise.
69508
69509         Merge from coreutils.
69510         * lib/stdio--.h: New file.
69511         * lib/stdlib--.h: New file.
69512         * lib/mkstemp-safer.c: New file.
69513
69514         GNU tar needs these.
69515         * lib/pipe-safer.c: New file.
69516         * lib/creat-safer.c: New file.
69517         * lib/fcntl--.h (creat): Define to creat_safer.
69518         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69519         * lib/unistd--.h (pipe): Define to pipe_safer.
69520         * lib/unistd-safer.h: Declare pipe_safer.
69521
69522 2005-08-26  Simon Josefsson  <jas@extundo.com>
69523
69524         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69525         Haible <bruno@clisp.org>.
69526
69527 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69528
69529         * lib/regex_internal.h: Remove all references to
69530         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69531         or better.
69532         (bitset_not, bitset_merge, bitset_not_merge):
69533         (bitset_mask, re_string_allocate, re_string_construct):
69534         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69535         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69536         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
69537         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
69538         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69539         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69540         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
69541         (re_acquire_state_context):
69542         Remove unnecessary forward decls.
69543         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
69544         Put __attribute at function definition,
69545         now that the function decl has been removed.
69546         * lib/regex_internal.c (re_string_peek_byte_case):
69547         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
69548         Likewise.
69549
69550 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
69551
69552         * m4/regex.m4: Add AC_PREREQ(2.50).
69553         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
69554
69555 2005-08-25  Simon Josefsson  <jas@extundo.com>
69556
69557         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
69558         __fsetlocking.
69559
69560 2005-08-25  Simon Josefsson  <jas@extundo.com>
69561
69562         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
69563         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
69564         GLIBC specific code.
69565
69566 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69567
69568         Make regex safe for g++.  This fixes one real bug (an "err"
69569         that should have been "*err").  g++ problem reported by
69570         Sam Steingold.
69571         * lib/regex_internal.h (re_calloc): New macro, consistent with
69572         re_malloc etc.  All callers of calloc changed to use re_calloc.
69573         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
69574         not int.  All callers changed.
69575         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
69576         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
69577         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
69578         (find_recover_state): Change "err" to "*err"; this fixes what
69579         appears to be a real bug.
69580         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
69581         versus int.
69582
69583 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69584
69585         * modules/regex (Depends-on): Add malloc, since the code
69586         assumes that !malloc(0) means failure.
69587
69588 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69589
69590         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
69591
69592         alloca modernization/simplification for regex.
69593         * lib/regex.c: Remove portability cruft for alloca.  This no longer
69594         needs to be at the start of the file, and can be moved into
69595         regex_internal.h and simplified.
69596         * lib/regex_internal.h: Include <alloca.h>.
69597         (__libc_use_alloca) [!defined _LIBC]: New macro.
69598         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
69599         now works outside glibc.
69600
69601 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69602
69603         * config/srclist.txt: Add glibc bugs 1241, 1245.
69604
69605 2005-08-25  Jim Meyering  <jim@meyering.net>
69606
69607         * lib/open-safer.c: Include <config.h>.
69608         Otherwise, we'd lose LARGEFILE support in any file using
69609         e.g. "fcntl--.h"
69610
69611 2005-08-25  Bruno Haible  <bruno@clisp.org>
69612
69613         * m4/minmax.m4: Require autoconf 2.52.
69614         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
69615         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
69616         alternatives of translit over the alphabet.
69617         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
69618
69619 2005-08-24  Simon Josefsson  <jas@extundo.com>
69620
69621         * tests/test-getpass.c: New file.
69622
69623 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69624
69625         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
69626         for GNU regex features.
69627
69628 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69629
69630         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
69631         * lib/regex.h (regerror): Likewise.
69632
69633         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
69634         requires this.  (The code never needed it.)
69635
69636         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
69637         All uses of recently-renamed identifiers changed to use the new,
69638         POSIX-compliant names.  The code will build and run just fine
69639         without these changes, but it's better to eat our own dog food
69640         and use the standard-conforming names.
69641
69642         * lib/regex.h: Fix a multitude of POSIX name space violations.
69643         These changes have an effect only for programs that define
69644         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
69645         do not change anything for programs compiled in the normal way.
69646         Also, there is no effect on the ABI.
69647
69648         (_REGEX_SOURCE): New macro.
69649         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
69650         defined and _GNU_SOURCE is not; this fixes a name space violation.
69651
69652         Rename the following macros to obey POSIX requirements.
69653         The old names are still visible as macros if _REGEX_SOURCE is defined.
69654         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
69655         RE_BACKSLASH_ESCAPE_IN_LISTS.
69656         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
69657         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
69658         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
69659         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
69660         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
69661         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
69662         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
69663         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
69664         (REG_INTERVALS): renamed from RE_INTERVALS.
69665         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
69666         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
69667         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
69668         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
69669         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
69670         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
69671         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
69672         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
69673         RE_UNMATCHED_RIGHT_PAREN_ORD.
69674         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
69675         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
69676         (REG_DEBUG): renamed from RE_DEBUG.
69677         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
69678         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
69679         unusual, since we can't clash with the POSIX REG_ICASE.
69680         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
69681         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
69682         (REG_NO_SUB): renamed from RE_NO_SUB.
69683         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
69684         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
69685         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
69686         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
69687         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
69688         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
69689         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
69690         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
69691         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
69692         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
69693         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
69694         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
69695         RE_SYNTAX_POSIX_MINIMAL_BASIC.
69696         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
69697         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
69698         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
69699         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
69700         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
69701         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
69702         (REG_FIXED): Renamed from REGS_FIXED.
69703         (REG_NREGS): Renamed from RE_NREGS.
69704
69705         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
69706         of other REG_* macros, since POSIX says the user is allowed to
69707         #undef these macros selectively.
69708
69709         (reg_errcode_t): Update comment stating what other tables need
69710         to be consistent.
69711
69712         Rename the following enum values to obey POSIX requirements.
69713         The old names are still visible as macros.
69714         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
69715         is not defined, since GNU is supposed to be a superset of POSIX as
69716         much as possible, and since we want reg_errcode_t to be a signed
69717         type for implementation consistency.
69718         (_REG_NOERROR): Renamed from REG_NOERROR.
69719         (_REG_NOMATCH): Renamed from REG_NOMATCH.
69720         (_REG_BADPAT): Renamed from REG_BADPAT.
69721         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
69722         (_REG_ECTYPE): Renamed from REG_ECTYPE.
69723         (_REG_EESCAPE): Renamed from REG_EESCAPE.
69724         (_REG_ESUBREG): Renamed from REG_ESUBREG.
69725         (_REG_EBRACK): Renamed from REG_EBRACK.
69726         (_REG_EPAREN): Renamed from REG_EPAREN.
69727         (_REG_EBRACE): Renamed from REG_EBRACE.
69728         (_REG_BADBR): Renamed from REG_BADBR.
69729         (_REG_ERANGE): Renamed from REG_ERANGE.
69730         (_REG_ESPACE): Renamed from REG_ESPACE.
69731         (_REG_BADRPT): Renamed from REG_BADRPT.
69732         (_REG_EEND): Renamed from REG_EEND.
69733         (_REG_ESIZE): Renamed from REG_ESIZE.
69734         (_REG_ERPAREN): Renamed from REG_ERPAREN.
69735         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
69736         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
69737         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
69738         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
69739
69740         (_REG_RE_NAME, _REG_RM_NAME): New macros.
69741         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
69742         changed.  But support the old name if the new one is not defined
69743         and if _REGEX_SOURCE.
69744
69745         Change the following member names in struct re_pattern_buffer.
69746         The old names are still supported if !_REGEX_SOURCE.
69747         The new names are always supported, regardless of _REGEX_SOURCE.
69748         (re_buffer): Renamed from buffer.
69749         (re_allocated): Renamed from allocated.
69750         (re_used): Renamed from used.
69751         (re_syntax): Renamed from syntax.
69752         (re_fastmap): Renamed from fastmap.
69753         (re_translate): Renamed from translate.
69754         (re_can_be_null): Renamed from can_be_null.
69755         (re_regs_allocated): Renamed from regs_allocated.
69756         (re_fastmap_accurate): Renamed from fastmap_accurate.
69757         (re_no_sub): Renamed from no_sub.
69758         (re_not_bol): Renamed from not_bol.
69759         (re_not_eol): Renamed from not_eol.
69760         (re_newline_anchor): Renamed from newline_anchor.
69761
69762         Change the following member names in struct re_registers.
69763         The old names are still supported if !_REGEX_SOURCE.
69764         The new names are always supported, regardless of _REGEX_SOURCE.
69765         (rm_num_regs): Renamed from num_regs.
69766         (rm_start): Renamed from start.
69767         (rm_end): Renamed from end.
69768
69769         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
69770         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
69771         Prepend __ to parameter names.
69772
69773         Undo yesterday's changes.
69774
69775 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69776
69777         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
69778         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
69779         lib/regex.c.
69780
69781 2005-08-24  Jim Meyering  <jim@meyering.net>
69782
69783         Sync from coreutils.
69784         * m4/fcntl-safer.m4: New file.
69785
69786         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
69787         and object files for this module.
69788
69789 2005-08-24  Jim Meyering  <jim@meyering.net>
69790
69791         Sync from coreutils.
69792         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
69793
69794 2005-08-24  Jim Meyering  <jim@meyering.net>
69795
69796         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
69797         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
69798
69799 2005-08-24  Jim Meyering  <jim@meyering.net>
69800
69801         * modules/fcntl-safer: New module.
69802         * modules/fts (Depends-on): Add fcntl-safer.
69803         * MODULES.html.sh (File descriptor based Input/Output):
69804         Add fcntl-safer.
69805
69806 2005-08-24  Bruno Haible  <bruno@clisp.org>
69807
69808         Support for unit test modules.
69809         * modules/README: Mention tests modules.
69810         * modules/TEMPLATE-TESTS: New file.
69811         * gnulib-tool: New options --extract-tests-module, --with-tests and
69812         --tests-base (unused for the moment).
69813         (testsbase, inctests): New variables.
69814         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
69815         (func_verify_module): Exclude TEMPLATE-TESTS.
69816         (func_verify_nontests_module, func_verify_tests_module): New functions.
69817         (func_get_dependencies): Add implicit dependency for tests modules.
69818         (func_get_tests_module): New function.
69819         (func_modules_transitive_closure): When --with-tests was specified,
69820         include the unit tests as well, unless explicitly avoided.
69821         (func_emit_lib_Makefile_am): Ignore the tests modules here.
69822         (func_emit_tests_Makefile_am): New function.
69823         (func_create_testdir): When --with-tests was specified, emit a
69824         tests/ directory.
69825         * MODULES.html.sh (Future developments): Update.
69826
69827 2005-08-24  Bruno Haible  <bruno@clisp.org>
69828
69829         * modules/tls-tests: New file.
69830         * tests/test-tls.c: New file, from GNU gettext.
69831
69832 2005-08-24  Bruno Haible  <bruno@clisp.org>
69833
69834         * modules/lock-tests: New file.
69835         * tests/test-lock.c: New file, from GNU gettext.
69836
69837 2005-08-24  Bruno Haible  <bruno@clisp.org>
69838
69839         * lib/lock.h: Add multiple inclusion guard.
69840         * lib/tls.h: Add multiple inclusion guard.
69841
69842 2005-08-24  Bruno Haible  <bruno@clisp.org>
69843
69844         * gnulib-tool: Add support for the --aux-dir option to
69845         --create-testdir, --create-megatestdir, --test, --megatest.
69846         (func_create_testdir, func_create_megatestdir): Optionally emit a
69847         AC_CONFIG_AUX_DIR directive.
69848         (create-testdir, create-megatestdir, test, megatest): Provide a
69849         default value for $auxdir.
69850
69851 2005-08-24  Bruno Haible  <bruno@clisp.org>
69852
69853         * gnulib-tool (import): Use compound statement instead of subshell
69854         where possible.
69855
69856 2005-08-24  Bruno Haible  <bruno@clisp.org>
69857
69858         * gnulib-tool (import): Change --aux-dir default to "build-aux".
69859
69860 2005-08-24  Bruno Haible  <bruno@clisp.org>
69861
69862         * gnulib-tool (func_version): Update.
69863
69864 2005-08-24  Bruno Haible  <bruno@clisp.org>
69865
69866         * gnulib-tool (func_import, func_create_testdir,
69867         func_create_megatestdir): Quote all autoconf macro arguments.
69868
69869 2005-08-24  Bruno Haible  <bruno@clisp.org>
69870
69871         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
69872         option --force, because --force causes the aclocal.m4 of each
69873         subdirectory to be newer than the corresponding config.h.in.
69874
69875 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69876
69877         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
69878         All contents moved to gl_REGEX.
69879         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
69880         assume that it does.
69881
69882 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69883
69884         * lib/regex.h (REG_NOSYS)
69885         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
69886         Define, since POSIX requires it as of 2001.
69887         (_REG_ENOSYS)
69888         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
69889         New private symbol, used to keep the enum signed in all cases.
69890         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
69891         Youngman in
69892         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
69893
69894         * lib/regex_internal.c (re_string_skip_chars, register_state):
69895         (calc_state_hash):
69896         Remove forward decls; no longer needed now that we use prototypes.
69897         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
69898         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
69899         (clean_state_log_if_needed): Likewise.
69900
69901 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         * config/srclist.txt: Add glibc bugs 1231-1233.
69904
69905 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69906
69907         Fix problems reported by Sam Steingold in
69908         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
69909         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
69910         assumed that reg_errcode_t is a signed type, which is not
69911         necessarily true if _XOPEN_SOURCE is not defined.
69912         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
69913         since some compilers warn about it otherwise.
69914
69915 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69916
69917         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
69918         (init_word_char, create_initial_state, duplicate_node_closure):
69919         (fetch_token, peek_token_bracket, build_range_exp):
69920         (build_collating_symbol): Remove forward decls; no longer needed
69921         now that we use prototypes.
69922
69923         * lib/regcomp.c:
69924         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
69925         (re_compile_fastmap_iter, regcomp, regerror, regfree):
69926         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
69927         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
69928         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
69929         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
69930         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
69931         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
69932         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
69933         (build_range_exp, build_collating_symbol, parse_bracket_exp):
69934         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
69935         (build_charclass, build_charclass_op, fetch_number, create_tree):
69936         (create_token_tree, mark_opt_subexp, duplicate_tree):
69937         Use prototypes rather than old-style definitions.
69938
69939         * lib/regex_internal.c:
69940         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
69941         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
69942         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69943         (re_string_reconstruct, re_string_peek_byte_case):
69944         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
69945         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69946         (re_node_set_init_copy, re_node_set_add_intersect):
69947         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69948         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69949         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69950         (re_acquire_state, re_acquire_state_context, register_state):
69951         (create_ci_newstate, create_cd_newstate, free_state):
69952         Likewise.
69953         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
69954         re_search_2):
69955         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
69956         (re_search_internal, prune_impossible_nodes):
69957         (acquire_init_state_context, check_matching, static):
69958         (check_halt_node_context, check_halt_state_context, proceed_next_node):
69959         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
69960         (update_regs, sift_states_backward, build_sifted_states):
69961         (clean_state_log_if_needed, merge_state_array):
69962         (update_cur_sifted_state, add_epsilon_src_nodes):
69963         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
69964         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
69965         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
69966         (find_recover_state, check_subexp_matching_top, transit_state_mb):
69967         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
69968         (check_arrival, check_arrival_add_next_nodes):
69969         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69970         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69971         (check_node_accept_bytes, check_node_accept, extend_buffers):
69972         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
69973         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
69974         (sift_ctx_init):
69975         Likewise.
69976
69977         * lib/regex_internal.h:
69978         (re_string_allocate, re_string_construct, re_string_reconstruct):
69979         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
69980         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
69981         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
69982         (re_string_context_at, re_string_peek_byte_case):
69983         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
69984         is defined, since we now use prototypes always.
69985
69986         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
69987         C89 or better.  All uses removed.
69988
69989 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69990
69991         * config/srclist.txt: Add glibc bugs 1220-1227.
69992
69993 2005-08-20  Jim Meyering  <jim@meyering.net>
69994
69995         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
69996         of unused local, dfa.
69997
69998 2005-08-20  Bruno Haible  <bruno@clisp.org>
69999
70000         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70001
70002 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70003
70004         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70005         (re_node_set_insert_last, re_dfa_add_node):
70006         Rename local variables to avoid GCC shadowing warnings.
70007
70008 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70009
70010         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70011         [defined lint]: Suppress bogus uninitialized-variable warnings.
70012
70013         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70014         and let the caller return REG_ESPACE if out of space.  This
70015         removes an uninitialied-variable warning with GCC 4.0.1, and also
70016         avoids taking the address of a local variable.  All callers
70017         changed.
70018
70019 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70020
70021         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70022         $LIBCSRC/posix/regexec.c.
70023         Add glibc bug 1217 for regcomp.c.
70024
70025 2005-08-19  Jim Meyering  <jim@meyering.net>
70026
70027         * lib/regexec.c (proceed_next_node): Redo local variables to
70028         avoid GCC shadowing warnings.
70029
70030 2005-08-18  Bruno Haible  <bruno@clisp.org>
70031
70032         * lib/strstr.c (strstr): Fix return value in multibyte case.
70033         * lib/strcasestr.c (strcasestr): Likewise.
70034
70035 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70036
70037         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70038
70039 2005-08-17  Jim Meyering  <jim@meyering.net>
70040
70041         Make the %s format (seconds since the epoch) work for a negative
70042         number and when used with a zero-padded field width, e.g. %015s.
70043
70044         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70045         label so that it precedes the code to set `digits'.  Otherwise,
70046         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70047         print `00-22'.  Now, it prints `-0022', as it should.
70048
70049 2005-08-17  Bruno Haible  <bruno@clisp.org>
70050
70051         * modules/strstr (Files): Add m4/mbrtowc.m4.
70052         (Depends-on): Add mbuiter.
70053
70054 2005-08-17  Bruno Haible  <bruno@clisp.org>
70055
70056         * modules/strcasestr: New file.
70057         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70058         strcasestr.
70059
70060 2005-08-17  Bruno Haible  <bruno@clisp.org>
70061
70062         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70063
70064 2005-08-17  Bruno Haible  <bruno@clisp.org>
70065
70066         * modules/mbuiter: New file.
70067         * MODULES.html.sh (Extended multibyte and wide character utilities):
70068         Add mbuiter.
70069
70070 2005-08-17  Bruno Haible  <bruno@clisp.org>
70071
70072         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70073         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70074
70075 2005-08-17  Bruno Haible  <bruno@clisp.org>
70076
70077         * m4/strcasestr.m4: New file.
70078
70079 2005-08-17  Bruno Haible  <bruno@clisp.org>
70080
70081         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70082         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70083
70084 2005-08-17  Bruno Haible  <bruno@clisp.org>
70085
70086         * lib/strcasestr.h: New file.
70087         * lib/strcasestr.c: New file.
70088
70089 2005-08-17  Bruno Haible  <bruno@clisp.org>
70090
70091         * lib/strcasecmp.c: Use mbuiter.h.
70092
70093 2005-08-17  Bruno Haible  <bruno@clisp.org>
70094
70095         * lib/mbuiter.h: New file.
70096
70097 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70100         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70101         and gl_GETOPT are both invoked via different paths (as happens
70102         with GNU tar CVS because it uses both argp and getopt), the former
70103         wins.
70104
70105 2005-08-16  Bruno Haible  <bruno@clisp.org>
70106
70107         * modules/tls: New file.
70108         * MODULES.html.sh (Multithreading): Add tls.
70109
70110 2005-08-16  Bruno Haible  <bruno@clisp.org>
70111
70112         * modules/strnlen1: New file.
70113         * MODULES.html.sh (String handling): Add strnlen1.
70114
70115 2005-08-16  Bruno Haible  <bruno@clisp.org>
70116
70117         * modules/strcase (Files): Add m4/mbrtowc.m4.
70118         (Depends-on): Add strnlen1, mbchar.
70119
70120 2005-08-16  Bruno Haible  <bruno@clisp.org>
70121
70122         * modules/mbiter: New file.
70123         * MODULES.html.sh (Extended multibyte and wide character utilities):
70124         Add mbiter.
70125
70126 2005-08-16  Bruno Haible  <bruno@clisp.org>
70127
70128         * modules/mbfile: New file.
70129         * MODULES.html.sh (Extended multibyte and wide character utilities):
70130         Add mbfile.
70131
70132 2005-08-16  Bruno Haible  <bruno@clisp.org>
70133
70134         * modules/mbchar: New file.
70135         * MODULES.html.sh (Extended multibyte and wide character utilities):
70136         New section.
70137
70138 2005-08-16  Bruno Haible  <bruno@clisp.org>
70139
70140         * m4/tls.m4: New file, from GNU gettext.
70141
70142 2005-08-16  Bruno Haible  <bruno@clisp.org>
70143
70144         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70145         always.
70146         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70147
70148 2005-08-16  Bruno Haible  <bruno@clisp.org>
70149
70150         * m4/mbiter.m4: New file.
70151
70152 2005-08-16  Bruno Haible  <bruno@clisp.org>
70153
70154         * m4/mbfile.m4: New file.
70155
70156 2005-08-16  Bruno Haible  <bruno@clisp.org>
70157
70158         * m4/mbchar.m4: New file.
70159
70160 2005-08-16  Bruno Haible  <bruno@clisp.org>
70161
70162         * lib/tls.h: New file, from GNU gettext.
70163         * lib/tls.c: New file, from GNU gettext.
70164
70165 2005-08-16  Bruno Haible  <bruno@clisp.org>
70166
70167         * lib/strnlen1.h: New file.
70168         * lib/strnlen1.c: New file.
70169
70170 2005-08-16  Bruno Haible  <bruno@clisp.org>
70171
70172         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70173         (mbi_init): Update.
70174         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70175         NUL byte, not after it.
70176
70177 2005-08-16  Bruno Haible  <bruno@clisp.org>
70178
70179         * lib/strcase.h (strcasecmp): Add note in comments.
70180         * lib/strncasecmp.c: Use code from strcasecmp.c.
70181         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70182         (strcasecmp): Work correctly in multibyte locales.
70183
70184 2005-08-16  Bruno Haible  <bruno@clisp.org>
70185
70186         * lib/mbiter.h: New file.
70187
70188 2005-08-16  Bruno Haible  <bruno@clisp.org>
70189
70190         * lib/mbfile.h: New file.
70191
70192 2005-08-16  Bruno Haible  <bruno@clisp.org>
70193
70194         * lib/mbchar.h: New file.
70195         * lib/mbchar.c: New file.
70196
70197 2005-08-16  Bruno Haible  <bruno@clisp.org>
70198
70199         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70200         the valid ones. Makes the comparison operations transitive:
70201         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70202         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70203
70204 2005-08-15  Simon Josefsson  <jas@extundo.com>
70205
70206         * modules/ssize_t (License): Change to 'unlimited'.
70207
70208         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70209
70210 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70211
70212         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70213         Add comments for each pending glibc patch.
70214
70215 2005-08-15  Bruno Haible  <bruno@clisp.org>
70216
70217         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70218         __cplusplus is defined.
70219
70220 2005-08-14  Jim Meyering  <jim@meyering.net>
70221
70222         Sync from coreutils.
70223
70224         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70225         Use the hash-table-based cycle-detection code not just when
70226         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70227         Reported by James Youngman in
70228         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70229         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70230         FTS_TIGHT_CYCLE_CHECK.
70231         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70232         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70233         once again.
70234         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70235         * lib/fts.c (fd_safer): Remove decl.
70236         Include fcntl--.h rather than unistd-safer.h
70237         (fts_safe_changedir): Don't call fd_safer; no longer needed
70238         now that we include fcntl--.h.
70239
70240 2005-08-12  Simon Josefsson  <jas@extundo.com>
70241
70242         * modules/getndelim2: Use ssize_t module.
70243         * modules/getnline: Likewise.
70244         * modules/safe-read: Likewise.
70245         * modules/xreadlink: Likewise.
70246
70247         * modules/ssize_t: New file.
70248
70249 2005-08-12  Simon Josefsson  <jas@extundo.com>
70250
70251         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70252
70253 2005-08-12  Simon Josefsson  <jas@extundo.com>
70254
70255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70256         ssize_t.
70257
70258 2005-08-12  Simon Josefsson  <jas@extundo.com>
70259
70260         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70261         readline, getdelim and check_version.
70262         (Support for systems lacking ISO C 99: Sizes of integer types):
70263         Add size_max.
70264
70265 2005-08-12  Bruno Haible  <bruno@clisp.org>
70266
70267         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70268
70269 2005-08-11  Simon Josefsson  <jas@extundo.com>
70270
70271         * modules/readline: New file.
70272
70273         * modules/strnlen (Files): Add strnlen.h.
70274
70275 2005-08-11  Simon Josefsson  <jas@extundo.com>
70276
70277         * m4/readline.m4: New file.
70278
70279 2005-08-11  Simon Josefsson  <jas@extundo.com>
70280
70281         * lib/readline.h, readline.c: New file.
70282
70283 2005-08-11  Simon Josefsson  <jas@extundo.com>
70284
70285         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70286         gl_AVOID.
70287
70288 2005-08-11  Bruno Haible  <bruno@clisp.org>
70289
70290         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70291
70292 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70293
70294         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70295
70296 2005-08-10  Simon Josefsson  <jas@extundo.com>
70297
70298         * tests/test-iconvme.c: New file.
70299
70300 2005-08-10  Simon Josefsson  <jas@extundo.com>
70301
70302         * m4/strnlen.m4: New file.
70303
70304         * m4/strndup.m4: Don't check for strnlen declaration, done in
70305         strnlen.m4.
70306
70307 2005-08-10  Simon Josefsson  <jas@extundo.com>
70308
70309         * lib/strndup.c: Use strnlen.h.
70310
70311         * lib/strnlen.h: New file.
70312
70313 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70314
70315         * README: Typos.
70316
70317 2005-08-02  Simon Josefsson  <jas@extundo.com>
70318
70319         * modules/readline: New file.
70320
70321 2005-08-02  Simon Josefsson  <jas@extundo.com>
70322
70323         * modules/getdelim: New file.
70324
70325         * modules/getline: Rewrite, don't use getndelim2.
70326
70327 2005-08-02  Simon Josefsson  <jas@extundo.com>
70328
70329         * m4/getline.m4: Separate out getdelim stuff into separate module.
70330
70331         * m4/getdelim.m4: New file.
70332
70333 2005-08-02  Simon Josefsson  <jas@extundo.com>
70334
70335         * lib/getline.h, getline.c: Rewrite.
70336
70337         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70338
70339 2005-07-31  Bruno Haible  <bruno@clisp.org>
70340
70341         * lib/lock.h (gl_lock_initializer): New macro.
70342         (gl_lock_define_initialized): Use it.
70343         (gl_rwlock_initializer): New macro.
70344         (gl_rwlock_define_initialized): Use it.
70345         (gl_recursive_lock_initializer): New macro.
70346         (gl_recursive_lock_define_initialized): Use it.
70347
70348 2005-07-30  Karl Berry  <karl@gnu.org>
70349
70350         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70351         Report from Ben Pfaff, regarding getopt.
70352
70353 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70354
70355         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70356         normal way.
70357         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70358         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70359         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70360         (gl_GETOPT): Use the new macros.  Most of the implementation
70361         is moved to the new macros.  This is for programs like Emacs
70362         that don't want all the functionality of gl_GETOPT.
70363
70364 2005-07-26  Bruno Haible  <bruno@clisp.org>
70365
70366         * m4/lock.m4: Update from GNU gettext.
70367
70368 2005-07-26  Bruno Haible  <bruno@clisp.org>
70369
70370         * lib/lock.h: Update from GNU gettext.
70371         * lib/lock.c: Update from GNU gettext.
70372
70373 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70374
70375         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70376         obsolescent AC_TRY_RUN.  Include the default includes files, for
70377         'exit'.
70378
70379 2005-07-24  Bruno Haible  <bruno@clisp.org>
70380
70381         * modules/visibility: New file.
70382         * MODULES.html.sh (Misc): Add visibility.
70383
70384 2005-07-24  Bruno Haible  <bruno@clisp.org>
70385
70386         * m4/visibility.m4: New file.
70387
70388 2005-07-24  Bruno Haible  <bruno@clisp.org>
70389
70390         * doc/visibility.texi: New file.
70391
70392 2005-07-22  Bruno Haible  <bruno@clisp.org>
70393
70394         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70395         $(ALLOCA_H), redundant through BUILT_SOURCES.
70396         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70397         redundant through BUILT_SOURCES.
70398         * modules/byteswap (Makefile.am): Remove explicit dependency on
70399         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70400         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70401         $(FNMATCH_H), redundant through BUILT_SOURCES.
70402         * modules/getopt (Makefile.am): Remove explicit dependency on
70403         $(GETOPT_H), redundant through BUILT_SOURCES.
70404         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70405         redundant through BUILT_SOURCES.
70406         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70407         redundant through BUILT_SOURCES.
70408         * modules/stdbool (Makefile.am): Remove explicit dependency on
70409         $(STDBOOL_H), redundant through BUILT_SOURCES.
70410         * modules/stdint (Makefile.am): Remove explicit dependency on
70411         $(STDINT_H), redundant through BUILT_SOURCES.
70412         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70413         Remove explicit dependency on $(SYSEXITS_H).
70414         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70415
70416 2005-07-18  Simon Josefsson  <jas@extundo.com>
70417
70418         * lib/check-version.c (check_version): Accept identical versions too.
70419
70420 2005-07-18  Bruno Haible  <bruno@clisp.org>
70421
70422         * modules/lock: New file.
70423         * MODULES.html.sh (Multithreading): New section.
70424
70425 2005-07-18  Bruno Haible  <bruno@clisp.org>
70426
70427         * m4/lock.m4: New file, from GNU gettext.
70428
70429 2005-07-18  Bruno Haible  <bruno@clisp.org>
70430
70431         * lib/lock.h: New file, from GNU gettext.
70432         * lib/lock.c: New file, from GNU gettext.
70433
70434 2005-07-18  Bruno Haible  <bruno@clisp.org>
70435
70436         * lib/lock.h (gl_once_t): New type.
70437         (gl_once_define, gl_once): New macros.
70438         * lib/lock.c (fresh_once): New variable.
70439         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70440         functions.
70441
70442 2005-07-16  Simon Josefsson  <jas@extundo.com>
70443
70444         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70445         workaround, suggested by Bruno.
70446
70447 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         * modules/xalloc (Depends-on): Add xalloc-die.
70450         * modules/xvasprintf (Depends-on): Add xalloc-die.
70451
70452 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70453
70454         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
70455         with a minor change.
70456
70457 2005-07-15  Bruno Haible  <bruno@clisp.org>
70458
70459         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
70460         When using lib/poll.c, define poll as rpl_poll.
70461
70462 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
70463
70464         * modules/argp (Depends-on): Remove unlocked-io.
70465
70466 2005-07-14  Derek Price  <derek@ximbiot.com>
70467
70468         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
70469         for glob symlink bug.
70470
70471 2005-07-14  Bruno Haible  <bruno@clisp.org>
70472
70473         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70474         Instead, test for *_unlocked function declarations directly.
70475
70476 2005-07-11  Simon Josefsson  <jas@extundo.com>
70477
70478         * modules/size_max: New file.
70479
70480         * modules/xsize: Depend on size_max module for size_max.m4.
70481
70482 2005-07-11  Simon Josefsson  <jas@extundo.com>
70483
70484         * lib/size_max.h: New file.
70485
70486 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70487
70488         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70489         copyright symbol and the year.
70490         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70491         (version_etc_va): Use parameterized copyright notice.
70492         Reword to conform to the current GNU coding standards.
70493
70494 2005-07-11  Karl Berry  <karl@gnu.org>
70495
70496         * doc/gnulib.texi (Quoting): new node.
70497         (Initial import): more info, from Patrice.
70498
70499 2005-07-11  Bruno Haible  <bruno@clisp.org>
70500
70501         * gnulib-tool (func_usage): Document option --avoid.
70502         (Command line options): Handle --avoid.
70503         (func_acceptable): New function.
70504         (func_modules_transitive_closure): Use it.
70505
70506 2005-07-11  Bruno Haible  <bruno@clisp.org>
70507
70508         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70509         Reported by Jim Meyering.
70510
70511 2005-07-10  Bruno Haible  <bruno@clisp.org>
70512
70513         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70514         Needed when size_t is smaller than 'unsigned int'.
70515         Reported by Paul Eggert.
70516
70517 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70518
70519         * modules/argp (Depends-on): Add unlocked-io
70520
70521 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70522
70523         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70524         block of defines.
70525
70526 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70527
70528         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70529         fix now.
70530
70531 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70532         and Paul Eggert  <eggert@cs.ucla.edu>
70533
70534         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70535         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70536
70537 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70538
70539         * modules/regex (Files): Add lib/regex_internal.c,
70540         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
70541         (Depends-on): Add extensions.
70542         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
70543
70544 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70545
70546         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
70547         pathconf.
70548         * m4/same.m4 (gl_SAME): Likewise.
70549         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
70550
70551         * m4/regex.m4: Adjust to new libc regex implementation.
70552         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
70553         all the .c and .h parts of (the new) regex.
70554         Quote the m4 stuff better.
70555         Check for RE_ICASE bug of old gnulib.
70556         Check for REG_STARTEND of recent libc.
70557         Rename local variables from jm_* to gl_*.
70558         Quote operand of "test -f".
70559         Say "recent enough" version of libc, not "version 2".
70560         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
70561         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
70562         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
70563         Remove check for btowc, isascii.
70564         Require AM_LANGINFO_CODESET.
70565
70566 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70567
70568         * lib/regex.c, regex.h: Sync from libc.
70569         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
70570         * lib/regexec.c:
70571         New files, synced from libc, except that regex_internal.h
70572         currently has a small porting fix.
70573
70574 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70575
70576         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
70577         regex_internal.c, regexec.c.
70578         Add regex_internal.h too, but as a comment, since the libc version
70579         is currently broken in gnulib mode.
70580
70581 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70582
70583         Support programs like Emacs that use gnulib but not gettext.
70584         * MODULES.html.sh (Internationalization functions): Add gettext-h.
70585         * modules/gettext-h: New file.
70586         * modules/gettext (Files): Remove lib/gettext.h.
70587         (Depends-on): Add gettext-h.
70588         (Makefile.am): Remove lib_SOURCES.
70589         * modules/argmatch, modules/c-stack, modules/closeout:
70590         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
70591         * modules/execute, modules/file-type, modules/getaddrinfo:
70592         * modules/getopt, modules/human, modules/javacomp:
70593         * modules/javaexec, modules/mkdir-p, modules/obstack:
70594         * modules/openat, modules/pagealign_alloc, modules/pipe:
70595         * modules/quotearg, modules/regex, modules/rpmatch:
70596         * modules/unicodeio, modules/userspec, modules/version-etc:
70597         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
70598         * modules/xsetenv:
70599         Depend on gettext-h, not gettext.
70600
70601 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70602
70603         * gnulib-tool (func_import): Add support for 'public domain' license.
70604         * modules/alloca, modules/atexit, modules/memmove:
70605         Now public domain, not GPL.
70606         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
70607         * modules/realloc, modules/strerror, modules/strtod:
70608         Now LGPL, not GPL.
70609
70610 2005-07-05  Bruno Haible  <bruno@clisp.org>
70611
70612         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
70613         autoconf CVS. Needed for mingw.
70614
70615 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70616
70617         Remove the dependency of the strftime module on the tzset module.
70618         * modules/strftime (Depends-on): Remove dependency on tzset.
70619
70620 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70621
70622         Remove the dependency of the strftime module on the tzset module.
70623         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
70624         gl_FUNC_TZSET_CLOBBER.
70625
70626 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         Remove the dependency of the strftime module on the tzset module.
70629         * lib/strftime.c (my_strftime)
70630         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
70631         Copy the input structure, to work around some of the bug with
70632         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
70633         Solaris releases, you should also use the tzset module, but we won't
70634         require it as a dependency any more since we don't want LGPLed code
70635         to depend on GPLed code.
70636
70637 2005-07-02  Jim Meyering  <jim@meyering.net>
70638
70639         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
70640         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
70641         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
70642         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
70643
70644 2005-07-02  Jim Meyering  <jim@meyering.net>
70645
70646         * lib/backupfile.c (backup_args): Change a `0' to NULL.
70647
70648 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70649
70650         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
70651         declares only 'struct timespec;' (!).
70652
70653 2005-07-01  Jim Meyering  <jim@meyering.net>
70654
70655         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
70656         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
70657         * lib/save-cwd.c, tempname.c:
70658         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70659         and don't include <sys/file.h>).
70660
70661 2005-06-29  Jim Meyering  <jim@meyering.net>
70662
70663         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
70664         type name.  Use the variable name instead.
70665         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
70666         Likewise.
70667
70668 2005-06-28  Simon Josefsson  <jas@extundo.com>
70669
70670         * modules/check-version (Files): Add check-version.m4.
70671
70672 2005-06-28  Simon Josefsson  <jas@extundo.com>
70673
70674         * m4/check-version.m4: New file, suggested by Jim Meyering
70675         <jim@meyering.net>.
70676
70677 2005-06-28  Simon Josefsson  <jas@extundo.com>
70678
70679         * lib/check-version.h, lib/check-version.c: New files.
70680
70681 2005-06-28  Simon Josefsson  <jas@extundo.com>
70682
70683         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
70684         collision with global variable.  Better indentation.  Don't
70685         increment buffer pointer beyond buffer end.  Based on comments
70686         from Paul Eggert <eggert@cs.ucla.edu>.
70687
70688         * lib/base64.h: Indent.
70689
70690 2005-06-28  Simon Josefsson  <jas@extundo.com>
70691
70692         * doc/gnulib.texi (Library version handling): New section.
70693
70694 2005-06-28  Jim Meyering  <jim@meyering.net>
70695
70696         * check-module (find_included_lib_files): Hard-code another
70697         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
70698         but modules/fts-lgpl (correctly) does not list those files.
70699
70700         * modules/canonicalize (Files): Add lib/pathmax.h.
70701
70702 2005-06-25  Simon Josefsson  <jas@extundo.com>
70703
70704         * modules/check-version: New file.
70705
70706 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
70707
70708         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
70709         initializer of struct addrinfo, as an indication that we don't
70710         care how many members the structure has.
70711
70712 2005-06-24  Derek Price  <derek@ximbiot.com>
70713         and Bruno Haible  <bruno@clisp.org>
70714
70715         Remove stat module & update lstat.
70716         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
70717         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70718         * m4/stat.m4: Remove this file.
70719
70720 2005-06-24  Derek Price  <derek@ximbiot.com>
70721         and Bruno Haible  <bruno@clisp.org>
70722
70723         Remove stat module & update lstat.
70724         * lib/stat.c: Remove this file...
70725         (slash_aware_lstat): ...moving this content and its support...
70726         * lib/lstat.c (rpl_lstat): ...into here.
70727         * lib/lstat.h: New file.
70728
70729 2005-06-24  Derek Price  <derek@ximbiot.com>
70730         and Bruno Haible  <bruno@clisp.org>
70731
70732         Remove stat module & update lstat.
70733         * config/srclist.txt (libc sources): Remove stat.
70734
70735 2005-06-24  Derek Price  <derek@ximbiot.com>
70736         and Bruno Haible  <bruno@clisp.org>
70737
70738         Remove stat module & update lstat.
70739         * MODULES.html.sh (stat): Remove.
70740         * MODULES.html: Regenerated.
70741         * modules/lstat (Description): Correct function name.
70742         (Files): Add "lstat.h".
70743         (Depends-on): Remove stat, add xalloc, stat-macros.
70744         * modules/stat: Remove this file.
70745         (Include): Add "lstat.h", remove <sys/stat.h>.
70746
70747 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
70748
70749         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
70750         (ranged_convert): Don't save conversion in a temporary struct.
70751         This causes a warning with GCC 4.0.0, and anyway in the typical
70752         case it's not worth the extra 100 bytes or so of code.
70753         (ranged_convert, __mktime_internal): When calling a function via a
70754         pointer P, use P () rather than (*P) (), as we now assume C89 or
70755         better.
70756
70757 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70758
70759         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
70760         "who -r" failed to give output.  Problem reported by Tim Waugh.
70761
70762         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
70763         (xcalloc): Use it to avoid needless tests.
70764         Problem reported by Jim Meyering.
70765
70766 2005-06-20  Derek Price  <derek@ximbiot.com>
70767
70768         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
70769         unnecessary for Autoconfs > 2.59c.
70770
70771 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70772
70773         * lib/argp.h (__option_is_short): Check upper limit of
70774         __key. Isprint() requires its argument to have the value
70775         of an unsigned char or EOF.
70776
70777 2005-06-16  Jim Meyering  <jim@meyering.net>
70778
70779         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
70780         when either N or S is zero.
70781
70782 2005-06-16  Derek Price  <derek@ximbiot.com>
70783
70784         * m4/bison.m4: Declare YACC & YFLAGS precious.
70785
70786 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
70787
70788         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
70789         multibyte string or pattern, fall back on unibyte matching.
70790         Problem reported by James Youngman.
70791
70792 2005-06-08  Bruno Haible  <bruno@clisp.org>
70793
70794         * modules/csharpcomp: New file.
70795         * MODULES.html.sh (C#): Add csharpcomp.
70796
70797 2005-06-08  Bruno Haible  <bruno@clisp.org>
70798
70799         * m4/csharpcomp.m4: New file, from GNU gettext.
70800
70801 2005-06-08  Bruno Haible  <bruno@clisp.org>
70802
70803         * lib/csharpcomp.h: New file, from GNU gettext.
70804         * lib/csharpcomp.c: New file, from GNU gettext.
70805         * lib/csharpcomp.sh.in: New file, from GNU gettext.
70806
70807 2005-06-08  Bruno Haible  <bruno@clisp.org>
70808
70809         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
70810         warning on mingw.
70811
70812 2005-06-07  Derek Price  <derek@ximbiot.com>
70813
70814         Sync from CVS.
70815         * lib/glob_.h: Indent nested #ifdef.
70816
70817 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70818
70819         Sync from coreutils.
70820         Use "file name" when talking about file names, instead of "filename"
70821         or "path", as per the GNU coding standards.
70822         * lib/mkdir-p.c: Renamed from makepath.c.
70823         (make_dir_parents): Renamed from make_path.  All callers changed.
70824         * lib/mkdir-p.h: Likewise.  All includers changed.
70825         * lib/filenamecat.c: Renamed from path-concat.c.
70826         (file_name_concat): Renamed from path_concat.  All callers changed.
70827         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
70828         * lib/filenamecat.h: Likewise.  All includers changed.
70829         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
70830         in comments or local variable names.
70831         * lib/basename.c: Likewise.
70832         * lib/canonicalize.c, canonicalize.h: Likewise.
70833         * lib/dirname.c, dirname.h: Likewise.
70834         * lib/euidaccess.c: Likewise.
70835         * lib/exclude.c: Likewise
70836         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
70837         * lib/fsusage.c, fsuage.h: Likewise.
70838         * lib/fts.c, fts_.h: Likewise.
70839         * lib/getcwd.c: Likewise.
70840         * lib/getloadavg.c: Likewise.
70841         * lib/mkstemp.c: Likewise.
70842         * lib/mountlist.c, mountlist.h: Likewise.
70843         * lib/openat.c, openat.h: Likewise.
70844         * lib/readlink-stub.c: Likewise.
70845         * lib/readutmp.c, readutmp.h: Likewise.
70846         * lib/rename.c: Likewise.
70847         * lib/rmdir.c: Likewise.
70848         * lib/same.c: Likewise.
70849         * lib/savedir.c: Likewise.
70850         * lib/stripslash.c: Likewise.
70851         * lib/tempname.c: Likewise.
70852         * lib/xreadlink.c: Likewise.
70853         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
70854         All uses changed.
70855         * lib/exclude.h: Likewise.
70856
70857         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
70858         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70859         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
70860         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70861         * lib/pathmax.h: Include <limits.h> unconditionally, since other
70862         files have been getting away with it for years (MORE/BSD 4.3
70863         is extinct now).
70864         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
70865         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70866
70867         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
70868         Define to 256, not 255, as per modern POSIX.
70869
70870 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70871
70872         Sync from coreutils.
70873         Use "file name" when talking about file names, instead of "filename"
70874         or "path", as per the GNU coding standards.
70875         * MODULES.html.sh: mkdir-p renamed from makepath.
70876         filenamecat renamed from path-concat.
70877         * modules/filenamecat: Renamed from modules/path-concat.
70878         (Files): filenamecat.h and filenamecat.c renamed from
70879         path-concat.h and path-concat.c.
70880         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
70881         (Include): filenamecat.h, not path-concat.h.
70882         * modules/mkdir-p: Renamed from modules/makepath.
70883         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
70884         makepath.c.
70885         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
70886         (Include): mkdir-p.h, not makepath.h.
70887
70888 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70889
70890         Sync from coreutils.
70891         * m4/mkdir-p.m4: Renamed from makepath.m4.
70892         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
70893         Rename files from makepath.c to mkdir-p.c, and from
70894         makepath.h to mkdir-p.h.
70895         * m4/filenamecat.m4: Renamed from path-concat.m4.
70896         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
70897         Rename files from path-concat.c to filenamecat.c,
70898         and from path-concat.h to filenamecat.h.
70899         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
70900         "file name" in local variables or comments.
70901         * m4/rename.m4: Likewise.
70902
70903 2005-06-01  Bruno Haible  <bruno@clisp.org>
70904
70905         * modules/csharpexec: New file.
70906         * MODULES.html.sh (C#): New section.
70907
70908 2005-06-01  Bruno Haible  <bruno@clisp.org>
70909
70910         * m4/csharp.m4: New file, from GNU gettext.
70911         * m4/csharpexec.m4: New file, from GNU gettext.
70912
70913 2005-06-01  Bruno Haible  <bruno@clisp.org>
70914
70915         * lib/csharpexec.h: New file, from GNU gettext.
70916         * lib/csharpexec.c: New file, from GNU gettext.
70917         * lib/csharpexec.sh.in: New file, from GNU gettext.
70918
70919 2005-05-31  Derek Price  <derek@ximbiot.com>
70920             Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         Sync from cvs.
70923         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70924
70925 2005-05-31  Derek Price  <derek@ximbiot.com>
70926             Paul Eggert  <eggert@cs.ucla.edu>
70927
70928         Sync from cvs.
70929         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70930
70931 2005-05-29  Derek Price  <derek@ximbiot.com>
70932
70933         * config/srclist.txt (glob_.h, glob.c): Add these files.
70934
70935 2005-05-29  Derek Price  <derek@ximbiot.com>
70936
70937         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
70938         * modules/glob: New file.
70939         * modules/getlogin_r: Add link to POSIX spec in description.
70940
70941 2005-05-29  Derek Price  <derek@ximbiot.com>
70942             Paul Eggert  <eggert@cs.ucla.edu>
70943
70944         * m4/glob.m4: New file.
70945
70946 2005-05-29  Derek Price  <derek@ximbiot.com>
70947             Paul Eggert  <eggert@cs.ucla.edu>
70948
70949         * lib/glob_.h, lib/glob.c: New files.
70950
70951 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70952
70953         * modules/fts (Files): Remove m4/inttypes-pri.m4.
70954         * modules/fts-lgpl (Depends-on): Remove gettext.
70955
70956 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70957
70958         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
70959         and don't require gt_INTTYPES_PRI.
70960
70961 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70962
70963         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
70964
70965         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
70966         the configuration hassle isn't worth it.
70967         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
70968         (LONGEST_MODIFIER, PRIuMAX): Remove.
70969
70970 2005-05-27  Bruno Haible  <bruno@clisp.org>
70971
70972         * lib/getlogin_r.h: Remove second include of <stddef.h>.
70973
70974 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
70977         _POSIX_PTHREAD_SEMANTICS for Solaris.
70978
70979 2005-05-25  Derek Price  <derek@ximbiot.com>
70980
70981         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
70982
70983 2005-05-25  Derek Price  <derek@ximbiot.com>
70984             Paul Eggert  <eggert@cs.ucla.edu>
70985
70986         * modules/getlogin_r, m4/getlogin_r.m4: New files.
70987         * lib/getlogin_r.c, getlogin_r.h: New files.
70988
70989 2005-05-25  Bruno Haible  <bruno@clisp.org>
70990             Derek Price  <derek@ximbiot.com>
70991
70992         * lib/getlogin_r.h: Simplify API documentation.
70993
70994 2005-05-23  Derek Price  <derek@ximbiot.com>
70995
70996         * modules/minmax (Files): Add m4/minmax.m4.
70997         (configure.ac): Add gl_MINMAX.
70998
70999 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71000
71001         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71002         so that unistd-safer.h (GPL'ed code) need not be included.
71003
71004 2005-05-22  Bruno Haible  <bruno@clisp.org>
71005
71006         * m4/minmax.m4: New file.
71007         Based on a patch by Derek Price <derek@ximbiot.com>.
71008
71009 2005-05-22  Bruno Haible  <bruno@clisp.org>
71010
71011         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71012         (INT64_MIN): Fix definition.
71013         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71014
71015         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71016         NEED_SIGNED_INT_TYPES.
71017
71018         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71019         HAVE_SYSTEM_INTTYPES.
71020
71021 2005-05-22  Bruno Haible  <bruno@clisp.org>
71022
71023         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71024         Also include <sys/param.h> if it defines MIN, MAX.
71025         Based on a patch by Derek Price <derek@ximbiot.com>.
71026
71027 2005-05-21  Jim Meyering  <jim@meyering.net>
71028
71029         * modules/fts (Files): Add m4/inttypes-pri.m4.
71030         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71031
71032 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71033
71034         New fts module.
71035         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71036         (setup_dir, free_dir): New functions.
71037         (enter_dir, leave_dir): Define trivial
71038         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71039         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71040         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71041         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71042         Move to fts-cycle.c.
71043         (fts_open): Use setup_dir.
71044         (fts_close): Use free_dir.
71045         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71046         This adds a label and some gotos, but the alternatives were messier.
71047         Check for memory allocation failure when entering a dir.
71048         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71049         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71050         (FTS): New member fts_cycle, that is a union that contains the
71051         old active_dir_ht and cycle_state.  All uses changed to mention
71052         fts_cycle.ht and fts_cycle.state.
71053         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71054         fts.c, with the following changes:
71055         (setup_dir, free_dir): New functions.
71056         (enter_dir): Now returns bool.  Return true if successful, false
71057         if memory exhausted.  All callers changed.
71058         Do not bother partly cleaning up on
71059         memory allocation failure; that is free_dir's job.
71060         However, free ad if hash_insert fails, to avoid memory leak.
71061         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71062         fts->fts_options to see which union member to use.
71063
71064 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71067         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71068
71069 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71070
71071         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71072
71073 2005-05-20  Jim Meyering  <jim@meyering.net>
71074
71075         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71076         Now a macro, to pacify GCC.
71077
71078 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71079
71080         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71081         of -1.
71082
71083 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71084
71085         * lib/chown.c (rpl_chown): Return -1 on failure.
71086
71087 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71088
71089         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71090         Don't check for stddef.h.
71091         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71092         don't use its results.
71093         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71094         since we include them unconditionally.  Don't require
71095         AM_STDBOOL_H, since stdbool is a prerequisite.
71096         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71097         since we assume C89 or better.
71098         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71099         as we don't use their results.
71100         Don't check for fchdir, memmove, memset, strrchr, as we use
71101         them unconditionally.
71102         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71103         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71104
71105 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71106
71107         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71108         Include <stddef.h> unconditionally, since we assume C89 now.
71109         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71110         * lib/fts.c: Include fts_.h first, to check interface.
71111         Do not include intprops.h; no longer needed.
71112         Include cycle-check.h and hash.h, since fts_.h no longer does.
71113         Remove unnecessary casts of closedir to void.
71114         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71115         decide whether to decrement nlinks.
71116         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71117         (FTS): Use struct hash_table * instead of Hash_table, so that
71118         we no longer need to include hash.h here.
71119
71120 2005-05-18  Jim Meyering  <jim@meyering.net>
71121
71122         * modules/dirfd (License): Change to LGPL.  Most of the code
71123         is already in the public domain.
71124
71125 2005-05-18  Jim Meyering  <jim@meyering.net>
71126
71127         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71128         Reported by Yoann Vandoorselaere.
71129
71130 2005-05-17  Jim Meyering  <jim@meyering.net>
71131
71132         * m4/fts.m4: New file, from coreutils.
71133
71134 2005-05-17  Jim Meyering  <jim@meyering.net>
71135
71136         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71137
71138 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71139
71140         Sync from coreutils.
71141         * m4/unlinkdir.m4: New file.
71142
71143 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71144
71145         Sync from coreutils.
71146         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71147         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71148         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71149         White space changes only.
71150         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71151         special.
71152         * lib/yesno.c: Include getline.h, not ctype.h.
71153         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71154         Use getline to remove arbitrary restriction on response length.
71155
71156 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71157
71158         * config/srclist-update: Spell out "Street" in FSF postal
71159         mail address; this is the style the FSF seems to prefer.
71160
71161         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71162         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71163         this updates FSF postal mail address.
71164
71165         Sync from coreutils.
71166         * modules/unlinkdir: New file.
71167         * modules/yesno (Depends-on): Add getline.
71168         * MODULES.html.sh (File system functions): Add unlinkdir.
71169
71170 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71171
71172         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71173         lib/strsep.h:
71174         Change the initial comment to refer to GPL, not LGPL.
71175         gnulib-tool will change it to LGPL as needed.
71176
71177         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71178         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71179         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71180         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71181         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71182         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71183         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71184         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71185         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71186         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71187         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71188         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71189         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71190         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71191         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71192         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71193         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71194         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71195         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71196         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71197         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71198         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71199         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71200         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71201         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71202         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71203         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71204         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71205         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71206         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71207         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71208         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71209         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71210         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71211         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71212         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71213         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71214         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71215         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71216         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71217         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71218         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71219         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71220         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71221         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71222         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71223         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71224         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71225         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71226         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71227         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71228         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71229         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71230         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71231         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71232         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71233         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71234         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71235         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71236         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71237         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71238         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71239         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71240         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71241         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71242         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71243         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71244         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71245         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71246         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71247         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71248         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71249         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71250         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71251         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71252         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71253         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71254         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71255         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71256         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71257         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71258         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71259         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71260         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71261         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71262         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71263         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71264         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71265         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71266         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71267         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71268         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71269         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71270         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71271         lib/yesno.c, lib/yesno.h:
71272         Update FSF postal mail address.
71273
71274 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71275
71276         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71277         tests/test-memmem.c, tests/test-stpncpy.c:
71278         Update FSF postal mail address.
71279
71280 2005-05-13  Bruno Haible  <bruno@clisp.org>
71281
71282         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71283         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71284         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71285         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71286         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71287         Add support for 64-bit integers in the MSVC compiler.
71288
71289 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71290
71291         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71292
71293 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71294
71295         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71296
71297 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71298
71299         * doc/getdate.texi (General date syntax): Don't say that date
71300         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71301         Problem reported by Nic Ferrier.
71302
71303 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71304
71305         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71306         specified in ai_socktype. Fix invalid ai_protocol
71307         check. ai_protocol is usually set to 0 or depending on
71308         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71309         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71310         ai_socktype / ai_protocol in the returned addrinfo structure.
71311
71312 2005-05-10  Simon Josefsson  <jas@extundo.com>
71313
71314         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71315         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71316
71317 2005-05-10  Karl Berry  <karl@gnu.org>
71318
71319         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71320         (from http://www.gnu.org/licenses).
71321         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71322         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71323         fdl.texi suffices.
71324
71325 2005-05-10  Karl Berry  <karl@gnu.org>
71326
71327         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71328         (COPYING.DOC): remove.
71329
71330         * config/srclist-update: new FSF address.
71331
71332 2005-05-10  Derek Price  <derek@ximbiot.com>
71333
71334         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71335         possible.
71336
71337 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71338             Bruno Haible  <bruno@clisp.org>
71339
71340         * modules/inet_ntop: New file.
71341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71342         inet_ntop.
71343
71344 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71345             Bruno Haible  <bruno@clisp.org>
71346
71347         * m4/inet_ntop.m4: New file.
71348
71349 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71350             Bruno Haible  <bruno@clisp.org>
71351
71352         * lib/inet_ntop.h: New file.
71353         * lib/inet_ntop.c: New file, from glibc with modifications.
71354
71355 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71356
71357         * modules/time_r (License): Change to LGPL.
71358         * modules/extensions (License): Change to LGPL.  Actually,
71359         the license is more permissive than that, but currently gnulib-tool
71360         doesn't know how to handle more-permissive licenses.
71361
71362         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71363         Problem reported by Dave Love.
71364
71365 2005-05-08  Jim Meyering  <jim@meyering.net>
71366
71367         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71368         blank.
71369
71370 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71371
71372         * modules/argmatch (Depends-on): Add stdbool.
71373         * modules/backupfile (Depends-on): Likewise.
71374         * modules/chdir-long (Depends-on): Likewise.
71375         * modules/closeout (Depends-on): Likewise.
71376         * modules/cycle-check (Depends-on): Likewise.
71377         * modules/dirname (Depends-on): Likewise.
71378         * modules/fnmatch (Depends-on): Likewise.
71379         * modules/fsusage (Depends-on): Likewise.
71380         * modules/fwriteerror (Depends-on): Likewise.
71381         * modules/getcwd (Depends-on): Likewise.
71382         * modules/getloadavg (Depends-on): Likewise.
71383         * modules/hard-locale (Depends-on): Likewise.
71384         * modules/makepath (Depends-on): Likewise.
71385         * modules/mountlist (Depends-on): Likewise.
71386         * modules/nanosleep (Depends-on): Likewise.
71387         * modules/posixtm (Depends-on): Likewise.
71388         * modules/quotearg (Depends-on): Likewise.
71389         * modules/readtokens (Depends-on): Likewise.
71390         * modules/readtokens0 (Depends-on): Likewise.
71391         * modules/readutmp (Depends-on): Likewise.
71392         * modules/save-cwd (Depends-on): Likewise.
71393         * modules/strftime (Depends-on): Likewise.
71394         * modules/userspec (Depends-on): Likewise.
71395         * modules/utimecmp (Depends-on): Likewise.
71396         * modules/xgetcwd (Depends-on): Likewise.
71397         * modules/xnanosleep (Depends-on): Likewise.
71398         * modules/xstrtod (Depends-on): Likewise.
71399         * modules/yesno (Depends-on): Likewise.
71400
71401 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71402
71403         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71404         needless checks.
71405
71406 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71407
71408         Merge from coreutils.  Among other things,
71409         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71410         * lib/fd-safer.c: New file.
71411         * lib/fcntl-safer.h, open-safer.c: Remove.
71412         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71413         * lib/dup-safer.c: Include unistd-safer.h first.
71414         Don't include errno.h.
71415         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71416         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71417         * lib/file-type.c: Rely on file-type.h change.
71418         * lib/getloadavg.c: Include unistd-safer.h.
71419         (getloadavg): Use safer open.
71420         * lib/getusershell.c: Include "stdio-safer.h".
71421         (getusershell): Use safer fopen.
71422         * lib/long-options.c (long_options): Use NULL rather than 0.
71423         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71424         'free'.
71425         * lib/modechange.c: Likewise.
71426         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71427         (MODE_DONE): New constant.
71428         (struct mode_change): Remove 'next' member.
71429         (make_node_op_equals): New function; like the old one of the
71430         same name, except it allocates an array.
71431         (mode_compile, mode_create_from_ref): Use it.
71432         (mode_compile): Allocate result as an array, not a linked list.
71433         Parse octal string ourself, so that we catch mistakes like "+0".
71434         (mode_adjust): Arg is an array, not a linked list.
71435         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71436         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71437         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71438         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71439         Remove.  This is now stat-macros.h's job.
71440         (talloc): Remove.  All callers replaced by xalloc, so that
71441         our invokers don't have to worry about reporting memory failures.
71442         (make_node_op_equals): Remove.
71443         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71444         New constants.
71445         (struct mode_change): Moved here from modechange.h.
71446         (mode_append_entry): Remove.
71447         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71448         apps to have incorrect behavior.  Use simpler algorithm for head
71449         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71450         Detect more invalid usages rather than having somewhat-random behavior.
71451         Don't insert an "a=" action, as that leads to incorrect behavior.
71452         (mode_compile, mode_create_from_ref): Return NULL on error instead
71453         of an enum, since now there's only one way to have an error.  All
71454         callers changed.
71455         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
71456         at the correct time.  Simplify calculation of "+u" and its ilk.
71457         Don't mishandle "+X".
71458         (mode_free): Remove "register" and localize decls.
71459         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71460         (struct mode_change): Move to modechange.c; callers don't
71461         need to see this stuff.
71462         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
71463         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
71464         (mode_change, mode_adjust): Reflect the new signatures noted above.
71465         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
71466         that might redefine system include files.
71467         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
71468         (my_usleep): Use NULL rather than (void *) 0.
71469         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
71470         Use siginterrupt to specify that system calls should be interrupted.
71471         (rpl_nanosleep): Move initialization of suspended closer to call of
71472         my_usleep.
71473         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71474         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71475         (desirable_utmp_entry): New function.
71476         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71477         using x2nrealloc, to simplify logic.
71478         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71479         size calculation.  Do not assume utmp file is a regular file.
71480         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71481         (READ_UTMP_CHECK_PIDS): New constant.
71482         * lib/save-cwd.c: Include unistd-safer.h.
71483         (save_cwd): Use fd_safer.
71484         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71485         [!_LIBC] Include "stat-macros.h" instead.
71486         * lib/unistd-safer.h (fd_safer): New decl.
71487
71488 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71489
71490         * modules/getloadavg (Depends-on): Add unistd-safer.
71491         * modules/getusershell (Depends-on): Add stdio-safer.
71492         * modules/lstat (Depends-on): Remove xalloc.
71493         * modules/mkstemp (Depends-on): Add stat-macros.
71494         * modules/modechange (Depends-on): Remove xstrtol.
71495         Add stat-macros, xalloc.
71496         * modules/save-cwd (Depends-on): Add unistd-safer.
71497         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71498         * modules/unistd-safer (Files): Add lib/fd-safer.c
71499         (Makefile.am): Remove lib_SOURCES.
71500
71501         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71502         Remove fcntl-safer; unistd-safer supersedes it.
71503
71504 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71505
71506         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71507         AC_HEADER_STAT.
71508         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71509         (gl_PREREQ_CHOWN): Remove.
71510         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71511         it.  Don't require AC_HEADER_STAT.
71512         (gl_PREREQ_LSTAT): Remove.
71513         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71514         Don't require AC_HEADER_STAT.
71515         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71516         (gl_PREREQ_RMDIR): Remove.
71517         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71518         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71519         the stat-macros module a prerequisite.
71520         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71521         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71522         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71523         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71524         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71525         variable names.
71526         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71527         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71528         variable prefixes.
71529         * m4/fcntl-safer.m4: Remove.
71530         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71531         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71532         Invoke gl_PREREQ_FD_SAFER.
71533         (gl_PREREQ_FD_SAFER): New macro.
71534         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71535         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71536         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
71537         Remove duplicate call to AC_LIBOBJ(readutmp).
71538         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
71539
71540         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
71541         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
71542
71543 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71544
71545         * MODULES.html.sh (Misc): Add byteswap.
71546
71547 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71548
71549         * modules/getcwd (Depends-on): Add extensions.
71550         * modules/openat (Depends-on): Likewise.
71551
71552 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71553
71554         * modules/byteswap: New file.
71555
71556 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71557
71558         * m4/byteswap.m4: New file.
71559
71560 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71561
71562         * lib/byteswap_.h: New file.
71563
71564 2005-04-25  Karl Berry  <karl@gnu.org>
71565
71566         * m4/gettext.m4: Update from GNU gettext 0.14.4.
71567
71568 2005-04-25  Albert Chin  <china@thewrittenword.com>
71569
71570         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
71571         Toolkit C bug.
71572
71573 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
71574
71575         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
71576         (func_ln_if_changed): Remove forcibly for no error message
71577         in case file does not exist.
71578
71579 2005-04-19  Simon Josefsson  <jas@extundo.com>
71580
71581         * gnulib-tool (Options): Make --symlink mean --symbolic.
71582
71583 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
71584
71585         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
71586
71587 2005-04-16  Simon Josefsson  <jas@extundo.com>
71588
71589         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
71590
71591 2005-04-15  Simon Josefsson  <jas@extundo.com>
71592
71593         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
71594
71595 2005-04-15  Simon Josefsson  <jas@extundo.com>
71596
71597         * gnulib-tool: Rename --symlink to --symbolic.
71598
71599 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
71600
71601         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
71602         symbolic links to files instead of copying/moving.  Add --aux-dir,
71603         specifying directory relative --dir where auxiliary build tools
71604         are placed.
71605
71606 2005-04-14  Bruno Haible  <bruno@clisp.org>
71607
71608         * modules/allocsa (License): Change to LGPL.
71609         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71610
71611 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71612
71613         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
71614         that "UTC +1 second" continues to work.  Problem reported
71615         by Dmitry V. Levin.
71616         (relunit_snumber): New rule.
71617         (relunit): Use it.
71618
71619 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71620
71621         * lib/getdate.y (universal_time_zone_table): New constant.
71622         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
71623         universal_time_zone_table.
71624         (lookup_zone): Prefer universal_time_zone_table to
71625         local_time_zone_table, so that "GMT" time stamps are allowed in
71626         London during the summer.  Problem reported by Ian Abbott.
71627
71628 2005-04-12  Jim Meyering  <jim@meyering.net>
71629
71630         * lib/human.c (humblock): Set *options even when returning due to
71631         xstrtoumax conversion failure.  Thanks to a used-uninitialized
71632         warning from gcc-4.
71633
71634 2005-04-09  Jim Meyering  <jim@meyering.net>
71635
71636         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
71637         -Wuninitialized: initialize tm0.tm_year.
71638
71639 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71640
71641         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
71642         count, since there's no maximum.  All uses changed.
71643         Add member dsts_seen.
71644         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
71645         not being INT_MAX.
71646         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
71647         Use pc_rels_seen to decide whther a date is absolute.
71648
71649         * lib/getdate.y (number): Don't overwrite year.
71650         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
71651         check.
71652
71653 2005-04-02  Simon Josefsson  <jas@extundo.com>
71654
71655         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
71656         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
71657
71658 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
71659
71660         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
71661         where no absolute path name can be longer than PATH_MAX.
71662
71663 2005-03-27  Jim Meyering  <jim@meyering.net>
71664
71665         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
71666
71667 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
71668
71669         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
71670         "one's complement" -> "ones' complement" in comment, as per Knuth.
71671         "value of type" -> "type or expression" in comment.
71672         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
71673
71674 2005-03-26  Jim Meyering  <jim@meyering.net>
71675
71676         Comment nits.
71677         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
71678         Correct typos: s/or/of/.
71679
71680 2005-03-26  Jim Meyering  <jim@meyering.net>
71681
71682         * modules/check-include-files: Move to ../ and rename to...
71683         * check-module: ...this.
71684
71685 2005-03-25  Jim Meyering  <jim@meyering.net>
71686
71687         * modules/xvasprintf (Files): Add xalloc.h.
71688
71689 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         * modules/gettext (Files): config/config.rpath ->
71692         build-aux/config.rpath
71693         * modules/iconv (Files): Likewise.
71694         Problem reported by Oskar Liljeblad.
71695
71696 2005-03-23  Jim Meyering  <jim@meyering.net>
71697
71698         * modules/check-include-files: New script to check for
71699         missing dependencies, multiple includes, etc.
71700
71701         * modules/c-strtold (Depends-on): Add xalloc.
71702         * modules/c-strtod (Depends-on): Add xalloc.
71703         * modules/hash (Depends-on): Add xalloc.
71704         (Files): Remove lib/xalloc.h.
71705
71706         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
71707         * modules/userspec (Files): Add lib/inttostr.h.
71708
71709 2005-03-23  Jim Meyering  <jim@meyering.net>
71710
71711         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
71712
71713 2005-03-22  Jim Meyering  <jim@meyering.net>
71714
71715         * modules/stat-macros: New module.
71716         * modules/canonicalize, modules/euidaccess, modules/file-type,
71717         * modules/filemode, modules/lchown, modules/makepath,
71718         * modules/rmdir, modules/stat: Depend on new stat-macros module
71719         rather than listing lib/stat-macros.h manually.
71720         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
71721
71722 2005-03-22  Jim Meyering  <jim@meyering.net>
71723
71724         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
71725
71726 2005-03-22  Bruno Haible  <bruno@clisp.org>
71727
71728         * config/srclist.txt: Replace target directory 'config' with
71729         'build-aux'.
71730         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
71731         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
71732         ../build-aux/.
71733
71734 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
71735
71736         * modules/chdir-long (Depends-on): Add mempcpy.
71737
71738         * modules/acl, modules/backupfile, modules/c-strtod,
71739         modules/c-strtold, modules/canon-host, modules/canonicalize,
71740         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
71741         modules/exclude, modules/exitfail, modules/file-type,
71742         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
71743         modules/getdate, modules/getline, modules/getpagesize,
71744         modules/getpass, modules/getugroups, modules/group-member,
71745         modules/hard-locale, modules/hash, modules/human, modules/idcache,
71746         modules/inttostr, modules/long-options, modules/makepath,
71747         modules/md5, modules/memcasecmp, modules/memcoll,
71748         modules/modechange, modules/mountlist, modules/path-concat,
71749         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
71750         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
71751         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
71752         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
71753         modules/strftime, modules/strndup, modules/strverscmp,
71754         modules/timespec, modules/unlocked-io, modules/userspec,
71755         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
71756         modules/yesno:
71757         Remove lib_SOURCES line from Makefile.am section, as this is now
71758         done automatically by the corresponding Autoconf macro.
71759
71760 2005-03-21  Jim Meyering  <jim@meyering.net>
71761
71762         Changes imported from coreutils.
71763
71764         * lib/cycle-check.c: Don't include xalloc.h.
71765
71766         * lib/path-concat.c: Don't include assert.h.
71767         (path_concat): Remove assertion that would have triggered
71768         for ABASE starting with more than one slash.
71769         Reported by Andreas Schwab.
71770
71771         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
71772         properly when ABASE is an absolute file name.
71773         Correct the description of this function.
71774         Include <assert.h>.
71775         Add an assertion and a test driver.
71776         This fixes a bug introduced on 2004-07-02.
71777         Andreas Schwab reported the resulting failure of cp --parents:
71778         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
71779
71780 2005-03-21  Jim Meyering  <jim@meyering.net>
71781
71782         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
71783         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
71784
71785 2005-03-21  Jim Meyering  <jim@meyering.net>
71786         and  Paul Eggert  <eggert@cs.ucla.edu>
71787
71788         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
71789         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
71790         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
71791         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
71792         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
71793         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
71794         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
71795         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
71796         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
71797         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
71798         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
71799         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
71800         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
71801         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
71802         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
71803         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
71804         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
71805         for these modules.
71806
71807 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
71808
71809         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
71810         (which shouldn't happen), generate nothing instead of returning 0
71811         immediately, so that nstrftime (NULL, ...) doesn't return 0.
71812
71813 2005-03-16  Bruno Haible  <bruno@clisp.org>
71814
71815         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
71816         HAVE_LONGLONG_64BIT.
71817
71818 2005-03-16  Bruno Haible  <bruno@clisp.org>
71819
71820         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
71821         HAVE_LONGLONG_64BIT.
71822
71823 2005-03-16  Bruno Haible  <bruno@clisp.org>
71824
71825         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
71826         HAVE_LONGLONG_64BIT.
71827
71828 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71829
71830         * lib/strftime.c (my_strftime): Prepend space to format so that we can
71831         reliably distinguish strftime failure from empty output on POSIX
71832         hosts.
71833
71834 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71835
71836         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
71837         (iconv_string): Don't guess a size-zero buffer, as that might cause
71838         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
71839         result would be 'too large', where 'too large' is (heuristically)
71840         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
71841         overflow concerns.  This will prevent some unwanted malloc failures
71842         when the inputs are very large.
71843
71844 2005-03-15  Karl Berry  <karl@gnu.org>
71845
71846         * config/srclist.txt (config.rpath): from gettext.
71847         * config/config.rpath: update.
71848
71849 2005-03-15  Bruno Haible  <bruno@clisp.org>
71850
71851         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
71852         to 'negate'.
71853
71854         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
71855         variable.
71856
71857         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
71858         results.
71859
71860 2005-03-14  Simon Josefsson  <jas@extundo.com>
71861
71862         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
71863         <fx@gnu.org>.
71864
71865 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
71866
71867         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
71868         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
71869         intprops.h.
71870         * lib/strtol.c: Likewise.
71871
71872 2005-03-14  Jim Meyering  <jim@meyering.net>
71873
71874         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
71875         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
71876         to be nonzero so that we (and caller) can detect the difference
71877         between a valid zero-length expansion and an error return, even
71878         when the underlying strftime fails before writing anything into
71879         that location.
71880
71881 2005-03-14  Bruno Haible  <bruno@clisp.org>
71882
71883         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
71884         Update from GNU gettext 0.14.3.
71885
71886 2005-03-10  Jim Meyering  <jim@meyering.net>
71887
71888         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
71889
71890 2005-03-10  Jim Meyering  <jim@meyering.net>
71891
71892         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
71893         so that this module works on systems without fchdir.
71894
71895 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
71896
71897         Factor int-properties macros into a single file, except for
71898         glibc-related files.
71899         * lib/intprops.h: New file.
71900         * lib/getloadavg.c: Include it instead of limits.h.
71901         (INT_STRLEN_BOUND): Remove.
71902         * lib/human.c: Include intprops.h.
71903         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
71904         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
71905         302/1000.
71906         * lib/inttostr.h: Include intprops.h instead of limits.h.
71907         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
71908         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
71909         for consistency with intprops.h.
71910         (time_t_is_integer, twos_complement_arithmetic): Use them.
71911         * lib/sig2str.h: Include <signal.h>, intprops.h.
71912         (INT_STRLEN_BOUND): Remove.
71913         * lib/strftime.c (TYPE_SIGNED): Remove.
71914         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
71915         * lib/strtol.c: Adjust comments to match intprops.h.
71916         * lib/userspec.c: Include intprops.h.
71917         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
71918         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
71919         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
71920         instead of rolling our own expressions.
71921         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
71922
71923         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
71924         instead of int.
71925         (my_strftime): Do not mishandle years close to INT_MAX, by doing
71926         the right thing even if adding 1900 would overflow.  Similarly
71927         for tm_mon + 1 and tm_yday + 1.
71928         Make %Y always equivalent to %C%y, and similarly for %G and %g.
71929         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
71930         (DO_SIGNED_NUMBER): New macro.
71931         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
71932
71933 2005-03-07  Bruno Haible  <bruno@clisp.org>
71934
71935         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
71936
71937 2005-03-07  Bruno Haible  <bruno@clisp.org>
71938
71939         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
71940
71941 2005-03-04  Derek R. Price  <derek@ximbiot.com>
71942
71943         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
71944         (func_import): Only replace files via --import when they have actually
71945         changed.
71946
71947 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71948
71949         * m4/mmap-anon.m4: New file.
71950         * m4/pagealign_alloc.m4: New file.
71951
71952 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71953             Bruno Haible  <bruno@clisp.org>
71954
71955         * modules/pagealign_alloc: New file.
71956         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
71957
71958 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71959             Bruno Haible  <bruno@clisp.org>
71960
71961         * lib/pagealign_alloc.h: New file.
71962         * lib/pagealign_alloc.c: New file.
71963
71964 2005-03-03  Bruno Haible  <bruno@clisp.org>
71965
71966         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
71967         Use an all-permissive copyright notice, recommended by RMS.
71968
71969 2005-03-02  Bruno Haible  <bruno@clisp.org>
71970
71971         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
71972         of AIX, the replacement has to be done only after <string.h> is
71973         included, therefore not in config.h. stpncpy.h does the replacement,
71974         and stpncpy.c uses it.
71975
71976 2005-03-02  Bruno Haible  <bruno@clisp.org>
71977
71978         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
71979         stpncpy.c uses it.
71980
71981 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71982
71983         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
71984         The workaround isn't strictly needed for POSIX conformance, and
71985         it's too much of a pain to configure and maintain.  We'll ask
71986         people to fix their kernels instead.
71987         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
71988         (NANOSLEEP_BUG_WORKAROUND): Remove.
71989         (xnanosleep): Remove the workaround.
71990
71991 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71992
71993         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
71994         Reported by Derek Price.
71995         (Include): Add "timespec.h".
71996
71997         * modules/xnanosleep (Depends-on): Remove gethrxtime.
71998
71999 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72000
72001         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72002         to detect nanosleep bug.
72003
72004 2005-03-01  Bruno Haible  <bruno@clisp.org>
72005
72006         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72007
72008 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72009
72010         * modules/gethrxtime: New file.
72011         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72012         (Depends-on): Add gethrxtime.
72013         (configure.ac): Add gl_XNANOSLEEP.
72014         (Makefile.am): Remove lib_SOURCES line.
72015
72016 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72017
72018         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72019         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72020
72021 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72022
72023         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72024         * lib/timespec.h (gettime): Return void, since it always
72025         succeeds now.  All uses changed.
72026         * lib/gettime.c (gettime): Likewise.
72027         [HAVE_NANOTIME]: Prefer nanotime.
72028         Assume gettimeofday succeeds, as POSIX requires.
72029         Assime time () succeeds, since other code already does.
72030         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72031         (timespec_subtract): Remove.
72032         (NANOSLEEP_BUG_WORKAROUND): New constant.
72033         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72034         things considerably.  Use it only on GNU/Linux hosts, since the
72035         workaround shouldn't be needed elsewhere.
72036
72037 2005-02-24  Bruno Haible  <bruno@clisp.org>
72038
72039         * modules/gettext (Files): Add m4/glibc2.m4.
72040
72041 2005-02-24  Bruno Haible  <bruno@clisp.org>
72042
72043         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72044         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72045         * m4/progtest.m4:
72046         Update from GNU gettext 0.14.2.
72047         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72048
72049 2005-02-24  Bruno Haible  <bruno@clisp.org>
72050
72051         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72052         * lib/config.charset: Update from GNU gettext 0.14.2.
72053
72054 2005-02-24  Bruno Haible  <bruno@clisp.org>
72055
72056         * lib/gettext.h: Update from GNU gettext 0.14.2.
72057
72058 2005-02-23  Simon Josefsson  <jas@extundo.com>
72059
72060         * m4/iconvme.m4: New file.
72061
72062 2005-02-23  Jim Meyering  <jim@meyering.net>
72063
72064         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72065         change.
72066         Thanks to Bruno Haible for catching it.
72067
72068 2005-02-22  Simon Josefsson  <jas@extundo.com>
72069
72070         * modules/iconvme: New file.
72071
72072         * MODULES.html.sh: Add iconvme.
72073
72074 2005-02-22  Simon Josefsson  <jas@extundo.com>
72075
72076         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72077
72078 2005-02-22  Simon Josefsson  <jas@extundo.com>
72079
72080         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72081
72082 2005-02-22  Jim Meyering  <jim@meyering.net>
72083
72084         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72085         s/ifndef/ifdef/.
72086
72087 2005-02-20  Neil Conway  <neilc@samurai.com>
72088
72089         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72090         returned by OSX/Darwin if the specified buffer is not large
72091         enough for the hostname.
72092
72093 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72094
72095         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72096         pass it to _help, otherwise the latter coredumps trying to
72097         dereference state.root_argp.
72098
72099 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72100
72101         * modules/chdir-long (Depends-on): Add memrchr.
72102         * modules/memrchr (Files): Add lib/memrchr.h.
72103         (Include): "memrchr.h".
72104
72105 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72106
72107         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72108
72109 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72110
72111         * lib/memrchr.h: New file.
72112         * lib/chdir-long.c: Include it.
72113         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72114         Don't bother including stddef.h.
72115
72116 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72117
72118         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72119         inclusion.
72120         Include <sys/types.h>, for dev_t.
72121         (ME_DUMMY, ME_REMOTE): Move from here....
72122         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72123         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72124         Dmitry V. Levin.
72125         Include mountlist.h first, to test the interface.
72126
72127 2005-01-29  Bruno Haible  <bruno@clisp.org>
72128
72129         * lib/progname.c (program_name): Initialize.
72130         Needed when linking statically on MacOS X.
72131
72132 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72133
72134         Sync from coreutils.
72135         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72136         (Depends-on): Add c-strtod.
72137         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72138
72139 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72140
72141         Sync from coreutils.
72142         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72143
72144         Remove files that are specific to coreutils.
72145         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72146
72147 2005-01-28  Bruno Haible  <bruno@clisp.org>
72148
72149         * modules/javacomp: New file.
72150         * MODULES.html.sh (Java): Add javacomp.
72151
72152 2005-01-28  Bruno Haible  <bruno@clisp.org>
72153
72154         * m4/javacomp.m4: New file, from GNU gettext.
72155
72156 2005-01-28  Bruno Haible  <bruno@clisp.org>
72157
72158         * lib/javacomp.sh.in: New file, from GNU gettext.
72159         * lib/javacomp.h: New file, from GNU gettext.
72160         * lib/javacomp.c: New file, from GNU gettext.
72161
72162 2005-01-26  Simon Josefsson  <jas@extundo.com>
72163
72164         * lib/gai_strerror.c: Use GPL in header.
72165
72166 2005-01-26  Bruno Haible  <bruno@clisp.org>
72167
72168         * modules/javaexec: New file.
72169         * MODULES.html.sh (Java): Add javaexec.
72170
72171 2005-01-26  Bruno Haible  <bruno@clisp.org>
72172
72173         * m4/javaexec.m4: New file, from GNU gettext.
72174
72175 2005-01-26  Bruno Haible  <bruno@clisp.org>
72176
72177         * lib/javaexec.sh.in: New file, from GNU gettext.
72178         * lib/javaexec.h: New file, from GNU gettext.
72179         * lib/javaexec.c: New file, from GNU gettext.
72180
72181 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72182
72183         * modules/lchown (Depends-on): Remove lchown.h
72184
72185 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72186
72187         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72188         must be defined if the header file was not found, in order
72189         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72190
72191 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72192
72193         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72194         initializers for struct pentry_state.
72195         (__argp_error): Check return value of __asprintf
72196         (__argp_failure): Translate error message
72197
72198         * lib/argp-parse.c: Removed braces around the expansion of N_()
72199
72200 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72201
72202         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72203         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72204         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72205         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72206         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72207         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72208         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72209         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72210         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72211         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72212         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72213         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72214         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72215         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72216         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72217         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72218         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72219         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72220         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72221         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72222         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72223         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72224         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72225         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72226         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72227         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72228         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72229         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72230         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72231         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72232         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72233         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72234         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72235         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72236         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72237         Use an all-permissive copyright notice, recommended by RMS.
72238
72239 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72240
72241         * modules/chdir-long (Depends-on): Remove mempcpy.
72242
72243 2005-01-21  Jim Meyering  <jim@meyering.net>
72244
72245         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72246         same value as for Solaris 9.
72247
72248         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72249         component length.  This included changing the parameter to be
72250         of type `char *' rather than `char const *'.
72251         * lib/chdir-long.h (chdir_long): Update prototype.
72252
72253         * lib/openat.c (fdopendir, fstatat): New functions.
72254         * lib/openat.h: Include headers required for use of DIR and struct
72255         stat.
72256         [AT_SYMLINK_NOFOLLOW]: Define.
72257         (fdopendir, fstatat): Add prototypes.
72258
72259 2005-01-21  Bruno Haible  <bruno@clisp.org>
72260
72261         * modules/classpath: New file.
72262         * MODULES.html.sh (Java): Add classpath.
72263
72264 2005-01-21  Bruno Haible  <bruno@clisp.org>
72265
72266         * lib/classpath.h: New file, from GNU gettext.
72267         * lib/classpath.c: New file, from GNU gettext.
72268
72269 2005-01-20  Simon Josefsson  <jas@extundo.com>
72270
72271         * modules/version-etc-fsf: New file.
72272
72273 2005-01-20  Simon Josefsson  <jas@extundo.com>
72274
72275         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72276         * lib/version-etc.c: Remove version_etc_copyright.
72277         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72278         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72279
72280 2005-01-20  Simon Josefsson  <jas@extundo.com>
72281
72282         * lib/base64.h (isbase64): Add.
72283
72284         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72285         using a unsigned prototype, don't inline.
72286         (base64_decode): Use it.
72287
72288 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72289
72290         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72291         it.
72292
72293 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72294
72295         * lib/save-cwd.c (save_cwd): Remove code to support the case
72296         where fchdir is missing or flaky.
72297
72298 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72299
72300         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72301
72302 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72303
72304         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72305         AC_LIBSOURCES now does this.
72306         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72307         with new ullong_max module.
72308
72309 2005-01-19  Bruno Haible  <bruno@clisp.org>
72310
72311         * modules/sh-quote: New file.
72312         * MODULES.html.sh (Executing programs): Add sh-quote.
72313
72314 2005-01-19  Bruno Haible  <bruno@clisp.org>
72315
72316         * lib/sh-quote.h: New file, from GNU gettext.
72317         * lib/sh-quote.c: New file, from GNU gettext.
72318
72319 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72320
72321         Merge from coreutils.
72322         * m4/ullong_max.m4: New file.
72323         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72324         (gl_MACROS): Assume localeconv exists.
72325
72326 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72327
72328         Merge changes from coreutils, as described below in several
72329         changelogs dated today.
72330
72331         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72332         (O_DIRECTORY): Remove; not needed here, since "." must be
72333         a directory.  All uses removed.
72334         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72335         universal on Suns, and we also need to test for IRIX.
72336         Revamp code to use 'if' rather than '#if'.
72337         Avoid unnecessary comparison of cwd->desc to 0.
72338
72339         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72340         for known valid error numbers rather than observed invalid ones.
72341
72342 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72343
72344         * modules/ullong_max: New file.
72345
72346         * modules/chdir-long, modules/openat: New files.
72347         * modules/save-cwd (Depends-on): Depend on chdir-long.
72348         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72349
72350 2005-01-18  Jim Meyering  <jim@meyering.net>
72351
72352         Merge from coreutils.
72353         * m4/chdir-long.m4, m4/openat.m4: New files.
72354         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72355         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72356         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72357         is sane and DOES follow symlinks.  Besides, testing 20 different
72358         systems found no broken chown implementations.
72359         Prompted by a change in rsync's copy of this macro.
72360         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72361
72362         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72363
72364         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72365         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72366         NULL-means-set-to-current-time semantics.
72367         Remove temporary file immediately, rather than waiting
72368         for configure's at-exit trap code to do it.
72369
72370 2005-01-18  Jim Meyering  <jim@meyering.net>
72371
72372         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72373
72374         * lib/utimens.c (futimens): Account for the fact that futimes
72375         can also fail with errno == ENOSYS or errno == ENOENT.
72376         Patch from Dmitry V. Levin.
72377
72378         Change the name of the robust chdir function from chdir to chdir_long.
72379         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72380         (restore_cwd): Use chdir_long, not chdir.
72381         * lib/chdir-long.c: Renamed from chdir.c.
72382         * lib/chdir-long.h: Renamed from chdir.h.
72383         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72384         Hurd.
72385
72386 2005-01-18  Bruno Haible  <bruno@clisp.org>
72387
72388         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72389         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72390         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72391         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72392         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72393         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72394         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72395         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72396         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72397         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72398         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72399         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72400         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72401         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72402         Use an all-permissive copyright notice, recommended by RMS.
72403
72404 2005-01-18  Bob Proulx  <bob@proulx.com>
72405
72406         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72407         simplify offsetof() macro construct to avoid compile failure with
72408         native HP-UX 11.0 ANSI C compiler.
72409
72410 2005-01-17  Bruno Haible  <bruno@clisp.org>
72411
72412         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72413         redundant because stpncpy.m4 takes care of it.
72414
72415 2005-01-17  Bruno Haible  <bruno@clisp.org>
72416
72417         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72418
72419 2005-01-17  Bruno Haible  <bruno@clisp.org>
72420
72421         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72422         used.
72423
72424 2005-01-17  Bruno Haible  <bruno@clisp.org>
72425
72426         * lib/fwriteerror.h (fwriteerror): Change specification to include
72427         fclose.
72428         * lib/fwriteerror.c: Include <stdbool.h>.
72429         (fwriteerror): At the end, close the file stream. Record whether
72430         stdout was already closed.
72431
72432 2005-01-17  Bruno Haible  <bruno@clisp.org>
72433
72434         * lib/execute.c (environ): Declare if needed.
72435         * lib/pipe.c (environ): Likewise.
72436         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72437
72438 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72439
72440         * modules/argp: Depend on vsnprintf
72441
72442 2005-01-10  Jim Meyering  <jim@meyering.net>
72443
72444         * modules/closeout (Depends-on): Add atexit.
72445
72446 2005-01-06  Bruno Haible  <bruno@clisp.org>
72447
72448         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72449
72450 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72451
72452         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
72453         definitions to be after all include files, to avoid collisions.
72454         Problem reported by Bob Proulx.
72455
72456 2005-01-04  Jim Meyering  <jim@meyering.net>
72457
72458         Changes imported from coreutils.
72459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
72460         as the mkstemp template, use a temporary directory and an
72461         8.3-friendly template to avoid trouble on systems like DJGPP.
72462         Reported by Juan M. Guerrero via Stepan Kasal.
72463         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
72464         close. Remove the temporary directory right away, rather than waiting
72465         for configure's at-exit trap code to do it.
72466         Suggestion from Stepan Kasal.
72467
72468 2005-01-01  Simon Josefsson  <jas@extundo.com>
72469
72470         * gnulib-tool: Print #include directives when --import'ing.
72471
72472 2004-12-28  Simon Josefsson  <jas@extundo.com>
72473
72474         * tests/test-base64.c: Include required header files.  Remove
72475         unused variables.
72476
72477 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72478
72479         * modules/error (Depends-on): Remove gettext.
72480
72481 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72484         not needed.  This removes a dependency on the gettext module.
72485         [defined _LIBC]: Do not include <libintl.h>; not needed.
72486
72487 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72488
72489         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72490         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72491
72492 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72495         HAVE_DECL_STRTOLD.
72496
72497 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72498
72499         * modules/getdate (Depends-on): Remove alloca-opt.
72500
72501 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72502
72503         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72504
72505 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72506
72507         * lib/argp-parse.c: Include <stddef.h>.
72508         (alignof, alignto): New macros.
72509         (parser_init): Don't assume that void * is aligned sufficiently
72510         for struct option.
72511
72512         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72513         need to extend the stack.
72514         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72515         large.
72516
72517 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72518
72519         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72520
72521 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72522
72523         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72524         (2004-10-24) change.  Apparently this was a false alarm.
72525
72526         * modules/getdate: Depend on alloca-opt, not alloca.
72527
72528 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72529
72530         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72531         Remove now-obsolete comment about AIX.
72532         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72533         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72534         (YYMAXDEPTH): New macro.
72535
72536 2004-12-18  Simon Josefsson  <jas@extundo.com>
72537
72538         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
72539
72540 2004-12-18  Bruno Haible  <bruno@clisp.org>
72541
72542         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
72543
72544 2004-12-18  Bruno Haible  <bruno@clisp.org>
72545
72546         * lib/fatal-signal.c (fatal_signals): Make non-const.
72547         (init_fatal_signals): New function.
72548         (uninstall_handlers, install_handlers): Ignore signals that were set to
72549         SIG_IGN.
72550         (at_fatal_signal): Call init_fatal_signals.
72551         (init_fatal_signal_set): Likewise. Ignore signals that were set to
72552         SIG_IGN.
72553         Reported by Paul Eggert.
72554
72555 2004-12-18  Bruno Haible  <bruno@clisp.org>
72556
72557         * doc/alloca.texi: New file.
72558         * doc/alloca-opt.texi: New file.
72559
72560 2004-12-17  Jim Meyering  <jim@meyering.net>
72561
72562         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
72563         Otherwise, install-sh could exit with improper exit status when
72564         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
72565
72566 2004-12-16  Simon Josefsson  <jas@extundo.com>
72567
72568         * tests/test-base64.c: Add license.
72569
72570 2004-12-15  Stepan Kasal  <address@hidden>
72571
72572         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
72573
72574 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
72575
72576         * modules/getcwd (Files): Add m4/d-ino.m4.
72577         Suggested by Mark D. Baushke.
72578
72579 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72580
72581         * lib/getdate.y (textint): New member "negative".
72582         (time_zone_hhmm): New function.
72583         Expect 14 shift-reduce conflicts, not 13.
72584         (o_colon_minutes): New rule.
72585         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
72586         (yylex): Set the "negative" member of signed numbers.
72587
72588 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72589
72590         * doc/getdate.texi (Time of day items, Time zone items):
72591         Describe new formats +00:00, UTC+00:00.
72592
72593 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
72596         spurious "-l"s.  Problem reported by Stepan Kasal.
72597
72598 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
72599
72600         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
72601         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
72602
72603 2004-12-04  Simon Josefsson  <jas@extundo.com>
72604
72605         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
72606         Vandoorselaere <yoann@prelude-ids.org>.
72607
72608 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72609
72610         Changes imported from coreutils.
72611         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
72612         exist.
72613         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
72614
72615 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72616
72617         Changes imported from coreutils.
72618         * lib/hard-locale.c: Assume <locale.h> exists.
72619         Include "strdup.h".
72620         (GLIBC_VERSION): New macro.
72621         (hard_locale): Assume setlocale exists.
72622         Rewrite to avoid #ifdef.
72623         Use strdup rather than malloc + strcpy.
72624         * lib/human.c: Assume <locale.h> exists.
72625         (human_readable): Assume localeconv exists.
72626
72627 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72628
72629         * modules/hard-locale (Depends-on): Add strdup.
72630
72631 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72632
72633         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
72634         convert T2, not T.  (Imported from libc.)
72635
72636 2004-11-30  Simon Josefsson  <jas@extundo.com>
72637
72638         * modules/restrict (License): Change to LGPL.
72639
72640 2004-11-30  Simon Josefsson  <jas@extundo.com>
72641
72642         * m4/restrict.m4: Add copyright and copying conditions.
72643
72644 2004-11-30  Simon Josefsson  <jas@extundo.com>
72645
72646         * m4/base64.m4: New file.
72647
72648 2004-11-30  Simon Josefsson  <jas@extundo.com>
72649
72650         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
72651         base64.
72652
72653         * tests/test-base64.c: New file.
72654
72655         * modules/base64: New file.
72656
72657 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72658
72659         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
72660         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
72661
72662         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
72663
72664 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72665
72666         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
72667         (__getcwd.c): Don't restore errno; glibc doesn't.
72668         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
72669         first, falling back to our code only if its results look suspicious.
72670         Ensure that the resulting buffer is only as large as necessary.
72671
72672         * lib/readutmp.c: Include readutmp.h first.
72673         Include <errno.h>, since readutmp.h no longer does that.
72674         * lib/readutmp.h: Don't include <errno.h>,
72675         <sys/param.h>, <time.h>; not needed to establish interface.
72676         (errno): Remove decl.
72677         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
72678         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
72679         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
72680
72681 2004-11-28  Simon Josefsson  <jas@extundo.com>
72682
72683         * lib/base64.h, base64.c: New file.
72684
72685 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
72688
72689 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72690
72691         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
72692         (Depends-on): Remove pathmax, same.  Add mempcpy.
72693         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
72694         (Makefile.am): Append getcwd.h to lib_SOURCES.
72695         (Include): Add getcwd.h.
72696         (Maintainer): Change from Jim Meyering to "all, glibc",
72697         since getdate now uses intended-for-glibc code.
72698         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
72699         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
72700
72701 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72702
72703         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
72704         HP's ANSI C compiler.
72705         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
72706         Declaring int functions causes warnings on some modern systems and
72707         shouldn't be needed to compile on ancient ones.
72708         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
72709         defined.
72710
72711         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
72712         with the following changes.
72713         (__set_errno): Parenthesize properly.
72714         Include <stdbool.h>.
72715         (MIN, MAX, MATCHING_INO): New macros.
72716         (__getcwd): Define with prototype, not K&R form.
72717         Use heuristics to allocate default buffer on stack if possible.
72718         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
72719         behavior, and to avoid the PATH_MAX limit when computing
72720         ../../../../...
72721         Use MATCHING_INO to compare inode number to file.
72722         Check for arithmetic overflow in size calculations.
72723         Fix bug in reallocation of dot array that caused getcwd to fail
72724         on directories nested deeper than 75.
72725         Be more careful about saving errno on error.
72726         Do not use realloc; use only free+malloc, as this is a bit
72727         more flexible and avoids a needless copy operation.
72728         Do not inspect st_dev and st_ino for symbolic links; POSIX
72729         doesn't specify the latter.
72730         Check for closedir errors.
72731         Avoid needless casts.
72732         Use "#ifdef weak_alias" around weak_alias, to be like other
72733         glibc code.
72734         The following changes to getcwd.c have effect only when used in
72735         gnulib; they have no effect inside glibc proper.
72736         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
72737         as alloca isn't used.
72738         (alloca, __alloca): Likewise.
72739         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
72740         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72741         unconditionally, as gnulib assumes C89 or better.
72742         Do not include <sys/param.h>.
72743         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
72744         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
72745         better.
72746         (NULL) [!defined NULL]: Remove; we assume C89 or better.
72747         Include <dirent.h> in a way that is compatible with modern Autoconf.
72748         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
72749         New macros, if not already defined.
72750         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
72751         Use "_LIBC", not "defined _LIBC", for consistency.
72752         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
72753         a mempcpy module.
72754         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
72755         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
72756         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
72757         credit only to Jim Meyering and adjust the copyright dates.
72758         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
72759         <stdlib.h>, <unistd.h>, "pathmax.h".
72760         Instead, include "xgetcwd.h" (first) and "getcwd.h".
72761         (INITIAL_BUFFER_SIZE): Remove.
72762         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
72763
72764 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72765
72766         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
72767         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
72768         Use the _ONCE methods, for efficiency.
72769         Check for fcntl.h.  In test program, include <errno.h>
72770         and <fcntl.h> if available.  Remove old K&R cruft from
72771         test program.  Check for common errors in GNU/Linux,
72772         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
72773         don't do AC_LIBOBJ, as that's getcwd.m4's job.
72774         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
72775         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
72776         name accordingly.
72777         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
72778         accommodate new getcwd.c.
72779         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
72780         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
72781         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
72782         that's all we need now.
72783
72784 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72785
72786         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
72787         argp-parse.c depends on getopt internals, that means we should
72788         always use our getopt, to be on the safe side.
72789         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
72790         order not to spoil the result of an eventual previous invocation
72791         of gl_GETOPT_SUBSTITUTE.
72792
72793 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72794
72795         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
72796         redefinition warnings. To avoid them, include the defines
72797         in `#if !defined __need_getopt ... #endif'. The only place
72798         where __getopt_argv_const is used is in definitions
72799         of getopt_long and getopt_long_only below, which are as well
72800         protected by `#ifndef __need_getopt'.
72801         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
72802         __need_getopt after including <stdio.h> and <unistd.h> These
72803         headers might have defined it.
72804
72805 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72806
72807         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
72808
72809 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72810
72811         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
72812         (futimens): New function, which uses futimes if available.
72813         (futimens, utimens): Support timespec==NULL, with same semantics
72814         as utime and utimens.
72815         * lib/utimens.h (futimens): New decl.
72816
72817 2004-11-23  Jim Meyering  <jim@meyering.net>
72818
72819         * lib/getopt_.h: Remove trailing blanks.
72820
72821 2004-11-23  Jim Meyering  <jim@meyering.net>
72822
72823         * lib/__fpending.c: Add comment.
72824
72825 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
72826
72827         * modules/canonicalize (Depends-on): Add xreadlink.
72828         Problem reported by James Youngman.
72829
72830 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72831
72832         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
72833         New macros.
72834         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
72835         optopt): Use them instead of invoking ## directly; otherwise, the
72836         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
72837
72838 2004-11-19  Bruno Haible  <bruno@clisp.org>
72839
72840         * lib/strtok_r.c: Move comments from here...
72841         * lib/strtok_r.h: ... to here.
72842
72843 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72844
72845         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
72846         implementations that mishandle size_t overflow.
72847
72848 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72849
72850         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
72851         might fail.  Problem reported by Yoann Vandoorselaere.
72852         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
72853         implementations that mishandle size_t overflow.
72854
72855 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         * modules/canon-host (Depends-on): Add strdup.
72858
72859 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72860
72861         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
72862
72863 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72864
72865         * lib/canon-host.c: Include "strdup.h".
72866         (canon_host): Use getaddrinfo if available, so that IPv6 works.
72867         Use strdup instead of malloc/strcpy to duplicate strings.
72868
72869         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
72870         (human_space_before_unit): New constant.
72871         * lib/human.c (human_readable): Support it.
72872
72873         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
72874         (xgetcwd): Set errno correctly when failing.
72875         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
72876         the failure is actually due to a PATH_MAX problem.
72877
72878         Further getopt changes to make it more likely that glibc will
72879         buy the changes back.
72880         * lib/getopt.c (POSIXLY_CORRECT): New constant.
72881         (getopt): Use it, so to preserve glibc semantic
72882         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
72883         when compiling for libc.
72884         * lib/getopt_.h (__getopt_argv_const): Bring it back.
72885         (getopt_long, getopt_long_only): Use it.
72886
72887         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72888         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
72889         (getopt): Argv is now char * const *, as per standard.
72890         (_getopt_internal_r, _getopt_internal): Argv is now char **,
72891         not char *__getopt_argv_const *.
72892         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72893         _getopt_long_only_r): Likewise.
72894         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
72895         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72896         _getopt_long_r, _getopt_long_only_r): Likewise.
72897         * lib/getopt_.h (__getopt_argv_const): Remove.
72898         (getopt): Argv is now char * const *, as per standard.
72899
72900         * lib/getdate.y (tORDINAL): New token.
72901         (day, relunit): Allow it for relative times.
72902         (relative_time_table): Use tORDINAL for ordinals.
72903
72904 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
72907         Document that "second" isn't allowed as an ordinal number.
72908
72909 2004-11-16  Jim Meyering  <jim@meyering.net>
72910
72911         * modules/closeout (Depends-on): Add fpending.
72912
72913 2004-11-15  Jim Meyering  <jim@meyering.net>
72914
72915         * lib/closeout.c: Include "__fpending.h" once again.
72916         Include <stdbool.h>.
72917         (close_stdout): Don't fail just because stdout was closed initially,
72918         since some programs don't write to stdout in the normal course of
72919         operation (other than --version and --help), and we don't want this
72920         function to make e.g. `touch file >&-' fail.
72921         But do fail if it was closed and someone has tried to write to it.
72922         E.g., `printf foo >&-' must fail.
72923
72924 2004-11-13  Jim Meyering  <jim@meyering.net>
72925
72926         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
72927
72928 2004-11-12  Simon Josefsson  <jas@extundo.com>
72929
72930         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
72931         small doc fix is still pending.
72932
72933 2004-11-11  Simon Josefsson  <jas@extundo.com>
72934
72935         * modules/strtok_r: New file.
72936
72937         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72938         strtok_r.
72939
72940 2004-11-11  Simon Josefsson  <jas@extundo.com>
72941
72942         * m4/strtok_r.m4: New file.
72943
72944         * m4/getopt.m4: Replace opterr.
72945
72946 2004-11-11  Simon Josefsson  <jas@extundo.com>
72947
72948         * lib/strtok_r.h, strtok_r.c: New file.
72949
72950 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72951
72952         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
72953         of replacing opterr, getopt, etc.  This should handle the
72954         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
72955
72956 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72957
72958         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
72959         we can stop lying to compilers about the constness of argv when we
72960         are compiled outside glibc.
72961         (getopt, getopt_long, getopt_long_only): Use it.
72962         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72963         _getopt_internal, getopt): Likewise.
72964         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72965         _getopt_long_only_r): Likewise.
72966         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72967         _getopt_long_r, _getopt_long_only_r): Likewise.
72968
72969         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
72970         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
72971         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
72972         the other external symbols.
72973         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
72974         declaration, since the above renaming now works around collisions.
72975
72976 2004-11-11  Jim Meyering  <jim@meyering.net>
72977
72978         * lib/linebreak.c: Remove trailing blanks.
72979         * lib/alloca_.h: Likewise.
72980         * lib/acosl.c: Likewise.
72981         * lib/euidaccess.c: Likewise.
72982         * lib/allocsa.h: Likewise.
72983
72984 2004-11-10  Simon Josefsson  <jas@extundo.com>
72985
72986         * m4/getaddrinfo.m4: New file.
72987
72988 2004-11-10  Simon Josefsson  <jas@extundo.com>
72989
72990         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
72991
72992 2004-11-10  Simon Josefsson  <jas@extundo.com>
72993
72994         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72995         getaddrinfo.
72996
72997         * modules/getaddrinfo: New file.
72998
72999 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73000
73001         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73002
73003 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73004
73005         * lib/mktime.c (SHR): New macro, which is a portable
73006         substitute for >> that should work even on Crays.
73007         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73008         Problem reported by Mark D. Baushke in
73009         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73010         * lib/getdate.y (SHR): Likewise.
73011         (tm_diff): Use it.
73012         * lib/strftime.c (SHR): Likewise.
73013         (tm_diff): Use it.
73014         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73015         quote_these_too, so that right shifts are well defined.  All uses
73016         changed.
73017
73018 2004-11-10  Jim Meyering  <jim@meyering.net>
73019
73020         Ensure that no close failure goes unreported.
73021         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73022         return early when it seems there's nothing to flush.
73023         Don't include __fpending.h.
73024
73025 2004-11-10  Jim Meyering  <jim@meyering.net>
73026
73027         * modules/closeout (Depends-on): Remove fpending.
73028
73029 2004-11-10  Jim Meyering  <jim@meyering.net>
73030
73031         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73032
73033 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73034
73035         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73036         gl_FUNC_STRFTIME.
73037         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73038         and AC_REQUIRE when possible, to avoid duplicate checks.
73039         Check for <wchar.h>.
73040
73041 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73042
73043         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73044
73045 2004-11-09  Bruno Haible  <bruno@clisp.org>
73046
73047         * m4/sockpfaf.m4: New file.
73048
73049 2004-11-05  Bruno Haible  <bruno@clisp.org>
73050
73051         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73052         Reported by Mark D. Baushke <mdb@cvshome.org>.
73053
73054 2004-11-04  Bruno Haible  <bruno@clisp.org>
73055
73056         2004-09-11  Bruno Haible  <bruno@clisp.org>
73057                 * allocsa.valgrind: New file.
73058         2004-02-06  Bruno Haible  <bruno@clisp.org>
73059                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73060                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73061                 Reported by Christopher Seip <chris.seip@hp.com>.
73062
73063 2004-11-04  Bruno Haible  <bruno@clisp.org>
73064
73065         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73066         (Makefile.am): Distribute it.
73067
73068 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73069
73070         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73071         with errno == ERANGE if the buffer is too small.
73072         Problem reported by Mark D. Baushke.
73073
73074 2004-11-03  Albert Chin  <china@thewrittenword.com>
73075             Paul Eggert  <eggert@cs.ucla.edu>
73076
73077         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73078         equivalent, substitute $ac_type for equivalent type rather than
73079         blindly using uint32_t *always* which won't work if uint32_t is not
73080         available.  Define _UINT32_T to work around typedef of uint32_t if
73081         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73082         2.5.1.
73083
73084 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73085
73086         * m4/jm-macros.m4: Sync from coreutils.
73087         (gl_MACROS): Check for mbrlen, for pathchk.
73088         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73089
73090 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73091
73092         * lib/xreadlink.c (MAXSIZE): New macro.
73093         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73094         size does not exceed MAXSIZE.  Avoid cast.
73095         As suggested by Mark D. Baushke in
73096         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73097         if readlink fails with buffer size just under MAXSIZE, try again
73098         with MAXSIZE.
73099
73100 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73101
73102         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73103
73104 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73105         and  Paul Eggert  <eggert@cs.ucla.edu>
73106
73107         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73108         (get_date): Overparenthesize to avoid GCC warning.
73109
73110 2004-11-02  Bruno Haible  <bruno@clisp.org>
73111
73112         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73113         returns void.
73114
73115 2004-11-02  Bruno Haible  <bruno@clisp.org>
73116
73117         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73118         function returns void.
73119
73120 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73121
73122         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73123         fflush_unlocked, flockfile, funlockfile, funlockfile,
73124         fputs_unlocked, putc_unlocked.
73125
73126 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73127
73128         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73129         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73130         already declared.
73131
73132 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * modules/getdate (Files): Add doc/getdate.texi.
73135         (Depends-on): Add setenv, xalloc.
73136
73137 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73138
73139         * lib/getdate.y: Add support for TZ="foo" within a date string.
73140         Fix some bugs near time_t boundaries.  Reject dates with
73141         out-of-range components, e.g., "Sept 31".
73142         Include <stdlib.h>, "setenv.h", "xalloc.h".
73143         (ISDIGIT_LOCALE): Remove; unused.
73144         Note that the TZ and time functions used here are not reentrant.
73145         (mktime_ok, get_tz): New functions.
73146         (TZBUFSIZE): New constant.
73147         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73148         This requires that we sometimes generate our own TZ="XXX..." setting.
73149
73150 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73151
73152         * doc/getdate.texi: New file, from coreutils with modifications for
73153         the new TZ parsing.
73154
73155 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73156
73157         * lib/mktime.c (not_equal_tm): Remove redundant check.
73158
73159 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73160
73161         * modules/regex (lib_SOURCES): Add regex.c.
73162         Reported by James Youngman in
73163         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73164
73165 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73166
73167         * lib/getdate.y: Use Bison 1.875 features, and some minor
73168         code cleanups.  This change does not affect semantics.
73169         Don't include <stdlib.h>; no longer needed.
73170         Don't include unlocked-io.h; only the "#if TEST" code uses
73171         stdio, and performance isn't crucial there.
73172         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73173         Bison 1.875 features as described below.
73174         All uses of "PC." replaced by "pc->".
73175         (YYSTYPE): Add a forward declaration.
73176         (yylex, yyerror): Use full prototypes in forward decls.
73177         Use "%pure-parser" rather than obsolescent "%pure_parser".
73178         Use %parse-param and %lex-param instead of obsolescent
73179         YYPARSE_PARAM and YYLEX_PARAM.
73180         (meridian_table, month_and_day_table, time_units_table,
73181         relative_time_table, time_zone_table, military_table,
73182         lookup_zone, lookup_word, get_date):
73183         Use NULL instead of 0 where appropriate.
73184         (to_hour): Avoid abort (), to avoid a dependency on
73185         stdlib.h.
73186         (yyerror, yylex): Now accepts parser_control * arg.
73187         (main) [TEST]: Use '\0' rather than 0 for char.
73188
73189 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73190
73191         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73192
73193 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73194
73195         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73196         It's now the caller's responsibility to handle the case where
73197         !HAVE_GETPAGESIZE && !defined getpagesize.
73198
73199         * lib/mktime.c (leapyear): Arg is long int, not int.
73200
73201 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73202
73203         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73204
73205 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73206
73207         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73208         missing.  Problem reported by James Youngman.
73209
73210 2004-10-16  Simon Josefsson  <jas@extundo.com>
73211
73212         * gnulib-tool: Fix comments.  Fix parse problem.
73213         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73214
73215 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73218         implementation of getopt_long.  Problem reported by Alexander Taler in:
73219         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73220
73221 2004-10-15  Bruno Haible  <bruno@clisp.org>
73222
73223         * gnulib-tool: Untabify. Initialize supplied_libname.
73224         (func_usage): More homogenous output.
73225         (func_modules_transitive_closure, func_modules_to_filelist,
73226         func_emit_lib_Makefile_am): New functions.
73227         (func_import): New function, extracted from big case statement. Use
73228         func_get_license, func_modules_transitive_closure,
73229         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73230         opt_lgpl. Don't use test -a, as it's not portable.
73231         (func_create_testdir): Use func_modules_transitive_closure,
73232         func_modules_to_filelist, func_emit_lib_Makefile_am.
73233
73234 2004-10-15  Bruno Haible  <bruno@clisp.org>
73235
73236         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73237
73238 2004-10-15  Bruno Haible  <bruno@clisp.org>
73239
73240         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73241         the portions belonging to each module.
73242         Suggested by Derek Robert Price <derek@ximbiot.com>.
73243
73244 2004-10-12  Simon Josefsson  <jas@extundo.com>
73245
73246         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73247         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73248         to real functions.
73249
73250 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73251
73252         * modules/vsnprintf: New file.
73253
73254 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73255
73256         * m4/vsnprintf.m4: New file.
73257
73258 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73259
73260         * lib/vsnprintf.h: New file.
73261         * lib/vsnprintf.c: New file.
73262
73263 2004-10-11  Bruno Haible  <bruno@clisp.org>
73264
73265         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73266         vsnprintf.
73267
73268 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73269
73270         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73271
73272 2004-10-07  Bruno Haible  <bruno@clisp.org>
73273
73274         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73275         fits into the provided buffer.
73276
73277 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73278
73279         * lib/diacrit.c, diacrit.h: Add GPL notice.
73280
73281         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73282         notice.
73283         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73284         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73285         This avoids a potential constant-folding bug.
73286
73287 2004-10-05  Bruno Haible  <bruno@clisp.org>
73288
73289         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73290         for the declaration of strsep.
73291
73292 2004-10-05  Bruno Haible  <bruno@clisp.org>
73293
73294         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73295
73296 2004-10-04  Simon Josefsson  <jas@extundo.com>
73297
73298         * modules/memmem: New file.
73299         * tests/test-memmem.c: New file.
73300         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73301
73302 2004-10-04  Simon Josefsson  <jas@extundo.com>
73303
73304         * m4/memmem.m4: New file.
73305
73306 2004-10-04  Simon Josefsson  <jas@extundo.com>
73307
73308         * lib/memmem.h: New file.
73309         * lib/memmem.c: New file, taken from glibc.
73310
73311 2004-10-04  Simon Josefsson  <jas@extundo.com>
73312
73313         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73314         '#ifdef USE_UNLOCKED_IO'.
73315
73316 2004-10-04  Simon Josefsson  <jas@extundo.com>
73317
73318         * config/srclist.txt: Add memmem from glibc.
73319
73320 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73321
73322         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73323
73324         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73325         modules/exclude, modules/getdate, modules/getline,
73326         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73327         modules/getusershell, modules/linebuffer, modules/md5,
73328         modules/mountlist, modules/posixtm, modules/readtokens,
73329         modules/readutmp, modules/regex, modules/sha1,
73330         modules/version-etc, modules/yesno:
73331         Remove dependency on unlocked-io.
73332
73333 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73334
73335         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73336
73337         * m4/unlocked-io.m4: Add copyright notice.
73338         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73339
73340 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73341
73342         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73343         * lib/xmalloc.c (xmemdup): Likewise.
73344         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73345         XFREE): Remove these long-obsolescent macros.
73346         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73347         * lib/xstrdup.c: Remove.
73348
73349         * lib/regex.c (re_comp): Cast gettext return value to char *,
73350         Problem reported by Martin Neitzel via Mark D. Baushke.
73351
73352 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73355         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73356         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73357         regex.c, sha1.c, version-etc.c, yesno.c:
73358         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73359         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73360         the includer's responsibility.
73361
73362         Sync from coreutils.
73363
73364         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73365         points to the start of a string, as the C Standard says the
73366         resulting behavior is undefined.
73367
73368         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73369         simple -> simple_backups, numbered_existing ->
73370         numbered_existing_backups, numbered -> numbered_backups
73371         to avoid shadowing problems.  All uses changed.
73372         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73373         * lib/backupfile.c (check_extension, numbered_backup):
73374         Rename locals to avoid shadowing 'basename'.
73375         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73376         once.
73377
73378         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73379         * lib/.cvsignore: Add getopt.h.
73380
73381 2004-10-04  Bruno Haible  <bruno@clisp.org>
73382
73383         * modules/README: New file.
73384         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73385         not a module.
73386
73387 2004-10-02  Jim Meyering  <jim@meyering.net>
73388
73389         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73390
73391 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73392
73393         * modules/strsep: New file.
73394
73395 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73396
73397         * m4/strsep.m4: New file.
73398
73399 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73400
73401         * lib/strsep.h: New file.
73402         * lib/strsep.c: New file.
73403
73404 2004-10-01  Simon Josefsson  <jas@extundo.com>
73405
73406         * lib/snprintf.c (snprintf): Handle size==0.
73407
73408 2004-10-01  Simon Josefsson  <jas@extundo.com>
73409             Bruno Haible  <bruno@clisp.org>
73410
73411         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73412         (snprintf): Declare 'args'.
73413
73414 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73415
73416         * lib/snprintf.c: Remove comments as to why each header is needed.
73417
73418 2004-10-01  Bruno Haible  <bruno@clisp.org>
73419
73420         * MODULES.html.sh: Add strsep.
73421
73422 2004-09-30  Simon Josefsson  <jas@extundo.com>
73423
73424         * modules/snprintf: New file.
73425
73426 2004-09-30  Simon Josefsson  <jas@extundo.com>
73427
73428         * m4/snprintf.m4: New file.
73429
73430 2004-09-30  Simon Josefsson  <jas@extundo.com>
73431
73432         * lib/snprintf.h, lib/snprintf.c: New files.
73433
73434 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73435
73436         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73437         (hol_entry_help): Never translate an empty string.
73438         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73439         * lib/argp.h (OPTION_NO_TRANS): New option.
73440
73441 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73442
73443         * modules/argp (Maintainer): Replace Simon Josefsson
73444         by Sergey Poznyakoff.
73445
73446 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73447
73448         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73449         changes merged back into glibc.
73450
73451 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73452
73453         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
73454
73455 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73456
73457         * lib/xvasprintf.c: Include xalloc.h.
73458         (xvasprintf): Use xalloc_die, not xmalloc_die.
73459
73460 2004-09-29  Bruno Haible  <bruno@clisp.org>
73461
73462         * modules/alloca-opt: New file, derived from modules/alloca.
73463         * modules/allocsa: Depend on alloca-opt instead of alloca.
73464         * modules/setenv: Likewise.
73465         * modules/vasnprintf: Likewise.
73466         * MODULES.html.sh: Add alloca-opt.
73467
73468 2004-09-28  Simon Josefsson  <jas@extundo.com>
73469
73470         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73471         LGPL, and to replace license template from GPL to LGPL.
73472
73473 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73474
73475         * modules/dummy: Change license to LGPL.
73476
73477 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73478
73479         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73480
73481 2004-09-24  Simon Josefsson  <jas@extundo.com>
73482
73483         * modules/minmax (License): Change from GPL to LGPL.
73484
73485 2004-09-23  Simon Josefsson  <jas@extundo.com>
73486
73487         * gnulib-tool (--import): Typo.
73488
73489 2004-09-23  Simon Josefsson  <jas@extundo.com>
73490
73491         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73492
73493 2004-09-22  Bruno Haible  <bruno@clisp.org>
73494
73495         * modules/*: Add 'License' field.
73496         * gnulib-tool: Accept --extract-license option.
73497         (func_get_license): New function.
73498
73499 2004-09-21  Bruno Haible  <bruno@clisp.org>
73500
73501         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73502         Reported by Simon Josefsson.
73503
73504 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73505
73506         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73507         gl_AC_TYPE_LONG_LONG.
73508
73509 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73510
73511         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73512
73513 2004-09-18  Simon Josefsson  <jas@extundo.com>
73514         and  Paul Eggert  <eggert@cs.ucla.edu>
73515
73516         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73517         calls with autoreconf.  Define GL_LIB.
73518
73519 2004-09-14  Karl Berry  <karl@gnu.org>
73520
73521         * config/srclist.txt: unsync setenv.c, sigh.
73522
73523 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73524
73525         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73526         Problem reported by Bruno Haible in:
73527         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73528
73529 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73530
73531         * config/srclist.txt: Comment out argp-pvh.c.
73532
73533 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73534
73535         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73536         in case some system header has #define'd it.  Problem reported by
73537         Soeren D. Schulze in
73538         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
73539
73540 2004-09-09  Karl Berry  <karl@gnu.org>
73541
73542         * regex.[ch]: delete from the root.  These were supposed to be
73543                 synced with emacs cvs, but this has not happened for about
73544                 a year, and anyway nothing else uses emacs regex.[ch].
73545                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
73546                 lib/regex[.ch] is untouched.
73547
73548 2004-09-09  Bruno Haible  <bruno@clisp.org>
73549
73550         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
73551
73552 2004-09-09  Bruno Haible  <bruno@clisp.org>
73553
73554         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
73555         modifications.
73556         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
73557
73558 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73559
73560         * modules/xvasprintf: New file.
73561         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
73562
73563 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73564
73565         * lib/xvasprintf.h: New file.
73566         * lib/xvasprintf.c: New file.
73567         * lib/xasprintf.c: New file.
73568
73569 2004-09-08  Bruno Haible  <bruno@clisp.org>
73570
73571         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
73572
73573 2004-09-08  Bruno Haible  <bruno@clisp.org>
73574
73575         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
73576         length is > INT_MAX.
73577         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
73578         more.
73579
73580 2004-09-08  Bruno Haible  <bruno@clisp.org>
73581
73582         * lib/stdint_.h: New file, taken from GNU clisp.
73583
73584 2004-09-08  Bruno Haible  <bruno@clisp.org>
73585             Oskar Liljeblad  <oskar@osk.mine.nu>
73586
73587         * modules/stdint: New file.
73588         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
73589
73590 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73591
73592         Import from coreutils.
73593         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
73594         strings on unbounded length.  alloca's performance benefits aren't
73595         that important here.
73596         (V_STRDUP): Remove.
73597         (parse_with_separator): New function, with most of the internals
73598         of the old parse_user_spec.  Allow user to omit both user and group,
73599         for compatibility with FreeBSD.
73600         Clone only the user name, not the entire spec.
73601         Do not set *uid, *gid unless entirely successful.
73602         Avoid memory leak in some failing cases.
73603         Fix regression for USER.GROUP reported by Dmitry V. Levin in
73604         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
73605         (parse_user_spec): Rewrite to use parse_with_separator.
73606
73607 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73608
73609         * modules/userspec: Don't depend on alloca.
73610
73611 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73612
73613         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
73614
73615 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73616
73617         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
73618         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
73619         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
73620
73621 2004-08-16  Simon Josefsson  <jas@extundo.com>
73622
73623         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
73624         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
73625         Add --dry-run for --import.
73626         Let user provided command line parameters override configure.ac
73627         settings.
73628
73629 2004-08-12  Simon Josefsson  <jas@extundo.com>
73630
73631         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
73632         as discussed with Paul Eggert in threads rooted at
73633         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
73634         and
73635         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
73636         Before, the test was empty, and relied on ELIDE_CODE in source
73637         code.)
73638         (gl_PREREQ_GETOPT): New macro.
73639         (gl_GETOPT): Use them.
73640
73641 2004-08-12  Simon Josefsson  <jas@extundo.com>
73642
73643         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
73644         * lib/getopt_.h: Renamed from getopt.h.
73645
73646 2004-08-12  Simon Josefsson  <jas@extundo.com>
73647
73648         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
73649         Change default library name from libfoo to libgnu.
73650         Now, if you have a configure.ac that says:
73651                 gl_SOURCE_BASE(gl)
73652                 gl_M4_BASE(gl/m4)
73653                 gl_MODULES(error getopt etcetera)
73654                 gl_INIT
73655         you can import all you need by running:
73656                 ../gnulib/gnulib-tool --import
73657
73658         * modules/getopt (Files): Rename getopt.h to getopt_.h.
73659         (Makefile.am): Rewrite, use logic from argz.
73660         (Include): Use <getopt.h> instead of "getopt.h".
73661
73662 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73663
73664         * modules/argp (Files): Add m4/unlocked-io.m4.
73665         (Depends-on): Add extensions.
73666
73667 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73668
73669         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
73670         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
73671         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
73672         Check for program_invocation_name, program_invocation_short_name,
73673         flockfile, funlockfile, features.h, _getopt_long_only_r.
73674
73675 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73676
73677         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
73678         its complicated substitute.
73679         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
73680         and program_invocation_name.
73681         (__argp_basename) [!_LIBC]: Remove; the only use was
73682         replaced by its body.
73683         (__argp_short_program_name): Change condition from
73684         !defined __argp_short_program_name to
73685         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
73686         to match argp-namefrob.h.
73687         (__argp_failure): Don't assume strerror_r returns char *.
73688         * lib/argp-parse.c (N_): Define unconditionally.
73689         (argp_default_options): Fill out initializers with 0 to avoid
73690         gcc warnings.
73691
73692 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73693
73694         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
73695         getopt1.c.
73696
73697 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73698
73699         Merge from coreutils.
73700
73701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
73702
73703         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
73704         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
73705
73706 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73707
73708         Merge from coreutils.
73709
73710         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
73711         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
73712         for Reliant Unix 5.43.
73713
73714         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
73715         (union fooround): Use uintmax_t, not long int.
73716         The rest is a merge from libc:
73717         [defined _LIBC]: Include <shlib-compat.h>.
73718         (_obstack) [defined _LIBC]: Remove after 2.3.4.
73719
73720         * lib/settime.c (settime): Recode to avoid warning with
73721         Sun Forte C 6U2.
73722
73723         * lib/strverscmp.c: Convert to UTF-8.
73724
73725 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73726
73727         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73728         m4/uintmax_t.m4.
73729
73730 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73731
73732         * modules/xalloc-die: New file.
73733         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
73734
73735         * modules/md5 (Files): Add m4/uint32_t.m4.
73736         * modules/sha1: Renamed from modules/sha.
73737         (Files):
73738         Rename lib/sha.h to lib/sha1.h.
73739         Rename lib/sha.c to lib/sha1.c.
73740         Rename m4/sha.m4 to m4/sha1.m4.
73741         (lib_SOURCES): Likewise.
73742         (configure.ac): Rename gl_SHA to gl_SHA1.
73743         (Include): sha.h -> sha1.h.
73744
73745 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73746
73747         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
73748         * m4/sha1.m4: Renamed from sha.m4.
73749         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
73750
73751 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73752
73753         * lib/obstack.h (obstack_empty_p):
73754         Don't assume that chunk->contents is suitably aligned.
73755         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
73756         Likewise. Problem reported by Benno in
73757         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
73758
73759         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
73760         readable.  This could be improved further but it'd take some work.
73761
73762 2004-08-08  Simon Josefsson  <jas@extundo.com>
73763
73764         * modules/xgethostname (Depends-on): Remove exit and error (not
73765         used).
73766
73767         * modules/getpass-gnu: Add getpass.h.
73768         (Depends-on): Add stdbool.
73769         * modules/getpass: Add getpass.h.
73770
73771 2004-08-08  Simon Josefsson  <jas@extundo.com>
73772
73773         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
73774         Check getpass declaration.
73775
73776 2004-08-08  Simon Josefsson  <jas@extundo.com>
73777
73778         * lib/xgethostname.c: Don't include error.h (not used).
73779
73780         * lib/getpass.h: Add.
73781         * lib/getpass.c: Include getpass.h first.
73782
73783 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
73784
73785         * lib/xalloc-die.c: New file.
73786         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
73787         All uses removed.
73788         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
73789         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
73790         xalloc-die.c.
73791         (_, N_, xalloc_die): Move to xalloc-die.c.
73792         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
73793         so that we needn't mess with xalloc_msg_memory_exhausted.
73794
73795         * lib/sha1.h: Renamed from sha.h.
73796         (SHA1_H): Renamed from _SHA_H.
73797         (sha1_ctx): Renamed from sha_ctx.
73798         (sha1_init_ctx): Renamed from sha_init_ctx.
73799         (sha1_process_block): Renamed from sha_process_block.
73800         (sha1_process_bytes): Renamed from sha_process_bytes.
73801         (sha1_finish_ctx): Renamed from sha_finish_ctx.
73802         (sha1_read_ctx): Renamed from sha_read_ctx.
73803         (sha1_stream): Renamed from sha_stream.
73804         (sha1_buffer): Renamed from sha_buffer.
73805         * lib/sha1.c: Likewise; renamed from sha.c.
73806         Do not include <sys/types.h>.
73807         Include <stddef.h> rather than <stdlib.h>.
73808
73809 2004-08-08  Bruno Haible  <bruno@clisp.org>
73810
73811         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
73812         FILESYSTEM_PREFIX_LEN.
73813         * lib/progreloc.c: Likewise.
73814         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
73815
73816 2004-08-06  Simon Josefsson  <jas@extundo.com>
73817
73818         * modules/progname (Depends-on): Don't depend on stdbool.
73819
73820 2004-08-06  Simon Josefsson  <jas@extundo.com>
73821
73822         * modules/getsubopt: New file.
73823         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73824         getsubopt.
73825
73826 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73827
73828         More merge from coreutils.
73829
73830         * m4/utimens.m4, m4/utimecmp.m4: New files.
73831         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
73832         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
73833         prereq.m4, sha.m4: Import changes from coreutils.
73834
73835 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73836
73837         More merge from coreutils.
73838         * modules/raise, modules/readtokens0, modules/utimens:
73839         * modules/utimecmp, module/xnanosleep: New files.
73840         * modules/strftime: Add lib/strftime.h.
73841         Change include from <time.h> to "strftime.h".
73842         * modules/yesno: Add lib/yesno.h.
73843         * modules/backupfile: Remove lib/addext.c.
73844         * modules/euidaccess: Add stat-macros.h.
73845         * modules/canonicalize, modules/euidaccess,
73846         modules/filemode, modules/lchown, modules/makepath,
73847         modules/rmdir, modules/stat: Likewise.
73848
73849 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73850
73851         Merge from tar.
73852         * lib/argp-help.c (make_hol, hol_append): Don't assume that
73853         SIZE_MAX is a valid preprocessor constant.
73854         (__argp_basename): Change from "#ifndef _LIBC"
73855         to "#ifndef __argp_short_program_name", so that
73856         we don't compile these functions for tar.
73857
73858         More merges from coreutils.
73859         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
73860         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
73861         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
73862         * lib/addext.c: Remove; no longer needed.
73863         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
73864         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
73865         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
73866         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
73867         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
73868         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
73869         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
73870         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
73871         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
73872         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73873         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
73874         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
73875         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
73876         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
73877         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
73878         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
73879         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
73880         Import changes from coreutils.
73881
73882 2004-08-05  Simon Josefsson  <jas@extundo.com>
73883
73884         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
73885
73886 2004-08-05  Simon Josefsson  <jas@extundo.com>
73887
73888         * m4/getsubopt.m4: New file.
73889
73890 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73891
73892         Merge from coreutils.
73893
73894         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
73895         * m4/getcwd-path-max.m4: New files.
73896
73897         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
73898         FILESYSTEM_PREFIX_LEN ->
73899         FILE_SYSTEM_PREFIX_LEN.
73900         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
73901         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
73902         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
73903         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
73904
73905         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
73906         prerequisite modules now handle the DOS stuff.
73907         Don't check for unistd.h.
73908
73909 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73910
73911         Merge from coreutils.
73912
73913         * lib/.gdb-history: Remove; this doesn't belong here.
73914
73915         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
73916         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
73917         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
73918         * lib/getcwd.c: New files.
73919
73920         * lib/dirname.h: Include <stdbool.h>.
73921         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
73922         for consistency with POSIX terminology.  All uses changed.
73923         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
73924         (strip_trailing_slashes): Use bool for booleans.
73925         * lib/stripslash.c (strip_trailing_slashes): Likewise.
73926
73927         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
73928         sometimes returns a positive errno value even when it succeeds.
73929         (print_errno_message) [!LIBC]: Fall back on strerror if
73930         __strerror_r fails.
73931
73932         * lib/path-concat.c (mempcpy): Don't define if a system header defines
73933         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
73934         (longest_relative_suffix): New function.
73935         (path_concat): Use it.  Assume first argument is not NULL.
73936         Port to DOS.  Omit redundant separators.
73937         Report an error instead of returning NULL.
73938         Use mempcpy instead of memcpy.
73939         (xpath_concat): Remove: not declared or used.
73940
73941         * lib/same.h: Include <stdbool.h>
73942         (same_name): Return bool, not int.
73943         * lib/same.c (same_name): Likewise.
73944         (errno): Don't declare; we assume C89 or better now.
73945
73946         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
73947         if not already defined.
73948
73949         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
73950         * lib/dup-safer.c (errno): Likewise.
73951
73952 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73953
73954         Merge from coreutils.
73955         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
73956         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
73957         * modules/path-concat: Don't depend on strdup.
73958
73959 2004-08-03  Simon Josefsson  <jas@extundo.com>
73960
73961         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
73962         * lib/progname.h: Don't include stdbool.h.
73963
73964 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73965
73966         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
73967         * MODULES.html.sh (func_all_modules): Remove fatal.
73968
73969 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73970
73971         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
73972
73973 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73974
73975         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
73976         working.
73977
73978 2004-08-02  Simon Josefsson  <jas@extundo.com>
73979
73980         * lib/getsubopt.h: New file, with comments from Bruno Haible.
73981         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
73982         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
73983
73984 2004-08-01  Simon Josefsson  <jas@extundo.com>
73985
73986         * lib/xgetdomainname.c: Include stdlib.h, for free().
73987
73988 2004-07-19  Bruno Haible  <bruno@clisp.org>
73989
73990         * MODULES.html.sh (func_all_modules): Add dummy.
73991
73992 2004-07-16  Simon Josefsson  <jas@extundo.com>
73993
73994         * modules/dummy: New file.
73995
73996 2004-07-16  Simon Josefsson  <jas@extundo.com>
73997
73998         * lib/dummy.c: New file.
73999
74000 2004-07-16  Bruno Haible  <bruno@clisp.org>
74001
74002         * lib/backupfile.h: Add extern "C" for C++.
74003         * lib/closeout.h: Likewise.
74004         * lib/copy-file.h: Likewise.
74005         * lib/findprog.h: Likewise.
74006         * lib/full-write.h: Likewise.
74007         * lib/pathname.h: Likewise.
74008         * lib/progname.h: Likewise.
74009         * lib/stpcpy.h: Likewise.
74010         * lib/stpncpy.h: Likewise.
74011         * lib/strcase.h: Likewise.
74012         * lib/strstr.h: Likewise.
74013         * lib/xalloc.h: Likewise.
74014
74015         * lib/mbswidth.h: Add extern "C" for C++.
74016         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74017
74018 2004-07-13  Robert Millan  <robertmh@gnu.org>
74019
74020         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74021
74022 2004-07-09  Simon Josefsson  <jas@extundo.com>
74023
74024         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74025         failed without this.)
74026
74027 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74028
74029         * modules/chown (Files): Add lib/fchown-stub.c, since
74030         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74031
74032 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74033
74034         * lib/fchown-stub.c: New file.
74035
74036 2004-06-24  Jim Meyering  <jim@meyering.net>
74037
74038         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74039
74040 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74041
74042         * modules/argz: Omit "#include".
74043
74044         * MODULES.html.sh (func_all_modules): Add calloc, to match
74045         2004-06-01 addition of calloc module.
74046
74047 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74048
74049         * m4/argz.m4: New file, which is autoupdated from libtool.
74050
74051 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74052
74053         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74054         libtool.
74055
74056 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74057
74058         * config/srclist-update: Don't insist on "USA." before the
74059         close-comment, as libtool omits the period and puts the */ on a
74060         separate line.
74061         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74062         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74063
74064 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74065
74066         * modules/argz: New file.
74067         * MODULES.html.sh (func_all_modules): Add argz.
74068
74069 2004-06-12  Jim Meyering  <jim@meyering.net>
74070         and  Paul Eggert  <eggert@cs.ucla.edu>
74071
74072         * modules/hash (Files): Add lib/xalloc.h.
74073         * modules/pipe (Depends-on): Add wait-process.
74074         * modules/stat (Depends-on): Add xalloc.
74075         * modules/userspec (Files): Add lib/userspec.h.
74076         * modules/xstrto
74077
74078         Upgrade from gettext-0.13.
74079         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74080         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74081         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74082
74083 2004-06-10  Jim Meyering  <jim@meyering.net>
74084
74085         * lib/calloc.c: New file.
74086
74087 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74088
74089         * lib/getdate.y (yylex): Allow space between sign and number.
74090         Problem reported by Dan Jacobson.
74091
74092 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74093
74094         Merge from coreutils CVS.
74095
74096         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74097         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74098         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74099         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74100         xstrtol.m4: Fix copyright date and/or serial number.
74101
74102         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74103         See if we need an fchown replacement.
74104         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74105         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74106         and use the replacement function if we detect either defect.
74107
74108         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74109         gl_UTIMECMP.
74110
74111 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74112         and  Jim Meyering  <jim@meyering.net>
74113
74114         Merge from coreutils CVS.
74115
74116         * lib/stat-macros.h: New file, with contents from file-type.h
74117         and coreutils' system.h.
74118         * lib/file-type.c: Include "stat-macros.h".
74119         * lib/file-type.h (file_type): Move all macro definitions to new file,
74120         stat-macros.h.
74121
74122         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74123         Wrap old code with this conditional.
74124         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74125         function that does not dereference symlinks.
74126         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74127
74128         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74129         dependency problems.
74130         (xreadlink): Accept new arg SIZE, for efficiency.
74131         All decls and uses changed.
74132         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74133
74134         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74135         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74136
74137         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74138         sysexits.h.
74139
74140 2004-06-01  Jim Meyering  <jim@meyering.net>
74141
74142         * m4/calloc.m4: New file.
74143
74144 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74145
74146         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74147         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74148         Also, fix a typo in a diagnostic.
74149
74150 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74151
74152         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74153         or AC_FUNC_REALLOC.
74154
74155 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74156
74157         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74158         macros to be defined.
74159         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74160         the allocator returns NULL because the requested size is zero.
74161
74162 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74163
74164         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74165         var.  Add comment explaining why libc still defines it.  This
74166         merges the following patch from glibc:
74167         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74168
74169 2004-05-20  Andreas Schwab  <schwab@suse.de>
74170
74171         * m4/free.m4: Replace free if it not known to work, not the other
74172         way round.
74173
74174 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74177         present in glibc since revision 1.1 of this file.
74178         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74179         obstack_alignment_mask, obstack_alloc, obstack_base,
74180         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74181         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74182         obstack_grow0, obstack_init, obstack_int_grow,
74183         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74184         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74185         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74186         nonexistent functions.
74187
74188 2004-05-18  Karl Berry  <karl@gnu.org>
74189
74190         * config/srclist.txt: break link for vasnprintf.c.
74191
74192 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74193
74194         Port obstack to the AS/400, where pointers are 16 bytes wide and
74195         you cannot cast an integer to a valid pointer.  This patch is
74196         currently waiting to be integrated into glibc; see
74197         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74198
74199         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74200         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74201         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74202         (struct obstack): temp member is now a union of a pointer and
74203         an integer, instead of an integer.  All integer uses changed.
74204         This does not affect the physical layout of struct obstack,
74205         except on hosts (like the AS/400) where the size or alignment of
74206         void * is greater than that of ptrdiff_t.
74207         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74208         __STDC__)]: Store temporary in pointer member of union, not
74209         integer member.
74210         * lib/obstack.c: Include <stddef.h>, for offsetof.
74211         (struct fooalign): Remove; it doesn't need a name.
74212         (union fooround): Change double to long double, and add void *.
74213         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74214         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74215         not a macro.  Hence the values are always int; so remove all
74216         casts-to-int in uses.
74217
74218 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74219
74220         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74221         we can get this patch merged into glibc.
74222
74223 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74224             Paul Eggert  <eggert@cs.ucla.edu>
74225
74226         * m4/argp: Depend on alloca.
74227
74228 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74229             Paul Eggert  <eggert@cs.ucla.edu>
74230
74231         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74232         freecoding.
74233
74234 2004-05-17  Bruno Haible  <bruno@clisp.org>
74235
74236         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74237         precision that consists of a '.' followed by an empty digit string.
74238         Patch by Tor Lillqvist <tml@iki.fi>.
74239
74240 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74241
74242         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74243         for backward compatibility with older code.  We need our own
74244         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74245         it under some other name, and our alloca.h will define it.
74246
74247 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74248             Derek Price  <derek@ximbiot.com>
74249
74250         * lib/alloca.c: Include <alloca.h>, to get our interface.
74251         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74252         include <alloca.h> first.  Use C89 prototype for alloca; this
74253         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74254         Use #elif for simplicity, since we can assume C89 now.
74255         Don't try to source the system alloca.h since it will not be found
74256         and to prevent recursively including its replacement.
74257         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74258         * lib/regex.c: Likewise.
74259
74260 2004-05-16  Derek Price  <derek@ximbiot.com>
74261             Paul Eggert  <eggert@cs.ucla.edu>
74262
74263         getline cleanup.  This changes the getndelim2 API: both order of
74264         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74265         no delimiter).
74266
74267         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74268         interface does that.
74269         (getline): Always use getdelim, so that we don't have two
74270         copies of this code.
74271         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74272         if available.
74273         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74274         (GETNDELIM2_MAXIMUM): New macro.
74275         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74276         instead of the old practice of delim2==0.  All callers changed.
74277         Return -1 on overflow, instead of returning junk.
74278         Do not set *linesize unless allocation succeeds.
74279         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74280         that we include sys/types.h.
74281         * lib/getnline.h: Likewise.
74282         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74283         (getndelim2): Reorder arguments.
74284         * lib/getnline.c (getnline, getndelim):
74285         Don't discard the NMAX argument.
74286         (getnline): Invoke getndelim, to avoid code duplication.
74287         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74288         of (size_t) -1 by callers of the getnline family.
74289
74290 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74291
74292         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74293         Check for gettimeofday.
74294         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74295         Check for settimeofday, stime.
74296
74297 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74298
74299         * lib/nanosleep.c (suspended): Change its type from int to
74300         sig_atomic_t volatile.
74301         (first_call): Make it private to rpl_nanosleep, and have it
74302         be zero initially as that's a bit faster.
74303         (my_usleep): Round up fractional times instead of truncating them,
74304         as this is the usual meaning for 'sleep'.
74305
74306         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74307         doesn't work.
74308         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74309         (ENOSYS): Define if not defined.
74310         (settime): Fall back on stime if it exists and settimeofday fails.
74311         But don't bother with fallbacks if a method fails with errno == EPERM.
74312
74313 2004-05-11  Jim Meyering  <jim@meyering.net>
74314
74315         Prior to this change, the save_cwd caller required read access to the
74316         current directory on most systems (ones with the fchdir function).
74317
74318         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74319         fails, try write-only, and finally, resort to using xgetcwd.
74320
74321 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74322
74323         * lib/obstack.c, obstack.h: Import changes from libc.
74324
74325 2004-04-28  Bruno Haible  <bruno@clisp.org>
74326
74327         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74328         also implicitly appends .exe to executables.
74329         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74330         accepts Windows pathnames.
74331         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74332         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74333         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74334         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74335         Reported by Derek Robert Price <derek@ximbiot.com>.
74336
74337 2004-04-21  Karl Berry  <karl@gnu.org>
74338
74339         * config/srclist.txt (localcharset.c): break sync.
74340
74341 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74342
74343         * m4/host-os.m4: Add a copyright notice.
74344
74345 2004-04-20  Jim Meyering  <jim@meyering.net>
74346
74347         Change UTILS_ to gl_ in AC_DEFINE'd names.
74348         Change utils_- and jm_-prefixed variables, too.
74349         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74350         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74351         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74352
74353         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74354         Don't emit trailing blanks.
74355         Also rename jm_-prefixed variables to have gl_ prefix.
74356
74357         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74358         Also rename jm_-prefixed variables to have gl_ prefix.
74359
74360         * m4/jm-macros.m4: Reflect the renamings.
74361         * m4/prereq.m4: Likewise.
74362
74363 2004-04-20  Jim Meyering  <jim@meyering.net>
74364
74365         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74366         memory.
74367
74368 2004-04-20  Jim Meyering  <jim@meyering.net>
74369             Bruno Haible  <bruno@clisp.org>
74370
74371         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74372         memory when realloc fails.
74373
74374 2004-04-19  Jim Meyering  <jim@meyering.net>
74375
74376         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74377         now that readutmp.c may call `free (0)'.
74378
74379 2004-04-19  Bruno Haible  <bruno@clisp.org>
74380
74381         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74382         * m4/inttypes_h.m4: Likewise.
74383         * m4/stdint_h.m4: Likewise.
74384         * m4/intmax_t.m4: Likewise.
74385         * m4/uintmax_t.m4: Likewise.
74386
74387 2004-04-18  Jim Meyering  <jim@meyering.net>
74388
74389         * m4/prereq.m4: Don't forbid jm_ prefix.
74390
74391         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74392         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74393         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74394         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74395         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74396         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74397         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74398         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74399         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74400         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74401         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74402         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74403         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74404         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74405         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74406         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74407         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74408         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74409         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74410
74411 2004-04-18  Jim Meyering  <jim@meyering.net>
74412
74413         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74414         failure, don't leak memory and do call END_UTMP_ENT.
74415
74416 2004-04-16  Jim Meyering  <jim@meyering.net>
74417
74418         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74419         coreutils' stat program.
74420         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74421
74422 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74423
74424         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74425         C89.
74426         (CHAR_BIT): Remove, since we assume C89.
74427         Include <stdint.h> if available, as per current Autoconf CVS advice.
74428
74429 2004-03-31  Jim Meyering  <jim@meyering.net>
74430
74431         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74432         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74433         * m4/xalloc.m4: Likewise.
74434
74435 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74436
74437         Merge from coreutils.
74438
74439         * m4/inttostr.m4: New file.
74440         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74441         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74442         Require gl_CLOCK_TIME.
74443         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74444
74445 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74446
74447         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74448         not bool, to be more consistent with Unix conventions.
74449         Suggested by Bruno Haible.
74450
74451         Merge from coreutils.
74452
74453         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
74454         * lib/umaxtostr.c: New files.
74455
74456         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
74457         the usual <time.h> dance.
74458         (get_date): Change signature to support fractional time stamps.
74459         All callers changed.
74460         * lib/getdate.y: Include "getdate.h" first, as we can now
74461         assume C89 and don't need to worry about 'const'.
74462         Similarly, include "unlocked-io.h" near start, not in middle.
74463         Include <limits.h>.
74464         (textint.value): Use long int rather than int.
74465         (textint.digits): Use size_t rather than int.
74466         (BILLION, LOG10_BILLION): New constants.
74467         (parser_control): New member rel_ns.  Members day_ordinal,
74468         time_zone, month, day, hour, minutes, rel_year, rel_month,
74469         rel_day, rel_hour, rel_minutes, rel_seconds
74470         are now long int, not int.  Member seconds is now struct timespec,
74471         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74472         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74473         not int.
74474         (%union.intval): Now long int, not int.
74475         New member timespec.
74476         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74477         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74478         (spec): Now is a timespec or an item list.
74479         (timespec, items): New nonterminals.
74480         (time, rel, relunit, number, get_date):
74481         Add support for fractional seconds.
74482         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74483         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74484         (to_hour): First arg is now long int, not int.
74485         (to_year): Returns long int, not int.
74486         Don't treat year -70 like 70.
74487         (tm_diff): Returns long int, not int.
74488         (lookup_word): Use bool instead of int when appropriate.
74489         (yylex): Use size_t for count, not int.
74490         Detect overflow when parsing large integer constants.
74491         Add support for fractions.
74492         (get_date): Make pointers 'const' if possible.
74493         Use more-portable code to detect integer overflow.
74494         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74495         Don't use ctime; it's not reliable if the year has >4 digits.
74496
74497         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74498         This is for compatibility with BSD.
74499
74500         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74501         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74502         From coreutils' system.h.
74503
74504         * lib/userspec.c: Don't include "posixver.h".
74505         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74506         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74507         compatible extension.  Simplify code by removing a boolean int
74508         that was always nonzero if a string was nonnull.
74509
74510 2004-03-30  Jim Meyering  <jim@meyering.net>
74511
74512         Merge from coreutils.
74513
74514         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74515         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74516         on some systems one must include <grp.h> before it.
74517         Reported by Christian Krackowizer.
74518
74519 2004-03-30  Jim Meyering  <jim@meyering.net>
74520
74521         Merge from coreutils.
74522
74523         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74524
74525         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74526         an empty input stream.
74527
74528         * lib/readtokens.c: Include <stdbool.h>.
74529         (readtoken): Use `size_t' rather than int/long.
74530         All callers adjusted.
74531         Use `bool' rather than `int' where appropriate.
74532         Use memset rather than an explicit loop.
74533         Use x2nrealloc rather than xrealloc.
74534         Allow the use of `\0' as a delimiter.
74535         (readtokens): Likewise.
74536         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
74537
74538 2004-03-30  Jim Meyering  <jim@meyering.net>
74539
74540         * m4/realloc.m4: Remove file, since now it does no more than
74541         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
74542         the `configure.ac' section of module/realloc.
74543         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
74544
74545 2004-03-30  Bruno Haible  <bruno@clisp.org>
74546
74547         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
74548         nonnull.
74549
74550 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74551
74552         Merge changes to getloadavg.c from coreutils and Emacs.
74553
74554         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
74555         Define to an expression, not to the empty string.
74556         Include cloexec.h and xalloc.h.
74557         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
74558         Use set_cloexec_flag rather than rolling our own.
74559         * lib/cloexec.c, lib/cloexec.h: New files.
74560
74561 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74562
74563         * m4/cloexec.m4: New file.
74564
74565 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74566
74567         * lib/getopt.h: Sync with libc CVS.
74568
74569 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74570             Bruno Haible  <bruno@clisp.org>
74571
74572         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
74573         mbswidth.
74574
74575 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74576             Bruno Haible  <bruno@clisp.org>
74577
74578         * lib/mbswidth.h: Include <wchar.h> only if
74579         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
74580         <wchar.h>.
74581         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
74582
74583 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74584
74585         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
74586         Sync with libc CVS.
74587         * lib/getopt_int.h: New file, also synced from libc.
74588
74589 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74590
74591         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
74592         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
74593         Bring back getopt.c, getopt.h, getopt1.c.
74594
74595 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74596
74597         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
74598         All uses changed.  Check for sa_sigaction member; this fixes
74599         a bug first reported by Jason Andrade in
74600         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74601
74602 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74603
74604         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
74605         '#if' expressions.  Unlike the code it replaces, it does not
74606         depend on (defined _SC_PAGESIZE).  However, it does depend on
74607         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
74608         first reported by Jason Andrade in
74609         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74610
74611 2004-02-25  Simon Josefsson  <jas@extundo.com>
74612
74613         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
74614
74615 2004-02-25  Simon Josefsson  <jas@extundo.com>
74616
74617         * lib/strdup.h: New file.
74618         * lib/strdup.c: Include it.
74619         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
74620         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
74621
74622 2004-02-23  Karl Berry  <karl@gnu.org>
74623
74624         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
74625         (from fencepost.gnu.org:/gd/gnuorg).
74626
74627 2004-02-23  Karl Berry  <karl@gnu.org>
74628
74629         * config/srclistvars.sh (GNUORG) [karl]: redefine.
74630         * config/srclist.txt: add maintain/standards documents.
74631
74632 2004-02-18  Bruno Haible  <bruno@clisp.org>
74633
74634         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
74635         Reported by Derek Robert Price <derek@ximbiot.com>.
74636
74637 2004-02-16  Karl Berry  <karl@gnu.org>
74638
74639         * config/mkinstalldirs, install-sh: update from automake.
74640
74641 2004-02-06  Karl Berry  <karl@gnu.org>
74642
74643         * m4/po.m4: update from gettext 0.14.1.
74644
74645 2004-02-06  Karl Berry  <karl@gnu.org>
74646
74647         * lib/config.charset: update from gettext 0.14.1.
74648
74649 2004-02-05  Paul Eggert  <eggert@twinsun.com>
74650
74651         Add comments and code, prompted by suggestions from Bruno Haible
74652         for sh-quote.
74653         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
74654         describing the enum quoting_style values.
74655         * lib/quotearg.c (quotearg_alloc): New function.
74656         (quotearg_buffer_restyled): Treat lone { and } as special.
74657         Treat = as special.  Work around bug with older shells
74658         that "see" a '\' that is really the 2nd byte of a multibyte char.
74659         Quote empty string with shell_quoting_style.
74660
74661 2004-02-03  Bruno Haible  <bruno@clisp.org>
74662
74663         * m4/pipe.m4: New file, from GNU gettext.
74664
74665 2004-02-03  Bruno Haible  <bruno@clisp.org>
74666
74667         * lib/pipe.h: New file, from GNU gettext.
74668         * lib/pipe.c: New file, from GNU gettext.
74669
74670 2004-01-27  Bruno Haible  <bruno@clisp.org>
74671
74672         * m4/execute.m4: New file, from GNU gettext.
74673
74674 2004-01-27  Bruno Haible  <bruno@clisp.org>
74675
74676         * lib/execute.h: New file, from GNU gettext.
74677         * lib/execute.c: New file, from GNU gettext.
74678         * lib/w32spawn.h: New file, from GNU gettext.
74679
74680 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74681
74682         Merge from diffutils.
74683
74684         * lib/file-type.c (file_type): Add typed memory objects.
74685         * lib/file-type.h (S_TYPEISTMO): New macro.
74686
74687         * lib/c-stack.h (c_stack_action): Remove argv argument.
74688         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
74689         (die): Don't calculate message unless segv_action returns.
74690         (get_stack_location, min_address_from_argv, max_address_from_argv,
74691         volatile stack_base, volatile_stack_size): Remove.
74692         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
74693         that every segmentation violation is a stack overflow.  (Ouch!)
74694         See Debian bug 136249 (still outstanding) for more info about why
74695         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
74696
74697 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74698
74699         Exit-status fix from coreutils.
74700
74701         Use exit_failure consistently in place of EXIT_FAILURE,
74702         so that program exit statuses are consistent on failure.
74703
74704         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
74705         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
74706         * lib/argmatch.h: Comment fix to match the above.
74707         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
74708         Now a macro referring to exit_failure, instead of a separate
74709         variable.  Include "exitfail.h" to get it.
74710         * lib/xstrtol.h: Include "exitfail.h".
74711         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
74712
74713         * lib/long-options.c (parse_long_options): Use prototype
74714         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
74715         for clarity.
74716
74717 2004-01-21  Jim Meyering  <jim@meyering.net>
74718
74719         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
74720         so as not to conflict with a different-sized __mktime_internal
74721         function in GNU libc.
74722         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
74723         Problem building statically-linked `ls' reported by Michael Brunnbauer.
74724
74725 2004-01-20  Karl Berry  <karl@gnu.org>
74726
74727         * config/config.guess: update from config.
74728
74729         * config/srclistvars.sh: GNUWWWLICENSES for karl.
74730
74731 2004-01-20  Bruno Haible  <bruno@clisp.org>
74732
74733         Safer stack allocation.
74734         * lib/setenv.c: Include allocsa.h.
74735         (alloca): Remove fallback definition.
74736         (freea): Remove macro.
74737         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
74738         instead of freea.
74739
74740 2004-01-20  Bruno Haible  <bruno@clisp.org>
74741
74742         * m4/eealloc.m4: New file, from GNU gettext.
74743
74744 2004-01-20  Bruno Haible  <bruno@clisp.org>
74745
74746         * m4/allocsa.m4: New file, from GNU gettext.
74747
74748 2004-01-20  Bruno Haible  <bruno@clisp.org>
74749
74750         * lib/xallocsa.h: New file, from GNU gettext.
74751         * lib/xallocsa.c: New file, from GNU gettext.
74752
74753 2004-01-20  Bruno Haible  <bruno@clisp.org>
74754
74755         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
74756
74757 2004-01-20  Bruno Haible  <bruno@clisp.org>
74758
74759         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
74760         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
74761         specially.
74762
74763 2004-01-20  Bruno Haible  <bruno@clisp.org>
74764
74765         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
74766         patch.
74767
74768 2004-01-20  Bruno Haible  <bruno@clisp.org>
74769
74770         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
74771
74772 2004-01-20  Bruno Haible  <bruno@clisp.org>
74773
74774         * lib/eealloc.h: New file.
74775
74776 2004-01-20  Bruno Haible  <bruno@clisp.org>
74777
74778         * lib/binary-io.h: Avoid warnings on Cygwin.
74779
74780 2004-01-20  Bruno Haible  <bruno@clisp.org>
74781
74782         * lib/allocsa.h: New file, from GNU gettext.
74783         * lib/allocsa.c: New file, from GNU gettext.
74784
74785 2004-01-18  Karl Berry  <karl@gnu.org>
74786
74787         * doc/gpl.texi, doc/lgpl.texi: new files.
74788
74789 2004-01-18  Karl Berry  <karl@gnu.org>
74790
74791         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
74792         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
74793
74794 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74795
74796         Merge from coreutils.
74797
74798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
74799         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
74800         (gl_DEFAULT_POSIX2_VERSION): Move
74801         the documentation from 'configure' into 'config.hin',
74802         so that 'configure --help' isn't burdened by it and
74803         we don't have to worry about its formatting there.
74804         Reword the documentation so that it's more succinct
74805         and can be run together into a single paragraph.
74806         * m4/same.m4 (gl_SAME): Check for pathconf.
74807
74808 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74809
74810         Merge from coreutils.
74811
74812         * lib/posixver.c: Include posixver.h.
74813
74814         * lib/same.c: Include <stdbool.h>, <limits.h>.
74815         (_POSIX_NAME_MAX): Define if not defined.
74816         (MIN): New macro.
74817         (same_name): If file names are silently truncated, report
74818         that the file names are the same if they are the same after
74819         the silent truncation.
74820
74821         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
74822         conversion function.
74823         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
74824         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
74825         longer needed.
74826
74827 2004-01-15  Jim Meyering  <jim@meyering.net>
74828
74829         Merge from coreutils.
74830
74831         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
74832         if no library is required.
74833         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
74834         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
74835         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
74836         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
74837         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
74838         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
74839         value, $ac_cv_search_crypt, if it's "none required".
74840         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
74841         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
74842         not gl_FUNC_GETLOADAVG.
74843         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
74844         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
74845
74846 2004-01-15  Jim Meyering  <jim@meyering.net>
74847
74848         Merge from coreutils.
74849
74850         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
74851         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
74852         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
74853
74854         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
74855         optional configure-time default.
74856
74857         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74858
74859         * lib/xreadlink.c (xreadlink): Correct outdated comment.
74860
74861 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
74862
74863         Merge from coreutils.
74864
74865         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
74866         value, $ac_cv_search_nanosleep, if it's "none required".
74867
74868 2004-01-14  Paul Eggert  <eggert@twinsun.com>
74869
74870         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
74871         with like-named macro in fnmatch.c.
74872         (EXT): Use an internal constant instead.
74873
74874         Merge fnmatch patches from glibc.
74875         * lib/fnmatch.c (mbsinit): Remove define.
74876         Add libc_hidden_ver (__fnmatch, fnmatch).
74877         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
74878         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
74879
74880 2004-01-14  Karl Berry  <karl@gnu.org>
74881
74882         * config/install-sh: update from automake.
74883
74884 2004-01-13  Karl Berry  <karl@gnu.org>
74885
74886         * config/install-sh: update from automake.
74887
74888 2004-01-09  Karl Berry  <karl@gnu.org>
74889
74890         * config/install-sh: update from automake.
74891
74892 2004-01-05  Karl Berry  <karl@gnu.org>
74893
74894         * config/config.{sub,guess}: update from config.
74895
74896 2003-12-31  Karl Berry  <karl@gnu.org>
74897
74898         * config/depcomp: update from automake.
74899
74900 2003-12-14  Karl Berry  <karl@gnu.org>
74901
74902         * lib/config.charset: update from gettext-runtime.
74903
74904 2003-12-03  Paul Eggert  <eggert@twinsun.com>
74905
74906         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
74907         Bug reported by Alfred M. Szmidt.
74908
74909 2003-12-03  Bruno Haible  <bruno@clisp.org>
74910
74911         * m4/gettext.m4: Upgrade from gettext-0.13.
74912         * m4/po.m4: Upgrade from gettext-0.13.
74913         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
74914         * m4/intmax.m4: New file, from gettext-0.13.
74915         * m4/printf-posix.m4: New file, from gettext-0.13.
74916
74917 2003-11-29  Karl Berry  <karl@gnu.org>
74918
74919         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
74920
74921 2003-11-25  Paul Eggert  <eggert@twinsun.com>
74922             Bruno Haible  <bruno@clisp.org>
74923
74924         * lib/printf-parse.h: Don't include sys/types.h.
74925         (ARG_NONE): New macro.
74926         (char_directive): Change type of *arg_index fields to size_t.
74927         * lib/printf-parse.c: Don't include sys/types.h.
74928         (SSIZE_MAX): Remove macro.
74929         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
74930         Remove unnecessary overflow check.
74931         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
74932         fields.
74933
74934 2003-11-25  Bruno Haible  <bruno@clisp.org>
74935
74936         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
74937
74938 2003-11-25  Bruno Haible  <bruno@clisp.org>
74939
74940         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
74941         gt_TYPE_SSIZE_T.
74942
74943 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74944
74945         * modules/alloca: Remove dependency on xalloc.
74946
74947 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74948
74949         * lib/alloca.c: Remove dependency on xalloc module.
74950         (xalloc_die): Remove.
74951         (memory_full) [!defined emacs]: New macro.
74952         [!defined emacs]: Don't include xalloc.h.
74953         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
74954         address arithmetic overflows.  Change datatypes a bit to avoid
74955         unnecessary casts.
74956
74957 2003-11-22  Jim Meyering  <jim@meyering.net>
74958
74959         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
74960         s/size/size_t/.
74961
74962 2003-11-21  Karl Berry  <karl@gnu.org>
74963
74964         * config/config.{sub,guess}: update from config.
74965
74966 2003-11-18  Karl Berry  <karl@gnu.org>
74967
74968         * config/config.{sub,guess}: update from config.
74969
74970         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
74971
74972 2003-11-17  Paul Eggert  <eggert@twinsun.com>
74973
74974         * README: Mention that S+T cannot overflow if S is the size of
74975         an existing object and T is sufficiently small.
74976
74977 2003-11-17  Jim Meyering  <jim@meyering.net>
74978
74979         On systems without utime and without a utimes function capable of
74980         dealing with a NULL struct utimbuf* argument, this utime replacement
74981         could -- in unusual circumstances -- leak a file descriptor.
74982         * lib/utime.c: Include <unistd.h> and <errno.h>.
74983         (utime_null): Be sure to close `fd' and to preserve errno.
74984         Reported by Geoff Collyer via Arnold Robbins.
74985
74986 2003-11-17  Bruno Haible  <bruno@clisp.org>
74987
74988         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
74989         (Depends-on): Add xsize.
74990
74991 2003-11-17  Bruno Haible  <bruno@clisp.org>
74992
74993         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
74994
74995 2003-11-17  Bruno Haible  <bruno@clisp.org>
74996
74997         * lib/vasnprintf.c (alloca): Remove fallback definition.
74998         (freea): Remove definition.
74999         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75000         Reported by Paul Eggert.
75001
75002 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75003             Bruno Haible  <bruno@clisp.org>
75004
75005         Protect against address arithmetic overflow.
75006         * lib/printf-args.h: Include stddef.h.
75007         (arguments): Change type of field 'count' to size_t.
75008         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75009         'unsigned int' where appropriate.
75010         * lib/printf-parse.h: Include sys/types.h.
75011         (char_directive): Change type of *arg_index fields to ssize_t.
75012         (char_directives): Change type of fields 'count', max_*_length to
75013         size_t.
75014         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75015         (SSIZE_MAX): Define fallback value.
75016         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75017         instead of 'int' where appropriate. Check a_allocated, d_allocated
75018         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75019         * lib/vasnprintf.c: Include xsize.h.
75020         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75021         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75022         overflow. Avoid wraparound when converting a width or precision from
75023         decimal to binary.
75024
75025 2003-11-16  Bruno Haible  <bruno@clisp.org>
75026
75027         Update from GNU gettext.
75028         * lib/printf-parse.c: Generalize to it can be compiled for wide
75029         strings.
75030         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75031         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75032         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75033         SNPRINTF): New macros.
75034         Don't include <alloca.h> if the file is used inside libintl.
75035         (local_wcslen): New function, for Solaris 2.5.1.
75036         (VASNPRINTF): Use it instead of wcslen.
75037
75038 2003-11-16  Bruno Haible  <bruno@clisp.org>
75039
75040         * lib/xsize.h (xmax): New function.
75041         (xsum, xsum3, xsum4): Declare as "pure" functions.
75042
75043 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75044
75045         * modules/xalloc (Files): Undo latest change, since xalloc.h
75046         no longer needs SIZE_MAX or PTRDIFF_MAX.
75047
75048 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75049
75050         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75051         gl_PTRDIFF_MAX.
75052
75053 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75054
75055         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75056         "return", to pacify some unknown compiler.  Problem reported
75057         by Joerg Schilling.
75058
75059 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75060
75061         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75062         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75063         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75064         heuristic is just as accurate as far as we know, and it removes a
75065         dependency on size_max.m4 and ptrdiff_max.m4.
75066
75067 2003-11-11  Bruno Haible  <bruno@clisp.org>
75068
75069         * modules/xsize (Files): Add m4/size_max.m4.
75070         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75071
75072 2003-11-11  Bruno Haible  <bruno@clisp.org>
75073
75074         * m4/size_max.m4: New file.
75075         * m4/ptrdiff_max.m4: New file.
75076         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75077         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75078         (gl_XALLOC): Invoke it.
75079
75080 2003-11-11  Bruno Haible  <bruno@clisp.org>
75081
75082         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75083         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75084         defined.
75085
75086 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75087
75088         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75089         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75090         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75091         From Bruno Haible.
75092         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75093         not (size_t) -1, since it's defined here.
75094
75095 2003-11-09  Karl Berry  <karl@gnu.org>
75096
75097         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75098
75099 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75100
75101         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75102         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75103         Reject sizes of exactly SIZE_MAX bytes.
75104         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75105         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75106
75107 2003-11-05  Bruno Haible  <bruno@clisp.org>
75108
75109         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75110         SIZE_MAX defined in <limits.h> on Solaris.
75111
75112 2003-11-04  Jim Meyering  <jim@meyering.net>
75113
75114         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75115         variable names, rather than @VAR@.
75116         * modules/poll: Likewise.
75117
75118 2003-11-04  Bruno Haible  <bruno@clisp.org>
75119
75120         * modules/xsize: New file.
75121         * modules/linebreak: Depend on xsize.
75122         * MODULES.html.sh (func_all_modules): Add xsize.
75123
75124 2003-11-04  Bruno Haible  <bruno@clisp.org>
75125
75126         * m4/xsize.m4: New file.
75127
75128 2003-11-04  Bruno Haible  <bruno@clisp.org>
75129
75130         * lib/xsize.h: New file.
75131         * lib/linebreak.c: Include xsize.h.
75132         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75133         argument for overflow.
75134         Suggested by Paul Eggert.
75135
75136 2003-11-03  Karl Berry  <karl@gnu.org>
75137
75138         * config/config.{guess,sub}: update from config.
75139
75140 2003-11-03  Jim Meyering  <jim@meyering.net>
75141
75142         * modules/userspec (lib_SOURCES): Add userspec.h.
75143         (Include): Add "userspec.h".
75144         Improve description.
75145
75146 2003-11-03  Jim Meyering  <jim@meyering.net>
75147
75148         * lib/userspec.c: Include "userspec.h".
75149         * lib/userspec.h: New file.
75150
75151 2003-11-03  Bruno Haible  <bruno@clisp.org>
75152
75153         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75154
75155 2003-11-03  Bruno Haible  <bruno@clisp.org>
75156
75157         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75158         available, to avoid (extremely rare) race condition.
75159         Suggested by Paul Eggert.
75160
75161 2003-11-02  Karl Berry  <karl@gnu.org>
75162
75163         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75164
75165 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75166
75167         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75168         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75169         (read_filesystem_list): Set and use me_type_malloced.
75170         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75171         whatever the type happens to be), for brevity and consistency.
75172         Check for size calculation overflow on Alphas running OSF/1.
75173
75174 2003-10-31  Jim Meyering  <jim@meyering.net>
75175
75176         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75177
75178         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75179
75180 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75181             Bruno Haible  <bruno@clisp.org>
75182
75183         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75184         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75185
75186 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75187
75188         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75189         netbsd*-gnu*.  Suggested by Robert Millan.
75190
75191 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75192
75193         * modules/group-member: Depend on stdbool.
75194
75195 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75196
75197         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75198
75199 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75200
75201         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75202         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75203         after the 'gnu' in these cases.  This fixes some bugs in the
75204         previous change, and is based on suggestions by Robert Millan.
75205
75206 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75207
75208         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75209         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75210         no longer needed.
75211         * lib/quotearg.c (quotearg_n_options): Use it.
75212         * lib/group-member.c: Include <stdbool.h>.
75213         (free_group_info): Arg is now const *; don't free arg.
75214         (get_group_info): Now returns bool and accepts struct group_info *,
75215         rather than returning a malloc'ed struct group_info *.
75216         All uses changed.  Check for overflow in internal size calculation.
75217
75218         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75219         rather than xmalloc/xrealloc.
75220         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75221         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75222         conformance bug: the old code used a pointer after freeing the
75223         storage that it addressed.
75224         * lib/hash.c (hash_initialize): Simplify the code by using
75225         xalloc_oversized rather than doing it by hand.
75226         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75227         the buffer preserved.  Use free and xmalloc instead.
75228         * lib/quotearg.c (quotearg_n_options): Likewise.
75229         Use a simpler test for size overflow.  Don't use xalloc_oversized
75230         because unsigned int might be wider than size_t (!); this suggests
75231         that we should switch from unsigned int to size_t for slot numbers.
75232
75233 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75234
75235         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75236         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75237         NetBSD kernels.  Requested by Richard Stallman.
75238
75239 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75240
75241         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75242         to allocate the returned structure.  Do not allocate a subarray,
75243         as x2nrealloc will do that.
75244         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75245         instead of xnrealloc.
75246         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75247
75248 2003-10-27  Bruno Haible  <bruno@clisp.org>
75249
75250         * lib/stdbool_.h: Better support for BeOS.
75251
75252 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75253
75254         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75255         now uses inline.
75256
75257 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75258
75259         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75260         callers that want to do their own size-overflow checking.  Include
75261         <stdbool.h>, since xalloc_oversized returns bool.
75262         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75263         to use xalloc_oversized.
75264
75265         Add two functions x2realloc, x2nrealloc, for programs that grow
75266         arrays dynamically by doubling their sizes.
75267         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75268         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75269         New functions.
75270
75271         Port to C99 semantics for 'inline' of external functions.
75272         Bug reported by Bruno Haible.
75273         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75274         with the old contents of xnmalloc.
75275         (xnmalloc, xmalloc): Use it.
75276         (xnrealloc_inline): New static inline function,
75277         with the old contents of xnrealloc.
75278         (xnrealloc, xrealloc): Use it.
75279
75280         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75281         that.
75282
75283 2003-10-26  Karl Berry  <karl@gnu.org>
75284
75285         * config/srclist.txt (COPYING.DOC): no longer available from
75286         /gd/gnuorg; don't know where the ultimate source is.
75287
75288 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75289
75290         Fix several address-calculation bugs in the hash modules,
75291         plus some minor code cleanup.
75292
75293         * lib/hash.h: Include <stdbool.h>, for bool.
75294         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75295         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75296         hash_get_n_entries, hash_get_max_bucket_length,
75297         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75298         hash_rehash): Use size_t rather than unsigned.
75299         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75300         hash_get_n_buckets_used, hash_get_n_entries,
75301         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75302         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75303         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75304         Likewise.
75305         (SIZE_MAX): Define if not defined.
75306         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75307         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75308         hash_print):
75309         Use const * when possible.
75310         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75311         (check_tuning): Fix bug: if tuning parameters were very close to
75312         0 or 1, rounding errors could have caused subscript violations.
75313         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75314         (hash_initialize): Add 'fail:' label
75315         to free table and return NULL, and use it to simplify code.
75316         Use calloc rather than clearing the storage ourself.
75317         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75318         buffer size calculations.
75319         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75320         Include <stddef.h>, for size_t.
75321         * lib/hash-pjw.c (hash_pjw): Likewise.
75322         Switch to method described by Bruno Haible.
75323         Include <limits.h>, for CHAR_BIT.
75324         (SIZE_BITS): New macro.
75325
75326 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75327
75328         * m4/getline.m4 (AM_FUNC_GETLINE):
75329         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75330         hosts.  Problem reported by Derek Robert Price in
75331         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75332         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75333         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75334
75335 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75336
75337         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75338         ceiling the allocation at NMAX bytes rather than silently
75339         discarding input bytes before NMAX is reached.  This makes
75340         a difference only if NMAX exceeds SIZE_MAX / 2.
75341
75342         * lib/obstack.c: Merge from glibc.
75343         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75344         Add libc_hidden_def (_obstack_newchunk).
75345         (_obstack_free) [! defined _LIBC]: Remove.
75346         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75347         a clone of the function body.
75348         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75349         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75350
75351         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75352         glibc.
75353         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75354         arg to memcpy.
75355
75356         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75357         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75358         Don't use lvalue casts, as GCC plans to remove support for them
75359         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75360         was also present in the non-GCC version, indicating that this
75361         code had always been buggy and had never been widely used.
75362         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75363         Use the fast variant of each macro, rather than copying the
75364         definiens of the fast variant; that way, we'll be more likely to
75365         catch future bugs in the fast variants.
75366
75367 2003-10-20  Bruno Haible  <bruno@clisp.org>
75368
75369         * modules/wait-process: New file.
75370         * MODULES.html.sh (func_all_modules): Add wait-process.
75371
75372 2003-10-20  Bruno Haible  <bruno@clisp.org>
75373
75374         * m4/wait-process.m4: New file.
75375
75376 2003-10-20  Bruno Haible  <bruno@clisp.org>
75377
75378         * lib/wait-process.h: New file, from GNU gettext.
75379         * lib/wait-process.c: New file, from GNU gettext.
75380
75381 2003-10-19  Jim Meyering  <jim@meyering.net>
75382
75383         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75384         HPUX 10.20.
75385
75386 2003-10-18  Karl Berry  <karl@gnu.org>
75387
75388         * config/config.guess: update from config.
75389
75390 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75391
75392         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75393         (getgroups): First arg is int, not size_t.
75394         Don't let 'free' mangle errno.
75395
75396 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75397
75398         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75399
75400 2003-10-16  Karl Berry  <karl@gnu.org>
75401
75402         * config/config.{guess,sub}: update from config.
75403
75404 2003-10-16  Jim Meyering  <jim@meyering.net>
75405
75406         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75407         memcpy.
75408
75409 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75410
75411         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75412         (SIZE_MAX): Remove.
75413         (new_exclude, add_exclude_file): Initial size no longer needs to
75414         be a power of 2.
75415         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75416         our own address arithmetic overflow checking.
75417
75418         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75419         (fnmatch): Do not alloca more than 2000 wide characters;
75420         instead, use malloc for large buffers.
75421         Check for address arithmetic overflow, and return -1
75422         with errno set to ENOMEM in that case.
75423         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75424         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75425         instead, return -1.  Check for address arithmetic overflow.
75426
75427 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75428
75429         Handle invalid suffixes and overflow independently, so that
75430         callers can treat them independently as needed.  Fix some bugs in
75431         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75432         suffix for a human-readable blocksize.  The major caller-visible
75433         change is the addition of a new
75434         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75435         that both overflow and suffix chars were found.
75436
75437         * lib/human.c (humblock): Don't check separately for invalid suffix
75438         char; that is xstrtoumax's job (now that its bug is fixed).
75439         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75440         INTMAX_MAX]: New macros.
75441         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75442         TYPE_MAXIMUM): New macros.
75443         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75444         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75445         if overflow occurs, as it's what __strtol does and it's more useful
75446         in practice.
75447         (__xstrtol): If __strtol reports some error other than ERANGE,
75448         reflect it to the caller as LONGINT_INVALID.  If it reports
75449         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75450         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75451         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75452         value.
75453         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
75454         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
75455         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
75456         [defined UINTMAX_MAX]: New macros.
75457
75458 2003-10-14  Bruno Haible  <bruno@clisp.org>
75459
75460         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
75461
75462 2003-10-14  Bruno Haible  <bruno@clisp.org>
75463
75464         * m4/sig_atomic_t: New file, from GNU gettext.
75465         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
75466
75467 2003-10-14  Bruno Haible  <bruno@clisp.org>
75468
75469         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
75470         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75471         Also use volatile where needed.
75472
75473 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75474
75475         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75476         Change maintainer from Bruno Haible to 'all'.
75477
75478 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75479
75480         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75481
75482 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75483
75484         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75485         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75486         and define in terms of the other primitives.
75487         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75488         (SIZE_MAX): Define if not already defined.
75489         (array_size_overflow): New function.
75490         (xalloc_die): Abort instead of exiting if 'error' returns.
75491         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75492         (xmalloc, xrealloc): Use them.
75493         (xcalloc): Check for address arithmetic overflow.
75494         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75495         a bit faster than strcpy.
75496
75497 2003-10-10  Simon Josefsson  <jas@extundo.com>
75498
75499         * modules/argp (Depends-on): Add restrict and strcase.
75500
75501 2003-10-10  Simon Josefsson  <jas@extundo.com>
75502
75503         * m4/argp.m4: Add AC_C_INLINE.
75504
75505 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75506
75507         Merge getpass from libc, plus a few fixes.
75508
75509         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75510         Include <stdbool.h>.
75511         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75512         __fsetlocking to empty.
75513         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75514         do include <bits/libc-lock.h>.
75515         Do not include <fcntl.h>; not needed.
75516         [_LIBC]: Include <wchar.h>.
75517         (NOTCANCEL_MODE): New macro.
75518         (flockfile, funlockfile) [_LIBC]: New macros.
75519         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75520         [!_LIBC]: New macros.
75521         (call_fclose): New function.
75522         (getpass): Use it.  Save tty stream separately; this simplifies the
75523         code and makes it more reliable if stdin happens to equal stdout.
75524         Invoke __fsetlocking on tty.
75525         Handle thread cancellation if needed.
75526         Namespace cleanup (use __tcgetattr, __getline).
75527         Use bool for Booleans.
75528         [USE_IN_LIBIO]: Handle wide streams.
75529         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75530         stream might go where.
75531
75532         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75533         doesn't have to include <stdio.h> before us.
75534         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75535         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75536         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
75537         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
75538         if not declared, so that we can use getpass.c code from libc without
75539         rewriting it.
75540         (flockfile, ftrylockfile, funlockfile): New macros.
75541
75542 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75543
75544         * modules/getpass: Depend on stdbool.
75545
75546 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75547
75548         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
75549
75550 2003-10-07  Karl Berry  <karl@gnu.org>
75551
75552         * config/config.{guess,sub}: update from config.
75553
75554 2003-10-06  Jim Meyering  <jim@meyering.net>
75555             Bruno Haible  <bruno@clisp.org>
75556
75557         This lets translators provide better translations for the
75558         "Written by ..." part of --version output.
75559         * lib/version-etc.h: Include stdarg.h.
75560         (version_etc_copyright): Declare as readonly.
75561         (version_etc): Make this function variadic with a NULL-terminated list
75562         of author name strings.
75563         (version_etc_va): New declaration.
75564         * lib/version-etc.c: Include stdarg.h, stdlib.h.
75565         (version_etc_copyright): Declare as readonly.
75566         (version_etc_va): New function. Provide a different translatable string
75567         for each possible number of authors < 10. Abbreviate when there are 10
75568         authors or more.
75569         (version_etc): Make this function variadic. Call version_etc_va.
75570         Suggestion from Gary V. Vaughan.
75571
75572         * lib/long-options.h (parse_long_options): Change prototype: the
75573         authors string is moved to the end and becomes variadic.
75574         * lib/long-options.c: Include stdarg.h.
75575         (parse_long_options): Make this function variadic, too.
75576         Call version_etc_va, not version_etc.
75577
75578 2003-10-06  Bruno Haible  <bruno@clisp.org>
75579
75580         * modules/version-etc-2: Remove file.
75581         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
75582
75583 2003-10-06  Bruno Haible  <bruno@clisp.org>
75584
75585         * modules/fatal-signal: New file.
75586         * MODULES.html.sh (func_all_modules): Add fatal-signal.
75587
75588 2003-10-06  Bruno Haible  <bruno@clisp.org>
75589
75590         * m4/fatal-signal.m4: New file.
75591         * m4/signalblocking.m4: New file, from GNU gettext.
75592
75593 2003-10-06  Bruno Haible  <bruno@clisp.org>
75594
75595         * lib/version-etc-2.h: Remove file.
75596         * lib/version-etc-2.c: Remove file.
75597
75598 2003-10-06  Bruno Haible  <bruno@clisp.org>
75599
75600         * lib/fatal-signal.h: New file, from GNU gettext.
75601         * lib/fatal-signal.c: New file, from GNU gettext.
75602
75603 2003-10-05  Paul Eggert  <eggert@twinsun.com>
75604
75605         * README: Rework advice for preventing empty .o files.
75606         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
75607         not <sys/types.h>.
75608
75609 2003-10-04  Karl Berry  <karl@gnu.org>
75610
75611         * lib/argp*: update from libc.
75612
75613 2003-10-04  Karl Berry  <karl@gnu.org>
75614
75615         * config/config.{guess,sub}: update from config.
75616
75617 2003-10-02  Bruno Haible  <bruno@clisp.org>
75618
75619         * modules/lchown (Include): Add lchown.h.
75620         * modules/time_r (Include): Use "..." syntax.
75621         * modules/xgetdomainname (Include): Add xgetdomainname.h.
75622
75623 2003-10-01  Simon Josefsson  <jas@extundo.com>
75624
75625         * MODULES.html.sh (func_all_modules): Move gethostname from section
75626         'based on' to section 'lacking' POSIX:2001.
75627
75628 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
75629
75630         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
75631         to output mode on the same stream.
75632
75633 2003-09-29  Paul Eggert  <eggert@twinsun.com>
75634
75635         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
75636         Fix arg typo in previous patch.
75637
75638 2003-09-28  Jim Meyering  <jim@meyering.net>
75639
75640         * lib/error.c: Correct cpp indentation.
75641
75642 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75643
75644         * modules/free: New file.
75645
75646 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75647
75648         * m4/free.m4: New file.
75649
75650 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75651
75652         * lib/minmax.h (MIN, MAX)
75653         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
75654         Omit the special code that used __typeof__, since we worry that
75655         it could be more trouble than it's worth.  See:
75656         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
75657         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
75658
75659         * lib/free.c: New file.
75660
75661 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
75662
75663         Trivial fixes to Makefile.am parts of module listings.
75664         * modules/strstr: Append strstr.h to lib_SOURCES.
75665         * modules/strcase: Likewise, for strcase.h.
75666
75667 2003-09-27  Karl Berry  <karl@gnu.org>
75668
75669         * config/mkinstalldirs: update from automake.
75670
75671 2003-09-26  Paul Eggert  <eggert@twinsun.com>
75672
75673         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
75674         (error_tail): Do not loop, reallocating temporary buffer, since
75675         the output cannot contain more wide characters than the input
75676         contains bytes, the size must be big enough already.  This avoids
75677         one potential size overflow calculation.  Check for size overflow
75678         when calculating temporary buffer size.  Free temporary buffer
75679         when done, if it was allocated with malloc; this plugs a memory
75680         leak.  Remove casts from void * to pointers, that are no longer
75681         needed now that we're assuming C89 or better.
75682
75683         Merge error changes from glibc.
75684
75685         * lib/error.c, error.h: Update copyright notice header to match glibc.
75686         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
75687         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
75688         Disable cancellation while printing error.
75689         * lib/error.h: Prepend __ to parameter names.
75690
75691 2003-09-26  Jim Meyering  <jim@meyering.net>
75692
75693         * lib/error.c (error_tail): Move some declarations
75694         into inner scope where the local variables are used.
75695
75696 2003-09-26  Bruno Haible  <bruno@clisp.org>
75697
75698         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
75699         stpncpy().
75700         Don't define stpncpy through config.h; it's now done through stpncpy.h.
75701
75702 2003-09-26  Bruno Haible  <bruno@clisp.org>
75703
75704         * lib/stpncpy.h (gnu_stpncpy): New declaration.
75705         (stpncpy): Define as alias for gnu_stpncpy.
75706         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
75707
75708 2003-09-25  Simon Josefsson  <jas@extundo.com>
75709
75710         * lib/xgetdomainname.h: New file.
75711         * lib/xgetdomainname.c: New file.
75712
75713 2003-09-25  Simon Josefsson  <jas@extundo.com>
75714             Bruno Haible  <bruno@clisp.org>
75715
75716         * modules/getdomainname: New file.
75717         * modules/xgetdomainname: New file.
75718         * MODULES.html.sh (func_all_modules): Add getdomainname,
75719         xgetdomainname.
75720
75721 2003-09-25  Simon Josefsson  <jas@extundo.com>
75722             Bruno Haible  <bruno@clisp.org>
75723
75724         * m4/getdomainname.m4: New file.
75725
75726 2003-09-25  Simon Josefsson  <jas@extundo.com>
75727             Bruno Haible  <bruno@clisp.org>
75728
75729         * lib/getdomainname.h: New file.
75730         * lib/getdomainname.c: New file.
75731
75732 2003-09-25  Karl Berry  <karl@gnu.org>
75733
75734         * lib/argp-fmtstream.c, argp-help.c: update from libc.
75735
75736 2003-09-25  Karl Berry  <karl@gnu.org>
75737
75738         * config/install-sh: update from automake.
75739
75740 2003-09-25  Bruno Haible  <bruno@clisp.org>
75741
75742         * modules/version-etc-2: New file, from modules/version-etc with
75743         modifications.
75744         * MODULES.html.sh (func_all_modules): Add version-etc-2.
75745
75746 2003-09-25  Bruno Haible  <bruno@clisp.org>
75747
75748         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
75749         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
75750
75751 2003-09-24  Simon Josefsson  <jas@extundo.com>
75752
75753         * modules/xgethostname: Add xgethostname.h.
75754
75755 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75756
75757         * lib/linebuffer.c (freebuffer): Don't free the argument, just
75758         the buffer associated with the argument.  Bug reported by
75759         Simon Josefsson.
75760
75761 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75762
75763         * README: Document assumptions that 'int' is at least 32 bits
75764         wide, that integer arithmetic is 2's complement without overflow,
75765         that there are no holes in integer values, that adding sizes of
75766         two nonoverlapping objects can't overflow, and that all-bits-zero
75767         yields scalar zero.  Fix spelling and capitalization typos.
75768
75769 2003-09-19  Karl Berry  <karl@gnu.org>
75770
75771         * lib/argp.h: update from libc.
75772
75773 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75774
75775         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
75776         to avoid spurious warnings like "AC_RUN_IFELSE was called before
75777         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
75778
75779 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75780
75781         * gnulib-tool: Use "test -h", not "test -L", for portability
75782         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
75783         (tags_regexp): Remove, since \| doesn't conform to POSIX.
75784         (sed_extract_prog): Issue s commands one-by-one, rather than
75785         using \| in one s command.
75786
75787 2003-09-16  Paul Eggert  <eggert@twinsun.com>
75788
75789         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
75790         input error, instead of returning NULL the next time we are called
75791         (and therefore losing track of errno).
75792
75793 2003-09-16  Bruno Haible  <bruno@clisp.org>
75794
75795         * gnulib-tool (func_create_testdir): Warn about duplicated
75796         dependencies.
75797
75798 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75799
75800         * modules/argmatch, modules/fatal, modules/obstack,
75801         modules/xalloc, modules/xgethostname: Sort dependencies by
75802         importance, not alphabetically.
75803
75804 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75805
75806         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
75807         fails, so that the caller gets the proper errno.
75808
75809         * lib/readutmp.c (read_utmp): Likewise.
75810         Check for fstat error.  Close stream and free storage
75811         when failing.
75812
75813 2003-09-14  Karl Berry  <karl@gnu.org>
75814
75815         * config/srclist.txt (strdup.c): disable for c89 changes.
75816
75817 2003-09-14  Jim Meyering  <jim@meyering.net>
75818
75819         * lib/getloadavg.c: Correct cpp indentation.
75820         * lib/strdup.c: Likewise.
75821         * lib/vasnprintf.c: Likewise.
75822
75823 2003-09-14  Bruno Haible  <bruno@clisp.org>
75824
75825         * modules/fwriteerror: New file.
75826         * MODULES.html.sh (func_all_modules): Add fwriteerror.
75827
75828 2003-09-14  Bruno Haible  <bruno@clisp.org>
75829
75830         * lib/fwriteerror.h: New file.
75831         * lib/fwriteerror.c: New file.
75832
75833 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75834
75835         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
75836         modules/xgethostname, modules/xalloc: Depend on exit.
75837
75838 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75839
75840         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
75841
75842         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
75843         and AC_MINIX, too, so that their extensions are available.
75844
75845         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
75846         This macro has been superseded by gl_BACKUPFILE.
75847
75848         More patches to assume C89 or better.
75849
75850         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
75851
75852         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
75853         unconditionally.
75854         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
75855         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
75856         Include <string.h>, <stdlib.h> unconditionally.
75857         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
75858         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
75859         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
75860         headers or for string.h.
75861         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
75862         or strtoul.
75863
75864         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
75865         headers.
75866         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
75867         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75868         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
75869         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
75870         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75871         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
75872         memcpy, memset.
75873         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
75874         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
75875         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
75876         strtol.
75877         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
75878         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
75879         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
75880         strtoul.
75881
75882 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75883
75884         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
75885         * lib/obstack.c [!defined _LIBC]: Likewise.
75886         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
75887         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
75888         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
75889
75890         More changes to assume C89 or better.
75891
75892         * lib/error.c (error_tail): Assume vprintf.
75893
75894         * lib/argmatch.c (getenv): Remove decl.
75895         * lib/progreloc.c (get_full_program_name): Define via prototype.
75896         * lib/setenv.c (clearenv): Likewise.
75897         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
75898         needed.
75899         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
75900         (malloc, memcpy): Remove decls.
75901         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
75902         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
75903         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75904         (memcpy): Remove macro.
75905         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
75906         (__P): Remove.  All uses removed.
75907         (PTR): Remove.  All uses changed to void *.
75908         (CHAR_BIT, NULL): Remove.
75909         (spaces, zeros, memset_space, memset_zero)
75910         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
75911         Remove.
75912         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
75913         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
75914         Define with prototype.
75915         Remove now-unnecessary prototype decl.
75916         (extra_args_spec): Assume ANSI C.  All uses changed.
75917         (extra_args_spec_iso): Remove.
75918         (my_strftime, emacs_strftimeu): Define via prototype.
75919         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
75920         unconditionally.
75921         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
75922         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
75923         (strtoul, strtol): Remove decls.
75924         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
75925         LONG_MAX): Remove.
75926         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75927         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
75928         (LOCALE_PARAM_PROTO): New macro.
75929         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
75930         (INTERNAL (strtol), strtol): Define with a prototype.
75931         (PARAMS): Remove.  All uses removed.
75932         * lib/tempname.c: Include <string.h> unconditionally.
75933         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
75934         * lib/xgethostname.c (main): Define with a prototype.
75935         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
75936         Include <stdlib.h> unconditionally.
75937         (calloc, malloc, realloc, free): Remove decls.
75938         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
75939         Include <stdlib.h> unconditionally.  Sort include file names.
75940         (strtod): Remove.
75941         (xstrtod): Define with a prototype.
75942         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
75943         (strtol, strtoul): Remove decls.
75944
75945 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75946
75947         More patches to assume C89 or better.
75948         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
75949         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
75950         string.h, memchr, STDC_HEADERS.
75951
75952 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75953
75954         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
75955         Include <stdlib.h>, <string.h> unconditionally.
75956         Remove now-unnecessary cast to char *.
75957         * lib/strnlen.c: Include <string.h> unconditionally.
75958         * lib/yesno.c (yesno): Define with a prototype.
75959
75960 2003-09-11  Bruno Haible  <bruno@clisp.org>
75961
75962         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
75963
75964 2003-09-10  Jim Meyering  <jim@meyering.net>
75965
75966         * lib/error.c: Correct indentation of cpp directives.
75967
75968 2003-09-10  Bruno Haible  <bruno@clisp.org>
75969
75970         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
75971         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
75972         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
75973         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
75974         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
75975         <stdlib.h> and <string.h> checks.
75976         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
75977         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
75978
75979 2003-09-10  Bruno Haible  <bruno@clisp.org>
75980
75981         * lib/strcspn.c: Include <string.h> unconditionally.
75982         * lib/strpbrk.c: Include <string.h> unconditionally.
75983         * lib/strstr.c: Include <string.h> unconditionally.
75984         * lib/unicodeio.c: Include <string.h> unconditionally.
75985         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
75986         * lib/unsetenv.c: Likewise.
75987         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
75988         * lib/yesno.c: Include <stdlib.h> unconditionally.
75989         (rpmatch): Add prototype.
75990
75991 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75992
75993         More patches to assume C89 or better.
75994         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
75995         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
75996         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
75997         or for string.h.
75998         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
75999         stdlib.h.
76000         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76001         C headers.
76002         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76003         string.h.
76004         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76005         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76006         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76007         or for string.h.
76008         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76009         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76010         C headers.
76011         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76012         memcpy.
76013         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76014         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76015         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76016         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76017         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76018         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76019         string.h, free.
76020         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76021         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76022         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76023         C headers, or for string.h.
76024         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76025         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76026         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76027         headers, memory.h, stdlib.h, string.h, strings.h.
76028         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76029         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76030         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76031         strchr.
76032         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76033         headers, memory.h, string.h.
76034         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76035         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76036         free.
76037         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76038         headers.
76039         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76040         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76041         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76042         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76043         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76044
76045 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76046
76047         More K&R removal.
76048
76049         * lib/acosl.c (main): Use a prototype.
76050         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76051         tanl.c: Likewise.
76052
76053         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76054
76055         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76056         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76057         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76058         with a prototype.
76059         * lib/getopt.c (const): Remove macro.
76060         Include <string.h> unconditionally.
76061         (my_index): Remove; all uses changed to strchr.
76062         (strlen): Remove decl.
76063         (exchange): Remove forward decl; no longer needed.
76064         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76065         Define with prototype.
76066         * lib/getopt1.c (const): Remove macro.
76067         (getopt_long, getopt_long_only, main): Define with prototype.
76068
76069         * lib/getugroups.c: Include <string.h> unconditionally.
76070
76071         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76072         (getusershell, setusershell, endusershell, readname, main):
76073         Define with prototypes.
76074
76075         * lib/group-member.c: Include group-member.h first.
76076         Include <stdlib.h> unconditionally.
76077
76078         * lib/hard-locale.c: Include hard-locale.h first.
76079         Include <stdlib.h>, <string.h> unconditionally.
76080
76081         * lib/hash.c (free, malloc): Remove decls.
76082         Include <stdlib.h> unconditionally.
76083
76084         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76085         (getenv): Do not declare.
76086
76087         * lib/idcache.c: Include <string.h> unconditionally.
76088
76089         * lib/long-options.c: Include long-options.h first, to test interface.
76090         Include <stdlib.h> unconditionally.
76091
76092         * lib/makepath.c: Include makepath.h first, to test interface.
76093         Include <stdlib.h> and <string.h> unconditionally.
76094
76095         * lib/linebuffer.c: Include <stdlib.h>.
76096         (free): Remove decl.
76097
76098         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76099         stddef.h. rpl_malloc returns void *, not char *.
76100         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76101         prototype.
76102
76103         * lib/md5.h: Include <limits.h> unconditionally.
76104         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76105         (__P): Remove; all uses removed.
76106         * lib/md5.c: Include "md5.h" first.
76107         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76108         md5_buffer, md5_process_bytes, md5_process_block):
76109         Define with prototypes.
76110         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76111         * lib/sha.c: Include "sha.h" first.
76112         Include <stdlib.h>, <string.h> unconditionally.
76113
76114         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76115         * lib/memcmp.c (__ptr_t): Likewise.
76116         * lib/memrchr.c (__ptr_t): Likewise.
76117         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76118         Include <string.h> unconditionally.
76119         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76120         * lib/memchr.c: Include <stdlib.h> unconditionally.
76121         * lib/memchr.c (LONG_MAX): Remove.
76122         * lib/memrchr.c (LONG_MAX): Likewise.
76123         * lib/memchr.c (__memchr): Define via a prototype.
76124         * lib/memrchr.c (__memrchr): Likewise.
76125         * lib/memcmp.c (__P): Remove, and remove all uses.
76126         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76127         Remove forward decls; no longer needed.
76128         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76129         Use types required by C89 in prototype.
76130
76131         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76132         * lib/savedir.c: Likewise.
76133         * lib/mkdir.c (free): Remove decl.
76134         * lib/rmdir.c (rmdir): Define with a prototype.
76135         * lib/savedir.c: Include savedir.h first, to test interface.
76136
76137         * lib/mktime.c (STDC_HEADERS): Remove.
76138         Include <stdlib.h>, <string.h> unconditionally.
76139
76140         * lib/modechange.c: Include <stdlib.h> unconditionally.
76141         (malloc): Remove decl.
76142
76143         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76144         (free): Remove decl.
76145
76146         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76147         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76148         (This type really should be intptr_t, but that's a C99ism.)
76149         (_obstack_memcpy): Remove: all uses changed to memcpy.
76150         Include <string.h> unconditionally.
76151         (struct obstack): Assume __STDC__ for types of members
76152         chunkfun, freefun, extra_arg.
76153         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76154         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76155         obstack_begin, obstack_specify_allocation,
76156         obstack_specify_allocation_with_arg, obstack_chunkfun,
76157         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76158         Remove unprototyped decls and the macros that use them.
76159         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76160         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76161         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76162         (defined __STDC__ && __STDC__)]:
76163         Remove nonprototyped code.
76164         Include <stdlib.h> unconditionally.
76165         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76166         _obstack_allocated_p, _obstack_free, obstack_free,
76167         _obstack_memory_used, print_and_abort):
76168         Define using prototypes.
76169         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76170         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76171         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76172         obstack_next_free, obstack_object_size, obstack_room) [0]:
76173         Remove unused, unprototyped code.
76174
76175         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76176
76177         * lib/physmem.c (physmem_total, physmem_available, main): Define
76178         with prototypes.
76179
76180         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76181         (main): Define with a prototype.
76182
76183         * lib/posixver.c (getenv): Remove decl.
76184
76185         * lib/putenv.c (malloc): Returns void *, not char *.
76186         Include <string.h> unconditionally.
76187         (strchr, memcpy, NULL): Do not define.
76188
76189         * lib/readtokens.c: Include readtokens.h first, to test interface.
76190         Include <stdlib.h>, <string.h> unconditionally.
76191         (init_tokenbuffer): Define with a prototype.
76192
76193         * lib/regex.c (PARAMS): Remove.  All uses removed.
76194         All uses of _RE_ARGS removed, too.
76195         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76196         unconditionally.
76197         (bzero): Assume memset exists.
76198         (memcmp, memcpy, NULL): Remove.
76199         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76200         char, or assignments to local vars of type signed char.
76201         (init_syntax_once, PREFIX(extract_number_and_incr),
76202         PREFIX(print_partial_compiled_pattern),
76203         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76204         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76205         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76206         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76207         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76208         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76209         wcs_compile_range, byte_compile_range, truncate_wchar,
76210         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76211         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76212         count_mbs_length, wcs_re_match_2_internal,
76213         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76214         PREFIX(alt_match_null_string_p),
76215         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76216         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76217         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76218         now-unnecessary declaration, if any.
76219         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76220         regcomp, regexec):
76221         Remove now-unnecessary casts among pointer types.
76222         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76223
76224         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76225         (free): Remove decl.
76226
76227         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76228
76229         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76230         (free): Remove decl.
76231
76232         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76233         * lib/xgetcwd.c: Likewise.
76234
76235         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76236         (free): Remove decl.
76237
76238         * lib/strchrnul.c (strchrnul): Define with a prototype.
76239         Fix bug: c_in was not converted to char before searching.
76240
76241         The following changes are not K&R related:
76242
76243         * lib/group-member.h: Include <sys/types.h>, so that this file is
76244         self-contained.
76245         * lib/makepath.h: Likewise.
76246
76247         * lib/getusershell.c (readname, default_index, line_size, readname):
76248         Use size_t, not int, for sizes.
76249         (readname): If the size overflows, report an error instead of
76250         looping forever.
76251
76252 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76253
76254         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76255         libc.
76256
76257 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76258
76259         * README: New section: portability guidelines.
76260
76261 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76262
76263         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76264         C89 spec.
76265
76266 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76267
76268         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76269
76270 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76271
76272         Assume C89 or better; remove K&R cruft.
76273         A few of these changes were first proposed by Derek Robert Price
76274         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76275
76276         * lib/addext.c: Include <string.h> unconditionally.
76277         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76278         Don't declare getenv or malloc.
76279
76280         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76281         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76282         (NULL): Remove.
76283         (find_stack_direction, alloca): Use prototypes.
76284
76285         * lib/atexit.c (atexit): Define using a prototype.
76286
76287         * lib/basename.c, dirname.c, stripslash.c:
76288         Include <string.h> unconditionally.
76289
76290         * lib/bcopy.c: Include <stddef.h>.
76291         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76292
76293         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76294
76295         * lib/error.h (error, error_at_line, error_print_progname)
76296         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76297         * lib/error.c: Include error.h first, to check interface.
76298         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76299         (VA_START): Remove; all uses changeed to va_start.
76300         (exit, strerror): Remove decls.
76301         (error_print_progname): Prototype uncondionally.
76302         Don't include <errno.h>; no longer needed.
76303         (private_strerror): Remove.
76304         (error_tail): Always define.
76305         (error, error_at_line): Assume C89 or better; always use prototypes.
76306         * lib/fatal.c: Include "fatal.h" first, to test interface.
76307         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76308         (VA_START): Remove; all uses changed to va_start.
76309         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76310         this case.
76311         (exit): Remove decl.
76312         (fatal): Prototype unconditionally.  Assume va_start works.
76313         Abort at end, to pacify gcc.
76314
76315         * lib/euidaccess.c (main): Define with a prototype.
76316
76317         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76318
76319         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76320
76321         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76322         prototypes.
76323         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76324         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76325         (getenv): Remove decl.
76326         (fnmatch): Define using a prototype.
76327         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76328         (FCT): Define using a prototype.
76329
76330         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76331
76332         * lib/gethostname.c: Include <stddef.h>.
76333         (gethostname): Define with prototype.  Length is size_t, not int.
76334
76335 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76336
76337         Assume C89 or better; remove K&R cruft.
76338         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76339         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76340         string.h, getenv, malloc.
76341         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76342         headers.
76343         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76344         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76345         do not check for strerror.
76346         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76347         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76348         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76349         do not check for doprnt or vprintf.
76350         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76351         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76352
76353 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76354
76355         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76356         getversion.c should have been removed then, but was accidentally
76357         preserved.
76358
76359         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76360         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76361
76362 2003-09-08  Karl Berry  <karl@gnu.org>
76363
76364         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76365                 config, forget about prep.
76366
76367         * config/depcomp, missing: update from automake.
76368
76369 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76370
76371         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76372         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76373
76374 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76375
76376         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76377         copy_tm_result.  Bug reported by Simon Josefsson in
76378         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76379
76380 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76381
76382         * m4/time_r.m4: New file.
76383         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76384         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76385         is. Check for timegm declaration.
76386         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76387         Do not check for gmtime_r.
76388         Replace mktime if __mktime_internal does not exist and if mktime
76389         hasn't been replaced already.
76390
76391 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76392
76393         * lib/time_r.c, lib/time_r.h: New files.
76394
76395         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76396         __localtime_r.
76397         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76398         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76399
76400         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76401         __gmtime_r.
76402         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76403         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76404         Include <time_r.h>.
76405
76406         * lib/timegm.c: Switch to glibc implementation, with the following
76407         changes:
76408         [defined HAVE_CONFIG_H]: Include <config.h>.
76409         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76410         (__mktime_internal) [!defined _LIBC]: New decl.
76411         (__gmtime_r) [!defined _LIBC]: New macro and function.
76412         (timegm): Use a prototype, since gnulib assumes C89.
76413         Do not bother declaring tmp to be const, as it's not really usefu.
76414         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76415         (timegm): Declare only if HAVE_DECL_TIMEGM.
76416
76417 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76418
76419         * MODULES.html.sh (func_all_modules): Add time_r.
76420         * modules/time_r: New file.
76421         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76422         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76423
76424 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76425
76426         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76427         Bug reported by Lute Kamstra in
76428         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76429
76430         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76431         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76432         course with correspondingly smaller numbers for tomorrow and
76433         yesterday.  From Tadayoshi Funaba.  Originally installed into
76434         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76435         coreutils merge?).
76436
76437 2003-08-31  Simon Josefsson  <jas@extundo.com>
76438
76439         * modules/timegm: New file.
76440         * MODULES.html.sh (func_all_modules): Add timegm.
76441
76442 2003-08-31  Simon Josefsson  <jas@extundo.com>
76443
76444         * m4/timegm.m4: New file.
76445
76446 2003-08-31  Simon Josefsson  <jas@extundo.com>
76447
76448         * lib/timegm.h: New file.
76449         * lib/timegm.c: New file.  Based on
76450         wget-1.8.2/src/http.c:mktime_from_utc.
76451
76452 2003-08-31  Karl Berry  <karl@gnu.org>
76453
76454         * lib/argp.h: update from libc.
76455
76456 2003-08-28  Bruno Haible  <bruno@clisp.org>
76457
76458         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
76459         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
76460         followed by '#define fnmatch fnmatch_posix' gives an error.
76461
76462 2003-08-28  Bruno Haible  <bruno@clisp.org>
76463
76464         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
76465         warning on QNX, which defines O_BINARY to 000000.
76466
76467 2003-08-27  Jim Meyering  <jim@meyering.net>
76468
76469         * m4/mkstemp.m4: Require that the system mkstemp be able to create
76470         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76471         would fail after 32.  Reported by Danny Levinson.  Details here:
76472         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76473
76474 2003-08-24  Bruno Haible  <bruno@clisp.org>
76475
76476         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76477         MSVC7 <stdio.h> is included later.
76478
76479 2003-08-22  Simon Josefsson  <jas@extundo.com>
76480
76481         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76482
76483 2003-08-20  Karl Berry  <karl@gnu.org>
76484
76485         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76486
76487 2003-08-20  Bruno Haible  <bruno@clisp.org>
76488
76489         * modules/progname: New file.
76490         * MODULES.html.sh (func_all_modules): Add progname.
76491
76492 2003-08-20  Bruno Haible  <bruno@clisp.org>
76493
76494         * lib/progname.h: New file, from GNU gettext.
76495         * lib/progname.c: New file, from GNU gettext.
76496         * lib/progreloc.c: New file, from GNU gettext.
76497
76498 2003-08-19  Jim Meyering  <jim@meyering.net>
76499
76500         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76501         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76502
76503 2003-08-19  Bruno Haible  <bruno@clisp.org>
76504
76505         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76506         more.
76507
76508 2003-08-19  Bruno Haible  <bruno@clisp.org>
76509
76510         * lib/xstrdup.c: Assume <string.h> exists.
76511
76512 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76513
76514         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76515         in makefile rules.
76516
76517 2003-08-18  Jim Meyering  <jim@meyering.net>
76518
76519         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76520         * m4/lib-ld.m4: Likewise.
76521
76522 2003-08-18  Jim Meyering  <jim@meyering.net>
76523
76524         * lib/setenv.h: Indent nested cpp directive.
76525         * lib/vasnprintf.c: Remove trailing blanks.
76526
76527 2003-08-17  Simon Josefsson  <jas@extundo.com>
76528
76529         * modules/xstrndup: New file.
76530         * MODULES.html.sh (func_all_modules): Add xstrndup.
76531
76532 2003-08-17  Simon Josefsson  <jas@extundo.com>
76533
76534         * modules/argp: Fix autoconf macro name. Add more dependencies.
76535
76536 2003-08-17  Simon Josefsson  <jas@extundo.com>
76537
76538         * m4/xstrndup.m4: New file.
76539
76540 2003-08-17  Simon Josefsson  <jas@extundo.com>
76541
76542         * m4/argp.m4: New file.
76543
76544 2003-08-17  Simon Josefsson  <jas@extundo.com>
76545             Bruno Haible  <bruno@clisp.org>
76546
76547         * lib/xstrndup.h: New file.
76548         * lib/xstrndup.c: New file.
76549
76550 2003-08-17  Bruno Haible  <bruno@clisp.org>
76551
76552         * modules/strndup (Files, Include): Add lib/strndup.h.
76553
76554 2003-08-17  Bruno Haible  <bruno@clisp.org>
76555
76556         * modules/euidaccess (Files): Add lib/euidaccess.h.
76557
76558 2003-08-17  Bruno Haible  <bruno@clisp.org>
76559
76560         * lib/strndup.h: New file.
76561
76562 2003-08-17  Bruno Haible  <bruno@clisp.org>
76563
76564         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
76565         like AC_GNU_SOURCE.
76566         * modules/extensions (configure.ac): Comment out the invocation of
76567         gl_USE_SYSTEM_EXTENSIONS.
76568
76569 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76570
76571         Merges from coreutils, etc.
76572         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
76573         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
76574         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
76575         fixing a typo.
76576         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
76577         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
76578
76579 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76580
76581         Document merge from coreutils.
76582         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
76583         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
76584         * modules/utime: Add m4/utimes-null.m4.
76585
76586 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76587
76588         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
76589         space, undoing this 2003-08-12 change:
76590         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76591
76592 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76593
76594         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
76595         strtoul.c from libc, undoing this 2003-08-12 change:
76596         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76597
76598 2003-08-16  Jim Meyering  <jim@meyering.net>
76599
76600         Merges from coreutils.
76601         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
76602         prefix.  Adjust cache variables similarly.  Create 500 rather than
76603         just 300 files, to exercise bug on Darwin6.5, too.
76604         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
76605         $missing_dir.
76606         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
76607         AM_SYS_POSIX_TERMIOS.
76608         Reported by mkc@mathdogs.com.
76609         Also change use of $am_cv_sys_posix_termios
76610         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
76611         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
76612         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
76613         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
76614         in /proc/mounts until it finds one with matching device number.  This
76615         is unnecessary when the FILE argument *is* a mount point.  No stat call
76616         is necessary in that case.  So, disable the statvfs-testing code on
76617         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
76618         as RedHat bug# 84846.
76619         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76620         to 1MB, so as not to render systems with no stack size limit (e.g.,
76621         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76622         Include <unistd.h>.  On some systems,
76623         it is required for the definition of _SC_PAGESIZE.
76624
76625 2003-08-16  Jim Meyering  <jim@meyering.net>
76626
76627         Merge from coreutils.
76628         * lib/xstrtoimax.c: #else #if -> #elif.
76629         * lib/xstrtoumax.c: Likewise.
76630
76631 2003-08-16  Jim Meyering  <jim@meyering.net>
76632
76633         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
76634         * m4/utimes.m4: Removed.
76635         * m4/utimes-null.m4: Renamed from utimes.m4.
76636
76637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76638         to 1MB, so as not to render systems with no stack size limit (e.g.,
76639         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76640         Include <unistd.h>.  On some systems,
76641         it is required for the definition of _SC_PAGESIZE.
76642
76643 2003-08-16  Jim Meyering  <jim@meyering.net>
76644         and Paul Eggert  <eggert@cs.ucla.edu>
76645
76646         Merges from coreutils, etc.
76647
76648         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
76649         using the latest version from cvs.  This avoids problems with #line
76650         directives using a vendor (Sun) compiler.
76651         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
76652         Don't set GETGROUPS_LIB here; now it's
76653         done via getgroups.m4's wrapper function.
76654         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
76655         rather than just in sh-util/configure.in, so that the
76656         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
76657         same.
76658         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
76659         AC_FUNC_GETLOADAVG where to find getloadavg.c.
76660         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
76661         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
76662         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
76663         Remove code that is now done by the newly-required macros.
76664         Append $(EXEEXT) to DF_PROG.
76665         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
76666         Do not invoke or require the following here,
76667         since prereq.m4 or some gnulib .m4 now does this for us:
76668         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
76669         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
76670         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
76671         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
76672         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
76673         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
76674         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
76675         AC_FUNC_OBSTACK.
76676         Do not replace the following functions, as this is now the job
76677         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
76678         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
76679         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
76680         atexit getpass, strdup, getpagesize.
76681         Replace 'raise'.
76682         Do not check for the following functions, as this is now the job
76683         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
76684         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
76685         setregid.
76686         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
76687         Check for sys/sysctl.h.
76688         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
76689         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
76690         of checking for ssize_t ourselves.
76691
76692         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
76693         Require every macro that gnulib/modules/* suggests for us.
76694         (jm_PREREQ_ADDEXT): New macro.
76695         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
76696         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
76697
76698         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
76699         (gl_PHYSMEM): Use it.
76700         Also check for `table' function.
76701         Check for new headers and functions.
76702         Add check for sys/sysmp.h.
76703         With suggestions from Kaveh Ghazi.
76704         Ignore headers that are present but cannot be compiled.  This
76705         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
76706         C 5.4.
76707
76708 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76709
76710         Document merge from coreutils.
76711         * modules/userspec: Depend on posixver.
76712         * modules/strftime: Depend on tzset.
76713
76714 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76715
76716         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
76717         rather than tab, after '#' in shell-script copyright notices.
76718         Suggested by Bruno Haible.
76719
76720 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76721
76722         * config/srclist-update: Use three spaces, rather than tab, after '#'
76723         in shell-script copyright notices.  Suggested by Bruno Haible.
76724         Remove unnecessary parenthesization in regular expression.
76725
76726 2003-08-15  Jim Meyering  <jim@meyering.net>
76727
76728         Merge from coreutils.
76729         * lib/xgethostname.c: Include <stdlib.h>.
76730         (xghostname): Don't exit for anything other than memory-related
76731         failure; just return NULL.
76732         * lib/userspec.c: Include "posixver.h".
76733         (parse_user_spec): Accept `.' as a separator only
76734         in pre-POSIX-200112 mode.
76735         * lib/strtoimax.c: Use #elif rather than #else #if.
76736         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
76737         Remove function, now that we can rely on a working tzset function.
76738         [!_LIBC]: Ensure that the required autoconf test has been run.
76739         [!defined _NL_CURRENT && HAVE_STRFTIME]:
76740         Use underlying_strftime for %r.
76741         * lib/sha.c: Merge in some clean-up and optimization changes from
76742         glibc.
76743         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
76744         Ensure that it is a multiple of 64.
76745         Rearrange loop exit tests so as to avoid performing an
76746         additional fread after encountering an error or EOF.
76747         * lib/realloc.c: Update copyright date.
76748
76749 2003-08-15  Jim Meyering  <jim@meyering.net>
76750         and Paul Eggert  <eggert@twinsun.com>
76751
76752         Merge from coreutils.
76753         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
76754         member but strut utmpx does not.  Needed for AIX 4.3.3.
76755         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
76756
76757 2003-08-15  Jim Meyering  <jim@meyering.net>
76758         and Paul Eggert  <eggert@cs.ucla.edu>
76759
76760         Merges from coreutils, etc.
76761         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
76762         Require gl_FUNC_TZSET_CLOBBER.
76763         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
76764         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
76765         members.
76766
76767 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76768
76769         Help the merge from coreutils.
76770         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
76771         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
76772         * m4/tzset.m4: Use it too.
76773
76774 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76775
76776         * modules/tzset: New file.
76777
76778 2003-08-14  Jim Meyering  <jim@meyering.net>
76779
76780         Merges from coreutils.
76781         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
76782         variable names, rather than @FNMATCH_H@.
76783         * modules/alloca: Likewise for $(ALLOCA_H).
76784
76785         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
76786         the three copies of the literal target, `fnmatch.h'.
76787         * modules/alloca (alloca.h): Likewise.
76788
76789 2003-08-14  Jim Meyering  <jim@meyering.net>
76790
76791         Merge from coreutils.
76792         * m4/tzset.m4: New file.
76793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
76794         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
76795         otherwise, AIX 5.1 systems would end up using the latter.
76796         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
76797         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
76798         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
76799         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
76800
76801 2003-08-14  Jim Meyering  <jim@meyering.net>
76802
76803         Merge from coreutils.
76804         * lib/obstack.h: Whitespace changes.
76805         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
76806         and xcalloc return values.
76807         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
76808         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
76809         hang on OSF/1 5.1 for DIR on both local and remote file systems.
76810         Reported by (and fix confirmed by) Nelson H. F. Beebe.
76811         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76812         error from mntctl.
76813         Use mntctl's return value to drive the entry-processing loop, since
76814         we can't rely on the value of the vmt_length member in the last
76815         entry.  On some systems doing so could result in exhausting
76816         virtual memory.  Based in part on a patch from Mike Jetzer.
76817
76818 2003-08-14  Jim Meyering  <jim@meyering.net>
76819         and Paul Eggert  <eggert@twinsun.com>
76820
76821         Merges from coreutils, plus other fixes.
76822         * lib/physmem.c: Merge in portability changes from gcc/libiberty
76823         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
76824         for credits and details.  Thanks to Kaveh Ghazi for helping
76825         to keep these files in sync.
76826         (ARRAY_SIZE): Define it.
76827         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
76828         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
76829         (memcasecmp): Don't assume size_t fits in unsigned int.
76830         Remove casts and duplicate code.
76831         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
76832         (memcpy): Remove definition.
76833         Merge in some clean-up and optimization changes from glibc.
76834         [BLOCKSIZE]: Move definition to top of file.
76835         Ensure that it is a multiple of 64.
76836         Rearrange loop exit tests so as to avoid performing an
76837         additional fread after encountering an error or EOF.
76838         * lib/md5.h (md5_uintptr): Define.
76839         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
76840         return to the initial working directory.  Preserve errno
76841         for caller.
76842         * lib/idcache.c: Include "xalloc.h".
76843         (xmalloc, xrealloc): Remove decls.
76844         (getuser): Remove casts no longer required in C89.
76845         * lib/human.c: Include stdio.h, for sprintf.
76846         * lib/group-member.c: Include "xalloc.h".
76847         (xmalloc, xrealloc): Remove decls.
76848         (get_group_info): Remove casts no longer required in C89.
76849         * lib/getusershell.c (readname): Remove casts no longer required in
76850         C89.
76851         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
76852         * lib/getline.c: Whitespace fix, from coreutils.
76853
76854 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76855
76856         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
76857         Check for isascii.
76858
76859         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76860         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76861         Undo previous (whitespace-only) change.
76862
76863 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76864
76865         * lib/exclude.c: Include <ctype.h>
76866         (IN_CTYPE_DOMAIN): New macro.
76867         (is_space): New fn.
76868         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
76869         and empty lines.
76870
76871         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76872         Undo previous (whitespace-only) change.
76873
76874 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76875
76876         * config/srclist-update: Change update back to the old behavior,
76877         leaving whitespace alone.  Use one 'sed' command rather than a
76878         pipeline.
76879         (fixlicense): Now a variable, not a function.
76880         (remove_trailing_blanks): Remove.
76881         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
76882         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76883         Undo previous (whitespace-only) change.
76884
76885 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76886
76887         Merge from coreutils.
76888         * modules/euidaccess: Add lib_SOURCES, include for new
76889         file euidaccess.h
76890
76891 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76892
76893         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76894         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76895         Normalize leading white space and remove trailing white space.
76896
76897         Merge from coreutils
76898         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
76899
76900         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
76901         0.12.1.  These files are now being upgraded automatically by
76902         ../config/srclist-update.
76903
76904 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76905
76906         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76907         Normalize leading white space and remove trailing white space.
76908         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
76909         notice, as per ../config/srclist-update.
76910
76911         Merge from coreutils.
76912         * lib/euidaccess.h: New file.
76913         * lib/euidaccess.c: Include it.
76914         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
76915         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
76916         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
76917
76918 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76919
76920         * config/srclist-update: Add copyright notice.
76921         (remove_id_lines, remove_trailing_blanks): New constants.
76922         (fixfile): Use them to normalize spacing a bit in copied files.
76923         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76924         Normalize leading white space and remove trailing white space.
76925
76926         * config/texinfo.tex: Sync with texinfo.
76927
76928         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
76929         strtoul.c from libc, to merge coreutils whitespace changes.
76930
76931         * config/srclist.txt: Get the following m4 files from gettext:
76932         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
76933         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
76934         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
76935         wint_t.m4.
76936
76937 2003-08-12  Karl Berry  <karl@gnu.org>
76938
76939         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
76940         been made.
76941
76942 2003-08-11  Paul Eggert  <eggert@twinsun.com>
76943
76944         * modules/gnu-source, m4/gnu-source.m4:
76945         Remove; we're assuming Autoconf 2.54 or later now.
76946         Suggested by Bruno Haible.
76947         * MODULES.html.sh (func_all_modules): Remove gnu-source.
76948
76949 2003-08-11  Bruno Haible  <bruno@clisp.org>
76950
76951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
76952
76953 2003-08-11  Bruno Haible  <bruno@clisp.org>
76954
76955         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
76956         (vasnprintf): Use it instead of wcslen.
76957
76958 2003-08-11  Bruno Haible  <bruno@clisp.org>
76959
76960         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
76961         value to ensure that _Bool promotes to int. Use #define for _Bool when
76962         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
76963
76964 2003-08-10  Karl Berry  <karl@gnu.org>
76965
76966         * lib/regex.h: update from libc (whitespace fix).
76967
76968 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76969
76970         Merge some files from coreutils.  These changes were
76971         originally made by Jim Meyering.
76972         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
76973         many older Unixes require this.
76974         * lib/alloca.c (alloca): Remove cast to argument of free;
76975         no longer needed in C89.
76976         * lib/alloca_.h, regex.h: Fix white space to match
76977         what GNU indent does.
76978
76979 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76980
76981         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
76982         apparently Emacs's Unicode mode got confused before my 2003-08-05
76983         checkin.
76984
76985 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76986
76987         * m4/extensions.m4: New file.
76988         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
76989         Require gl_USE_SYSTEM_EXTENSIONS.
76990         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
76991         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
76992
76993 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76994
76995         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
76996         * modules/extensions, modules/gnu-source: New files.
76997         * modules/timespec, modules/unlocked-io: Depend on extensions.
76998
76999 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77000
77001         * modules/restrict: New file.
77002         * MODULES.html.sh (func_all_modules): Add restrict.
77003         * modules/regex: Depend on restrict.
77004
77005 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77006
77007         * m4/restrict.m4: New file.
77008         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77009
77010 2003-08-07  Bruno Haible  <bruno@clisp.org>
77011
77012         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77013         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77014
77015 2003-08-07  Bruno Haible  <bruno@clisp.org>
77016
77017         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77018         makes the module 'getndelim2' compatible with the module 'getline'.
77019
77020 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77021
77022         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77023         byte with "\201" to avoid glitches when editing that source file
77024         with multi-gnome-terminal.
77025
77026 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77027
77028         * lib/bumpalloc.h: Remove.
77029
77030 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77031
77032         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77033         * modules/bumpalloc: Remove.
77034
77035 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77036
77037         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77038         GNU coding style.
77039
77040         Merge from coreutils.
77041         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77042         1. From glibc.
77043         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77044         from Karl Berry, implemented by Jim Meyering.
77045         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77046         from Dmitry V. Levin.
77047         Remove anachronistic cast of xrealloc.
77048         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77049         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77050         type. Otherwise, it wouldn't compile with at least /bin/cc on
77051         ymp-cray-unicos9.0.2.X.
77052         Combine two mostly-identical uses of alloca into one.
77053         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77054
77055 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77056
77057         [From Emacs.]
77058
77059         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77060         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77061         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77062         obsolete NLIST_NAME_UNION.
77063         [__GNU__]: Undef BSD and FSCALE.
77064         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77065
77066 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77067
77068         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77069         an enum type, so that it's guaranteed to promote to int.  See:
77070         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77071
77072 2003-08-03  Karl Berry  <karl@gnu.org>
77073
77074         * config/depcomp: update from automake.
77075
77076 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77077
77078         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77079         (strerror): Don't assume that a printable int fits in 14 bytes.
77080
77081 2003-07-31  Bruno Haible  <bruno@clisp.org>
77082
77083         * modules/getpass-gnu: New file.
77084         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77085
77086 2003-07-31  Bruno Haible  <bruno@clisp.org>
77087
77088         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77089
77090 2003-07-24  Karl Berry  <karl@gnu.org>
77091
77092         * config/missing: update from automake.
77093
77094 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77095             Bruno Haible  <bruno@clisp.org>
77096
77097         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77098         * lib/getline.c (getline, getdelim): Likewise.
77099         Remove _GNU_SOURCE define; now it's defined in config.h through
77100         m4/getline.m4.
77101
77102 2003-07-23  Karl Berry  <karl@gnu.org>
77103
77104         * config/config.sub: update from prep.
77105
77106 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77107
77108         * modules/xalloc (Depends-on): Add exitfail.
77109         * modules/xmemcoll: Likewise.
77110
77111 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77112
77113         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77114         over-parenthesization in macros.
77115
77116         Sync with coreutils.
77117
77118         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77119         required by C99.
77120
77121         Use `exit_failure' for xalloc and xmemcoll instead of their own
77122         private exit-failure variables.
77123         * lib/xalloc.h (xalloc_exit_failure): Remove.
77124         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77125         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77126         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77127         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77128         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77129
77130 2003-07-20  Jim Meyering  <jim@meyering.net>
77131
77132         * modules/closeout (Depends-on): Add exitfail.
77133         Suggestion from Bruno Haible.
77134
77135 2003-07-19  Karl Berry  <karl@gnu.org>
77136
77137         * config/config.sub: update from prep.
77138
77139 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77140
77141         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77142         Remove.
77143         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77144         to test that it can stand by itself.  Include "exitfail.h".
77145         Clients should set exit_failure instead.
77146         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77147
77148 2003-07-18  Bruno Haible  <bruno@clisp.org>
77149
77150         * modules/getndelim2: New file.
77151         * modules/getline: Share files with module getndelim2.
77152         * modules/getnline: Depend on getndelim2 instead of sharing files with
77153         it. Add getnline.c to lib_SOURCES.
77154         * MODULES.html.sh (func_all_modules): Add getndelim2.
77155
77156 2003-07-18  Bruno Haible  <bruno@clisp.org>
77157
77158         * m4/getndelim2.m4: New file.
77159         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77160         invoke gl_PREREQ_GETNDELIM2.
77161         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77162         gl_PREREQ_GETNDELIM2.
77163         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77164         gl_GETNDELIM2.
77165
77166 2003-07-18  Bruno Haible  <bruno@clisp.org>
77167
77168         * lib/getndelim2.h: New file.
77169         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77170         getndelim2.h.
77171         (getndelim2): Make non-static. Change return type to ssize_t.
77172         * lib/getline.h: Change argument names.
77173         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77174         * lib/getnline.c: Include getndelim2.h.
77175
77176 2003-07-18  Andreas Schwab  <schwab@suse.de>
77177
77178         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77179
77180 2003-07-17  Karl Berry  <karl@gnu.org>
77181
77182         * config/config.sub: update from prep.
77183
77184 2003-07-17  Bruno Haible  <bruno@clisp.org>
77185
77186         * modules/getnline: New file.
77187         * modules/getline: Add lib/getndelim2.c to source file list.
77188         * MODULES.html.sh (func_all_modules): Add getnline.
77189
77190 2003-07-17  Bruno Haible  <bruno@clisp.org>
77191
77192         * m4/getnline.m4: New file.
77193
77194 2003-07-17  Bruno Haible  <bruno@clisp.org>
77195
77196         * m4/Makefile.am.in: Remove file.
77197         * m4/Makefile.am: Remove file.
77198         * m4/Makefile.in: Remove file.
77199
77200 2003-07-17  Bruno Haible  <bruno@clisp.org>
77201
77202         * lib/getnline.h: New file.
77203         * lib/getnline.c: New file.
77204         * lib/getndelim2.c: New file, extracted from getline.c.
77205         (getndelim2): Renamed from getdelim2, with added nmax argument.
77206         * lib/getline.c: Include getndelim2.c.
77207         (getdelim2): Moved out to getndelim2.c.
77208         (getline, getdelim): Update.
77209
77210 2003-07-17  Bruno Haible  <bruno@clisp.org>
77211
77212         * lib/Makefile.am: Remove file.
77213         * lib/Makefile.in: Remove file.
77214
77215 2003-07-17  Bruno Haible  <bruno@clisp.org>
77216
77217         * configure.in: Remove file.
77218         * Makefile.in: Remove file.
77219
77220 2003-07-17  Bruno Haible  <bruno@clisp.org>
77221
77222         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77223
77224 2003-07-16  Karl Berry  <karl@gnu.org>
77225
77226         * config/srclist-update: was running fixlicense twice, which caused
77227                 texinfo.tex to be nullified for some reason.  Simplify,
77228                 $gplsrc is no longer needed as far as I can see?
77229
77230 2003-07-16  Jim Meyering  <jim@meyering.net>
77231
77232         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77233
77234 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77235
77236         * config/srclist.txt: Get the following files from gettext-runtime/intl
77237         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77238         ref-del.sin.  From Bruno Haible.
77239         * config/srclist-update (fixfile): Change grep pattern again, since the
77240         previous fix didn't work (there was another trailing $).  Use
77241         '[$]' to escape the $s.
77242
77243 2003-07-15  Karl Berry  <karl@gnu.org>
77244
77245         * lib/vasnprintf.c: update from gettext.
77246
77247 2003-07-15  Karl Berry  <karl@gnu.org>
77248
77249         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77250         gets expanded when surrounded by '$'.
77251
77252 2003-07-15  Jim Meyering  <jim@meyering.net>
77253
77254         * modules/save-cwd: Don't depend on error.  From Derek Price.
77255
77256 2003-07-15  Jim Meyering  <jim@meyering.net>
77257
77258         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77259
77260 2003-07-14  Simon Josefsson  <jas@extundo.com>
77261
77262         * modules/mempcpy: New file.
77263         * MODULES.html.sh (func_all_modules): Add mempcpy.
77264
77265 2003-07-14  Simon Josefsson  <jas@extundo.com>
77266
77267         * m4/mempcpy.m4: New file.
77268
77269 2003-07-14  Simon Josefsson  <jas@extundo.com>
77270
77271         * lib/mempcpy.h: New file.
77272         * lib/mempcpy.c: New file.
77273
77274 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77275
77276         * modules/getdate, modules/posixtm: Depend on mktime.
77277
77278 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77279
77280         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77281         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77282         unicodeio.c, unicodeio.h, unlocked-io.h:
77283         Switch from LGPL to GPL.
77284
77285 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77286
77287         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77288         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77289         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77290         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77291         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77292         updated automatically by ../config/srclist-update.  This changes
77293         their license from LPGL to GPL.
77294
77295 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77296
77297         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77298         assumed to refer to the root of the most recent stable gettext version.
77299         * config/srclistvars.sh: Add defaults for eggert.
77300         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77301         Match "This program" as well as "The program".  This is needed
77302         for gettext.
77303
77304 2003-07-14  Jim Meyering  <jim@meyering.net>
77305
77306         Don't emit diagnostics.  Let callers do that.
77307         * lib/save-cwd.c: Don't include "error.h".
77308         (save_cwd): Don't call error.  Ensure that errno is valid
77309         when returning nonzero.
77310
77311         * lib/save-cwd.h (restore_cwd): Update prototype.
77312         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77313         Simplify.  Don't call error upon failure.  Let callers do that.
77314         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77315         when auditing is enabled.  But don't bother updating the #if.
77316
77317 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77318
77319         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77320         it breaks C++ compilation.
77321         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77322
77323 2003-07-10  Simon Josefsson  <jas@extundo.com>
77324
77325         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77326
77327 2003-07-10  Jim Meyering  <jim@meyering.net>
77328
77329         * m4/clock_time.m4: Remove trailing blank.
77330         * m4/intmax_t.m4: Likewise.
77331
77332 2003-07-10  Jim Meyering  <jim@meyering.net>
77333
77334         * lib/vasnprintf.c: Remove trailing blanks.
77335         Make cpp indentation consistent.
77336
77337 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77338
77339         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77340         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77341         Switch from LGPL to GPL.
77342
77343 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77344
77345         * config/srclist.txt: Sort sublists.  Add
77346         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77347         that differ from gnulib for one reason or another; we'd like this list
77348         to be smaller but for now let's document what we have.
77349
77350 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77351
77352         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77353         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77354         and sweeter "eval x=$x".
77355         * config/srclist.txt: Get lib/argp* from glibc.
77356
77357 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77358
77359         * lib/mktime.c: Fix some boundary cases and remove need for floating
77360         point.
77361
77362         Issue a compile-time diagnostic if time_t is floating point, or if
77363         two's complement arithmetic is not in effect, or if arithmetic
77364         right shift does not propagate the sign.  These assumptions were
77365         all in the original code but they weren't checked.
77366
77367         (TIME_T_MIDPOINT, verify): New macros.
77368         (__isleap): Remove; it has integer overflow problems.
77369         (leapyear): New function, without those problems.
77370         (ydhms_tm_diff): Remove; splitting into two parts.
77371         (ydhms_diff): New function, containing the arithmetic part of
77372         the old ydhms_tm_diff function.  Issue a compile-time
77373         diagnostic if we are not using C99 integer division.
77374         Avoid casts when possible.
77375         (guess_time_tm): New function, containing the checking part of
77376         the old ydhms_tm_diff function.  Return the new value, rather than
77377         the difference between it and the old.  Accept a new argument T
77378         so that *T specifies the old value.  Check for overflow in the result.
77379
77380         (__mktime_internal): Use a time_t offset, not a long int offset.
77381         This undoes the 2003-06-04 change, which is no longer needed now
77382         that we have better overflow checking.
77383         (localtime_offset): Likewise.
77384
77385         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77386         and long are 64-bit but int is only 32-bit.
77387         (ydhms_diff): Use long int to store year1 and yday1.
77388         Issue a compile-time diagnostic if long int is not wide enough.
77389
77390         (__mktime_internal): Use long int to store adjusted year and yday.
77391         Use plain C rather than preprocessor commands, if that doesn't
77392         affect efficiency.
77393         Check for overflow (and try to repair) after each probe
77394         rather than checking only at the very end.  This avoids some bugs
77395         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77396         does not equal GMT offset at maximum time).
77397         Use integer to check for overflow rather than floating point; this
77398         is more portable to non-IEEE hosts, and is a tad faster.
77399         When we detect that we are oscillating between two values,
77400         don't check whether tm_isdst has the requested value, since
77401         we already know the answer.  When tm_isdst has the wrong value,
77402         use a different heuristic to find the right one, based on the
77403         extreme values actually observed in practice in tz2003a,
77404         rather than the (overly optimistic) "previous 3 calendar quarters".
77405
77406         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77407         "T const" to accommodate glibc style.
77408         (check_result): Use less-confusing report format.  "long" -> "long int.
77409         (main): Likewise.
77410         Don't loop if the iteration overflows time_t.
77411         Allow a negative step in the iteration.
77412
77413 2003-07-06  Karl Berry  <karl@gnu.org>
77414
77415         * config/depcomp: update from automake.
77416         * config/config.sub: update from prep.
77417
77418 2003-07-03  Karl Berry  <karl@gnu.org>
77419
77420         * config/config.guess: update from prep.
77421
77422 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77423
77424         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77425         xreadlink.c now includes it unconditionally.
77426
77427 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77428
77429         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77430         having it depend on HAVE_SYS_TYPES_H.
77431
77432 2003-07-01  Bruno Haible  <bruno@clisp.org>
77433
77434         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77435         <sys/types.h> should be sufficient.
77436         Reported by Paul Eggert.
77437
77438 2003-06-26  Karl Berry  <karl@gnu.org>
77439
77440         * config/depcomp: update from automake.
77441
77442 2003-06-26  Bruno Haible  <bruno@clisp.org>
77443
77444         * modules/human: Depend on module stdbool.
77445
77446 2003-06-25  Bruno Haible  <bruno@clisp.org>
77447
77448         * modules/readlink: New file.
77449         * modules/xreadlink: Depend on it.
77450         * MODULES.html.sh (func_all_modules): Add readlink.
77451
77452 2003-06-25  Bruno Haible  <bruno@clisp.org>
77453
77454         * m4/readlink.m4: New file.
77455
77456 2003-06-25  Bruno Haible  <bruno@clisp.org>
77457
77458         * lib/readlink.c: New file.
77459
77460 2003-06-22  Karl Berry  <karl@gnu.org>
77461
77462         * config/srclist.txt: update mkinstalldirs from automake.
77463         * config/mkinstalldirs: update.
77464
77465 2003-06-22  Bruno Haible  <bruno@clisp.org>
77466
77467         Portability to mingw32.
77468         * m4/ssize_t.m4: New file, from GNU gettext.
77469         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
77470         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77471
77472 2003-06-22  Bruno Haible  <bruno@clisp.org>
77473
77474         * modules/safe-read: Add m4/ssize_t.m4.
77475         * modules/xreadlink: Add m4/ssize_t.m4.
77476
77477 2003-06-20  Bruno Haible  <bruno@clisp.org>
77478
77479         Assume C89, so PARAMS isn't needed.
77480         * lib/unicodeio.h (PARAMS): Remove.
77481         * lib/unicodeio.c: Don't use PARAMS.
77482
77483 2003-06-18  Karl Berry  <karl@gnu.org>
77484
77485         * config/config.{guess,sub}: update from prep.
77486
77487 2003-06-18  Jim Meyering  <jim@meyering.net>
77488
77489         Merge changes from coreutils.
77490         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77491         Remove explicit declarations of xmalloc and realloc.
77492         Include xalloc.h.
77493         (read_utmp): Remove anachronistic cast of xmalloc.
77494
77495 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77496
77497         Assume C89, so PARAMS isn't needed.
77498         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77499         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77500         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77501         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77502         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77503         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77504         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77505         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77506         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77507         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77508         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77509         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77510         no longer needed. Anyway, config.h should always be included before any
77511         other file.
77512
77513 2003-06-11  Simon Josefsson  <jas@extundo.com>
77514
77515         * modules/sysexits: New file.
77516         * MODULES.html.sh (func_all_modules): Add sysexits.
77517
77518 2003-06-11  Simon Josefsson  <jas@extundo.com>
77519
77520         * lib/sysexit_.h: New file.
77521
77522 2003-06-11  Derek Price  <derek@ximbiot.com>
77523
77524         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77525         necessary.
77526
77527 2003-06-11  Bruno Haible  <bruno@clisp.org>
77528
77529         * m4/sysexits.m4: New file.
77530
77531 2003-06-10  Simon Josefsson  <jas@extundo.com>
77532
77533         * lib/argp.h: New file, from glibc.
77534         * lib/argp-ba.c: New file, from glibc.
77535         * lib/argp-eexst.c: New file, from glibc.
77536         * lib/argp-fmtstream.c: New file, from glibc.
77537         * lib/argp-fmtstream.h: New file, from glibc.
77538         * lib/argp-fs-xinl.c: New file, from glibc.
77539         * lib/argp-help.c: New file, from glibc.
77540         * lib/argp-namefrob.h: New file, from glibc.
77541         * lib/argp-parse.c: New file, from glibc.
77542         * lib/argp-pv.c: New file, from glibc.
77543         * lib/argp-pvh.c: New file, from glibc.
77544         * lib/argp-xinl.c: New file, from glibc.
77545
77546 2003-06-10  Simon Josefsson  <jas@extundo.com>
77547
77548         * modules/strchrnul: New file.
77549
77550 2003-06-10  Simon Josefsson  <jas@extundo.com>
77551
77552         * modules/argp: New file.
77553
77554 2003-06-10  Simon Josefsson  <jas@extundo.com>
77555
77556         * m4/strchrnul.m4: New file.
77557
77558 2003-06-10  Simon Josefsson  <jas@extundo.com>
77559
77560         * lib/strchrnul.h: New file.
77561         * lib/strchrnul.c: New file.
77562
77563 2003-06-10  Bruno Haible  <bruno@clisp.org>
77564
77565         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
77566
77567 2003-06-07  Karl Berry  <karl@gnu.org>
77568
77569         * config/config.{guess,sub}: update from prep.
77570
77571 2003-06-07  Jim Meyering  <jim@meyering.net>
77572
77573         * modules/strtod: Use $(...) notation, not @...@ for
77574         AC_REPLACE'd variables.
77575         * modules/localcharset: Likewise.
77576
77577 2003-06-07  Jim Meyering  <jim@meyering.net>
77578
77579         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
77580         in place of my name in the copyright comment.
77581         Remove definition and uses of __P.
77582
77583         From coreutils.
77584         * lib/stat.c: Don't declare xmalloc explicitly.
77585         Instead, include "xalloc.h".
77586         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
77587         xrealloc, and xcalloc return values.
77588         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
77589         Improve comment.
77590         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
77591
77592 2003-06-07  Bruno Haible  <bruno@clisp.org>
77593
77594         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
77595         avoid AC_CONFIG_LINKS.
77596         * modules/fnmatch (Makefile.am): Use explicit creation rule for
77597         fnmatch.h, to avoid AC_CONFIG_LINKS.
77598         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
77599
77600 2003-06-07  Bruno Haible  <bruno@clisp.org>
77601
77602         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
77603         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
77604         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77605         directory.
77606         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
77607         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77608         directory.
77609
77610 2003-06-06  Jim Meyering  <jim@meyering.net>
77611
77612         Merge from coreutils.
77613         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
77614         Consolidate declarations and initializations of *_base* locals.
77615
77616         Merge from coreutils.
77617         This avoids a core dump on systems without GNU putenv,
77618         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
77619         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
77620         (unsetenv): New static function, from GNU libc.
77621         (rpl_putenv): Use it.
77622
77623         * lib/modechange.c: Remove trailing blanks.
77624
77625         Merge from coreutils.
77626         * lib/fsusage.c: Remove declaration of statfs.
77627         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
77628
77629         * lib/posixtm.c: Include <stdbool.h> unconditionally.
77630
77631 2003-06-06  Jim Meyering  <jim@meyering.net>
77632
77633         * lib/stdbool_.h: Renamed from stdbool.h.in.
77634
77635 2003-06-06  Jim Meyering  <jim@meyering.net>
77636             Bruno Haible  <bruno@clisp.org>
77637
77638         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
77639         Adjust Makefile.am snippet not to redirect directly to target.
77640         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
77641
77642 2003-06-05  Paul Eggert  <eggert@twinsun.com>
77643
77644         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
77645         mismatch, look in future quarters as well as past.  This fixes a
77646         bug when processing fall-backwards gaps immediately after a long
77647         period of daylight-saving time.
77648
77649         * lib/mktime.c: Assume freestanding C89 or better.
77650         (HAVE_LIMITS_H): Remove.  Assume it's 1.
77651         (__P): Remove; not used.
77652         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
77653         (mktime, not_equal_tm, print_tm, check_result,
77654         main): Use prototypes.  Use const * where appropriate.
77655         (main): Fix typo in testing code that uncovered by above changes.
77656         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
77657
77658 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77659
77660         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
77661         locale.h, localeconv.  This merges changes from coreutils.
77662
77663         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
77664         It can be removed after the next Autoconf is released.
77665         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
77666         needed.
77667
77668 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77669
77670         * lib/mktime.c: Fix Debian bug 177940
77671         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
77672         (localtime_offset): Now long int, not time_t, because we want it
77673         to be guaranteed to be signed.  All uses changed.
77674         (__mktime_internal): If overflow would occur when adding offset,
77675         don't add it.
77676
77677         Merge 'human' changes from coreutils.  Rewrite to support
77678         locale-specific notations like thousands separators.
77679         * lib/human.c: Simplify authorship notice.
77680         Include human.h immediately after config.h.
77681         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
77682         <limits.h>: Do not include, since human.h does.
77683         (SIZE_MAX, UINTMAX_MAX): New macros.
77684         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
77685         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
77686         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
77687         (power_letter): Renamed from suffixes.
77688         (generate_suffix_backwards): Remove.
77689         (adjust_value): Now takes int style (because of human.h changes)
77690         and long double value (for greater precision on some platforms).
77691         (group_number): New function.
77692         (human_readable): Use it.  Use integer options, not enum.
77693         Put the options before the sizes in the arg list.
77694         Support all the new options.
77695         The old human_readable function has been removed;
77696         use inttostr.h instead.
77697         (human_readable, default_block_size, humblock):
77698         Use uintmax_t, not int, for block sizes.
77699         (human_readable_inexact, block_size_types): Remove.
77700         (block_size_opts): New constant.
77701         (human_options): Renamed from human_block_size, with new signature
77702         that allows block sizes up to UINTMAX_MAX.  All callers changed.
77703         * lib/human.h: Add copyright and authorship notice.
77704         Include <limits.h> and <stdbool.h> unconditionally.
77705         (PARAMS): Remove.  All uses removed.
77706         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
77707         (enum human_inexact_style): Remove tag; now a nameless enum.
77708         (human_floor, human_ceiling, human_round_to_even): Now have
77709         values 2, 0, 1 rather than -1, 1, 0.
77710         (human_group_digits, human_suppress_point_zero, human_autoscale,
77711         human_base_1024, human_SI, human_B): New constants.
77712         (human_readable_inexact, human_block_size): Remove.
77713         (human_readable): Size args are now uintmax_t, not int.
77714         (human_options): New decl.
77715
77716         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
77717         unnecessary now that we assume C89 or better.  This change
77718         imported from coreutils.
77719
77720         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77721         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
77722         in the 2003-05-30 sync from glibc.
77723
77724         .h files should stand alone, but we shouldn't include <sys/types.h>
77725         if we can get away with just <stddef.h>.
77726
77727         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
77728         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
77729         rather than <sys/types.h>, as we merely need size_t.
77730         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
77731         to get size_t.
77732         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
77733         Include <stdio.h>, to get FILE.
77734         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
77735         memcasecmp.h has included <stddef.h> and all we need is size_t.
77736         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
77737         our interface, instead of including <sys/types.h>
77738
77739 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77740
77741         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
77742         now, as glibc mktime is buggy on non-glibc systems.
77743
77744 2003-06-03  Karl Berry  <karl@gnu.org>
77745
77746         * config/config.sub: update from prep.
77747
77748 2003-06-02  Paul Eggert  <eggert@twinsun.com>
77749
77750         [from coreutils]
77751         Fix some minor time-related bugs with POSIX time arguments.
77752         Some valid time stamps were being rejected (notably -1, and
77753         time stamps before 1900 on 64-bit hosts).  And some invalid
77754         time stamps were being accepted, e.g. September 31.
77755
77756         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
77757         that we can return (time_t) -1 successfully.
77758         * lib/posixtm.c: Likewise.
77759         [HAVE_STDBOOL_H]: Include <stdbool.h>.
77760         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
77761         (t): Remove static var.
77762         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
77763         of static var.  All uses changed.
77764         (year): Do not reject years before 1900; they can occur with
77765         64-bit time_t.
77766         (posix_time_parse): Do not check for out-of-range components;
77767         that is now the caller's responsibility, since our checks were
77768         only approximations.
77769         (posixtime): Use mktime to check for out-of-range components,
77770         since it knows them exactly.
77771         If mktime returns (time_t) -1, check whether an error actually occurred
77772         by invoking localtime on -1.
77773         (main) [TEST_POSIXTIME]: Check for input data errors, and report
77774         posixtime failures better.
77775         Improve the test data (in comments only).
77776
77777 2003-06-02  Karl Berry  <karl@gnu.org>
77778
77779         * config/mkinstalldirs (version): new variable.
77780         (--version): new option.
77781         (usage): improve message.
77782
77783 2003-05-30  Karl Berry  <karl@gnu.org>
77784
77785         * lib/mktime.c: update from libc.
77786
77787 2003-05-30  Bruno Haible  <bruno@clisp.org>
77788
77789         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
77790         * config/config.rpath: Upgrade to gettext-0.12.1.
77791
77792 2003-05-30  Bruno Haible  <bruno@clisp.org>
77793
77794         * m4/gettext.m4: Upgrade to gettext-0.12.1.
77795         * m4/nls.m4: New file, from gettext-0.12.1.
77796         * m4/po.m4: New file, from gettext-0.12.1.
77797         * m4/progtest.m4: Upgrade to gettext-0.12.1.
77798
77799 2003-05-30  Bruno Haible  <bruno@clisp.org>
77800
77801         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
77802         * lib/localcharset.h: Likewise.
77803         * lib/localcharset.c: Likewise.
77804
77805 2003-05-29  Karl Berry  <karl@gnu.org>
77806
77807         * config/config.rpath: update from gettext.
77808
77809 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77810
77811         Assume the headers required for C89 freestanding compilers.
77812         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
77813         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
77814         * m4/human.m4 (gl_HUMAN): Likewise.
77815         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
77816         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
77817         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77818         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
77819         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77820         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
77821
77822 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77823
77824         Assume the headers required for C89 freestanding compilers.
77825         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
77826         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
77827         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
77828         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
77829         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
77830         define, since <limits.h> is guaranteed to do that.
77831         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
77832         * lib/exclude.c: Include <stdbool.h> unconditionally.
77833         * lib/tempname.c: Include <stddef.h> unconditionally.
77834         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
77835         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
77836         <stddef.h> does that.
77837         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
77838         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
77839         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
77840         needed.
77841         * lib/xstrtol.c: Likewise.
77842         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
77843         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
77844
77845         * lib/addext.c (addext): Use assignment rather than cast, to avoid
77846         warnings on some platforms.
77847
77848         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77849         arbitrarily.
77850
77851 2003-05-26  Jim Meyering  <jim@meyering.net>
77852
77853         Merge in a change from coreutils:
77854         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
77855         that is guaranteed to be `no'.  Use `no_such_member' to indicate
77856         that condition, rather than `-1' which is slightly misleading.
77857         Change the name of the cache variable to have the gl_ prefix.
77858         Prompted by a patch from Richard Dawe for DJGPP.
77859
77860 2003-05-24  Karl Berry  <karl@gnu.org>
77861
77862         * config/config.guess: update from prep.
77863
77864 2003-05-22  Karl Berry  <karl@gnu.org>
77865
77866         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
77867
77868 2003-05-20  Karl Berry  <karl@gnu.org>
77869
77870         * config/config.guess: update from prep.
77871
77872 2003-05-18  Karl Berry  <karl@gnu.org>
77873
77874         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
77875         might actually be set by the user.
77876
77877         * config/depcomp, install-sh, mdate-sh: update from automake.
77878
77879 2003-05-17  Bruno Haible  <bruno@clisp.org>
77880
77881         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
77882         invalid expansion for AC_EGREP_CPP.
77883         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
77884         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
77885         Suggested by Akim Demaille <akim@epita.fr> in
77886         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
77887
77888 2003-05-12  Jim Meyering  <jim@meyering.net>
77889
77890         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
77891         the space-padded-by-default conversion specifiers, %e, %k, %l.
77892
77893 2003-05-12  Bruno Haible  <bruno@clisp.org>
77894
77895         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
77896         the string is longer than 4 KB.
77897
77898 2003-05-11  Karl Berry  <karl@gnu.org>
77899
77900         * config/config.{guess,sub}: update from prep.
77901
77902 2003-05-09  Bruno Haible  <bruno@clisp.org>
77903
77904         * modules/error: Add m4/strerror_r.m4 to file list.
77905
77906 2003-05-03  Bruno Haible  <bruno@clisp.org>
77907
77908         Upgrade to Unicode-4.0.
77909         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
77910         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
77911         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
77912         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
77913         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
77914         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
77915         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
77916         Change width of U+E0100..U+E01EF from 1 to 0.
77917
77918 2003-04-25  Jim Meyering  <jim@meyering.net>
77919
77920         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
77921         of type size_t, not int.
77922
77923 2003-04-25  Bruno Haible  <bruno@clisp.org>
77924
77925         * lib/copy-file.c: Include <stddef.h>, for size_t.
77926
77927 2003-04-21  Paul Eggert  <eggert@twinsun.com>
77928
77929         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
77930         code which expansion is under static control.  Patch imported from
77931         Akim Demaille's patch to Bison; see
77932         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
77933
77934 2003-04-14  Bruno Haible  <bruno@clisp.org>
77935
77936         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
77937
77938 2003-04-11  Jim Meyering  <jim@meyering.net>
77939
77940         Merge changes from Coreutils.
77941
77942         2003-03-22  Jim Meyering  <jim@meyering.net>
77943
77944         * lib/strftime.c (widen): Cast alloca return value to proper type.
77945
77946         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
77947
77948         From GNU libc.
77949         * lib/strftime.c (my_strftime): Handle very large width
77950         specifications for numeric values correctly.  Improve checks for
77951         overflow.
77952
77953         2003-01-19  Jim Meyering  <jim@meyering.net>
77954
77955         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
77956         definitions.
77957         (nl_get_alt_digit) [! defined my_strftime]: Define.
77958         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
77959         _nl_get_alt_digit and _nl_get_walt_digit.
77960
77961         * lib/strftime.c (my_strftime): Merge in locale-related changes from
77962         libc. These changes have no effect outside of _LIBC.
77963
77964 2003-04-10  Bruno Haible  <bruno@clisp.org>
77965
77966         * modules/findprog: New file.
77967         * MODULES.html.sh (func_all_modules): Add it.
77968
77969 2003-04-10  Bruno Haible  <bruno@clisp.org>
77970
77971         * m4/findprog.m4: New file.
77972         * m4/eaccess.m4: New file.
77973
77974 2003-04-10  Bruno Haible  <bruno@clisp.org>
77975
77976         * lib/findprog.h: New file, from GNU gettext.
77977         * lib/findprog.c: New file, from GNU gettext.
77978
77979 2003-04-05  Jim Meyering  <jim@meyering.net>
77980
77981         Merge changes from Coreutils.
77982
77983         * lib/exclude.h (PARAMS): Remove definition and uses.
77984         * lib/exclude.c: Remove uses of `PARAMS'.
77985
77986         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
77987         Add test-cases for DOS filenames. Declare program_name.
77988         (main): Set up program_name.  Patch by Rich Dawe.
77989
77990         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77991         error from mntctl.
77992         Use mntctl's return value to drive the entry-processing loop, since
77993         we can't rely on the value of the vmt_length member in the last
77994         entry.  On some systems doing so could result in exhausting
77995         virtual memory.  Based in part on a patch from Mike Jetzer.
77996
77997 2003-04-04  Bruno Haible  <bruno@clisp.org>
77998
77999         * modules/linebreak: New file.
78000         * MODULES.html.sh (func_all_modules): Add it.
78001
78002 2003-04-04  Bruno Haible  <bruno@clisp.org>
78003
78004         * m4/linebreak.m4: New file.
78005
78006 2003-04-04  Bruno Haible  <bruno@clisp.org>
78007
78008         * lib/linebreak.h: New file, from GNU gettext.
78009         * lib/linebreak.c: New file, from GNU gettext with slight
78010         modifications.
78011         * lib/lbrkprop.h: New file, from GNU gettext.
78012
78013 2003-04-03  Bruno Haible  <bruno@clisp.org>
78014
78015         * modules/utf8-ucs4: New file.
78016         * modules/utf16-ucs4: New file.
78017         * modules/ucs4-utf8: New file.
78018         * modules/ucs4-utf16: New file.
78019         * MODULES.html.sh (func_all_modules): Add them.
78020
78021 2003-04-03  Bruno Haible  <bruno@clisp.org>
78022
78023         * m4/utf-ucs4.m4: New file.
78024         * m4/ucs4-utf.m4: New file.
78025
78026 2003-04-03  Bruno Haible  <bruno@clisp.org>
78027
78028         * lib/utf8-ucs4.h: New file, from GNU gettext.
78029         * lib/utf16-ucs4.h: New file, from GNU gettext.
78030         * lib/ucs4-utf8.h: New file, from GNU gettext.
78031         * lib/ucs4-utf16.h: New file, from GNU gettext.
78032
78033 2003-04-02  Bruno Haible  <bruno@clisp.org>
78034
78035         * modules/binary-io: New file.
78036         * MODULES.html.sh (func_all_modules): Add it.
78037
78038 2003-04-02  Bruno Haible  <bruno@clisp.org>
78039
78040         * lib/binary-io.h: New file, from GNU gettext.
78041
78042 2003-04-01  Bruno Haible  <bruno@clisp.org>
78043
78044         * modules/pathname: New file.
78045         * MODULES.html.sh (func_all_modules): Add it.
78046
78047 2003-04-01  Bruno Haible  <bruno@clisp.org>
78048
78049         * lib/pathname.h: New file, from GNU gettext.
78050         * lib/concatpath.c: New file, from GNU gettext.
78051
78052 2003-03-30  Bruno Haible  <bruno@clisp.org>
78053
78054         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78055
78056 2003-03-30  Bruno Haible  <bruno@clisp.org>
78057
78058         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78059         function chown() doesn't exist.
78060
78061 2003-03-28  Bruno Haible  <bruno@clisp.org>
78062
78063         * modules/copy-file: New file.
78064         * MODULES.html.sh (func_all_modules): Add it.
78065
78066 2003-03-28  Bruno Haible  <bruno@clisp.org>
78067
78068         * m4/copy-file.m4: New file.
78069
78070 2003-03-28  Bruno Haible  <bruno@clisp.org>
78071
78072         * lib/copy-file.h: New file, from GNU gettext.
78073         * lib/copy-file.c: New file, from GNU gettext.
78074
78075 2003-03-18  Jim Meyering  <jim@meyering.net>
78076
78077         * lib/quote.c (quote_n): Fix typo in comment.
78078
78079 2003-03-18  Bruno Haible  <bruno@clisp.org>
78080
78081         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78082         checking.
78083         * m4/onceonly_2_57.m4: Likewise.
78084
78085 2003-03-17  Bruno Haible  <bruno@clisp.org>
78086
78087         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78088         (m4_quote): Remove macro.
78089         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78090
78091 2003-03-14  Jim Meyering  <jim@meyering.net>
78092
78093         Merge changes from Coreutils.
78094         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78095         to be const, in order to avoid warnings.
78096         (obstack_room): Likewise.
78097         (obstack_empty_p): Likewise.
78098
78099 2003-03-14  Bruno Haible  <bruno@clisp.org>
78100
78101         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78102         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78103
78104 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78105
78106         Merge changes from Bison.
78107         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78108         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78109         when compiling Bison 1.875's `bitset bset = obstack_alloc
78110         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78111         * lib/hash.c: Include <stdbool.h> unconditionally.
78112
78113 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78114
78115         * m4/onceonly.m4 (m4_quote): New macro.
78116         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78117         Quote AC_FOREACH variable-expansions properly.
78118
78119 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78120
78121         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78122
78123 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78124
78125         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78126         Reported by Bruce Becker; see:
78127         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78128
78129 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78130             Bruno Haible  <bruno@clisp.org>
78131
78132         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78133         Reported by John Hughes, see
78134         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78135
78136 2003-02-20  Bruno Haible  <bruno@clisp.org>
78137
78138         * MODULES.html.sh (func_all_modules): Add poll.
78139
78140 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78141
78142         * modules/poll: New file.
78143
78144 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78145
78146         * lib/poll_.h: New file.
78147         * lib/poll.c: New file.
78148
78149 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78150
78151         * m4/poll.m4: New file.
78152
78153 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78154
78155         * modules/mathl: New file.
78156
78157 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78158
78159         * lib/mathl.h: New file.
78160         * lib/acosl.c: New file.
78161         * lib/asinl.c: New file.
78162         * lib/atanl.c: New file.
78163         * lib/ceill.c: New file.
78164         * lib/cosl.c: New file.
78165         * lib/expl.c: New file.
78166         * lib/floorl.c: New file.
78167         * lib/frexpl.c: New file.
78168         * lib/ldexpl.c: New file.
78169         * lib/logl.c: New file.
78170         * lib/sincosl.c: New file.
78171         * lib/sinl.c: New file.
78172         * lib/sqrtl.c: New file.
78173         * lib/tanl.c: New file.
78174         * lib/trigl.c: New file.
78175         * lib/trigl.h: New file.
78176
78177 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78178
78179         * m4/mathl.m4: New file.
78180
78181 2003-02-18  Bruno Haible  <bruno@clisp.org>
78182
78183         * MODULES.html.sh (func_all_modules): Add mathl.
78184
78185 2003-02-17  Bruno Haible  <bruno@clisp.org>
78186
78187         * modules/mkdtemp: New module.
78188         * MODULES.html.sh (func_all_modules): Add it.
78189
78190 2003-02-17  Bruno Haible  <bruno@clisp.org>
78191
78192         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78193
78194 2003-02-17  Bruno Haible  <bruno@clisp.org>
78195
78196         * lib/mkdtemp.h: New file, from GNU gettext.
78197         * lib/mkdtemp.c: New file, from GNU gettext.
78198
78199 2003-02-02  Jim Meyering  <jim@meyering.net>
78200
78201         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78202         e.g. glibc-2.2.93.
78203
78204 2003-01-31  Bruno Haible  <bruno@clisp.org>
78205
78206         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78207         'rpl_rename'.
78208         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78209         'rpl_strnlen'.
78210         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78211         'rpl_strtod'.
78212         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78213         'rpl_utime'.
78214
78215 2003-01-31  Bruno Haible  <bruno@clisp.org>
78216
78217         * lib/rename.c: #undef rename before defining rpl_rename.
78218         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78219
78220 2003-01-30  Bruno Haible  <bruno@clisp.org>
78221
78222         * modules/vasnprintf, modules/vasprintf: New modules.
78223         * MODULES.html.sh (func_all_modules): Add them.
78224
78225 2003-01-30  Bruno Haible  <bruno@clisp.org>
78226
78227         * m4/signed.m4: New file, from GNU gettext.
78228         * m4/longdouble.m4: New file, from GNU gettext.
78229         * m4/wchar_t.m4: New file, from GNU gettext.
78230         * m4/wint_t.m4: New file, from GNU gettext.
78231         * m4/vasnprintf.m4: New file.
78232         * m4/vasprintf.m4: New file.
78233
78234 2003-01-30  Bruno Haible  <bruno@clisp.org>
78235
78236         * lib/printf-args.h: New file, from GNU gettext.
78237         * lib/printf-args.c: New file, from GNU gettext.
78238         * lib/printf-parse.h: New file, from GNU gettext.
78239         * lib/printf-parse.c: New file, from GNU gettext.
78240         * lib/vasnprintf.h: New file, from GNU gettext.
78241         * lib/vasnprintf.c: New file, from GNU gettext.
78242         * lib/asnprintf.c: New file, from GNU gettext.
78243         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78244         * lib/vasprintf.c: New file, from GNU gettext.
78245         * lib/asprintf.c: New file, from GNU gettext.
78246
78247 2003-01-29  Bruno Haible  <bruno@clisp.org>
78248
78249         * modules/stpncpy: New module.
78250         * MODULES.html.sh (func_all_modules): Add it.
78251
78252 2003-01-29  Bruno Haible  <bruno@clisp.org>
78253
78254         * m4/stpncpy.m4: New file.
78255
78256 2003-01-29  Bruno Haible  <bruno@clisp.org>
78257
78258         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78259         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78260
78261 2003-01-28  Bruno Haible  <bruno@clisp.org>
78262
78263         * modules/c-ctype: New module.
78264         * MODULES.html.sh (func_all_modules): Add it.
78265
78266 2003-01-28  Bruno Haible  <bruno@clisp.org>
78267
78268         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78269         Paul Eggert.
78270         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78271         Paul Eggert.
78272
78273 2003-01-27  Bruno Haible  <bruno@clisp.org>
78274
78275         * modules/xsetenv: New module.
78276         * MODULES.html.sh (func_all_modules): Add it.
78277
78278 2003-01-27  Bruno Haible  <bruno@clisp.org>
78279
78280         * lib/xsetenv.h: New file, from GNU gettext.
78281         * lib/xsetenv.c: New file, from GNU gettext.
78282
78283 2003-01-23  Jim Meyering  <jim@meyering.net>
78284
78285         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78286         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78287
78288 2003-01-23  Bruno Haible  <bruno@clisp.org>
78289
78290         * modules/minmax: New module.
78291         * MODULES.html.sh (func_all_modules): Add it.
78292
78293 2003-01-23  Bruno Haible  <bruno@clisp.org>
78294
78295         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78296         Eggert.
78297
78298 2003-01-22  Bruno Haible  <bruno@clisp.org>
78299
78300         * modules/exit: New module.
78301         * MODULES.html.sh (func_all_modules): Add it.
78302
78303 2003-01-22  Bruno Haible  <bruno@clisp.org>
78304
78305         * lib/exit.h: New file, from GNU gettext.
78306
78307 2003-01-19  Bruno Haible  <bruno@clisp.org>
78308
78309         * gnulib-tool: Recognize option --extract-maintainer.
78310         (func_get_maintainer): New function.
78311         * modules/*: Add Maintainer entry.
78312
78313 2003-01-16  Jim Meyering  <jim@meyering.net>
78314
78315         * m4/regex.m4: The `regex' struct is both input and output.
78316         Initialize it before each use.  Patch by Tim Waugh.
78317
78318 2003-01-16  Bruno Haible  <bruno@clisp.org>
78319
78320         * MODULES.html.sh: Add a table of contents. Add the module name as
78321         leftmost column. Add hyperlinks.
78322
78323 2003-01-15  Bruno Haible  <bruno@clisp.org>
78324
78325         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78326
78327 2003-01-15  Bruno Haible  <bruno@clisp.org>
78328
78329         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78330         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78331         suffix.
78332
78333 2003-01-15  Bruno Haible  <bruno@clisp.org>
78334
78335         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78336
78337 2003-01-15  Bruno Haible  <bruno@clisp.org>
78338
78339         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78340         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78341
78342 2003-01-14  Jim Meyering  <jim@meyering.net>
78343
78344         * lib/same.c (same_name): Tweak a comment.
78345
78346 2003-01-14  Bruno Haible  <bruno@clisp.org>
78347
78348         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78349         when a string comparison is sufficient.
78350
78351 2003-01-14  Bruno Haible  <bruno@clisp.org>
78352
78353         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78354         'unsigned int'.
78355
78356 2003-01-14  Bruno Haible  <bruno@clisp.org>
78357
78358         * lib/hash-pjw.c: Add comment about low quality of this function.
78359
78360 2003-01-13  Bruno Haible  <bruno@clisp.org>
78361
78362         * modules/stpcpy: Distribute lib/stpcpy.h.
78363         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78364
78365 2003-01-13  Bruno Haible  <bruno@clisp.org>
78366
78367         * modules/*: Add a description.
78368         * modules/strpbrk: Fix Makefile.am snippet.
78369         * modules/strtoimax: Fix dependencies.
78370         * modules/strtoumax: Likewise.
78371
78372 2003-01-13  Bruno Haible  <bruno@clisp.org>
78373
78374         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78375         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78376         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78377
78378 2003-01-13  Bruno Haible  <bruno@clisp.org>
78379
78380         * gnulib-tool (func_create_testdir): Store config/* files in the main
78381         directory.
78382         * config.rpath: Move to ...
78383         * config/config.rpath: ... here.
78384         * modules/gettext: Contains config/config.rpath, not config.rpath.
78385         * modules/iconv: Likewise.
78386
78387 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78388
78389         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78390         to avoid collisions with libcurses and libreadline.
78391
78392         * m4/getstr.m4: Remove.
78393         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78394
78395 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78396
78397         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78398         to avoid collisions with libcurses and libreadline.
78399
78400         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78401         * lib/getstr.h, getstr.c: Remove.
78402         * lib/getline.c: Include "getline.h", to check interface.
78403         Move body of old getstr.c here: this defines MIN_CHUNK and
78404         declares getdelim2, which is renamed from getstr.
78405         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78406
78407         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78408         All uses changed.
78409         * lib/linebuffer.h: Likewise.
78410         (readline): Remove backward-compatibility macro.
78411
78412 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78413
78414         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78415         to avoid collisions with libcurses and libreadline.
78416         * getstr: Remove.
78417         * MODULES.html.sh: Remove getstr.
78418         * modules/getline: Depend on unlocked-io, not getstr.
78419
78420 2003-01-12  Jim Meyering  <jim@meyering.net>
78421
78422         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78423
78424 2003-01-10  Bruno Haible  <bruno@clisp.org>
78425
78426         * modules/alloca: Change Makefile.am requirements. Simplify Include
78427         requirements. Add lib/alloca_.h to file list.
78428
78429 2003-01-10  Bruno Haible  <bruno@clisp.org>
78430
78431         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78432
78433 2003-01-10  Bruno Haible  <bruno@clisp.org>
78434
78435         * lib/alloca_.h: New file.
78436         * lib/getdate.y: Unconditionally include alloca.h.
78437         * lib/makepath.c: Likewise.
78438         * lib/setenv.c: Likewise.
78439         * lib/userspec.c: Likewise.
78440
78441 2003-01-09  Karl Berry  <karl@gnu.org>
78442
78443         * MODULES.html.sh: include `dirname $0` in PATH, to find
78444         gnulib-tool.
78445
78446 2003-01-09  Bruno Haible  <bruno@clisp.org>
78447
78448         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78449         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78450
78451 2003-01-09  Bruno Haible  <bruno@clisp.org>
78452
78453         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
78454
78455 2003-01-09  Bruno Haible  <bruno@clisp.org>
78456
78457         * lib/stdbool.h.in: New file.
78458
78459 2003-01-09  Bruno Haible  <bruno@clisp.org>
78460
78461         * gnulib-tool (func_all_modules): Ignore files ending in ~.
78462         * MODULES.html.sh: Likewise.
78463
78464 2003-01-08  Jim Meyering  <jim@meyering.net>
78465
78466         * lib/full-write.c: Undefine and define-away `const' after inclusion
78467         of errno.h, not before.  Suggestion from Bruno Haible.
78468
78469 2003-01-08  Bruno Haible  <bruno@clisp.org>
78470
78471         * modules/full-read: Depend on full-write.
78472
78473 2003-01-08  Bruno Haible  <bruno@clisp.org>
78474
78475         * lib/safe-read.c: Include specification header first, to ensure its
78476         selfcontainedness.
78477         * lib/full-write.c: Likewise.
78478
78479 2003-01-07  Jim Meyering  <jim@meyering.net>
78480
78481         * lib/full-write.c: Rework so that it may serve to define full_read,
78482         too.
78483         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78484
78485 2003-01-07  Bruno Haible  <bruno@clisp.org>
78486
78487         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78488         <inttypes.h>.
78489         * lib/xstrtol.h: Likewise.
78490         * lib/xstrtoimax.c: Likewise.
78491         * lib/xstrtoumax.c: Likewise.
78492         * lib/human.h: Likewise.
78493
78494         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78495         on systems that have <inttypes.h> but not <stdint.h>.
78496
78497 2003-01-07  Bruno Haible  <bruno@clisp.org>
78498
78499         * MODULES.html.sh: Add copyright notice.
78500         (missed_files): Omit CVS directory entries.
78501         (func_module): Make it work with sed-3.02.
78502         * MODULES.txt: Remove file.
78503
78504 2003-01-06  Jim Meyering  <jim@meyering.net>
78505
78506         * lib/version-etc.c: Update year in translatable copyright string.
78507
78508 2003-01-03  Karl Berry  <karl@gnu.org>
78509
78510         * config/config.{guess,sub}: update from prep.
78511
78512 2003-01-02  Karl Berry  <karl@gnu.org>
78513
78514         * doc/COPYING.DOC: belatedly updated to 1.2.
78515
78516 2003-01-01  Karl Berry  <karl@gnu.org>
78517
78518         * gnulib-tool (func_verify_module): report module name $module in
78519         error message, not $1.
78520         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78521         be created, only if it doesn't exist.
78522         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78523
78524 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78525
78526         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78527
78528 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78529
78530         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78531         memcmp if strcoll doesn't work.
78532
78533 2002-12-31  Bruno Haible  <bruno@clisp.org>
78534
78535         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78536         nonempty.
78537
78538 2002-12-31  Bruno Haible  <bruno@clisp.org>
78539
78540         * lib/memcoll.c (STRCOLL): New macro.
78541         (memcoll): Use it.
78542
78543 2002-12-31  Bruno Haible  <bruno@clisp.org>
78544
78545         * lib/localcharset.h: New file.
78546         * lib/localcharset.c: Include it.
78547         * lib/unicodeio.c: Likewise.
78548
78549 2002-12-31  Bruno Haible  <bruno@clisp.org>
78550
78551         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
78552         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
78553
78554 2002-12-31  Bruno Haible  <bruno@clisp.org>
78555
78556         * lib/getline.h: Include <stddef.h>, for size_t.
78557
78558         * lib/unicodeio.h: Include <stddef.h>, for size_t.
78559         * lib/unicodeio.c: Don't include <stddef.h>.
78560
78561 2002-12-31  Bruno Haible  <bruno@clisp.org>
78562
78563         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
78564         HAVE_TM_ZONE.
78565
78566 2002-12-24  Karl Berry  <karl@gnu.org>
78567
78568         * config/config.guess: update from prep.
78569
78570 2002-12-24  Bruno Haible  <bruno@clisp.org>
78571
78572         General infrasructure.
78573         * m4/README: Rewritten.
78574         * m4/onceonly.m4: New file.
78575         * m4/onceonly_2_57.m4: New file.
78576
78577         Module atexit.
78578         * m4/atexit.m4: New file.
78579
78580         Module strtod.
78581         * m4/strtod.m4: New file.
78582
78583         Module strtol.
78584         * m4/strtol.m4: New file.
78585
78586         Module strtoul.
78587         * m4/strtoul.m4: New file.
78588
78589         Module memchr.
78590         * m4/memchr.m4: New file.
78591
78592         Module memcmp.
78593         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
78594         (jm_FUNC_MEMCMP): Invoke it.
78595
78596         Module memcpy.
78597         * m4/memcpy.m4: New file.
78598
78599         Module memmove.
78600         * m4/memmove.m4: New file.
78601
78602         Module memset.
78603         * m4/memset.m4: New file.
78604
78605         Module strcspn.
78606         * m4/strcspn.m4: New file.
78607
78608         Module strpbrk.
78609         * m4/strpbrk.m4: New file.
78610
78611         Module strstr.
78612         * m4/strstr.m4: New file.
78613
78614         Module strerror.
78615         * m4/strerror.m4: New file.
78616
78617         Module mktime.
78618         * m4/mktime.m4: Renamed from jm-mktime.m4.
78619         (gl_PREREQ_MKTIME): New macro.
78620         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
78621
78622         Module malloc.
78623         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
78624         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
78625         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
78626
78627         Module realloc.
78628         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
78629         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
78630         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
78631
78632         Module strftime.
78633         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
78634         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
78635         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
78636         gl_TM_GMTOFF.
78637         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
78638
78639         Module xalloc.
78640         * m4/xalloc.m4: New file.
78641
78642         Module alloca.
78643         * m4/alloca.m4: New file.
78644
78645         Module putenv.
78646         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
78647         (jm_FUNC_PUTENV): Invoke it.
78648
78649         Module setenv.
78650         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
78651         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
78652         when invoked twice.
78653         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
78654         gt_FUNC_SETENV.
78655
78656         Module memrchr.
78657         * m4/memrchr.m4: New file.
78658
78659         Module stpcpy.
78660         * m4/stpcpy.m4: New file.
78661
78662         Module strcase.
78663         * m4/strcase.m4: New file.
78664
78665         Module strdup.
78666         * m4/strdup.m4: New file.
78667
78668         Module strnlen.
78669         * m4/strnlen.m4: New file.
78670
78671         Module strndup.
78672         * m4/strndup.m4: New file.
78673
78674         Module xstrtod.
78675         * m4/xstrtod.m4: New file.
78676
78677         Module xstrtol.
78678         * m4/xstrtol.m4: New file.
78679
78680         Module getdate.
78681         * m4/getdate.m4: New file.
78682
78683         Module unlocked-io.
78684         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
78685         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
78686         * m4/jm-glibc-io.m4n: Remove file.
78687
78688         Module long-options.
78689         * m4/long-options.m4: New file.
78690
78691         Module md5.
78692         * m4/md5.m4: New file.
78693
78694         Module sha.
78695         * m4/sha.m4: New file.
78696
78697         Module getstr.
78698         * m4/getstr.m4: New file.
78699
78700         Module getline.
78701         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
78702         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
78703         <sys/types.h>, for size_t. Use the function name gnu_getline, not
78704         simply getline. Infoke gl_PREREQ_GETLINE.
78705
78706         Module obstack.
78707         * m4/obstack.m4: New file.
78708
78709         Module hash.
78710         * m4/hash.m4: New file.
78711
78712         Module readtokens.
78713         * m4/readtokens.m4: New file.
78714
78715         Module strverscmp.
78716         * m4/strverscmp.m4: New file.
78717
78718         Module stdbool.
78719         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
78720         OSF/1.
78721
78722         Module strtoll.
78723         * m4/strtoll.m4: New file.
78724
78725         Module strtoull.
78726         * m4/strtoull.m4: New file.
78727
78728         Module strtoimax.
78729         * m4/strtoimax.m4: New file.
78730
78731         Module strtoumax.
78732         * m4/strtoumax.m4: New file.
78733
78734         Module xstrtoimax.
78735         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
78736         jm_AC_PREREQ_XSTRTOIMAX.
78737         Moved the strtol prerequisites to strtol.m4.
78738         Moved the strtoll prerequisites to strtoll.m4.
78739         Moved the strtoimax prerequisites to strtoimax.m4.
78740
78741         Module xstrtoumax.
78742         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
78743         jm_AC_PREREQ_XSTRTOUMAX.
78744         Moved the strtoul prerequisites to strtoul.m4.
78745         Moved the strtoull prerequisites to strtoull.m4.
78746         Moved the strtoumax prerequisites to strtoumax.m4.
78747
78748         Module chown.
78749         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
78750         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
78751
78752         Module dup2.
78753         * m4/dup2.m4: New file.
78754
78755         Module ftruncate.
78756         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
78757         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
78758
78759         Module getgroups.
78760         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
78761         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
78762
78763         Module gettimeofday.
78764         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
78765         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
78766         gl_PREREQ_GETTIMEOFDAY.
78767
78768         Module mkdir.
78769         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
78770         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
78771
78772         Module mkstemp.
78773         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
78774         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
78775         jm_AC_TYPE_UINTMAX_T.
78776         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
78777
78778         Module stat.
78779         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
78780         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
78781
78782         Module lstat.
78783         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
78784         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
78785
78786         Module timespec.
78787         * m4/timespec.m4 (gl_TIMESPEC): New macro.
78788         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
78789         * m4/st_mtim.m4: Indentation.
78790
78791         Module nanosleep.
78792         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
78793         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
78794         gl_PREREQ_NANOSLEEP.
78795
78796         Module regex.
78797         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
78798         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
78799         (gl_REGEX): New macro.
78800
78801         Module rename.
78802         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
78803         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
78804
78805         Module rmdir.
78806         * m4/rmdir.m4: New file.
78807
78808         Module utime.
78809         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
78810         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
78811         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
78812
78813         Module dirname.
78814         * m4/dirname.m4: New file.
78815
78816         Module getopt.
78817         * m4/getopt.m4: New file.
78818
78819         Module unistd-safer.
78820         * m4/unistd-safer.m4: New file.
78821
78822         Module fnmatch.
78823         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
78824         declaration.
78825         (gl_PREREQ_FNMATCH_EXTRA): New macro.
78826         (gl_FUNC_FNMATCH_POSIX): New macro.
78827         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
78828         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
78829         simply fnmatch.
78830
78831         Module exclude.
78832         * m4/exclude.m4: New file.
78833
78834         Module human.
78835         * m4/human.m4: New file.
78836
78837         Module acl.
78838         * m4/acl.m4: Nop.
78839
78840         Module backupfile.
78841         * m4/backupfile.m4: New file.
78842         * m4/d-ino.m4: Indentation.
78843
78844         Module fsusage.
78845         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
78846         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
78847         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
78848
78849         Module dirfd.
78850         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
78851         requirements.
78852
78853         Module euidaccess.
78854         * m4/euidaccess.m4: New file.
78855
78856         Module file-type.
78857         * m4/file-type.m4: New file.
78858
78859         Module fileblocks.
78860         * m4/fileblocks.m4: New file.
78861
78862         Module filemode.
78863         * m4/filemode.m4: New file.
78864
78865         Module isdir.
78866         * m4/isdir.m4: New file.
78867
78868         Module lchown.
78869         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
78870         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
78871
78872         Module makepath.
78873         * m4/makepath.m4: New file.
78874
78875         Module modechange.
78876         * m4/modechange.m4: New file.
78877
78878         Module mountlist.
78879         * m4/mountlist.m4: New file.
78880         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
78881         Indentation.
78882
78883         Module path-concat.
78884         * m4/path-concat.m4: New file.
78885
78886         Module pathmax.
78887         * m4/pathmax.m4: New file.
78888
78889         Module same.
78890         * m4/same.m4: New file.
78891
78892         Module save-cwd.
78893         * m4/save-cwd.m4: New file.
78894
78895         Module savedir.
78896         * m4/savedir.m4: New file.
78897
78898         Module xgetcwd.
78899         * m4/xgetcwd.m4: New file.
78900         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
78901
78902         Module xreadlink.
78903         * m4/xreadlink.m4: New file.
78904
78905         Module safe-read.
78906         * m4/safe-read.m4: New file.
78907
78908         Module safe-write.
78909         * m4/safe-write.m4: New file.
78910
78911         Module closeout.
78912         * m4/closeout.m4: New file.
78913
78914         Module stdio-safer.
78915         * m4/stdio-safer.m4: New file.
78916
78917         Module getpass.
78918         * m4/getpass.m4: New file.
78919
78920         Module getugroups.
78921         * m4/getugroups.m4: New file.
78922
78923         Module group-member.
78924         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
78925         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
78926
78927         Module idcache.
78928         * m4/idcache.m4: New file.
78929
78930         Module userspec.
78931         * m4/userspec.m4: New file.
78932
78933         Module gettime.
78934         * m4/clock_time.m4: New file.
78935         * m4/gettime.m4: New file.
78936
78937         Module settime.
78938         * m4/settime.m4: New file.
78939
78940         Module posixtm.
78941         * m4/posixtm.m4: New file.
78942
78943         Module gethostname.
78944         * m4/gethostname.m4: New file.
78945
78946         Module canon-host.
78947         * m4/canon-host.m4: New file.
78948
78949         Module gettext.
78950         * m4/codeset.m4: New file, from gettext-0.11.5.
78951         * m4/gettext.m4: New file, from gettext-0.11.5.
78952         * m4/glibc21.m4: New file, from gettext-0.11.5.
78953         * m4/iconv.m4: New file, from gettext-0.11.5.
78954         * m4/intdiv0.m4: New file, from gettext-0.11.5.
78955         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
78956         * m4/inttypes.m4: New file, from gettext-0.11.5.
78957         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
78958         * m4/isc-posix.m4: New file, from gettext-0.11.5.
78959         * m4/lcmessage.m4: New file, from gettext-0.11.5.
78960         * m4/lib-ld.m4: New file, from gettext-0.11.5.
78961         * m4/lib-link.m4: New file, from gettext-0.11.5.
78962         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
78963         * m4/progtest.m4: New file, from gettext-0.11.5.
78964         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
78965         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
78966         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
78967
78968         Module localcharset.
78969         * m4/localcharset.m4: New file.
78970
78971         Module hard-locale.
78972         * m4/hard-locale.m4: New file.
78973
78974         Module mbswidth.
78975         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
78976         onceonly macros.
78977         * m4/mbrtowc.m4: Add comment.
78978
78979         Module memcasecmp.
78980         * m4/memcasecmp.m4: New file.
78981
78982         Module memcoll.
78983         * m4/memcoll.m4: New file.
78984
78985         Module unicodeio.
78986         * m4/unicodeio.m4: New file.
78987
78988         Module rpmatch.
78989         * m4/rpmatch.m4: New file.
78990
78991         Module yesno.
78992         * m4/yesno.m4: New file.
78993
78994         Module exitfail.
78995         * m4/exitfail.m4: New file.
78996
78997         Module c-stack.
78998         * m4/c-stack.m4 (gl_C_STACK): New macro.
78999         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79000
79001         Module error.
79002         * m4/error.m4 (gl_ERROR): New macro.
79003         (jm_PREREQ_ERROR): Use onceonly macros.
79004
79005         Module fatal.
79006         * m4/fatal.m4: New file.
79007
79008         Module getloadavg.
79009         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79010         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79011
79012         Module getpagesize.
79013         * m4/getpagesize.m4: New file.
79014
79015         Module getusershell.
79016         * m4/getusershell.m4: New file.
79017
79018         Module physmem.
79019         * m4/physmem.m4: New file.
79020
79021         Module posixver.
79022         * m4/posixver.m4: New file.
79023
79024         Module quotearg.
79025         * m4/quotearg.m4: New file.
79026
79027         Module quote.
79028         * m4/quote.m4: New file.
79029
79030         Module readutmp.
79031         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79032
79033         Module sig2str.
79034         * m4/sig2str.m4: New file.
79035
79036         Other.
79037         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79038         ulonglong.m4.
79039         * m4/intmax_t.m4: New file.
79040         * m4/d-type.m4: Indentation.
79041         * m4/jm-macros.m4: Update.
79042         * m4/prereq.m4 (jm_PREREQ): Update.
79043         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79044         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79045         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79046         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79047         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79048         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79049         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79050         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79051         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79052         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79053         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79054         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79055         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79056         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79057         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79058         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79059         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79060         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79061         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79062
79063 2002-12-24  Bruno Haible  <bruno@clisp.org>
79064
79065         * MODULES.txt: Update according to m4/ changes.
79066
79067         Module gettext.
79068         * config.rpath: New file, from gettext-0.11.5.
79069
79070         * modules/*: New module descriptions.
79071         * gnulib-tool: New file.
79072         * MODULES.html.sh: New file.
79073
79074 2002-12-21  Karl Berry  <karl@gnu.org>
79075
79076         * doc/fdl.texi: update to version 1.2.
79077
79078 2002-12-19  Karl Berry  <karl@gnu.org>
79079
79080         * config/config.guess: update from prep.
79081
79082 2002-12-18  Bruno Haible  <bruno@clisp.org>
79083
79084         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79085         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79086
79087 2002-12-17  Bruno Haible  <bruno@clisp.org>
79088
79089         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79090         stdlib.h, string.h.
79091
79092 2002-12-17  Bruno Haible  <bruno@clisp.org>
79093
79094         * lib/canon-host.c (strdup): Remove unused declaration.
79095
79096         * lib/fsusage.c: Include full_read.h.
79097         (get_fs_usage): Use full_read instead of safe_read.
79098
79099         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79100
79101 2002-12-12  Karl Berry  <karl@gnu.org>
79102
79103         * config/config.guess: update from prep.
79104
79105 2002-12-11  Bruno Haible  <bruno@clisp.org>
79106
79107         * m4/setenv.m4: New file, from gettext-0.11.5.
79108
79109 2002-12-11  Bruno Haible  <bruno@clisp.org>
79110
79111         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79112         not unsetenv().
79113         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79114         modifications:
79115
79116         2002-12-11  Bruno Haible  <bruno@clisp.org>
79117
79118                 * setenv.c (alloca): Fall back to malloc.
79119                 (freea): New macro.
79120                 (setenv): Use freea() to free memory allocated with alloca().
79121
79122         2002-11-13  Bruno Haible  <bruno@clisp.org>
79123
79124                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79125                 function declarations.
79126                 * unsetenv.c (unsetenv): Likewise.
79127
79128         2002-03-04  Bruno Haible  <bruno@clisp.org>
79129
79130                 Portability to AIX 4.3.3.
79131                 * unsetenv.c: New file, extracted from setenv.c.
79132                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79133
79134         2001-12-20  Bruno Haible  <bruno@clisp.org>
79135
79136                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79137                 use malloc instead. For SunOS 4.
79138
79139         2001-12-11  Bruno Haible  <bruno@clisp.org>
79140
79141                 * setenv.c: Declare alloca.
79142                 (compar_fn_t): New typedef.
79143                 (KNOWN_VALUE, STORE_VALUE): Use it.
79144
79145         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79146         setenv.h.
79147
79148 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79149
79150         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79151         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79152         Choose values that are less likely to collide with system fnmatch
79153         options.
79154         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79155         defined (e.g., a pure POSIX system).
79156         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79157         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79158
79159 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79160
79161         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79162         a pain in practice to deal with generated m4 files.  This change
79163         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79164
79165         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79166         and jm-glibc-io.m4, as they are no longer a special case.
79167         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79168         kludge and the auto-generation stuff.  Check only whether the
79169         functions are declared, not whether they exist, since older hosts
79170         that don't declare the functions can't use the optimization anyway.
79171
79172 2002-12-06  Jim Meyering  <jim@meyering.net>
79173
79174         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79175
79176         Merge in changes from libc's misc/error.c, in preparation
79177         for the merge of gnulib's changes back into libc.
79178
79179         * lib/error.c (_): Define only if not already defined.
79180         Move definition to follow all #include directives.
79181         Include unlocked-io.h only if !_LIBC.
79182         [_LIBC]: Include <libio/libioP.h>.
79183         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79184         (fflush): Tweak definition to use INTUSE.
79185         (putc): Define.
79186
79187 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79188
79189         * lib/alloca.c [defined emacs]: Include "lisp.h".
79190         (xalloc_die) [defined emacs]: New macro.
79191         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79192         [! defined emacs]: Include <xalloc.h>.
79193         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79194         (pointer): Typedef to POINTER_TYPE *.
79195         (malloc): Remove decl; we now always use xmalloc.
79196         (alloca): Use old-style definition, since Emacs needs this.
79197         Check for arithmetic overflow when computing combined size.
79198
79199 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79200
79201         Do not generate unlocked-io.h automatically, since it's easier to
79202         maintain it by hand.
79203
79204         * lib/unlocked-io.h: New file, from GNU diffutils,
79205         but with proper copyright notice and attribution.
79206         * lib/gen-uio: Remove.
79207         * lib/Makefile.am: Add copyright notice.
79208         (libfetish_a_SOURCES): Add unlocked-io.h.
79209         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79210         (DISTCLEANFILES, io_functions): Remove macros.
79211         (EXTRA_DIST): Remove gen_uio.
79212         (unlocked-io.h): Remove rule.
79213
79214 2002-12-04  Jim Meyering  <jim@meyering.net>
79215
79216         Reflect the fact that stat.c and lstat.c are no longer generated.
79217         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79218         (DISTCLEANFILES): Likewise.
79219         (EXTRA_DIST): Likewise.
79220         (all_local): Don't depend on stat.c or lstat.c.
79221         (stat.c, lstat.c): Remove rules.
79222         (EXTRA_DIST): Remove xstat.in.
79223
79224         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79225         * lib/stat.c: New file.  Contents mostly from xstat.in.
79226         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79227         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79228
79229         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79230         too.
79231         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79232
79233 2002-12-03  Jim Meyering  <jim@meyering.net>
79234
79235         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79236         but not semantics, to minimize the differences between these two files.
79237         (safe_read): Change comment to mention SAFE_READ_ERROR.
79238
79239         * lib/safe-read.c (IS_EINTR): Define.
79240         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79241
79242 2002-12-02  Jim Meyering  <jim@meyering.net>
79243
79244         * lib/safe-read.c (EINTR): Define.
79245         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79246         (INT_MAX): Provide fallback.
79247         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79248
79249         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79250
79251 2002-12-02  Bruno Haible  <bruno@clisp.org>
79252
79253         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79254         Define, taken from safe-read.c.
79255         (INT_MAX): Provide fallback.
79256         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79257         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79258
79259         * lib/safe-read.c (EINTR): Remove definition.
79260         (safe_read): Don't use EINTR if it is absent.
79261
79262 2002-12-01  Jim Meyering  <jim@meyering.net>
79263
79264         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79265         zero.
79266         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79267
79268 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79269
79270         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79271         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79272         with `if (! (value < limit)) abort ();', for readability.
79273
79274 2002-11-26  Karl Berry  <karl@gnu.org>
79275
79276         * lib/strdup.c: copy from libc again, with jim's ok.
79277         * lib/.cppi-disable: re-add strdup.c
79278
79279 2002-11-25  Karl Berry  <karl@gnu.org>
79280
79281         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79282         instead of "strtol.c".
79283
79284 2002-11-25  Karl Berry  <karl@gnu.org>
79285
79286         * config/install-sh: update from automake for variable quoting, $0 in
79287         error msgs, etc.
79288
79289         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79290         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79291         entry.
79292
79293 2002-11-25  Jim Meyering  <jim@meyering.net>
79294
79295         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79296
79297 2002-11-24  Karl Berry  <karl@gnu.org>
79298
79299         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79300         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79301
79302 2002-11-24  Jim Meyering  <jim@meyering.net>
79303
79304         Update from coreutils:
79305
79306         * lib/mktime.c: Merge in changes from libc.
79307
79308         Avoid a link-time failure on some Linux systems.
79309         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79310         (otherwise).
79311         (__mon_yday): Declare with the STATIC attribute.
79312         (__mktime_internal): Likewise.
79313         Based on a report from Greg Schafer.
79314
79315 2002-11-23  Jim Meyering  <jim@meyering.net>
79316
79317         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79318         Use `unsigned', not `int', as type of index.
79319
79320         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79321
79322         * lib/fsusage.c: Remove unneeded parentheses around operands of
79323         `defined'.
79324
79325 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79326
79327         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79328         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79329         so that we can be included first.
79330         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79331         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79332         No need to include stddef.h or sys/types.h any more.
79333         Surround local include files with "", not "<>".
79334         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79335         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79336         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79337         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79338         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79339         (ISPRINT): Remove; no longer needed now that we assume C89.
79340
79341         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79342         Preserve errno.
79343
79344         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79345         quotearg_char): Use SIZE_MAX rather than
79346         (size_t) -1 when we are talking about "infinity".
79347
79348         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79349
79350 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79351
79352         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79353         hint that one should use `if (! x) abort ();' rather than `assert
79354         (x);', and anyway it's one less thing to worry about configuring.
79355         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79356         hash_rehash, hash_insert): Use abort rather than assert.
79357
79358 2002-11-22  Bruno Haible  <bruno@clisp.org>
79359
79360         * lib/safe-read.h: Assume C89. Add comments.
79361         (safe_read): Change return type to size_t.
79362         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79363         byte counts > SSIZE_MAX correctly.
79364         * lib/safe-write.h: New file.
79365         * lib/safe-write.c: New file.
79366         * lib/full-read.h: New file.
79367         * lib/full-read.c: New file.
79368         * lib/full-write.h: Assume C89. Add comments.
79369         * lib/full-write.c: Include safe-write.h.
79370         (full_write): Rewritten to use safe_write.
79371         Suggested by Jim Meyering and Paul Eggert.
79372
79373 2002-11-21  Jim Meyering  <jim@meyering.net>
79374
79375         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79376
79377         Merge in changes from the coreutils.
79378
79379         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79380         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79381         <stdint.h>.
79382         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79383         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79384         int.  Work more efficiently if X is the same width as uintmax_t.
79385         Do not compare X to -1, to avoid bogus compiler warning.
79386         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79387         Don't assume that f_frsize and f_bsize are the same type.
79388
79389         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79390         warning on FreeBSD.
79391
79392         * lib/makepath.c (make_path): Restore umask *before* creating the final
79393         component.
79394         (make_path): Minor reformatting.
79395
79396         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79397         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79398         HAVE_MALLOC/HAVE_REALLOC.
79399
79400         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79401         dummy ones.  At least on GNU/Linux systems, `auto' means something
79402         else.
79403         From Michael Stone.
79404
79405 2002-11-21  Bruno Haible  <bruno@clisp.org>
79406
79407         Remove case insensitive option matching.
79408         * lib/argmatch.h (argcasematch): Remove declaration.
79409         (ARGCASEMATCH): Remove macro.
79410         (__xargmatch_internal): Remove case_sensitive argument.
79411         (XARGMATCH): Update.
79412         (XARGCASEMATCH): Remove macro.
79413         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79414         case_sensitive argument.
79415         (argcasematch): Remove function.
79416         (__xargmatch_internal): Remove case_sensitive argument.
79417         (main): Use XARGMATCH instead of XARGCASEMATCH.
79418
79419         * lib/xmalloc.c: Change compile-time error message. Add comment about
79420         required autoconf version.
79421
79422 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79423
79424         Merge argmatch cleanups from Bison.  Assume C89.
79425
79426         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79427         Include stdlib.h, for EXIT_FAILURE.
79428         Always include <string.h>, since we assume C89.
79429         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79430         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79431         Include <stddef.h> instead, since it's all we need for size_t.
79432         (PARAMS): Remove.  All uses removed.
79433         (ARRAY_CARDINALITY): Do not bother to #undef.
79434         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79435         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79436         Remove unnecessary parentheses.
79437         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79438         Insert necessary parentheses.
79439         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79440         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79441
79442 2002-11-19  Bruno Haible  <bruno@clisp.org>
79443
79444         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79445         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79446
79447         * lib/mbswidth.h (PARAMS): Remove macro.
79448         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79449         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79450
79451         * lib/gcd.h (PARAMS): Remove macro.
79452         (gcd): Use ANSI C function declarations.
79453         * lib/gcd.c (gcd): Likewise.
79454
79455 2002-11-15  Bruno Haible  <bruno@clisp.org>
79456
79457         * lib/strcspn.c: Include <stddef.h>.
79458         (strcspn): Use ANSI C function declaration. Change return type to
79459         size_t. Use NULL.
79460         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
79461         (strpbrk): Use NULL.
79462         * lib/strpbrk.h (PARAMS): Remove macro.
79463         (strpbrk): Use ANSI C function declaration.
79464         * lib/strstr.c: Don't include <sys/types.h>.
79465         * lib/strstr.h (PARAMS): Remove macro.
79466         (strstr): Use ANSI C function declarations.
79467
79468 2002-11-14  Karl Berry  <karl@gnu.org>
79469
79470         * config/mkinstalldirs: `do' on separate line, instead of
79471         `for var; do'.
79472
79473 2002-11-06  Bruno Haible  <bruno@clisp.org>
79474
79475         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79476         * lib/gcd.c (gcd): Likewise.
79477
79478 2002-11-05  Bruno Haible  <bruno@clisp.org>
79479
79480         * lib/gcd.h: New file, from gettext-0.11.5.
79481         * lib/gcd.c: New file, from gettext-0.11.5.
79482
79483 2002-11-05  Bruno Haible  <bruno@clisp.org>
79484
79485         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79486         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79487         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79488         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79489
79490         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79491         <libintl.h>.
79492         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79493         <libintl.h>.
79494
79495         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79496         * lib/human.c: Include gettext.h instead of <libintl.h>.
79497         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79498         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79499         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79500         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79501         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79502         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79503         (textdomain): Remove definition.
79504         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79505
79506         * lib/long-options.c: Remove include of <libintl.h> and definition of
79507         _.
79508         * lib/same.c: Remove include of <libintl.h> and definition of _.
79509
79510 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79511
79512         * lib/config.charset: A few additions for Solaris.
79513
79514 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79515
79516         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79517         * lib/localcharset.c (locale_charset): Declare as extern "C".
79518
79519 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79520
79521         * lib/config.charset: msdos in uk_UA uses CP1125.
79522
79523 2002-11-04  Bruno Haible  <bruno@clisp.org>
79524
79525         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79526         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79527         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79528         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79529         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79530
79531 2002-11-04  Bruno Haible  <bruno@clisp.org>
79532
79533         * lib/localcharset.c (locale_charset): Don't return an empty string.
79534
79535 2002-11-04  Bruno Haible  <bruno@clisp.org>
79536
79537         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
79538         aliases.
79539
79540 2002-11-04  Bruno Haible  <bruno@clisp.org>
79541
79542         * lib/config.charset: Update for newest glibc. Add canonical names
79543         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
79544
79545 2002-11-04  Bruno Haible  <bruno@clisp.org>
79546
79547         * lib/config.charset: Add support for NetBSD.
79548
79549 2002-11-04  Bruno Haible  <bruno@clisp.org>
79550
79551         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
79552
79553 2002-11-01  Bruno Haible  <bruno@clisp.org>
79554
79555         * configure.in: Add AC_CONFIG_AUX_DIR call.
79556         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
79557         test/Makefile.
79558         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
79559
79560 2002-09-28  Karl Berry  <karl@gnu.org>
79561
79562         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
79563         installed automake until the next release, since changes have been
79564         made.
79565
79566 2002-09-25  Karl Berry  <karl@gnu.org>
79567
79568         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
79569         * lib/getopt*: copy from libc/posix.
79570         * lib/gettext.h: copy from gettext.
79571         * lib/.cppi-disable: add strdup.c, gettext.h.
79572
79573 2002-09-25  Karl Berry  <karl@gnu.org>
79574
79575         * config/srclist.txt: enable gettext.h check.
79576         * config/config.{guess,sub}: update from prep.
79577         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
79578                 from automake 1.6.3.
79579         See srclist*.
79580
79581 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
79582
79583         * regex.c (PATFETCH): Remove the translating fetch.
79584         (PATFETCH_RAW): Rename to PATFETCH.
79585         (set_image_of_range): New fun.
79586         (SET_RANGE_TABLE_WORK_AREA): Use it.
79587         (regex_compile): Don't translate the pattern chars so eagerly.
79588         Only do it when inserting an `exactn' bytecode or when handling
79589         a char-range.
79590         (mutually_exclusive_p): Avoid empty statement.
79591
79592 2002-07-06  Jim Meyering  <meyering@lucent.com>
79593
79594         * m4/README: Don't mention Makefile.am.in.
79595         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
79596
79597 2002-07-01  Jim Meyering  <meyering@lucent.com>
79598
79599         * lib/c-stack.c: Include sys/time.h.
79600         From Volker Borchert.
79601
79602 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79603
79604         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
79605
79606 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79607
79608         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
79609         New macro.  Use it uniformly instead of
79610         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
79611         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
79612         reported by Vin Shelton.
79613
79614 2002-06-22  Paul Eggert  <eggert@twinsun.com>
79615
79616         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
79617         Do not assume SA_SIGINFO behavior.
79618         Bug reported by Jim Meyering on NetBSD 1.5.2.
79619
79620 2002-06-22  Jim Meyering  <meyering@lucent.com>
79621
79622         * m4/c-stack.m4: New file, from diffutils-2.8.2.
79623         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
79624
79625         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
79626         now that configure.ac uses AC_GNU_SOURCE.
79627         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
79628         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
79629
79630         Update to latest tools.  Suggestions from Paul Eggert.
79631         * m4/stdbool.m4: New file, from diffutils-2.8.2.
79632         * m4/gnu-source.m4: Update from diffutils-2.8.2.
79633         * m4/fnmatch.m4: Likewise.
79634         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
79635         to AC_HEADER_STDBOOL
79636
79637 2002-06-22  Jim Meyering  <meyering@lucent.com>
79638
79639         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
79640         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
79641
79642 2002-06-22  Jim Meyering  <meyering@lucent.com>
79643
79644         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
79645
79646         * lib/exitfail.c, exitfail.h: Likewise.
79647         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
79648
79649         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
79650         of fnmatch.h.
79651         (EXTRA_DIST): Add fnmatch_loop.c.
79652         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
79653
79654         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
79655         * lib/fnmatch.c: Update from diffutils-2.8.2.
79656         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
79657         * lib/fnmatch.h: Remove file.
79658
79659 2002-06-21  Jim Meyering  <meyering@lucent.com>
79660
79661         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
79662         * m4/mbrtowc.m4: Likewise.
79663
79664         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
79665         * m4/mbswidth.m4: Reflect name change:
79666         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
79667         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79668
79669         * m4/lib-link.m4: Update from gettext-0.11.2.
79670         * m4/gettext.m4: Likewise.
79671
79672         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
79673         From Alfred M. Szmidt.
79674
79675 2002-06-18  Paul Eggert  <eggert@twinsun.com>
79676
79677         * lib/file-type.h: Report an error if neither S_ISREG nor
79678         S_IFREG is defined, instead of using a test specific to glibc
79679         2.2.  This should be safe, since POSIX requires S_ISREG and
79680         Unix Version 7 had S_IFREG.  We don't need to check for
79681         <sys/types.h> since we don't use any symbols that it defines.
79682
79683 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
79684
79685         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
79686         $@-t, so that each temporary file name is unique and valid in the first
79687         8 characters, for operation under DOS.
79688
79689 2002-06-15  Paul Eggert  <eggert@twinsun.com>
79690
79691         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
79692
79693 2002-06-15  Jim Meyering  <meyering@lucent.com>
79694
79695         Work even with DJGPP 2.03, which lacks support for symlinks.
79696         From Richard Dawe.
79697         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
79698         is defined.
79699         * lib/lchown.c (S_ISLNK): Likewise.
79700
79701 2002-06-15  Jim Meyering  <meyering@lucent.com>
79702
79703         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
79704         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
79705         have been included before this file.
79706
79707 2002-06-14  Jim Meyering  <meyering@lucent.com>
79708
79709         * lib/file-type.h: Use the version from diffutils-2.8.2.
79710         * lib/file-type.c: Likewise.
79711
79712 2002-06-07  Jim Meyering  <meyering@lucent.com>
79713
79714         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
79715         They're needed at least for NetBSD 1.5.2.
79716         ($statxfs_includes): Include those same headers.
79717         ($statxfs_includes): Include sys/vfs.h if available.
79718         ($statxfs_includes): Likewise for sys/statvfs.h.
79719         Check for the following members in both structs statfs and statvfs:
79720         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
79721
79722 2002-06-01  Jim Meyering  <meyering@lucent.com>
79723
79724         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
79725         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
79726
79727 2002-05-28  Jim Meyering  <meyering@lucent.com>
79728
79729         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
79730         Reported by Volker Borchert.
79731
79732 2002-05-27  Jim Meyering  <meyering@lucent.com>
79733
79734         Fix a problem seen only on nonconforming systems whereby ls.c's
79735         use of localtime, and then of gettimeofday would cause trouble:
79736         the localtime call used to initialize rpl_gettimeofday's save
79737         mechanism would clobber ls's current local time information so
79738         that in any long listing the first file would always be listed
79739         with date 1970-01-01.  Analysis by Volker Borchert.
79740
79741         * lib/gettimeofday.c (localtime): Undefine.
79742         (rpl_localtime): New function.
79743
79744 2002-05-27  Jim Meyering  <meyering@lucent.com>
79745
79746         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
79747         localtime.
79748
79749         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
79750         use the replacement function; it wouldn't resolve at link time.
79751         Reported by Volker Borchert.
79752
79753 2002-05-22  Jim Meyering  <meyering@lucent.com>
79754
79755         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
79756         file-type.h.
79757         * lib/file-type.h: New file.
79758         * lib/file-type.c (file_type): New file/function.  Extracted from
79759         diffutils.
79760
79761 2002-04-30  Jim Meyering  <meyering@lucent.com>
79762
79763         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
79764
79765 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79766
79767         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
79768
79769 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79770
79771         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
79772         Do not check for alloca.h (no longer used) or stdbool.h (was never
79773         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
79774
79775 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79776
79777         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
79778
79779 2002-04-29  Jim Meyering  <meyering@lucent.com>
79780
79781         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
79782         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
79783         Use AC_FUNC_STRNLEN here instead.
79784
79785         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
79786         With autoconf-2.53a, it's part of AC_PROG_CC.
79787
79788 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79789
79790         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
79791         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
79792
79793 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79794
79795         * lib/sig2str.h, lib/sig2str.c: New files.
79796         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
79797
79798 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79799
79800         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
79801         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
79802         of 127, since 64 is the largest conceivable number for ancient
79803         nonstandard hosts.
79804         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
79805
79806 2002-04-28  Jim Meyering  <meyering@lucent.com>
79807
79808         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
79809
79810 2002-04-24  Jim Meyering  <meyering@lucent.com>
79811
79812         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
79813         (jm_PREREQ): Use it.
79814
79815         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
79816         mach/mach.h fcntl.h.
79817         Check for this function: setlocale.
79818
79819 2002-04-24  Jim Meyering  <meyering@lucent.com>
79820
79821         * lib/gettext.h: New file, from Gettext.
79822         * lib/Makefile.am (INCLUDES): Remove -I../intl.
79823         (libfetish_a_SOURCES): Add gettext.h.
79824
79825 2002-04-16  Jim Meyering  <meyering@lucent.com>
79826
79827         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
79828         ut_pid, ut_id, ut_exit.
79829
79830 2002-04-16  Jim Meyering  <meyering@lucent.com>
79831
79832         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
79833         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
79834         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
79835
79836 2002-04-12  Jim Meyering  <meyering@lucent.com>
79837
79838         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
79839         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
79840         existence of the getmntinfo function.  Needed for Darwin 5.3.
79841
79842         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
79843         This is necessary at least on Darwin 5.3.
79844
79845         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
79846         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
79847         strnlen.o in the library, and that makes some versions of ranlib
79848         object.
79849
79850 2002-04-12  Jim Meyering  <meyering@lucent.com>
79851
79852         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
79853
79854 2002-04-09  Jim Meyering  <meyering@lucent.com>
79855
79856         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
79857         to be more precise.  Rather than saying we're checking whether the
79858         function `works', say what we're testing.
79859         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
79860         Reported by Bruno Haible.
79861
79862 2002-03-10  Jim Meyering  <meyering@lucent.com>
79863
79864         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
79865         Suggestion from Santiago Vila.
79866
79867 2002-03-08  Jim Meyering  <meyering@lucent.com>
79868
79869         * lib/rename.c: Mention that this wrapper is needed also on
79870         mips-dec-ultrix4.4 systems.
79871
79872 2002-03-02  Jim Meyering  <meyering@lucent.com>
79873
79874         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
79875         not HAVE_CLOCK_SETTIME.
79876
79877 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79878
79879         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
79880         Check for clock_settime.
79881
79882 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79883
79884         * lib/nanosleep.h: Rename to....
79885         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
79886
79887         * lib/gettime.c: New file.
79888         * lib/settime.c: New file.
79889         * lib/stime.c: Remove.
79890
79891         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
79892         timespec.h.  Remove nanosleep.h.
79893
79894 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79895
79896         * m4/acl.m4: New file.
79897         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
79898         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
79899
79900 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79901
79902         * lib/acl.c, lib/acl.h: New files.
79903         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
79904
79905 2002-02-24  Jim Meyering  <meyering@lucent.com>
79906
79907         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
79908         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
79909         cause trouble.  Reported by Nelson Beebe.
79910
79911 2002-02-23  Paul Eggert  <eggert@twinsun.com>
79912
79913         * lib/path-concat.c (xpath_concat): Reorder code to pacify
79914         compilers that don't know that xalloc_die never returns.
79915
79916 2002-02-20  Jim Meyering  <meyering@lucent.com>
79917
79918         * lib/getdate.c: Regenerate using bison-1.33.
79919
79920 2002-02-17  Jim Meyering  <meyering@lucent.com>
79921
79922         * config/config.guess (main): Don't use `head -1'; it's no longer
79923         portable. Use `sed 1q' instead.
79924
79925 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
79926
79927         * m4/codeset.m4: Upgrade to gettext-0.11.
79928         * m4/gettext.m4: Upgrade to gettext-0.11.
79929         * m4/glibc21.m4: Upgrade to gettext-0.11.
79930         * m4/iconv.m4: Upgrade to gettext-0.11.
79931         * m4/isc-posix.m4: Upgrade to gettext-0.11.
79932         * m4/lcmessage.m4: Upgrade to gettext-0.11.
79933         * m4/lib-ld.m4: New file, from gettext-0.11.
79934         * m4/lib-link.m4: New file, from gettext-0.11.
79935         * m4/lib-prefix.m4: New file, from gettext-0.11.
79936         * m4/progtest.m4: Upgrade to gettext-0.11.
79937
79938 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79939
79940         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
79941         (jm_PREREQ): Use it.
79942
79943 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79944
79945         * lib/posixver.c, lib/posixver.h: New files.
79946         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79947
79948 2002-02-02  Paul Eggert  <eggert@twinsun.com>
79949             Bruno Haible  <bruno@clisp.org>
79950
79951         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
79952         (fwrite_success_callback): New declaration.
79953         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
79954         print_unicode_char. Call failure callback instead of error.
79955         (fwrite_success_callback): New function.
79956         (exit_failure_callback): New function.
79957         (fallback_failure_callback): New function.
79958         (print_unicode_char): Call unicode_to_mb.
79959
79960 2002-01-26  Jim Meyering  <meyering@lucent.com>
79961
79962         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
79963         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
79964
79965 2002-01-26  Jim Meyering  <meyering@lucent.com>
79966
79967         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
79968
79969 2002-01-22  Paul Eggert  <eggert@twinsun.com>
79970
79971         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
79972
79973 2002-01-22  Jim Meyering  <meyering@lucent.com>
79974
79975         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
79976         Otherwise, some versions of automake would omit the rule that makes
79977         Makefile from Makefile.in.
79978
79979 2002-01-21  Paul Eggert  <eggert@twinsun.com>
79980
79981         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
79982         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79983         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
79984         (memcoll): Set errno to zero if there is no error.
79985
79986         * lib/quotearg.c (quotearg_buffer_restyled):
79987         Fix bug with quoting buffers containing NUL when backslashing escapes.
79988         This bug was exposed by the other changes in this patch.
79989         (quotearg_n_options): New arg ARGSIZE.
79990         All callers changed.
79991         (quoting_options_from_style): New function.
79992         (quotearg_n_style): Use it.
79993         (quotearg_n_style_mem): New function.
79994
79995         * lib/quotearg.h (quotearg_n_style_mem): New function.
79996
79997 2002-01-19  Jim Meyering  <meyering@lucent.com>
79998
79999         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80000         Remove useless quotes: DF_PROG="df".
80001         * m4/strnlen.m4: New file.
80002
80003 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80004
80005         * lib/backupfile.c (ISDIGIT): Comment fix.
80006         * lib/getdate.y (ISDIGIT): Likewise.
80007         * lib/posixtm.c (ISDIGIT, year): Likewise.
80008         * lib/strverscmp.c (ISDIGIT): Likewise.
80009         * lib/userspec.c (ISDIGIT): Likewise.
80010
80011 2002-01-16  Jim Meyering  <meyering@lucent.com>
80012
80013         * lib/getdate.y: Add three semicolons, each just before a closing
80014         brace. Bison (as of version 1.31) no longer papers over that mistake.
80015
80016 2002-01-05  Jim Meyering  <meyering@lucent.com>
80017
80018         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80019
80020 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80021
80022         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80023         not silently exit merely because the output buffer happens to
80024         have nothing pending.
80025
80026 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80027
80028         See the big note in ../ChangeLog.
80029         * lib/human.c (suffixes): Prefer K to k for 1024.
80030         (generate_suffix_backwards): New function.
80031         (human_readable_inexact): Use it.
80032         * lib/xstrtol.c (__xstrtol): If there is no number but there
80033         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80034         Accept 'K' as well as 'k'.
80035
80036 2001-12-15  Jim Meyering  <meyering@lucent.com>
80037
80038         * lib/regex.h (__restrict_arr): Update from libc.
80039
80040         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80041         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80042         (STREQ): Define.
80043
80044 2001-12-14  Jim Meyering  <meyering@lucent.com>
80045
80046         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80047         Suggestion from Bruno Haible.
80048
80049 2001-12-10  Jim Meyering  <meyering@lucent.com>
80050
80051         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80052         xrealloc, Instead, include "xalloc.h".
80053         (initbuffer): Don't cast xmalloc return value to char*.
80054         (readline): Reword comment.
80055         Don't cast xrealloc return value to char*
80056         Return NULL, not 0.
80057
80058 2001-12-09  Jim Meyering  <meyering@lucent.com>
80059
80060         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80061         about `signed and unsigned type in conditional expression'.
80062         * lib/posixtm.c (posix_time_parse): Likewise.
80063
80064         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80065
80066         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80067         to avoid a pedantic warning.
80068
80069         * lib/getstr.c: Don't include assert.h.
80070         (getstr): Remove warning-evoking assertions.
80071         Return -1 if offset parameter is out of bounds.
80072         Change the type of a local from int to size_t.
80073
80074         * lib/strftime.c (my_strftime_localtime_r): Include this function
80075         definition in the `#if ! HAVE_TM_GMTOFF' block.
80076
80077         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80078         Include xalloc.h instead.
80079
80080 2001-12-02  Jim Meyering  <meyering@lucent.com>
80081
80082         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80083         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80084         included.
80085
80086         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80087         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80088
80089 2001-11-30  Akim Demaille  <akim@epita.fr>
80090
80091         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80092         before being defined.
80093
80094 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80095
80096         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80097         First arg is int, not unsigned.
80098         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80099         (SIZE_MAX, UINT_MAX): New macros.
80100         (quotearg_n_options): Abort if N is negative.
80101         Avoid overflow check on hosts where size_t is 64 bits and int
80102         is 32 bits, as overflow is impossible there.
80103         Fix off-by-one typo that caused unnecessary reallocation.
80104
80105 2001-11-27  Jim Meyering  <meyering@lucent.com>
80106
80107         * lib/tempname.c: Merge with version from libc.
80108         * lib/regex.c: Likewise.
80109
80110         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80111         systems for which STDC_HEADERS is 0, it was not included, resulting in
80112         a warning about an integer-to-pointer conversion problem with getenv.
80113         Reported by Volker Borchert.
80114
80115 2001-11-26  Jim Meyering  <meyering@lucent.com>
80116
80117         * lib/gtod.h: Remove file.
80118         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80119         * lib/gettimeofday.c: Don't include gtod.h.
80120         (GTOD_init): Remove function.
80121         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80122         Suggestion from Volker Borchert.
80123
80124 2001-11-23  Jim Meyering  <meyering@lucent.com>
80125
80126         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80127         it.
80128         * lib/hash.c (struct hash_table): Define it here instead.
80129
80130 2001-11-22  Jim Meyering  <meyering@lucent.com>
80131
80132         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80133
80134 2001-11-20  Jim Meyering  <meyering@lucent.com>
80135
80136         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80137         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80138
80139 2001-11-19  Jim Meyering  <meyering@lucent.com>
80140
80141         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80142         directory.  Use "conftestXXXXXX" as the template.
80143         Suggestion from Paul Eggert.
80144
80145         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80146         immediately, so the test doesn't mistakenly hit the max-open-files
80147         limit.
80148
80149 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80150
80151         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80152         (TEMPORARIES): New macro.
80153         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80154         removes an artificial limitation (e.g. HP-UX 10.20, where
80155         TMP_MAX is 17576).
80156
80157 2001-11-18  Jim Meyering  <meyering@lucent.com>
80158
80159         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80160
80161 2001-11-18  Jim Meyering  <meyering@lucent.com>
80162
80163         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80164         on SunOS 4.
80165
80166         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80167         files will be created before anything else.
80168
80169 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80170
80171         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80172         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80173
80174 2001-11-17  Jim Meyering  <meyering@lucent.com>
80175
80176         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80177         Prompted by a report from Bob Proulx.
80178
80179         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80180         Instead, require UTILS_FUNC_MKSTEMP.
80181
80182 2001-11-17  Jim Meyering  <meyering@lucent.com>
80183
80184         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80185         Now, that's done as part of AC_FUNC_STRTOD.
80186
80187 2001-11-17  Jim Meyering  <meyering@lucent.com>
80188
80189         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80190         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80191         rather than group writable.  Patch by Juan F. Codagnone.
80192
80193         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80194         xrealloc, Instead, include "xalloc.h".
80195
80196         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80197         Remove explicit declarations of xmalloc, xrealloc,
80198         and xstrdup.  Instead, include "xalloc.h".
80199
80200         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80201         unlocked-io.h.
80202         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80203         Likewise.
80204         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80205
80206         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80207         Reported by Padraig Brady.
80208
80209         * lib/mkstemp.c: #undef mkstemp.
80210         Include config.h.
80211         (rpl_mkstemp): Rename from mkstemp.
80212         Protoize.
80213
80214 2001-11-16  Jim Meyering  <meyering@lucent.com>
80215
80216         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80217         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80218         determine the amount of total physical memory, use pstat_getstatic.
80219         HPUX-11 doesn't define _SC_PHYS_PAGES.
80220         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80221         If sysconf couldn't be used to determine the amount of available
80222         physical memory, use both pstat_getstatic and pstat_getdynamic.
80223         Based on a patch from Bob Proulx.
80224
80225 2001-11-10  Jim Meyering  <meyering@lucent.com>
80226
80227         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80228         (jm_PREREQ): Use it.
80229
80230 2001-11-09  Jim Meyering  <meyering@lucent.com>
80231
80232         * m4/jm-macros.m4: Require autoconf-2.52f.
80233         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80234         Use these AC_-prefixed names, not the AM_-prefixed ones.
80235
80236         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80237
80238 2001-11-05  Jim Meyering  <meyering@lucent.com>
80239
80240         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80241
80242 2001-11-04  Jim Meyering  <meyering@lucent.com>
80243
80244         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80245         $DEFS.
80246
80247 2001-11-03  Jim Meyering  <meyering@lucent.com>
80248
80249         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80250         of AC_DEFUN.
80251
80252         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80253         know the name of the variable in the macro definition.
80254
80255 2001-11-03  Jim Meyering  <meyering@lucent.com>
80256
80257         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80258         in argmatch_to_argument call.
80259
80260         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80261         argument.
80262
80263         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80264         e.g., a fault due to an attempt to free a NULL pointer.
80265
80266 2001-11-01  Jim Meyering  <meyering@lucent.com>
80267
80268         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80269         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80270
80271 2001-11-01  Jim Meyering  <meyering@lucent.com>
80272
80273         * lib/dirfd.c, lib/dirfd.h: New files.
80274         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80275
80276         * lib/hash.c (hash_print) [TESTING]: Clean up.
80277
80278 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80279
80280         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80281         to avoid a warning if -Wall.
80282
80283 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80284
80285         * README: New file
80286         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80287         (per RMS's instructions, this is now the canonical source)
80288         * lgpl/, gpl/: New directories.
80289
80290 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80291
80292         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80293
80294 2001-10-21  Jim Meyering  <meyering@lucent.com>
80295
80296         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80297         this code would end up calling gettext even in packages built
80298         with --disable-nls.
80299         * lib/getopt.c (_): Likewise.
80300         * lib/regex.c (_): Likewise.
80301
80302 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80303
80304         * m4/error.m4 (jm_PREREQ_ERROR):
80305         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80306         AC_FUNC_STRERROR_R does that.
80307         Check for strerror declaration.
80308
80309         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80310         are supposed to have them these days.
80311         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80312         Merge changes from latest Autoconf CVS.
80313         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80314         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80315         POSIX decided to standardize on the int flavor of strerror_r.
80316
80317 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80318
80319         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80320         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80321         Use strerror_r that is only a macro, even if it is not a function.
80322         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80323         (private_strerror): Use prototypes, not old-style function definition.
80324         (print_errno_message): New function.
80325         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80326         char*-flavored one.
80327         (error_tail, error, error_at_line): Use it.
80328
80329 2001-10-11  Jim Meyering  <meyering@lucent.com>
80330
80331         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80332         and quote_n (1, ... to avoid clobbering a buffer.
80333
80334 2001-10-05  Jim Meyering  <meyering@lucent.com>
80335
80336         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80337         hash-pjw.h.
80338         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80339         * lib/hash-pjw.h: New file.
80340
80341 2001-09-30  Jim Meyering  <meyering@lucent.com>
80342
80343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80344         `struct fsstat' has the `f_fstypename' member.
80345         Use that to define FS_TYPE, which is now used to make
80346         the getfsstat link test tighter.
80347
80348 2001-09-30  Jim Meyering  <meyering@lucent.com>
80349
80350         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80351         Include <sys/ucred.h>, for Apple Darwin.
80352         Include sys/mount.h and sys/fs_types.h only if available.
80353         (FS_TYPE): Define.
80354         (read_filesystem_list): Use FS_TYPE.
80355
80356 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80357
80358         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80359         a boolean context.
80360
80361 2001-09-29  Jim Meyering  <meyering@lucent.com>
80362
80363         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80364         [one-argument getmntent function]): Include stdio.h before mntent.h.
80365         SunOS 4.1.x needs it for the declaration of `FILE'.
80366         Patch by Volker Borchert.
80367
80368         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80369         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80370         sys/fs_types.h, and make the link-test for getfsstat guard #include
80371         directives with appropriate #if HAVE_*_H tests so that we can
80372         detect getfsstat on Apple Darwin1.3.7 systems.
80373         Reported by Nelson Beebe.
80374         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80375
80376 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80377
80378         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80379         #defines strtoimax.  Also treat the other strto* functions
80380         like strtoimax.
80381
80382         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80383         Check for strtoul and strtoumax,
80384         as those declarations are made even in the signed case.
80385         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80386         Likewise, for strtol and strtoimax.
80387
80388 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80389
80390         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80391         #defines strtoimax.  Also treat the other strto* functions
80392         like strtoimax.
80393
80394         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80395         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80396         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80397
80398 2001-09-26  Jim Meyering  <meyering@lucent.com>
80399
80400         Most macros in unlocked-io.h had the wrong number of arguments.
80401         * lib/gen-uio: New script.
80402         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80403         * lib/unlocked-io.hin: Remove file.
80404         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80405         rather than trying to embed it here.
80406         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80407         Reported by Padraig Brady.
80408
80409 2001-09-25  Volker Borchert  <bt@teknon.de>
80410
80411         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80412         `result'.
80413
80414 2001-09-24  Jim Meyering  <meyering@lucent.com>
80415
80416         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80417
80418 2001-09-23  Jim Meyering  <meyering@lucent.com>
80419
80420         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80421         instead of the mere test for existence of mntent.h.  The latter
80422         would get a false-positive on AIX 3.4 systems.
80423         In the outer getmntent if-block, don't die if neither of the getmntent
80424         tests succeeds.  Instead, just fall through and continue with the
80425         remaining tests.
80426
80427 2001-09-23  Jim Meyering  <meyering@lucent.com>
80428
80429         * lib/mountlist.c: Remove useless parentheses in #if directives.
80430         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80431         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80432
80433 2001-09-22  Jim Meyering  <meyering@lucent.com>
80434
80435         * m4/gettext.m4: New file.  From gettext.
80436         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80437         * m4/progtest.m4: Likewise
80438         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80439         * m4/glibc21.m4: Likewise.
80440
80441         * m4/libintl.m4: Remove.  No longer used.
80442
80443 2001-09-22  Jim Meyering  <meyering@lucent.com>
80444
80445         * lib/localcharset.c: Update from latest gettext.
80446         * lib/config.charset: Likewise.
80447
80448 2001-09-20  Jim Meyering  <meyering@lucent.com>
80449
80450         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80451         strtoimax.
80452         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
80453         strtoumax.
80454
80455 2001-09-20  Jim Meyering  <meyering@lucent.com>
80456
80457         * lib/xstrtol.c (strtoimax): Guard declaration with
80458         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
80459         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
80460         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
80461         (strtoumax): Likewise, for completeness (it wasn't necessary).
80462
80463 2001-09-17  Paul Eggert  <eggert@twinsun.com>
80464
80465         * lib/strtoimax.c (HAVE_LONG_LONG):
80466         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
80467         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
80468         to work around bug in IBM C compiler.
80469
80470 2001-09-17  Jim Meyering  <meyering@lucent.com>
80471
80472         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80473         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80474         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80475         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80476         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80477         whenever the right hand side need not be expanded by the shell.
80478
80479 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80480
80481         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80482         library.  It's not correct, as some older glibcs are buggy.
80483         fnmatch wasn't fixed until glibc 2.2.
80484
80485         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80486         special shell magic here.
80487
80488 2001-09-16  Jim Meyering  <meyering@lucent.com>
80489
80490         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80491         * m4/jm-macros.m4: Require it.
80492
80493 2001-09-16  Jim Meyering  <meyering@lucent.com>
80494
80495         * lib/mkdir.c: New file.
80496
80497 2001-09-15  Jim Meyering  <meyering@lucent.com>
80498
80499         * m4/jm-macros.m4: Check for help2man.
80500
80501 2001-09-11  Jim Meyering  <meyering@lucent.com>
80502
80503         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80504         The body, by Paul Eggert, was moved here from configure.in.
80505         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80506
80507 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80508
80509         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80510         (jm_PREREQ): Use it.
80511
80512 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80513
80514         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80515         Use ssize_t, not int, to store result of readlink.
80516         Check for ssize_t overflow as well as size_t overflow,
80517         as POSIX says the result of readlink is implementation-defined
80518         when ssize_t overflows.
80519         Remove unnecessary cast to char*.
80520         Use free+malloc instead of realloc, as the storage doesn't need
80521         to be preserved and it's clearer and can be more efficient that way.
80522         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80523         * lib/xreadlink.h (xreadlink): Update prototype.
80524
80525 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80526
80527         * lib/xgetcwd.c: Revert some of the previous change; intead,
80528         fix the HAVE_GETCWD_NULL code to behave more like the
80529         !HAVE_GETCWD_NULL code used to.
80530
80531         Include "xalloc.h".
80532         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80533         invoke xalloc_die.
80534
80535 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80536
80537         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
80538         sys/param.h, as pathmax.h includes them.
80539
80540 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80541
80542         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
80543         (jm_PREREQ_XGETCWD): New macro.
80544
80545         * m4/getcwd.m4: New file.
80546
80547 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80548
80549         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
80550         like the HAVE_GETCWD_NULL code.
80551         Include pathmax.h if not HAVE_GETCWD.
80552         Do not include xalloc.h.
80553         (INITIAL_BUFFER_SIZE): New symbol.
80554         Do not use xmalloc / xrealloc, since the caller is responsible for
80555         handling errors.  Preserve errno around `free' during failure.
80556         Do not overrun buffer when using getwd.
80557
80558 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80559
80560         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
80561         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
80562         getcwd (NULL, 0).
80563
80564 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80565
80566         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
80567         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
80568         spotted by Jim Meyering.
80569
80570 2001-09-03  Jim Meyering  <meyering@lucent.com>
80571
80572         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
80573         failure.
80574
80575 2001-09-02  Jim Meyering  <meyering@lucent.com>
80576
80577         * lib/error.c: Update from GNU libc.
80578
80579 2001-09-01  Jim Meyering  <meyering@lucent.com>
80580
80581         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
80582         Used by df.
80583
80584 2001-09-01  Jim Meyering  <meyering@lucent.com>
80585
80586         * lib/xreadlink.c: New file.
80587         * lib/xreadlink.h: New file.
80588         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
80589         xreadlink.h.
80590
80591         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
80592         doesn't conflict with sparc Solaris 7's definition in
80593         /usr/include/sys/int_types.h.
80594
80595         * lib/exclude.c: Use `""', not `<>' to #include non-system header
80596         files.
80597         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
80598         and strncasecmp as r-values.  Unixware didn't have declarations.
80599
80600 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80601
80602         * lib/xstrtol.h: Add copyright notice.
80603         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
80604         LONGINT_INVALID_SUFFIX_CHAR.
80605
80606 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80607
80608         * lib/xstrtol.c (strtoimax): New decl.
80609
80610 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80611
80612         * lib/xgetcwd.c: Don't include pathmax.h.
80613         Include stdlib.h and unistd.h if available.
80614         Include xalloc.h.
80615         (xmalloc, xstrdup, free): Remove decls.
80616         (xgetcwd): Don't assume sizes fit in unsigned.
80617         Check for overflow when computing sizes.
80618         Simplify reallocation code.
80619
80620 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80621
80622         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
80623         a directory's st_size can have an arbitrary value, so the old
80624         usage could waste an arbitrary amount of memory.  All uses
80625         changed.
80626         * lib/savedir.h: Update prototype.
80627
80628 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80629
80630         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
80631
80632         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
80633         old strtoimax.c.
80634
80635         Also, make the following further changes to make this file's
80636         configuration more similar to that of strtol.c:
80637         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
80638         (strtoumax, uintmax_t, strtoull, strtol): Remove.
80639         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
80640         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
80641         changed to signed values.
80642
80643         And make the following changes as well:
80644         Fix copyright notice, as 1999 was missing.
80645         (verify): New macro.
80646         (strtoimax): Check sizes at compile-time, not run-time.
80647         Prefer strtol to strtoll if both work.
80648         (main): Remove; it was not that useful and was a pain to maintain.
80649
80650         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
80651
80652 2001-08-31  Jim Meyering  <meyering@lucent.com>
80653
80654         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
80655         Use an initial, malloc'd, buffer of length 128 rather than
80656         a statically allocated one of length 1024.
80657
80658 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80659
80660         Simplify code, partly by assuming autoconf 2.52 semantics.
80661
80662         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
80663
80664         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
80665         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
80666         All uses removed.
80667         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
80668         Move AC_REQUIRE to next-to-top level, to avoid confusion.
80669         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
80670         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
80671         jm_AC_HEADER_INTTYPES_H.
80672         * m4/jm-macros.m4 (jm_MACROS): Likewise.
80673
80674         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
80675
80676         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80677         Quote first arg of AC_DEFUN.
80678         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
80679         since they are needed to parse the include file even if we need
80680         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
80681         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
80682         but with opposite signedness.
80683
80684 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80685
80686         Merge 'exclude' changes from tar 1.13.22.
80687         This fixes one or two unlikely storage allocation overflow bugs,
80688         but doesn't change user-visible behavior otherwise.
80689
80690 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80691
80692         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
80693         (jm_PREREQ_EXCLUDE): New macro.
80694
80695 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80696
80697         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
80698         tm to be declared.
80699
80700 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80701
80702         * lib/hash.c: Remove '2001' from copyright notice.
80703
80704 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80705
80706         * lib/full-write.h: New file.
80707         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
80708         * lib/full-write.c: Correct credits, as cccp.c no longer
80709         exists and anyway it was so heavily changed from the old cccp
80710         code as to be unrecognizable.  Include full-write.h.
80711         (full_write): Return size_t, with short writes meaning failure.
80712         All callers changed.  This fixes a bug with large buffers
80713         on 64-bit hosts.
80714         * lib/utime.c: Include full-write.h.
80715
80716 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80717
80718         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
80719         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
80720         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
80721         Include if available.
80722         (<xalloc.h>): Include
80723         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
80724         (verify): New macro.  Use it to verify that EXCLUDE macros do not
80725         collide with FNM macros.
80726         (struct patopts): New struct.
80727         (struct exclude): Use it, as exclude patterns now come with options.
80728         (new_exclude): Support above changes.
80729         (new_exclude, add_exclude_file):
80730         Initial size must now be a power of two to simplify overflow checking.
80731         (free_exclude, fnmatch_no_wildcards): New function.
80732         (excluded_filename): No longer requires options arg, as the options
80733         are determined by add_exclude.  Now returns bool, not int.
80734         (excluded_filename, add_exclude):
80735         Add support for the fancy new exclusion options.
80736         (add_exclude, add_exclude_file): Now takes int options arg.
80737         Check for arithmetic overflow when computing sizes.
80738         (add_exclude_file): xrealloc might modify errno, so don't
80739         realloc until after errno might be used.
80740
80741         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
80742         New macros.
80743         (free_exclude): New decl.
80744         (add_exclude, add_exclude_file): Now takes int options arg.
80745         (excluded_filename): No longer requires options arg, as the options
80746         are determined by add_exclude.  Now returns bool, not int.
80747
80748 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80749
80750         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
80751
80752 2001-08-27  Jim Meyering  <meyering@lucent.com>
80753
80754         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
80755
80756         * lib/version-etc.c (N_): Remove definition.
80757         Revert most of last change.
80758         Instead, simply don't mark the `Copyright...' string for translation.
80759         Based on advice from Paul Eggert.
80760
80761         * lib/strtoxmax.c: Tweak comment.
80762
80763 2001-08-26  Jim Meyering  <meyering@lucent.com>
80764
80765         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
80766
80767         * m4/xstrtoimax.m4: New file.
80768         * m4/xstrtoumax.m4: Add comments explaining why we
80769         AC_REPLACE_FUNCS(strtol).
80770
80771 2001-08-26  Jim Meyering  <meyering@lucent.com>
80772
80773         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
80774         of copyright with `%s' so translators don't get an untranslated
80775         message in 2002.
80776         (COPYRIGHT_YEAR): Define.
80777         (version_etc): Use fprintf rather than fputs.
80778         Suggestion from Ulrich Drepper.
80779
80780         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
80781
80782         * lib/strtoll.c: New file, from GNU libc.
80783         * lib/xstrtoimax.c: New file.
80784
80785         * lib/xstrtol.h: Add xstrtoimax.
80786         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
80787         * lib/strtoimax.c: New file.  Likewise, but first define
80788         STRTOUXMAX_SIGNED.
80789
80790         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
80791         ...
80792         * lib/strtoxmax.c: ... then renamed to this.
80793
80794 2001-08-18  Paul Eggert  <eggert@twinsun.com>
80795
80796         * m4/inttypes.m4: Add AC_PREREQ(2.13).
80797         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
80798         (jm_AC_TYPE_INTMAX_T): New macro.
80799         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
80800
80801         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
80802
80803         * m4/longlong.m4: Renamed from ulonglong.m4.
80804         * m4/inttypes.m4: Renamed from inttypes_h.m4.
80805         * m4/uintmax_t.m4: Removed.
80806
80807 2001-08-13  Paul Eggert  <eggert@twinsun.com>
80808
80809         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
80810         Port to Solaris 8, where 'sed' requires a space after the 'r'
80811         command, and where sh dislikes "$/".  Clean up the spacing a bit.
80812         Redirect output to $tmp just once.
80813
80814 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
80815
80816         * lib/addext.c (<errno.h>): Include.
80817         (errno): Declare if not defined.
80818         (addext): Work correctly when pathconf returns -1 and leaves
80819         errno alone because there is no limit.  Also, work even if
80820         pathconf returns a value greater than SIZE_MAX.
80821
80822 2001-08-12  Jim Meyering  <meyering@lucent.com>
80823
80824         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
80825         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
80826         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
80827         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
80828         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
80829         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
80830         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
80831         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
80832         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
80833         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
80834         utime.m4, utimes.m4, xstrtoumax.m4:
80835         Quote the first argument in each use of AC_DEFUN.
80836
80837 2001-08-12  Jim Meyering  <meyering@lucent.com>
80838
80839         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
80840         Simply `return getcwd (NULL, 0);'.
80841         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
80842         Use 1300 as initial value for length, not PATH_MAX.
80843
80844         * lib/pathmax.h: Clean up cpp syntax.
80845
80846 2001-08-12  Jim Meyering  <meyering@lucent.com>
80847
80848         * lib/gettimeofday.c: New file.
80849         * lib/gtod.h: New file.
80850         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
80851
80852 2001-08-05  Jim Meyering  <meyering@lucent.com>
80853
80854         * m4/jm-macros.m4: Require autoconf-2.52.
80855
80856 2001-08-04  Jim Meyering  <meyering@lucent.com>
80857
80858         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
80859         stmt, to get in sync with glibc.
80860
80861 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80862
80863         The following changes are from gettext 0.10.39 as maintained by
80864         Bruno Haible.
80865
80866         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
80867         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
80868         with inverted sense.  All uses changed.
80869
80870         * lib/mbswidth.c: Don't include <limits.h>.
80871         Include <stdlib.h> and <string.h> unconditionally.
80872         (iswcntrl, mbsinit, ISCNTRL): New macros.
80873         (mbsnwidth): Use K&R style function declarations.
80874         Don't bother checking for MB_LEN_MAX == 1, since the compiler
80875         can optimize it when MB_CUR_MAX == 1.
80876         The width of control characters is zero, not 1.
80877
80878 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80879
80880         The following changes are from gettext 0.10.39 as maintained by
80881         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
80882
80883         * m4/codeset.m4: Upgrade to serial AM1.
80884         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
80885         all uses changed.  Quote first arg of AC_DEFUN.
80886         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
80887
80888         * m4/iconv.m4: Upgrade to serial AM2.
80889         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
80890         Add --with-libconv-prefix.
80891         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
80892         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
80893         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
80894         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
80895         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
80896
80897         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
80898         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
80899         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
80900         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
80901         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
80902         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
80903         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
80904         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
80905         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80906
80907         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
80908         string.h any more.
80909
80910         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
80911         not the default value.
80912
80913         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
80914         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
80915         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
80916         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
80917         Also check for iswcntrl, used for wcwidth fallback.
80918         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
80919         to Autoconf 2.13.
80920
80921 2001-08-03  Jim Meyering  <meyering@lucent.com>
80922
80923         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
80924         as it was in the original.  Reported by Paul Eggert.
80925
80926 2001-07-16  Jim Meyering  <meyering@lucent.com>
80927
80928         * m4/gettimeofday.m4: New file.
80929         Prompted by a report from Bernhard Baehr.
80930
80931 2001-07-15  Jim Meyering  <meyering@lucent.com>
80932
80933         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
80934         stuff. Now it's in ../Makefile.cfg.
80935
80936 2001-07-15  Jim Meyering  <meyering@lucent.com>
80937
80938         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
80939         (BUILT_SOURCES): Add unlocked-io.h.
80940         (io_functions): Define.
80941         (unlocked-io.h): New rule.
80942         (DISTCLEANFILES): Add unlocked-io.h.
80943         (all-local): Depend on unlocked-io.h, to ensure it is created.
80944
80945         * lib/unlocked-io.hin: New file
80946
80947         * lib/regex.c: Update from glibc.
80948
80949 2001-07-05  Jim Meyering  <meyering@lucent.com>
80950
80951         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
80952         recommendation.
80953         (libfetish_a_SOURCES): Put all .h files here instead.
80954         Remove a thus-exposed (better checks in automake) duplicate and
80955         two unnecessary .h files.
80956
80957 2001-07-04  Jim Meyering  <meyering@lucent.com>
80958
80959         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
80960         that generates jm-glibc-io.m4 so that it doesn't trigger any make
80961         distcheck failure.
80962
80963 2001-07-02  Jim Meyering  <meyering@lucent.com>
80964
80965         The following changes were prompted by suggestions from Bruno Haible.
80966
80967         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
80968         is now generated.
80969         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
80970         definition of EXTRA_DIST.
80971         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
80972         ensure that the generated file is created/updated whenever the list
80973         of $(unlocked_functions) is changed.
80974         (jm-glibc-io.m4): New rule.
80975         (unlocked-io.h): New rule -- currently unused.
80976
80977 2001-06-24  Jim Meyering  <meyering@lucent.com>
80978
80979         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
80980         unmatched right bracket, rather than kludging it with an extra,
80981         falsely-matching quote in a comment.  Patch by Akim Demaille.
80982
80983 2001-06-11  Jim Meyering  <meyering@lucent.com>
80984
80985         * lib/regex.c: Update from GNU libc.
80986
80987 2001-05-27  Jim Meyering  <meyering@lucent.com>
80988
80989         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
80990         Check for ut_type in struct utmp.
80991
80992 2001-05-27  Jim Meyering  <meyering@lucent.com>
80993
80994         * lib/readutmp.h (UT_TYPE): Define.
80995
80996 2001-05-24  Jim Meyering  <meyering@lucent.com>
80997
80998         * lib/argmatch.c: Include "quote.h".
80999         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81000         quote function.  Reported by Göran Uddeborg.
81001
81002 2001-05-22  Jim Meyering  <meyering@lucent.com>
81003
81004         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81005         now that we use the package-supplied version unconditionally.
81006         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81007
81008 2001-05-21  Jim Meyering  <meyering@lucent.com>
81009
81010         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81011         shell syntax errors.
81012
81013 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81014
81015         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81016
81017 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81018
81019         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81020         Don't bother to check library strftime, since
81021         we'll be using our own my_strftime function anyway.
81022         Define my_strftime instead of strftime.
81023
81024 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81025
81026         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81027         which is not yet declared.
81028
81029 2001-05-15  Jim Meyering  <meyering@lucent.com>
81030
81031         * m4/regex.m4: Use proper quoting so brackets appear in the test
81032         program.
81033         Reported by, and with help from, Bruno Haible.
81034
81035 2001-05-13  Jim Meyering  <meyering@lucent.com>
81036
81037         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81038         undefined.
81039
81040 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81041
81042         dirname code cleanup.  base_name now behaves more compatibly
81043         with POSIX basename when given file names that have trailing
81044         slashes, and similarly for dir_name.  Add new primitives
81045         base_len and dir_len.  Put the directory-name-related decls
81046         into dirname.h.
81047
81048         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81049         * lib/backupfile.c (base_name): Likewise.
81050         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81051         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81052         * lib/makepath.c (strip_trailing_slashes): Likewise.
81053         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81054         ISSLASH): Likewise.
81055         * lib/rename.c (strip_trailing_slashes): Likewise.
81056         * lib/same.c (base_name): Likewise.
81057         * lib/stripslash.c (ISSLASH): Likewise.
81058
81059         * lib/addext.c: Include <dirname.h> after size_t is defined.
81060         * lib/backupfile.c: Likewise.
81061
81062         * lib/addext.c (addext): Use base_len to trim redundant
81063         trailing slashes instead of doing it ourselves.
81064         But do not trim the last slash if it is not redundant.
81065
81066         * lib/backupfile.c (find_backup_file_name,
81067         max_backup_version): Use base_len instead of rolling it ourselves.
81068         Handle the case of "" and (on DOS) "C:" correctly.
81069
81070         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81071         needed. Include <string.h>, <dirname.h>.
81072         (base_name): Allow file names ending in slashes, other than names
81073         that are all slashes.  In this case, return the basename followed
81074         by the slashes.  This is more general, and can be used in places
81075         where the original base_name purposely had an assertion failure.
81076         (base_len): New function.
81077
81078         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81079         Do not include <assert.h>; no longer needed.
81080         Include xalloc.h.
81081         (memrchr): Remove decl.
81082         (dir_name_r): Remove.
81083         (dir_len): Renamed from dirlen.  All callers changed.
81084         Rewrite in terms of base_name, for simplicity and consistency.
81085         (dir_name): Never return NULL.  All callers changed.
81086         Do not include <stdlib.h> in test program; no longer needed.
81087         return 0; is fine for test program.
81088
81089         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81090         New macros.
81091         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81092
81093         * lib/path-concat.c (path_concat): Use base_len to compute
81094         base length, not strlen; this means we cannot rely on memcpy
81095         to null-terminate.
81096
81097         * lib/same.c (STREQ): Remove.
81098         (same_name): Handle the case where the basename ends in trailing '/'.
81099
81100         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81101         a slash was stripped.  Do not strip the last slash after a
81102         file system prefix.
81103
81104 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81105
81106         * lib/Makefile.am (libfetish_a_SOURCES):
81107         Add strftime.c, since we now compile it on all hosts.
81108
81109         * lib/strftime.c (my_strftime):
81110         Define to nstrftime if emacs, but only if my_strftime is not defined.
81111         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81112         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81113         Add one more extra argument: a nanoseconds value.
81114         All uses changed.
81115         (ns): New macro.
81116         (my_strftime function): Add %N format.
81117         (emacs_strftimeu): Renamed from emacs_strftime,
81118         with extra ut argument.
81119
81120 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81121
81122         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81123
81124 2001-04-21  Jim Meyering  <meyering@lucent.com>
81125
81126         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81127         doesn't interfere.
81128
81129 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81130
81131         * m4/ftruncate.m4: Check for chsize.
81132         Link with ftruncate.o unconditionally if ftruncate is missing.
81133         This was required when cross-compiling to i586-mingw32msvc.
81134
81135 2001-04-08  Jim Meyering  <meyering@lucent.com>
81136
81137         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81138         recomputed; that's necessary when the offset spans a DST transition.
81139         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81140
81141 2001-04-02  Jim Meyering  <meyering@lucent.com>
81142
81143         * lib/regex.h, regex.c: Update from GNU libc.
81144
81145 2001-03-24  Jim Meyering  <meyering@lucent.com>
81146
81147         * m4/jm-macros.m4: Require autoconf-2.49d.
81148
81149 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81150
81151         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81152
81153 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81154
81155         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81156
81157 2001-03-17  Jim Meyering  <meyering@lucent.com>
81158
81159         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81160         now that the version in autoconf is equivalent.
81161         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81162
81163         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81164         Suggestion from Akim Demaille.
81165
81166         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81167         (jm_PREREQ_TEMPNAME): New function.
81168
81169 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81170
81171         * lib/tempname.c (uint64_t): Define to uintmax_t if
81172         not defined, and if UINT64_MAX is not defined.
81173         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81174         Reported by John David Anglin.
81175
81176 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81177
81178         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81179         resolve alias if codeset is empty.
81180         * lib/config.charset (BeOS): Use wildcard syntax.
81181
81182 2001-03-13  Jim Meyering  <meyering@lucent.com>
81183
81184         * lib/path-concat.c (path_concat)
81185         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81186         concatenating e.g., `C:' and `foo'.
81187         From Bruno Haible.
81188
81189 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81190
81191         * lib/localcharset.c (locale_charset): Don't use
81192         setlocale(LC_CTYPE,NULL). Don't return NULL.
81193         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81194
81195 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81196
81197         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81198         support for DOS/DJGPP.
81199
81200 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81201
81202         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81203         lacks mkstemp.  Compile our own tempname.c if we compile our own
81204         mkstemp.c, as mkstemp relies on tempname.
81205
81206 2001-03-01  Jim Meyering  <meyering@lucent.com>
81207
81208         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81209         AH_VERBATIM really does output its argument verbatim.
81210
81211 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81212
81213         * lib/Makefile.am (libfetish_a_SOURCES):
81214         Add dup-safer.c, fopen-safer.c.
81215         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81216
81217         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81218         * lib/unistd-safer.h: New files.
81219
81220 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81221
81222         The mkstemp replacement is taken from glibc 2.2.2, with some
81223         portability fixes for use outside glibc, as follows:
81224
81225         * lib/tempname.c (struct_stat64): New macro.
81226         (direxists, __gen_tempname): Use it.
81227         This avoids a portability problem with Solaris 8.
81228
81229         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81230         (<stddef.h>, <stdint.h>, <string.h>):
81231         Include only if STDC_HEADERS || _LIBC.
81232         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81233         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81234         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81235         (__set_errno): Define this macro if <errno.h> doesn't.
81236         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81237         Define these macros if <stdio.h> doesn't.
81238         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81239         Define these macros if <sys/stat.h>
81240         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81241         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81242         __xstat64): Define if not _LIBC.
81243         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81244         (__gen_tempname): Invoke gettimeofday only if
81245         HAVE_GETTIMEOFDAY || _LIBC;
81246         otherwise, fall back on plain "time".
81247         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81248
81249         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81250
81251         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81252
81253 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81254
81255         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81256
81257 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81258
81259         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81260         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81261         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81262         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81263
81264 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81265
81266         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81267         Remove workaround macros for hosts that have mbrtowc but not
81268         mbstate_t, as we now insist on proper declarations for both
81269         before using mbrtowc.
81270
81271 2001-02-17  Jim Meyering  <meyering@lucent.com>
81272
81273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81274         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81275         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81276         UnixWare 7.1.1.
81277
81278         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81279         rather than AC_CACHE_VAL.
81280
81281 2001-02-17  Jim Meyering  <meyering@lucent.com>
81282
81283         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81284         around included file name.
81285
81286         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81287
81288         * lib/strftime.c: Update from GNU libc (the only changes were to
81289         comments).
81290
81291 2001-02-17  Jim Meyering  <meyering@lucent.com>
81292
81293         * lib/regex.c: Update from libc.
81294
81295 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81296
81297         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81298         clash.
81299
81300 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81301
81302         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81303         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81304         Reported by Mark Hounschell via Paul Eggert.
81305
81306 2001-02-07  Jim Meyering  <meyering@lucent.com>
81307
81308         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81309
81310 2001-02-05  Jim Meyering  <meyering@lucent.com>
81311
81312         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81313         it includes the patch required for `large file' support with at least
81314         HP-UX's 10.20 /bin/cc.
81315
81316 2001-02-03  Jim Meyering  <meyering@lucent.com>
81317
81318         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81319         AS_IF, now that it works once again (mysteriously).
81320         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81321
81322 2001-01-30  Jim Meyering  <meyering@lucent.com>
81323
81324         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81325         * m4/chown.m4: Rename conftestchown to conftest.chown.
81326         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81327         s/conftestdir2/conftest.d2/.
81328         * m4/utimes.m4: s/conftestdata/conftest.data/
81329         Inspired by Pavel Roskin's change in autoconf.
81330
81331 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81332
81333         * lib/config.charset: Update for FreeBSD 4.2.
81334
81335 2001-01-27  Jim Meyering  <meyering@lucent.com>
81336
81337         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81338         a use of AS_IF.
81339         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81340
81341 2001-01-26  Jim Meyering  <meyering@lucent.com>
81342
81343         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81344         quotearg.c includes it.
81345
81346 2001-01-26  Jim Meyering  <meyering@lucent.com>
81347
81348         * lib/quotearg.c: Include stddef.h.
81349         * lib/quote.c: Include stddef.h.
81350         Reported by Axel Kittenberger.
81351
81352         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81353         line in double quotes so that it evokes a better diagnostic.
81354         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81355         Reported by Axel Kittenberger.
81356
81357 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81358
81359         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81360         as if it was a `charset'.
81361
81362 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81363
81364         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81365         has const.
81366
81367 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81368
81369         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81370         to avoid a warning.  Add back 'const' to inptr.
81371
81372 2001-01-20  Jim Meyering  <meyering@lucent.com>
81373
81374         Be sure that headers are checked before used in code compiled
81375         for the type checks.
81376         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81377         In place of that, invoke jm_CHECK_ALL_TYPES.
81378         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81379         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81380         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81381         The check for ssize_t was mistakenly run before the test for unistd.h.
81382
81383         The configure-time check for stdbool.h was missing.
81384         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81385         (jm_PREREQ_HASH): New function.
81386
81387 2001-01-17  Jim Meyering  <meyering@lucent.com>
81388
81389         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81390         for autoconf-2.49c.
81391         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81392
81393 2001-01-16  Jim Meyering  <meyering@lucent.com>
81394
81395         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81396         From Bruno Haible.
81397
81398 2001-01-14  Jim Meyering  <meyering@lucent.com>
81399
81400         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81401         foo and bar.  Create conftestdir/ in the script, not in the C code.
81402         Remove directories in the script, not in the C code.
81403         Remove conftestdir{,2} before trying to create the directory.
81404         Make the entire configure script fail if the mkdir fails.
81405
81406 2001-01-14  Jim Meyering  <meyering@lucent.com>
81407
81408         * lib/rename.c: New file.  From Volker Borchert.
81409         Include stdlib.h, string.h or strings.h, and xalloc.h.
81410         Use strip_trailing_slashes rather than open-coding it.
81411
81412 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81413
81414         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81415
81416 2001-01-03  Jim Meyering  <meyering@lucent.com>
81417
81418         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81419         of local `inptr' to avoid warning with some system declarations of
81420         iconv.
81421
81422 2001-01-02  Volker Borchert  <bt@teknon.de>
81423
81424         * m4/rename.m4: New file.
81425         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81426
81427 2001-01-01  Jim Meyering  <meyering@lucent.com>
81428
81429         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81430         even on systems with utmpx.h.  It's necessary for the declaration of
81431         utmp's ut_user member.  Reported by Andreas Jaeger.
81432
81433         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81434         available. They are required for the declarations of getgrgid and
81435         getpwuid resp.
81436         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81437         Reported by Andreas Jaeger.
81438
81439 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81440
81441         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81442         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81443         so `make install' also works in VPATH builds.
81444
81445 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81446
81447         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81448         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81449         can be used in subdirectories.
81450
81451 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81452
81453         * lib/modechange.c: Do not assume that mode_t uses the
81454         traditional octal encoding.  E.g. "chmod 1 FOO" should set
81455         the other-execute bit of FOO even if S_IXOTH != 1.
81456
81457         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
81458         WOTH, XOTH, ALLM): New macros.
81459         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
81460          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
81461         Use them.
81462         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
81463         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
81464         (mode_compile):
81465         No need to use uintmax_t; unsigned long is long enough.
81466         Don't bother to get suffix since we don't use it.
81467
81468 2000-12-26  Jim Meyering  <meyering@lucent.com>
81469
81470         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81471         better with autoheader.
81472
81473 2000-12-24  Jim Meyering  <meyering@lucent.com>
81474
81475         * lib/hash.c (is_prime): Return explicit boolean values.
81476         (hash_get_first): Return NULL to appease Irix5.6's 89.
81477         Reported by Nelson Beebe.
81478
81479 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81480
81481         * lib/localcharset.c (locale_charset): Add support for Win32.
81482
81483 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81484
81485         * lib/physmem.h, lib/physmem.c: New files.
81486
81487         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81488         (noinst_HEADERS): Add physmem.h.
81489
81490         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81491         't' for compatibility with Solaris 8 sort.
81492
81493 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81494
81495         * lib/config.charset: Add support for BeOS.
81496
81497 2000-12-17  Jim Meyering  <meyering@lucent.com>
81498
81499         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81500         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81501
81502 2000-12-16  Jim Meyering  <meyering@lucent.com>
81503
81504         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81505         N and M) would have treated it like `chown N:N FILE'.
81506
81507         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81508
81509 2000-12-16  Jim Meyering  <meyering@lucent.com>
81510
81511         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81512         SHELLS_FILE to a file name that's useful on djgpp systems.
81513         Include stdlib.h.
81514         (ADDITIONAL_DEFAULT_SHELLS): Define.
81515         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81516         Based mostly on a patch from Prashant TR.
81517
81518 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81519
81520         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81521         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81522         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81523
81524 2000-12-08  Andreas Schwab  <schwab@suse.de>
81525
81526         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81527         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81528
81529 2000-12-07  Jim Meyering  <meyering@lucent.com>
81530
81531         * lib/stripslash.c (ISSLASH): Define.
81532         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81533         `/'.
81534         From Prashant TR.
81535
81536         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
81537         (dir_name_r): Declare this function as static.
81538         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
81539         manifest itself on a name containing a mix of slashes and
81540         backslashes.
81541         Make this function work with names starting with a DOS-style
81542         drive letter and colon prefix.
81543         (dir_name): Append `.' if necessary.
81544         Based mostly on patches from Prashant TR and Eli Zaretskii.
81545
81546         * lib/dirname.h (dir_name_r): Remove prototype.
81547
81548 2000-12-06  Paul Eggert  <eggert@twinsun.com>
81549
81550         * m4/off_t-format.m4: Remove this file.
81551         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
81552
81553 2000-12-06  Jim Meyering  <meyering@lucent.com>
81554
81555         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
81556         replacement strtoull, we may well need the replacement strtoul, too.
81557         Check for declarations of strtoul and strtoull.
81558         Check for strtol.  Mainly as a cue to cause automake to include
81559         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
81560         Check for limits.h -- strtol.c needs it.
81561
81562 2000-12-05  Jim Meyering  <meyering@lucent.com>
81563
81564         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
81565
81566 2000-12-04  Jim Meyering  <meyering@lucent.com>
81567
81568         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
81569         Also include memory.h, stdlib.h, unistd.h if appropriate.
81570         Reported by Andreas Jaeger (conflicting declaration of malloc).
81571
81572 2000-12-02  Jim Meyering  <meyering@lucent.com>
81573
81574         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
81575         * m4/jm-macros.m4 (jm_MACROS): require it.
81576
81577 2000-12-02  Jim Meyering  <meyering@lucent.com>
81578
81579         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
81580
81581 2000-12-01  Paul Eggert  <eggert@twinsun.com>
81582
81583         * lib/memrchr.c: Include <config.h> before any system include file.
81584
81585 2000-11-30  Jim Meyering  <meyering@lucent.com>
81586
81587         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
81588
81589 2000-11-30  Jim Meyering  <meyering@lucent.com>
81590
81591         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
81592
81593 2000-11-29  Paul Eggert  <eggert@twinsun.com>
81594
81595         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
81596
81597 2000-11-26  Jim Meyering  <meyering@lucent.com>
81598
81599         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
81600
81601 2000-11-22  Paul Eggert  <eggert@twinsun.com>
81602
81603         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
81604         size of (size_t) -1; it's not portable.
81605
81606 2000-11-17  Jim Meyering  <meyering@lucent.com>
81607
81608         * lib/strstr.c: Update from GNU libc.
81609
81610 2000-11-17  Akim Demaille  <akim@epita.fr>
81611
81612         * lib/obstack.h: Formatting changes.
81613         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
81614         prevent type checking.
81615         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
81616         cast the value to (void *): assigning a `foo *' to a `void *'
81617         variable is valid.
81618         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
81619
81620 2000-11-16  Jim Meyering  <meyering@lucent.com>
81621
81622         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
81623
81624 2000-11-11  Jim Meyering  <meyering@lucent.com>
81625
81626         * lib/error.c: Add a couple #includes, merging from GNU libc version.
81627
81628 2000-11-10  Jim Meyering  <meyering@lucent.com>
81629
81630         * lib/obstack.h: Update from GNU libc.
81631         * lib/obstack.c: Likewise.
81632
81633 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
81634
81635         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
81636
81637 2000-11-06  Paul Eggert  <eggert@twinsun.com>
81638
81639         * lib/getusershell.c (setusershell): Use rewind rather than
81640         fseek/fseeko, to avoid configuration hassles with fseeko.
81641         Don't bother opening SHELLS_FILE if shellstream is NULL;
81642         it's not necessary.
81643
81644 2000-11-05  Jim Meyering  <meyering@lucent.com>
81645
81646         * lib/makepath.h (make_dir): Declare.
81647         * lib/makepath.c (make_dir): Remove `static' attribute.
81648         Tweak a comment.
81649
81650 2000-11-04  Jim Meyering  <meyering@lucent.com>
81651
81652         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
81653
81654 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
81655
81656         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
81657         last one in a bucket, advance to the next bucket.
81658
81659 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
81660
81661         * lib/fnmatch.c: Do not comment out all the code if we are using
81662         the GNU C library, because in some cases we are replacing buggy
81663         code in the GNU C library itself.
81664
81665 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
81666
81667         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
81668         (regex_compile): Catch bogus \(\1\).
81669
81670 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81671
81672         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
81673         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
81674         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
81675
81676 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81677
81678         * lib/error.h, getline.h, modechange.h:
81679         Remove "2000" from Copyright line, as the file hasn't been
81680         changed this year other than in the copyright notice.
81681
81682         * lib/xalloc.h: Add "2000" to Copyright line, as this file
81683         was changed this year.
81684
81685 2000-10-29  Jim Meyering  <meyering@lucent.com>
81686
81687         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
81688         renaming.
81689         * m4/ls-mntd-fs.m4: Likewise
81690
81691 2000-10-29  Jim Meyering  <meyering@lucent.com>
81692
81693         * lib/xstat.in: Fix grammar in comment.
81694
81695 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
81696
81697         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
81698         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
81699         doesn't define __restrict_arr.
81700
81701 2000-10-28  Jim Meyering  <meyering@lucent.com>
81702
81703         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
81704         (jm_PREREQ_MEMCHR): New function.
81705
81706 2000-10-28  Jim Meyering  <meyering@lucent.com>
81707
81708         * lib/memchr.c: Update from libc.
81709         Adjust for portability:
81710         [HAVE_STDLIB_H]: Include stdlib.h.
81711         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
81712         Undef __memchr, too.
81713         [!weak_alias]: Define __memchr to memchr.
81714
81715         * lib/regex.c: Update from libc.
81716         * lib/regex.h: Likewise.
81717         * lib/getopt1.c: Likewise.
81718         * lib/memcmp.c: Likewise.
81719
81720         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
81721         Avoid using fseek, when possible -- it's broken by design.
81722         Patch by Ulrich Drepper.
81723
81724 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
81725
81726         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
81727         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
81728         Giving in to popular pressure to shut up the compiler with casts.
81729
81730 2000-10-26  Jim Meyering  <meyering@lucent.com>
81731
81732         * lib/strftime.c: Update from libc.
81733
81734 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
81735
81736         * regex.c: More `unsigned char' -> `re_char' changes.
81737         Also change several `int' into `re_wchar_t'.
81738         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
81739         (PUSH_FAILURE_POINTER): Don't cast any more.
81740         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
81741         We want GCC to complain, since this piece of code makes
81742         re_match non-reentrant, which *should* be fixed.
81743         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
81744         (EXTEND_BUFFER): Use RETALLOC.
81745         (SET_LIST_BIT): Don't cast.
81746         (re_wchar_t): New type.
81747         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
81748         that those two functions will always properly return.
81749         (IMMEDIATE_QUIT_CHECK): Cast to void.
81750         (analyse_first): Use recursion rather than an explicit stack.
81751         (re_compile_fastmap): Can't fail anymore.
81752         (re_search_2): Don't check re_compile_fastmap for failure.
81753         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
81754         Now also sets the new value (passed in a new argument).
81755         (re_match_2_internal): Use it.
81756         Also, use a new var `reg' of type size_t when looping through regs
81757         rather than reuse the inappropriate `mcnt'.
81758
81759 2000-10-25  Jim Meyering  <meyering@lucent.com>
81760
81761         * lib/obstack.c: Update from libc.
81762
81763 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
81764
81765         * regex.c (regex_compile): Change the way of handling a range from
81766         a char less than 256 to a char not less than 256.
81767
81768 2000-10-24  Andrew Innes  <andrewi@gnu.org>
81769
81770         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
81771         NT-Emacs only.
81772         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
81773         so that re_search functions only quit when callers expect them to.
81774
81775 2000-10-23  Jim Meyering  <meyering@lucent.com>
81776
81777         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
81778         wrong.  That set_locale call must not have any side effects.
81779         From Paul Eggert.
81780
81781 2000-10-22  Jim Meyering  <meyering@lucent.com>
81782
81783         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
81784         [CYCLIC]: Remove now-unused definition.
81785
81786         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
81787         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
81788         Suggestion from Ulrich Drepper.
81789
81790 2000-10-21  Jim Meyering  <meyering@lucent.com>
81791
81792         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
81793         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
81794         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
81795
81796 2000-10-21  Jim Meyering  <meyering@lucent.com>
81797
81798         * lib/dirname.c (memrchr): Declare if necessary.
81799         (dir_name): Remove the restriction that there be no
81800         trailing slashes.  Now, this code skips past them, effectively
81801         ignoring them.
81802         [TEST_DIRNAME] (main): New unit tests.
81803
81804         * lib/memrchr.c: New file from GNU libc.
81805         Undef __memrchr, too.
81806         [!weak_alias]: Define __memrchr to memrchr.
81807         Guard weak_alias use with `#ifdef weak_alias'.
81808
81809 2000-10-21  Jim Meyering  <meyering@lucent.com>
81810
81811         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
81812         (dir_name): Use dir_name_r.
81813         * lib/dirname.h (dir_name_r): Declare it.
81814
81815 2000-10-17  Jim Meyering  <meyering@lucent.com>
81816
81817         * lib/quote.h (PARAMS): Define and use.
81818         Reported by Akim Demaille.
81819
81820         * lib/getopt.c: Update from libc.
81821
81822 2000-10-16  Jim Meyering  <meyering@lucent.com>
81823
81824         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
81825         setlocale.
81826         From Jan Fedak.
81827
81828 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
81829
81830         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
81831
81832 2000-09-25  Jim Meyering  <meyering@lucent.com>
81833
81834         * lib/md5.h (rol): Define (from GnuPG).
81835
81836         * lib/sha.c: Give credit (GnuPG) where due.
81837         (M): Use rol rather than open-coding it.
81838         Add a FIXME comment.
81839
81840 2000-09-21  Jim Meyering  <meyering@lucent.com>
81841
81842         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
81843         Reported by Michael Stone.
81844
81845 2000-09-20  Jim Meyering  <meyering@lucent.com>
81846
81847         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
81848         (noinst_HEADERS): Add sha.h.
81849         Based on code from Scott G. Miller and from GnuPG.
81850
81851 2000-09-18  Jim Meyering  <meyering@lucent.com>
81852
81853         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
81854         LIBS. Otherwise, everyone ends up linking with -lelf for some
81855         configurations.
81856         Reported by Mike Stone.
81857
81858 2000-09-15  Jim Meyering  <meyering@lucent.com>
81859
81860         * lib/regex.c: Update from libc.
81861
81862 2000-09-10  Jim Meyering  <meyering@lucent.com>
81863
81864         * lib/getopt.c (_getopt_internal): Update from glibc.
81865
81866 2000-09-09  Jim Meyering  <meyering@lucent.com>
81867
81868         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
81869         think it should be used as a general replacement for isascii.
81870         * lib/fnmatch.c: Likewise.
81871         * lib/mbswidth.c: Likewise
81872         * lib/regex.c: Likewise.
81873
81874         Don't use atoi.
81875         * lib/userspec.c: Include sys/param.h and limits.h.
81876         Include xstrtol.h.
81877         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81878         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
81879         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
81880         UID, GID.  Check range.
81881
81882 2000-09-06  Jim Meyering  <meyering@lucent.com>
81883
81884         * lib/getopt.c (_getopt_internal): Update from glibc.
81885
81886 2000-08-30  Jim Meyering  <meyering@lucent.com>
81887
81888         * lib/strftime.c: Merge in changes from GNU libc.
81889
81890 2000-08-26  Jim Meyering  <meyering@lucent.com>
81891
81892         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
81893         * m4/fpending.m4: New file.
81894
81895 2000-08-26  Jim Meyering  <meyering@lucent.com>
81896
81897         * lib/closeout.c: Include "__fpending.h".
81898         (close_stdout_status): Return right away if there's nothing to flush.
81899
81900         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
81901         * lib/__fpending.c: New file.
81902         * lib/__fpending.h: New file.
81903
81904 2000-08-20  Jim Meyering  <meyering@lucent.com>
81905
81906         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
81907         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
81908         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
81909
81910 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
81911
81912         Improve fileutils installation on systems where running
81913         programs (like install) can't be unlinked.
81914         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
81915         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
81916
81917 2000-08-07  Paul Eggert  <eggert@twinsun.com>
81918
81919         Standardize on "memory exhausted" instead of "Memory exhausted"
81920         or "virtual memory exhausted".
81921         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
81922         "virtual memory exhausted".
81923         * lib/same.c (same_name): Invoke xalloc_die instead of printing
81924         our own message.
81925         * lib/userspec.c (parse_user_spec): Likewise.
81926         * lib/bumpalloc.h: comment fix
81927         * lib/same.c, userspec.c: Include xalloc.h.
81928
81929         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
81930         not char *const and pointing to a constant array.
81931         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
81932         (xrealloc): Comment fix.
81933
81934         * lib/userspec.c (parse_user_spec):
81935         Don't translate a message until just before returning,
81936         to avoid unnecessary translation.
81937
81938 2000-08-07  Jim Meyering  <meyering@lucent.com>
81939
81940         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
81941         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
81942         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
81943         getgroups.c, gethostname.c, getopt.h, group-member.c,
81944         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
81945         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
81946         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
81947         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
81948         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
81949         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
81950         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
81951         yesno.c: Back out Copyright date changes for each file with no change
81952         this year.  This eases coordination with other programs using the same
81953         source code modules.  From Paul Eggert.
81954
81955 2000-08-06  Paul Eggert  <eggert@twinsun.com>
81956
81957         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
81958         not char, for compatibility with glibc 2.1.3 strftime.c.
81959
81960 2000-08-03  Greg McGary  <greg@mcgary.org>
81961
81962         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
81963         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
81964         (EXTEND_BUFFER): Use them.
81965
81966 2000-08-01  Jim Meyering  <meyering@lucent.com>
81967
81968         * lib/dirname.c (ISSLASH): Define.
81969         (BACKSLASH_IS_PATH_SEPARATOR): Define.
81970         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
81971         both `\' and `/' may be use as path separators.
81972         Based on a patch from Prashant TR.
81973
81974 2000-07-31  Paul Eggert  <eggert@twinsun.com>
81975
81976         * lib/quotearg.c (quotearg_n_options): Don't make the initial
81977         slot vector a constant, since it might get modified.
81978
81979 2000-07-31  Jim Meyering  <meyering@lucent.com>
81980
81981         * lib/xmalloc.c: Use `virtual memory exhausted', not
81982         `Memory exhausted'.
81983         * lib/obstack.c (print_and_abort): Likewise.
81984
81985 2000-07-30  Paul Eggert  <eggert@twinsun.com>
81986
81987         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
81988         buffer, so that the caller can always quote one small
81989         component of a "memory exhausted" message in slot 0.
81990         From a suggestion by Jim Meyering.
81991
81992 2000-07-30  Jim Meyering  <meyering@lucent.com>
81993
81994         * lib/makepath.c (make_path): Quote the other instance, too.
81995
81996         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
81997         (STATIC_BUF_SIZE): Define.
81998         (quotearg_n_options): Use only statically allocated storage when
81999         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82000         than STATIC_BUF_SIZE.
82001
82002 2000-07-29  Jim Meyering  <meyering@lucent.com>
82003
82004         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82005         * lib/dirname.c (dir_name): Likewise.
82006
82007         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82008         `/'.
82009
82010         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82011         (dir_name): Assert that there are no trailing slashes.
82012
82013 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82014
82015         * lib/mbswidth.h (mbswidth): Add a flags argument.
82016         (mbswidth): New declaration.
82017         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82018         * lib/mbswidth.c (mbswidth): Add a flags argument.
82019         (mbsnwidth): New function.
82020
82021 2000-07-24  Jim Meyering  <meyering@lucent.com>
82022
82023         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82024
82025 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82026
82027         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82028
82029 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82030
82031         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82032         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82033         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82034         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82035         invoke multibyte primitives.
82036
82037 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82038
82039         * lib/quotearg.c:
82040         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82041         so that mbstate_t is always defined.
82042
82043         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82044         be 1 in at least one GCC installation, and this configuration
82045         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82046         performance on hosts that have mbrtowc but have only unibyte
82047         locales, but I assume these hosts are rare.
82048
82049 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82050
82051         * lib/mbswidth.c (_XOPEN_SOURCE):
82052         Don't define; this causes problems on Solaris 7.
82053         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82054
82055 2000-07-23  Jim Meyering  <meyering@lucent.com>
82056
82057         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82058         too: getgrgid, getpwuid, getuid.
82059
82060 2000-07-23  Jim Meyering  <meyering@lucent.com>
82061
82062         * lib/basename.c (base_name): Add an assertion.
82063
82064 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82065
82066         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82067         shadow its mbsinit function.
82068
82069 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82070
82071         * lib/mbswidth.h: New file.
82072         * lib/mbswidth.c: New file.
82073         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82074         (noinst_HEADERS): Add mbswidth.h.
82075
82076 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82077
82078         * lib/config.charset: Add support for FreeBSD. Improve support for
82079         HP-UX and IRIX 6.
82080
82081 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82082
82083         * m4/mbswidth.m4: New file.
82084         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82085
82086 2000-07-15  Jim Meyering  <meyering@lucent.com>
82087
82088         * lib/makepath.c: Include quote.h.
82089         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82090         corresponding argument in a `quote (...)' call.
82091         Give better diagnostics.
82092
82093         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82094         (noinst_HEADERS): Add quote.h.
82095
82096         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82097         from tar's src/misc.c.
82098         * lib/quote.h: New file.  Prototypes for same.
82099
82100 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82101
82102         From a suggestion by Bruno Haible.
82103         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82104         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82105         to decide whether to define the BeOS workaround macro;
82106         this adjusts to the change to AC_MBSTATE_T.
82107
82108 2000-07-14  Jim Meyering  <meyering@lucent.com>
82109
82110         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82111         jm_AC_TYPE_UINTMAX_T.
82112
82113 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82114
82115         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82116
82117         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82118         quotearg_buffer_restyled): Add support for
82119         clocale_quoting_style.  Undo previous change to
82120         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82121         and "{RIGHT QUOTATION MARK}" msgids.
82122
82123 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82124
82125         From a suggestion by Bruno Haible.
82126         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82127         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82128         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82129         and mbstate_t, to a single-part test that simply defines mbstate_t.
82130         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82131         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82132
82133 2000-07-10  Jim Meyering  <meyering@lucent.com>
82134
82135         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82136
82137         * m4/gnu-source.m4: Output to confdefs.h directly.
82138         Suggestion from Akim Demaille.
82139
82140 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82141
82142         The old behavior of quoting `like this' doesn't look good with
82143         newer, ISO-style fonts.  See:
82144         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82145
82146         Instead, quote "like this" by default.  Let the translator
82147         tailor the locale-specific quoting behavior by providing
82148         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82149
82150         * lib/quotearg.c (N_): New macro.
82151         (gettext_default): New function.
82152         (quotearg_buffer_restyled): Use
82153         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82154         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82155
82156 2000-07-09  Jim Meyering  <meyering@lucent.com>
82157
82158         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82159         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82160
82161         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82162         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82163
82164 2000-07-09  Jim Meyering  <meyering@lucent.com>
82165
82166         * lib/Most files: Update copyright dates to include 2000.
82167
82168 2000-07-08  Jim Meyering  <meyering@lucent.com>
82169
82170         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82171         if not defined.
82172         (xgethostname): Remove now-unnecessary #ifdef.
82173         Move declaration of `err' into loop where it's used.
82174
82175 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82176         and Bruno Haible  <haible@clisp.cons.org>
82177
82178         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82179         only if the test for an object-type mbstate_t fails.  This
82180         prevents us from mistakenly reporting that mbstate_t is a
82181         system object type after we "#define mbstate_t int" to work
82182         around its lack.
82183
82184 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82185         and Bruno Haible  <haible@clisp.cons.org>
82186
82187         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82188
82189 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82190
82191         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82192         to strerror_r.
82193         Include <ctype.h> for use of isalpha.
82194
82195 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82196
82197         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82198         by allocating a larger buffer. Test the gethostname return value for
82199         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82200         returns an error and ENAMETOOLONG isn't defined.
82201
82202 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82203
82204         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82205         dimension.
82206
82207 2000-07-04  Jim Meyering  <meyering@lucent.com>
82208
82209         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82210         of the deprecated AC_CHECKING.
82211
82212 2000-07-04  Jim Meyering  <meyering@lucent.com>
82213
82214         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82215         Reported by Bruno Haible.
82216
82217 2000-07-04  Jim Meyering  <meyering@lucent.com>
82218
82219         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82220         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82221         lacks mbrtowc.
82222
82223 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82224
82225         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82226         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82227
82228 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82229         and Bruno Haible  <haible@clisp.cons.org>
82230
82231         * lib/quotearg.c (mbrtowc):
82232         Assign to *pwc, and return 1 only if result is nonzero.
82233         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82234
82235 2000-07-03  Jim Meyering  <meyering@lucent.com>
82236
82237         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82238
82239 2000-07-03  Jim Meyering  <meyering@lucent.com>
82240
82241         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82242         This is necessary to get a definition of e.g., UTMP_FILE on
82243         HP-UX 10.20.
82244         From Bob Proulx.
82245
82246 2000-07-02  Jim Meyering  <meyering@lucent.com>
82247
82248         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82249
82250         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82251         AC_LIBOBJ(function_name).
82252         * m4/chown.m4: Likewise.
82253         * m4/fnmatch.m4: Likewise.
82254         * m4/ftruncate.m4: Likewise.
82255         * m4/getgroups.m4: Likewise.
82256         * m4/getline.m4: Likewise.
82257         * m4/group-member.m4: Likewise.
82258         * m4/jm-macros.m4: Likewise.
82259         * m4/lstat.m4: Likewise.
82260         * m4/malloc.m4: Likewise.
82261         * m4/memcmp.m4: Likewise.
82262         * m4/nanosleep.m4: Likewise.
82263         * m4/putenv.m4: Likewise.
82264         * m4/realloc.m4: Likewise.
82265         * m4/regex.m4: Likewise.
82266         * m4/stat.m4: Likewise.
82267         * m4/strftime.m4: Likewise.
82268
82269 2000-07-02  Jim Meyering  <meyering@lucent.com>
82270
82271         * lib/quotearg.c (mbstate_t): Don't define here.
82272
82273 2000-07-02  Jim Meyering  <meyering@lucent.com>
82274
82275         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82276
82277 2000-07-01  Jim Meyering  <meyering@lucent.com>
82278
82279         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82280
82281 2000-07-01  Jim Meyering  <meyering@lucent.com>
82282
82283         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82284         problem.
82285
82286 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82287
82288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82289         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82290
82291 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82292
82293         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82294         per change in ../m4/ls-mntd-fs.m4.
82295         (read_filesystem_list): Ignore symbolic links.
82296
82297 2000-06-29  Jim Meyering  <meyering@lucent.com>
82298
82299         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82300         for declaration of strcmp.
82301
82302         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82303
82304         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82305         Avoid warning by casting result to `char *' to remove `const'.
82306
82307 2000-06-28  Jim Meyering  <meyering@lucent.com>
82308
82309         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82310         included by quotearg.c, for which we perform this test.  From
82311         Bruno Haible.
82312
82313 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82314
82315         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82316         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82317         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82318
82319 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82320
82321         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82322
82323 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82324
82325         savedir now sets errno on failure and invokes xmalloc to get memory.
82326         Fix a couple of other minor bugs while we're at it.
82327
82328         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82329         (NAMLEN): Remove macro.
82330         (malloc, realloc): Remove decls.
82331         (stpcpy): Likewise.
82332         ("xalloc.h"): Include.
82333         (NAME_SIZE_DEFAULT): New macro.
82334         (savedir): Use xmalloc / xrealloc to allocate memory.
82335         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82336         Skip "" directory entries.
82337         Use strlen to calculate directory entry length, since the old method
82338         is rarely used these days and isn't worth supporting.
82339         Don't use a pointer after freeing it.
82340         Check for integer overflow when calculating allocation size.
82341         Use memcpy to copy entries, instead of stpcpy.
82342         Set errno properly when returning NULL.
82343         Check for readdir error.
82344
82345 2000-06-26  Jim Meyering  <meyering@lucent.com>
82346
82347         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82348
82349 2000-06-25  Jim Meyering  <meyering@lucent.com>
82350
82351         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82352         Linux header bug when _XOPEN_SOURCE is defined to 500.
82353
82354 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82355
82356         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82357         deficiency.
82358
82359 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82360
82361         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82362         Include xalloc.h.
82363         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82364
82365 2000-06-24  Jim Meyering  <meyering@lucent.com>
82366
82367         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82368         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82369         for which strerror does return char*, but which lacks a conveniently
82370         accessible declaration of the function.  If the compile-test says
82371         strerror_r doesn't work, then resort to a `run'-test that works on
82372         BeOS and segfaults on DEC Unix.
82373
82374 2000-06-24  Jim Meyering  <meyering@lucent.com>
82375
82376         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82377
82378 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82379
82380         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82381         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82382
82383 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82384
82385         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82386         (mbrtowc, mbstate_t): Define substitutes if
82387         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82388         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82389         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82390
82391 2000-06-23  Jim Meyering  <meyering@lucent.com>
82392
82393         * m4/afs.m4: Add missing AC_MSG_RESULT.
82394         Reported by Bruno Haible.
82395
82396         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82397         Suggestion from Bruno Haible.
82398
82399 2000-06-23  Jim Meyering  <meyering@lucent.com>
82400
82401         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82402
82403 2000-06-21  Jim Meyering  <meyering@lucent.com>
82404
82405         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82406
82407 2000-06-21  Jim Meyering  <meyering@lucent.com>
82408
82409         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82410         (noinst_HEADERS): Add getstr.h.
82411
82412         * lib/getline.c (getstr): Move into a separate file.
82413         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82414         the following changes: new parameter, delim2; both delim[12]
82415         parameters have type `int', not `char'.  The latter would lose
82416         with 8-bit delimiters.
82417         * lib/getstr.h: New file.
82418
82419 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82420
82421         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82422         than 1024, return a memory chunk of least possible size, instead
82423         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82424         Use free/xmalloc instead of xrealloc to avoid copying for very long
82425         paths.
82426
82427 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82428
82429         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82430         the empty string.
82431
82432 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82433
82434         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82435         address, not strdup.  Include <stdlib.h> and don't declare free().
82436
82437 2000-06-19  Jim Meyering  <meyering@lucent.com>
82438
82439         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82440
82441 2000-06-18  Jim Meyering  <meyering@lucent.com>
82442
82443         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82444
82445         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82446         `checking whether...' message to be consistent with that of the
82447         lstat test.
82448
82449 2000-06-18  Jim Meyering  <meyering@lucent.com>
82450
82451         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82452         Besides, these days every porting target provides a mkdir function.
82453
82454         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
82455         needed. (this snippet comes from src/system.h).
82456
82457 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
82458
82459         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
82460
82461 2000-06-15  Paul Eggert  <eggert@twinsun.com>
82462
82463         * lib/human.c (adjust_value): New function.
82464         (human_readable_inexact): Apply rounding style even when
82465         printing approximate values.
82466
82467 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82468
82469         * lib/human.c (human_readable_inexact): Allow an input block
82470         size that is not a multiple of the output block size, and vice versa.
82471         Reported by Piergiorgio Sartor.
82472
82473 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82474
82475         * lib/getdate.y (get_date): Apply relative times after time
82476         zone indicator, not before.  Reported by Todd A. Jacobs.
82477
82478 2000-06-13  Jim Meyering  <meyering@lucent.com>
82479
82480         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82481
82482         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82483
82484 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82485
82486         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82487
82488 2000-06-12  Jim Meyering  <meyering@lucent.com>
82489
82490         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82491         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82492         optional argument.
82493         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82494         the optional argument, `lib'.
82495
82496 2000-06-08  Jim Meyering  <meyering@lucent.com>
82497
82498         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82499
82500 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82501
82502         Rewrite largefile configuration so that we don't need to run
82503         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82504         AC_CANONICAL_HOST in configure.in -- jmm]
82505
82506         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82507         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82508         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82509         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82510         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82511         All uses changed.
82512         Instead of inspecting the output of getconf, try to compile the
82513         test program without and with the macro definition.
82514         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82515         for getconf.  Instead, check for the needed flags by compiling
82516         test programs.
82517
82518 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82519
82520         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82521
82522 2000-06-04  Jim Meyering  <meyering@lucent.com>
82523
82524         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82525         SunOS 4.1.4 for which gid_t is an unsigned type.
82526
82527 2000-06-03  Jim Meyering  <meyering@lucent.com>
82528
82529         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82530         now that autoconf requires that.
82531
82532         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82533         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82534         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82535
82536 2000-06-03  Jim Meyering  <meyering@lucent.com>
82537
82538         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
82539
82540 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82541
82542         * m4/glibc21.m4: New file.
82543         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
82544
82545 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82546
82547         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
82548         newer, don't install charset.alias.
82549         * lib/config.charset: Change the Linux/glibc rules so they become empty
82550         on glibc-2.1 or newer.
82551
82552 2000-06-02  Jim Meyering  <meyering@lucent.com>
82553
82554         * lib/mountlist.c: Back out last change.  Instead, do this...
82555         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
82556         me_dummy member using the same `ignore'-testing code.
82557         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
82558         fs_type strings.
82559         From Mark D. Roth.
82560
82561 2000-05-29  Jim Meyering  <meyering@lucent.com>
82562
82563         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
82564         mounts with the `ignore' attribute.  Based on a patch from
82565         Mark D. Roth.
82566
82567 2000-05-28  Jim Meyering  <meyering@lucent.com>
82568
82569         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
82570         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82571         * m4/stat.m4: Likewise.
82572         * m4/lstat.m4: Likewise.
82573         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
82574
82575         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
82576         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
82577
82578 2000-05-26  Jim Meyering  <meyering@lucent.com>
82579
82580         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
82581
82582 2000-05-24  Jim Meyering  <meyering@lucent.com>
82583
82584         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
82585         autoconf requires that.
82586         * m4/lib-check.m4: Likewise.
82587         * m4/jm-macros.m4: Likewise.
82588         * m4/strftime.m4: Likewise.
82589
82590         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
82591         AC_CHECK_DECLS, now that autoconf requires that.
82592
82593 2000-05-22  Jim Meyering  <meyering@lucent.com>
82594
82595         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82596         * m4/lstat.m4: Likewise.
82597
82598 2000-05-22  Jim Meyering  <meyering@lucent.com>
82599
82600         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
82601
82602 2000-05-20  Jim Meyering  <meyering@lucent.com>
82603
82604         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
82605         (jm_PREREQ): Use it.
82606
82607 2000-05-18  Jim Meyering  <meyering@lucent.com>
82608
82609         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
82610         back, too, since it may have been modified by allocate_entry.
82611         (hash_delete): Rewrite to use neither the assignment operator
82612         nor the comma operator in an if-expression.
82613
82614 2000-05-15  Paul Eggert  <eggert@twinsun.com>
82615
82616         * lib/closeout.c:
82617         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
82618         Remove; no longer needed.
82619         "quotearg.h": Add include.
82620         (file_name): Do not bother to explicitly initialize to NULL; it's less
82621         efficient on some hosts.
82622         (close_stdout_status): Remove test as to whether stdout was already
82623         closed; it breaks for the case "echo x | sort >&-".
82624         Quote file name colons.
82625         Do not assume that _("write error") lacks format strings.
82626
82627 2000-05-15  Jim Meyering  <meyering@lucent.com>
82628
82629         * lib/version-etc.c (version_etc_copyright): Update the copyright
82630         string used in all --version output.
82631
82632 2000-05-14  Jim Meyering  <meyering@lucent.com>
82633
82634         * lib/closeout.c (close_stdout_set_file_name): New function.
82635         (close_stdout_status): Use new file-scoped global.
82636         Return right away if fstat says the stdout file descriptor is invalid.
82637         * lib/closeout.h (close_stdout_set_file_name): Declare.
82638
82639 2000-05-10  Jim Meyering  <meyering@lucent.com>
82640
82641         * lib/closeout.c [default_exit_status]: New file-scoped variable.
82642         (close_stdout_set_status): New function.
82643         * lib/closeout.h (close_stdout_set_status): Declare.
82644
82645 2000-05-09  Jim Meyering  <meyering@lucent.com>
82646
82647         * m4/gettext.m4: Rename this...
82648         * m4/libintl.m4: ...to this.
82649
82650 2000-05-08  Jim Meyering  <meyering@lucent.com>
82651
82652         * lib/long-options.c: Don't include closeout.h.
82653         (parse_long_options): Don't call close_stdout for --version.
82654
82655 2000-05-06  Paul Eggert  <eggert@twinsun.com>
82656
82657         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
82658         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
82659         2.1.3 bug.  This avoids a clash when files like regex.c define
82660         _GNU_SOURCE.
82661
82662 2000-05-06  Jim Meyering  <meyering@lucent.com>
82663
82664         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
82665         (AC_REPLACE_FUNCS): Add strnlen.
82666
82667         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
82668         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
82669
82670         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
82671         AC_SEARCH_LIBS call for nanosleep.
82672         (LIB_NANOSLEEP): Set and AC_SUBST.
82673
82674 2000-05-06  Jim Meyering  <meyering@lucent.com>
82675
82676         * lib/strnlen.c: Undefine __strnlen and strnlen.
82677         [!weak_alias]: Define __strnlen to strnlen.
82678
82679         * lib/atexit.c: New file, from libiberty.
82680
82681 2000-05-06  Jim Meyering  <meyering@lucent.com>
82682
82683         * lib/closeout.c (close_stdout_status): Also check for errors on the
82684         stderr stream.
82685
82686 2000-05-05  Jim Meyering  <meyering@lucent.com>
82687
82688         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
82689         AC_SEARCH_LIBS call for clock_gettime.
82690         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
82691
82692         * m4/search-libs.m4: Update from autoconf.
82693
82694         su doesn't work on Solaris 2.6.
82695         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
82696         <shadow.h>.  Reported by Dragos Harabor.
82697
82698 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
82699
82700         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
82701         memcpy instead of xmalloc, xrealloc, path_concat.
82702         (locale_charset): Treat empty environment variables as absent.
82703         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
82704
82705 2000-05-04  Jim Meyering  <meyering@lucent.com>
82706
82707         * lib/getopt.c: Update from glibc.
82708         * lib/obstack.c: Likewise.
82709         * lib/obstack.h: Likewise.
82710         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
82711         file
82712
82713         * lib/regex.h: Likewise.
82714         * lib/strndup.c: Likewise.
82715         * lib/strnlen.c: New file, from glibc.
82716
82717 2000-05-03  Jim Meyering  <meyering@lucent.com>
82718
82719         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
82720
82721 2000-05-02  Paul Eggert  <eggert@twinsun.com>
82722
82723         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
82724         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
82725         compile-time test, rather than inspecting host and OS, to
82726         decide whether to define _LARGEFILE_SOURCE.
82727
82728 2000-05-01  Jim Meyering  <meyering@lucent.com>
82729
82730         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
82731
82732         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
82733         Based on a patch from Bruno Haible.
82734
82735 2000-05-01  Jim Meyering  <meyering@lucent.com>
82736
82737         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
82738
82739 2000-04-29  Jim Meyering  <meyering@lucent.com>
82740
82741         * lib/path-concat.c: Declare strdup only if it's not defined.
82742         * lib/canon-host.c: Likewise.
82743
82744 2000-04-28  Jim Meyering  <meyering@lucent.com>
82745
82746         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
82747         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
82748         is included first, then limits.h is included by locale.h by libintl.h.
82749         From John David Anglin.
82750
82751 2000-04-25  Jim Meyering  <meyering@lucent.com>
82752
82753         * lib/makepath.c (S_IRWXUGO): Define.
82754         (make_path): Always perform explicit chmod if MODE specifies any
82755         of the `special' permission bits.  Prompted by a bug report against
82756         install from Mate Wierdl and Joost van Baal.
82757
82758 2000-04-18  Jim Meyering  <meyering@lucent.com>
82759
82760         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
82761         (jm_PREREQ): Use it.
82762
82763 2000-04-18  Jim Meyering  <meyering@lucent.com>
82764
82765         * lib/README: New file.
82766
82767         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
82768         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
82769
82770 2000-04-17  Jim Meyering  <meyering@lucent.com>
82771
82772         Get it right :-)
82773         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
82774         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
82775         Suggestion from Akim Demaille.
82776
82777 2000-04-17  Jim Meyering  <meyering@lucent.com>
82778
82779         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
82780         the definition of it to rpl_strftime also defined-away the system's
82781         declaration.
82782
82783 2000-04-15  Jim Meyering  <meyering@lucent.com>
82784
82785         Use `C' to denote so-called `contiguous' files, the same way
82786         that tar does.
82787         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
82788         (ftypelet): Use S_ISCTG.
82789         From Michael Deutschmann.
82790
82791 2000-04-14  Jim Meyering  <meyering@lucent.com>
82792
82793         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
82794         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
82795         clobbered.
82796
82797 2000-04-14  Jim Meyering  <meyering@lucent.com>
82798
82799         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
82800
82801 2000-04-13  Jim Meyering  <meyering@lucent.com>
82802
82803         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
82804         AH_VERBATIM to insert required #ifndef into config.h.in.
82805         Suggestion from Akim Demaille.
82806
82807 2000-04-12  Jim Meyering  <meyering@lucent.com>
82808
82809         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
82810         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
82811         Christian Krackowizer.
82812
82813         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
82814         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
82815         (AC_SYS_LARGEFILE): Require.
82816         (AM_C_PROTOTYPES): Require.
82817
82818 2000-04-08  Jim Meyering  <meyering@lucent.com>
82819
82820         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
82821         names don't conflict.  Reported by Eli Zaretskii.
82822
82823 2000-04-07  Jim Meyering  <meyering@lucent.com>
82824
82825         * lib/putenv.c: Move inclusion of errno.h so it follows that of
82826         sys/types.h, to work around system header problems on AIX 3.2.5.
82827         From Bruno Haible.
82828
82829 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
82830
82831         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
82832         bug.  Deal with the different error behavior of Irix iconv.
82833
82834 2000-04-05  Paul Eggert  <eggert@twinsun.com>
82835
82836         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
82837         IRIX if the installer said otherwise.
82838
82839 2000-04-05  Jim Meyering  <meyering@lucent.com>
82840
82841         Portability tweaks required for ultrix4.3.
82842         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
82843         (jm_CHECK_DECLS): Add getutent to the list of functions.
82844         (_jm_DECL_HEADERS): Add utmpx.h.
82845         From John David Anglin.
82846
82847         * m4/strftime.m4: Back out the 2000-04-02 change.
82848         Instead of that change, simply undefine putenv in the test program.
82849
82850 2000-04-05  Jim Meyering  <meyering@lucent.com>
82851
82852         Portability tweaks required for ultrix4.3.
82853         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
82854         getutent.
82855         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
82856         * lib/canon-host.c: Declare strdup.
82857         * lib/path-concat.c: Likewise.
82858         From John David Anglin.
82859
82860 2000-04-04  Jim Meyering  <meyering@lucent.com>
82861
82862         Be more DOS 8.3-friendly.
82863         * lib/ref-add.sin: Renamed from ref-add.sed.in.
82864         * lib/ref-del.sin: Renamed from ref-del.sed.in.
82865         * lib/Makefile.am: Reflect renaming.
82866         Reported by Eli Zaretskii.
82867
82868         Use a temporary file name that won't clash with `charset.alias'
82869         in the DOS 8.3 name space.
82870         * lib/Makefile.am (charset_tmp): Define.
82871         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
82872         (uninstall-local): Likewise.
82873         Reported by Eli Zaretskii.
82874
82875 2000-04-03  Jim Meyering  <meyering@lucent.com>
82876
82877         * m4/gettext.m4: Fix typo in comment.
82878
82879         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
82880         textutils/configure.in).  Suggestion from Paul Eggert.
82881         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
82882
82883 2000-04-02  Paul Eggert  <eggert@twinsun.com>
82884
82885         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
82886         variable in the shell rather than using putenv, which isn't
82887         portable.  This avoids the configure-time inter-test dependency
82888         on the potentially-renamed putenv function.
82889
82890 2000-03-30  Paul Eggert  <eggert@twinsun.com>
82891
82892         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
82893         before checking struct stat.st_blksize, so that
82894         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
82895
82896 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82897
82898         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
82899         since strftime.c uses HAVE_STRFTIME to decide whether to use
82900         the underlying strftime.
82901
82902 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82903
82904         * lib/time/strftime.c (my_strftime): Make sure we call the system
82905         strftime, not ourselves, when invoking the underlying strftime.
82906
82907 2000-03-24  Jim Meyering  <meyering@lucent.com>
82908
82909         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
82910         (charset_alias): Define.
82911         (install-exec-local): Factor out common code.
82912         (uninstall-local): Split lines longer than 80.
82913         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
82914         (SUFFIXES): Define.
82915         (.sed.in.sed): New rule.  Don't redirect directly to $@.
82916         (CLEANFILES): Add ref-add.sed and ref-del.sed.
82917
82918 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
82919
82920         * lib/config.charset: Output a line containing "Packages using this
82921         file".
82922         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
82923         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
82924         ref-del.sed): New rules.
82925
82926 2000-03-17  Jim Meyering  <meyering@lucent.com>
82927
82928         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
82929         Otherwise, include <strings.h>
82930
82931 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
82932
82933         * lib/unicodeio.c (utf8_wctomb): New function.
82934         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
82935         format instead of in UCS-4 with platform dependent endianness.
82936
82937 2000-03-10  Jim Meyering  <meyering@lucent.com>
82938
82939         * m4/lib-check.m4: Look for getspnam in -lgen, too.
82940         From Marco Franzen.
82941
82942 2000-03-07  Paul Eggert  <eggert@twinsun.com>
82943
82944         * lib/savedir.c (savedir): Work even if directory size is
82945         negative; this can happen with some screwy NFS configurations.
82946
82947 2000-03-06  Jim Meyering  <meyering@lucent.com>
82948
82949         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
82950         if it's NULL (because we ran out of memory).  From Bruno Haible.
82951
82952 2000-03-05  Jim Meyering  <meyering@lucent.com>
82953
82954         * lib/localcharset.c ("path-concat.h"): Include.
82955         (get_charset_aliases): Use path_concat instead of ANSI string
82956         concatenation.
82957
82958         * lib/unicodeio.h (PARAMS): Define.
82959         Use it to guard prototype.
82960
82961 2000-03-04  Jim Meyering  <meyering@lucent.com>
82962
82963         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
82964         for lib/localcharset.c.
82965
82966 2000-03-04  Jim Meyering  <meyering@lucent.com>
82967
82968         * lib/Makefile.am (install-exec-local): Create $(libdir) before
82969         installing into it.
82970         (uninstall-local): Uncomment this rule so `make distcheck' works
82971         once again.
82972
82973         * lib/unicodeio.c (<errno.h>): Include it.
82974         (errno): Declare if not defined.
82975
82976         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
82977
82978         * lib/config.charset: New version, incorporating remarks from a linux
82979         i18n mailing list.  From Bruno Haible.
82980
82981 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
82982
82983         * m4/codeset.m4: New file.
82984         * m4/iconv.m4: New file.
82985         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
82986
82987 2000-03-03  Jim Meyering  <meyering@lucent.com>
82988
82989         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
82990
82991 2000-03-02  Jim Meyering  <meyering@lucent.com>
82992
82993         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
82994         the messages come out on separate lines.
82995
82996         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
82997         rather than jm_CHECK_DECLARATIONS.
82998         * m4/decl.m4: Remove now-unused file.
82999
83000         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83001         geteuid.
83002
83003 2000-03-02  Jim Meyering  <meyering@lucent.com>
83004
83005         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83006
83007 2000-03-01  Jim Meyering  <meyering@lucent.com>
83008
83009         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83010         * lib/unicodeio.c: Likewise.
83011
83012 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83013
83014         * lib/config.charset: New file.
83015         * lib/localcharset.c: New file.
83016         * lib/unicodeio.h, lib/unicodeio.c: New files.
83017         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83018         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83019         (noinst_HEADERS): Add unicodeio.h.
83020         (all-local, install-exec-local, charset.alias): New targets.
83021
83022 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83023
83024         * lib/quotearg.c (ALERT_CHAR): New macro.
83025         (quotearg_buffer_restyled): Use it.
83026
83027 2000-02-27  Jim Meyering  <meyering@lucent.com>
83028
83029         * m4/check-decl.m4: Add getenv to the list.
83030
83031 2000-02-27  Jim Meyering  <meyering@lucent.com>
83032
83033         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83034         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83035
83036         * lib/backupfile.c: Guard inclusion of stdlib.h with
83037         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83038         Declare malloc if needed.
83039
83040         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83041         `#ifndef HAVE_DECL..'
83042         now that autoconf always defines the HAVE_DECL_ symbols.
83043         * lib/human.c: Likewise.
83044         * lib/same.c: Likewise.
83045         * lib/strtoumax.c: Likewise.
83046
83047         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83048         declaration check was not run.
83049         * lib/hash.c: Likewise.
83050         * lib/human.c: Likewise.
83051         * lib/same.c: Likewise.
83052         * lib/strtoumax.c: Likewise.
83053
83054         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83055         `.', then first look up the entire `.'-containing string as a login
83056         name.
83057
83058 2000-02-23  Jim Meyering  <meyering@lucent.com>
83059
83060         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83061         in place of my hack.
83062
83063 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83064
83065         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83066         (textint): New typedef.
83067         (parser_control): Member year changed from int to textint.
83068         All uses changed.
83069         (YYSTYPE): Removed; replaced by %union with int and textint members.
83070         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83071         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83072         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83073         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83074         (date, number, to_year): Use width of number in digits, not its value,
83075         to determine whether it's a 2-digit year, or a 2-digit time.
83076         (yylex): Store number of digits of numeric tokens.
83077         Reported by John Kendall.
83078
83079         (parser_control): Changed from struct parser_control to typedef (for
83080         consistency).  All uses changed.
83081
83082         (tID): Removed; not used.
83083         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83084
83085 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83086
83087         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83088         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83089
83090 2000-02-12  Jim Meyering  <meyering@lucent.com>
83091
83092         * lib/userspec.c (ISDIGIT): Define it.
83093         (isdigit): Remove definition.
83094         (is_number): Use ISDIGIT, not isdigit.
83095         <libintl.h>: Include.
83096         (_ and N_): Define.
83097         (parse_user_spec): Mark translatable strings.
83098
83099 2000-02-10  Jim Meyering  <meyering@lucent.com>
83100
83101         With these changes, nanosleep.[ch] are finally enough like the other
83102         lib/* replacement files to compile on a few more losing systems.
83103
83104         * lib/nanosleep.h: Don't include config.h.
83105         Remove prototype from declaration of nanosleep.
83106         (PARAMS): Remove now-unneeded definition.
83107         * lib/nanosleep.c: #undef nanosleep.
83108         (rpl_nanosleep): Rename from nanosleep.
83109
83110 2000-02-10  Jim Meyering  <meyering@lucent.com>
83111
83112         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83113         gnu_nanosleep to rpl_nanosleep.
83114
83115 2000-02-09  Jim Meyering  <meyering@lucent.com>
83116
83117         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83118         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83119
83120 2000-02-08  Akim Demaille  <akim@epita.fr>
83121
83122         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83123         `[' and `]' and remove uses of `changequote'.
83124         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83125         (AC_SYS_LARGEFILE): Likewise.
83126         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83127         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83128         of changequote.
83129         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83130         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83131         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83132         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83133
83134 2000-02-05  Jim Meyering  <meyering@lucent.com>
83135
83136         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83137         Remove explicit use of AC_HEADER_TIME.  It is required by
83138         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83139         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83140         in autoconf whereby the expansion of the latter ended up preceding
83141         the expansion of its prerequisite, AC_HEADER_TIME.
83142         Reported by Volker Borchert.
83143
83144 2000-02-03  Jim Meyering  <meyering@lucent.com>
83145
83146         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83147
83148 2000-02-03  Jim Meyering  <meyering@lucent.com>
83149
83150         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83151         rather than with `#if HAVE_UTMPNAME'.
83152
83153 2000-02-02  Jim Meyering  <meyering@lucent.com>
83154
83155         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83156         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83157         Reported by Eli Zaretskii.
83158
83159 2000-02-01  Jim Meyering  <meyering@lucent.com>
83160
83161         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83162
83163 2000-01-31  Jim Meyering  <meyering@lucent.com>
83164
83165         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83166         functions.  Add the time.h and sys/time.h headers along with the
83167         AC_REQUIRE'ment of AC_HEADER_TIME.
83168
83169 2000-01-31  Jim Meyering  <meyering@lucent.com>
83170
83171         * lib/nanosleep.h (nanosleep): Guard declaration with
83172         `#if ! HAVE_DECL_NANOSLEEP'.
83173         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83174         the declaration in that vendor's sys/timers.h.
83175         Reported by Christian Krackowizer.
83176
83177         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83178         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83179         (ISPRINT): Likewise.
83180         Reported by Tom Tromey.
83181
83182 2000-01-30  Jim Meyering  <meyering@lucent.com>
83183
83184         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83185
83186         * m4/prereq.m4 (utmp_includes): Define.
83187         Check for ut_user and ut_name members in both struct utmpx
83188         and struct utmp.
83189
83190 2000-01-30  Jim Meyering  <meyering@lucent.com>
83191
83192         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83193         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83194         header files where only utmpx.ut_user is declared.
83195
83196         * lib/readutmp.h (UT_USER): Define.
83197
83198 2000-01-29  Jim Meyering  <meyering@lucent.com>
83199
83200         * m4/lib-check.m4: New file containing library-related checks from
83201         fileutils and sh-utils (textutils had none).
83202
83203 2000-01-28  Jim Meyering  <meyering@lucent.com>
83204
83205         * m4/perl.m4: Change format of warning message to look more like that
83206         from the missing script.  Suggestion from François Pinard.
83207
83208 2000-01-25  Jim Meyering  <meyering@lucent.com>
83209
83210         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83211         well as time.h in the compile check.
83212         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83213         Fix typo in cross-compiling case: s/yes/no/.
83214
83215 2000-01-23  Jim Meyering  <meyering@lucent.com>
83216
83217         * m4/jm-macros.m4: Move df-related tests here from
83218         fileutils/configure.in
83219
83220         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83221         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83222
83223         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83224         s/space/ac_fsusage_space/.
83225         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83226
83227         * m4/ftruncate.m4: New file (derived from part of
83228         fileutils/configure.in).
83229         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83230         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83231
83232         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83233         AC_SUBST these here, rather than just in sh-util/configure.in, so
83234         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83235         all the same.
83236         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83237         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83238         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83239         (AC_SUBST(POW_LIBM)): Likewise.
83240         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83241
83242 2000-01-23  Jim Meyering  <meyering@lucent.com>
83243
83244         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83245         obstack.c.
83246
83247 2000-01-22  Jim Meyering  <meyering@lucent.com>
83248
83249         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83250
83251         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83252
83253         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83254         configure.in
83255         (AC_CHECK_HEADERS): Likewise for sh-utils.
83256         (AC_CHECK_HEADERS): Likewise for textutils.
83257         Merge the three lists of headers.
83258
83259         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83260         from fileutils' configure.in.
83261
83262         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83263         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83264         check-decl.m4.
83265
83266         * m4/check-decl.m4: Use #if rather than #ifdef.
83267         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83268         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83269         (_jm_DECL_HEADERS): Define new function.
83270         (jm_CHECK_DECLARATIONS): Require it.
83271
83272 2000-01-22  Jim Meyering  <meyering@lucent.com>
83273
83274         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83275         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83276         Required for some AIX systems.  Reported by Christian Krackowizer.
83277         [TESTING] (main): New function.
83278
83279         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83280         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83281         letters.
83282
83283         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83284         iswprint.
83285
83286         * lib/strverscmp.c (ISDIGIT): Define.
83287         (strverscmp): Use ISDIGIT, not isdigit.
83288
83289 2000-01-19  Jim Meyering  <meyering@lucent.com>
83290
83291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83292         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83293         defines `struct timespec' in <sys/time.h>
83294
83295         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83296         Thanks to Akim for explaining.
83297
83298 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83299
83300         * lib/nanosleep.c (nanosleep):
83301         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83302         POSIX.1 doesn't require SA_INTERRUPT and some systems
83303         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83304         it's been part of POSIX.1 since day 1 (in 1988).
83305
83306 2000-01-17  Jim Meyering  <meyering@lucent.com>
83307
83308         * lib/interlock: Remove unused file.  Reported by François Pinard.
83309
83310 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83311
83312         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83313         alert, backslash, formfeed, and vertical tab unnecessarily in
83314         shell quoting style.
83315
83316 2000-01-16  Jim Meyering  <meyering@lucent.com>
83317
83318         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83319         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83320         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83321         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83322
83323 2000-01-16  Jim Meyering  <meyering@lucent.com>
83324
83325         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83326         because the latter didn't work.
83327
83328 2000-01-15  Jim Meyering  <meyering@lucent.com>
83329
83330         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83331         (AC_REPLACE_FUNCS): Add memcpy and memset.
83332         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83333         Add strpbrk.
83334         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83335
83336 2000-01-12  Jim Meyering  <meyering@lucent.com>
83337
83338         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83339         (jm_PREREQ): Use it.
83340         (jm_PREREQ_READUTMP): New macro.
83341         (jm_PREREQ): Use it.
83342
83343 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83344
83345         Quote multibyte characters correctly.
83346         * m4/c-bs-a.m4: New file.
83347         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83348         (jm_PREREQ): Use it.
83349
83350 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83351
83352         * m4/uintmax_t.m4: Port to autoconf 2.13.
83353
83354 2000-01-08  Jim Meyering  <meyering@ascend.com>
83355
83356         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83357         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83358
83359 2000-01-04  Jim Meyering  <meyering@ascend.com>
83360
83361         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83362         jm_STRUCT_DIRENT_D_TYPE.
83363         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83364         jm_STRUCT_DIRENT_D_INO.
83365         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83366         jm_STRUCT_UTIMBUF.
83367         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83368         renamings.
83369         * m4/utime.m4: Likewise.
83370
83371         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83372         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83373
83374 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83375
83376         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83377         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83378
83379 2000-01-02  Jim Meyering  <meyering@ascend.com>
83380
83381         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83382         remember if this is necessary.
83383
83384 1999-12-26  Jim Meyering  <meyering@ascend.com>
83385
83386         * m4/jm-macros.m4: Use it here.
83387         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83388
83389 1999-12-23  Jim Meyering  <meyering@ascend.com>
83390
83391         * m4/jm-macros.m4: Check for clock_gettime (moved from
83392         fileutils/configure.in)
83393         Check for gettimeofday.
83394
83395 1999-12-20  Jim Meyering  <meyering@ascend.com>
83396
83397         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83398         autoconf-2.14a-1999-12-20.
83399
83400 1999-12-19  Jim Meyering  <meyering@ascend.com>
83401
83402         * m4/lstat-slash.m4: New file.
83403         * m4/jm-macros.m4: Use the new macro:
83404         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83405
83406 1999-12-07  Jim Meyering  <meyering@ascend.com>
83407
83408         * m4/perl.m4: Require that File::Compare be available, too.
83409         Too many systems seem to lack it.
83410
83411         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83412         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83413
83414 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83415
83416         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83417         problem with the QNX 4.25 shell, which doesn't propagate exit
83418         status of failed commands inside shell assignments.
83419
83420 1999-11-17  Jim Meyering  <meyering@ascend.com>
83421
83422         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83423
83424 1999-11-07  Jim Meyering  <meyering@ascend.com>
83425
83426         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83427
83428 1999-11-06  Jim Meyering  <meyering@ascend.com>
83429
83430         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83431         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83432
83433 1999-11-05  Jim Meyering  <meyering@ascend.com>
83434
83435         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83436         configure.in of textutils, fileutils, and sh-utils into this one
83437         (shared between those packages) file.
83438         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83439         AC_STRUCT_ST_BLKSIZE.
83440
83441 1999-11-03  Jim Meyering  <meyering@ascend.com>
83442
83443         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83444         of AC_CHECK_TYPE checks includes unistd.h.
83445         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83446         Suggestion from Akim Demaille.
83447
83448 1999-10-30  Jim Meyering  <meyering@ascend.com>
83449
83450         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83451         m4-quoted string.
83452         * m4/ls-mntd-fs.m4: Likewise.
83453         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
83454         * m4/jm-winsz1.m4: Likewise.
83455
83456         * m4/const.m4: Remove file, since the fix made it into the experimental
83457         version of autoconf.
83458         * m4/mktime.m4: Likewise.
83459
83460         * m4/check-type.m4: Remove file, now that the latest version of
83461         AC_CHECK_TYPE takes a third arg to specify additional #includes.
83462
83463         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
83464         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
83465         AC_CHECK_TYPE.
83466
83467 1999-10-04  Jim Meyering  <meyering@ascend.com>
83468
83469         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
83470
83471 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83472
83473         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83474         2.95.1 bug with HP-UX 10.20.
83475
83476 1999-09-17  Jim Meyering  <meyering@ascend.com>
83477
83478         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83479         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83480         due to missing strdup (against sh-utils-2.0).
83481
83482 1999-08-29  Jim Meyering  <meyering@ascend.com>
83483
83484         * m4/jm-macros.m4: Require jm_BISON.
83485         * m4/bison.m4: New file.
83486
83487 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83488
83489         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83490         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83491
83492 1999-08-05  Jim Meyering  <meyering@ascend.com>
83493
83494         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83495         to avoid conflicts with `conftest' on 8+3 filesystems.
83496         Suggestion from Eli Zaretskii.
83497
83498 1999-08-04  Jim Meyering  <meyering@ascend.com>
83499
83500         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83501         fileutils and sh-utils (textutils's getline test was inadequate).
83502         (AM_FUNC_GETLINE): Run this test.
83503         (AC_CHECK_FUNCS): Check for getdelim.
83504         Reported by Bob Proulx.
83505
83506 1999-08-02  Jim Meyering  <meyering@ascend.com>
83507
83508         * m4/jm-macros.m4: Add a comment.
83509
83510 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83511
83512         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83513         <inttypes.h> defines strtoumax as a macro (and not as a
83514         function).
83515
83516 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83517
83518         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83519         that we can shift, multiply and divide unsigned long long
83520         values; Ultrix cc can't do it.
83521
83522 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83523
83524         * m4/mktime.m4: New file, which is a preview of what should appear
83525         in the next public autoconf release.
83526
83527 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83528
83529         * m4/lfs.m4: Remove this file.
83530         * m4/largefile.m4: New file.  It contains the old contents of
83531         lfs.m4, except that all names with prefix AC_LFS have been
83532         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83533         compatible with future autoconf versions.  Also, some minor m4
83534         quoting problems have been fixed.
83535
83536 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83537
83538         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
83539         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
83540         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
83541         and simplify the shell code.
83542
83543 1999-08-01  Jim Meyering  <meyering@ascend.com>
83544
83545         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
83546         m4.
83547
83548 1999-07-20  Jim Meyering  <meyering@ascend.com>
83549
83550         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
83551
83552 1999-07-15  Jim Meyering  <meyering@ascend.com>
83553
83554         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
83555
83556 1999-05-22  Jim Meyering  <meyering@ascend.com>
83557
83558         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
83559
83560 1999-05-20  Jim Meyering  <meyering@ascend.com>
83561
83562         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
83563         Add a colon after each `then' in case $4 is empty.
83564
83565 1999-05-16  Jim Meyering  <meyering@ascend.com>
83566
83567         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
83568
83569 1999-05-10  Jim Meyering  <meyering@ascend.com>
83570
83571         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
83572
83573         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
83574         AC_FUNC_MKTIME.
83575
83576 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
83577
83578         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
83579
83580 1999-05-04  Paul Eggert  <eggert@twinsun.com>
83581
83582         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
83583         not CPPFLAGS, so that linking works correctly in IRIX.
83584
83585 1999-04-30  Paul Eggert  <eggert@twinsun.com>
83586
83587         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
83588
83589 1999-04-20  Paul Eggert  <eggert@twinsun.com>
83590
83591         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
83592         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
83593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
83594         jm_AC_TYPE_UNSIGNED_LONG_LONG.
83595         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
83596
83597         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
83598
83599 1999-04-20  Jim Meyering  <meyering@ascend.com>
83600
83601         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
83602         AC_REPLACE xstroull if necessary.  From Paul Eggert.
83603         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
83604
83605 1999-04-18  Jim Meyering  <meyering@ascend.com>
83606
83607         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
83608         * m4/jm-macros.m4: Use it.
83609
83610 1999-04-06  Jim Meyering  <meyering@ascend.com>
83611
83612         * m4/strftime.m4: Remove test for %f.
83613
83614 1999-03-29  Jim Meyering  <meyering@ascend.com>
83615
83616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
83617         superset of the AC_TYPE_* checks in the textutils, fileutils,
83618         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
83619         AC_TYPE_PID_T.
83620
83621 1999-03-28  Jim Meyering  <meyering@ascend.com>
83622
83623         * m4/jm-macros.m4: Define GNU_PACKAGE here.
83624         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
83625         replaced e.g., in the *.sh files of the sh-utils.
83626
83627 1999-03-20  Jim Meyering  <meyering@ascend.com>
83628
83629         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
83630         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
83631         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
83632
83633 1999-03-19  Jim Meyering  <meyering@ascend.com>
83634
83635         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
83636
83637 1999-03-12  Jim Meyering  <meyering@ascend.com>
83638
83639         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
83640
83641 1999-03-07  Jim Meyering  <meyering@ascend.com>
83642
83643         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
83644         declared.
83645
83646 1999-02-17  Jim Meyering  <meyering@ascend.com>
83647
83648         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
83649         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
83650
83651 1999-02-07  Jim Meyering  <meyering@ascend.com>
83652
83653         * m4/group-member.m4: New file -- extracted from sh-utils'
83654         configure.in.
83655
83656         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
83657         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
83658
83659 1999-02-06  Jim Meyering  <meyering@ascend.com>
83660
83661         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
83662         * m4/fnmatch.m4: Likewise.
83663         * m4/getgroups.m4: Likewise.
83664         * m4/lstat.m4: Likewise.
83665         * m4/malloc.m4: Likewise.
83666         * m4/putenv.m4: Likewise.
83667         * m4/realloc.m4: Likewise.
83668         * m4/regex.m4: Likewise.
83669         * m4/stat.m4: Likewise.
83670         * m4/strftime.m4: Likewise.
83671         Suggestion from Alain Magloire.
83672
83673         * m4/chown.m4: Use `.$ac_objext', not `.o'.
83674         * m4/fnmatch.m4: Likewise.
83675         * m4/getgroups.m4: Likewise.
83676         * m4/getline.m4: Likewise.
83677         * m4/lstat.m4: Likewise.
83678         * m4/malloc.m4: Likewise.
83679         * m4/memcmp.m4: Likewise.
83680         * m4/putenv.m4: Likewise.
83681         * m4/realloc.m4: Likewise.
83682         * m4/regex.m4: Likewise.
83683         * m4/stat.m4: Likewise.
83684         * m4/strftime.m4: Likewise.
83685         Suggestion from Alain Magloire.
83686
83687         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
83688         an argument.
83689
83690         * m4/regex.m4: Add a run-time Test for proper operation of
83691         re_compile_pattern.
83692
83693 1999-01-31  Jim Meyering  <meyering@ascend.com>
83694
83695         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
83696
83697 1999-01-30  Jim Meyering  <meyering@ascend.com>
83698
83699         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
83700
83701         * m4/jm-mktime.m4: Make this a wrapper around the official
83702         AM_FUNC_MKTIME rather than my private copy, now that the official one
83703         is up to date.
83704         * m4/mktime.m4: Remove file.
83705
83706         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
83707         * m4/uptime.m4: Likewise.
83708         * m4/uintmax_t.m4: Likewise.
83709
83710 1999-01-28  Jim Meyering  <meyering@ascend.com>
83711
83712         * m4/jm-macros.m4: Use jm_AFS.
83713         * m4/afs.m4: New file (from fileutils' configure.in).
83714
83715         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
83716         * m4/chown.m4: Likewise.
83717         * m4/d-ino.m4: Likewise.
83718         * m4/d-type.m4: Likewise.
83719         * m4/fnmatch.m4: Likewise.
83720         * m4/getgroups.m4: Likewise.
83721         * m4/gettext.m4: Likewise.
83722         * m4/jm-mktime.m4: Likewise.
83723         * m4/jm-winsz2.m4: Likewise.
83724         * m4/lcmessage.m4: Likewise.
83725         * m4/ls-mntd-fs.m4: Likewise.
83726         * m4/malloc.m4: Likewise.
83727         * m4/memcmp.m4: Likewise.
83728         * m4/putenv.m4: Likewise.
83729         * m4/realloc.m4: Likewise.
83730         * m4/st_mtim.m4: Likewise.
83731         * m4/strftime.m4: Likewise.
83732
83733 1999-01-16  Jim Meyering  <meyering@ascend.com>
83734
83735         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
83736         (ARGMATCH_DIE_DECL): Define.
83737
83738 1999-01-12  Jim Meyering  <meyering@ascend.com>
83739
83740         * m4/Makefile.am.in: Rewrite to avoid using fmt.
83741         Reported by Lars Hecking.
83742
83743 1999-01-10  Jim Meyering  <meyering@ascend.com>
83744
83745         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
83746         gross kludge.
83747         * m4/inttypes_h.m4: Likewise.
83748         * m4/lstat.m4: Likewise.
83749         * m4/malloc.m4: Likewise.
83750         * m4/readdir.m4: Likewise.
83751         * m4/realloc.m4: Likewise.
83752         * m4/st_dm_mode.m4: Likewise.
83753         * m4/stat.m4: Likewise.
83754         * m4/utimbuf.m4: Likewise.
83755         * m4/utimes.m4: Likewise.
83756
83757         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
83758         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
83759         comments in config.h.in are meaningful.
83760
83761         * m4/jm-macros.m4: Require autoconf-2.13 here.
83762
83763         * m4/regex.m4: By default, don't use the included regex.c on systems
83764         with glibc 2.  Suggestion from Uli Drepper.
83765
83766 1999-01-02  Jim Meyering  <meyering@ascend.com>
83767
83768         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
83769
83770 1998-12-18  Jim Meyering  <meyering@ascend.com>
83771
83772         * m4/Makefile.am.in (Makefile.am): Simplify rule.
83773         Based on a suggestion from Lars Hecking.
83774
83775 1998-11-16  Paul Eggert  <eggert@twinsun.com>
83776
83777         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
83778
83779 1998-11-16  Jim Meyering  <meyering@ascend.com>
83780
83781         * m4/lfs.m4: Double-quote the `uname...` expression.
83782
83783 1998-11-14  Jim Meyering  <meyering@ascend.com>
83784
83785         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
83786         * m4/stat.m4: Likewise.
83787
83788 1998-11-03  Jim Meyering  <meyering@ascend.com>
83789
83790         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
83791         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
83792
83793 1998-10-18  Jim Meyering  <meyering@ascend.com>
83794
83795         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
83796
83797 1998-10-17  Jim Meyering  <meyering@ascend.com>
83798
83799         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
83800         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
83801         calls for those previously hard-coded headers.  Instead, take a new
83802         parameter.
83803         (jm_CHECK_DECLARATIONS): Reflect interface change.
83804         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
83805         (jm_CHECK_DECL_LOCALTIME_R): New macro.
83806
83807         * m4/mktime.m4: Test for spring-forward gap before long-running test.
83808
83809 1998-10-14  Jim Meyering  <meyering@ascend.com>
83810
83811         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
83812         instead of "TZ=America/Vancouver".  From Paul Eggert.
83813
83814 1998-10-11  Jim Meyering  <meyering@ascend.com>
83815
83816         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
83817         This adds a test for a recently added compatibility fix for mktime.c.
83818         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
83819
83820 1998-09-27  Jim Meyering  <meyering@ascend.com>
83821
83822         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
83823
83824         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
83825         ../configure.in, including a change from Gordon Matzigkeit to allow
83826         cross-compiling for the Hurd.
83827
83828         * m4/glibc.m4: New file/macro to test for the GNU C Library
83829         versions 1 and 2.  From Gordon Matzigkeit.
83830         Indent.
83831
83832 1998-09-21  Jim Meyering  <meyering@ascend.com>
83833
83834         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
83835
83836 1998-08-18  Paul Eggert  <eggert@twinsun.com>
83837
83838         Port nanosecond-resolution times to UnixWare 2.1.2 and
83839         pedantic Solaris 2.6.
83840
83841         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
83842         AC_STRUCT_ST_MTIM.
83843         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
83844         Generate name of ns member, instead of just 1 or undef.
83845         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
83846
83847 1998-08-15  Jim Meyering  <meyering@ascend.com>
83848
83849         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
83850         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
83851         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
83852         instead of jm_TYPE_SSIZE_T.
83853
83854 1998-08-12  Jim Meyering  <meyering@ascend.com>
83855
83856         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
83857
83858 1998-08-02  Jim Meyering  <meyering@ascend.com>
83859
83860         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
83861         in acconfig.h manually.
83862
83863 1998-07-31  Paul Eggert  <eggert@twinsun.com>
83864
83865         * m4/st_mtim.m4: New file.
83866
83867 1998-07-28  Jim Meyering  <meyering@ascend.com>
83868
83869         * m4/utimes.m4: Undef stat.
83870
83871 1998-07-25  Jim Meyering  <meyering@ascend.com>
83872
83873         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
83874         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
83875
83876 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
83877
83878         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
83879         uid and gid actually remain unchanged.
83880
83881 1998-07-07  Jim Meyering  <meyering@ascend.com>
83882
83883         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
83884
83885 1998-07-04  Jim Meyering  <meyering@ascend.com>
83886
83887         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
83888         to prove that this macro can be used in packages without regex.c.
83889
83890 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
83891
83892         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
83893         is to be used.
83894
83895 1998-07-03  Jim Meyering  <meyering@ascend.com>
83896
83897         * m4/gettext.m4: Add -lintl if it's found to be necessary.
83898
83899         * m4/gettext.m4: New file -- from gettext-0.10.35.
83900         * m4/lcmessage.m4: Likewise.
83901         * m4/progtest.m4: Likewise.
83902
83903         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
83904         * m4/jm-macros.m4: Require the new macro.
83905
83906 1998-06-29  Jim Meyering  <meyering@ascend.com>
83907
83908         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
83909         for the definition of NGROUPS (used in a system header included
83910         by sys/mount.h).
83911
83912 1998-06-28  Jim Meyering  <meyering@ascend.com>
83913
83914         * m4/ls-mntd-fs.m4: New file.
83915         * m4/fstypename.m4: New file.
83916
83917         * m4/jm-macros.m4: Require the new macro.
83918         * m4/jm-glibc-io.m4: New file.
83919
83920 1998-05-19  Jim Meyering  <meyering@ascend.com>
83921
83922         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
83923         * m4/lchown.m4: New file.
83924
83925         * m4/Makefile.am.in: New file.
83926         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
83927
83928 1998-05-14  Jim Meyering  <meyering@ascend.com>
83929
83930         * m4/Makefile.am (EXTRA_DIST): Add them.
83931         * m4/jm-macros.m4: New file.
83932         * m4/utimbuf.m4: New file.
83933
83934 1998-05-12  Jim Meyering  <meyering@ascend.com>
83935
83936         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
83937
83938 1998-05-11  Jim Meyering  <meyering@ascend.com>
83939
83940         * m4/isc-posix.m4: New file.
83941
83942 1998-05-10  Jim Meyering  <meyering@ascend.com>
83943
83944         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
83945
83946 1998-05-09  Jim Meyering  <meyering@ascend.com>
83947
83948         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
83949         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
83950         with automake.
83951
83952         * m4/ssize_t.m4: New file.
83953         * m4/mktime.m4: Remove file -- the new automake has this now.
83954
83955 1998-04-26  Jim Meyering  <meyering@ascend.com>
83956
83957         * m4/assert.m4: New file.
83958         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
83959
83960 1998-04-05  Jim Meyering  <meyering@ascend.com>
83961
83962         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
83963         (jm_PREREQ): Use it here.
83964
83965 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
83966
83967         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
83968         in acconfig.h.
83969
83970 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
83971
83972         * m4/prereq.m4: New file.
83973         * m4/error.m4: New file.
83974         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
83975
83976 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
83977
83978         * m4/getline.m4: Don't set am_cv_func_working_getline before the
83979         cache-check for the same variable -- that defeated the purpose of
83980         the test; the test program was never run.  This was a problem only
83981         on systems with losing getline functions -- HP-UX 10.20 is one.
83982         Reported by Bjorn Helgaas.
83983
83984 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
83985
83986         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
83987
83988 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
83989
83990         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
83991
83992         * m4/const.m4: New file.  Use an initializer in this declaration
83993         typedef int charset[2]; const charset x;
83994         Reported by Bob Glickstein.
83995
83996 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
83997
83998         * m4/chown.m4: Fix reversed types on -1 args to chown.
83999         From Kaveh Ghazi.
84000
84001 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84002
84003         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84004         Add lseek and memchr.
84005
84006         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84007         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84008         have a 20-character limit on names.
84009
84010 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84011
84012         * m4/inttypes_h.m4: New file.
84013         * m4/uintmax_t.m4: New file.
84014         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84015
84016
84017         -----
84018
84019         Local Variables:
84020         coding: utf-8
84021         End:
84022
84023         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84024
84025         Copying and distribution of this file, with or without
84026         modification, are permitted provided the copyright notice
84027         and this notice are preserved.