tcgetsid: Add missing declaration on OSF/1 5.1.
[gnulib.git] / ChangeLog
1 2010-12-19  Bruno Haible  <bruno@clisp.org>
2
3         tcgetsid: Add missing declaration on OSF/1 5.1.
4         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
5         HAVE_TCGETSID.
6         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
7         Don't set HAVE_TCGETSID.
8         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
11         HAVE_TCGETSID.
12         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13
14 2010-12-19  Bruno Haible  <bruno@clisp.org>
15
16         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17         * lib/stdio.in.h: During the include_next statement, let recursive
18         includes of this file include only the system header file.
19
20 2010-12-19  Bruno Haible  <bruno@clisp.org>
21
22         iconv_open: Fix regression from 2010-12-04.
23         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
25
26 2010-12-19  Bruno Haible  <bruno@clisp.org>
27
28         stdbool test: Avoid a gcc warning.
29         * tests/test-stdbool.c (main): Fail if e1 is false.
30         Reported by Jim Meyering.
31
32 2010-12-19  Jim Meyering  <meyering@redhat.com>
33
34         setenv: restore to working order
35         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
36         mistakenly removed.
37         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
38         HAVE_SETENV.
39         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
40         HAVE_SETENV.
41
42 2010-12-19  Bruno Haible  <bruno@clisp.org>
43
44         Document some different function declarations on OSF/1 5.1.
45         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
46         * doc/posix-functions/inet_ntop.texi: Likewise.
47         * doc/posix-functions/gethostname.texi: Likewise.
48         * lib/unistd.in.h (gethostname): Update comment.
49
50 2010-12-19  Bruno Haible  <bruno@clisp.org>
51
52         doc: Mention vasprintf-posix module.
53         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
54         the 'vasprintf-posix' module.
55         * doc/glibc-functions/vasprintf.texi: Likewise.
56
57 2010-12-19  Bruno Haible  <bruno@clisp.org>
58
59         unsetenv: Add missing declaration on OSF/1 5.1.
60         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
61         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
62         Don't set HAVE_UNSETENV. In the test program, set _BSD.
63         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
64         not HAVE_UNSETENV.
65         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
66         HAVE_UNSETENV.
67         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
68
69 2010-12-19  Bruno Haible  <bruno@clisp.org>
70
71         setenv: Add missing declaration on OSF/1 5.1.
72         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
73         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
74         declared. Don't set HAVE_SETENV.
75         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
76         not HAVE_SETENV.
77         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
78         HAVE_SETENV.
79         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
80
81 2010-12-19  Bruno Haible  <bruno@clisp.org>
82
83         nl_langinfo tests: Avoid gcc warning.
84         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
85
86 2010-12-19  Bruno Haible  <bruno@clisp.org>
87
88         mknod: Avoid error in C++ mode on OSF/1 with GCC.
89         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
90         _GL_CXXALIAS_SYS.
91
92 2010-12-19  Bruno Haible  <bruno@clisp.org>
93
94         stdbool: Relax test.
95         * tests/test-stdbool.c (e): Don't require that casts from a variable's
96         address to 'bool' work in static initializer, for compilers other than
97         GCC.
98
99 2010-12-19  Bruno Haible  <bruno@clisp.org>
100
101         ftello: Add missing declaration on OSF/1 5.1.
102         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
103         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
105         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
106         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
107
108 2010-12-19  Bruno Haible  <bruno@clisp.org>
109
110         fseeko: Add missing declaration on OSF/1 5.1.
111         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
112         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
114         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
115         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
116
117 2010-12-19  Bruno Haible  <bruno@clisp.org>
118
119         fchdir: Add missing declaration on OSF/1 5.1.
120         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
123         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
124         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
125
126 2010-12-19  Bruno Haible  <bruno@clisp.org>
127
128         relocatable-prog-wrapper: Separate from relocatable-prog.
129         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
130         uninstall-relocwrapper rule here.
131         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
132         Reported by Ian Beckwith <ianb@erislabs.net>.
133
134 2010-12-19  Bruno Haible  <bruno@clisp.org>
135
136         unistr/u8-mbsnlen: Add missing dependency.
137         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
138         Reported by Ian Beckwith <ianb@erislabs.net>.
139
140 2010-12-19  Bruno Haible  <bruno@clisp.org>
141
142         iconv: Make it possible again to use this module without 'iconv-h'.
143         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
144         if it is not defined.
145         Reported by Ian Beckwith <ianb@erislabs.net>.
146
147 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
148
149         acl: port to Solaris 8 when copying from tmpfs to ufs
150         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
151         error number.  Problem observed on Solaris 8 with latest
152         coreutils, with "mv A B", where A is on a tmpfs file system and B
153         is on a ufs file system.  This caused coreutils' mv/part-symlink
154         test to fail.
155
156         tests: set fail=0 at start
157         * tests/init.sh (setup_): Move fail=0 initialization here ...
158         (mktempd_): ... from here, so that tests can rely on fail being
159         set to 0 initially.  This fixes a problem in coreutils; see:
160         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
161
162 2010-12-18  Bruno Haible  <bruno@clisp.org>
163
164         memmem-simple: Stylistic changes.
165         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
166         Fix preprocessor directive indentation.
167
168 2010-12-15  Pádraig Brady <P@draigBrady.com>
169
170         memmem, memmem-simple: reorganize and expand empty needle check
171         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
172         functional checks to memmem-simple so that one has a fully functional
173         memmem by using just this module.
174         Restrict the performance only check to the memmem module.
175         Also expand the empty needle check to ensure the correct
176         pointer is returned, not just a non NULL pointer.
177         * doc/glibc-functions/memmem.texi: Rearrange the portability
178         documentation to correlate with the rearranged checks.
179         Clarify exactly how the memmem and memmem-simple modules
180         relate to each other.
181
182 2010-12-15  Pádraig Brady <P@draigBrady.com>
183             Bruno Haible  <bruno@clisp.org>
184
185         Improve cross-compilation guesses for uClibc.
186         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
187         that uClibc does not have the glibc bug.
188         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
189         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
190
191 2010-12-14  Eric Blake  <eblake@redhat.com>
192
193         configmake: provide fallbacks for oldest supported autotools
194         * m4/configmake.m4: New file.
195         * modules/configmake (Files): Ship it.
196         (configure.ac): Use it to guarantee fallbacks.
197
198 2010-12-13  Pádraig Brady <P@draigBrady.com>
199
200         read-file: Improve handling of large files
201         * lib/read-file.c (fread_file): Minimize realloc()s
202         for regular files, and better manage sizes around SIZE_MAX.
203
204 2010-12-13  Eric Blake  <eblake@redhat.com>
205
206         cloexec, fcntl: relax license
207         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
208         consent from all contributors.
209         * modules/fcntl (License): Likewise.
210
211 2010-12-10  Bruno Haible  <bruno@clisp.org>
212
213         Tests for module 'pipe-posix'.
214         * modules/pipe-posix-tests: New file.
215         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
216
217 2010-12-10  Bruno Haible  <bruno@clisp.org>
218
219         pipe-posix: Make it work in C++ mode.
220         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
221         (pipe): Use common idiom, not a macro definition.
222         * lib/pipe.c: New file.
223         * m4/pipe.m4: New file.
224         * modules/pipe-posix (Description): Enhance.
225         (Files): Add lib/pipe.c, m4/pipe.m4.
226         (configure.ac): Invoke gl_FUNC_PIPE.
227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
228         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
229         * tests/test-unistd-c++.cc: Check the signature of pipe.
230
231 2010-12-10  Bruno Haible  <bruno@clisp.org>
232
233         Rename module 'pipe' to 'spawn-pipe'.
234         * modules/spawn-pipe: New file, renamed from modules/pipe.
235         (Files, configure.ac, Makefile.am): Update.
236         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
237         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
238         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
239         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
240         "spawn-pipe.h" instead of "pipe.h".
241         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
242         to gl_SPAWN_PIPE.
243         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
244         (Files, Makefile.am): Update.
245         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
246         Update.
247         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
248         Include "spawn-pipe.h" instead of "pipe.h".
249         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
250         * lib/javacomp.c: Likewise.
251         * lib/javaversion.c: Likewise.
252         * lib/pipe-filter-gi.c: Likewise.
253         * lib/pipe-filter-ii.c: Likewise.
254         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
255         * modules/javacomp (Depends-on): Likewise.
256         * modules/javaversion (Depends-on): Likewise.
257         * modules/pipe-filter-gi (Depends-on): Likewise.
258         * modules/pipe-filter-ii (Depends-on): Likewise.
259         * MODULES.html.sh (Executing programs): Update.
260         * NEWS: Mention the change.
261
262 2010-12-10  Eric Blake  <eblake@redhat.com>
263
264         pipe-posix: new module
265         * modules/pipe-posix: New file.
266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
267         (gl_UNISTD_H): Check for declaration.
268         * modules/unistd (Makefile.am): Substitute it.
269         * lib/unistd.in.h (pipe): Provide it for mingw.
270         * doc/posix-functions/pipe.texi (pipe): Update documentation.
271         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
272
273 2010-12-07  Bruno Haible  <bruno@clisp.org>
274
275         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
276         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
277         u8_strcmp_gnu.
278         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
279
280 2010-12-06  Bruno Haible  <bruno@clisp.org>
281
282         Update internal documentation.
283         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
284
285 2010-12-04  Bruno Haible  <bruno@clisp.org>
286
287         Put more information about failed tests into the test return codes.
288         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
289         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
290         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
291         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
292         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
293         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
294         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
295         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
296         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
297         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
298         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
299         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
300         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
301         * m4/stdint.m4 (gl_STDINT_H): Likewise.
302         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
303         returns a bit mask.
304         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
305         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
306         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
307         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
308         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
309         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
310         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
311         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
312         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
313         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
314         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
315         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
316         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
317         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
318         * m4/link.m4 (gl_FUNC_LINK): Likewise.
319         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
320         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
321         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
322         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
323         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
324         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
325         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
326         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
327         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
328         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
329         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
330         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
331         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
332         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
333         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
334         gl_PRINTF_PRECISION): Likewise.
335         * m4/regex.m4 (gl_REGEX): Likewise.
336         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
337         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
338         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
339         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
340         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
341         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
342         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
343         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
344         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
345         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
346         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
347         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
348         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
349         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
350         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
351         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
352         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
353         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
354         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
355         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
356         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
357         enumerated value.
358         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
359
360 2010-12-04  Bruno Haible  <bruno@clisp.org>
361
362         Update for Solaris 11 2010-11.
363         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
364         Express, released in November 2010.
365
366 2010-12-04  Bruno Haible  <bruno@clisp.org>
367
368         nproc: Relax license.
369         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
370         and Paul Eggert.
371         Requested by Ludovic Courtès <ludo@gnu.org>.
372
373 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
374
375         utimecmp: fine-grained src to nearby coarse-grained dest
376
377         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
378         and the source is on a file system with higher-resolution time
379         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
380         not work, and the time stamps are close together, the algorithm to
381         determine the exact resolution from the read-back mtime was buggy:
382         it had a "!=" where it should have had an "==".  This bug has been
383         in the code ever since it was introduced to gnulib.
384         Problem reported by Dan Jacobson in
385         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
386
387 2010-11-30  Bruno Haible  <bruno@clisp.org>
388
389         strerror_r-posix: Fix autoconf test.
390         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
391
392 2010-11-28  Bruno Haible  <bruno@clisp.org>
393             Paul Eggert  <eggert@cs.ucla.edu>
394
395         Tests for module 'getdomainname'.
396         * modules/getdomainname-tests: New file.
397         * tests/test-getdomainname.c: New file, based on
398         tests/test-gethostname.c.
399
400 2010-11-28  Bruno Haible  <bruno@clisp.org>
401             Paul Eggert  <eggert@cs.ucla.edu>
402
403         getdomainname: Use the system function when possible.
404         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
405         (getdomainname): Replace if needed. Provide the declaration if it is
406         missing. Don't use _GL_CXXALIAS_SYS_CAST.
407         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
408         (getdomainname): When the system has getdomainname, call the system
409         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
410         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
411         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
412         found in libnsl. Look for the declaration also in <netdb.h>. Replace
413         the function if its second argument is of type 'int' or if it is found
414         in libnsl.
415         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
416         <sys/systeminfo.h> and sysinfo().
417         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
419         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
420         HAVE_GETDOMAINNAME.
421         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
422         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
423         * doc/glibc-functions/getdomainname.texi: Document the problems with
424         the getdomainname declaration.
425
426 2010-11-28  Bruno Haible  <bruno@clisp.org>
427
428         sys_socket: Ensure ss_family field on AIX.
429         * lib/sys_socket.in.h (ss_family): New macro definition.
430         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
431         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
432         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
433         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
434         * modules/sys_socket (Makefile.am): Substitute
435         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
436         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
437
438 2010-11-27  Bruno Haible  <bruno@clisp.org>
439
440         readline: Improve configure output.
441         * m4/readline.m4 (gl_FUNC_READLINE): Make the
442         "checking for readline..." result understandable.
443
444 2010-11-27  Bruno Haible  <bruno@clisp.org>
445
446         *printf-posix: Detect a bug on Solaris 10/x86.
447         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
448         for floating-point output.
449         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
450         directive.
451         * tests/test-snprintf-posix.h (test_function): Likewise.
452         * tests/test-sprintf-posix.h (test_function): Likewise.
453         * tests/test-vasprintf-posix.c (test_function): Likewise.
454         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
455         * doc/posix-functions/printf.texi: Likewise.
456         * doc/posix-functions/snprintf.texi: Likewise.
457         * doc/posix-functions/sprintf.texi: Likewise.
458         * doc/posix-functions/vfprintf.texi: Likewise.
459         * doc/posix-functions/vprintf.texi: Likewise.
460         * doc/posix-functions/vsnprintf.texi: Likewise.
461         * doc/posix-functions/vsprintf.texi: Likewise.
462         * doc/glibc-functions/obstack_printf.texi: Likewise.
463         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
464
465 2010-11-27  Bruno Haible  <bruno@clisp.org>
466
467         Fix link error when module libunistring-optional is in use.
468         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
469         * modules/striconveha-tests (Makefile.am): Likewise.
470
471 2010-11-27  Bruno Haible  <bruno@clisp.org>
472
473         regex: Mention link dependencies.
474         * modules/regex (Link): New section.
475         * modules/rpmatch (Link): Likewise.
476         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
477
478 2010-11-27  Bruno Haible  <bruno@clisp.org>
479
480         ftoastr: Fix compilation error on Solaris.
481         * lib/ftoastr.c: Include <config.h>.
482
483 2010-11-27  Bruno Haible  <bruno@clisp.org>
484
485         getloadavg: Update documentation.
486         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
487
488 2010-11-27  Bruno Haible  <bruno@clisp.org>
489
490         sys_socket: Fix test whether the functions are declared.
491         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
492         not <sys/select.h>.
493
494 2010-11-27  Bruno Haible  <bruno@clisp.org>
495
496         getpass: Make sure to get system declaration on some platforms.
497         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
498         gl_USE_SYSTEM_EXTENSIONS.
499         * modules/getpass (Depends-on): Add extensions.
500
501 2010-11-26  Bruno Haible  <bruno@clisp.org>
502
503         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
504         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
505         'iconv' module is present.
506         (ICONV_CONST): New macro.
507         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
508         ICONV_CONST.
509         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
510         set ICONV_CONST.
511         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
512         here.
513         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
514         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
515         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
516         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
517         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
518         present.
519
520 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
521
522         ftoastr: comment fix
523         * lib/ftoastr.c: "little" -> "little or no" in comment
524
525 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
526
527         stdint: port to GCC 4.3 + OSX + Octave
528         On this platform, stdint.h is buggy and defines int64_t to long
529         long int.  The replacement defined it to long int, causing
530         problems with C++ style name mangling.  Instead, trust the system
531         definition if INT64_MAX is defined, and likewise for the unsigned
532         variant.   Problem reported by Jarno Rajahalme in
533         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
534         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
535         and don't mess with int64_t and INT64_MAX in this case.
536         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
537
538 2010-11-24  Bruno Haible  <bruno@clisp.org>
539
540         doc: Corrections regarding MacOS X 10.4 and 10.5.
541         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
542         MacOS X.
543         Reported by Simon Josefsson.
544
545 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
546
547         Uninstall ".bin" files installed by relocwrapper.
548         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
549         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
550         unless it is already there.
551
552 2010-11-21  Bruno Haible  <bruno@clisp.org>
553
554         Update for NetBSD 5.0.
555         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
556         NetBSD; the test fails on NetBSD 5.0.
557         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
558         about NetBSD.
559
560 2010-11-21  Bruno Haible  <bruno@clisp.org>
561
562         Update for HP-UX 11.23 and HP-UX 11.31.
563         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
564         HP-UX.
565
566 2010-11-21  Bruno Haible  <bruno@clisp.org>
567
568         Update for MacOS X 10.5.
569         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
570         MacOS X; the test fails on MacOS X 10.5.8.
571         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
572         about MacOS X.
573
574 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
575
576         bootstrap: add bootstrap_sync option.
577         See discussion at
578         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
579         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
580         * build-aux/bootstrap: Accept --bootstrap-sync to update
581         bootstrap if it is not identical to the local gnulib's
582         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
583         enable this by default.  Accept --no-bootstrap-sync to disable
584         it.
585
586 2010-11-20  Bruno Haible  <bruno@clisp.org>
587
588         Ensure that <features.h> is included before __GLIBC__ is tested.
589         * lib/printf-parse.h: Include <features.h>.
590         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
591         Reported by Mike Frysinger <vapier@gentoo.org>.
592
593         Ensure that <features.h> is included before __GLIBC__ is tested.
594         * lib/wchar.in.h: Include <features.h>.
595         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
596         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
597         Reported by Mike Frysinger <vapier@gentoo.org>.
598
599         Ensure that <features.h> is included before __GLIBC__ is tested.
600         * lib/arpa_inet.in.h: Include <features.h>.
601         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
602         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
603         Reported by Mike Frysinger <vapier@gentoo.org>.
604
605         Ensure that <features.h> is included before __GLIBC__ is tested.
606         * build-aux/link-warning.h: Include <features.h>.
607         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
608         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
609         Reported by Mike Frysinger <vapier@gentoo.org>.
610
611         Ensure that <features.h> is included before __GLIBC__ is tested.
612         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
613         Reported by Mike Frysinger <vapier@gentoo.org>.
614
615 2010-11-20  Bruno Haible  <bruno@clisp.org>
616
617         memmem: Fix autoconf test.
618         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
619
620 2010-11-20  Bruno Haible  <bruno@clisp.org>
621
622         Port to uClibc.
623         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
624         * lib/fcntl.in.h: Likewise.
625         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
626         * lib/mbrtowc.c (mbrtowc): Likewise.
627         * lib/relocatable.c (find_shared_library_fullname): Likewise.
628         * lib/strerror_r.c: Likewise.
629         * lib/unistr/u8-strnlen.c: Likewise.
630         * lib/vasnprintf.c (decimal_point_char): Likewise.
631         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
632         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
633         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
634         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
635         * tests/test-sigaction.c (handler, main): Likewise.
636         * lib/freading.h: Treat uClibc like a non-glibc platform.
637         * lib/freading.c: Likewise.
638         * lib/gettext.h: Likewise.
639         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
640         Likewise.
641         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
642         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
643         * lib/propername.c (proper_name_utf8): Likewise.
644         * lib/spawn.in.h: Likewise.
645         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
646         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
647         mem_cd_iconveh_internal): Likewise.
648         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
649         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
650         strstr, strcasestr): Likewise.
651         * lib/unicodeio.c (unicode_to_mb): Likewise.
652         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
653         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
654         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
655         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
656         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
657         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
658         * lib/unistr/u8-stpncpy.c: Likewise.
659         * lib/vasnprintf.c (VASNPRINTF): Likewise.
660         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
661         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
662         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
663         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
664         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
665         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
666         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
668         Likewise.
669         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
670         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
671         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
672         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
673         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
674         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
675         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
676         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
677         * tests/test-getopt.h (OPTIND_MIN): Likewise.
678         * tests/test-striconveha.c (main): Likewise.
679         * tests/test-vasnprintf-posix.c (test_function): Likewise.
680         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
681         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
682         * doc/posix-functions/getline.texi: Likewise.
683         Reported by Mike Frysinger <vapier@gentoo.org>.
684
685 2010-11-20  Bruno Haible  <bruno@clisp.org>
686
687         nproc: Fix condition.
688         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
689         HAVE_PTHREAD_AFFINITY_NP.
690
691 2010-11-20  Bruno Haible  <bruno@clisp.org>
692
693         Fix a comment.
694         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
695
696 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
697
698         ftoastr: don't assume snprintf
699         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
700         Implement a subset of snprintf here, by using sprintf safely.
701         * modules/ftoastr (Depends-on): Remove snprintf.
702
703 2010-11-19  Jim Meyering  <meyering@redhat.com>
704
705         test-rename.h: fix compilation failure
706         * tests/test-rename.h (test_rename): Add omitted "}".
707
708 2010-11-17  Jim Meyering  <meyering@redhat.com>
709
710         maint.mk: add a URL discussing the no-@acronym policy
711         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
712
713 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
714
715         ftoastr: depend on snprintf, improve comments
716         * lib/ftoastr.c: Also mention Loitsch's draft.
717         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
718         needed in the current implementation, but it might simplify
719         speeding up the code later.
720         * modules/ftoastr: Depend on snprintf; this improves portability.
721         Suggested by Bruno Haible in the same email.
722
723         ftoastr: port to hosts lacking strtof and strtold
724         Problem reported by Bruno Haible in
725         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
726         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
727         environment and strtold (and presumably strtof) are not available.
728         * modules/ftoastr (Files): Add m4/c-strtod.m4.
729         (configure.ac): Require gl_C99_STRTOLD.
730
731 2010-11-18  Bruno Haible  <bruno@clisp.org>
732
733         c-strtold: Avoid link error on AIX 7.
734         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
735         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
736         (gl_C_STRTOLD): Test whether strtold_l exists.
737         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
738
739 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
740
741         intprops: new macro INT_BITS_STRLEN_BOUND
742         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
743         ftoastr.h.  This exposes an internal of intprops.h that was formerly
744         not exposed.  Also, it uses a slightly tighter bound than before;
745         though this makes no practical difference, we might as well be as
746         tight as we easily can.
747
748         ftoastr: new module, for lossless conversion of floats to short strings
749         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
750         * modules/ftoastr: New files.
751
752 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
753
754         bootstrap: port to Solaris sed
755         * build-aux/bootstrap (get_version): Port to Solaris sed.
756         See Ralf Wildenhues's note in
757         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
758
759 2010-11-14  Jim Meyering  <meyering@redhat.com>
760
761         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
762         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
763         and move definition closer to sole use.
764
765 2010-11-13  Jim Meyering  <meyering@redhat.com>
766
767         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
768         Now we require at least autoconf-2.59, which means the work-around
769         is no longer needed.
770         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
771         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
772         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
773         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
774         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
775
776 2010-11-13  Bruno Haible  <bruno@clisp.org>
777
778         rename, renameat: Avoid test failures at NFS mounted locations.
779         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
780         functions.
781         (test_rename): Use assert_nonexistent.
782         * tests/test-rename.c: Include <dirent.h>.
783         * tests/test-renameat.c: Likewise.
784         Reported by Gary V. Vaughan <gary@gnu.org>.
785
786         rename, renameat: Document Linux bug with NFS
787         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
788         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
789         * doc/posix-functions/renameat.texi: Likewise.
790         Suggested by Eric Blake.
791
792 2010-11-13  Bruno Haible  <bruno@clisp.org>
793
794         rename test: Add comments.
795         * tests/test-rename.h (test_rename): Add structure and comments.
796
797 2010-11-13  Eric Blake  <eblake@redhat.com>
798
799         maintainer-makefile: cover a few more files
800         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
801         scripts generated within C files, for libvirt.
802
803 2010-11-13  Bruno Haible  <bruno@clisp.org>
804
805         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
806         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
807         character, return the number of bytes that belong together, not always
808         1.
809         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
810         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
811         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
812         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
813         number of bytes of an invalid character.
814         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
815         (main): Invoke it.
816         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
817         results.
818         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
819         malformed byte sequences.
820         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
821         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
822         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
823         Reported by Ben Pfaff and Paolo Bonzini.
824
825 2010-11-13  Bruno Haible  <bruno@clisp.org>
826
827         openat: Work around glibc bug with fchownat() and empty file names.
828         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
829         (gl_FUNC_FCHOWNAT): Invoke it.
830         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
831         * doc/posix-functions/fchownat.texi: Document the glibc bug.
832         Reported by Gary V. Vaughan <gary@gnu.org>.
833
834 2010-11-13  Bruno Haible  <bruno@clisp.org>
835
836         openat: Ensure autoconf macro ordering.
837         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
838         gl_USE_SYSTEM_EXTENSIONS.
839         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
840
841 2010-11-13  Bruno Haible  <bruno@clisp.org>
842
843         Update comments.
844         * lib/unistr/u8-check.c: Update file name in comments.
845         * lib/unistr/u8-mblen.c: Likewise.
846         * lib/unistr/u8-prev.c: Likewise.
847         * lib/unistr/u8-strmblen.c: Likewise.
848         * lib/unistr/u8-strmbtouc.c: Likewise.
849
850 2010-11-13  Jim Meyering  <meyering@redhat.com>
851
852         tests: avoid test failure on Solaris 10 due to lack of PATH export
853         * tests/test-update-copyright.sh: Don't forget to export PATH.
854
855         init.sh: ensure that IFS is defined, just in case...
856         * tests/init.sh (setup_): Ensure that IFS is defined,
857         so that saving and restoring it works as expected.  This
858         appears to be useful at least for an old version of dash
859         from a long time ago (RH 6).  See here for details:
860         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
861
862         maint.mk: tighten "test a == b" check
863         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
864         test to files that contain something like #!/bin/sh.
865         Without this, coreutils would get two false positives in
866         the comments of C source files.
867
868 2010-11-12  Eric Blake  <eblake@redhat.com>
869
870         bootstrap: fix typo in previous attempt
871         * build-aux/bootstrap (buildreq): Correct the grouping.
872         Reported by Paul Eggert.
873
874         maintainer-makefile: prohibit test x == x
875         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
876         Based on a report by Matthias Bolte.
877
878         bootstrap: allow FreeBSD gzip
879         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
880         which has no '.' and goes to stderr.
881         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
882         Reported by Matthias Bolte.
883
884         maintainer-makefile: check for i18n setup
885         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
886         will likely work.
887
888 2010-11-12  Bruno Haible  <bruno@clisp.org>
889
890         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
891         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
892         * lib/nanosleep.c (nanosleep): Likewise.
893
894 2010-11-11  Bruno Haible  <bruno@clisp.org>
895
896         fcntl-h: Fix for use of C++ on glibc systems.
897         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
898         also on glibc systems in C++ mode.
899         Reported by Gary V. Vaughan <gary@gnu.org>.
900
901 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
902
903         mknod: avoid false failure with dash
904         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
905
906 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
907
908         unlink: Fix "is it should" typo in diagnostic.
909         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
910         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
911
912 2010-11-11  Bruno Haible  <bruno@clisp.org>
913
914         Tests for module 'strerror_r-posix'.
915         * modules/strerror_r-posix-tests: New file.
916         * tests/test-strerror_r.c: New file.
917         * tests/test-string-c++.cc: Check the signature of strerror_r.
918
919         New module 'strerror_r-posix'.
920         * lib/string.in.h (strerror_r): New declaration.
921         * lib/strerror_r.c: New file.
922         * m4/strerror_r.m4: New file.
923         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
924         of strerror_r.
925         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
926         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
927         * modules/strerror_r-posix: New file.
928         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
929         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
930         * doc/posix-functions/strerror_r.texi: Mention the new module and the
931         portability problems.
932
933 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
934
935         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
936         line is also considered for output. Quoted function name in shell
937         command, so temporary files for functions like MyClass::operator()
938         are removed correctly without errors.
939
940 2010-11-09  Bruno Haible  <bruno@clisp.org>
941
942         * doc/posix-functions/strerror.texi: List more failing platforms.
943
944         * doc/posix-functions/strerror.texi: Add a comment.
945
946 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
947
948         fdopendir: fix bug on MacOS X when low on file descriptors
949
950         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
951         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
952         All callers changed.
953         (fdopendir): Invoke save_cwd at the top level, not after using
954         multiple dup() calls to use up file descriptors.  Then retry
955         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
956         less than the maximum number of open file descriptors, because
957         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
958         on Mac OS X 10.6.4 for tar 1.24
959         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
960         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
961         and for tar 1.25
962         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
963
964 2010-11-07  Bruno Haible  <bruno@clisp.org>
965
966         vasnprintf: Support I flag on glibc systems.
967         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
968         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
969         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
970         snprintf function.
971         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
972         glibc systems.
973         * tests/test-vasnprintf-posix3.c: New file.
974         * modules/vasnprintf-posix-tests (Files): Add it.
975         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
976
977 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
978
979         [html] Fix copy/paste bug: Use unique name for compiler warnings.
980         * MODULES.html.sh: For compiler warnings, use name
981         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
982
983 2010-11-05  Eric Blake  <eblake@redhat.com>
984
985         ceil, floor: avoid spurious failure with icc
986         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
987         [denormals-as-zero] when optimizing without -mieee-fp option.
988         * tests/test-floorf2.c (floorf_reference): Likewise.
989         * tests/test-ceilf1.c (dummy): New function.
990         (main): Use it to outsmart icc's optimization.
991         * tests/test-floorf1.c (dummy, main): Likewise.
992
993         tests: require working signbit
994         * modules/ceilf-tests (Depends-on): Add signbit.
995         * modules/ceill-tests (Depends-on): Likewise.
996         * modules/floorf-tests (Depends-on): Likewise.
997         * modules/floorl-tests (Depends-on): Likewise.
998         * modules/round-tests (Depends-on): Likewise.
999         * modules/roundf-tests (Depends-on): Likewise.
1000         * modules/roundl-tests (Depends-on): Likewise.
1001         * modules/trunc-tests (Depends-on): Likewise.
1002         * modules/truncf-tests (Depends-on): Likewise.
1003         * modules/truncl-tests (Depends-on): Likewise.
1004
1005         strtod: work around icc bug
1006         * lib/strtod.c (minus_zero): Define to working value.
1007         (strtod): Use it to avoid icc bug.
1008
1009         copysign: enhance tests
1010         * modules/copysign-tests (Files): Add minus-zero.h.
1011         * tests/test-copysign.c (main): Also test zeros.
1012
1013 2010-11-04  Eric Blake  <eblake@redhat.com>
1014
1015         ceil, floor, round, trunc: enhance tests of -0
1016         * tests/test-ceilf1.c (main): Ensure correct sign of result.
1017         * tests/test-ceill.c (main): Likewise.
1018         * tests/test-floorf1.c (main): Likewise.
1019         * tests/test-floorl.c (main): Likewise.
1020         * tests/test-round1.c (main): Likewise.
1021         * tests/test-roundf1.c (main): Likewise.
1022         * tests/test-roundl.c (main): Likewise.
1023         * tests/test-trunc1.c (main): Likewise.
1024         * tests/test-truncf1.c (main): Likewise.
1025         * tests/test-truncl.c (main): Likewise.
1026
1027 2010-11-04  Eric Blake  <eblake@redhat.com>
1028
1029         frexp, tests: work around ICC bug with -zero
1030         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
1031         works with more compilers.
1032         * tests/minus-zero.h: New file.
1033         * modules/ceilf-tests (Files): Include it.
1034         * modules/ceill-tests (Files): Likewise.
1035         * modules/floorf-tests (Files): Likewise.
1036         * modules/floorl-tests (Files): Likewise.
1037         * modules/frexp-nolibm-tests (Files): Likewise.
1038         * modules/frexp-tests (Files): Likewise.
1039         * modules/frexpl-nolibm-tests (Files): Likewise.
1040         * modules/frexpl-tests (Files): Likewise.
1041         * modules/isnan-tests (Files): Likewise.
1042         * modules/isnand-nolibm-tests (Files): Likewise.
1043         * modules/isnand-tests (Files): Likewise.
1044         * modules/isnanf-nolibm-tests (Files): Likewise.
1045         * modules/isnanf-tests (Files): Likewise.
1046         * modules/isnanl-nolibm-tests (Files): Likewise.
1047         * modules/isnanl-tests (Files): Likewise.
1048         * modules/round-tests (Files): Likewise.
1049         * modules/roundf-tests (Files): Likewise.
1050         * modules/roundl-tests (Files): Likewise.
1051         * modules/ldexpl-tests (Files): Likewise.
1052         * modules/signbit-tests (Files): Likewise.
1053         * modules/snprintf-posix-tests (Files): Likewise.
1054         * modules/sprintf-posix-tests (Files): Likewise.
1055         * modules/strtod-tests (Files): Likewise.
1056         * modules/trunc-tests (Files): Likewise.
1057         * modules/truncf-tests (Files): Likewise.
1058         * modules/truncl-tests (Files): Likewise.
1059         * modules/vsnprintf-posix-tests (Files): Likewise.
1060         * modules/vsprintf-posix-tests (Files): Likewise.
1061         * modules/vasnprintf-posix-tests (Files): Likewise.
1062         * modules/vasprintf-posix-tests (Files): Likewise.
1063         * tests/test-ceilf1.c (main): Use it.
1064         * tests/test-ceill.c (main): Likewise.
1065         * tests/test-floorf1.c (main): Likewise.
1066         * tests/test-floorl.c (main): Likewise.
1067         * tests/test-frexp.c (main): Likewise.
1068         * tests/test-frexpl.c (main): Likewise.
1069         * tests/test-isnan.c (main): Likewise.
1070         * tests/test-isnand.h (main): Likewise.
1071         * tests/test-isnanf.h (main): Likewise.
1072         * tests/test-isnanl.h (main): Likewise.
1073         * tests/test-ldexpl.c (main): Likewise.
1074         * tests/test-round.c (main): Likewise.
1075         * tests/test-roundf.c (main): Likewise.
1076         * tests/test-roundl.c (main): Likewise.
1077         * tests/test-signbit.c (test_signbitf, test_signbitd)
1078         (test_signbitl): Likewise.
1079         * tests/test-snprintf-posix.h (test_function): Likewise.
1080         * tests/test-sprintf-posix.h (test_function): Likewise.
1081         * tests/test-strtod.c (main): Likewise.
1082         * tests/test-trunc1.c (main): Likewise.
1083         * tests/test-truncf1.c (main): Likewise.
1084         * tests/test-truncl.c (main): Likewise.
1085
1086         isnanl: work around icc bug
1087         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
1088
1089 2010-11-03  Eric Blake  <eblake@redhat.com>
1090
1091         tests: fix compiler warnings
1092         * tests/test-getopt.h (test_getopt): Fix condition.
1093         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1094         * tests/test-pipe2.c (main): Likewise.
1095         * tests/test-quotearg-simple.c (main): Avoid icc warning.
1096
1097         utimens: fix broken m4 test
1098         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
1099
1100 2010-10-28  Bruno Haible  <bruno@clisp.org>
1101
1102         posix_spawn*, getdtablesize: Relax license.
1103         * modules/posix_spawn (License): Change to LGPLv2+.
1104         * modules/posix_spawnp (License): Likewise.
1105         * modules/posix_spawn-internal (License): Likewise.
1106         * modules/posix_spawnattr_init (License): Likewise.
1107         * modules/posix_spawnattr_getflags (License): Likewise.
1108         * modules/posix_spawnattr_setflags (License): Likewise.
1109         * modules/posix_spawnattr_getpgroup (License): Likewise.
1110         * modules/posix_spawnattr_setpgroup (License): Likewise.
1111         * modules/posix_spawnattr_getschedparam (License): Likewise.
1112         * modules/posix_spawnattr_setschedparam (License): Likewise.
1113         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
1114         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
1115         * modules/posix_spawnattr_getsigdefault (License): Likewise.
1116         * modules/posix_spawnattr_setsigdefault (License): Likewise.
1117         * modules/posix_spawnattr_getsigmask (License): Likewise.
1118         * modules/posix_spawnattr_setsigmask (License): Likewise.
1119         * modules/posix_spawnattr_destroy (License): Likewise.
1120         * modules/posix_spawn_file_actions_init (License): Likewise.
1121         * modules/posix_spawn_file_actions_addclose (License): Likewise.
1122         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
1123         * modules/posix_spawn_file_actions_addopen (License): Likewise.
1124         * modules/posix_spawn_file_actions_destroy (License): Likewise.
1125         * modules/getdtablesize (License): Likewise.
1126         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
1127
1128 2010-10-26  Bruno Haible  <bruno@clisp.org>
1129
1130         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
1131         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
1132         Cygwin and mingw.
1133         Suggested by Eric Blake.
1134
1135 2010-10-26  Bruno Haible  <bruno@clisp.org>
1136
1137         stdio: Work around compilation error due to renameat() on Solaris 10.
1138         * lib/stdio.in.h: Include <unistd.h> on Solaris.
1139         * lib/renameat.c: Don't include <unistd.h> here.
1140         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
1141         Reported by Paul Eggert and Eric Blake.
1142
1143 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1144
1145         renameat: port to Solaris 10, which declares renameat in unistd.h
1146
1147         * lib/renameat.c: Include unistd.h before stdio.h, because
1148         Solaris 10 declares renameat in unistd.h.  Problem encountered
1149         when building GNU tar 1.24 on Solaris 10.
1150
1151 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1152
1153         fdopendir: fix C89 compilation
1154         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
1155         compilers.
1156
1157 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1158
1159         inttostr: simplify by removing unnecessary redundancy
1160         * lib/anytostr.c: Don't include verify.h.
1161         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
1162         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
1163         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
1164         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
1165         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
1166         Likewise.
1167         * modules/inttostr (Depends-on): Remove 'verify'.
1168
1169 2010-10-23  Bruno Haible  <bruno@clisp.org>
1170
1171         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
1172         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
1173         Reported by Eric Blake.
1174
1175 2010-10-23  Bruno Haible  <bruno@clisp.org>
1176
1177         Tests: Fix LOCALE_JA on MirBSD 10.
1178         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
1179         to an UTF-8 locale.
1180         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
1181         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1182         Reported by Eric Blake.
1183
1184 2010-10-21  Bruno Haible  <bruno@clisp.org>
1185
1186         nl_langinfo test: Avoid test failure on NetBSD 5.
1187         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
1188         Reported by Eric Blake.
1189
1190 2010-10-21  Eric Blake  <eblake@redhat.com>
1191
1192         c-stack: work around libsigsegv 2.8 bug
1193         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
1194         overflow on at least PowerPC64.
1195
1196 2010-10-17  Bruno Haible  <bruno@clisp.org>
1197
1198         userspec: Drop redundant file.
1199         * modules/userspec (Files): Remove lib/inttostr.h.
1200
1201 2010-10-17  Bruno Haible  <bruno@clisp.org>
1202
1203         nl_langinfo tests: Silence some warnings.
1204         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
1205         Reported by Jim Meyering.
1206
1207 2010-10-17  Bruno Haible  <bruno@clisp.org>
1208
1209         Make use of GCC's attribute __alloc_size__.
1210         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
1211         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
1212         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
1213         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
1214         __alloc_size__.
1215         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
1216         Suggested by Jim Meyering.
1217
1218 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
1219
1220         bootstrap: anchor .gitignore entries.
1221         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
1222         with...
1223         (insert_vc_ignore): ... this new function, which prepends `/' to
1224         all .gitignore entries before passing them to
1225         insert_sorted_if_absent.
1226
1227 2010-10-16  Bruno Haible  <bruno@clisp.org>
1228
1229         nextafter: Fix configure check.
1230         * modules/nextafter (configure.ac): Correct expected prototype.
1231
1232 2010-10-16  Bruno Haible  <bruno@clisp.org>
1233
1234         termios: Update documentation.
1235         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
1236
1237 2010-10-16  Bruno Haible  <bruno@clisp.org>
1238
1239         tests: Make them compile with TinyCC.
1240         * tests/test-strstr.c (main): Remove parentheses around array
1241         initializer.
1242
1243 2010-10-15  Eric Blake  <eblake@redhat.com>
1244
1245         ignore-value: make header idempotent
1246         * lib/ignore-value.h: Add double-inclusion guards.
1247         Reported by Stefan Berger.
1248
1249 2010-10-15  Jim Meyering  <meyering@redhat.com>
1250
1251         GNUmakefile: handle "stable" target, not "major"
1252         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
1253         lists in maint.mk and announce-gen.  Without this, "make stable"
1254         would fail to ensure that $(VERSION) is up to date.
1255
1256 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
1257
1258         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
1259         & co.
1260
1261 2010-10-14  Bruno Haible  <bruno@clisp.org>
1262
1263         vasnprintf: Don't set errno to 0.
1264         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
1265         block that sets it to 0.
1266         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1267
1268 2010-10-14  Bruno Haible  <bruno@clisp.org>
1269
1270         socketlib: Fix.
1271         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
1272         gl_PREREQ_SYS_H_WINSOCK2.
1273         Reported by Ian Beckwith <ianb@erislabs.net>.
1274
1275 2010-10-13  Jim Meyering  <meyering@redhat.com>
1276
1277         test-select-stdin.c: avoid warn_unused_result warnings
1278         * tests/test-select-stdin.c: Include "macros.h".
1279         ASSERT that read and fflush succeed.
1280
1281 2010-10-13  Jim Meyering  <meyering@redhat.com>
1282
1283         git-version-gen: do require git-VC'd files in cwd
1284         * build-aux/git-version-gen: Reject a git version string
1285         if there are no commits associated with the current directory.
1286         This avoids an unlikely false-positive (unrelated dir whose parent
1287         repository also contains a tag matching v*), as pointed out
1288         by Giuseppe Scrivano in
1289         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
1290
1291 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
1292
1293         argv-iter: omit nonconforming declaration
1294         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
1295         enum arg_iter_err declaration, which doesn't conform to C99.
1296         Solaris 10 cc warns about this.
1297
1298 2010-10-13  Eric Blake  <eblake@redhat.com>
1299
1300         termios: fix compilation on mingw
1301         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
1302         (gl_TERMIOS_H): Adjust it on mingw.
1303         * modules/termios (Makefile.am): Substitute new key.
1304         * lib/termios.in.h (includes): Make include_next conditional.
1305         * doc/posix-headers/termios.texi (termios.h): Update
1306         documentation.
1307         Reported by Daniel P. Berrange.
1308
1309 2010-10-13  Jim Meyering  <meyering@redhat.com>
1310
1311         git-version-gen: don't require that .git/ be in the current dir
1312         * build-aux/git-version-gen: Adjust this script so that it works
1313         when run from any working directory beneath the top-level .git/-
1314         containing directory.  Inspired by a patch from Giuseppe Scrivano,
1315         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
1316
1317         test-select: avoid warn_unused_result warnings
1318         * tests/test-select.c: Include "macros.h".
1319         ASSERT that each call to read, write, and pipe succeeds.
1320         While not technically required, also check each "close".
1321         * modules/select-tests (Files): Add tests/macros.h.
1322
1323         test-symlinkat: remove declaration of unused local
1324         * tests/test-symlinkat.c (main): Remove unused local, "buf".
1325
1326         test-inttostr: avoid shadowing warnings
1327         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
1328         and use malloc rather than the stack for the same reason as
1329         mentioned in the comment justifying the other allocation.
1330
1331 2010-10-11  Bruno Haible  <bruno@clisp.org>
1332
1333         stdlib: Allow multiple gnulib generated replacements to coexist.
1334         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
1335         Reported by Sam Steingold <sds@gnu.org>.
1336
1337 2010-10-11  Jim Meyering  <meyering@redhat.com>
1338
1339         fix a documentation typo
1340         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
1341
1342 2010-10-11  Eric Blake  <eblake@redhat.com>
1343
1344         futimens: work around Solaris 11 bug
1345         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
1346         * tests/test-futimens.h (test_futimens): Enhance, rather than
1347         weaken test.
1348         * doc/posix-functions/futimens.texi (futimens): Document the bug.
1349
1350 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1351
1352         Indentation.
1353         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
1354         higher-level operators more to the left.
1355
1356 2010-10-11  Jim Meyering  <meyering@redhat.com>
1357
1358         test-futimens: avoid unwarranted test failure on Solaris 5.11
1359         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
1360         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
1361         because it tries to dereference the NULL name argument.
1362
1363 2010-10-11  Bruno Haible  <bruno@clisp.org>
1364
1365         Indentation.
1366         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
1367         indentation.
1368
1369 2010-10-11  Jim Meyering  <meyering@redhat.com>
1370
1371         spawn.in.h: make indentation consistent with parentheses
1372         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
1373         Make indentation consistent with parentheses.
1374
1375 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
1376
1377         Fix mismatched parens in previous commit
1378         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
1379         parens.
1380
1381 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1382
1383         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
1384
1385         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
1386         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
1387         * lib/malloca.c: Include "verify.h".
1388         (verify1): Remove, replacing with a verify call.
1389         * lib/relocwrapper.c (verify1): Likewise.
1390         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
1391         Likewise.
1392         * modules/malloca (Depends-on): Add 'verify'.
1393         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
1394         * modules/vasnprintf (Depends-on): Add 'verify'.
1395         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1396         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1397         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1398         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1399         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1400         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1401         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1402
1403         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
1404
1405         Formerly the style was sometimes 2*X - 1, because the C standard
1406         was wrongly thought to disallow ?: in integral constant expressions.
1407         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
1408         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
1409         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
1410         * lib/stdint.in.h (_verify_intmax_size): Likewise.
1411         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
1412         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
1413         verify that time_t cannot be floating.
1414
1415 2010-10-08  Eric Blake  <eblake@redhat.com>
1416
1417         time: enforce recent POSIX ruling that time_t is integral
1418         * lib/time.in.h (__time_t_must_be_integral): Detect any
1419         problematic systems, allowing the rest of gnulib to assume POSIX.
1420
1421 2010-10-08  Jim Meyering  <meyering@redhat.com>
1422
1423         fdopendir: fix a bug on systems lacking openat and /proc support
1424         OpenBSD 4.7 is one such system.  The most noticeable effect was
1425         failure of any application making nontrivial use of fts: rm, du,
1426         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
1427           ./rm: traversal failed: `a': Bad file descriptor
1428         Debugging that, you see that even though FD 6 was closed just
1429         prior to the opendir call in fd_clone_opendir, its resulting
1430         dir->dd_fd was 8, rather than the expected value of 6:
1431
1432         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
1433         93                close (fd);
1434         (gdb) n
1435         94                dir = fd_clone_opendir (dupfd);
1436         (gdb) n
1437         95                saved_errno = errno;
1438         (gdb) p dir->dd_fd
1439         $11 = 8
1440
1441         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
1442         The problem is that on OpenBSD, fd_clone_opendir has to resort
1443         to using the old-style save/restore CWD mechanism, due to its
1444         lack of openat/proc support, and *that* would steal the FD (6)
1445         that opendir was supposed to use.
1446
1447         The fix is to squirrel away the desired FD so that save_cwd uses a
1448         different one, and then free the dest FD right before calling opendir.
1449         That guarantees opendir will use the required file descriptor.
1450
1451         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
1452
1453 2010-10-08  Bruno Haible  <bruno@clisp.org>
1454
1455         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
1456         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
1457
1458 2010-10-08  Bruno Haible  <bruno@clisp.org>
1459
1460         nanosleep: Make replacement POSIX compliant.
1461         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
1462         is out of range.
1463         Reported by Jim Meyering.
1464
1465 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1466
1467         bootstrap: add hook for altering gnulib.mk, for Bison
1468         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
1469         the Bison bootstrapping process can rewrite file names and variables
1470         in this file before later parts of 'bootstrap' use the file.
1471         Bison wants to include lib/gnulib.mk from the top-level makefile,
1472         so it needs the file names in this file to be relative to the top
1473         level, not relative to lib; plus it needs variable names to be
1474         rewritten.
1475         (slurp): Use the new function.
1476
1477         bootstrap: reformat for readability
1478         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
1479
1480 2010-10-08  Eric Blake  <eblake@redhat.com>
1481
1482         docs: update cygwin progress
1483         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
1484         1.7.7.
1485         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
1486         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
1487         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
1488         * doc/posix-functions/carg.texi (carg): Likewise.
1489         * doc/posix-functions/cargf.texi (cargf): Likewise.
1490         * doc/posix-functions/casin.texi (casin): Likewise.
1491         * doc/posix-functions/casinf.texi (casinf): Likewise.
1492         * doc/posix-functions/casinh.texi (casinh): Likewise.
1493         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
1494         * doc/posix-functions/catan.texi (catan): Likewise.
1495         * doc/posix-functions/catanf.texi (catanf): Likewise.
1496         * doc/posix-functions/catanh.texi (catanh): Likewise.
1497         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
1498         * doc/posix-functions/ccos.texi (ccos): Likewise.
1499         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
1500         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
1501         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
1502         * doc/posix-functions/cexp.texi (cexp): Likewise.
1503         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
1504         * doc/posix-functions/cimag.texi (cimag): Likewise.
1505         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
1506         * doc/posix-functions/clog.texi (clog): Likewise.
1507         * doc/posix-functions/clogf.texi (clogf): Likewise.
1508         * doc/posix-functions/conj.texi (conj): Likewise.
1509         * doc/posix-functions/conjf.texi (conjf): Likewise.
1510         * doc/posix-functions/cpow.texi (cpow): Likewise.
1511         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
1512         * doc/posix-functions/cproj.texi (cproj): Likewise.
1513         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
1514         * doc/posix-functions/creal.texi (creal): Likewise.
1515         * doc/posix-functions/crealf.texi (crealf): Likewise.
1516         * doc/posix-functions/csin.texi (csin): Likewise.
1517         * doc/posix-functions/csinf.texi (csinf): Likewise.
1518         * doc/posix-functions/csinh.texi (csinh): Likewise.
1519         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
1520         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
1521         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
1522         * doc/posix-functions/ctan.texi (ctan): Likewise.
1523         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
1524         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
1525         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
1526         * doc/posix-headers/complex.texi (complex.h): Likewise.
1527
1528 2010-10-07  Jim Meyering  <meyering@redhat.com>
1529
1530         parse-datetime: avoid compilation failure on OpenBSD 4.7
1531         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
1532         This works around a compilation failure on OpenBSD 4.7:
1533         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
1534
1535 2010-10-07  Eric Blake  <eblake@redhat.com>
1536
1537         docs: update cygwin progress
1538         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
1539         1.7.6.
1540         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
1541         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
1542         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
1543         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
1544         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
1545         Likewise.
1546         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
1547         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
1548         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
1549         Likewise.
1550         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
1551         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
1552         Likewise.
1553         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
1554         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
1555         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
1556         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
1557         Likewise.
1558         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
1559         Likewise.
1560         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
1561
1562         docs: update parse-datetime history
1563         * doc/parse-datetime.texi (Authors of parse_datetime): Better
1564         documentation of this function's history and alternatives.
1565
1566         cygwin: use more robust version check
1567         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
1568         exclude an eventual cygwin 1.9.1.
1569         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1570         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1571         (gl_FUNC_STRCASESTR): Likewise.
1572         Reported by Bruno Haible.
1573
1574 2010-10-06  Bruno Haible  <bruno@clisp.org>
1575
1576         string, sys_select: Avoid #including large headers unless necessary.
1577         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
1578         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
1579         OSF/1, BeOS, Haiku.
1580         Reported by Jim Meyering.
1581
1582 2010-10-05  Eric Blake  <eblake@redhat.com>
1583
1584         memmem, strstr, strcasestr: fix bug with long periodic needle
1585         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
1586         periodic needle having false positive.
1587         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
1588         and cygwin 1.7.7.
1589         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
1590         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
1591         (gl_FUNC_STRCASESTR): Likewise.
1592         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1593         * tests/test-memmem.c (main): Expose the bug.
1594         * tests/test-strcasestr.c (main): Likewise.
1595         * tests/test-strstr.c (main): Likewise.
1596         * tests/test-c-strcasestr.c (main): Likewise.
1597         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
1598         * doc/posix-functions/strstr.texi (strstr): Likewise.
1599         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1600         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
1601
1602 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1603
1604         parse-datetime: do some more renaming
1605         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
1606         parse_datetime, not get_date.  Mention the renaming.
1607         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
1608         in comments.
1609         * m4/bison.m4: Likewise.
1610
1611 2010-10-05  Eric Blake  <eblake@redhat.com>
1612
1613         parse-datetime: better name than get_date
1614         * NEWS: Reword the deprecation notice.
1615         * modules/get_date: Rename to modules/parse-datetime.
1616         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
1617         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
1618         * lib/get_date.y: Rename to lib/parse-datetime.y.
1619         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
1620         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
1621         * doc/getdate.texi: Provide fallback wrapper.
1622         * lib/getdate.h: Move guts, and wrap...
1623         * lib/parse-datetime.h: ...new file.
1624         * lib/parse-datetime.y (get_date): Rename...
1625         (parse_datetime): ...to this.
1626         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
1627         (gl_PARSE_DATETIME): ...to this.
1628         * doc/posix-functions/getdate.texi (get_date): Provide fallback
1629         documentation.
1630         * modules/getdate (Files): Provide fallback docs and header.
1631         (Notice, Depends-on): Update references.
1632         * tests/test-parse-datetime.c: Likewise.
1633         * DEPENDENCIES: Likewise.
1634         * MODULES.html.sh (Date and time <time.h>): Likewise.
1635         * doc/parse-datetime.texi (Date input formats)
1636         (Authors of parse_datetime): Likewise.
1637         * modules/parse-datetime (Files, configure.ac, Makefile.am)
1638         (Include): Likewise.
1639         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
1640         * gnulib-tool: Likewise.
1641         * m4/bison.m4 (gl_BISON): Likewise.
1642         Suggested by Bruno Haible.
1643
1644 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1645
1646         more ports to Solaris tr, which needs [] around ranges
1647         * gnulib-tool: Solaris tr needs [] around ranges.
1648         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1649         * tests/test-pipe-filter-gi1.c (main): Likewise.
1650         * tests/test-pipe-filter-ii1.c (main): Likewise.
1651
1652 2010-10-05  Eric Blake  <eblake@redhat.com>
1653
1654         bootstrap: fix Solaris regression
1655         * build-aux/bootstrap (check_versions): Solaris tr still needs []
1656         around ranges.
1657         Reported by Pádraig Brady.
1658
1659         bootstrap: work with pkg-config
1660         * build-aux/bootstrap (check_versions): Also transliterate - in
1661         prerequisite name.
1662         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
1663         prerequisites that were already found, to avoid confusion.
1664         Reported by Justin Clift.
1665
1666         faccessat: remove unused wrappers
1667         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
1668         presence of these wrappers dragged in -lgen on Solaris.
1669         Reported by Clemens Brogi; fix suggested by Paul Eggert.
1670
1671 2010-10-05  Jim Meyering  <meyering@redhat.com>
1672
1673         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
1674         * Makefile (sc_pragma_columns): New syntax-check rule.
1675
1676 2010-10-04  Bruno Haible  <bruno@clisp.org>
1677
1678         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
1679         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
1680         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
1681         Reported by Bruce Korb and Eric Blake.
1682
1683 2010-10-04  Bruno Haible  <bruno@clisp.org>
1684
1685         threadlib: Make option --with-libpth-prefix work.
1686         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
1687         use $LIBPTH, not just -lpth.
1688
1689 2010-10-04  Bruno Haible  <bruno@clisp.org>
1690
1691         Avoid line length limitation from HP NonStop system header files.
1692         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
1693         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
1694         * lib/ctype.in.h: Likewise.
1695         * lib/dirent.in.h: Likewise.
1696         * lib/errno.in.h: Likewise.
1697         * lib/fcntl.in.h: Likewise.
1698         * lib/float.in.h: Likewise.
1699         * lib/getopt.in.h: Likewise.
1700         * lib/iconv.in.h: Likewise.
1701         * lib/inttypes.in.h: Likewise.
1702         * lib/langinfo.in.h: Likewise.
1703         * lib/locale.in.h: Likewise.
1704         * lib/math.in.h: Likewise.
1705         * lib/netdb.in.h: Likewise.
1706         * lib/netinet_in.in.h: Likewise.
1707         * lib/poll.in.h: Likewise.
1708         * lib/pthread.in.h: Likewise.
1709         * lib/pty.in.h: Likewise.
1710         * lib/sched.in.h: Likewise.
1711         * lib/se-selinux.in.h: Likewise.
1712         * lib/search.in.h: Likewise.
1713         * lib/signal.in.h: Likewise.
1714         * lib/spawn.in.h: Likewise.
1715         * lib/stdarg.in.h: Likewise.
1716         * lib/stddef.in.h: Likewise.
1717         * lib/stdint.in.h: Likewise.
1718         * lib/stdio.in.h: Likewise.
1719         * lib/stdlib.in.h: Likewise.
1720         * lib/string.in.h: Likewise.
1721         * lib/strings.in.h: Likewise.
1722         * lib/sys_file.in.h: Likewise.
1723         * lib/sys_ioctl.in.h: Likewise.
1724         * lib/sys_select.in.h: Likewise.
1725         * lib/sys_socket.in.h: Likewise.
1726         * lib/sys_stat.in.h: Likewise.
1727         * lib/sys_time.in.h: Likewise.
1728         * lib/sys_times.in.h: Likewise.
1729         * lib/sys_utsname.in.h: Likewise.
1730         * lib/sys_wait.in.h: Likewise.
1731         * lib/sysexits.in.h: Likewise.
1732         * lib/termios.in.h: Likewise.
1733         * lib/time.in.h: Likewise.
1734         * lib/unistd.in.h: Likewise.
1735         * lib/wchar.in.h: Likewise.
1736         * lib/wctype.in.h: Likewise.
1737         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
1738         * modules/ctype (Makefile.am): Likewise.
1739         * modules/dirent (Makefile.am): Likewise.
1740         * modules/errno (Makefile.am): Likewise.
1741         * modules/fcntl-h (Makefile.am): Likewise.
1742         * modules/float (Makefile.am): Likewise.
1743         * modules/getopt-posix (Makefile.am): Likewise.
1744         * modules/iconv-h (Makefile.am): Likewise.
1745         * modules/inttypes (Makefile.am): Likewise.
1746         * modules/langinfo (Makefile.am): Likewise.
1747         * modules/locale (Makefile.am): Likewise.
1748         * modules/math (Makefile.am): Likewise.
1749         * modules/netdb (Makefile.am): Likewise.
1750         * modules/netinet_in (Makefile.am): Likewise.
1751         * modules/poll-h (Makefile.am): Likewise.
1752         * modules/pthread (Makefile.am): Likewise.
1753         * modules/pty (Makefile.am): Likewise.
1754         * modules/sched (Makefile.am): Likewise.
1755         * modules/search (Makefile.am): Likewise.
1756         * modules/selinux-h (Makefile.am): Likewise.
1757         * modules/signal (Makefile.am): Likewise.
1758         * modules/spawn (Makefile.am): Likewise.
1759         * modules/stdarg (Makefile.am): Likewise.
1760         * modules/stddef (Makefile.am): Likewise.
1761         * modules/stdint (Makefile.am): Likewise.
1762         * modules/stdio (Makefile.am): Likewise.
1763         * modules/stdlib (Makefile.am): Likewise.
1764         * modules/string (Makefile.am): Likewise.
1765         * modules/strings (Makefile.am): Likewise.
1766         * modules/sys_file (Makefile.am): Likewise.
1767         * modules/sys_ioctl (Makefile.am): Likewise.
1768         * modules/sys_select (Makefile.am): Likewise.
1769         * modules/sys_socket (Makefile.am): Likewise.
1770         * modules/sys_stat (Makefile.am): Likewise.
1771         * modules/sys_time (Makefile.am): Likewise.
1772         * modules/sys_times (Makefile.am): Likewise.
1773         * modules/sys_utsname (Makefile.am): Likewise.
1774         * modules/sys_wait (Makefile.am): Likewise.
1775         * modules/sysexits (Makefile.am): Likewise.
1776         * modules/termios (Makefile.am): Likewise.
1777         * modules/time (Makefile.am): Likewise.
1778         * modules/unistd (Makefile.am): Likewise.
1779         * modules/wchar (Makefile.am): Likewise.
1780         * modules/wctype (Makefile.am): Likewise.
1781
1782 2010-10-04  Bruno Haible  <bruno@clisp.org>
1783
1784         read-file tests: Avoid a test failure on NonStop Kernel.
1785         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
1786         a regular file.
1787         Reported by Joachim Schmitz <schmitz@hp.com>.
1788
1789 2010-10-03  Bruno Haible  <bruno@clisp.org>
1790
1791         gnulib-tool: Fixes for --create-testdir with --libtool.
1792         * gnulib-tool (func_get_automake_snippet): Don't augment
1793         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
1794         an executable.
1795         (func_create_testdir): Handle module 'alloca' like func_import.
1796         Reported by Bruce Korb <bruce.korb@gmail.com>.
1797
1798 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1799
1800         Avoid some lines longer than 80 characters.
1801         * lib/stdint.in.h: Break long comment lines.
1802         * lib/math.in.h: Likewise.
1803         (_GL_NUM_UINT_WORDS): New macro, for readability.
1804         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
1805         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
1806         * lib/stdlib.in.h: Likewise.
1807         * lib/spawn.in.h: Likewise.
1808         * lib/sys_socket.in.h: Update an URL.
1809         * lib/sys_stat.in.h: Break long line.
1810
1811 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
1812
1813         Improve pmccabe2html.
1814         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
1815         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
1816         when the sources change. Remove the line in the HTML about "Used
1817         ranges" (which implied that there might be other unused ranges),
1818         rename "Resume" to "Summary" (easier to understand for more users).
1819         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
1820         styles, and some unnecessary blank lines.
1821
1822 2010-10-03  Bruno Haible  <bruno@clisp.org>
1823             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1824
1825         acl: Add support for ACLs on NonStop Kernel.
1826         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
1827         Check whether the function aclsort() exists.
1828         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
1829         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
1830         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1831         (acl_nontrivial [HAVE_ACLSORT]: New function.
1832         (file_has_acl): Implement for NonStop Kernel.
1833         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1834         (qset_acl): Implement for NonStop Kernel.
1835         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
1836         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1837         (main): Implement for NonStop Kernel.
1838         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
1839         Kernel. Handle this flavor.
1840         * tests/test-set-mode-acl.sh: Likewise.
1841         * tests/test-copy-acl.sh: Likewise.
1842         * tests/test-copy-file.sh: Likewise.
1843
1844 2010-10-03  Bruno Haible  <bruno@clisp.org>
1845
1846         Info about ACLs on NonStop Kernel.
1847         * doc/acl-resources.txt: Add info about NonStop Kernel.
1848         References by Joachim Schmitz <schmitz@hp.com>.
1849
1850 2010-10-02  Bruno Haible  <bruno@clisp.org>
1851
1852         Define missing EDQUOT on NonStop Kernel.
1853         * lib/errno.in.h (EDQUOT): Assign a value if missing.
1854         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
1855         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
1856         missing.
1857         * doc/posix-headers/errno.texi: Mention the NSK bug.
1858         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
1859         Reported by Joachim Schmitz <schmitz@hp.com>.
1860
1861 2010-10-02  Bruno Haible  <bruno@clisp.org>
1862
1863         Update doc for POSIX:2008.
1864         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
1865         Update URL of POSIX specification.
1866
1867 2010-10-02  Bruno Haible  <bruno@clisp.org>
1868
1869         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
1870         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
1871         from gnulib, not from Automake.
1872
1873 2010-10-02  Bruno Haible  <bruno@clisp.org>
1874
1875         New module 'system-posix'.
1876         * modules/system-posix: New file.
1877         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
1878         module is present.
1879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1880         GNULIB_SYSTEM_POSIX.
1881         * modules/stdlib (Depends-on): Remove sys_wait.
1882         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
1883         * doc/posix-functions/system.texi: Mention the new module.
1884         * doc/posix-headers/stdlib.texi: Likewise.
1885         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
1886         define test_sys_wait_macros to a no-op.
1887         Reported by Sam Steingold <sds@gnu.org>.
1888
1889 2010-09-30  Bruno Haible  <bruno@clisp.org>
1890
1891         More renaming from 'getdate' to 'get_date'.
1892         * doc/get_date.texi: Renamed from doc/getdate.texi.
1893         * modules/get_date (Files): Update.
1894         * MODULES.html.sh (Date and time <time.h>): Update.
1895         * DEPENDENCIES: Update.
1896         * gnulib-tool: Update comment.
1897         * m4/bison.m4 (gl_BISON): Likewise.
1898         * m4/get_date.m4 (gl_GET_DATE): Likewise.
1899
1900 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
1901
1902         bootstrap: support ACLOCAL_FLAGS during aclocal
1903         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
1904         can add additional -I dir for third-party .m4 files.
1905
1906 2010-09-30  Eric Blake  <eblake@redhat.com>
1907
1908         bootstrap: use glibtoolize on MacOS
1909         * build-aux/bootstrap (check_versions): Convert libtool into
1910         libtoolize.
1911         (tool search): Move libtool check earlier, and look for
1912         glibtoolize for MacOS.
1913         (gnulib_tool_options): Auto-add --libtool when appropriate.
1914         Reported by Justin Clift.
1915
1916         poll: fix typo that broke test on MacOS
1917         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
1918         Reported by Justin Clift.
1919
1920         getdate: rename to get_date
1921         Note: getdate.h is not renamed, to minimize client impact.
1922         * modules/getdate: Mark obsolete.  Move old contents...
1923         * modules/get_date: ...to new module name.
1924         * modules/getdate-tests: Move...
1925         * modules/get_date-tests: ...here.
1926         * m4/getdate.m4: Move...
1927         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
1928         * lib/getdate.y: Move...
1929         * lib/get_date.y: ...here.
1930         * tests/test-getdate.c: Move...
1931         * tests/test-get_date.c: ...here.
1932         * doc/posix-functions/getdate.texi (getdate): Update name.
1933         * NEWS: Mention the change.
1934
1935 2010-09-29  Bruno Haible  <bruno@clisp.org>
1936
1937         Separate the module 'waitpid' from the module 'sys_wait'.
1938         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
1939         present.
1940         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
1941         gl_MODULE_INDICATOR_FOR_TESTS.
1942         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
1943         * modules/sys_wait (Depends-on): Remove waitpid.
1944         (Makefile.am): Substitute GNULIB_WAITPID.
1945         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
1946         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
1947         signature only if the 'waitpid' module is present.
1948         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
1949         * NEWS: Mention the change.
1950         * modules/grantpt (Depends-on): Add waitpid.
1951         * modules/wait-process (Depends-on): Likewise.
1952
1953 2010-09-29  Bruno Haible  <bruno@clisp.org>
1954
1955         More tests for module 'sys_wait'.
1956         * modules/sys_wait-c++-tests: New file.
1957         * tests/test-sys_wait-c++.cc: New file.
1958         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
1959         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1960
1961 2010-09-29  Bruno Haible  <bruno@clisp.org>
1962
1963         New module 'waitpid'.
1964         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
1965         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
1966         Don't include <process.h>.
1967         (waitpid): Declare only, using modern idiom.
1968         * m4/waitpid.m4: New file.
1969         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
1970         * modules/waitpid: New file.
1971         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
1972         (Makefile.am): Update.
1973         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1974
1975 2010-09-28  Bruno Haible  <bruno@clisp.org>
1976
1977         poll: Assume ANSI C.
1978         * lib/poll.c (poll): Use an ANSI C declaration.
1979
1980 2010-09-28  Bruno Haible  <bruno@clisp.org>
1981
1982         poll-h: Create poll.h on all platforms.
1983         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
1984         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
1985         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
1986         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
1987         (gl_REPLACE_POLL_H): Don't set POLL_H.
1988         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
1989         * modules/poll-h (Depends-on): Add include_next.
1990         (Makefile.am): Create poll.h unconditionally. Substitute also
1991         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
1992
1993 2010-09-28  Bruno Haible  <bruno@clisp.org>
1994
1995         Tests for module 'poll-h'.
1996         * modules/poll-h-c++-tests: New file.
1997         * tests/test-poll-h-c++.cc: New file.
1998
1999         Tests for module 'poll-h'.
2000         * modules/poll-h-tests: New file.
2001         * tests/test-poll-h.c: New file.
2002
2003 2010-09-28  Bruno Haible  <bruno@clisp.org>
2004
2005         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
2006         * modules/poll-h (Depends-on): Add 'extensions'.
2007
2008 2010-09-28  Bruno Haible  <bruno@clisp.org>
2009
2010         New module 'poll-h'.
2011         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
2012         (poll): Use modern idiom.
2013         * modules/poll-h: New file.
2014         * modules/poll (Files): Remove lib/poll.in.h.
2015         (Depends-on): Add poll-h.
2016         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
2017         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
2018         * m4/poll_h.m4: New file.
2019         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
2020         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
2021         and invoke gl_REPLACE_POLL_H.
2022         * lib/poll.c: Use common idiom.
2023         * tests/test-poll.c: Likewise.
2024         * doc/posix-headers/poll.texi: Mention the poll-h module.
2025         Suggested by Eric Blake.
2026
2027 2010-09-26  Bruno Haible  <bruno@clisp.org>
2028
2029         sys_wait: Implement WSTOPSIG.
2030         * lib/sys_wait.in.h (WSTOPSIG): New macro.
2031         Reported by Simon Josefsson.
2032
2033 2010-09-26  Simon Josefsson  <simon@josefsson.org>
2034
2035         stdlib, sys_wait: Avoid compilation error on mingw.
2036         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
2037
2038 2010-09-26  Bruno Haible  <bruno@clisp.org>
2039
2040         stdlib tests: Avoid code duplication.
2041         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
2042         * modules/sys_wait-tests (Files): Likewise.
2043         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
2044         * tests/test-stdlib.c: Include test-sys_wait.h.
2045         (main): Invoke test_sys_wait_macros.
2046         * tests/test-sys_wait.c: Include test-sys_wait.h.
2047         (main): Invoke test_sys_wait_macros.
2048
2049 2010-09-25  Simon Josefsson  <simon@josefsson.org>
2050
2051         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
2052         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
2053         sure Windows sockets are working before calling getaddrinfo.
2054         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
2055         * doc/gnulib.texi (Windows sockets): Fix typo.
2056
2057 2010-09-25  Bruno Haible  <bruno@clisp.org>
2058
2059         Tests for module 'regex-quote'.
2060         * modules/regex-quote-tests: New file.
2061         * tests/test-regex-quote.c: New file.
2062
2063         New module 'regex-quote'.
2064         * lib/regex-quote.h: New file.
2065         * lib/regex-quote.c: New file.
2066         * modules/regex-quote: New file.
2067         Suggested by Reuben Thomas <rrt@sc3d.org>.
2068
2069 2010-09-24  Bruno Haible  <bruno@clisp.org>
2070
2071         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
2072         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
2073
2074 2010-09-23  Bruno Haible  <bruno@clisp.org>
2075
2076         setenv: Relax license.
2077         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
2078         Blake.
2079         Requested by Eric Blake.
2080
2081 2010-09-22  Bruno Haible  <bruno@clisp.org>
2082
2083         termios: Relax license.
2084         * modules/termios (License): Change to LGPLv2+.
2085         Requested by Eric Blake.
2086
2087 2010-09-22  Bruno Haible  <bruno@clisp.org>
2088
2089         threadlib: Allow the package to change the default to 'no'.
2090         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
2091         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
2092         Reported by Paul Eggert.
2093
2094 2010-09-22  Pádraig Brady  <P@draigbrady.com>
2095             Bruno Haible  <bruno@clisp.org>
2096
2097         Fix endless loop in mbmemcasecoll.
2098         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
2099         byte.
2100         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
2101
2102 2010-09-22  Bruno Haible  <bruno@clisp.org>
2103
2104         Tests for module 'memcoll'.
2105         * modules/memcoll-tests: New file.
2106         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
2107
2108         memcoll, xmemcoll: Clarify size vs. length.
2109         * modules/memcoll.c (memcoll0): Clarify specification.
2110         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
2111         passed to collate_error.
2112
2113 2010-09-22  Bruno Haible  <bruno@clisp.org>
2114
2115         Tests for module 'memcasecmp'.
2116         * modules/memcasecmp-tests: New file.
2117         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
2118
2119 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2120
2121         * lib/pthread.in.h: Add split double-inclusion guard, and include
2122         system <pthread.h> if there is one.  Use @@-style as in other
2123         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
2124         pthread.h doesn't.
2125         (pthread_mutexattr_destroy, pthread_mutexattr_init):
2126         (pthread_mutexattr_settype, pthread_mutex_trylock):
2127         New static inline functions, if there's no system <pthread.h>.
2128         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
2129         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
2130         Approximate with mutexes if the system lacks spinlocks, as in
2131         MacOS.
2132         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
2133         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
2134         @@-style.  Check for spinlocks separately.
2135         (gl_PTHREAD_DEFAULTS): New macro.
2136         * modules/pthread: Redo to use a more typical style for in.h files.
2137
2138 2010-09-21  Eric Blake  <eblake@redhat.com>
2139
2140         net_if: enhance tests
2141         * tests/test-net_if.c (main): Move signature checks earlier.
2142         Print failures to stderr.
2143         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
2144         Document the bug that we do not yet fix.
2145
2146 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2147
2148         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
2149         about gnulib, not GSS.
2150
2151 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2152
2153         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
2154         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
2155         for Emacs.
2156         * build-aux/pmccabe2html: Make Makefile.am example code more
2157         cut-and-paste friendly.
2158
2159 2010-09-21  Simon Josefsson  <simon@josefsson.org>
2160
2161         * tests/test-net_if.c: New file.
2162         * modules/net_if-tests: New file.
2163
2164 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2165
2166         pthread: add pthread_spin_destroy
2167         * lib/pthread.in.h (pthread_spin_destroy): New function.
2168
2169 2010-09-19  Bruno Haible  <bruno@clisp.org>
2170
2171         gnulib-tool: Fix --help output.
2172         * gnulib-tool (func_usage): Fix help message.
2173         Reported by Reuben Thomas <rrt@sc3d.org>.
2174
2175 2010-09-18  Jim Meyering  <meyering@redhat.com>
2176
2177         maint.mk: avoid unexpanded \n in two diagnostics
2178         * top/maint.mk (sc_prohibit_always_true_header_tests):
2179         Don't use a literal \n in a halt=... assignment.  It would not be
2180         expanded, and the two \n bytes would appear in the diagnostic output
2181         rather than the desired newline.  Use halt=$$(printf ... instead.
2182         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
2183
2184 2010-09-18  Bruno Haible  <bruno@clisp.org>
2185
2186         netinet_in: Doc tweak.
2187         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
2188         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2189
2190 2010-09-18  Jim Meyering  <meyering@redhat.com>
2191
2192         init.sh: correct an outdated comment
2193         * tests/init.sh (create_exe_shims_):  s/function/alias/
2194
2195         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
2196         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
2197         a file named "*.exe" is removed between the glob expansion and the
2198         processing of that oddly named file.
2199
2200 2010-09-17  Eric Blake  <eblake@redhat.com>
2201
2202         mirbsd: add some more support
2203         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
2204         in BSD family.
2205         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
2206         devices as OpenBSD.
2207         * m4/host-os.m4 (mirbsd): Add MirBSD.
2208
2209         tests: fix unportable assumption on sys/wait.h
2210         * tests/test-sys_wait.c (main): Relax test.
2211         * tests/test-stdlib.c (main): Likewise.
2212
2213         init.sh: accomodate directory with no .exes
2214         * tests/init.sh: Accomodate directory containing only scripts.
2215
2216         tests: avoid compiler warning
2217         * tests/test-stdlib.c (main): Use the variable.
2218
2219         fdutimens, fdutimensat: update signature, again
2220         * lib/utimens.h (gl_futimens): Delete, and move signature...
2221         (fdutimens): ...here.
2222         (fdutimensat): Rearrange signature.
2223         (lutimensat): Rename variable for clarity.
2224         * lib/fdutimensat.c (fdutimensat): Update signature.
2225         * lib/utimens.c (fdutimens): Likewise.
2226         (gl_futimens): Delete.
2227         (utimens, lutimens): Update callers.
2228         * lib/futimens.c (futimens): Likewise.
2229         * tests/test-fdutimensat.c: Likewise.
2230         * tests/test-utimens.c: Likewise.
2231         * tests/test-futimens.h: Update comment.
2232         * NEWS: Mention this.
2233         Suggested by Paul Eggert.
2234
2235 2010-09-17  Bruno Haible  <bruno@clisp.org>
2236
2237         Take over the maintenance of some older macros from Autoconf.
2238         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
2239         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
2240         GNU Autoconf.
2241         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
2242         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
2243
2244 2010-09-17  Eric Blake  <eblake@redhat.com>
2245
2246         fdutimensat: drop atflag validation
2247         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
2248         with valid fd, to close a race scenario where futimens is
2249         unsupported and FILE was replaced by a symlink.
2250         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
2251         accordingly.
2252         Suggested by Paul Eggert.
2253
2254 2010-09-16  Bruno Haible  <bruno@clisp.org>
2255
2256         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
2257         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
2258
2259 2010-09-16  Bruno Haible  <bruno@clisp.org>
2260
2261         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
2262         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
2263         login_tty exists.
2264         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2265
2266 2010-09-16  Bruno Haible  <bruno@clisp.org>
2267
2268         login_tty: Make the replacement code work on BSD systems.
2269         * lib/login_tty.c: Include <sys/ioctl.h>.
2270         (login_tty): Use ioctl TIOCSCTTY when available.
2271         * modules/login_tty (Depends-on): Add sys_ioctl.
2272         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2273
2274 2010-09-16  Bruno Haible  <bruno@clisp.org>
2275
2276         login_tty: Stricter unit test.
2277         * modules/login_tty-tests (Depends-on): Add tcgetsid.
2278         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
2279         and tcgetsid() after login_tty.
2280         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2281
2282 2010-09-16  Bruno Haible  <bruno@clisp.org>
2283
2284         New module 'tcgetsid'.
2285         * lib/tcgetsid.c: New file.
2286         * m4/tcgetsid.m4: New file.
2287         * modules/tcgetsid: New file.
2288         * modules/termios (Depends-on): Add c++defs, warn-on-use.
2289         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
2290         GNULIB_TCGETSID, HAVE_TCGETSID.
2291         * lib/termios.in.h: Include <sys/types.h>.
2292         (tcgetsid): New declaration.
2293         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
2294         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
2295         * doc/posix-functions/tcgetsid.texi: Mention the new module.
2296         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
2297
2298 2010-09-16  Bruno Haible  <bruno@clisp.org>
2299
2300         Tests for module 'termios'.
2301         * modules/termios-c++-tests: New file.
2302         * modules/termios-tests: New file.
2303         * tests/test-termios-c++.cc: New file.
2304         * tests/test-termios.c: New file.
2305
2306         New module 'termios'.
2307         * modules/termios: New file.
2308         * lib/termios.in.h: New file.
2309         * m4/termios_h.m4: New file.
2310         * doc/posix-headers/termios.texi: Mention the new module.
2311
2312 2010-09-16  Eric Blake  <eblake@redhat.com>
2313
2314         fdutimensat: add an atflag parameter
2315         * lib/fdutimensat.c (fdutimensat): Add new parameter.
2316         * lib/utimens.h (fdutimensat): Update prototype.
2317         * tests/test-fdutimensat.c: Adjust test to match.
2318         * NEWS: Document the change.
2319         Suggested by Paul Eggert.
2320
2321 2010-09-16  Bruno Haible  <bruno@clisp.org>
2322
2323         Fix typos in comments.
2324         * lib/striconveh.h: Fix typo in comment.
2325         * lib/login_tty.c (login_tty): Likewise.
2326
2327 2010-09-15  Bruno Haible  <bruno@clisp.org>
2328
2329         stdlib: clarify MirBSD WEXITSTATUS bug
2330         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
2331         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2332
2333 2010-09-15  Eric Blake  <eblake@redhat.com>
2334
2335         stdlib: work around MirBSD WEXITSTATUS bug
2336         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
2337         * modules/stdlib (Depends-on): Add sys_wait.
2338         * tests/test-sys_wait.c (main): Enhance test.
2339         * tests/test-stdlib.c (main): Likewise.
2340         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
2341
2342         docs: mention MacOS issue with WEXITSTATUS(constant)
2343         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
2344         issue.
2345         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2346
2347         strnlen: add tests
2348         * modules/strnlen-tests: New file.
2349         * tests/test-strnlen.c: Likewise.
2350
2351 2010-09-14  Bruno Haible  <bruno@clisp.org>
2352
2353         unistr/base: Avoid link errors when module 'libunistring' is also used.
2354         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
2355         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
2356         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
2357         Declare also when HAVE_LIBUNISTRING is set.
2358         Reported by Pádraig Brady <P@draigbrady.com>.
2359
2360 2010-09-14  Eric Blake  <eblake@redhat.com>
2361
2362         test-rawmemchr: make more robust
2363         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
2364         (Depends-on, configure.ac): Add needed prerequisites to use it.
2365         * modules/memchr-tests (Files, Depends-on, configure.ac):
2366         Likewise, to avoid implicit reliance on memchr module prereqs.
2367         * tests/test-memchr.c (main): Ensure proper masking.
2368         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
2369         reads.
2370
2371         memchr: detect glibc Alpha bug
2372         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
2373         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
2374         Alpha.
2375         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
2376         * tests/test-memchr.c (main): Enhance test.
2377         Reported by Nelson H. F. Beebe.
2378
2379 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2380
2381         fts, getcwd, glob: audit for dirfd returning -1
2382         * lib/fts.c (opendir): Remove #define; no longer used.
2383         (opendirat): New arg PDIR_FD.  All callers changed.
2384         (fts_build, _opendir2): Use new opendirat to avoid the need for
2385         dirfd, or for checking whether dirfd returns a negative value.
2386         Don't use opendir; always use openat followed by fdopendir.
2387         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
2388         it.
2389         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
2390         returns -1 here.
2391         * modules/fts (Depends-on): Remove dirfd.
2392         * modules/getcwd (Depends-on): Likewise.
2393
2394 2010-09-13  Eric Blake  <eblake@redhat.com>
2395
2396         float: fix broken MirBSD header
2397         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
2398         * doc/posix-headers/float.texi (float.h): Document it.
2399
2400 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2401
2402         fts: use O_NOFOLLOW to avoid race condition when opening a directory
2403         * lib/fts.c (opendirat): New arg extra_flags.
2404         (__opendir2): Use it to avoid following symlinks when opening
2405         a directory, if symlinks are not supposed to be followed.  See
2406         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
2407
2408         fdopendir: preserve argument fd before returning
2409         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
2410         (fdopendir_with_dup, fd_clone_opendir): New static functions.
2411         (fdopendir): Use them, arranging for FD to be open to the same
2412         directory that it was when it started.  (It might be temporarily
2413         closed while fdopendir is running, so this not thread- or
2414         signal-safe.)  Be careful to do the right thing even when file
2415         descriptors are scarce and dup fails with errno == EMFILE.  See
2416         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
2417
2418 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
2419
2420         regex: Pass the system regex if its only problem is 32-bit regoff_t.
2421         * NEWS: Document change.
2422         * m4/regex.m4: Disable test for regoff_t size.
2423
2424 2010-09-13  Jim Meyering  <meyering@redhat.com>
2425
2426         fts: don't operate on an invalid file descriptor after failed dup
2427         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
2428         negative file descriptor.
2429
2430 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2431
2432         savedir: add streamsavedir, deprecate fdsavedir
2433         * NEWS: Mention deprecation of fdsavedir.
2434         * lib/savedir.c (streamsavedir): New extern function, whose name
2435         ends in "savedir" to be consistent with the others.  This differs
2436         from savedirstream in that it doesn't close its argument.  The
2437         next version of GNU tar will use this instead of fdsavedir, to
2438         avoid some race conditions and conserve file descriptors.
2439         (savedirstream): Reimplement as a wrapper around streamsavedir.
2440         (fdsavedir): Add a comment deprecating this function.  As far as
2441         I know, only GNU tar used it, and GNU tar doesn't need it any more.
2442         * lib/savedir.h (streamsavedir): New decl.
2443         (fdsavedir): Add a comment deprecating this.
2444
2445 2010-09-10  Bruno Haible  <bruno@clisp.org>
2446
2447         langinfo: Fix last commit.
2448         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
2449         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
2450         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2451
2452 2010-09-10  Bruno Haible  <bruno@clisp.org>
2453
2454         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
2455         * lib/progreloc.c (O_EXEC): Define fallback.
2456
2457 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2458
2459         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
2460         * NEWS: Document recent changes to fcntl-h.
2461         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
2462         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
2463         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
2464         Similarly for O_SEARCH; this last was already true, but not documented.
2465         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
2466         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
2467         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
2468         Likewise.
2469         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
2470         is zero, not whether it is defined.
2471         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
2472         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
2473         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
2474
2475 2010-09-10  Bruno Haible  <bruno@clisp.org>
2476
2477         langinfo, nl_langinfo: Fix for IRIX 5.3.
2478         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
2479         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
2480         HAVE_LANGINFO_YESEXPR.
2481         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
2482         HAVE_LANGINFO_YESEXPR.
2483         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
2484         HAVE_LANGINFO_T_FMT_AMPM is 0.
2485         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
2486         HAVE_LANGINFO_YESEXPR is 0.
2487         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
2488         NOEXPR.
2489         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
2490         * doc/posix-functions/nl_langinfo.texi: Likewise.
2491         Reported by Eric Blake.
2492
2493 2010-09-10  Bruno Haible  <bruno@clisp.org>
2494
2495         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
2496         * doc/glibc-functions/login_tty.texi: Mention the include file problem
2497         on FreeBSD 8.0 and OpenBSD 4.6.
2498         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
2499         * m4/pty_h.m4 (gl_PTY_H): Likewise.
2500         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
2501         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
2502         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
2503         ac_includes_default.
2504         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2505
2506 2010-09-09  Eric Blake  <eblake@redhat.com>
2507
2508         strsignal: work around NetBSD bug
2509         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
2510         * lib/string.in.h (includes): Likewise.
2511         * doc/posix-functions/strsignal.texi (strsignal): Document the
2512         bug.
2513         Reported by Nelson H. F. Beebe.
2514
2515         gnulib-tool: work with NetBSD /bin/sh
2516         * gnulib-tool (func_cache_var, func_cache_lookup_module)
2517         (func_get_description, func_get_comment, func_get_status)
2518         (func_get_notice, func_get_applicability, func_get_filelist)
2519         (func_get_dependencies, func_get_autoconf_early_snippet)
2520         (func_get_autoconf_snippet, func_get_automake_snippet)
2521         (func_get_include_directive, func_get_link_directive)
2522         (func_get_license, func_get_maintainer, func_import): Avoid
2523         shell syntax errors from parsing syntax extensions.
2524
2525 2010-09-09  Bruno Haible  <bruno@clisp.org>
2526
2527         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
2528         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
2529         a reliable way to determine whether the 'alias' command works.
2530
2531 2010-09-08  Jim Meyering  <meyering@redhat.com>
2532
2533         init.sh: penalize a set-x-impaired shell; don't disqualify it
2534         * tests/init.sh: Too many shells corrupt application stderr when
2535         you set -x, so we can't afford to disqualify them, since at least
2536         on Irix-6.5, that would disqualify all bourne shells.
2537         Instead, use a two-pass approach.
2538         On the first pass, try to find a shell that meets the stricter
2539         condition that set -x does not corrupt stderr.
2540         If no shell meets the stricter condition, retest each candidate
2541         shell, but without that extra condition.  Finally, when
2542         VERBOSE=yes is requested and set -x might cause trouble, simply
2543         issue a warning and refrain from enabling debug output.
2544
2545 2010-09-08  Eric Blake  <eblake@redhat.com>
2546
2547         unsetenv: fix OpenBSD bug
2548         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
2549         * doc/posix-functions/unsetenv.texi (unsetenv): Update
2550         documentation.
2551         Reported by Jim Meyering.
2552
2553         strtod: work around IRIX 6.5 bug
2554         * lib/strtod.c (strtod): Reparse number on shorter string if
2555         exponent parse was invalid.
2556         * tests/test-strtod.c (main): Add check for "0x1p 2".
2557         Reported by Tom G. Christensen.
2558
2559         getopt: optimize previous patch
2560         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
2561         empty variable.  Speed up awk script.
2562         Reported by Paolo Bonzini.
2563
2564 2010-09-08  Jim Meyering  <meyering@redhat.com>
2565
2566         test.sh: disqualify shells for which set -x corrupts stderr
2567         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
2568         and OpenBSD 4.7.  They make it so with "set -x", environment settings
2569         appear in stderr output.  For example, this command:
2570             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
2571         prints "P=1" on those two systems:
2572
2573 2010-09-08  Bruno Haible  <bruno@clisp.org>
2574
2575         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
2576         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
2577         commands, because some shells ignore redirections when there is an
2578         error in the command lookup.
2579         Reported by Eric Blake.
2580
2581 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
2582
2583         * lib/regex.h: Fix a mention of `regex_compile' (should be
2584         `re_compile_pattern').
2585         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
2586         (re_set_registers): Correct name of parameter in comment.
2587
2588         * doc/regex.texi: Add documentation for missing syntax flags.
2589         Remove commented-out documentation of defunct syntax option
2590         RE_NO_EMPTY_ALTS.
2591         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
2592         Add documentation of re_set_registers.
2593         Document trick to re-use a pattern buffer by setting fastmap manually.
2594         Update documentation of struct re_pattern_buffer per public members.
2595         Uncomment documentation of equivalence class operators and
2596         collating symbol operators, since they are now implemented,
2597         Explain leftmost-longest matching in relation to alternatives.
2598         Tidy documentation of substring matching.
2599         Remove POSIX documentation, which is done better in
2600         glibc, and refer the reader there. Keep BSD API documentation, as
2601         that is not readily available elsewhere.
2602
2603 2010-09-07  Eric Blake  <eblake@redhat.com>
2604
2605         getopt: handle POSIXLY_CORRECT set but not exported
2606         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
2607         export state of POSIXLY_CORRECT, due to bash set -o posix.
2608         Reported by Dustin J. Mitchell.
2609
2610 2010-09-05  Bruno Haible  <bruno@clisp.org>
2611
2612         gnulib-tool: Highlight the changed options.
2613         * gnulib-tool (func_usage): Display the --import, --add-import,
2614         --remove-import explanations in bold font.
2615
2616 2010-09-06  Karl Berry  <karl@gnu.org>
2617
2618         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
2619
2620 2010-09-05  Bruno Haible  <bruno@clisp.org>
2621
2622         uniwidth/width: Update comment.
2623         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
2624         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
2625
2626 2010-09-05  Bruno Haible  <bruno@clisp.org>
2627
2628         isinf, isnan: Relax license.
2629         * modules/isinf (License): Change from GPL to LGPL, with consent from
2630         Ben Pfaff.
2631         * modules/isnan (License): Likewise.
2632         Requested by Ludovic Courtès.
2633
2634 2010-09-04  Bruno Haible  <bruno@clisp.org>
2635
2636         gnulib-tool: Help migration from --import to --add-import or --update.
2637         * gnulib-tool: Emit a verbose error message when --import is used
2638         without any module name.
2639
2640 2010-09-04  Bruno Haible  <bruno@clisp.org>
2641
2642         Update doc about gnulib-tool.
2643         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
2644         'gnulib-tool --update' in more detail.
2645         Reported by Eric Blake.
2646
2647 2010-09-04  Bruno Haible  <bruno@clisp.org>
2648
2649         gnulib-tool: Change --import. New options --add/remove-import.
2650         * gnulib-tool: New options --add-import, --remove-import.
2651         (func_usage): Document them.
2652         (have_associative): Define always.
2653         (func_import): In import mode, don't merge the specified settings with
2654         the cached settings. Implement remove-import mode.
2655         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
2656         Explain when to use them versus --import.
2657         (Simple update): Use --add-import instead of --import.
2658         * NEWS: Mention the change.
2659
2660 2010-09-04  Bruno Haible  <bruno@clisp.org>
2661
2662         * doc/gnulib-tool.texi (Initial import): Update paragraph about
2663         separate gnulib.mk.
2664
2665 2010-09-04  Bruno Haible  <bruno@clisp.org>
2666
2667         gnulib-tool: Don't talk about CVS any more.
2668         * gnulib-tool (func_usage, func_import): Write "version control"
2669         instead of CVS.
2670
2671 2010-09-04  Jim Meyering  <meyering@redhat.com>
2672
2673         maint.mk: avoid obscure sc_copyright_check failure in coreutils
2674         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
2675         false positives (whose names may be ill-chosen) when searching
2676         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
2677         would cause a false-positive.
2678
2679         avoid coreutils "make distcheck" failure
2680         Coreutils tests with an absolute build directory name that contains
2681         a space.  Not quoting this directory name caused a failure.
2682         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
2683         * tests/test-vc-list-files-cvs.sh: Likewise.
2684
2685 2010-09-04  Bruno Haible  <bruno@clisp.org>
2686
2687         gnulib-tool: Avoid error when run in a package without Makefile.am.
2688         * gnulib-tool: When collecting the m4dirs in a package that does not
2689         have a Makefile.am, eliminate those directories that contain no
2690         gnulib-cache.m4. Fix expression that counts these directories.
2691
2692 2010-09-04  Bruno Haible  <bruno@clisp.org>
2693
2694         update-copyright test: Improve output when perl is missing or too old.
2695         * tests/test-update-copyright.sh: Move test of Perl version down after
2696         the test whether Perl exists. Provide an explanation relating Perl's
2697         error message to Automake's SKIP: message.
2698
2699 2010-09-04  Bruno Haible  <bruno@clisp.org>
2700
2701         Don't augment PATH in TESTS_ENVIRONMENT.
2702         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
2703         set abs_aux_dir instead of augmenting PATH.
2704         * modules/vc-list-files-tests (Makefile.am): Likewise.
2705         * tests/test-update-copyright.sh: Augment PATH here.
2706         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
2707         path_prepend_.
2708         * tests/test-vc-list-files-git.sh: Likewise.
2709
2710 2010-09-04  Jim Meyering  <meyering@redhat.com>
2711
2712         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
2713         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
2714
2715 2010-09-04  Bruno Haible  <bruno@clisp.org>
2716
2717         strdup: Fix compilation error in C++ mode.
2718         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
2719         the macro.
2720
2721 2010-09-04  Bruno Haible  <bruno@clisp.org>
2722
2723         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
2724         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
2725         macro into a function.
2726         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2727
2728 2010-09-04  Bruno Haible  <bruno@clisp.org>
2729
2730         Set PATH_SEPARATOR the same way autoconf does.
2731         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
2732         the value of PATH_SEPARATOR the same way autoconf-generated configure
2733         scripts do.
2734         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
2735         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
2736
2737 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2738
2739         Set PATH_SEPARATOR the same way autoconf does.
2740         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
2741         the same way autoconf-generated configure scripts do.
2742         * posix-modules: Likewise.
2743
2744 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2745
2746         hash: fix safe_hasher const typo
2747         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
2748         const; otherwise, there is a type error later.
2749
2750 2010-09-02  Jim Meyering  <meyering@redhat.com>
2751
2752         test-update-copyright.sh: require perl 5.8.0
2753         * tests/test-update-copyright.sh: Require 5.8.0,
2754         which Tom G. Christensen has confirmed is adequate,
2755         while 5.6.1 is not.
2756
2757 2010-09-02  Eric Blake  <eblake@redhat.com>
2758
2759         tests: init.sh improvements for re-exec'ing with zsh
2760         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
2761         -vx through shell re-exec.
2762         Reported by Tom G. Christensen.
2763
2764         wctype: fix typo in previous commit
2765         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
2766         Reported by Ludovic Courtès.
2767
2768 2010-09-02  Jim Meyering  <meyering@redhat.com>
2769
2770         test-update-copyright.sh: skip test if Perl is too old
2771         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
2772         Reported by Tom G. Christensen.
2773
2774 2010-09-02  Bruno Haible  <bruno@clisp.org>
2775
2776         wctype: Avoid compilation error on IRIX 6.5.30.
2777         * lib/wctype.in.h (iswblank): Declare with a replacement if
2778         REPLACE_ISWBLANK is set.
2779         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
2780         declared. Set REPLACE_ISWBLANK.
2781         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
2782         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
2783         * doc/posix-headers/wctype.texi: Likewise.
2784         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2785
2786 2010-09-01  Bruno Haible  <bruno@clisp.org>
2787
2788         New module 'socketlib'.
2789         * modules/socketlib: New file.
2790         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
2791         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
2792         * modules/sockets (Depends-on): Add socketlib.
2793         Suggested by Sam Steingold <sds@gnu.org>.
2794
2795 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2796
2797         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
2798
2799         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
2800         when one needs search access to a directory but not read access.
2801         On systems where it is available, it works in some cases where
2802         O_RDONLY does not, namely on directories that are searchable but
2803         not readable, and which need only to be searchable.  If O_SEARCH
2804         is not available, fall back to the traditional method of using
2805         O_RDONLY.
2806
2807         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
2808         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
2809         when opening a directory that needs only to be searchable.
2810         * lib/chdir-safer.c (chdir_no_follow): Likewise.
2811         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
2812         * lib/openat-proc.c (openat_proc_name): Likewise.
2813         * lib/openat.c (openat_needs_fchdir): Likewise.
2814         * lib/save-cwd.c (save_cwd): Likewise.
2815         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
2816
2817 2010-08-28  Bruno Haible  <bruno@clisp.org>
2818
2819         New module 'host-cpu-c-abi'.
2820         * modules/host-cpu-c-abi: New file.
2821         * m4/host-cpu-c-abi.m4: New file, based on part of
2822         clisp/src/m4/general.m4.
2823         Requested by Sam Steingold <sds@gnu.org>.
2824
2825 2010-08-31  Eric Blake  <eblake@redhat.com>
2826         and Jim Meyering  <meyering@redhat.com>
2827
2828         hash: factor, and guard against misbehaving hasher function
2829         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
2830         of table->hasher's return value.  Also protect against a hash value
2831         so large that adding it to table->bucket results in a NULL pointer.
2832         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
2833         Use it in place of open-coded check-and-abort.
2834
2835 2010-08-30  Bruno Haible  <bruno@clisp.org>
2836
2837         hash: silence spurious clang warning
2838         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
2839         Reported by Eric Blake.
2840
2841 2010-08-30  Eric Blake  <eblake@redhat.com>
2842
2843         strstr, memmem, strcasestr: avoid leaked shell message
2844         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
2845         FreeBSD.
2846         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2847         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2848
2849         tests: silence clang warning
2850         * tests/test-malloca.c (do_allocation): Avoid dead store.
2851
2852 2010-08-29  Bruno Haible  <bruno@clisp.org>
2853
2854         gettext: Fix recent mistake.
2855         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
2856
2857 2010-08-29  Bruno Haible  <bruno@clisp.org>
2858
2859         selinux-h: Offer a --without-selinux option.
2860         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
2861         --without-selinux was specified, skip all tests and define
2862         HAVE_SELINUX_SELINUX_H to 0.
2863         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
2864         set LIB_SELINUX to empty.
2865         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
2866         gl_LIBSELINUX. If --without-selinux was specified, replace
2867         selinux/context.h.
2868         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
2869
2870 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2871             Bruno Haible  <bruno@clisp.org>
2872
2873         Make the module 'realloc-gnu' work again on AIX and OSF/1.
2874         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
2875         of HAVE_REALLOC.
2876         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
2877         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
2878         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
2879         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2880
2881 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2882             Bruno Haible  <bruno@clisp.org>
2883
2884         Make the module 'calloc-gnu' work again on AIX and OSF/1.
2885         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
2886         HAVE_CALLOC.
2887         * lib/xmalloc.c: Update accordingly.
2888         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
2889         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
2890         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2891
2892 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2893             Bruno Haible  <bruno@clisp.org>
2894
2895         Make the module 'malloc-gnu' work again on AIX and OSF/1.
2896         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
2897         HAVE_MALLOC.
2898         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
2899         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
2900         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2901
2902 2010-08-29  Bruno Haible  <bruno@clisp.org>
2903
2904         Update modules list.
2905         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2906         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
2907         (String handling <string.h>): Add astrxfrm.
2908         (File system functions): Add readlinkat.
2909
2910 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2911
2912         Tests for module 'realloc-gnu'.
2913         * modules/realloc-gnu-tests: New file.
2914         * tests/test-realloc-gnu.c: New file.
2915
2916         Tests for module 'calloc-gnu'.
2917         * modules/calloc-gnu-tests: New file.
2918         * tests/test-calloc-gnu.c: New file.
2919
2920         Tests for module 'malloc-gnu'.
2921         * modules/malloc-gnu-tests: New file.
2922         * tests/test-malloc-gnu.c: New file.
2923
2924 2010-08-28  Bruno Haible  <bruno@clisp.org>
2925
2926         Rename module 'realloc' -> 'realloc-gnu'.
2927         * modules/realloc-gnu: New file, copied from modules/realloc.
2928         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
2929         obsolete.
2930         * modules/mgetgroups (Depends-on): Update.
2931         * doc/posix-functions/realloc.texi: Update.
2932         * NEWS: Mention the change.
2933
2934         Rename module 'calloc' -> 'calloc-gnu'.
2935         * modules/calloc-gnu: New file, copied from modules/calloc.
2936         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
2937         obsolete.
2938         * doc/posix-functions/calloc.texi: Update.
2939         * NEWS: Mention the change.
2940
2941         Rename module 'malloc' -> 'malloc-gnu'.
2942         * modules/malloc-gnu: New file, copied from modules/malloc.
2943         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
2944         obsolete.
2945         * modules/argp (Depends-on): Update.
2946         * modules/regex (Depends-on): Update.
2947         * doc/posix-functions/malloc.texi: Update.
2948         * NEWS: Mention the change.
2949
2950 2010-08-28  Eric Blake  <eblake@redhat.com>
2951
2952         pread, pwrite: add missing dependency
2953         * modules/pread (Depends-on): Add extensions.
2954         * modules/pwrite (Depends-on): Likewise.
2955
2956 2010-08-28  Bruno Haible  <bruno@clisp.org>
2957
2958         unistr/u*-strchr: Fix tests dependencies.
2959         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
2960         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
2961         Reported by Ian Beckwith <ianb@erislabs.net>.
2962
2963 2010-08-28  Bruno Haible  <bruno@clisp.org>
2964
2965         read-file: Don't occupy too much unused memory.
2966         * lib/read-file.c (fread_file): Shrink the buffer at the end.
2967
2968 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
2969             Eric Blake  <eblake@redhat.com>
2970             Bruno Haible  <bruno@clisp.org>
2971
2972         read-file: Avoid memory reallocations with regular files.
2973         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
2974         (fread_file): With regular files, use the remaining length as the
2975         initial buffer size.  Check against overflow.
2976         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
2977         sys_stat.
2978
2979 2010-08-28  Bruno Haible  <bruno@clisp.org>
2980
2981         ftello: Relax license.
2982         * modules/ftello (License): Relax to LGPLv2+.
2983         Reported by Eric Blake.
2984
2985 2010-08-28  Bruno Haible  <bruno@clisp.org>
2986
2987         Avoid relocwrapper link errors due to gnulib replacement functions.
2988         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
2989         function.
2990         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2991
2992 2010-08-28  Bruno Haible  <bruno@clisp.org>
2993
2994         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
2995         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
2996         defined.
2997         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
2998         Suggested by Eric Blake.
2999
3000 2010-08-28  Bruno Haible  <bruno@clisp.org>
3001
3002         sys_socket, netdb: Ensure socklen_t gets defined.
3003         * modules/sys_socket (Depends-on): Add socklen.
3004         * modules/netdb (Depends-on): Likewise.
3005         * modules/getaddrinfo (Depends-on): Remove socklen.
3006         * modules/getsockopt (Depends-on): Likewise.
3007         * modules/setsockopt (Depends-on): Likewise.
3008         * tests/test-sys_socket.c: Check that socklen_t is defined.
3009         * tests/test-netdb.c: Likewise.
3010         * m4/socklen.m4: Update comments.
3011         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3012
3013 2010-08-27  Eric Blake  <eblake@redhat.com>
3014
3015         login_tty: add missing dependency
3016         * modules/login_tty (Depends-on): Add pty.
3017
3018 2010-08-26  Eric Blake  <eblake@redhat.com>
3019
3020         lib-symbol-versions: fix m4 quoting
3021         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
3022         format for AC_LINK_IFELSE.
3023
3024         glob: fix compile test
3025         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
3026
3027         btowc: fix missing file
3028         * modules/btowc (Files): Also ship locale-fr.m4.
3029
3030         lseek: fix link test
3031         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
3032         AC_LINK_IFELSE.
3033
3034         include_next: silence autoconf 2.68 warning
3035         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
3036         AC_COMPILE_IFELSE as special.
3037         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
3038         autoconf < 2.68.
3039
3040         acl: fix compilation test
3041         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
3042         AC_COMPILE_IFELSE.
3043
3044 2010-08-26  Bruno Haible  <bruno@clisp.org>
3045
3046         Modernize AC_TRY_RUN invocations.
3047         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
3048         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3049         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
3050         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
3051         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3052         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3053         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3054         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3055         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3056         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3057         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3058         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3059         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3060         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3061         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3062         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3063         gl_MBRLEN_NUL_RETVAL): Likewise.
3064         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3065         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3066         Likewise.
3067         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3068         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3069         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3070         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3071         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3072         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3073         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
3074         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3075         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
3076         Likewise.
3077         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3078         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
3079         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3080         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3081         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3082         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3083         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3084         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
3085         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3086         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3087
3088 2010-08-26  Bruno Haible  <bruno@clisp.org>
3089
3090         Modernize AC_TRY_LINK invocations.
3091         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
3092         AC_TRY_LINK.
3093         * m4/argp.m4 (gl_ARGP): Likewise.
3094         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3095         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3096         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
3097         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3098         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3099         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
3100         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3101         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3102         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3103         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
3104         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3105         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
3106         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
3107         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3108         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3109         * m4/hostent.m4 (gl_HOSTENT): Likewise.
3110         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3111         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
3112         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3113         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
3114         Likewise.
3115         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
3116         Likewise.
3117         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
3118         Likewise.
3119         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3120         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
3121         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
3122         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3123         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3124         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3125         * m4/servent.m4 (gl_SERVENT): Likewise.
3126         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3127         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3128         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3129         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3130         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3131         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3132         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3133         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3134         * modules/tsearch-tests (configure.ac): Likewise.
3135
3136 2010-08-26  Bruno Haible  <bruno@clisp.org>
3137
3138         Modernize AC_TRY_COMPILE invocations.
3139         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
3140         AC_TRY_COMPILE.
3141         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
3142         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
3143         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3144         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
3145         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3146         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3147         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3148         * m4/lock.m4 (gl_LOCK): Likewise.
3149         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3150         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3151         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
3152         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3153         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3154         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
3155         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
3156         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
3157         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3158         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3159         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3160         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3161         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
3162         extraneous semicolon.
3163
3164 2010-08-26  Jim Meyering  <meyering@redhat.com>
3165
3166         stat-time: relax license LGPL
3167         * modules/stat-time (License): Change from GPL to LGPL,
3168         with consent from all contributors, for use in libguile.
3169         Requested by Ludovic Courtès.
3170
3171 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
3172
3173         poll: return immediately on POLLHUP.
3174         * lib/poll.c (poll): Always set timeout before wait_timeout is
3175         computed.
3176
3177 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3178
3179         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
3180         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
3181         rmdir ("dir/.//"), unlinkat.
3182
3183 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3184
3185         stdbool: avoid spurious failure with modern xlc
3186         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3187
3188 2010-08-24  Bruno Haible  <bruno@clisp.org>
3189
3190         getloadavg: simplify code
3191         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
3192         gl_have_func. Update comments.
3193
3194 2010-08-24  Eric Blake  <eblake@redhat.com>
3195
3196         getloadavg: don't define SVR4 on cygwin
3197         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
3198         only define SVR4 when -lkvm is required.
3199         Reported by Yaakov Selkowitz.
3200
3201 2010-08-24  Bruno Haible  <bruno@clisp.org>
3202
3203         priv-set: fix comment
3204         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
3205
3206 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3207
3208         priv-set: fix comments
3209         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
3210         to match code, as suggested by David Bartley in:
3211         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
3212
3213 2010-08-23  Eric Blake  <eblake@redhat.com>
3214
3215         stdbool: avoid rejecting clang
3216         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3217         * tests/test-stdbool.c: Enable more tests if using the system
3218         <stdbool.h> instead of the gnulib replacement.
3219         (main): Move xlc bug test to a runtime test for all compilers.
3220         Reported by Anders Kaseorg.
3221
3222         argz: fix shell quoting issue
3223         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
3224         Reported by Charles Wilson.
3225
3226 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
3227             Erik Faye-Lund <kusmabite@gmail.com>
3228
3229         poll, select: handle ERROR_BROKEN_PIPE.
3230         * lib/poll.c (win32_compute_revents): Return POLLHUP when
3231         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3232         * lib/select.c (win32_compute_revents): Do not mark a pipe
3233         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3234
3235 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
3236
3237         fts: allow compilation with C++
3238         * lib/fts_.h: Specify extern "C" linkage with C++.
3239
3240 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3241
3242         Fix gnulib-tool sed script de-commentation for AIX sed.
3243         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
3244         sed.
3245
3246 2010-08-17  Eric Blake  <eblake@redhat.com>
3247
3248         test-stddef: test for (some) offsetof bugs
3249         * tests/test-stddef.c: Enhance test to ensure correct type of
3250         offsetof.
3251         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
3252         that we are not fixing at this time.
3253
3254 2010-08-15  Bruno Haible  <bruno@clisp.org>
3255
3256         stpncpy: Allow stpncpy to be defined as a macro.
3257         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
3258         if it's already correctly declared.
3259         * lib/string.in.h (stpncpy): Undefine before redefining.
3260         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
3261
3262 2010-08-14  Bruno Haible  <bruno@clisp.org>
3263
3264         Rename module 'memxfrm' to 'amemxfrm'.
3265         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
3266         (amemxfrm): Renamed from memxfrm.
3267         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
3268         (amemxfrm): Renamed from memxfrm.
3269         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
3270         * NEWS: Mention the change.
3271         * MODULES.html.sh (String handling <string.h>): Update.
3272         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
3273         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
3274         * lib/unicase/u16-casexfrm.c: Likewise.
3275         * lib/unicase/u32-casexfrm.c: Likewise.
3276         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
3277         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
3278         * lib/uninorm/u16-normxfrm.c: Likewise.
3279         * lib/uninorm/u32-normxfrm.c: Likewise.
3280         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
3281         memxfrm.
3282         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
3283         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
3284         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
3285         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
3286         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
3287         Suggested by Paul Eggert.
3288
3289 2010-08-14  Bruno Haible  <bruno@clisp.org>
3290
3291         Tests for module 'astrxfrm'.
3292         * modules/astrxfrm-tests: New file.
3293         * tests/test-astrxfrm.c: New file.
3294
3295         New module 'astrxfrm'.
3296         * lib/astrxfrm.h: New file.
3297         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
3298         * modules/astrxfrm: New file.
3299
3300 2010-08-14  Reuben Thomas <rrt@sc3d.org>
3301
3302         regex: Tweak doc.
3303         * doc/regex.texi (Overview): Don't mention regex.c.
3304         (GNU Regular Expression Compiling): Likewise.
3305         (Match-end-of-line Operator): Mention 'not_eol'.
3306
3307 2010-08-14  Brian Gough  <bjg@gnu.org>
3308             Bruno Haible  <bruno@clisp.org>
3309
3310         git-merge-changelog: add doc relating to use with bzr and hg.
3311         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
3312
3313 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
3314
3315         pthread: fix pthread.h creation for srcdir != builddir
3316         * modules/pthread (Makefile.am): Fix the rule to work also in a
3317         non-srcdir build.
3318
3319 2010-08-13  Karl Berry  <karl@gnu.org>
3320
3321         * doc/regex.texi (Predefined Syntaxes): @smallexample.
3322         * doc/posix-*/*: force line break before @url of POSIX
3323         specifications.
3324         Suggested by Werner Lemberg.
3325
3326 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3327
3328         strtod: fix const diagnostic
3329         * lib/strtod.c (strtod): Don't assign const char * to char *,
3330         as this elicits a warning from GCC when warnings are enabled.
3331
3332 2010-08-10  Pádraig Brady <P@draigbrady.com>
3333         and Eric Blake  <eblake@redhat.com>
3334
3335         copy-acl: ignore ENOTSUP on HP-UX
3336         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
3337         so that it is available for HP-UX.
3338         * lib/copy-acl.c (qcopy_acl): Use it.
3339         Reported by Patrick M. Callahan.
3340
3341 2010-08-10  Eric Blake  <eblake@redhat.com>
3342
3343         open, chown: relax license
3344         * modules/open (License): Change to LGPLv2+, with consent by all
3345         authors, for use in augeas.
3346         * modules/chown (License): Likewise.
3347         * modules/lchown (Likewise): Likewise.
3348         Requested by Adam Stokes.
3349
3350 2010-08-09  Karl Berry  <karl@gnu.org>
3351
3352         * build-aux/ar-lib: new file, import from Automake.
3353         * config/srclist.txt: autocheck for updates.
3354
3355 2010-08-09  Eric Blake  <eblake@redhat.com>
3356
3357         readlinkat: adjust client modules
3358         * modules/areadlinkat (Depends-on): Use readlinkat, not
3359         symlinkat.
3360         * modules/areadlinkat-with-size (Depends-on): Likewise.
3361
3362         mknod: be more vocal about danger of running tests as root
3363         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
3364         root, since that is just asking for problems.
3365         Suggested by Bruno Haible, based on a report by Rainer Tammer.
3366
3367         readlinkat: split into its own module
3368         * modules/symlinkat: Split readlinkat...
3369         * modules/readlinkat: ...into separate module.
3370         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
3371         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
3372         * lib/symlinkat.c (readlinkat): Move...
3373         * lib/readlinkat.c: ...into new file.
3374         * modules/symlinkat-tests: Split readlinkat test...
3375         * modules/readlinkat-tests: ...into separate module.
3376         * tests/test-symlinkat.c: Split...
3377         * tests/test-readlinkat.c: ...into new file.
3378         * NEWS: Document the split.
3379         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3380         * lib/unistd.in.h (readlinkat): Likewise.
3381         Suggested by Bruno Haible.
3382
3383 2010-08-08  Bruno Haible  <bruno@clisp.org>
3384
3385         memxfrm: Speed up.
3386         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
3387         that usually only one call to strxfrm is necessary for each string
3388         part.
3389         Reported by Paul Eggert <eggert@cs.ucla.edu>.
3390
3391 2010-08-07  Karl Berry  <karl@gnu.org>
3392
3393         * doc/posix-headers/limits.texi,
3394         * doc/posix-functions/malloc.texi,
3395         * doc/posix-functions/strsignal.texi: missing @item.
3396         * doc/ld-version-script.texi: spurious leading i.
3397         * doc/regex.texi (Interval Operators): no commas inside @var.
3398
3399 2010-08-01  Bruno Haible  <bruno@clisp.org>
3400
3401         Integrate the regex documentation.
3402         * doc/gnulib.texi: Define 'cn' index.
3403         (Regular expressions): New a chapter that includes regex.texi and
3404         regexprops-generic.texi.
3405         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
3406         syntax.
3407
3408         Whitespace cleanup.
3409         * doc/regex.texi: Remove trailing spaces.
3410
3411         Add regex documentation.
3412         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
3413         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
3414         Written by Kathy A. Hargreaves and Karl Berry.
3415
3416 2010-08-01  Bruno Haible  <bruno@clisp.org>
3417
3418         link: Update documentation.
3419         * doc/posix-functions/link.texi: Update regarding Solaris.
3420
3421 2010-07-31  Bruno Haible  <bruno@clisp.org>
3422
3423         Update modules list.
3424         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
3425         (String handling <string.h>): Add memcmp2, memxfrm.
3426         (Container data structures): Add xlist, xsublist, xoset.
3427         (Core language properties): Add alignof, unused-parameter.
3428         (Process control, Numeric conversion functions <stdlib.h>): Renamed
3429         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
3430         (Unibyte characters <ctype.h>): New section.
3431         (String handling <string.h>): New section.
3432         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
3433         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
3434         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
3435         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
3436         tan, tanh, tanl, y0, y1, yn.
3437         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
3438         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
3439         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
3440         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
3441         unlockpt, vdprintf, vdprintf-posix.
3442         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
3443         (File system functions): Add concat-filename, sys_file, sys_ioctl,
3444         xconcat-filename.
3445         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
3446         getdtablesize, pipe2, pipe2-safer.
3447         (Security): New section.
3448         (Networking functions): Add accept4.
3449         (Signal handling): Add sigpipe.
3450         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
3451         mbmemcasecoll.
3452         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
3453         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
3454         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
3455         pipe-filter-ii.
3456         (Misc): Add argp-version-etc, login_tty, parse-duration.
3457
3458 2010-07-31  Bruno Haible  <bruno@clisp.org>
3459
3460         Improve doc in MODULES.html.
3461         * modules/linkat (Description): Add the word "function".
3462         * modules/mkfifo (Description): Likewise.
3463         * modules/mknod (Description): Likewise.
3464         * modules/remove (Description): Likewise.
3465         * modules/renameat (Description): Likewise.
3466         * modules/stat (Description): Likewise.
3467         * modules/symlink (Description): Likewise.
3468         * modules/unlink (Description): Likewise.
3469
3470 2010-07-31  Bruno Haible  <bruno@clisp.org>
3471
3472         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
3473         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
3474         option --enable/disable-c++ instead of --enable/disable-cxx.
3475         * NEWS: Mention the change.
3476
3477 2010-07-31  Bruno Haible  <bruno@clisp.org>
3478
3479         readlink, areadlink: Relax test a bit.
3480         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
3481         alternative to ENOTDIR.
3482         * tests/test-areadlink.h (test_areadlink): Likewise.
3483         Reported by Rainer Tammer.
3484
3485 2010-07-31  Bruno Haible  <bruno@clisp.org>
3486
3487         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
3488         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
3489         character, perform the search using U_STRCHR.
3490         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
3491         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
3492         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
3493         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
3494         Suggested by Paolo Bonzini.
3495
3496 2010-07-31  Bruno Haible  <bruno@clisp.org>
3497
3498         unistr/u*-strstr: Fix dependencies.
3499         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
3500         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
3501         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
3502
3503 2010-07-31  Bruno Haible  <bruno@clisp.org>
3504
3505         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
3506         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
3507         the beginning of the loop.
3508         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
3509         cases in 'switch' statement.
3510
3511         unistr/u8-strchr: Fix several bugs.
3512         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
3513         the string. When not found, return NULL, not a pointer near the end.
3514
3515         More tests for unistr/u8-strchr.
3516         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
3517         that the function does not read past the first occurrence of the byte
3518         being searched.
3519         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
3520         * tests/unistr/test-u16-strchr.c (main): New function.
3521         * tests/unistr/test-u32-strchr.c (main): New function.
3522
3523 2010-07-31  Bruno Haible  <bruno@clisp.org>
3524
3525         posix-modules: Ignore backup files of documentation files.
3526         * posix-modules: grep only through files named *.texi.
3527
3528 2010-07-31  Bruno Haible  <bruno@clisp.org>
3529
3530         symlinkat: Fix documentation.
3531         * doc/posix-functions/readlinkat.texi: Fix module name.
3532
3533 2010-07-31  Bruno Haible  <bruno@clisp.org>
3534
3535         fchownat: Replace also when chown has the trailing slash bug.
3536         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
3537         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
3538         introduced on 2010-04-10.
3539         Reported by Rainer Tammer.
3540
3541 2010-07-31  Bruno Haible  <bruno@clisp.org>
3542
3543         linkat: Work around AIX 7.1 bug.
3544         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
3545         whether linkat handles trailing slash correctly. If not, replace linkat
3546         and define LINKAT_TRAILING_SLASH_BUG.
3547         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
3548         check whether (fd1,file1) points to a directory if file1 or file2 ends
3549         in a slash. Code taken from lib/link.c.
3550         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
3551         Reported by Rainer Tammer.
3552
3553 2010-07-31  Bruno Haible  <bruno@clisp.org>
3554
3555         Correctly determine whether pow is available in libc on AIX 7 with xlc.
3556         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
3557         This disables an xlc optimization that was causing wrong test results.
3558         Reported by Rainer Tammer.
3559
3560 2010-07-31  Bruno Haible  <bruno@clisp.org>
3561
3562         iconv: Work around AIX 6.1..7.1 bug.
3563         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
3564         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
3565         cross-compiling, guess no on all versions of AIX.
3566         Reported by Rainer Tammer.
3567
3568 2010-07-31  Bruno Haible  <bruno@clisp.org>
3569
3570         readlink: Relax test a bit.
3571         * tests/test-readlink.h (test_readlink): Allow different errno value
3572         when readlink is called with a file name that ends in / and refers to
3573         a file.
3574         Suggested by Eric Blake.
3575         Reported by Rainer Tammer.
3576
3577 2010-07-31  Bruno Haible  <bruno@clisp.org>
3578
3579         copysign: Does not require -lm on glibc systems.
3580         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
3581         gl_COMMON_DOUBLE_MATHFUNC.
3582         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
3583
3584 2010-07-31  Bruno Haible  <bruno@clisp.org>
3585
3586         duplocale: Work around AIX 7.1 bug.
3587         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
3588         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
3589         * lib/duplocale.c (rpl_duplocale): Update comment.
3590         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
3591         Reported by Rainer Tammer.
3592
3593 2010-07-30  Bruno Haible  <bruno@clisp.org>
3594
3595         dirfd: Avoid link error on AIX 7.1.
3596         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
3597         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
3598         exist, set REPLACE_DIRFD.
3599         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
3600         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
3601         * doc/posix-functions/dirfd.texi: Update.
3602         Reported by Rainer Tammer.
3603
3604 2010-07-30  Eric Blake  <eblake@redhat.com>
3605
3606         strtod: next round of AIX fixes
3607         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
3608         exponent.
3609         * tests/test-strtod.c (main): Enhance tests.
3610         * doc/posix-functions/strtod.texi (strtod): Document next bug.
3611         Reported by Rainer Tammer.
3612
3613         futimens: fix configure check
3614         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
3615         Reported by Bruno Haible.
3616
3617 2010-07-30  Bruno Haible  <bruno@clisp.org>
3618
3619         getline: Update regarding AIX.
3620         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
3621         Reported by Rainer Tammer.
3622
3623 2010-07-30  Bruno Haible  <bruno@clisp.org>
3624
3625         wcwidth: Drop replacement on AIX 7.
3626         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
3627         AIX 7.
3628         Reported by Rainer Tammer.
3629
3630 2010-07-30  Bruno Haible  <bruno@clisp.org>
3631
3632         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
3633         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
3634         a 'char *'.
3635         Reported by Rainer Tammer.
3636
3637 2010-07-30  Bruno Haible  <bruno@clisp.org>
3638
3639         unlink: Update regarding AIX.
3640         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
3641         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
3642         Reported by Rainer Tammer.
3643
3644 2010-07-30  Bruno Haible  <bruno@clisp.org>
3645
3646         symlink: Update regarding AIX.
3647         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
3648         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
3649         Reported by Rainer Tammer.
3650
3651 2010-07-30  Bruno Haible  <bruno@clisp.org>
3652
3653         strndup: Update regarding AIX.
3654         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
3655         AIX 7.
3656         Reported by Rainer Tammer.
3657
3658 2010-07-30  Bruno Haible  <bruno@clisp.org>
3659
3660         stat: Update regarding AIX.
3661         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
3662         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
3663         Reported by Rainer Tammer.
3664
3665 2010-07-30  Bruno Haible  <bruno@clisp.org>
3666
3667         truncl: Fix autoconf test.
3668         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
3669         whether truncl works.
3670         Reported by Rainer Tammer.
3671
3672 2010-07-30  Bruno Haible  <bruno@clisp.org>
3673
3674         round: Update regarding AIX.
3675         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
3676         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
3677         Reported by Rainer Tammer.
3678
3679 2010-07-30  Bruno Haible  <bruno@clisp.org>
3680
3681         rename: Update regarding AIX.
3682         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
3683         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
3684         Reported by Rainer Tammer.
3685
3686 2010-07-30  Bruno Haible  <bruno@clisp.org>
3687
3688         printf.m4: Update regarding AIX.
3689         * m4/printf.m4: Update comments regarding AIX.
3690         Reported by Rainer Tammer.
3691
3692 2010-07-30  Bruno Haible  <bruno@clisp.org>
3693
3694         iconv: Update regarding AIX.
3695         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
3696         AIX 7.
3697         Reported by Rainer Tammer.
3698
3699 2010-07-30  Bruno Haible  <bruno@clisp.org>
3700
3701         getopt: Update regarding AIX.
3702         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
3703         no on AIX.
3704         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
3705         Reported by Rainer Tammer.
3706
3707 2010-07-30  Bruno Haible  <bruno@clisp.org>
3708
3709         ldexpl; Update regarding AIX.
3710         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
3711         on AIX 7.
3712         Reported by Rainer Tammer.
3713
3714 2010-07-30  Bruno Haible  <bruno@clisp.org>
3715
3716         frexpl: Update regarding AIX.
3717         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
3718         on AIX 7.
3719         Reported by Rainer Tammer.
3720
3721 2010-07-30  Bruno Haible  <bruno@clisp.org>
3722
3723         open, fopen: Update regarding AIX.
3724         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
3725         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3726         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
3727         * doc/posix-functions/fopen.texi: Likewise.
3728         Reported by Rainer Tammer.
3729
3730 2010-07-30  Bruno Haible  <bruno@clisp.org>
3731
3732         chown: Update doc regarding AIX.
3733         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
3734         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
3735         Reported by Rainer Tammer.
3736
3737 2010-07-30  Eric Blake  <eblake@redhat.com>
3738
3739         strtod: fix bug in replacement function on AIX
3740         * lib/strtod.c (strtod): Special case broken "0x" parse in
3741         underlying strtod.
3742         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
3743         * doc/posix-functions/strtod.texi (strtod): Likewise.
3744         Reported by Rainer Tammer.
3745
3746 2010-07-30  Bruno Haible  <bruno@clisp.org>
3747
3748         mbrlen: Fix cross-compilation guess for AIX.
3749         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
3750         guess. Leftover from 2008-12-22.
3751
3752 2010-07-30  Bruno Haible  <bruno@clisp.org>
3753
3754         mbrtowc: Fix cross-compilation guess for AIX.
3755         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
3756         guess. Leftover from 2008-12-21.
3757
3758 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
3759
3760         init.sh: work around trap limitation of some shells
3761         * tests/init.sh (setup_): Move exit trap outside of shell function.
3762
3763 2010-07-29  Eric Blake  <eblake@redhat.com>
3764
3765         strtod: aid debugging
3766         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
3767         understanding why strtod is rejected.
3768
3769 2010-07-28  Bruno Haible  <bruno@clisp.org>
3770
3771         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
3772         * lib/unistr/u8-chr.c: Include <string.h>.
3773         * tests/unistr/test-u8-chr.c: Likewise.
3774         * tests/unistr/test-u16-chr.c: Likewise.
3775         * tests/unistr/test-u32-chr.c: Likewise.
3776         * tests/unistr/test-u8-strchr.c: Likewise.
3777         * tests/unistr/test-u16-strchr.c: Likewise.
3778         * tests/unistr/test-u32-strchr.c: Likewise.
3779         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
3780         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3781         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
3782         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
3783
3784 2010-07-28  Bruno Haible  <bruno@clisp.org>
3785
3786         Use spaces for indentation, not tabs.
3787         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3788
3789 2010-07-27  Bruno Haible  <bruno@clisp.org>
3790
3791         mbspcasecmp: Fix function specification.
3792         * lib/string.in.h (mbspcasecmp): Fix specification comment.
3793         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
3794         Reported by Eric Blake <eblake@redhat.com>.
3795
3796 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
3797
3798         timespec: use cast and not conditional, as truncation isn't possible
3799         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
3800         instead of a conditional.  Comment about the situation in more detail.
3801         This undoes most of the 2009-10-29 patch.
3802
3803 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
3804
3805         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
3806         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
3807         * lib/unistr/u8-strchr.c: Likewise.
3808         * modules/unistr/u8-chr: Depend on memchr.
3809
3810         unistr/u*-strchr: add tests
3811         * modules/unistr/u8-strchr-tests: New file.
3812         * modules/unistr/u16-strchr-tests: New file.
3813         * modules/unistr/u32-strchr-tests: New file.
3814         * tests/unistr/test-strchr.h: New file.
3815         * tests/unistr/test-u8-strchr.c: New file.
3816         * tests/unistr/test-u16-strchr.c: New file.
3817         * tests/unistr/test-u32-strchr.c: New file.
3818
3819         unistr/u*-chr: test multibyte sequences more
3820         * tests/unistr/test-chr.h: Do complete testing of the characters in the
3821         test vector.
3822         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
3823         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
3824         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
3825
3826         unistr/u*-chr: test multibyte sequences
3827         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
3828
3829         unistr/u*-chr: prepare for multibyte tests
3830         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
3831         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
3832         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
3833         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
3834         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
3835         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
3836
3837 2010-07-18  Bruno Haible  <bruno@clisp.org>
3838
3839         unistr/u8-strchr: Optimize non-ASCII argument case.
3840         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
3841         because the first byte often matches anyway.
3842         Reported by Pádraig Brady <P@draigbrady.com>.
3843
3844 2010-07-15  Karl Berry  <karl@gnu.org>
3845
3846         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
3847
3848 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
3849
3850         getcwd: on Solaris, work better if ancestors are inaccessible
3851         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
3852         buffer and size, try again with a large buffer.  This works better
3853         on Solaris, since its getcwd succeeds even if the path to the root
3854         is inaccessible, and this is helpful in common cases such as .zfs
3855         hidden directories.  Problem reported by J Chapman Flack in
3856         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
3857         Use system getcwd if it's declared, not merely if it's partly
3858         working; use the partly-working test only to avoid needless effort
3859         if the system getcwd fails.
3860         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
3861         comment that was already obsolete and is now even more obsolete.
3862         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
3863         now might call strdup.
3864
3865 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
3866
3867         pthread: Add enough so that coreutils/src/sort.c compiles.
3868         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
3869         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
3870         gnulib. Include <sched.h> and <time.h>, as per POSIX.
3871         Include <sys/types.h>, in case it defines pthread_t.
3872         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
3873         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
3874         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
3875         (pthread_rwlockattr_t, pthread_spinlock_t):
3876         New typedefs, if HAVE_PTHREAD_T is not defined.
3877         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
3878         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
3879         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
3880         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
3881         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
3882         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
3883         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
3884         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
3885         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
3886         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
3887         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
3888         New macros.
3889         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
3890         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
3891         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
3892         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
3893         (pthread_spin_unlock): New dummy functions.
3894         (pthread_create): Return EAGAIN; don't set errno.
3895         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
3896         require AC_C_INLINE.
3897         * modules/pthread (Depends-on): Add sched, time.
3898         (pthread.h): Use AM_V_GEN.
3899
3900 2010-07-13  Bruno Haible  <bruno@clisp.org>
3901
3902         striconveh: Don't malloc memory if the result buffer is sufficient.
3903         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
3904         buffer if its size is sufficient.
3905         Reported by Ludovic Courtès <ludo@gnu.org>.
3906
3907 2010-07-13  Bruno Haible  <bruno@clisp.org>
3908
3909         strtod: Add safety check.
3910         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
3911
3912 2010-07-12  Bruno Haible  <bruno@clisp.org>
3913
3914         Unify tests that set gl_cv_func_ldexpl_no_libm.
3915         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
3916         gl_FUNC_LDEXPL.
3917         (gl_FUNC_LDEXPL): Invoke it.
3918         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3919
3920 2010-07-12  Bruno Haible  <bruno@clisp.org>
3921
3922         Unify tests that set gl_cv_func_ldexp_no_libm.
3923         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
3924         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
3925         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
3926         (configure.ac): Simply invoke gl_FUNC_LDEXP.
3927         * modules/strtod (Files): Add m4/ldexp.m4.
3928
3929 2010-07-12  Bruno Haible  <bruno@clisp.org>
3930
3931         Unify tests that set gl_cv_func_frexpl_no_libm.
3932         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
3933         gl_FUNC_FREXPL_NO_LIBM.
3934         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
3935         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3936
3937 2010-07-12  Bruno Haible  <bruno@clisp.org>
3938
3939         Unify tests that set gl_cv_func_frexp_no_libm.
3940         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
3941         gl_FUNC_FREXP_NO_LIBM.
3942         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
3943         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3944
3945 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3946
3947         memcoll: clarify sizes versus lengths, document better, and tweak perf
3948         * lib/memcoll.c (strcoll_loop, memcoll0):
3949         Improve quality of descriptive comments.  Name variables
3950         consistently as to whether they are lengths (which do not include
3951         terminating null) versus sizes (which do).
3952         * lib/xmemcoll.c (xmemcoll0): Likewise.
3953         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
3954         returned when s1size == 0; this is easier to compile and saves
3955         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
3956
3957 2010-07-12  Bruno Haible  <bruno@clisp.org>
3958
3959         Tests for module '_Exit'.
3960         * modules/_Exit-tests: New file.
3961         * tests/test-_Exit.sh: New file.
3962         * tests/test-_Exit.c: New file.
3963
3964         New module '_Exit'.
3965         * lib/stdlib.in.h (__attribute__): New macro.
3966         (_Exit): New declaration.
3967         * lib/_Exit.c: New file.
3968         * m4/_Exit.m4: New file.
3969         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
3970         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
3971         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
3972         * modules/_Exit: New file.
3973         * tests/test-stdlib-c++.cc (_Exit): Check signature.
3974         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
3975
3976 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3977
3978         strtod: make it more-accurate typically, and don't require libm
3979         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
3980         Include limits.h.  Don't include string.h.
3981         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
3982         (locale_isspace): New function, so that no casts are needed to
3983         check whether *s is a space.
3984         (ldexp): Provide an unused dummy if not available.
3985         (scale_radix_exp, parse_number, underlying_strtod): New functions.
3986         (strtod): Use them.  This implementation prefers to use the
3987         underlying strtod if available, falling back on our own code
3988         only to fix known bugs.  This is more likely to produce an
3989         accurate result.  Also, it avoids the use of libm functions.
3990         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
3991         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
3992         was absent, but it caused a test failure with coreutils.
3993         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
3994         with libm.
3995         * modules/strtod (Makefile.am, Link): libm is no longer needed.
3996         * modules/strtod-tests (Makefile.am): Likewise.
3997
3998 2010-07-11  Pádraig Brady  <P@draigBrady.com>
3999             Bruno Haible  <bruno@clisp.org>
4000
4001         unistr/u8-strchr: Optimize ASCII argument case.
4002         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
4003
4004 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4005
4006         (x)memcoll: minor tweaks
4007         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
4008         is after the type that it qualifies.
4009         (memcoll0): Likewise.
4010         * lib/memcoll.h (memcoll0): Likewise.
4011         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
4012         * lib/xmemcoll.h (xmemcoll0): Likewise.
4013         * lib/memcoll.c (memcoll0): Correct the comment.  This function
4014         differs from memcoll in that the NUL byte is part of the argument.
4015         Omit the abort-checks, as performance is a real issue here.  Plus,
4016         the checks were wrong anyway (an off-by-one error).  Omit local
4017         variable 'diff', as it's a bit clearer that way.
4018         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
4019         no longer needed.
4020
4021 2010-07-08  Chen Guo <chenguo4@yahoo.com>
4022
4023         (x)memcoll: speedup when input is known to be NUL delimited
4024         * lib/memcoll.c: Include stdlib.
4025         (memcoll0) New function.
4026         (strcoll_loop) New function, refactored for use in both memcoll
4027         and memcoll0.
4028         * lib/memcoll.h: Add prototype for memcoll0.
4029         * lib/xmemcoll.c: (xmemcoll0) New function.
4030         (collate_error) New function, refactored for use in both xmemcoll
4031         and xmemcoll0.
4032         * lib/xmemcoll.h: Add prototype for xmemcoll0.
4033         * m4/memcoll.m4: add inline invocation.
4034
4035 2010-07-06  Pádraig Brady  <P@draigBrady.com>
4036
4037         * build-aux/bootstrap: Remove any local translations
4038         from the translation project synchronization directory,
4039         so that local only translations are not distributed.
4040
4041 2010-07-04  Bruno Haible  <bruno@clisp.org>
4042
4043         fsusage: Clarify which code applies to which platforms.
4044         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
4045         platform.
4046         * lib/fsusage.c (get_fs_usage): Likewise.
4047
4048 2010-07-04  Bruno Haible  <bruno@clisp.org>
4049
4050         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
4051         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
4052         Reported by Martin Lambers <marlam@marlam.de>.
4053
4054 2010-07-04  Jim Meyering  <meyering@redhat.com>
4055
4056         hash: once again explicitly disallow insertion of NULL
4057         * lib/hash.c (hash_insert0): Reinstate just-removed test:
4058         inserting a NULL pointer cannot work with these functions.
4059         Add a comment with details.
4060         This reverts part of the 2010-07-01 commit, 5bef1a35
4061         "hash: extend module to deal with non-pointer keys".
4062
4063 2010-07-01  Bruno Haible  <bruno@clisp.org>
4064
4065         stdbool: Update doc.
4066         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
4067         Info from Christian Weisgerber <naddy@mips.inka.de>.
4068
4069 2010-07-01  Jim Meyering  <meyering@redhat.com>
4070
4071         hash: extend module to deal with non-pointer keys
4072         * lib/hash.c (hash_insert0): New interface, much like hash_insert
4073         but that allows insertion of non-pointer entries.
4074         Do not disallow an ENTRY value of NULL.
4075         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
4076         * lib/hash.h (hash_insert0): Declare.
4077
4078 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4079
4080         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
4081         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
4082         not present (i.e. with autoconf 2.59 and when using gettextize, not
4083         gnulib), require AC_GNU_SOURCE instead.
4084
4085 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
4086
4087         idpriv-drop: Fix tests.
4088         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
4089         not to the test-idpriv-droptemp program.
4090
4091 2010-06-29  Bruno Haible  <bruno@clisp.org>
4092
4093         string: Fix syntax error with g++ 2.96.
4094         * lib/string.in.h (__pure__): Remove definition.
4095         (_GL_ATTRIBUTE_PURE): New macro.
4096         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
4097         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
4098         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4099
4100 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
4101
4102         unitypes: Fix bug introduced on 2010-05-18.
4103         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
4104
4105 2010-06-22  Eric Blake  <eblake@redhat.com>
4106
4107         memmem: slight optimization
4108         * lib/str-two-way.h (critical_factorization): Update comments.
4109         Reduce work during factorization phase.
4110         Reported by Carlos Bueno <carlos@bueno.org>.
4111
4112 2010-06-21  Bruno Haible  <bruno@clisp.org>
4113
4114         Fix HAVE_CALLOC_POSIX misnomer.
4115         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
4116         !HAVE_CALLOC_POSIX.
4117         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
4118         HAVE_CALLOC_POSIX.
4119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
4120         instead of HAVE_CALLOC_POSIX.
4121         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
4122         HAVE_CALLOC_POSIX.
4123
4124         Use modern idiom for calloc() replacement.
4125         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
4126         AC_FUNC_CALLOC.
4127         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
4128         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
4129         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4130         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
4131         (gl_REPLACE_CALLOC): New macro.
4132
4133 2010-06-21  Bruno Haible  <bruno@clisp.org>
4134
4135         Fix HAVE_REALLOC_POSIX misnomer.
4136         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
4137         !HAVE_REALLOC_POSIX.
4138         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
4139         HAVE_REALLOC_POSIX.
4140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
4141         instead of HAVE_REALLOC_POSIX.
4142         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
4143         HAVE_REALLOC_POSIX.
4144
4145         Use modern idiom for realloc() replacement.
4146         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
4147         AC_FUNC_REALLOC.
4148         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
4149         Autoconf's AC_FUNC_REALLOC.
4150         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4151         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
4152         (gl_REPLACE_REALLOC): New macro.
4153         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4154
4155 2010-06-21  Bruno Haible  <bruno@clisp.org>
4156
4157         Fix HAVE_MALLOC_POSIX misnomer.
4158         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
4159         !HAVE_MALLOC_POSIX.
4160         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
4161         HAVE_MALLOC_POSIX.
4162         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
4163         instead of HAVE_MALLOC_POSIX.
4164         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
4165         HAVE_MALLOC_POSIX.
4166
4167         Use modern idiom for malloc() replacement.
4168         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
4169         AC_FUNC_MALLOC.
4170         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
4171         Autoconf's AC_FUNC_MALLOC.
4172         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4173         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
4174         (gl_REPLACE_MALLOC): New macro.
4175         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4176
4177 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
4178
4179         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
4180         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
4181         This macro takes 3 arguments, not 4.
4182
4183 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
4184
4185         ipv6: fix detection under mingw
4186         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
4187         in6_addr.
4188
4189 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
4190
4191         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
4192         that strtod() works when cross-compiling to a glibc version known
4193         to work.
4194
4195 2010-06-15  Bruno Haible  <bruno@clisp.org>
4196
4197         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
4198
4199 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
4200
4201         select: Correct timeout.
4202         * lib/select.c (rpl_select): Compute wait_timeout correctly.
4203
4204 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4205
4206         git-version-gen: init shell var to avoid env var influence
4207         * build-aux/git-version-gen (v): Init shell var to empty.
4208
4209 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
4210
4211         priv-set: Don't assume that priv.h exists merely because getppriv does.
4212         See Jan Andersen's bug report about AIX 5L in
4213         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
4214         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
4215         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
4216         * lib/priv-set.h: Likewise.
4217         * tests/test-priv-set.c: Likewise.
4218
4219 2010-06-13  Bruno Haible  <bruno@clisp.org>
4220
4221         relocatable: Make it easier to test whether to install wrappers.
4222         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
4223         RELOCATABLE_VIA_WRAPPER.
4224
4225 2010-06-13  Bruno Haible  <bruno@clisp.org>
4226
4227         gnulib-tool: Display specified modules and dependencies differently.
4228         * gnulib-tool (func_show_module_list): New function.
4229         (func_import, func_create_testdir): Invoke it.
4230         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4231
4232 2010-06-13  Bruno Haible  <bruno@clisp.org>
4233
4234         gnulib-tool: Align code of func_import and func_create_testdir.
4235         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
4236         specified_modules.
4237
4238 2010-06-12  Jim Meyering  <meyering@redhat.com>
4239
4240         test-inttostr: avoid spurious failure on Solaris 9
4241         * tests/test-inttostr.c (main): Skip the test when snprintf fails
4242         to accept "%ju".  Reported by Bruno Haible.
4243
4244 2010-06-11  Jim Meyering  <meyering@redhat.com>
4245
4246         test-sys_socket: mark variables as used more readably
4247         * tests/test-sys_socket.c (main): Mark otherwise unused variables
4248         as "used" explicitly via (void) statement casts.  This is more
4249         readable than using them in an artificial return expression.
4250         Suggestion from Bruno Haible.
4251
4252 2010-06-11  Bruno Haible  <bruno@clisp.org>
4253
4254         Avoid some more warnings from "gcc -Wwrite-strings".
4255         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
4256         to 'const char *'.
4257         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
4258         * tests/test-c-strcasestr.c (main): Likewise.
4259         * tests/test-mbscasestr1.c (main): Likewise.
4260         * tests/test-mbscasestr2.c (main): Likewise.
4261         * tests/test-memmem.c (main): Likewise.
4262         * tests/test-strstr.c (main): Likewise.
4263         * tests/test-strcasestr.c (main): Likewise.
4264
4265 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4266
4267         init.sh: change framework_failure_ to fail with status 99, not 1
4268         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
4269         automake's parallel-tests rule that this is an unexpected failure,
4270         even if the test is listed in XFAIL_TESTS.
4271
4272 2010-06-11  Jim Meyering  <meyering@redhat.com>
4273
4274         test-inttostr: avoid warnings about 4-6KB literal strings
4275         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
4276         Include "macros.h", for its definition of ASSERT.
4277         (CK): s/assert/ASSERT/
4278         * modules/inttostr-tests (Files): Add macros.h.
4279
4280         init.sh: don't use $ME_ or skip_ before they are defined
4281         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
4282         their first uses.  Also hoist their companions: warn_, fail_,
4283         framework_failure_, $stderr_fileno.  Prompted by a patch from
4284         Stefano Lattarini.
4285
4286         test-sys_socket: avoid set-but-not-used warnings from gcc
4287         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
4288         avoid warning about set-but-not-used variables.
4289
4290         test-xvasprintf: avoid 'const' discard warnings
4291         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
4292         "const" when assigning from literal strings.
4293         (test_xasprintf): Add "void" in function argument list to placate
4294         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
4295
4296         tests: avoid compilation warnings in argmatch and exclude tests...
4297         in packages that define ARGMATCH_DIE_DECL, like coreutils.
4298         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
4299         Since it always exits, declare with the "noreturn" attribute.
4300         * tests/test-argmatch.c: Likewise.
4301
4302         tests: avoid 'const' discard warnings in mbsstr tests
4303         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
4304         * tests/test-mbsstr2.c (main): Likewise.
4305
4306         test-verify: avoid warning from gcc's -Wmissing-declarations
4307         * tests/test-verify.c (function): Declare to be static.
4308
4309         test-inttostr.c: include <string.h> for use of strcmp
4310         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
4311
4312         test-linkat: avoid failed assertion on "other" architectures
4313         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
4314         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
4315         sparc: https://bugs.launchpad.net/bugs/591968
4316
4317 2010-06-11  Jim Meyering  <meyering@redhat.com>
4318
4319         printf.m4: avoid autoconf's "Expanded Before Required" warning
4320         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
4321         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
4322         autoconf warning.
4323
4324 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
4325
4326         Replacement header templates are now named with ".in", not "_".
4327         * doc/gnulib-intro.texi: Correct.
4328
4329 2010-06-10  Jim Meyering  <meyering@redhat.com>
4330
4331         inttostr-tests: depend on snprintf, not snprintf-posix
4332         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
4333         snprintf-posix, to avoid this aclocal failure:
4334           missing file gnulib-tests/vasnprintf.c
4335           configure.ac:45: error: expected source file, required through \
4336           AC_LIBSOURCES, not found
4337
4338 2010-06-10  Jim Meyering  <meyering@redhat.com>
4339
4340         inttostr: add a new function, inttostr, and tests
4341         The namesake function was not available.  The existence of the
4342         template file, inttostr.c makes its addition nontrivial.
4343         * lib/anytostr.c: Rename from inttostr.c.
4344         (anytostr): Rename from inttostr.
4345         * lib/inttostr.c: New file.
4346         * modules/inttostr (Files): Add anytostr.c.
4347         (Makefile.am): Set lib_SOURCES instead of ...
4348         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
4349         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
4350         * lib/offtostr.c: Likewise.
4351         * lib/uinttostr.c: Likewise.
4352         * lib/umaxtostr.c: Likewise.
4353         * modules/inttostr-tests: New file.
4354         * tests/test-inttostr.c: New file.  Test these functions.
4355
4356 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
4357             Bruno Haible  <bruno@clisp.org>
4358
4359         Add "Extending Gnulib" chapter to manual.
4360         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
4361         chapter.
4362         (Extending Gnulib): New chapter.
4363         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
4364         chapter.
4365
4366 2010-06-09  Bruno Haible  <bruno@clisp.org>
4367
4368         Avoid relocwrapper link errors due to gnulib replacement functions.
4369         * lib/areadlink.c: Use the system's malloc, realloc functions.
4370         (areadlink): Set errno to ENOMEM explicitly.
4371         * modules/areadlink (Depends-on): Remove malloc-posix.
4372         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4373
4374 2010-06-09  Bruno Haible  <bruno@clisp.org>
4375
4376         Avoid relocwrapper link errors due to gnulib replacement functions.
4377         * lib/canonicalize-lgpl.c: Use the system's malloc function.
4378         * lib/malloca.c: Likewise.
4379         * lib/relocatable.c: Likewise.
4380         * lib/progreloc.c: Use the system's malloc, sprintf functions.
4381         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
4382         * lib/setenv.c: Use the system's malloc, realloc functions.
4383         * lib/strerror.c: Use the system's sprintf function.
4384         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4385
4386 2010-06-04  Bruno Haible  <bruno@clisp.org>
4387
4388         Prefer documented low-level autoconf macro names.
4389         * m4/lib-link.m4: Use m4_translit instead of translit.
4390         * m4/environ.m4: Likewise.
4391         * m4/mathfunc.m4: Likewise.
4392         * m4/onceonly.m4: Likewise.
4393         * m4/stdint.m4: Likewise.
4394         Suggested by Eric Blake.
4395
4396 2010-06-04  Martin Lambers  <marlam@marlam.de>
4397             Bruno Haible  <bruno@clisp.org>
4398
4399         havelib: Allow library names with '+' characters.
4400         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4401         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
4402
4403 2010-06-09  Bruno Haible  <bruno@clisp.org>
4404
4405         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
4406         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
4407         realloc failed.
4408
4409 2010-06-08  Peter Simons  <simons@cryp.to>
4410
4411         maint.mk: make the news-check rule more configurable
4412         * top/maint.mk (news-check-lines-spec) New variable.
4413         (news-check): Use "sed -n 1,10p" in place of "head".
4414
4415 2010-06-07  Jim Meyering  <meyering@redhat.com>
4416
4417         do-release-commit-and-tag: fix typo in --help
4418         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
4419
4420         regex: avoid new dead-code warning with gcc-4.6.0
4421         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
4422         if-block containing a while-loop.  It's been unused for at least
4423         5 years.
4424
4425 2010-06-05  Bruno Haible  <bruno@clisp.org>
4426
4427         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
4428         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
4429
4430 2010-06-04  Bruno Haible  <bruno@clisp.org>
4431
4432         Update to GNU gettext 0.18.1.
4433         * modules/gettext (configure.ac): Require gettext infrastructure from
4434         version 0.18.1.
4435
4436 2010-06-03  Bruno Haible  <bruno@clisp.org>
4437
4438         Don't use AC_LIBOBJ with file names in subdirectories.
4439         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
4440         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
4441         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
4442         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
4443         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
4444         gl_LIBUNISTRING_LIBSOURCE.
4445         (Makefile.am): Augment lib_SOURCES here, conditionally.
4446         * NEWS: Drop requirement for Automake option 'subdir-objects'.
4447
4448 2010-06-03  Bruno Haible  <bruno@clisp.org>
4449
4450         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
4451         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
4452         expansion does not end with a newline.
4453         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
4454         unnecessary newline.
4455
4456 2010-06-03  Bruno Haible  <bruno@clisp.org>
4457
4458         Reduce dependencies.
4459         * tests/test-quotearg.h: New file, extracted from
4460         tests/test-quotearg.c.
4461         * tests/test-quotearg-simple.c: New file, extracted from
4462         tests/test-quotearg.c.
4463         * tests/test-quotearg.c: Don't include <ctype.h>.
4464         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
4465         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
4466         use_quote_double_quotes, use_quotearg_colon): Moved to
4467         tests/test-quotearg.h.
4468         (results_g, flag_results, custom_quotes, custom_results): Moved
4469         to tests/test-quotearg-simple.c.
4470         (main): Moved the part that does not depend on gettext to
4471         tests/test-quotearg-simple.c. Return 77 if the test cannot be
4472         performed.
4473         * modules/quotearg-simple: New file.
4474         * modules/quotearg-simple-tests: New file.
4475         * modules/quotearg (Depends-on): Add quotearg-simple.
4476         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
4477         (Files): Add tests/test-quotearg.h.
4478         Reported by Paolo Bonzini.
4479
4480 2010-06-03  Bruno Haible  <bruno@clisp.org>
4481
4482         Reduce dependencies.
4483         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
4484
4485 2010-06-03  Bruno Haible  <bruno@clisp.org>
4486
4487         time: Undefine more broken macros.
4488         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
4489         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
4490         Reported by Eric Blake.
4491
4492 2010-06-03  Bruno Haible  <bruno@clisp.org>
4493
4494         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
4495         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
4496         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
4497         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
4498         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
4499         Reported by Ludovic Courtès <ludo@gnu.org>.
4500
4501 2010-06-02  Eric Blake  <eblake@redhat.com>
4502
4503         time: work with mingw + pthreads-win32 library
4504         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
4505         if timespec is defined only in pthread.h.
4506         * modules/time (Makefile.am): Substitute it.
4507         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
4508         <pthread.h>, when needed.
4509         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
4510         from the library.
4511
4512 2010-05-31  Bruno Haible  <bruno@clisp.org>
4513
4514         Avoid expanding two macros in the wrong order.
4515         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
4516         gl_LIBUNISTRING if it is defined.
4517         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
4518         autoconf >= 2.64.
4519         Reported by Ludovic Courtès <ludo@gnu.org>.
4520
4521 2010-05-27  Jim Meyering  <meyering@redhat.com>
4522
4523         maint.mk: also prohibit "#undef" of always-defined symbols
4524         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
4525         Allow more than one space before the symbol name.
4526         (sc_prohibit_always-defined_macros): Use grep's -E, now that
4527         the regexp uses alternation.
4528
4529 2010-05-26  Eric Blake  <eblake@redhat.com>
4530
4531         maint.mk: avoid echo -e
4532         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
4533         Convert all uses of echo -* to printf.
4534         Reported by Matthias Bolte.
4535
4536 2010-05-25  Bruno Haible  <bruno@clisp.org>
4537
4538         Update to GNU gettext 0.18, part 2.
4539         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
4540         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
4541
4542 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4543
4544         Add missing include in test-pwrite.c.
4545         * tests/test-pwrite.c: Include string.h, for strcmp.
4546
4547 2010-05-24  Bruno Haible  <bruno@clisp.org>
4548
4549         * NEWS: Mention requirement for Automake option 'subdir-objects'.
4550
4551 2010-05-24  Bruno Haible  <bruno@clisp.org>
4552
4553         Don't use conversion with transliteration in u{8,16,32}_strcoll.
4554         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
4555         iconveh_error argument.
4556         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
4557         U_STRCONV_TO_LOCALE.
4558         * lib/unistr/u16-strcoll.c: Likewise.
4559         * lib/unistr/u32-strcoll.c: Likewise.
4560         * modules/unistr/u8-strcoll (Depends-on): Add
4561         uniconv/u8-strconv-to-enc, localcharset. Remove
4562         uniconv/u8-strconv-to-locale.
4563         (configure.ac): Bump version number.
4564         * modules/unistr/u16-strcoll (Depends-on): Add
4565         uniconv/u16-strconv-to-enc, localcharset. Remove
4566         uniconv/u16-strconv-to-locale.
4567         (configure.ac): Bump version number.
4568         * modules/unistr/u32-strcoll (Depends-on): Add
4569         uniconv/u32-strconv-to-enc, localcharset. Remove
4570         uniconv/u32-strconv-to-locale.
4571         (configure.ac): Bump version number.
4572
4573 2010-05-24  Bruno Haible  <bruno@clisp.org>
4574
4575         Avoid a test failure on NetBSD 5.0.
4576         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
4577         an iconv() bug.
4578
4579 2010-05-24  Bruno Haible  <bruno@clisp.org>
4580
4581         Adjust #include directive style.
4582         * modules/regex (Includes): Recommend to write <regex.h>.
4583
4584 2010-05-24  Bruno Haible  <bruno@clisp.org>
4585
4586         regex: Don't require alloca.
4587         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
4588         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
4589         only inside if (0).
4590
4591 2010-05-23  Jim Meyering  <meyering@redhat.com>
4592
4593         test-renameat.c: include <sys/stat.h>
4594         * tests/test-renameat.c: Include <sys/stat.h>; required for
4595         definition of S_IS* macros.
4596
4597 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
4598
4599         Update maintainer documentation for 'relocatable-prog' module.
4600         * doc/relocatable-maint.texi: Update.
4601         Comments by Bruno Haible.
4602
4603 2010-05-23  Bruno Haible  <bruno@clisp.org>
4604
4605         git-merge-changelog: Enable --split-merged-entry by default.
4606         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
4607         (usage): Don't mention this option any more.
4608         Reported by Ralf Wildenhues.
4609
4610 2010-05-23  Jim Meyering  <meyering@redhat.com>
4611
4612         test-pwrite: do not leave behind a test file named "out"
4613         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
4614         The trivial-looking use of init.sh is really necessary.
4615         It ensures that the temporary file, "out", is created in
4616         a temporary directory, and removed upon termination.
4617         * tests/test-pwrite.sh: Re-add file.
4618         * modules/pwrite-tests: Reference it.
4619
4620 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4621
4622         Fix output redirection buglet in init.sh.
4623         * tests/init.sh: Fix redirection of stderr.
4624
4625 2010-05-20  Simon Josefsson  <simon@josefsson.org>
4626
4627         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
4628
4629 2010-05-17  Simon Josefsson  <simon@josefsson.org>
4630
4631         * modules/valgrind-tests: New file.
4632         * m4/valgrind-tests.m4: New file.
4633         * doc/valgrind-tests.texi: New file.
4634         * doc/gnulib.texi (Running self-tests under valgrind): New
4635         section.
4636
4637 2010-05-19  Bruno Haible  <bruno@clisp.org>
4638
4639         Clean up dead code in recent commit.
4640         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
4641         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
4642         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
4643         Suggested by Paolo Bonzini.
4644
4645 2010-05-19  Bruno Haible  <bruno@clisp.org>
4646
4647         Avoid valgrind error reports from libunistring.
4648         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
4649         * modules/libunistring (Files): Add it.
4650         * modules/libunistring-optional (Files): Likewise.
4651
4652 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
4653             Bruno Haible  <bruno@clisp.org>
4654
4655         New module 'libunistring-optional'.
4656         * modules/libunistring-optional: New file.
4657         * m4/libunistring-base.m4: New file.
4658         * m4/libunistring-optional.m4: New file.
4659         * lib/unicase.in.h: Renamed from lib/unicase.h.
4660         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
4661         * lib/unictype.in.h: Renamed from lib/unictype.h.
4662         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
4663         * lib/uniname.in.h: Renamed from lib/uniname.h.
4664         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
4665         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
4666         * lib/unistr.in.h: Renamed from lib/unistr.h.
4667         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
4668         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
4669         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
4670         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
4671         gl_LIBUNISTRING. If the library was found, determine the installed
4672         version and set LIBUNISTRING_VERSION.
4673         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
4674         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
4675         handle a configuration option --with-included-libunistring.
4676         * modules/libunistring (Files): Add m4/absolute-header.m4.
4677         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
4678         Add m4/libunistring-base.m4.
4679         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4680         (Makefile.am): Build unicase.h from unicase.in.h.
4681         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
4682         Add m4/libunistring-base.m4.
4683         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4684         (Makefile.am): Build uniconv.h from uniconv.in.h.
4685         * modules/unictype/base (Files): Use unictype.in.h instead of
4686         unictype.h. Add m4/libunistring-base.m4.
4687         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4688         (Makefile.am): Build unictype.h from unictype.in.h.
4689         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
4690         Add m4/libunistring-base.m4.
4691         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4692         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
4693         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
4694         Add m4/libunistring-base.m4.
4695         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4696         (Makefile.am): Build uniname.h from uniname.in.h.
4697         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
4698         Add m4/libunistring-base.m4.
4699         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4700         (Makefile.am): Build uninorm.h from uninorm.in.h.
4701         * modules/unistdio/base (Files): Use unistdio.in.h instead of
4702         unistdio.h. Add m4/libunistring-base.m4.
4703         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4704         (Makefile.am): Build unistdio.h from unistdio.in.h.
4705         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
4706         Add m4/libunistring-base.m4.
4707         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4708         (Makefile.am): Build unistr.h from unistr.in.h.
4709         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
4710         Add m4/libunistring-base.m4.
4711         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4712         (Makefile.am): Build unitypes.h from unitypes.in.h.
4713         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
4714         Add m4/libunistring-base.m4.
4715         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4716         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
4717         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
4718         uniwidth.h. Add m4/libunistring-base.m4.
4719         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4720         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
4721         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
4722         instead of augmenting lib_SOURCES.
4723         * modules/unicase/empty-suffix-context: Likewise.
4724         * modules/unicase/locale-language: Likewise.
4725         * modules/unicase/tolower: Likewise.
4726         * modules/unicase/totitle: Likewise.
4727         * modules/unicase/toupper: Likewise.
4728         * modules/unicase/u8-casecmp: Likewise.
4729         * modules/unicase/u8-casecoll: Likewise.
4730         * modules/unicase/u8-casefold: Likewise.
4731         * modules/unicase/u8-casexfrm: Likewise.
4732         * modules/unicase/u8-ct-casefold: Likewise.
4733         * modules/unicase/u8-ct-tolower: Likewise.
4734         * modules/unicase/u8-ct-totitle: Likewise.
4735         * modules/unicase/u8-ct-toupper: Likewise.
4736         * modules/unicase/u8-is-cased: Likewise.
4737         * modules/unicase/u8-is-casefolded: Likewise.
4738         * modules/unicase/u8-is-lowercase: Likewise.
4739         * modules/unicase/u8-is-titlecase: Likewise.
4740         * modules/unicase/u8-is-uppercase: Likewise.
4741         * modules/unicase/u8-prefix-context: Likewise.
4742         * modules/unicase/u8-suffix-context: Likewise.
4743         * modules/unicase/u8-tolower: Likewise.
4744         * modules/unicase/u8-totitle: Likewise.
4745         * modules/unicase/u8-toupper: Likewise.
4746         * modules/unicase/u16-casecmp: Likewise.
4747         * modules/unicase/u16-casecoll: Likewise.
4748         * modules/unicase/u16-casefold: Likewise.
4749         * modules/unicase/u16-casexfrm: Likewise.
4750         * modules/unicase/u16-ct-casefold: Likewise.
4751         * modules/unicase/u16-ct-tolower: Likewise.
4752         * modules/unicase/u16-ct-totitle: Likewise.
4753         * modules/unicase/u16-ct-toupper: Likewise.
4754         * modules/unicase/u16-is-cased: Likewise.
4755         * modules/unicase/u16-is-casefolded: Likewise.
4756         * modules/unicase/u16-is-lowercase: Likewise.
4757         * modules/unicase/u16-is-titlecase: Likewise.
4758         * modules/unicase/u16-is-uppercase: Likewise.
4759         * modules/unicase/u16-prefix-context: Likewise.
4760         * modules/unicase/u16-suffix-context: Likewise.
4761         * modules/unicase/u16-tolower: Likewise.
4762         * modules/unicase/u16-totitle: Likewise.
4763         * modules/unicase/u16-toupper: Likewise.
4764         * modules/unicase/u32-casecmp: Likewise.
4765         * modules/unicase/u32-casecoll: Likewise.
4766         * modules/unicase/u32-casefold: Likewise.
4767         * modules/unicase/u32-casexfrm: Likewise.
4768         * modules/unicase/u32-ct-casefold: Likewise.
4769         * modules/unicase/u32-ct-tolower: Likewise.
4770         * modules/unicase/u32-ct-totitle: Likewise.
4771         * modules/unicase/u32-ct-toupper: Likewise.
4772         * modules/unicase/u32-is-cased: Likewise.
4773         * modules/unicase/u32-is-casefolded: Likewise.
4774         * modules/unicase/u32-is-lowercase: Likewise.
4775         * modules/unicase/u32-is-titlecase: Likewise.
4776         * modules/unicase/u32-is-uppercase: Likewise.
4777         * modules/unicase/u32-prefix-context: Likewise.
4778         * modules/unicase/u32-suffix-context: Likewise.
4779         * modules/unicase/u32-tolower: Likewise.
4780         * modules/unicase/u32-totitle: Likewise.
4781         * modules/unicase/u32-toupper: Likewise.
4782         * modules/unicase/ulc-casecmp: Likewise.
4783         * modules/unicase/ulc-casecoll: Likewise.
4784         * modules/unicase/ulc-casexfrm: Likewise.
4785         * modules/uniconv/u8-conv-from-enc: Likewise.
4786         * modules/uniconv/u8-conv-to-enc: Likewise.
4787         * modules/uniconv/u8-strconv-from-enc: Likewise.
4788         * modules/uniconv/u8-strconv-from-locale: Likewise.
4789         * modules/uniconv/u8-strconv-to-enc: Likewise.
4790         * modules/uniconv/u8-strconv-to-locale: Likewise.
4791         * modules/uniconv/u16-conv-from-enc: Likewise.
4792         * modules/uniconv/u16-conv-to-enc: Likewise.
4793         * modules/uniconv/u16-strconv-from-enc: Likewise.
4794         * modules/uniconv/u16-strconv-from-locale: Likewise.
4795         * modules/uniconv/u16-strconv-to-enc: Likewise.
4796         * modules/uniconv/u16-strconv-to-locale: Likewise.
4797         * modules/uniconv/u32-conv-from-enc: Likewise.
4798         * modules/uniconv/u32-conv-to-enc: Likewise.
4799         * modules/uniconv/u32-strconv-from-enc: Likewise.
4800         * modules/uniconv/u32-strconv-from-locale: Likewise.
4801         * modules/uniconv/u32-strconv-to-enc: Likewise.
4802         * modules/uniconv/u32-strconv-to-locale: Likewise.
4803         * modules/unictype/bidicategory-byname: Likewise.
4804         * modules/unictype/bidicategory-name: Likewise.
4805         * modules/unictype/bidicategory-of: Likewise.
4806         * modules/unictype/bidicategory-test: Likewise.
4807         * modules/unictype/block-list: Likewise.
4808         * modules/unictype/block-test: Likewise.
4809         * modules/unictype/category-C: Likewise.
4810         * modules/unictype/category-Cc: Likewise.
4811         * modules/unictype/category-Cf: Likewise.
4812         * modules/unictype/category-Cn: Likewise.
4813         * modules/unictype/category-Co: Likewise.
4814         * modules/unictype/category-Cs: Likewise.
4815         * modules/unictype/category-L: Likewise.
4816         * modules/unictype/category-Ll: Likewise.
4817         * modules/unictype/category-Lm: Likewise.
4818         * modules/unictype/category-Lo: Likewise.
4819         * modules/unictype/category-Lt: Likewise.
4820         * modules/unictype/category-Lu: Likewise.
4821         * modules/unictype/category-M: Likewise.
4822         * modules/unictype/category-Mc: Likewise.
4823         * modules/unictype/category-Me: Likewise.
4824         * modules/unictype/category-Mn: Likewise.
4825         * modules/unictype/category-N: Likewise.
4826         * modules/unictype/category-Nd: Likewise.
4827         * modules/unictype/category-Nl: Likewise.
4828         * modules/unictype/category-No: Likewise.
4829         * modules/unictype/category-P: Likewise.
4830         * modules/unictype/category-Pc: Likewise.
4831         * modules/unictype/category-Pd: Likewise.
4832         * modules/unictype/category-Pe: Likewise.
4833         * modules/unictype/category-Pf: Likewise.
4834         * modules/unictype/category-Pi: Likewise.
4835         * modules/unictype/category-Po: Likewise.
4836         * modules/unictype/category-Ps: Likewise.
4837         * modules/unictype/category-S: Likewise.
4838         * modules/unictype/category-Sc: Likewise.
4839         * modules/unictype/category-Sk: Likewise.
4840         * modules/unictype/category-Sm: Likewise.
4841         * modules/unictype/category-So: Likewise.
4842         * modules/unictype/category-Z: Likewise.
4843         * modules/unictype/category-Zl: Likewise.
4844         * modules/unictype/category-Zp: Likewise.
4845         * modules/unictype/category-Zs: Likewise.
4846         * modules/unictype/category-and: Likewise.
4847         * modules/unictype/category-and-not: Likewise.
4848         * modules/unictype/category-byname: Likewise.
4849         * modules/unictype/category-name: Likewise.
4850         * modules/unictype/category-none: Likewise.
4851         * modules/unictype/category-of: Likewise.
4852         * modules/unictype/category-or: Likewise.
4853         * modules/unictype/category-test: Likewise.
4854         * modules/unictype/combining-class: Likewise.
4855         * modules/unictype/ctype-alnum: Likewise.
4856         * modules/unictype/ctype-alpha: Likewise.
4857         * modules/unictype/ctype-blank: Likewise.
4858         * modules/unictype/ctype-cntrl: Likewise.
4859         * modules/unictype/ctype-digit: Likewise.
4860         * modules/unictype/ctype-graph: Likewise.
4861         * modules/unictype/ctype-lower: Likewise.
4862         * modules/unictype/ctype-print: Likewise.
4863         * modules/unictype/ctype-punct: Likewise.
4864         * modules/unictype/ctype-space: Likewise.
4865         * modules/unictype/ctype-upper: Likewise.
4866         * modules/unictype/ctype-xdigit: Likewise.
4867         * modules/unictype/decimal-digit: Likewise.
4868         * modules/unictype/digit: Likewise.
4869         * modules/unictype/mirror: Likewise.
4870         * modules/unictype/numeric: Likewise.
4871         * modules/unictype/property-alphabetic: Likewise.
4872         * modules/unictype/property-ascii-hex-digit: Likewise.
4873         * modules/unictype/property-bidi-arabic-digit: Likewise.
4874         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
4875         * modules/unictype/property-bidi-block-separator: Likewise.
4876         * modules/unictype/property-bidi-boundary-neutral: Likewise.
4877         * modules/unictype/property-bidi-common-separator: Likewise.
4878         * modules/unictype/property-bidi-control: Likewise.
4879         * modules/unictype/property-bidi-embedding-or-override: Likewise.
4880         * modules/unictype/property-bidi-eur-num-separator: Likewise.
4881         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
4882         * modules/unictype/property-bidi-european-digit: Likewise.
4883         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
4884         * modules/unictype/property-bidi-left-to-right: Likewise.
4885         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
4886         * modules/unictype/property-bidi-other-neutral: Likewise.
4887         * modules/unictype/property-bidi-pdf: Likewise.
4888         * modules/unictype/property-bidi-segment-separator: Likewise.
4889         * modules/unictype/property-bidi-whitespace: Likewise.
4890         * modules/unictype/property-byname: Likewise.
4891         * modules/unictype/property-combining: Likewise.
4892         * modules/unictype/property-composite: Likewise.
4893         * modules/unictype/property-currency-symbol: Likewise.
4894         * modules/unictype/property-dash: Likewise.
4895         * modules/unictype/property-decimal-digit: Likewise.
4896         * modules/unictype/property-default-ignorable-code-point: Likewise.
4897         * modules/unictype/property-deprecated: Likewise.
4898         * modules/unictype/property-diacritic: Likewise.
4899         * modules/unictype/property-extender: Likewise.
4900         * modules/unictype/property-format-control: Likewise.
4901         * modules/unictype/property-grapheme-base: Likewise.
4902         * modules/unictype/property-grapheme-extend: Likewise.
4903         * modules/unictype/property-grapheme-link: Likewise.
4904         * modules/unictype/property-hex-digit: Likewise.
4905         * modules/unictype/property-hyphen: Likewise.
4906         * modules/unictype/property-id-continue: Likewise.
4907         * modules/unictype/property-id-start: Likewise.
4908         * modules/unictype/property-ideographic: Likewise.
4909         * modules/unictype/property-ids-binary-operator: Likewise.
4910         * modules/unictype/property-ids-trinary-operator: Likewise.
4911         * modules/unictype/property-ignorable-control: Likewise.
4912         * modules/unictype/property-iso-control: Likewise.
4913         * modules/unictype/property-join-control: Likewise.
4914         * modules/unictype/property-left-of-pair: Likewise.
4915         * modules/unictype/property-line-separator: Likewise.
4916         * modules/unictype/property-logical-order-exception: Likewise.
4917         * modules/unictype/property-lowercase: Likewise.
4918         * modules/unictype/property-math: Likewise.
4919         * modules/unictype/property-non-break: Likewise.
4920         * modules/unictype/property-not-a-character: Likewise.
4921         * modules/unictype/property-numeric: Likewise.
4922         * modules/unictype/property-other-alphabetic: Likewise.
4923         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
4924         * modules/unictype/property-other-grapheme-extend: Likewise.
4925         * modules/unictype/property-other-id-continue: Likewise.
4926         * modules/unictype/property-other-id-start: Likewise.
4927         * modules/unictype/property-other-lowercase: Likewise.
4928         * modules/unictype/property-other-math: Likewise.
4929         * modules/unictype/property-other-uppercase: Likewise.
4930         * modules/unictype/property-paired-punctuation: Likewise.
4931         * modules/unictype/property-paragraph-separator: Likewise.
4932         * modules/unictype/property-pattern-syntax: Likewise.
4933         * modules/unictype/property-pattern-white-space: Likewise.
4934         * modules/unictype/property-private-use: Likewise.
4935         * modules/unictype/property-punctuation: Likewise.
4936         * modules/unictype/property-quotation-mark: Likewise.
4937         * modules/unictype/property-radical: Likewise.
4938         * modules/unictype/property-sentence-terminal: Likewise.
4939         * modules/unictype/property-soft-dotted: Likewise.
4940         * modules/unictype/property-space: Likewise.
4941         * modules/unictype/property-terminal-punctuation: Likewise.
4942         * modules/unictype/property-test: Likewise.
4943         * modules/unictype/property-titlecase: Likewise.
4944         * modules/unictype/property-unassigned-code-value: Likewise.
4945         * modules/unictype/property-unified-ideograph: Likewise.
4946         * modules/unictype/property-uppercase: Likewise.
4947         * modules/unictype/property-variation-selector: Likewise.
4948         * modules/unictype/property-white-space: Likewise.
4949         * modules/unictype/property-xid-continue: Likewise.
4950         * modules/unictype/property-xid-start: Likewise.
4951         * modules/unictype/property-zero-width: Likewise.
4952         * modules/unictype/scripts: Likewise.
4953         * modules/unictype/syntax-c-ident: Likewise.
4954         * modules/unictype/syntax-c-whitespace: Likewise.
4955         * modules/unictype/syntax-java-ident: Likewise.
4956         * modules/unictype/syntax-java-whitespace: Likewise.
4957         * modules/unilbrk/u8-possible-linebreaks: Likewise.
4958         * modules/unilbrk/u8-width-linebreaks: Likewise.
4959         * modules/unilbrk/u16-possible-linebreaks: Likewise.
4960         * modules/unilbrk/u16-width-linebreaks: Likewise.
4961         * modules/unilbrk/u32-possible-linebreaks: Likewise.
4962         * modules/unilbrk/u32-width-linebreaks: Likewise.
4963         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
4964         * modules/unilbrk/ulc-width-linebreaks: Likewise.
4965         * modules/uniname/uniname: Likewise.
4966         * modules/uninorm/canonical-decomposition: Likewise.
4967         * modules/uninorm/composition: Likewise.
4968         * modules/uninorm/decomposing-form: Likewise.
4969         * modules/uninorm/decomposition: Likewise.
4970         * modules/uninorm/filter: Likewise.
4971         * modules/uninorm/nfc: Likewise.
4972         * modules/uninorm/nfd: Likewise.
4973         * modules/uninorm/nfkc: Likewise.
4974         * modules/uninorm/nfkd: Likewise.
4975         * modules/uninorm/u8-normalize: Likewise.
4976         * modules/uninorm/u8-normcmp: Likewise.
4977         * modules/uninorm/u8-normcoll: Likewise.
4978         * modules/uninorm/u8-normxfrm: Likewise.
4979         * modules/uninorm/u16-normalize: Likewise.
4980         * modules/uninorm/u16-normcmp: Likewise.
4981         * modules/uninorm/u16-normcoll: Likewise.
4982         * modules/uninorm/u16-normxfrm: Likewise.
4983         * modules/uninorm/u32-normalize: Likewise.
4984         * modules/uninorm/u32-normcmp: Likewise.
4985         * modules/uninorm/u32-normcoll: Likewise.
4986         * modules/uninorm/u32-normxfrm: Likewise.
4987         * modules/unistdio/u8-asnprintf: Likewise.
4988         * modules/unistdio/u8-asprintf: Likewise.
4989         * modules/unistdio/u8-snprintf: Likewise.
4990         * modules/unistdio/u8-sprintf: Likewise.
4991         * modules/unistdio/u8-u8-asnprintf: Likewise.
4992         * modules/unistdio/u8-u8-asprintf: Likewise.
4993         * modules/unistdio/u8-u8-snprintf: Likewise.
4994         * modules/unistdio/u8-u8-sprintf: Likewise.
4995         * modules/unistdio/u8-u8-vasnprintf: Likewise.
4996         * modules/unistdio/u8-u8-vasprintf: Likewise.
4997         * modules/unistdio/u8-u8-vsnprintf: Likewise.
4998         * modules/unistdio/u8-u8-vsprintf: Likewise.
4999         * modules/unistdio/u8-vasnprintf: Likewise.
5000         * modules/unistdio/u8-vasprintf: Likewise.
5001         * modules/unistdio/u8-vsnprintf: Likewise.
5002         * modules/unistdio/u8-vsprintf: Likewise.
5003         * modules/unistdio/u16-asnprintf: Likewise.
5004         * modules/unistdio/u16-asprintf: Likewise.
5005         * modules/unistdio/u16-snprintf: Likewise.
5006         * modules/unistdio/u16-sprintf: Likewise.
5007         * modules/unistdio/u16-u16-asnprintf: Likewise.
5008         * modules/unistdio/u16-u16-asprintf: Likewise.
5009         * modules/unistdio/u16-u16-snprintf: Likewise.
5010         * modules/unistdio/u16-u16-sprintf: Likewise.
5011         * modules/unistdio/u16-u16-vasnprintf: Likewise.
5012         * modules/unistdio/u16-u16-vasprintf: Likewise.
5013         * modules/unistdio/u16-u16-vsnprintf: Likewise.
5014         * modules/unistdio/u16-u16-vsprintf: Likewise.
5015         * modules/unistdio/u16-vasnprintf: Likewise.
5016         * modules/unistdio/u16-vasprintf: Likewise.
5017         * modules/unistdio/u16-vsnprintf: Likewise.
5018         * modules/unistdio/u16-vsprintf: Likewise.
5019         * modules/unistdio/u32-asnprintf: Likewise.
5020         * modules/unistdio/u32-asprintf: Likewise.
5021         * modules/unistdio/u32-snprintf: Likewise.
5022         * modules/unistdio/u32-sprintf: Likewise.
5023         * modules/unistdio/u32-u32-asnprintf: Likewise.
5024         * modules/unistdio/u32-u32-asprintf: Likewise.
5025         * modules/unistdio/u32-u32-snprintf: Likewise.
5026         * modules/unistdio/u32-u32-sprintf: Likewise.
5027         * modules/unistdio/u32-u32-vasnprintf: Likewise.
5028         * modules/unistdio/u32-u32-vasprintf: Likewise.
5029         * modules/unistdio/u32-u32-vsnprintf: Likewise.
5030         * modules/unistdio/u32-u32-vsprintf: Likewise.
5031         * modules/unistdio/u32-vasnprintf: Likewise.
5032         * modules/unistdio/u32-vasprintf: Likewise.
5033         * modules/unistdio/u32-vsnprintf: Likewise.
5034         * modules/unistdio/u32-vsprintf: Likewise.
5035         * modules/unistdio/ulc-asnprintf: Likewise.
5036         * modules/unistdio/ulc-asprintf: Likewise.
5037         * modules/unistdio/ulc-fprintf: Likewise.
5038         * modules/unistdio/ulc-snprintf: Likewise.
5039         * modules/unistdio/ulc-sprintf: Likewise.
5040         * modules/unistdio/ulc-vasnprintf: Likewise.
5041         * modules/unistdio/ulc-vasprintf: Likewise.
5042         * modules/unistdio/ulc-vfprintf: Likewise.
5043         * modules/unistdio/ulc-vsnprintf: Likewise.
5044         * modules/unistdio/ulc-vsprintf: Likewise.
5045         * modules/unistr/u8-check: Likewise.
5046         * modules/unistr/u8-chr: Likewise.
5047         * modules/unistr/u8-cmp: Likewise.
5048         * modules/unistr/u8-cmp2: Likewise.
5049         * modules/unistr/u8-cpy: Likewise.
5050         * modules/unistr/u8-cpy-alloc: Likewise.
5051         * modules/unistr/u8-endswith: Likewise.
5052         * modules/unistr/u8-mblen: Likewise.
5053         * modules/unistr/u8-mbsnlen: Likewise.
5054         * modules/unistr/u8-mbtouc: Likewise.
5055         * modules/unistr/u8-mbtouc-unsafe: Likewise.
5056         * modules/unistr/u8-mbtoucr: Likewise.
5057         * modules/unistr/u8-move: Likewise.
5058         * modules/unistr/u8-next: Likewise.
5059         * modules/unistr/u8-prev: Likewise.
5060         * modules/unistr/u8-set: Likewise.
5061         * modules/unistr/u8-startswith: Likewise.
5062         * modules/unistr/u8-stpcpy: Likewise.
5063         * modules/unistr/u8-stpncpy: Likewise.
5064         * modules/unistr/u8-strcat: Likewise.
5065         * modules/unistr/u8-strchr: Likewise.
5066         * modules/unistr/u8-strcmp: Likewise.
5067         * modules/unistr/u8-strcoll: Likewise.
5068         * modules/unistr/u8-strcpy: Likewise.
5069         * modules/unistr/u8-strcspn: Likewise.
5070         * modules/unistr/u8-strdup: Likewise.
5071         * modules/unistr/u8-strlen: Likewise.
5072         * modules/unistr/u8-strmblen: Likewise.
5073         * modules/unistr/u8-strmbtouc: Likewise.
5074         * modules/unistr/u8-strncat: Likewise.
5075         * modules/unistr/u8-strncmp: Likewise.
5076         * modules/unistr/u8-strncpy: Likewise.
5077         * modules/unistr/u8-strnlen: Likewise.
5078         * modules/unistr/u8-strpbrk: Likewise.
5079         * modules/unistr/u8-strrchr: Likewise.
5080         * modules/unistr/u8-strspn: Likewise.
5081         * modules/unistr/u8-strstr: Likewise.
5082         * modules/unistr/u8-strtok: Likewise.
5083         * modules/unistr/u8-to-u16: Likewise.
5084         * modules/unistr/u8-to-u32: Likewise.
5085         * modules/unistr/u8-uctomb: Likewise.
5086         * modules/unistr/u16-check: Likewise.
5087         * modules/unistr/u16-chr: Likewise.
5088         * modules/unistr/u16-cmp: Likewise.
5089         * modules/unistr/u16-cmp2: Likewise.
5090         * modules/unistr/u16-cpy: Likewise.
5091         * modules/unistr/u16-cpy-alloc: Likewise.
5092         * modules/unistr/u16-endswith: Likewise.
5093         * modules/unistr/u16-mblen: Likewise.
5094         * modules/unistr/u16-mbsnlen: Likewise.
5095         * modules/unistr/u16-mbtouc: Likewise.
5096         * modules/unistr/u16-mbtouc-unsafe: Likewise.
5097         * modules/unistr/u16-mbtoucr: Likewise.
5098         * modules/unistr/u16-move: Likewise.
5099         * modules/unistr/u16-next: Likewise.
5100         * modules/unistr/u16-prev: Likewise.
5101         * modules/unistr/u16-set: Likewise.
5102         * modules/unistr/u16-startswith: Likewise.
5103         * modules/unistr/u16-stpcpy: Likewise.
5104         * modules/unistr/u16-stpncpy: Likewise.
5105         * modules/unistr/u16-strcat: Likewise.
5106         * modules/unistr/u16-strchr: Likewise.
5107         * modules/unistr/u16-strcmp: Likewise.
5108         * modules/unistr/u16-strcoll: Likewise.
5109         * modules/unistr/u16-strcpy: Likewise.
5110         * modules/unistr/u16-strcspn: Likewise.
5111         * modules/unistr/u16-strdup: Likewise.
5112         * modules/unistr/u16-strlen: Likewise.
5113         * modules/unistr/u16-strmblen: Likewise.
5114         * modules/unistr/u16-strmbtouc: Likewise.
5115         * modules/unistr/u16-strncat: Likewise.
5116         * modules/unistr/u16-strncmp: Likewise.
5117         * modules/unistr/u16-strncpy: Likewise.
5118         * modules/unistr/u16-strnlen: Likewise.
5119         * modules/unistr/u16-strpbrk: Likewise.
5120         * modules/unistr/u16-strrchr: Likewise.
5121         * modules/unistr/u16-strspn: Likewise.
5122         * modules/unistr/u16-strstr: Likewise.
5123         * modules/unistr/u16-strtok: Likewise.
5124         * modules/unistr/u16-to-u32: Likewise.
5125         * modules/unistr/u16-to-u8: Likewise.
5126         * modules/unistr/u16-uctomb: Likewise.
5127         * modules/unistr/u32-check: Likewise.
5128         * modules/unistr/u32-chr: Likewise.
5129         * modules/unistr/u32-cmp: Likewise.
5130         * modules/unistr/u32-cmp2: Likewise.
5131         * modules/unistr/u32-cpy: Likewise.
5132         * modules/unistr/u32-cpy-alloc: Likewise.
5133         * modules/unistr/u32-endswith: Likewise.
5134         * modules/unistr/u32-mblen: Likewise.
5135         * modules/unistr/u32-mbsnlen: Likewise.
5136         * modules/unistr/u32-mbtouc: Likewise.
5137         * modules/unistr/u32-mbtouc-unsafe: Likewise.
5138         * modules/unistr/u32-mbtoucr: Likewise.
5139         * modules/unistr/u32-move: Likewise.
5140         * modules/unistr/u32-next: Likewise.
5141         * modules/unistr/u32-prev: Likewise.
5142         * modules/unistr/u32-set: Likewise.
5143         * modules/unistr/u32-startswith: Likewise.
5144         * modules/unistr/u32-stpcpy: Likewise.
5145         * modules/unistr/u32-stpncpy: Likewise.
5146         * modules/unistr/u32-strcat: Likewise.
5147         * modules/unistr/u32-strchr: Likewise.
5148         * modules/unistr/u32-strcmp: Likewise.
5149         * modules/unistr/u32-strcoll: Likewise.
5150         * modules/unistr/u32-strcpy: Likewise.
5151         * modules/unistr/u32-strcspn: Likewise.
5152         * modules/unistr/u32-strdup: Likewise.
5153         * modules/unistr/u32-strlen: Likewise.
5154         * modules/unistr/u32-strmblen: Likewise.
5155         * modules/unistr/u32-strmbtouc: Likewise.
5156         * modules/unistr/u32-strncat: Likewise.
5157         * modules/unistr/u32-strncmp: Likewise.
5158         * modules/unistr/u32-strncpy: Likewise.
5159         * modules/unistr/u32-strnlen: Likewise.
5160         * modules/unistr/u32-strpbrk: Likewise.
5161         * modules/unistr/u32-strrchr: Likewise.
5162         * modules/unistr/u32-strspn: Likewise.
5163         * modules/unistr/u32-strstr: Likewise.
5164         * modules/unistr/u32-strtok: Likewise.
5165         * modules/unistr/u32-to-u16: Likewise.
5166         * modules/unistr/u32-to-u8: Likewise.
5167         * modules/unistr/u32-uctomb: Likewise.
5168         * modules/uniwbrk/u8-wordbreaks: Likewise.
5169         * modules/uniwbrk/u16-wordbreaks: Likewise.
5170         * modules/uniwbrk/u32-wordbreaks: Likewise.
5171         * modules/uniwbrk/ulc-wordbreaks: Likewise.
5172         * modules/uniwbrk/wordbreak-property: Likewise.
5173         * modules/uniwidth/u8-strwidth: Likewise.
5174         * modules/uniwidth/u8-width: Likewise.
5175         * modules/uniwidth/u16-strwidth: Likewise.
5176         * modules/uniwidth/u16-width: Likewise.
5177         * modules/uniwidth/u32-strwidth: Likewise.
5178         * modules/uniwidth/u32-width: Likewise.
5179         * modules/uniwidth/width: Likewise.
5180         * modules/unicase/cased-tests (Makefile.am): Link all test programs
5181         with $(LIBUNISTRING).
5182         * modules/unicase/ignorable-tests: Likewise.
5183         * modules/unicase/locale-language-tests: Likewise.
5184         * modules/unicase/tolower-tests: Likewise.
5185         * modules/unicase/totitle-tests: Likewise.
5186         * modules/unicase/toupper-tests: Likewise.
5187         * modules/unicase/u8-casecmp-tests: Likewise.
5188         * modules/unicase/u8-casecoll-tests: Likewise.
5189         * modules/unicase/u8-casefold-tests: Likewise.
5190         * modules/unicase/u8-is-cased-tests: Likewise.
5191         * modules/unicase/u8-is-casefolded-tests: Likewise.
5192         * modules/unicase/u8-is-lowercase-tests: Likewise.
5193         * modules/unicase/u8-is-titlecase-tests: Likewise.
5194         * modules/unicase/u8-is-uppercase-tests: Likewise.
5195         * modules/unicase/u8-tolower-tests: Likewise.
5196         * modules/unicase/u8-totitle-tests: Likewise.
5197         * modules/unicase/u8-toupper-tests: Likewise.
5198         * modules/unicase/u16-casecmp-tests: Likewise.
5199         * modules/unicase/u16-casecoll-tests: Likewise.
5200         * modules/unicase/u16-casefold-tests: Likewise.
5201         * modules/unicase/u16-is-cased-tests: Likewise.
5202         * modules/unicase/u16-is-casefolded-tests: Likewise.
5203         * modules/unicase/u16-is-lowercase-tests: Likewise.
5204         * modules/unicase/u16-is-titlecase-tests: Likewise.
5205         * modules/unicase/u16-is-uppercase-tests: Likewise.
5206         * modules/unicase/u16-tolower-tests: Likewise.
5207         * modules/unicase/u16-totitle-tests: Likewise.
5208         * modules/unicase/u16-toupper-tests: Likewise.
5209         * modules/unicase/u32-casecmp-tests: Likewise.
5210         * modules/unicase/u32-casecoll-tests: Likewise.
5211         * modules/unicase/u32-casefold-tests: Likewise.
5212         * modules/unicase/u32-is-cased-tests: Likewise.
5213         * modules/unicase/u32-is-casefolded-tests: Likewise.
5214         * modules/unicase/u32-is-lowercase-tests: Likewise.
5215         * modules/unicase/u32-is-titlecase-tests: Likewise.
5216         * modules/unicase/u32-is-uppercase-tests: Likewise.
5217         * modules/unicase/u32-tolower-tests: Likewise.
5218         * modules/unicase/u32-totitle-tests: Likewise.
5219         * modules/unicase/u32-toupper-tests: Likewise.
5220         * modules/unicase/ulc-casecmp-tests: Likewise.
5221         * modules/unicase/ulc-casecoll-tests: Likewise.
5222         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
5223         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
5224         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
5225         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
5226         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
5227         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
5228         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
5229         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
5230         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
5231         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
5232         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
5233         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
5234         * modules/unictype/bidicategory-byname-tests: Likewise.
5235         * modules/unictype/bidicategory-name-tests: Likewise.
5236         * modules/unictype/bidicategory-of-tests: Likewise.
5237         * modules/unictype/bidicategory-test-tests: Likewise.
5238         * modules/unictype/block-list-tests: Likewise.
5239         * modules/unictype/block-of-tests: Likewise.
5240         * modules/unictype/block-test-tests: Likewise.
5241         * modules/unictype/category-C-tests: Likewise.
5242         * modules/unictype/category-Cc-tests: Likewise.
5243         * modules/unictype/category-Cf-tests: Likewise.
5244         * modules/unictype/category-Cn-tests: Likewise.
5245         * modules/unictype/category-Co-tests: Likewise.
5246         * modules/unictype/category-Cs-tests: Likewise.
5247         * modules/unictype/category-L-tests: Likewise.
5248         * modules/unictype/category-Ll-tests: Likewise.
5249         * modules/unictype/category-Lm-tests: Likewise.
5250         * modules/unictype/category-Lo-tests: Likewise.
5251         * modules/unictype/category-Lt-tests: Likewise.
5252         * modules/unictype/category-Lu-tests: Likewise.
5253         * modules/unictype/category-M-tests: Likewise.
5254         * modules/unictype/category-Mc-tests: Likewise.
5255         * modules/unictype/category-Me-tests: Likewise.
5256         * modules/unictype/category-Mn-tests: Likewise.
5257         * modules/unictype/category-N-tests: Likewise.
5258         * modules/unictype/category-Nd-tests: Likewise.
5259         * modules/unictype/category-Nl-tests: Likewise.
5260         * modules/unictype/category-No-tests: Likewise.
5261         * modules/unictype/category-P-tests: Likewise.
5262         * modules/unictype/category-Pc-tests: Likewise.
5263         * modules/unictype/category-Pd-tests: Likewise.
5264         * modules/unictype/category-Pe-tests: Likewise.
5265         * modules/unictype/category-Pf-tests: Likewise.
5266         * modules/unictype/category-Pi-tests: Likewise.
5267         * modules/unictype/category-Po-tests: Likewise.
5268         * modules/unictype/category-Ps-tests: Likewise.
5269         * modules/unictype/category-S-tests: Likewise.
5270         * modules/unictype/category-Sc-tests: Likewise.
5271         * modules/unictype/category-Sk-tests: Likewise.
5272         * modules/unictype/category-Sm-tests: Likewise.
5273         * modules/unictype/category-So-tests: Likewise.
5274         * modules/unictype/category-Z-tests: Likewise.
5275         * modules/unictype/category-Zl-tests: Likewise.
5276         * modules/unictype/category-Zp-tests: Likewise.
5277         * modules/unictype/category-Zs-tests: Likewise.
5278         * modules/unictype/category-and-not-tests: Likewise.
5279         * modules/unictype/category-and-tests: Likewise.
5280         * modules/unictype/category-byname-tests: Likewise.
5281         * modules/unictype/category-name-tests: Likewise.
5282         * modules/unictype/category-none-tests: Likewise.
5283         * modules/unictype/category-of-tests: Likewise.
5284         * modules/unictype/category-or-tests: Likewise.
5285         * modules/unictype/category-test-withtable-tests: Likewise.
5286         * modules/unictype/combining-class-tests: Likewise.
5287         * modules/unictype/ctype-alnum-tests: Likewise.
5288         * modules/unictype/ctype-alpha-tests: Likewise.
5289         * modules/unictype/ctype-blank-tests: Likewise.
5290         * modules/unictype/ctype-cntrl-tests: Likewise.
5291         * modules/unictype/ctype-digit-tests: Likewise.
5292         * modules/unictype/ctype-graph-tests: Likewise.
5293         * modules/unictype/ctype-lower-tests: Likewise.
5294         * modules/unictype/ctype-print-tests: Likewise.
5295         * modules/unictype/ctype-punct-tests: Likewise.
5296         * modules/unictype/ctype-space-tests: Likewise.
5297         * modules/unictype/ctype-upper-tests: Likewise.
5298         * modules/unictype/ctype-xdigit-tests: Likewise.
5299         * modules/unictype/decimal-digit-tests: Likewise.
5300         * modules/unictype/digit-tests: Likewise.
5301         * modules/unictype/mirror-tests: Likewise.
5302         * modules/unictype/numeric-tests: Likewise.
5303         * modules/unictype/property-alphabetic-tests: Likewise.
5304         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
5305         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
5306         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
5307         * modules/unictype/property-bidi-block-separator-tests: Likewise.
5308         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
5309         * modules/unictype/property-bidi-common-separator-tests: Likewise.
5310         * modules/unictype/property-bidi-control-tests: Likewise.
5311         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
5312         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
5313         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
5314         * modules/unictype/property-bidi-european-digit-tests: Likewise.
5315         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
5316         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
5317         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
5318         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
5319         * modules/unictype/property-bidi-pdf-tests: Likewise.
5320         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
5321         * modules/unictype/property-bidi-whitespace-tests: Likewise.
5322         * modules/unictype/property-byname-tests: Likewise.
5323         * modules/unictype/property-combining-tests: Likewise.
5324         * modules/unictype/property-composite-tests: Likewise.
5325         * modules/unictype/property-currency-symbol-tests: Likewise.
5326         * modules/unictype/property-dash-tests: Likewise.
5327         * modules/unictype/property-decimal-digit-tests: Likewise.
5328         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
5329         * modules/unictype/property-deprecated-tests: Likewise.
5330         * modules/unictype/property-diacritic-tests: Likewise.
5331         * modules/unictype/property-extender-tests: Likewise.
5332         * modules/unictype/property-format-control-tests: Likewise.
5333         * modules/unictype/property-grapheme-base-tests: Likewise.
5334         * modules/unictype/property-grapheme-extend-tests: Likewise.
5335         * modules/unictype/property-grapheme-link-tests: Likewise.
5336         * modules/unictype/property-hex-digit-tests: Likewise.
5337         * modules/unictype/property-hyphen-tests: Likewise.
5338         * modules/unictype/property-id-continue-tests: Likewise.
5339         * modules/unictype/property-id-start-tests: Likewise.
5340         * modules/unictype/property-ideographic-tests: Likewise.
5341         * modules/unictype/property-ids-binary-operator-tests: Likewise.
5342         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
5343         * modules/unictype/property-ignorable-control-tests: Likewise.
5344         * modules/unictype/property-iso-control-tests: Likewise.
5345         * modules/unictype/property-join-control-tests: Likewise.
5346         * modules/unictype/property-left-of-pair-tests: Likewise.
5347         * modules/unictype/property-line-separator-tests: Likewise.
5348         * modules/unictype/property-logical-order-exception-tests: Likewise.
5349         * modules/unictype/property-lowercase-tests: Likewise.
5350         * modules/unictype/property-math-tests: Likewise.
5351         * modules/unictype/property-non-break-tests: Likewise.
5352         * modules/unictype/property-not-a-character-tests: Likewise.
5353         * modules/unictype/property-numeric-tests: Likewise.
5354         * modules/unictype/property-other-alphabetic-tests: Likewise.
5355         * modules/unictype/property-other-default-ignorable-code-point-tests:
5356         Likewise.
5357         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
5358         * modules/unictype/property-other-id-continue-tests: Likewise.
5359         * modules/unictype/property-other-id-start-tests: Likewise.
5360         * modules/unictype/property-other-lowercase-tests: Likewise.
5361         * modules/unictype/property-other-math-tests: Likewise.
5362         * modules/unictype/property-other-uppercase-tests: Likewise.
5363         * modules/unictype/property-paired-punctuation-tests: Likewise.
5364         * modules/unictype/property-paragraph-separator-tests: Likewise.
5365         * modules/unictype/property-pattern-syntax-tests: Likewise.
5366         * modules/unictype/property-pattern-white-space-tests: Likewise.
5367         * modules/unictype/property-private-use-tests: Likewise.
5368         * modules/unictype/property-punctuation-tests: Likewise.
5369         * modules/unictype/property-quotation-mark-tests: Likewise.
5370         * modules/unictype/property-radical-tests: Likewise.
5371         * modules/unictype/property-sentence-terminal-tests: Likewise.
5372         * modules/unictype/property-soft-dotted-tests: Likewise.
5373         * modules/unictype/property-space-tests: Likewise.
5374         * modules/unictype/property-terminal-punctuation-tests: Likewise.
5375         * modules/unictype/property-test-tests: Likewise.
5376         * modules/unictype/property-titlecase-tests: Likewise.
5377         * modules/unictype/property-unassigned-code-value-tests: Likewise.
5378         * modules/unictype/property-unified-ideograph-tests: Likewise.
5379         * modules/unictype/property-uppercase-tests: Likewise.
5380         * modules/unictype/property-variation-selector-tests: Likewise.
5381         * modules/unictype/property-white-space-tests: Likewise.
5382         * modules/unictype/property-xid-continue-tests: Likewise.
5383         * modules/unictype/property-xid-start-tests: Likewise.
5384         * modules/unictype/property-zero-width-tests: Likewise.
5385         * modules/unictype/scripts-tests: Likewise.
5386         * modules/unictype/syntax-c-ident-tests: Likewise.
5387         * modules/unictype/syntax-c-whitespace-tests: Likewise.
5388         * modules/unictype/syntax-java-ident-tests: Likewise.
5389         * modules/unictype/syntax-java-whitespace-tests: Likewise.
5390         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
5391         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
5392         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
5393         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
5394         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
5395         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
5396         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
5397         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
5398         * modules/uniname/uniname-tests: Likewise.
5399         * modules/uninorm/canonical-decomposition-tests: Likewise.
5400         * modules/uninorm/compat-decomposition-tests: Likewise.
5401         * modules/uninorm/composition-tests: Likewise.
5402         * modules/uninorm/decomposing-form-tests: Likewise.
5403         * modules/uninorm/decomposition-tests: Likewise.
5404         * modules/uninorm/filter-tests: Likewise.
5405         * modules/uninorm/nfc-tests: Likewise.
5406         * modules/uninorm/nfd-tests: Likewise.
5407         * modules/uninorm/nfkc-tests: Likewise.
5408         * modules/uninorm/nfkd-tests: Likewise.
5409         * modules/uninorm/u8-normcmp-tests: Likewise.
5410         * modules/uninorm/u8-normcoll-tests: Likewise.
5411         * modules/uninorm/u16-normcmp-tests: Likewise.
5412         * modules/uninorm/u16-normcoll-tests: Likewise.
5413         * modules/uninorm/u32-normcmp-tests: Likewise.
5414         * modules/uninorm/u32-normcoll-tests: Likewise.
5415         * modules/unistdio/u8-asnprintf-tests: Likewise.
5416         * modules/unistdio/u8-vasnprintf-tests: Likewise.
5417         * modules/unistdio/u8-vasprintf-tests: Likewise.
5418         * modules/unistdio/u8-vsnprintf-tests: Likewise.
5419         * modules/unistdio/u8-vsprintf-tests: Likewise.
5420         * modules/unistdio/u16-asnprintf-tests: Likewise.
5421         * modules/unistdio/u16-vasnprintf-tests: Likewise.
5422         * modules/unistdio/u16-vasprintf-tests: Likewise.
5423         * modules/unistdio/u16-vsnprintf-tests: Likewise.
5424         * modules/unistdio/u16-vsprintf-tests: Likewise.
5425         * modules/unistdio/u32-asnprintf-tests: Likewise.
5426         * modules/unistdio/u32-vasnprintf-tests: Likewise.
5427         * modules/unistdio/u32-vasprintf-tests: Likewise.
5428         * modules/unistdio/u32-vsnprintf-tests: Likewise.
5429         * modules/unistdio/u32-vsprintf-tests: Likewise.
5430         * modules/unistdio/ulc-asnprintf-tests: Likewise.
5431         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
5432         * modules/unistdio/ulc-vasprintf-tests: Likewise.
5433         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
5434         * modules/unistdio/ulc-vsprintf-tests: Likewise.
5435         * modules/unistr/u8-check-tests: Likewise.
5436         * modules/unistr/u8-chr-tests: Likewise.
5437         * modules/unistr/u8-cmp-tests: Likewise.
5438         * modules/unistr/u8-cmp2-tests: Likewise.
5439         * modules/unistr/u8-cpy-alloc-tests: Likewise.
5440         * modules/unistr/u8-cpy-tests: Likewise.
5441         * modules/unistr/u8-mblen-tests: Likewise.
5442         * modules/unistr/u8-mbsnlen-tests: Likewise.
5443         * modules/unistr/u8-mbtouc-tests: Likewise.
5444         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
5445         * modules/unistr/u8-mbtoucr-tests: Likewise.
5446         * modules/unistr/u8-move-tests: Likewise.
5447         * modules/unistr/u8-next-tests: Likewise.
5448         * modules/unistr/u8-prev-tests: Likewise.
5449         * modules/unistr/u8-set-tests: Likewise.
5450         * modules/unistr/u8-stpcpy-tests: Likewise.
5451         * modules/unistr/u8-stpncpy-tests: Likewise.
5452         * modules/unistr/u8-strcat-tests: Likewise.
5453         * modules/unistr/u8-strcmp-tests: Likewise.
5454         * modules/unistr/u8-strcoll-tests: Likewise.
5455         * modules/unistr/u8-strcpy-tests: Likewise.
5456         * modules/unistr/u8-strdup-tests: Likewise.
5457         * modules/unistr/u8-strlen-tests: Likewise.
5458         * modules/unistr/u8-strmblen-tests: Likewise.
5459         * modules/unistr/u8-strmbtouc-tests: Likewise.
5460         * modules/unistr/u8-strncat-tests: Likewise.
5461         * modules/unistr/u8-strncmp-tests: Likewise.
5462         * modules/unistr/u8-strncpy-tests: Likewise.
5463         * modules/unistr/u8-strnlen-tests: Likewise.
5464         * modules/unistr/u8-to-u16-tests: Likewise.
5465         * modules/unistr/u8-to-u32-tests: Likewise.
5466         * modules/unistr/u8-uctomb-tests: Likewise.
5467         * modules/unistr/u16-check-tests: Likewise.
5468         * modules/unistr/u16-chr-tests: Likewise.
5469         * modules/unistr/u16-cmp-tests: Likewise.
5470         * modules/unistr/u16-cmp2-tests: Likewise.
5471         * modules/unistr/u16-cpy-alloc-tests: Likewise.
5472         * modules/unistr/u16-cpy-tests: Likewise.
5473         * modules/unistr/u16-mblen-tests: Likewise.
5474         * modules/unistr/u16-mbsnlen-tests: Likewise.
5475         * modules/unistr/u16-mbtouc-tests: Likewise.
5476         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
5477         * modules/unistr/u16-mbtoucr-tests: Likewise.
5478         * modules/unistr/u16-move-tests: Likewise.
5479         * modules/unistr/u16-next-tests: Likewise.
5480         * modules/unistr/u16-prev-tests: Likewise.
5481         * modules/unistr/u16-set-tests: Likewise.
5482         * modules/unistr/u16-stpcpy-tests: Likewise.
5483         * modules/unistr/u16-stpncpy-tests: Likewise.
5484         * modules/unistr/u16-strcat-tests: Likewise.
5485         * modules/unistr/u16-strcmp-tests: Likewise.
5486         * modules/unistr/u16-strcoll-tests: Likewise.
5487         * modules/unistr/u16-strcpy-tests: Likewise.
5488         * modules/unistr/u16-strdup-tests: Likewise.
5489         * modules/unistr/u16-strlen-tests: Likewise.
5490         * modules/unistr/u16-strmblen-tests: Likewise.
5491         * modules/unistr/u16-strmbtouc-tests: Likewise.
5492         * modules/unistr/u16-strncat-tests: Likewise.
5493         * modules/unistr/u16-strncmp-tests: Likewise.
5494         * modules/unistr/u16-strncpy-tests: Likewise.
5495         * modules/unistr/u16-strnlen-tests: Likewise.
5496         * modules/unistr/u16-to-u32-tests: Likewise.
5497         * modules/unistr/u16-to-u8-tests: Likewise.
5498         * modules/unistr/u16-uctomb-tests: Likewise.
5499         * modules/unistr/u32-check-tests: Likewise.
5500         * modules/unistr/u32-chr-tests: Likewise.
5501         * modules/unistr/u32-cmp-tests: Likewise.
5502         * modules/unistr/u32-cmp2-tests: Likewise.
5503         * modules/unistr/u32-cpy-alloc-tests: Likewise.
5504         * modules/unistr/u32-cpy-tests: Likewise.
5505         * modules/unistr/u32-mblen-tests: Likewise.
5506         * modules/unistr/u32-mbsnlen-tests: Likewise.
5507         * modules/unistr/u32-mbtouc-tests: Likewise.
5508         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
5509         * modules/unistr/u32-mbtoucr-tests: Likewise.
5510         * modules/unistr/u32-move-tests: Likewise.
5511         * modules/unistr/u32-next-tests: Likewise.
5512         * modules/unistr/u32-prev-tests: Likewise.
5513         * modules/unistr/u32-set-tests: Likewise.
5514         * modules/unistr/u32-stpcpy-tests: Likewise.
5515         * modules/unistr/u32-stpncpy-tests: Likewise.
5516         * modules/unistr/u32-strcat-tests: Likewise.
5517         * modules/unistr/u32-strcmp-tests: Likewise.
5518         * modules/unistr/u32-strcoll-tests: Likewise.
5519         * modules/unistr/u32-strcpy-tests: Likewise.
5520         * modules/unistr/u32-strdup-tests: Likewise.
5521         * modules/unistr/u32-strlen-tests: Likewise.
5522         * modules/unistr/u32-strmblen-tests: Likewise.
5523         * modules/unistr/u32-strmbtouc-tests: Likewise.
5524         * modules/unistr/u32-strncat-tests: Likewise.
5525         * modules/unistr/u32-strncmp-tests: Likewise.
5526         * modules/unistr/u32-strncpy-tests: Likewise.
5527         * modules/unistr/u32-strnlen-tests: Likewise.
5528         * modules/unistr/u32-to-u16-tests: Likewise.
5529         * modules/unistr/u32-to-u8-tests: Likewise.
5530         * modules/unistr/u32-uctomb-tests: Likewise.
5531         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
5532         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
5533         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
5534         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
5535         * modules/uniwidth/u8-strwidth-tests: Likewise.
5536         * modules/uniwidth/u8-width-tests: Likewise.
5537         * modules/uniwidth/u16-strwidth-tests: Likewise.
5538         * modules/uniwidth/u16-width-tests: Likewise.
5539         * modules/uniwidth/u32-strwidth-tests: Likewise.
5540         * modules/uniwidth/u32-width-tests: Likewise.
5541         * modules/uniwidth/width-tests: Likewise.
5542
5543 2010-05-18  Richard Jones  <rjones@redhat.com>
5544
5545         doc: users.txt: list hivex
5546         * users.txt: Add hivex.
5547
5548 2010-05-18  Richard Jones  <rjones@redhat.com>
5549
5550         doc: users.txt: list febootstrap
5551         * users.txt: Add febootstrap.
5552
5553 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
5554
5555         bootstrap: fix an error when gnulib is not used as a git submodule
5556         * build-aux/bootstrap (gnulib_path): If its length is zero then
5557         assign "gnulib" to it.
5558         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
5559
5560 2010-05-16  Bruno Haible  <bruno@clisp.org>
5561
5562         Avoid autoconf warnings about AM_ICONV.
5563         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
5564         2.64.
5565
5566 2010-05-16  Bruno Haible  <bruno@clisp.org>
5567
5568         absolute-header: Make the macro usable in more situations.
5569         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
5570         from gl_ABSOLUTE_HEADER.
5571         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
5572
5573 2010-05-16  James Youngman  <jay@gnu.org>
5574
5575         doc: update users.txt
5576         * users.txt: Add CSSC.
5577
5578 2010-05-16  Jim Meyering  <meyering@redhat.com>
5579
5580         init.sh: fix an error in the previous change; add more comments
5581         * tests/init.sh: Compare exit code in loop against 9, not 2.
5582         Patch by Bruno Haible.
5583         Make the two tests more similar by adding an empty "then" clause.
5584         Add comments.
5585
5586         init.sh: avoid unnecessary shell re-exec
5587         * tests/init.sh: Improve the re-exec-required check to first test the
5588         current shell.  If it passes the test, do not search for a shell that
5589         does pass, and do not re-exec.  This test is particularly contorted to
5590         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
5591         of $(...) evokes a syntax error and causes immediate shell exit with
5592         status 2.  Bruno Haible reported that the re-exec made it impossible
5593         to single-step through any init.sh-using script.
5594
5595 2010-05-16  Bruno Haible  <bruno@clisp.org>
5596
5597         Fix collision between gnulib's and libintl's printf replacements.
5598         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
5599         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
5600         (printf): When using GNU C, map the __printf__ function to rpl_printf
5601         via __asm__. When not using GNU C, define rpl_printf instead of
5602         __printf__.
5603         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
5604         commit.
5605         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
5606         commit.
5607         * m4/asm-underscore.m4: New file.
5608         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
5609         * modules/stdio (Files): Add m4/asm-underscore.m4.
5610         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
5611         Reported by Ben Pfaff.
5612
5613 2010-05-16  Bruno Haible  <bruno@clisp.org>
5614
5615         verify: Avoid skipping the test on openSUSE 11.0.
5616         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
5617
5618 2010-05-13  Bruno Haible  <bruno@clisp.org>
5619
5620         Avoid useless warnings from G++.
5621         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
5622         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
5623         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5624
5625 2010-05-11  Jim Meyering  <meyering@redhat.com>
5626
5627         maint.mk: tweak preceding change
5628         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
5629         regexps tighter by anchoring at EOL, and make the new group "shy"
5630         for slightly decreased overhead.
5631
5632 2010-05-11  Eric Blake  <eblake@redhat.com>
5633
5634         maint.mk: gnulib doesn't guarantee NSIG
5635         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
5636
5637 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5638
5639         test-pwrite.c: Remove unused variable declaration.
5640         * tests/test-pwrite.c (main): Remove read_buf declaration.
5641
5642         Remove useless test-pwrite.sh file.
5643         * tests/test-pwrite.sh: Delete file.
5644         * modules/pwrite-tests: Remove references.
5645         Reported by Bruno Haible.
5646
5647 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5648
5649         init.sh: fix a typo
5650         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
5651
5652 2010-05-10  Jim Meyering  <meyering@redhat.com>
5653
5654         maint.mk: avoid using a temporary file in the always-defined-macros check
5655         * top/maint.mk (.re-defmac): Remove rule.
5656         (gl_trap_): Remove definition.
5657         (sc_prohibit_always-defined_macros): Rewrite not to create and
5658         depend on a temporary file.  Instead, depend on GNU grep's ability
5659         to read a list of regular expressions from stdin when given "-f -".
5660
5661 2010-05-09  Bruno Haible  <bruno@clisp.org>
5662
5663         Update to GNU gettext 0.18, part 1.
5664         * m4/gettext.m4: Update to GNU gettext 0.18.
5665         * m4/intl.m4: Likewise.
5666         * m4/po.m4: Likewise.
5667         * modules/gettext (Files): Add m4/fcntl-o.m4.
5668         (configure.ac): Require gettext infrastructure from version 0.18.
5669
5670 2010-05-09  Jim Meyering  <meyering@redhat.com>
5671
5672         init.sh: enable MALLOC_PERTURB_
5673         * tests/init.sh: Enable glibc's malloc-perturbing option.
5674
5675         maint.mk: improve sc_cross_check_PATH_usage_in_tests
5676         With my recent change in init.sh from the two-line form:
5677             -#   : ${srcdir=.}
5678             -#   . "$srcdir/init.sh"; path_prepend_ .
5679             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
5680         I noticed that using the one-line form would cause this test
5681         to fail with a false-positive, or to stop working altogether,
5682         depending on whether help-version changed or all the tests did.
5683         * top/maint.mk (_hv_regex): Remove this definition.
5684         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
5685         (_hv_regex_strong): Use a stronger regex to check for conformance.
5686         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
5687         Give a separate diagnostic for lack of conforming use.
5688
5689         maint.mk: prohibit definition of symbols defined by gnulib
5690         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
5691         definition of symbols defined by gnulib.
5692
5693 2010-05-09  Bruno Haible  <bruno@clisp.org>
5694
5695         acl: Avoid test failure on Cygwin-hosted mingw.
5696         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
5697
5698 2010-05-09  Bruno Haible  <bruno@clisp.org>
5699
5700         error: Use system's fcntl function.
5701         * lib/error.c (fcntl): Undefine.
5702
5703 2010-05-09  Jim Meyering  <meyering@redhat.com>
5704
5705         verify: adjust formatting to be more consistent
5706         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
5707         argument-list '('s, and after one comma.
5708
5709 2010-05-09  Bruno Haible  <bruno@clisp.org>
5710
5711         error: More reliable output on mingw.
5712         * lib/error.c: Include <windows.h>.
5713         (is_open): New function.
5714         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
5715         defined.
5716
5717 2010-05-09  Bruno Haible  <bruno@clisp.org>
5718
5719         vasnprintf: Fix syntax errors in libintl build on mingw.
5720         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
5721         pad_ourselves and prec_ourselves after use.
5722
5723 2010-05-08  Bruno Haible  <bruno@clisp.org>
5724
5725         * lib/config.charset: Update comments for Cygwin 1.7.
5726         * lib/localcharset.c: Likewise.
5727
5728 2010-05-07  Jim Meyering  <meyering@redhat.com>
5729
5730         init.sh: improve comments
5731         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
5732         . "${srcdir=.}/init.sh"; path_prepend_ .
5733         Add a note about path_prepend_ and the alternative of using
5734         TESTS_ENVIRONMENT.
5735
5736 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
5737
5738         exclude: Unescape hashed patterns in wildcard mode.
5739         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
5740         to the hash list.
5741         * tests/test-exclude8.sh: New test case.
5742         * modules/exclude-tests: Add new test.
5743
5744 2010-05-05  Eric Blake  <eblake@redhat.com>
5745
5746         verify: automate tests
5747         * modules/verify-tests: New module.
5748         * tests/test-verify.sh: New file.
5749         * tests/test-verify.c: Guard each negative test with a unique id.
5750         Also avoid warning about unused left hand of comma expressions.
5751
5752 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5753
5754         Further improvements to verify.h, suggested by Eric Blake.
5755         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
5756         the GL_* versions, to avoid collision with OpenGL.
5757         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
5758         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
5759         than testing merely whether it's defined.
5760
5761         Modify verify.h to pacify gcc -Wredundant_decls.
5762         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
5763         These use the prefix "GL_" since they're likely to be useful elsewhere.
5764         We may need to break them out into a different .h file.
5765         (__COUNTER__): Define to 0 if the compiler doesn't support it.
5766         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
5767         of verify_function__.
5768
5769 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5770
5771         Tests for module pwrite.
5772         * modules/pwrite-tests: New file.
5773         * tests/test-pwrite.sh: New file.
5774         * tests/test-pwrite.c: New file.
5775
5776         New module pwrite.
5777         * lib/unistd.in.h (pwrite): New declaration.
5778         * lib/pwrite.c: New file, from glibc with modifications.
5779         * m4/pwrite.m4: New file.
5780         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
5781         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
5782         REPLACE_PWRITE.
5783         * modules/pwrite: New file.
5784         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
5785         REPLACE_PWRITE.
5786         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
5787         * doc/posix-functions/pwrite.texi: Mention the new module.
5788
5789 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5790
5791         pread: Update documentation.
5792         * doc/posix-functions/pread.texi: Mention the 'pread' module.
5793
5794 2010-05-04  Eric Blake  <eblake@redhat.com>
5795
5796         docs: update cygwin progress
5797         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
5798         this bug.
5799         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
5800         Added in cygwin 1.7.2.
5801         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
5802         Likewise.
5803         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
5804         Likewise.
5805         * doc/glibc-functions/dup3.texi (dup3): Likewise.
5806         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5807         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5808         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
5809         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
5810         Mention nproc module.
5811         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
5812         bug in cygwin 1.7.5 addition.
5813         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
5814         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
5815         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
5816         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
5817         1.7.5.
5818         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
5819         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
5820         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
5821         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
5822         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
5823         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
5824         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
5825         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
5826         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
5827         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
5828         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
5829         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
5830         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
5831         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
5832         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
5833         Likewise.
5834         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
5835         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
5836         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
5837         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
5838         Likewise.
5839         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
5840         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
5841         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
5842         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
5843         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
5844         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
5845         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
5846         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
5847         Likewise.
5848         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
5849         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
5850         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
5851         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
5852         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
5853         Likewise.
5854         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
5855         Likewise.
5856         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
5857         Likewise.
5858         * doc/glibc-functions/xdrrec_endofrecord.texi
5859         (xdrrec_endofrecord): Likewise.
5860         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
5861         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
5862         Likewise.
5863         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
5864         Likewise.
5865
5866 2010-05-04  Jim Meyering  <meyering@redhat.com>
5867
5868         gendocs.sh: make its "-s FILE" option more useful
5869         * build-aux/gendocs.sh: When honoring the -s FILE option, update
5870         $PACKAGE to reflect the probably-different basename of "FILE".
5871
5872 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
5873
5874         bootstrap: don't ignore download_po_files failure
5875         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
5876         failure.
5877
5878 2010-05-03  Jim Meyering  <meyering@redhat.com>
5879
5880         maint.mk: allow to pass options to gendocs.sh
5881         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
5882         (gendocs_options_): New overridable variable.
5883
5884         gnu-web-doc-update: don't ignore configure or build failure
5885         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
5886
5887         announce-gen: backslash-escape '@'s in --help output
5888         * build-aux/announce-gen: Fix syntax errors.
5889
5890         maint.mk, announce-gen: allow project-specific announcement mail headers
5891         * top/maint.mk (translation_project_): Define default.
5892         (announcement_Cc_, announcement_mail_headers_): Likewise.
5893         (announcement): Invoke announce-gen with new --mail-headers option.
5894         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
5895
5896         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
5897         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
5898         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
5899         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
5900         line in the "err2" output file when running "make check" in verbose
5901         mode (i.e., with set -x enabled).
5902
5903 2010-05-03  Bruno Haible  <bruno@clisp.org>
5904
5905         wctob: Fix for weird platforms.
5906         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
5907         argument value.
5908
5909 2010-05-03  Jim Meyering  <meyering@redhat.com>
5910
5911         maint.mk: prohibit unwarranted use of <strings.h>
5912         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
5913         strings.h in a file that does not also use strcasecmp, strncasecmp,
5914         ffs or ffsll.
5915
5916         maint.mk: remove obsolete comments
5917         * top/maint.mk: Remove stale, commented-out rules.
5918
5919 2010-05-02  Bruno Haible  <bruno@clisp.org>
5920
5921         wcwidth: Declare also when it's aliased.
5922         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
5923         macro.
5924
5925 2010-05-02  Bruno Haible  <bruno@clisp.org>
5926
5927         Fix regression from 2010-04-25.
5928         * gnulib-tool (func_modules_transitive_closure): Check the status of
5929         all modules, not only of the tests that are of the form foo-tests where
5930         foo is a module.
5931
5932 2010-05-02  Bruno Haible  <bruno@clisp.org>
5933
5934         wctob: Work around nasty Cygwin 1.7.2 bug.
5935         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
5936         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
5937
5938 2010-05-01  Bruno Haible  <bruno@clisp.org>
5939
5940         fpurge: Sharper test.
5941         * tests/test-fpurge.c (main): Add one more ftell check.
5942         * modules/fpurge-tests (Depends-on): Add ftell.
5943         Suggested by Eric Blake.
5944
5945 2010-05-01  Bruno Haible  <bruno@clisp.org>
5946
5947         ftello: Another test.
5948         * tests/test-ftello3.c: New file.
5949         * modules/ftello-tests (Files): Add it.
5950         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5951         MOSTLYCLEANFILES.
5952
5953         ftell: Another test.
5954         * tests/test-ftell3.c: New file.
5955         * modules/ftell-tests (Files): Add it.
5956         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5957         MOSTLYCLEANFILES.
5958
5959 2010-05-01  Bruno Haible  <bruno@clisp.org>
5960
5961         ftell, ftello: Work around Solaris bug.
5962         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
5963         * lib/ftello.c: Include stdio-impl.h.
5964         (ftello): On Solaris, when _IOWRT is set, compute the result without
5965         looking at _IOREAD.
5966         * modules/ftello (Files): Add lib/stdio-impl.h.
5967         * doc/posix-functions/ftell.texi: Mention Solaris bug.
5968         * doc/posix-functions/ftello.texi: Likewise.
5969         Reported by Eric Blake.
5970
5971 2010-05-01  Bruno Haible  <bruno@clisp.org>
5972
5973         freading: Adapt to special meaning of _IOREAD flag on Solaris.
5974         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
5975         the _IOWRT flag is also set.
5976
5977 2010-05-01  Bruno Haible  <bruno@clisp.org>
5978
5979         Fix doc about a HP-UX stdio bug.
5980         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
5981         * doc/posix-functions/ftello.texi: Likewise.
5982
5983 2010-05-01  Bruno Haible  <bruno@clisp.org>
5984
5985         lseek test: Fix failure on Solaris.
5986         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
5987         output.
5988
5989 2010-04-30  Jim Meyering  <meyering@redhat.com>
5990
5991         bootstrap: don't ignore failure to generate po*/Makevars
5992         * build-aux/bootstrap (with_gettext): Don't ignore failure
5993         to create po/Makevars or runtime-po/Makevars.
5994
5995 2010-04-29  Eric Blake  <eblake@redhat.com>
5996
5997         headers: relax license to LGPLv2+
5998         * modules/fcntl-h (License): Relax license.
5999         * modules/getopt-posix (License): Likewise.
6000         * modules/locale (License): Likewise.
6001         * modules/math (License): Likewise.
6002         * modules/pty (License): Likewise.
6003         * modules/sched (License): Likewise.
6004         * modules/search (License): Likewise.
6005         * modules/spawn (License): Likewise.
6006         * modules/stdarg (License): Likewise.
6007         * modules/sysexits (License): Likewise.
6008
6009 2010-04-29  Jim Meyering  <meyering@redhat.com>
6010
6011         inttypes: relax license to LGPLv2+
6012         * modules/inttypes (License): Relax license.
6013
6014 2010-04-29  Simon Josefsson  <simon@josefsson.org>
6015
6016         * top/maint.mk (indent): Run twice to produce idempotent results.
6017
6018 2010-04-28  Bruno Haible  <bruno@clisp.org>
6019
6020         getdate: Generate getdate.c in the source directory.
6021         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
6022         MOSTLYCLEANFILES.
6023         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
6024
6025 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
6026
6027         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
6028         is not declared as a const *; avoid warnings in that case.
6029
6030 2010-04-28  Eric Blake  <eblake@redhat.com>
6031
6032         canonicalize-lgpl: avoid compiler warning
6033         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
6034         declaration' / 'extraneous semicolon' warning with some compilers.
6035         Reported by Andreas Gruenbacher.
6036
6037 2010-04-28  Jim Meyering  <meyering@redhat.com>
6038
6039         init.sh: ensure a more reliable exit status when exiting via trap
6040         * tests/init.sh (setup_): Don't rely on $? in signal handler.
6041         Inspired by patches from Dmitry V. Levin.
6042         Also trap on signal 3 (SIGQUIT).
6043
6044 2010-04-27  Bruno Haible  <bruno@clisp.org>
6045
6046         Update doc about utimes().
6047         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
6048         'utimens' module.
6049         Reported by Andreas Gruenbacher <agruen@suse.de>.
6050
6051 2010-04-27  Eric Blake  <eblake@redhat.com>
6052
6053         full-read, full-write: relax license
6054         * modules/full-read (License): Drop to LGPLv2+.
6055         * modules/full-write (License): Likewise.
6056         * modules/safe-read (License): Likewise.
6057         * modules/safe-write (License): Likewise.
6058
6059         pthread: mention library for linking
6060         * modules/pthread (Link): Mention $(LIB_PTHREAD).
6061
6062 2010-04-27  Jim Meyering  <meyering@redhat.com>
6063
6064         maint.mk: fix a bug introduced in last change
6065         * top/maint.mk (gl_assured_headers_): Now that all names are on
6066         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
6067         is not anchored to end of word, it should be adequate.
6068
6069         maint.mk: avoid side-effect in latest syntax-check
6070         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
6071         to run commands via $(shell...), and hence to incur cost only when
6072         the new rule is actually run.
6073
6074         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
6075         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
6076         and use that to create a regexp used to detect all #if HAVE_..._H uses.
6077         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
6078         (gl_assured_headers_, az_, AZ_): Define.
6079         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
6080
6081 2010-04-26  Jim Meyering  <jim@meyering.net>
6082             Bruno Haible  <bruno@clisp.org>
6083
6084         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
6085         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
6086         Prompted by an exchange with Gilles Espinasse.
6087
6088 2010-04-26  Jim Meyering  <meyering@redhat.com>
6089
6090         git-version-gen: aesthetic tweak
6091         * build-aux/git-version-gen: Use "$nl" rather than a literal,
6092         so that the command remains on a single line.
6093
6094 2010-04-26  Eric Blake  <eblake@redhat.com>
6095
6096         git-version-gen: allow use on EBCDIC hosts
6097         * build-aux/git-version-gen (dirty): Use literal rather than tying
6098         ourselves to ascii.
6099         Reported by Steve Goetze.
6100
6101 2010-04-25  Bruno Haible  <bruno@clisp.org>
6102
6103         netdb: Add support for GNULIB_POSIXCHECK.
6104         * lib/netdb.in.h: Include warn-on-use.h.
6105         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
6106         functions are used when GNULIB_POSIXCHECK is defined and the
6107         getaddrinfo module is not in use.
6108         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
6109         freeaddrinfo, gai_strerror, getnameinfo are declared.
6110         * modules/netdb (Depends-on): Add warn-on-use.
6111         (Makefile.am): Include warn-on-use.h in netdb.h.
6112
6113 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
6114
6115         build: avoid "make check" failure without .git/ directory
6116         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
6117         there is no .git/ directory.
6118
6119 2010-04-25  Bruno Haible  <bruno@clisp.org>
6120
6121         ptsname: Fix misuse of ttyname_r.
6122         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
6123         of errno.
6124
6125 2010-04-25  Bruno Haible  <bruno@clisp.org>
6126
6127         ttyname_r: Make it work on Solaris 10.
6128         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
6129         if the system function has the POSIX declaration. Test whether the
6130         function fails if the buffer is less than 128 bytes large.
6131         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
6132         system's ttyname_r function. Provide a reasonably large buffer.
6133         * modules/ttyname_r (Depends-on): Add extensions.
6134         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
6135
6136 2010-04-25  Bruno Haible  <bruno@clisp.org>
6137
6138         Use the 'extensions' module for some more functions on Solaris.
6139         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
6140         module.
6141         * doc/posix-functions/ctime_r.texi: Likewise.
6142         * doc/posix-functions/getgrgid_r.texi: Likewise.
6143         * doc/posix-functions/getgrnam_r.texi: Likewise.
6144         * doc/posix-functions/getpwnam_r.texi: Likewise.
6145         * doc/posix-functions/getpwuid_r.texi: Likewise.
6146         * doc/posix-functions/readdir_r.texi: Likewise.
6147         * doc/posix-functions/sigwait.texi: Likewise.
6148         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
6149         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
6150
6151 2010-04-25  Bruno Haible  <bruno@clisp.org>
6152
6153         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
6154         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
6155         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
6156         * lib/ttyname_r.c: Include <limits.h>.
6157         (ttyname_r): Define using the system's ttyname_r function, if it exists
6158         and not on Solaris.
6159         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
6160         set.
6161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
6162         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
6163         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
6164         Reported by Simon Josefsson.
6165
6166 2010-04-25  Bruno Haible  <bruno@clisp.org>
6167
6168         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
6169         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
6170         * doc/posix-functions/ctime_r.texi: Likewise.
6171         * doc/posix-functions/getgrgid_r.texi: Likewise.
6172         * doc/posix-functions/getgrnam_r.texi: Likewise.
6173         * doc/posix-functions/getlogin_r.texi: Likewise.
6174         * doc/posix-functions/getpwnam_r.texi: Likewise.
6175         * doc/posix-functions/getpwuid_r.texi: Likewise.
6176         * doc/posix-functions/readdir_r.texi: Likewise.
6177         * doc/posix-functions/sigwait.texi: Likewise.
6178         * doc/posix-functions/ttyname_r.texi: Likewise.
6179         Reported by Simon Josefsson.
6180
6181 2010-04-25  Bruno Haible  <bruno@clisp.org>
6182
6183         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
6184         * gnulib-tool (func_usage): Document that --with-*-tests options apply
6185         also to --create-testdir.
6186         (func_acceptable): Don't consider the status of *-tests modules here.
6187         (func_modules_transitive_closure): Consider it here, before including a
6188         test module.
6189         (func_import, func_create_testdir): Set inc_all_direct_tests,
6190         inc_all_indirect_tests.
6191         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
6192         --create-testdir and --create-megatestdir.
6193
6194 2010-04-25  Bruno Haible  <bruno@clisp.org>
6195
6196         gnulib-tool: Add --without-*-tests options.
6197         * gnulib-tool (func_usage): Document the --without-*-tests options.
6198         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
6199         excl_unportable_tests): New variables.
6200         Fail if they are specified with --import or --update.
6201         (func_acceptable): Respect the excl_*_tests variables.
6202         (func_import): Set the excl_*_tests variables to empty.
6203
6204 2010-04-25  Simon Josefsson  <simon@josefsson.org>
6205             Bruno Haible  <bruno@clisp.org>
6206
6207         Work around a MacOS X 10.4 bug with openpty.
6208         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
6209         * tests/test-openpty.c (main): Close the master side explicitly.
6210
6211 2010-04-25  Bruno Haible  <bruno@clisp.org>
6212
6213         strnlen: Fix a C++ test error on MacOS X and Solaris.
6214         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
6215         the function is not declared.
6216         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
6217         Simon Josefsson.
6218
6219 2010-04-24  Bruno Haible  <bruno@clisp.org>
6220
6221         Avoid a gcc warning.
6222         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
6223         of correct type for %08lx directive.
6224         Reported by Eric Blake.
6225
6226 2010-04-24  Bruno Haible  <bruno@clisp.org>
6227
6228         vasnprintf: Correct errno value in case of out-of-memory.
6229         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
6230         or sprintf. Use the errno value from SNPRINTF or sprintf.
6231         Reported by Ian Beckwith <ianb@erislabs.net>.
6232
6233 2010-04-24  Bruno Haible  <bruno@clisp.org>
6234
6235         ansi-c++-opt: Find correct compiler when cross-compiling.
6236         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
6237         AC_CHECK_PROGS.
6238         Reported by Simon Josefsson.
6239
6240 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
6241
6242         vc-list-files: Add support for subversion
6243         * build-aux/vc-list-files: Use "svn list" to generate the list of
6244         files controlled by subversion.
6245
6246 2010-04-23  Jim Meyering  <meyering@redhat.com>
6247
6248         vc-list-files tests: convert to use init.sh
6249         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
6250         path_prepend_.
6251         Use Exit, not exit.
6252         Use skip_ rather than open coding it.
6253         Remove trap set-up and compare definitions.
6254         * tests/test-vc-list-files-git.sh: Likewise.
6255         * modules/vc-list-files-tests (Files): Add tests/init.sh.
6256
6257 2010-04-22  Simon Josefsson  <simon@josefsson.org>
6258
6259         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
6260         backup files.
6261
6262 2010-04-21  Simon Josefsson  <simon@josefsson.org>
6263
6264         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
6265
6266 2010-04-20  Eric Blake  <eblake@redhat.com>
6267
6268         tests: be robust to ignored SIGPIPE
6269         * tests/test-select-in.sh: Consume all output.
6270         * tests/test-lseek.sh: Check correct exit status, while avoiding
6271         EPIPE.
6272
6273 2010-04-20  Simon Josefsson  <simon@josefsson.org>
6274             Bruno Haible  <bruno@clisp.org>
6275
6276         visibility: Don't use -fvisibility if it leads to a warning.
6277         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
6278         yes, don't pretend that visibility works if it leads to a warning.
6279         Reported by Mike Gran <spk121@yahoo.com>.
6280
6281 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
6282
6283         * build-aux/bootstrap: Use "git -h" for testing for supported options
6284         instead of "git --help".  The short-form option only shows a summary,
6285         and doesn't layout the full man page.  Grep for the full option name
6286         in the summary, too.
6287
6288 2010-04-19  Bruno Haible  <bruno@clisp.org>
6289
6290         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
6291         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
6292         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
6293         mention of RELOCATABLE_STRIP.
6294         Reported by Sylvain Beucler <beuc@beuc.net>.
6295
6296 2010-04-19  Bruno Haible  <bruno@clisp.org>
6297
6298         * lib/diffseq.h: Fix typo in comment.
6299         Reported by Eric Blake.
6300
6301 2010-04-19  Bruno Haible  <bruno@clisp.org>
6302
6303         ioctl: Move autoconf macro to a .m4 file.
6304         * m4/ioctl.m4: New file, extracted from modules/ioctl.
6305         * modules/ioctl (Files): Add it.
6306         (configure.ac): Simply invoke gl_FUNC_IOCTL.
6307         Reported by Ian Beckwith <ianb@erislabs.net>.
6308
6309 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
6310             Bruno Haible  <bruno@clisp.org>
6311
6312         diffseq: Accommodate use-case with abstract arrays.
6313         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
6314         is not defined.
6315         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
6316         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
6317
6318 2010-04-18  Bruno Haible  <bruno@clisp.org>
6319
6320         * doc/posix-headers/stdbool.texi: More precise wording.
6321
6322 2010-04-17  Jim Meyering  <meyering@redhat.com>
6323
6324         maint.mk: use gnu-style indentation in an embedded perl script
6325         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
6326         Rename variable: s/two/last_two_bytes/
6327
6328 2010-04-16  Eric Blake  <eblake@redhat.com>
6329
6330         test-stdbool: skip test that fails with Solaris CC
6331         * tests/test-stdbool.c (f): Skip test that causes compilation
6332         error under buggy C++ compiler.
6333         * lib/stdbool.in.h: Document the limitation.
6334         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
6335
6336         setenv: allow compilation with C++
6337         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
6338         register keyword.
6339
6340         stdint: allow test to pass with C++
6341         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
6342
6343         getopt: allow compilation with C++
6344         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
6345         struct.
6346         * lib/getopt.c (_getopt_internal_r): Use correct type.
6347         Reported by Dagobert Michelson, via Joel E. Denny.
6348
6349 2010-04-16  Bruno Haible  <bruno@clisp.org>
6350
6351         Override netdb.h always.
6352         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
6353         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
6354         Reported by Ludovic Courtès <ludo@gnu.org>.
6355
6356 2010-04-15  Bruno Haible  <bruno@clisp.org>
6357
6358         openpty: Fix mistake from 2010-03-21.
6359         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
6360         Reported by Simon Josefsson.
6361
6362 2010-04-15  Eric Blake  <eblake@redhat.com>
6363
6364         test-forkpty: fix expected signature
6365         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
6366         Reported by Simon Josefsson.
6367
6368 2010-04-15  Jim Meyering  <meyering@redhat.com>
6369
6370         maint.mk: texinfo_suffix_re_: correct the default regexp
6371         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
6372
6373         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
6374         make it configurable via texinfo_suffix_re_.
6375
6376 2010-04-14  Eric Blake  <eblake@redhat.com>
6377
6378         strtok_r: relax license to LGPLv2+
6379         * modules/strtok_r (License): Relax license.
6380         Reported by Matthias Bolte.
6381
6382 2010-04-14  Simon Josefsson  <simon@josefsson.org>
6383
6384         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
6385         version 1.4.4 by default instead of requiring the libgcrypt
6386         version used during build.  This makes it possible to use the
6387         application with older but still binary compatible libgcrypt
6388         versions.
6389
6390 2010-04-13  Eric Blake  <eblake@redhat.com>
6391
6392         getopt-gnu: match recent glibc fixes and posix ruling
6393         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
6394         '+' handling, when requesting extensions.
6395         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
6396         'W;' handling.
6397         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
6398         * doc/posix-functions/getopt.texi (getopt): Document this.
6399         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6400         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6401         Likewise.
6402
6403         getopt: merge bug fixes from glibc
6404         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
6405         diagnostics.  Honor '+:' correctly.  Reject ';'.
6406
6407         getopt-posix: detect MacOS bug
6408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
6409         optind when missing a required argument.
6410         * doc/posix-functions/getopt.texi (getopt): Document the bug.
6411         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6412         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6413         Likewise.
6414
6415         getopt-posix: avoid spurious failure on Solaris
6416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
6417         an indicator that setting optind=1 is sufficient for reset.
6418
6419         getopt-posix: avoid spurious failure on FreeBSD
6420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
6421         in POSIX mode, since the m4 test uses it.
6422
6423         gnulib-tool: silence warning on BSD sh
6424         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
6425
6426 2010-04-13  Jim Meyering  <meyering@redhat.com>
6427
6428         doc: users.txt: GNU patch now uses gnulib
6429         * users.txt: Add patch.
6430
6431 2010-04-12  Jim Meyering  <meyering@redhat.com>
6432
6433         maint.mk: generate more concise timing data for syntax-check rules
6434         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
6435         " done" from each line that reports a syntax-check test duration.
6436
6437 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
6438
6439         git-version-gen: use "git update-index..." rather than "git status"
6440         * build-aux/git-version-gen: Use git update-index --refresh, not
6441         "git status".  With some versions of git, "git status" would fail
6442         to update the index and result in an unwarranted "-dirty" suffix.
6443
6444 2010-04-11  Jim Meyering  <meyering@redhat.com>
6445
6446         openat: correct formatting (no semantic change)
6447         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
6448         Suggested by Bruno Haible.
6449
6450 2010-04-11  Bruno Haible  <bruno@clisp.org>
6451
6452         Stricter declaration checking in testdirs.
6453         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6454         If for_tests is true, augment AM_CPPFLAGS to define
6455         GNULIB_STRICT_CHECKING.
6456         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
6457         GNULIB_STRICT_CHECKING is defined, verify that the function is
6458         declared.
6459
6460 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
6461             Bruno Haible  <bruno@clisp.org>
6462
6463         libunistring: Improve configure output.
6464         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
6465         Don't say "consider installing GNU libunistring" when checking again
6466         with libiconv.
6467
6468 2010-04-11  Bruno Haible  <bruno@clisp.org>
6469
6470         libunistring: Correct value of $LTLIBUNISTRING.
6471         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
6472         correct the value of $LTLIBUNISTRING.
6473
6474 2010-04-11  Bruno Haible  <bruno@clisp.org>
6475
6476         havelib: Add static libraries to LIBS in the right order.
6477         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
6478         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
6479
6480 2010-04-11  Bruno Haible  <bruno@clisp.org>
6481
6482         libunistring: Detect libunistring also when it depends on libiconv.
6483         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
6484         the second AC_LIB_HAVE_LINKFLAGS invocation.
6485
6486 2010-04-11  James Youngman  <jay@gnu.org>
6487
6488         close-stream: declare local scalars to be "const"
6489         * lib/close-stream.c (close_stream): Make boolean variables const
6490         to document the fact that we set but do not change them.
6491
6492 2010-04-11  Bruno Haible  <bruno@clisp.org>
6493
6494         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
6495
6496 2010-04-11  Jim Meyering  <meyering@redhat.com>
6497
6498         maint.mk: don't include dist-check.mk
6499         * top/maint.mk: Remove bogus include directive.
6500
6501         maint.mk: improve empty-line-at-EOF check
6502         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
6503         solution, rather than tail+Perl-based one.  The latter would read
6504         a few kilobytes from the end of each file, and did not handle empty
6505         files properly.
6506
6507         maint.mk: print the elapsed time for each syntax-check rule
6508         * top/maint.mk (sc_m_rules_): Save start time in a file.
6509         (sc_z_rules_): New rules: remove temp file and print elapsed time.
6510         (local-check): Interpose the .z rules
6511
6512 2010-04-11  Jim Meyering  <meyering@redhat.com>
6513
6514         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
6515         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
6516         empty file with one that ends in an empty line.
6517
6518 2010-04-10  Bruno Haible  <bruno@clisp.org>
6519
6520         mkdir: Make it work on mingw64.
6521         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
6522         * lib/mkdir.c: Update comment.
6523         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
6524
6525 2010-04-10  Bruno Haible  <bruno@clisp.org>
6526
6527         Don't override improved macro from newer autoconf.
6528         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
6529         autoconf >= 2.62.
6530         Reported by Joel E. Denny <jdenny@clemson.edu>.
6531
6532 2010-04-10  Jim Meyering  <meyering@redhat.com>
6533
6534         maint.mk: new syntax-check rule: prohibit empty lines at end of file
6535         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
6536
6537         maint.mk: correct a diagnostic
6538         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
6539         in diagnostic; now use $prohibit.
6540
6541 2010-04-10  Bruno Haible  <address@hidden>
6542
6543         fchownat: Fix a C++ test error on Solaris 8.
6544         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
6545         the function does not exist.
6546
6547 2010-04-10  Bruno Haible  <bruno@clisp.org>
6548
6549         vasnprintf: Add more tests.
6550         * tests/test-vasnprintf-posix.c: Include <errno.h>.
6551         (test_function): Test converting an invalid wide string.
6552
6553         vasnprintf: Correct handling of unconvertible wide string arguments.
6554         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
6555         VASNPRINTF.
6556         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
6557         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
6558         smaller than the expected maximum need for the directive. Set errno to
6559         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
6560         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
6561         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
6562         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
6563         * modules/vasnprintf (Files): Add m4/printf.m4.
6564         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6565
6566 2010-04-10  Bruno Haible  <bruno@clisp.org>
6567
6568         vasnprintf: Fix crash in %ls directive.
6569         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
6570         string is passed as argument to %ls, with no precision and no width.
6571         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6572
6573 2010-04-10  Bruno Haible  <bruno@clisp.org>
6574
6575         vasnprintf: Fix multiple test failures on mingw.
6576         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
6577         _snprintf, or snwprintf, not _snwprintf.
6578
6579 2010-04-10  Bruno Haible  <bruno@clisp.org>
6580
6581         write: Fix a C++ test error on mingw.
6582         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
6583
6584 2010-04-10  Bruno Haible  <bruno@clisp.org>
6585
6586         vasnprintf test: Reduce code duplication.
6587         * tests/test-vasnprintf.c (test_function): New function, extracted from
6588         test_vasnprintf.
6589         (test_vasnprintf, test_asnprintf): Invoke it.
6590
6591 2010-04-10  Bruno Haible  <bruno@clisp.org>
6592
6593         strnlen: Fix warning in C++ mode on MacOS X.
6594         * lib/string.in.h (strnlen): Use the modern idiom.
6595         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
6596         defining strnlen as a macro already in <config.h>.
6597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6598         REPLACE_STRNLEN.
6599         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
6600         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6601
6602 2010-04-08  James Youngman  <jay@gnu.org>
6603
6604         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
6605         the example.
6606
6607 2010-04-09  Jim Meyering  <meyering@redhat.com>
6608
6609         maint.mk: print better diagnostic when there is no $(_hv_file)
6610         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
6611         announce that when $(_hv_file) (aka help-version) does not exist.
6612
6613         init.sh: run tr in the "C" locale to avoid multibyte interpretation
6614         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
6615         not try to interpret its random input bytes.  Jarno Rajahalme reported
6616         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
6617         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
6618         (mktempd_): Likewise, just in case.
6619
6620         ftruncate: add two years to projected module removal date: 2012
6621         * m4/ftruncate.m4: Adjust comments.
6622
6623         ftruncate: mark module as obsolete; even MinGW provides it, now
6624         * modules/ftruncate (Status): Obsolete.
6625         (Notice): Say that.
6626         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
6627         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
6628
6629 2010-04-08  Bruno Haible  <bruno@clisp.org>
6630
6631         Fix side effects from tests-related modules.
6632         * modules/dprintf-posix (Comment): New section.
6633         * modules/fprintf-posix (Comment): Likewise.
6634         * modules/obstack-printf-posix (Comment): Likewise.
6635         * modules/printf-posix (Comment): Likewise.
6636         * modules/snprintf-posix (Comment): Likewise.
6637         * modules/sprintf-posix (Comment): Likewise.
6638         * modules/vasnprintf-posix (Comment): Likewise.
6639         * modules/vasprintf-posix (Comment): Likewise.
6640         * modules/vdprintf-posix (Comment): Likewise.
6641         * modules/vfprintf-posix (Comment): Likewise.
6642         * modules/vprintf-posix (Comment): Likewise.
6643         * modules/vsnprintf-posix (Comment): Likewise.
6644         * modules/vsprintf-posix (Comment): Likewise.
6645         * modules/xprintf-posix (Comment): Likewise.
6646         * modules/xvasprintf-posix (Comment): Likewise.
6647         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
6648         * modules/floorf-tests (Depends-on): Likewise.
6649         * modules/round-tests (Depends-on): Likewise.
6650         * modules/roundf-tests (Depends-on): Likewise.
6651         * modules/trunc-tests (Depends-on): Likewise.
6652         * modules/truncf-tests (Depends-on): Likewise.
6653         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
6654         'fprintf-posix' module is not present.
6655         * tests/test-floorf2.c (check): Likewise.
6656         * tests/test-trunc2.c (check): Likewise.
6657         * tests/test-truncf2.c (check): Likewise.
6658         * tests/test-round2.c (equal): Likewise.
6659         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6660
6661 2010-04-07  Karl Berry  <karl@gnu.org>
6662
6663         * config/srclist.txt,
6664         * config/srclistvars.sh,
6665         * config/srclist-update: doc fixes.
6666
6667 2010-04-07  Jim Meyering  <meyering@redhat.com>
6668
6669         maint.mk: add a PATH crosschecking syntax-check rule
6670         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
6671         Useful if you use a test like the one in help-version (coreutils,
6672         diffutils, grep, gzip) that ensures $(VERSION) matches what is
6673         printed by prog --version.
6674
6675 2010-04-06  Bruno Haible  <bruno@clisp.org>
6676
6677         Fix link error on mingw.
6678         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
6679         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
6680
6681 2010-04-06  Bruno Haible  <bruno@clisp.org>
6682
6683         Assume rmdir exists.
6684         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
6685
6686 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
6687
6688         doc: update users.txt
6689         * users.txt: Add gcal.
6690
6691 2010-04-06  Jim Meyering  <meyering@redhat.com>
6692
6693         init.sh: simply unset TMPDIR rather than risking env -i
6694         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
6695         although it probably works fine on all Unix-based systems, some
6696         systems (Cygwin?) cannot tolerate a totally cleared environment.
6697         Suggestion from Eric Blake.
6698
6699 2010-04-06  Jim Meyering  <meyering@redhat.com>
6700
6701         init.sh: portability fix: use env's POSIX-specified -i option not -u
6702         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
6703         than unportable env -u.  Solaris 5.11's env lacks support for -u.
6704
6705 2010-04-05  Bruno Haible  <bruno@clisp.org>
6706
6707         btowc: Work around Cygwin 1.7.2 bug.
6708         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
6709         does not map NUL to 0.
6710         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
6711
6712 2010-04-05  Bruno Haible  <bruno@clisp.org>
6713
6714         Make the multithread modules work on Cygwin 1.7.2.
6715         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
6716         imported symbols can be declared weak, so that it returns "no" on
6717         Cygwin 1.7.2.
6718
6719 2010-04-05  Bruno Haible  <bruno@clisp.org>
6720
6721         Use the module 'strncat'.
6722         * modules/unistr/u8-strncat (Depends-on): Add strncat.
6723
6724         Tests for module 'strncat'.
6725         * modules/strncat-tests: New file.
6726         * tests/test-strncat.c: New file.
6727
6728         New module 'strncat'.
6729         * lib/string.in.h (strncat): New declaration.
6730         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
6731         * m4/strncat.m4: New file, based on m4/memchr.m4.
6732         * modules/strncat: New file.
6733         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
6734         is declared.
6735         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
6736         REPLACE_STRNCAT.
6737         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
6738         REPLACE_STRNCAT.
6739         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
6740         module.
6741         * tests/test-string-c++.cc: Check signature of strncat.
6742
6743 2010-04-05  Jim Meyering  <meyering@redhat.com>
6744
6745         xstrtoumax-tests: convert to use init.sh
6746         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
6747         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6748         Use Exit, not exit.
6749         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6750
6751         xstrtoimax-tests: convert to use init.sh
6752         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
6753         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6754         Use Exit, not exit.
6755         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6756
6757 2010-04-05  Bruno Haible  <bruno@clisp.org>
6758
6759         sys_socket: Avoid #define replacements in C++ mode.
6760         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
6761         warning to the function if possible, rather than #defining the symbol
6762         to a dysfunctional alias.
6763
6764 2010-04-05  Bruno Haible  <bruno@clisp.org>
6765
6766         fseeko: Fix C++ test error on mingw.
6767         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
6768         gl_FUNC_FSEEKO.
6769         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
6770         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
6771         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
6772         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
6773
6774 2010-04-05  Bruno Haible  <bruno@clisp.org>
6775
6776         duplocale: Improve test output.
6777         * tests/test-duplocale.c (main): Print reason for skipped test.
6778
6779 2010-04-05  Bruno Haible  <bruno@clisp.org>
6780
6781         Assume rmdir exists.
6782         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
6783         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
6784
6785 2010-04-05  Bruno Haible  <bruno@clisp.org>
6786
6787         Fix link error on Solaris 8 with cc.
6788         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
6789
6790 2010-04-05  Bruno Haible  <bruno@clisp.org>
6791
6792         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6793         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
6794
6795 2010-04-05  Bruno Haible  <bruno@clisp.org>
6796
6797         vasprintf: Update documentation.
6798         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
6799
6800 2010-04-05  Bruno Haible  <bruno@clisp.org>
6801
6802         ptsname: Improve test.
6803         * tests/test-ptsname.c (main): Also try the various master names of BSD
6804         systems.
6805
6806 2010-04-05  Bruno Haible  <bruno@clisp.org>
6807
6808         memchr: Avoid a possible C++ test error.
6809         * lib/string.in.h (memchr): Provide declaration if function is missing.
6810         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
6811         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
6812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
6813         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
6814
6815 2010-04-05  Bruno Haible  <bruno@clisp.org>
6816
6817         strtok_r: Improve idiom.
6818         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
6819         AC_LIBOBJ is used.
6820
6821 2010-04-05  Bruno Haible  <bruno@clisp.org>
6822
6823         strdup: Improve idiom.
6824         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
6825         AC_LIBOBJ is used.
6826         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
6827         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
6828         when AC_LIBOBJ is used.
6829
6830 2010-04-05  Bruno Haible  <bruno@clisp.org>
6831
6832         mbsinit, mbrtowc, wcrtomb: Improve idioms.
6833         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
6834         don't set REPLACE_MBSINIT to 1.
6835         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
6836         don't set REPLACE_MBRTOWC to 1.
6837         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
6838         exist, don't set REPLACE_MBSRTOWCS to 1.
6839         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
6840         exist, don't set REPLACE_MBSNRTOWCS to 1.
6841         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
6842         don't set REPLACE_WCRTOMB to 1.
6843         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
6844         exist, don't set REPLACE_WCSRTOMBS to 1.
6845         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
6846         exist, don't set REPLACE_WCSNRTOMBS to 1.
6847
6848 2010-04-05  Bruno Haible  <bruno@clisp.org>
6849
6850         ldexpl: Improve idiom.
6851         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
6852         make sure to set HAVE_DECL_LDEXPL to 0.
6853
6854 2010-04-05  Jim Meyering  <meyering@redhat.com>
6855
6856         xstrtol-tests: convert to use init.sh
6857         * modules/xstrtol-tests (Files): Add tests/init.sh.
6858         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6859         Use Exit, not exit.
6860         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6861
6862         atexit-tests: convert to use init.sh
6863         * modules/atexit-tests (Files): Add tests/init.sh.
6864         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6865         Use Exit, not exit.
6866         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6867
6868         init.sh: fix typo
6869         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
6870
6871         init.sh: make it easier for a test script to write to the tty, ...
6872         when using automake's parallel-tests mode.
6873         * tests/init.sh (stderr_fileno_): Define overridable variable.
6874         (warn_): New function, to use it.
6875         (fail_, skip_, framework_failure_): Use warn_.
6876
6877 2010-04-04  Bruno Haible  <bruno@clisp.org>
6878
6879         btowc: Avoid warning.
6880         * lib/btowc.c: Include <stdlib.h>.
6881         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
6882
6883 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6884             Bruno Haible  <bruno@clisp.org>
6885
6886         wchar: Port to NetBSD 1.5.
6887         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
6888         * lib/wctype.in.h (WEOF): Likewise.
6889
6890 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6891             Bruno Haible  <bruno@clisp.org>
6892
6893         Port extended stdio to NetBSD 1.5.
6894         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
6895         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
6896         older.
6897
6898 2010-04-04  Bruno Haible  <bruno@clisp.org>
6899
6900         string: Remove unused substitution.
6901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6902         HAVE_DECL_STRERROR.
6903         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
6904
6905 2010-04-04  Bruno Haible  <bruno@clisp.org>
6906
6907         strtod: Avoid a possible C++ test error.
6908         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
6909         set REPLACE_STRTOD.
6910
6911 2010-04-04  Bruno Haible  <bruno@clisp.org>
6912
6913         strerror: Update documentation.
6914         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
6915
6916 2010-04-04  Bruno Haible  <bruno@clisp.org>
6917
6918         stdio: Fix some C++ test errors on Solaris 8 with GCC.
6919         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
6920         _GL_CXXALIAS_SYS_CAST.
6921
6922 2010-04-04  Bruno Haible  <bruno@clisp.org>
6923
6924         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6925         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
6926         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
6927         REPLACE_FREXPL to 1.
6928         * doc/posix-functions/frexpl.texi: Update documentation.
6929
6930 2010-04-04  Bruno Haible  <bruno@clisp.org>
6931
6932         math: Fix some C++ test errors on Solaris 8 and Cygwin.
6933         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
6934
6935 2010-04-04  Bruno Haible  <bruno@clisp.org>
6936
6937         Implement nanosleep for native Windows.
6938         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
6939
6940 2010-04-04  Bruno Haible  <bruno@clisp.org>
6941
6942         math: Fix some C++ test errors on Solaris 8.
6943         * lib/math.in.h (truncf, trunc): Use simpler idiom.
6944
6945 2010-04-04  Bruno Haible  <bruno@clisp.org>
6946
6947         math: Fix some C++ test errors on Cygwin.
6948         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
6949         truncl): Provide declaration if the system does not have it.
6950         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
6951         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
6952         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
6953         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
6954         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
6955         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
6956         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
6957         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
6958         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
6959         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
6960         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
6961         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
6962         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
6963         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
6964         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
6965         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
6966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
6967         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6968         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6969         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
6970         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6971         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6972
6973 2010-04-04  Bruno Haible  <bruno@clisp.org>
6974
6975         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
6976         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6977         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6978         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6979         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6980         * m4/isinf.m4 (gl_ISINF): Likewise.
6981         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6982
6983 2010-04-04  Bruno Haible  <bruno@clisp.org>
6984
6985         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
6986         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6987
6988 2010-04-04  Bruno Haible  <bruno@clisp.org>
6989
6990         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
6991         * modules/tmpfile (configure.ac): Update.
6992
6993         tmpfile: Fix C++ test error on mingw.
6994         * lib/stdio.in.h (tmpfile): New declaration.
6995         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
6996         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
6997         * modules/tmpfile (Depends-on): Add stdio.
6998         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6999         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
7000         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
7001         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
7002         REPLACE_TMPFILE.
7003         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
7004
7005 2010-04-04  Bruno Haible  <bruno@clisp.org>
7006
7007         ioctl: Fix C++ test error on mingw.
7008         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
7009         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
7010         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
7011
7012 2010-04-03  Bruno Haible  <bruno@clisp.org>
7013
7014         wcwidth: Fix C++ test error on mingw.
7015         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
7016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
7017         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
7018
7019 2010-04-03  Bruno Haible  <bruno@clisp.org>
7020
7021         nanosleep: Fix C++ test error on mingw.
7022         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
7023         * lib/time.in.h (nanosleep): Use modern idiom.
7024         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
7025         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
7026         REPLACE_NANOSLEEP to 1.
7027         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
7028         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
7029
7030 2010-04-03  Bruno Haible  <bruno@clisp.org>
7031
7032         strptime: Fix C++ test error on mingw.
7033         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
7034         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
7035         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
7036         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
7037         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
7038         not REPLACE_STRPTIME.
7039         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
7040         REPLACE_STRPTIME.
7041
7042 2010-04-03  Bruno Haible  <bruno@clisp.org>
7043
7044         timegm: Fix C++ test error on mingw.
7045         * lib/time.in.h (timegm): Use modern idiom.
7046         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
7047         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
7048         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
7049         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
7050
7051 2010-04-03  Bruno Haible  <bruno@clisp.org>
7052
7053         timegm: Assume declaration if function exists.
7054         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
7055         if it exists. Don't clobber ac_cv_func_timegm.
7056
7057 2010-04-03  Bruno Haible  <bruno@clisp.org>
7058
7059         time_r: Fix C++ test error on mingw.
7060         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
7061         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
7062         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
7063         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
7064         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
7065
7066 2010-04-03  Bruno Haible  <bruno@clisp.org>
7067
7068         time_r: Minor updates.
7069         * modules/time_r (Description): Mention the provided functions.
7070         * lib/time_r.c: Don't include <string.h>.
7071         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
7072         * doc/posix-functions/localtime_r.texi: Likewise.
7073
7074 2010-04-03  Bruno Haible  <bruno@clisp.org>
7075
7076         time: Fix regression introduced on 2010-03-08.
7077         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
7078         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
7079
7080 2010-04-03  Jim Meyering  <meyering@redhat.com>
7081
7082         maint.mk: don't silently disable project-specific syntax-check rules
7083         * top/maint.mk (_prohibit_regexp): Define, to help people realize
7084         that they need to convert their project-specific syntax-check rules
7085         to use the new _sc_search_regexp.
7086
7087 2010-04-03  Bruno Haible  <bruno@clisp.org>
7088
7089         fchdir: Fix regression introduced on 2010-03-08.
7090         * lib/unistd.in.h (fchdir): Fix declaration.
7091         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
7092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
7093         REPLACE_FCHDIR.
7094         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
7095         REPLACE_FCHDIR.
7096
7097 2010-04-03  Bruno Haible  <bruno@clisp.org>
7098
7099         getpagesize: Fix C++ test error on mingw.
7100         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
7101         system does not declare the function.
7102         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
7103         declared.
7104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7105         HAVE_DECL_GETPAGESIZE.
7106         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
7107
7108 2010-04-03  Bruno Haible  <bruno@clisp.org>
7109
7110         stdio: Make C++ tests work on mingw.
7111         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
7112         does not declare the function.
7113
7114 2010-04-03  Bruno Haible  <bruno@clisp.org>
7115
7116         ftello: Fix C++ test error on mingw.
7117         * lib/stdio.in.h (ftello): Use modern idiom.
7118         * lib/ftello.c (ftello): Renamed from rpl_ftello.
7119         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
7120         is missing and that it needs to be replaced.
7121         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
7122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
7123         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
7124
7125 2010-04-03  Bruno Haible  <bruno@clisp.org>
7126
7127         fseeko: Fix C++ test error on mingw.
7128         * lib/stdio.in.h (fseeko): Use modern idiom.
7129         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
7130         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
7131         is missing and that it needs to be replaced.
7132         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
7133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
7134         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
7135
7136 2010-04-03  Bruno Haible  <bruno@clisp.org>
7137
7138         mkstemp: Fix C++ test error on mingw.
7139         * lib/stdlib.in.h (mkstemp): Use modern idiom.
7140         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
7141         function is missing and that it needs to be replaced.
7142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
7143         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
7144
7145 2010-04-03  Bruno Haible  <bruno@clisp.org>
7146
7147         stpncpy: Fix C++ test error on mingw.
7148         * lib/string.in.h (stpncpy): Use modern idiom.
7149         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
7150         function is missing and that it needs to be replaced.
7151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7152         REPLACE_STPNCPY.
7153         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
7154
7155 2010-04-03  Bruno Haible  <bruno@clisp.org>
7156
7157         sys_stat: Fix C++ test error on mingw.
7158         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
7159         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
7160
7161 2010-04-03  Bruno Haible  <bruno@clisp.org>
7162
7163         pty: Update doc.
7164         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
7165
7166 2010-04-03  Bruno Haible  <bruno@clisp.org>
7167
7168         unistd: Fix C++ test error on mingw.
7169         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
7170
7171 2010-04-03  Bruno Haible  <bruno@clisp.org>
7172
7173         Update doc regarding mingw.
7174         * doc/glibc-functions/openpty.texi: Update regarding mingw.
7175         * doc/glibc-functions/login_tty.texi: Likewise.
7176         * doc/glibc-functions/forkpty.texi: Likewise.
7177
7178 2010-04-03  Bruno Haible  <bruno@clisp.org>
7179
7180         stdlib: Avoid compilation failure of c-strtold on mingw.
7181         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
7182
7183 2010-04-03  Bruno Haible  <bruno@clisp.org>
7184
7185         locale: Make C++ tests work on Cygwin and mingw.
7186         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
7187         cannot provide the function.
7188         Reported by Simon Josefsson.
7189
7190 2010-04-03  Bruno Haible  <bruno@clisp.org>
7191
7192         localename: Port to MacOS X 10.6.
7193         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
7194         memory layout of the locales in MacOS X 10.6 as well.
7195         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
7196
7197 2010-04-02  Bruno Haible  <bruno@clisp.org>
7198
7199         gnulib-tool: Ensure that long-running tests are executed last.
7200         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
7201         running tests after the one for the other tests.
7202
7203 2010-04-02  Bruno Haible  <bruno@clisp.org>
7204
7205         gnulib-tool: Ensure the tests in the main directory are executed first.
7206         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
7207         start with the current directory.
7208
7209 2010-04-02  Bruno Haible  <bruno@clisp.org>
7210
7211         Tests for module 'havelib', moved here from GNU gettext.
7212         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
7213         modifications.
7214         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
7215         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
7216         with modifications.
7217         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
7218         modifications.
7219         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
7220         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
7221         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
7222         with modifications.
7223         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
7224         with modifications.
7225         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
7226         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
7227         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
7228         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
7229         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
7230         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
7231         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
7232         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
7233         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
7234         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
7235         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
7236         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
7237         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
7238         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
7239         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
7240         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
7241         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
7242         with modifications.
7243         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
7244         with modifications.
7245         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
7246         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
7247         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
7248         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
7249         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
7250         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
7251         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
7252         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
7253         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
7254         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
7255         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
7256         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
7257         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
7258         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
7259         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
7260         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
7261         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
7262         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
7263         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
7264         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
7265         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
7266         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
7267         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
7268         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
7269         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
7270         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
7271         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
7272         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
7273         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
7274         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
7275         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
7276         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
7277         * tests/havelib/rpathx/rpathx.c: New file, from
7278         gettext/autoconf-lib-link.
7279         * tests/havelib/rpathx/Makefile.am: New file, from
7280         gettext/autoconf-lib-link.
7281         * tests/havelib/rpathx/configure.ac: New file, from
7282         gettext/autoconf-lib-link with modifications.
7283         * tests/havelib/rpathy/rpathy.c: New file, from
7284         gettext/autoconf-lib-link.
7285         * tests/havelib/rpathy/Makefile.am: New file, from
7286         gettext/autoconf-lib-link.
7287         * tests/havelib/rpathy/configure.ac: New file, from
7288         gettext/autoconf-lib-link with modifications.
7289         * tests/havelib/rpathz/rpathz.c: New file, from
7290         gettext/autoconf-lib-link.
7291         * tests/havelib/rpathz/Makefile.am: New file, from
7292         gettext/autoconf-lib-link.
7293         * tests/havelib/rpathz/configure.ac: New file, from
7294         gettext/autoconf-lib-link with modifications.
7295         * tests/havelib/rpathlx/usex.c: New file, from
7296         gettext/autoconf-lib-link.
7297         * tests/havelib/rpathlx/Makefile.am: New file, from
7298         gettext/autoconf-lib-link.
7299         * tests/havelib/rpathlx/configure.ac: New file, from
7300         gettext/autoconf-lib-link with modifications.
7301         * tests/havelib/rpathly/usey.c: New file, from
7302         gettext/autoconf-lib-link.
7303         * tests/havelib/rpathly/Makefile.am: New file, from
7304         gettext/autoconf-lib-link.
7305         * tests/havelib/rpathly/configure.ac: New file, from
7306         gettext/autoconf-lib-link with modifications.
7307         * tests/havelib/rpathlz/usez.c: New file, from
7308         gettext/autoconf-lib-link.
7309         * tests/havelib/rpathlz/Makefile.am: New file, from
7310         gettext/autoconf-lib-link.
7311         * tests/havelib/rpathlz/configure.ac: New file, from
7312         gettext/autoconf-lib-link with modifications.
7313         * tests/havelib/rpathlyx/usey.c: New file, from
7314         gettext/autoconf-lib-link.
7315         * tests/havelib/rpathlyx/Makefile.am: New file, from
7316         gettext/autoconf-lib-link.
7317         * tests/havelib/rpathlyx/configure.ac: New file, from
7318         gettext/autoconf-lib-link with modifications.
7319         * tests/havelib/rpathlzyx/usez.c: New file, from
7320         gettext/autoconf-lib-link.
7321         * tests/havelib/rpathlzyx/Makefile.am: New file, from
7322         gettext/autoconf-lib-link.
7323         * tests/havelib/rpathlzyx/configure.ac: New file, from
7324         gettext/autoconf-lib-link with modifications.
7325         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
7326         with modifications.
7327
7328 2010-04-02  Bruno Haible  <bruno@clisp.org>
7329
7330         gnulib-tool: Create distributed built sources also for the tests.
7331         * gnulib-tool (func_create_testdir): Also generate distributed built
7332         sources in the tests directory.
7333
7334 2010-04-02  Bruno Haible  <bruno@clisp.org>
7335
7336         gnulib-tool: Obey user's environment variables.
7337         * gnulib-tool (func_create_testdir): When creating built sources,
7338         respect the environment variables for autoconf, automake, etc. given by
7339         the user.
7340
7341 2010-04-02  Bruno Haible  <bruno@clisp.org>
7342
7343         gnulib-tool: Provide the value of --m4-base to modules.
7344         * gnulib-tool (func_import, func_create_testdir): Emit a definition
7345         of gl_m4_base.
7346
7347 2010-04-02  Eric Blake  <eblake@redhat.com>
7348
7349         maint.mk: fix some fallout
7350         * NEWS: Document the incompatible change, and its effect on cfg.mk.
7351         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
7352
7353 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7354
7355         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
7356         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
7357         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
7358         (sc_cast_of_x_alloc_return_value): Likewise.
7359         (sc_cast_of_alloca_return_value): Likewise.
7360         (sc_space_tab): Likewise.
7361         (sc_prohibit_atoi_atof): Likewise.
7362         (sc_prohibit_magic_number_exit): Likewise.
7363         (sc_error_exit_success): Likewise.
7364         (sc_file_system): Likewise.
7365         (sc_prohibit_have_config_h): Likewise.
7366         (sc_require_config_h): Likewise.
7367         (sc_prohibit_HAVE_MBRTOWC): Likewise.
7368         (sc_obsolete_symbols): Likewise.
7369         (sc_changelog): Likewise.
7370         (sc_program_name): Likewise.
7371         (sc_the_the): Likewise.
7372         (sc_trailing_blank): Likewise.
7373         (sc_two_space_separator_in_usage): Likewise.
7374         (sc_useless_cpp_parens): Likewise.
7375         (sc_GPL_version): Likewise.
7376         (sc_GFDL_version): Likewise.
7377         (sc_texinfo_acronym): Likewise.
7378         (sc_prohibit_cvs_keyword): Likewise.
7379         (sc_prohibit_stat_st_blocks): Likewise.
7380         (sc_prohibit_S_IS_definition): Likewise.
7381         (sc_redundant_const): Likewise.
7382         (sc_makefile_TAB_only_indentation): Likewise.
7383         (sc_m4_quote_check): Likewise.
7384         (sc_makefile_path_separator_check): Likewise.
7385         (sc_copyright_check): Likewise.
7386         (sc_Wundef_boolean): Likewise.
7387         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7388
7389         maint.mk: match 0 or more whitespace-before-function-call '('
7390         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
7391         that have zero or two-and-more spaces between the function name
7392         and the open parenthesis.
7393         (sc_error_message_warn_fatal): Likewise.
7394         (sc_error_message_uppercase): Likewise.
7395         (sc_error_message_period): Likewise.
7396
7397 2010-03-31  Eric Blake  <eblake@redhat.com>
7398
7399         maint.mk: check for [ as well as test
7400         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
7401         Based on a libvirt report by Matthias Bolte.
7402
7403         gnumakefile: don't squelch _version output
7404         * top/GNUmakefile (_version): Create one-shot dependency rather
7405         than using $(shell) when version must be regenerated.
7406         (_autoreconf): Run verbosely, by default.
7407
7408         sys_time: avoid compiler warnings
7409         * lib/sys_time.in.h (includes): Ensure gcc pragma is
7410         unconditional, fixing regression from 2010-03-29.
7411         Reported by Simon Josefsson.
7412
7413 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7414
7415         maint.mk: s/_header_without_use/_sc_header_without_use/
7416         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
7417         (sc_prohibit_assert_without_use): Use the new name.
7418         (sc_prohibit_close_stream_without_use): Likewise.
7419         (sc_prohibit_getopt_without_use): Likewise.
7420         (sc_prohibit_quotearg_without_use): Likewise.
7421         (sc_prohibit_quote_without_use): Likewise.
7422         (sc_prohibit_long_options_without_use): Likewise.
7423         (sc_prohibit_inttostr_without_use): Likewise.
7424         (sc_prohibit_ignore_value_without_use): Likewise.
7425         (sc_prohibit_error_without_use): Likewise.
7426         (sc_prohibit_xalloc_without_use): Likewise.
7427         (sc_prohibit_hash_without_use): Likewise.
7428         (sc_prohibit_hash_pjw_without_use): Likewise.
7429         (sc_prohibit_safe_read_without_use): Likewise.
7430         (sc_prohibit_argmatch_without_use): Likewise.
7431         (sc_prohibit_canonicalize_without_use): Likewise.
7432         (sc_prohibit_root_dev_ino_without_use): Likewise.
7433         (sc_prohibit_openat_without_use): Likewise.
7434         (sc_prohibit_c_ctype_without_use): Likewise.
7435         (sc_prohibit_signal_without_use): Likewise.
7436         (sc_prohibit_intprops_without_use): Likewise.
7437
7438 2010-03-30  Eric Blake  <eblake@redhat.com>
7439
7440         maint: improve module indicators
7441         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
7442         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
7443         columns, and avoid extra macro expansion.
7444
7445         fdopendir: work around FreeBSD bug
7446         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7447         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
7448         * modules/dirent (Makefile.am): Substitute it.
7449         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
7450         declaration.
7451         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
7452         fix.
7453         Reported by Christian Weisgerber <naddy@mips.inka.de>.
7454
7455 2010-03-29  Bruno Haible  <bruno@clisp.org>
7456
7457         Emit #pragma system_header after the inclusion guard, not before.
7458         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
7459         guard that spans the entire file, not before. This enables an
7460         optimization in GCC's preprocessor.
7461         * lib/ctype.in.h: Likewise.
7462         * lib/dirent.in.h: Likewise.
7463         * lib/errno.in.h: Likewise.
7464         * lib/float.in.h: Likewise.
7465         * lib/getopt.in.h: Likewise.
7466         * lib/iconv.in.h: Likewise.
7467         * lib/langinfo.in.h: Likewise.
7468         * lib/locale.in.h: Likewise.
7469         * lib/math.in.h: Likewise.
7470         * lib/netdb.in.h: Likewise.
7471         * lib/netinet_in.in.h: Likewise.
7472         * lib/pty.in.h: Likewise.
7473         * lib/sched.in.h: Likewise.
7474         * lib/se-selinux.in.h: Likewise.
7475         * lib/search.in.h: Likewise.
7476         * lib/spawn.in.h: Likewise.
7477         * lib/stdarg.in.h: Likewise.
7478         * lib/stdint.in.h: Likewise.
7479         * lib/string.in.h: Likewise.
7480         * lib/strings.in.h: Likewise.
7481         * lib/sys_file.in.h: Likewise.
7482         * lib/sys_ioctl.in.h: Likewise.
7483         * lib/sys_time.in.h: Likewise.
7484         * lib/sys_times.in.h: Likewise.
7485         * lib/sys_utsname.in.h: Likewise.
7486         * lib/sys_wait.in.h: Likewise.
7487         * lib/sysexits.in.h: Likewise.
7488         * lib/wctype.in.h: Likewise.
7489
7490 2010-03-28  James Youngman  <jay@gnu.org>
7491
7492         save-cwd: don't leak a file descriptor when the caller execs.
7493         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
7494         saved file descriptor.
7495         * modules/save-cwd (Depends-on): Depend on cloexec.
7496
7497 2010-03-29  Bruno Haible  <bruno@clisp.org>
7498
7499         Remove vestiges of fts-lgpl module.
7500         * lib/fts_.h: Assume GNULIB_FTS is 1.
7501         * lib/fts.c: Likewise.
7502         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7503
7504 2010-03-28  Bruno Haible  <bruno@clisp.org>
7505
7506         Fix definition of tests witness macro.
7507         * gnulib-tool (func_import): Fix definition of witness macro.
7508
7509 2010-03-28  Bruno Haible  <bruno@clisp.org>
7510
7511         Fix ioctl's protoype on glibc systems.
7512         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
7513         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
7514         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
7515         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
7516         signature. If not, arrange to replace the ioctl function.
7517         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
7518         REPLACE_IOCTL.
7519         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
7520         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
7521         Reported by Ludovic Courtès <ludo@gnu.org>.
7522
7523 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
7524
7525         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
7526         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
7527         made it so grep -r --include=GLOB* ... did not work.
7528
7529 2010-03-26  Jim Meyering  <meyering@redhat.com>
7530             Eric Blake  <eblake@redhat.com>
7531
7532         maint.mk: prohibit use of test's -o and -a operators
7533         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
7534
7535 2010-03-28  Bruno Haible  <bruno@clisp.org>
7536
7537         Remove unused GNULIB_XYZ macro definitions.
7538         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
7539         invocation.
7540
7541 2010-03-28  Bruno Haible  <bruno@clisp.org>
7542
7543         Mark privileged tests modules.
7544         * modules/idpriv-drop-tests (Status): New section.
7545         * modules/idpriv-droptemp-tests (Status): New section.
7546
7547 2010-03-28  Bruno Haible  <bruno@clisp.org>
7548
7549         Split C++ tests into separate tests modules.
7550         * modules/dirent-c++-tests: New file, extracted from
7551         modules/dirent-tests.
7552         * modules/dirent-tests: Depend on it.
7553         * modules/fcntl-h-c++-tests: New file, extracted from
7554         modules/fcntl-h-tests.
7555         * modules/fcntl-h-tests: Depend on it.
7556         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
7557         * modules/glob-tests: Depend on it.
7558         * modules/iconv-h-c++-tests: New file, extracted from
7559         modules/iconv-h-tests.
7560         * modules/iconv-h-tests: Depend on it.
7561         * modules/langinfo-c++-tests: New file, extracted from
7562         modules/langinfo-tests.
7563         * modules/langinfo-tests: Depend on it.
7564         * modules/locale-c++-tests: New file, extracted from
7565         modules/locale-tests.
7566         * modules/locale-tests: Depend on it.
7567         * modules/math-c++-tests: New file, extracted from modules/math-tests.
7568         * modules/math-tests: Depend on it.
7569         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
7570         * modules/pty-tests: Depend on it.
7571         * modules/search-c++-tests: New file, extracted from
7572         modules/search-tests.
7573         * modules/search-tests: Depend on it.
7574         * modules/signal-c++-tests: New file, extracted from
7575         modules/signal-tests.
7576         * modules/signal-tests: Depend on it.
7577         * modules/spawn-c++-tests: New file, extracted from
7578         modules/spawn-tests.
7579         * modules/spawn-tests: Depend on it.
7580         * modules/stdio-c++-tests: New file, extracted from
7581         modules/stdio-tests.
7582         * modules/stdio-tests: Depend on it.
7583         * modules/stdlib-c++-tests: New file, extracted from
7584         modules/stdlib-tests.
7585         * modules/stdlib-tests: Depend on it.
7586         * modules/string-c++-tests: New file, extracted from
7587         modules/string-tests.
7588         * modules/string-tests: Depend on it.
7589         * modules/sys_ioctl-c++-tests: New file, extracted from
7590         modules/sys_ioctl-tests.
7591         * modules/sys_ioctl-tests: Depend on it.
7592         * modules/sys_select-c++-tests: New file, extracted from
7593         modules/sys_select-tests.
7594         * modules/sys_select-tests: Depend on it.
7595         * modules/sys_socket-c++-tests: New file, extracted from
7596         modules/sys_socket-tests.
7597         * modules/sys_socket-tests: Depend on it.
7598         * modules/sys_stat-c++-tests: New file, extracted from
7599         modules/sys_stat-tests.
7600         * modules/sys_stat-tests: Depend on it.
7601         * modules/sys_time-c++-tests: New file, extracted from
7602         modules/sys_time-tests.
7603         * modules/sys_time-tests: Depend on it.
7604         * modules/time-c++-tests: New file, extracted from modules/time-tests.
7605         * modules/time-tests: Depend on it.
7606         * modules/unistd-c++-tests: New file, extracted from
7607         modules/unistd-tests.
7608         * modules/unistd-tests: Depend on it.
7609         * modules/wchar-c++-tests: New file, extracted from
7610         modules/wchar-tests.
7611         * modules/wchar-tests: Depend on it.
7612         * modules/wctype-c++-tests: New file, extracted from
7613         modules/wctype-tests.
7614         * modules/wctype-tests: Depend on it.
7615         Reported by Simon Josefsson.
7616
7617 2010-03-28  Bruno Haible  <bruno@clisp.org>
7618
7619         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
7620         * gnulib-tool (func_exists_module): New function, extracted from
7621         func_verify_module.
7622         (func_verify_module): Use it.
7623         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
7624         'foo' only if 'foo' exists.
7625         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
7626         module.
7627
7628 2010-03-28  Bruno Haible  <bruno@clisp.org>
7629
7630         gnulib-tool: Add support for special categories of tests.
7631         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
7632         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
7633         (func_usage): Document them.
7634         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
7635         inc_unportable_tests, inc_all_tests): New variables.
7636         (func_acceptable): Consider these variables.
7637         (func_modules_transitive_closure): Make it work when the 'Status' field
7638         consists of multiple words.
7639         (func_import): Store and restore the values of inc_cxx_tests,
7640         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
7641         inc_all_tests in gnulib-comp.m4.
7642         (func_create_testdir): Set inc_all_tests to true.
7643         * doc/gnulib.texi (Extra tests modules): New section.
7644         Suggested by Jim Meyering.
7645
7646 2010-03-28  Bruno Haible  <bruno@clisp.org>
7647
7648         ansi-c++-opt: Allow turning off the C++ build by default.
7649         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
7650         gl_CXX_CHOICE_DEFAULT_NO is defined.
7651         Requested by Eric Blake.
7652
7653 2010-03-28  Bruno Haible  <bruno@clisp.org>
7654
7655         unistd: Avoid #define replacements in C++ mode.
7656         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7657         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7658         setsockopt, shutdown, select): In C++, attach a warning to the function
7659         if possible, rather than #defining the symbol to a dysfunctional alias.
7660         Reported by John W. Eaton <jwe@gnu.org>.
7661
7662 2010-03-28  Bruno Haible  <bruno@clisp.org>
7663
7664         Fix link errors on mingw.
7665         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
7666         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
7667         $(LIBSOCKET).
7668         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
7669         $(LIBSOCKET).
7670
7671 2010-03-28  Bruno Haible  <bruno@clisp.org>
7672             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7673
7674         lib-ignore: Determine different options for different compilers.
7675         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
7676         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
7677         Add comments.
7678         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
7679         * NEWS: Mention the change.
7680
7681 2010-03-27  Bruno Haible  <bruno@clisp.org>
7682
7683         Remove unused GNULIB_XYZ macro definitions.
7684         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7685         * modules/fseek (configure.ac): Likewise.
7686         * modules/ioctl (configure.ac): Likewise.
7687         * modules/open (configure.ac): Likewise.
7688         * modules/stdlib-safer (configure.ac): Likewise.
7689
7690 2010-03-27  Bruno Haible  <bruno@clisp.org>
7691
7692         Add a remark about certain modules.
7693         * modules/malloc (Comment): New section.
7694         * modules/realloc (Comment): Likewise.
7695         * modules/sigpipe (Comment): Likewise.
7696
7697 2010-03-27  Bruno Haible  <bruno@clisp.org>
7698
7699         Resolve conflict between the two kinds of module indicators.
7700         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
7701         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
7702         * modules/canonicalize (configure.ac): Invoke
7703         gl_MODULE_INDICATOR_FOR_TESTS.
7704         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
7705         GNULIB_XYZ.
7706         * tests/test-dirent-c++.cc: Likewise.
7707         * tests/test-dirent-safer.c: Likewise.
7708         * tests/test-dup2.c: Likewise.
7709         * tests/test-fchdir.c: Likewise.
7710         * tests/test-fcntl-h-c++.cc: Likewise.
7711         * tests/test-getopt.c: Likewise.
7712         * tests/test-getopt.h: Likewise.
7713         * tests/test-langinfo-c++.cc: Likewise.
7714         * tests/test-locale-c++.cc: Likewise.
7715         * tests/test-math-c++.cc: Likewise.
7716         * tests/test-pty-c++.cc: Likewise.
7717         * tests/test-search-c++.cc: Likewise.
7718         * tests/test-signal-c++.cc: Likewise.
7719         * tests/test-spawn-c++.cc: Likewise.
7720         * tests/test-stdio-c++.cc: Likewise.
7721         * tests/test-stdlib-c++.cc: Likewise.
7722         * tests/test-string-c++.cc: Likewise.
7723         * tests/test-sys_ioctl-c++.cc: Likewise.
7724         * tests/test-sys_select-c++.cc: Likewise.
7725         * tests/test-sys_socket-c++.cc: Likewise.
7726         * tests/test-sys_stat-c++.cc: Likewise.
7727         * tests/test-sys_time-c++.cc: Likewise.
7728         * tests/test-time-c++.cc: Likewise.
7729         * tests/test-unistd-c++.cc: Likewise.
7730         * tests/test-wchar-c++.cc: Likewise.
7731         * tests/uninorm/test-u8-nfc.c: Likewise.
7732         * tests/uninorm/test-u8-nfd.c: Likewise.
7733         * tests/uninorm/test-u8-nfkc.c: Likewise.
7734         * tests/uninorm/test-u8-nfkd.c: Likewise.
7735         * tests/uninorm/test-u16-nfc.c: Likewise.
7736         * tests/uninorm/test-u16-nfd.c: Likewise.
7737         * tests/uninorm/test-u16-nfkc.c: Likewise.
7738         * tests/uninorm/test-u16-nfkd.c: Likewise.
7739         * tests/uninorm/test-u32-nfc.c: Likewise.
7740         * tests/uninorm/test-u32-nfc-big.c: Likewise.
7741         * tests/uninorm/test-u32-nfd.c: Likewise.
7742         * tests/uninorm/test-u32-nfd-big.c: Likewise.
7743         * tests/uninorm/test-u32-nfkc.c: Likewise.
7744         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
7745         * tests/uninorm/test-u32-nfkd.c: Likewise.
7746         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
7747         * tests/uninorm/test-u32-normalize-big.c: Likewise.
7748
7749 2010-03-27  Bruno Haible  <bruno@clisp.org>
7750
7751         Distinguish two kinds of module indicators.
7752         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
7753         gl_MODULE_INDICATOR.
7754         (gl_MODULE_INDICATOR): New macro.
7755         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7756         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
7757         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7758         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7759         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7760         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7761         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7762         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7763         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7764         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7765         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7766         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7767         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7768         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7769         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7770         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7771         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7772         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7773         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7774         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7775         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7776         * modules/cloexec (configure.ac): Likewise.
7777         * modules/getopt-gnu (configure.ac): Likewise.
7778         * modules/uninorm/u8-normalize (configure.ac): Likewise.
7779         * modules/uninorm/u16-normalize (configure.ac): Likewise.
7780         * modules/uninorm/u32-normalize (configure.ac): Likewise.
7781         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
7782
7783 2010-03-27  Bruno Haible  <bruno@clisp.org>
7784
7785         New module description field 'Comment'.
7786         * gnulib-tool: New option --extract-comment.
7787         (func_usage): Document it.
7788         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
7789         (func_get_comment): New function.
7790         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
7791
7792 2010-03-27  Bruno Haible  <bruno@clisp.org>
7793
7794         Addendum to 2010-02-07 commit.
7795         * gnulib-tool (func_usage): Document --extract-applicability option.
7796
7797 2010-03-27  Bruno Haible  <bruno@clisp.org>
7798
7799         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
7800         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
7801         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
7802         rather than link errors.
7803
7804 2010-03-27  Bruno Haible  <bruno@clisp.org>
7805
7806         Avoid side effects from tests-related modules on the compilation of lib.
7807         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
7808         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
7809         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
7810         parameter. Emit into AM_CPPFLAGS a definition of the designated C
7811         macro.
7812         (func_import): Define a witness macro. Assign it a value that depends
7813         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
7814         tests-related modules.
7815         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
7816         Reported by Jim Meyering.
7817
7818 2010-03-27  Bruno Haible  <bruno@clisp.org>
7819
7820         Factorize common .m4 code.
7821         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
7822         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
7823         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
7824         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
7825         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7826         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
7827         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
7828         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7829         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7830         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7831         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
7832         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7833         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7834         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7835         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7836         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
7837         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7838         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7839         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7840         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
7841         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
7842         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7843         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7844         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7845         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7846         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7847         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
7848         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
7849         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
7850         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7851         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7852         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7853
7854 2010-03-27  Bruno Haible  <bruno@clisp.org>
7855
7856         Fix a compilation error on Cygwin with g++ >= 4.3.
7857         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
7858         if it is undefined or if we alias it to chmod.
7859         (lstat): Don't warn about the use of this function if it is undefined
7860         or if we alias it to stat.
7861         Reported by Simon Josefsson.
7862
7863 2010-03-27  Bruno Haible  <bruno@clisp.org>
7864
7865         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
7866         * modules/getlogin (configure.ac): Update.
7867
7868         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
7869         * modules/getlogin_r (configure.ac): Update.
7870
7871         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
7872         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
7873         * modules/inet_ntop (configure.ac): Update.
7874
7875         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
7876         * modules/inet_pton (configure.ac): Update.
7877
7878         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
7879         * modules/mbslen (configure.ac): Update.
7880
7881         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
7882         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
7883         * modules/forkpty (configure.ac): Update.
7884         * modules/openpty (configure.ac): Update.
7885
7886 2010-03-26  Simon Josefsson  <simon@josefsson.org>
7887
7888         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
7889         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
7890
7891 2010-03-25  Eric Blake  <eblake@redhat.com>
7892
7893         maint: use pragma consistently across replacement headers
7894         * lib/ctype.in.h (system_header): Hoist for consistent placement.
7895         * lib/dirent.in.h (system_header): Likewise.
7896         * lib/errno.in.h (system_header): Likewise.
7897         * lib/float.in.h (system_header): Likewise.
7898         * lib/getopt.in.h (system_header): Likewise.
7899         * lib/iconv.in.h (system_header): Likewise.
7900         * lib/inttypes.in.h (system_header): Likewise.
7901         * lib/langinfo.in.h (system_header): Likewise.
7902         * lib/locale.in.h (system_header): Likewise.
7903         * lib/math.in.h (system_header): Likewise.
7904         * lib/netdb.in.h (system_header): Likewise.
7905         * lib/netinet_in.in.h (system_header): Likewise.
7906         * lib/pty.in.h (system_header): Likewise.
7907         * lib/sched.in.h (system_header): Likewise.
7908         * lib/se-selinux.in.h (system_header): Likewise.
7909         * lib/search.in.h (system_header): Likewise.
7910         * lib/spawn.in.h (system_header): Likewise.
7911         * lib/stdarg.in.h (system_header): Likewise.
7912         * lib/stdint.in.h (system_header): Likewise.
7913         * lib/string.in.h (system_header): Likewise.
7914         * lib/strings.in.h (system_header): Likewise.
7915         * lib/sys_file.in.h (system_header): Likewise.
7916         * lib/sys_ioctl.in.h (system_header): Likewise.
7917         * lib/sys_socket.in.h (system_header): Likewise.
7918         * lib/sys_times.in.h (system_header): Likewise.
7919         * lib/sys_utsname.in.h (system_header): Likewise.
7920         * lib/sys_wait.in.h (system_header): Likewise.
7921         * lib/sysexits.in.h (system_header): Likewise.
7922         * lib/unistd.in.h (system_header): Likewise.
7923         * lib/wctype.in.h (system_header): Likewise.
7924
7925         arpa/inet: fix mingw compilation warning
7926         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
7927         Reported by Matthew Bolte.
7928
7929 2010-03-25  Bruno Haible  <bruno@clisp.org>
7930
7931         Avoid collision between gnulib wrapper and libintl wrapper.
7932         * lib/printf.c (printf): Don't define if a printf wrapper is already
7933         defined in intl/printf.c.
7934         Reported by Michel Boaventura <michel@michelboaventura.com>.
7935
7936 2010-03-25  Bruno Haible  <bruno@clisp.org>
7937
7938         Use ANSI C.
7939         * lib/readutmp.h (getutent): Provide ANSI C prototype.
7940
7941 2010-03-25  Bruno Haible  <bruno@clisp.org>
7942
7943         Minor formatting changes.
7944         * lib/acosl.c: Insert space before function argument list.
7945         * lib/argz.c: Likewise.
7946         * lib/asinl.c: Likewise.
7947         * lib/expl.c: Likewise.
7948         * lib/gen-uni-tables.c: Likewise.
7949         * lib/gettext.h: Likewise.
7950         * lib/glthread/lock.h: Likewise.
7951         * lib/tanl.c: Likewise.
7952         * lib/uniname/uniname.c: Likewise.
7953         * tests/test-idpriv-drop.c: Likewise.
7954         * tests/test-idpriv-droptemp.c: Likewise.
7955         * tests/test-lock.c: Likewise.
7956         * tests/test-tls.c: Likewise.
7957         * lib/argp-help.c: Insert space before function-like macro argument
7958         list.
7959         * lib/memcmp.c: Likewise.
7960         * tests/test-base64.c: Likewise.
7961         * lib/localename.c: Insert space before sizeof's argument list.
7962         * lib/safe-alloc.h: Likewise.
7963         * lib/file-set.h: Insert space before macro argument list.
7964         * tests/test-argp.c: Likewise.
7965         * lib/argp-namefrob.h: Insert space before function parameter list.
7966         * lib/getaddrinfo.c: Likewise.
7967         * lib/netdb.in.h: Likewise.
7968         * lib/parse-duration.h: Likewise.
7969         * lib/parse-duration.c: Likewise.
7970         * lib/poll.c: Likewise.
7971         * lib/select.c: Likewise.
7972         * lib/trim.h: Likewise.
7973         * tests/test-usleep.c: Likewise.
7974         * lib/ldexpl.c: Insert space before function parameter list and before
7975         function argument list.
7976         * lib/logl.c: Likewise.
7977         * lib/sqrtl.c: Likewise.
7978         * lib/trim.c: Likewise.
7979         * lib/cosl.c: Use GNU style indentation. Insert space before function
7980         argument list.
7981         * lib/sinl.c: Likewise.
7982         * lib/tsearch.c: Insert space after 'for'.
7983         Reported by Jim Meyering.
7984
7985 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
7986
7987         * maint.mk (sc_Wundef_boolean): Check for the presence of the
7988         config header before grepping, as it's not present before
7989         autoreconf/configure are run.  Reported by Simon Josefsson.
7990
7991 2010-03-23  Bruno Haible  <bruno@clisp.org>
7992
7993         pt_chown: Make it work with automake < 1.11.
7994         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
7995         Reported by Simon Josefsson.
7996
7997 2010-03-23  Bruno Haible  <bruno@clisp.org>
7998
7999         pt_chown: Don't depend on GPLed modules.
8000         * lib/pt_chown.c: Don't include idpriv.h.
8001         (main): Don't drop privileges.
8002         * modules/pt_chown (Depends-on): Remove idpriv-drop.
8003         Reported by Simon Josefsson.
8004
8005 2010-03-24  Simon Josefsson  <simon@josefsson.org>
8006
8007         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
8008         suggestions from karl@freefriends.org (Karl Berry).
8009
8010 2010-03-22  Eric Blake  <eblake@redhat.com>
8011
8012         gethostname: further tweaks
8013         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
8014         are overriding gethostname.
8015         Suggested by Bruno Haible.
8016
8017 2010-03-21  Bruno Haible  <bruno@clisp.org>
8018
8019         Fix comments.
8020         * lib/forkpty.c (rpl_forkpty): Fix comment.
8021         * lib/openpty.c (rpl_openpty): Likewise.
8022         Reported by Eric Blake.
8023
8024 2010-03-22  Eric Blake  <eblake@redhat.com>
8025
8026         gethostname: fix build on mingw
8027         * lib/unistd.in.h (includes): Work around fact that mingw
8028         <winsock2.h> re-includes <unistd.h>, by avoiding any
8029         redeclarations if we are being included by <winsock2.h>.
8030         Reported by Matthias Bolte.
8031
8032 2010-03-21  Bruno Haible  <bruno@clisp.org>
8033
8034         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8035         * lib/forkpty.c (forkpty): New replacement function, from glibc with
8036         modifications.
8037         * lib/pty.in.h (forkpty): Update declaration. Add comments.
8038         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
8039         provide the replacement.
8040         * modules/forkpty (Depends-on): Add openpty, login_tty.
8041         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
8042         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
8043         * doc/glibc-functions/forkpty.texi: More supported platforms.
8044         * config/srclist.txt: Add forkpty.c (commented).
8045
8046 2010-03-21  Bruno Haible  <bruno@clisp.org>
8047
8048         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
8049         (Makefile.am): Verify that PTY_LIB is defined.
8050
8051         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
8052
8053 2010-03-21  Bruno Haible  <bruno@clisp.org>
8054
8055         Tests for module 'login_tty'.
8056         * modules/login_tty-tests: New file.
8057         * tests/test-login_tty.c: New file.
8058
8059         New module 'login_tty'.
8060         * lib/login_tty.c: New file.
8061         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
8062         * modules/login_tty: New file.
8063         * doc/glibc-functions/login_tty.texi: Mention the new module.
8064
8065 2010-03-21  Bruno Haible  <bruno@clisp.org>
8066
8067         login_tty: Documentation.
8068         * doc/glibc-functions/login_tty.texi: New file.
8069         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
8070
8071 2010-03-21  Bruno Haible  <bruno@clisp.org>
8072
8073         pty: Consistent macro naming.
8074         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
8075         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
8076         * modules/pty (configure.ac): Update.
8077
8078 2010-03-21  Bruno Haible  <bruno@clisp.org>
8079
8080         Tests for openpty: Make stricter.
8081         * tests/test-openpty.c (main): Add test of canonical processing and
8082         erase.
8083         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
8084
8085         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8086         * lib/openpty.c (openpty): New replacement function.
8087         * lib/pty.in.h: Include <termios.h>.
8088         (openpty): Update declaration. Add comments.
8089         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
8090         is not declared, arrange to provide the replacement. Check for _getpty
8091         and posix_openpt.
8092         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
8093         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
8094         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
8095         * modules/pty-tests (test_pty_c___LDADD): New variable.
8096         * doc/glibc-functions/openpty.texi: More supported platforms.
8097
8098 2010-03-21  Bruno Haible  <bruno@clisp.org>
8099
8100         setenv: Tweaks.
8101         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
8102         the test program.
8103         * doc/posix-functions/setenv.texi: Update platforms list.
8104
8105 2010-03-21  Bruno Haible  <bruno@clisp.org>
8106
8107         New module 'unlockpt'.
8108         * lib/unlockpt.c: New file, from glibc with modifications.
8109         * m4/unlockpt.m4: New file.
8110         * modules/unlockpt: New file.
8111         * lib/stdlib.in.h (unlockpt): New declaration.
8112         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
8113         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
8114         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
8115         HAVE_UNLOCKPT.
8116         * doc/posix-functions/unlockpt.texi: Mention the new module.
8117         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
8118         * config/srclist.txt: Add unlockpt.c (commented).
8119
8120 2010-03-21  Jim Meyering  <meyering@redhat.com>
8121
8122         maint.mk: prohibit inclusion of "intprops.h" without use
8123         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
8124
8125 2010-03-21  Bruno Haible  <bruno@clisp.org>
8126
8127         New module 'grantpt'.
8128         * lib/grantpt.c: New file, from glibc with modifications.
8129         * m4/grantpt.m4: New file.
8130         * modules/grantpt: New file.
8131         * lib/stdlib.in.h (grantpt): New declaration.
8132         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
8133         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
8134         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
8135         HAVE_GRANTPT.
8136         * doc/posix-functions/grantpt.texi: Mention the new module.
8137         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
8138         * config/srclist.txt: Add grantpt.c (commented).
8139
8140 2010-03-21  Bruno Haible  <bruno@clisp.org>
8141
8142         New module 'pt_chown'.
8143         * lib/pt_chown.c: New file, from glibc with modifications.
8144         * lib/pty-private.h: New file, from glibc with modifications.
8145         * modules/pt_chown: New file.
8146         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
8147
8148 2010-03-21  Bruno Haible  <bruno@clisp.org>
8149
8150         Tests for module 'ptsname'.
8151         * modules/ptsname-tests: New file.
8152         * tests/test-ptsname.c: New file.
8153
8154         New module 'ptsname'.
8155         * lib/ptsname.c: New file, from glibc with modifications.
8156         * m4/ptsname.m4: New file.
8157         * modules/ptsname: New file.
8158         * lib/stdlib.in.h (ptsname): New declaration.
8159         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
8160         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
8161         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
8162         HAVE_PTSNAME.
8163         * doc/posix-functions/ptsname.texi: Mention the new module.
8164         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
8165         * config/srclist.txt: Add ptsname.c (commented).
8166
8167 2010-03-21  Bruno Haible  <bruno@clisp.org>
8168
8169         Tests for module 'ttyname_r'.
8170         * modules/ttyname_r-tests: New file.
8171         * tests/test-ttyname_r.c: New file.
8172
8173         New module 'ttyname_r'.
8174         * lib/ttyname_r.c: New file.
8175         * m4/ttyname_r.m4: New file.
8176         * modules/ttyname_r: New file.
8177         * lib/unistd.in.h (ttyname_r): New declaration.
8178         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
8179         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
8180         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
8181         HAVE_TTYNAME_R.
8182         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
8183         * doc/posix-functions/ttyname_r.texi: Mention the new module.
8184
8185 2010-03-20  Bruno Haible  <bruno@clisp.org>
8186
8187         signal: Undefine macro definitions in C++ mode.
8188         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
8189         sigfillset): Undefine macro definitions from the system header in C++
8190         mode.
8191         Reported by John W. Eaton <jwe@gnu.org>.
8192
8193 2010-03-20  Bruno Haible  <bruno@clisp.org>
8194
8195         Ensure no #include statements inside extern "C" { ... }.
8196         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
8197         contain #include statements.
8198         * lib/time.in.h: Likewise.
8199
8200 2010-03-20  Bruno Haible  <bruno@clisp.org>
8201
8202         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
8203         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
8204         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
8205         Reported by John W. Eaton <jwe@gnu.org>.
8206
8207 2010-03-20  Bruno Haible  <bruno@clisp.org>
8208
8209         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
8210         Reported by Jim Meyering.
8211
8212 2010-03-20  Bruno Haible  <bruno@clisp.org>
8213
8214         pipe: Set errno upon failure.
8215         * lib/pipe.h: Specify that when -1 is returned, errno is set.
8216         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
8217         errno value in error message.
8218
8219 2010-03-20  Bruno Haible  <bruno@clisp.org>
8220             Jim Meyering  <meyering@redhat.com>
8221
8222         lchown: Avoid "unused variable" warning.
8223         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
8224
8225 2010-03-20  Bruno Haible  <bruno@clisp.org>
8226
8227         Work around unlink() bug on MacOS X 10.5.6.
8228         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
8229         attempting to unlink a parent directory.
8230         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
8231         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
8232         activate for the replacement function.
8233         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
8234
8235 2010-03-20  Bruno Haible  <bruno@clisp.org>
8236
8237         Fix link errors on Solaris 8.
8238         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
8239         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
8240
8241 2010-03-19  Jim Meyering  <meyering@redhat.com>
8242
8243         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
8244         The _LIBC implementation of build_range_exp correctly honors the
8245         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
8246         However, the non-_LIBC implementation would ignore that syntax-bit
8247         flag and return REG_ERANGE unconditionally.
8248         This change makes it honor that flag.
8249         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
8250         Make two pointer parameters "const".
8251         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
8252         (parse_bracket_exp): Update caller.
8253
8254         regex.m4: correct the reversed range endpoint ([b-a]) test
8255         * m4/regex.m4: When requiring that [b-a] evoke failure,
8256         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
8257         test pass once again for x86-based systems.
8258
8259 2010-03-19  Bruno Haible  <bruno@clisp.org>
8260
8261         scandir: Fix link error on Solaris 8.
8262         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
8263         macros.
8264
8265 2010-03-19  Bruno Haible  <bruno@clisp.org>
8266
8267         getusershell: Fix documentation.
8268         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
8269         module.
8270         * doc/glibc-functions/setusershell.texi: Likewise.
8271
8272         getusershell: Provide declaration, missing on Solaris 9.
8273         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
8274         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
8275         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
8276         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
8277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8278         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
8279         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
8280         HAVE_GETUSERSHELL.
8281         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
8282
8283 2010-03-19  Bruno Haible  <bruno@clisp.org>
8284
8285         wctype: Provide iswblank function.
8286         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
8287         exists and is fine.
8288         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
8289         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
8290         * tests/test-wctype.c (main): Re-enable the iswblank tests.
8291         * doc/posix-functions/iswblank.texi: Update.
8292
8293 2010-03-19  Bruno Haible  <bruno@clisp.org>
8294
8295         Tests of module 'pty' in C++ mode.
8296         * modules/pty-tests: New file.
8297         * tests/test-pty-c++.cc: New file.
8298         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8299
8300 2010-03-19  Eric Blake  <eblake@redhat.com>
8301
8302         logb: fix documentation
8303         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
8304         1.5 declaration bug.
8305
8306         forkpty, openpty: prefer glibc's const-safe prototype
8307         * lib/forkpty.c (rpl_forkpty): New file.
8308         * lib/openpty.c (rpl_openpty): Likewise.
8309         * modules/forkpty (Files): Distribute it.
8310         * modules/openpty (Files): Likewise.
8311         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
8312         check...
8313         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
8314         replacement for for non-const BSD signature.
8315         * modules/pty (Makefile.am): Substitute witnesses.
8316         * lib/pty.in.h (forkpty, openpty): Declare replacements.
8317         * tests/test-forkpty.c: Update signature check.
8318         * tests/test-openpty.c: Likewise.
8319         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
8320         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8321
8322         forkpty, openpty: split functions into new modules
8323         * modules/pty (Makefile.am): Substitute new witnesses.
8324         (Libraries): Move library detection...
8325         * modules/forkpty: ...into new module.
8326         * modules/openpty: Another new module.
8327         * modules/pty-tests: Rename and split...
8328         * modules/forkpty-tests: ...to this...
8329         * modules/openpty-tests: ...and this.
8330         * tests/test-pty.c: Rename and split...
8331         * tests/test-forkpty.c: ...to this...
8332         * tests/test-openpty.c: ...and this.
8333         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
8334         (gl_PTY): Split library searching...
8335         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
8336         (gl_FORKPTY, gl_OPENPTY): New macros.
8337         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
8338         * NEWS: Mention the split.
8339         * MODULES.html.sh (Misc): Document the modules.
8340         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
8341         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8342
8343         pty: improve replacement header
8344         * lib/pty.in.h: New file.
8345         * modules/pty (Files): Ship it.
8346         (Makefile.am): Always build replacement.
8347         * m4/pty.m4: Rename...
8348         * m4/pty_h.m4: ...to this.
8349         (gl_PTY): Modernize setting of witness macros; update check of
8350         forkpty to take proper advantage of cache.
8351         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
8352
8353         getopt: avoid compiler warning
8354         * lib/getopt.c (attribute_hidden): Remove unused macro.
8355
8356 2010-03-18  Bruno Haible  <bruno@clisp.org>
8357
8358         Fix link errors on Solaris 8.
8359         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
8360         * modules/search-tests (test_search_c___LDADD): Likewise.
8361         * modules/signal-tests (test_signal_c___LDADD): Likewise.
8362         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
8363         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
8364         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
8365         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
8366         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
8367         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
8368
8369 2010-03-18  Bruno Haible  <bruno@clisp.org>
8370
8371         Fix bug introduced on 2010-03-14.
8372         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
8373         (gl_SPAWN_H): Require it.
8374         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
8375         Reported by Simon Josefsson.
8376
8377 2010-03-18  Bruno Haible  <bruno@clisp.org>
8378
8379         Fix typo introduced on 2009-12-31.
8380         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
8381         posix_spawn_file_actions_adddup2.
8382
8383 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
8384         and Eric Blake  <eblake@redhat.com>
8385
8386         test-vc-list-files-git: make more robust
8387         * tests/test-vc-list-files-git.sh: Unset problematic environment
8388         variables.  Chain commands together.
8389
8390 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
8391
8392         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
8393         `AC_CHECK_DECL' invocation.
8394
8395 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
8396
8397         * lib/inttostr.c (inttostr): Make sure the invocation of verify
8398         appears before executable statements. Suggested by Petr Sumbera
8399         <Petr.Sumbera@Sun.COM>.
8400
8401 2010-03-14  Bruno Haible  <bruno@clisp.org>
8402
8403         * tests/test-flock.c (test_exclusive): Comment out a test that causes
8404         portability problems. Instead use a simpler test.
8405         (main): Check that invalid arguments are rejected only on Linux.
8406
8407 2010-03-14  Bruno Haible  <bruno@clisp.org>
8408
8409         Fix bug introduced on 2009-12-31.
8410         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
8411         gl_PREREQ_SYS_H_WINSOCK2 always.
8412         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
8413         SYS_SOCKET_H variable.
8414         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
8415         Update comments.
8416         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
8417         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8418         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8419         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8420         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8421
8422 2010-03-14  Bruno Haible  <bruno@clisp.org>
8423
8424         Fix values returned by sinl, cosl.
8425         * lib/trigl.h: Add specification comments.
8426         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
8427         that combines the values from the precomputed table with the values of
8428         the Chebyshev polynomials.
8429
8430 2010-03-14  Bruno Haible  <bruno@clisp.org>
8431
8432         Fix compilation error when modules 'posix_spawn[p]' are not used.
8433         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
8434         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
8435
8436 2010-03-14  Bruno Haible  <bruno@clisp.org>
8437
8438         Fix compilation error on mingw when module 'time_r' is not used.
8439         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
8440         is 1.
8441         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
8442         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8443         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
8444         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
8445
8446 2010-03-14  Bruno Haible  <bruno@clisp.org>
8447
8448         Fix compilation error with Sun C.
8449         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
8450         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
8451         instead of GCC specific ULONG_LONG_MAX.
8452         * lib/xstrtoll.c: Likewise.
8453         * lib/xstrtoull.c: Likewise.
8454
8455 2010-03-13  Bruno Haible  <bruno@clisp.org>
8456
8457         Allow the user to disable C++ code and tests.
8458         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
8459         (gl_PROG_ANSI_CXX): Require it.
8460
8461 2010-03-13  Bruno Haible  <bruno@clisp.org>
8462
8463         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
8464         cases.
8465
8466 2010-03-13  Bruno Haible  <bruno@clisp.org>
8467
8468         Test that gnulib does not break the standard C++ headers.
8469         * tests/test-locale-c++2.cc: New file.
8470         * modules/locale-tests (Files): Add it.
8471         (Makefile.am): Compile it for test-locale-c++.
8472         * tests/test-math-c++2.cc: New file.
8473         * modules/math-tests (Files): Add it.
8474         (Makefile.am): Compile it for test-math-c++.
8475         * tests/test-signal-c++2.cc: New file.
8476         * modules/signal-tests (Files): Add it.
8477         (Makefile.am): Compile it for test-signal-c++.
8478         * tests/test-stdio-c++2.cc: New file.
8479         * modules/stdio-tests (Files): Add it.
8480         (Makefile.am): Compile it for test-stdio-c++.
8481         * tests/test-stdlib-c++2.cc: New file.
8482         * modules/stdlib-tests (Files): Add it.
8483         (Makefile.am): Compile it for test-stdlib-c++.
8484         * tests/test-string-c++2.cc: New file.
8485         * modules/string-tests (Files): Add it.
8486         (Makefile.am): Compile it for test-string-c++.
8487         * tests/test-time-c++2.cc: New file.
8488         * modules/time-tests (Files): Add it.
8489         (Makefile.am): Compile it for test-time-c++.
8490         Reported by John W. Eaton <jwe@gnu.org>.
8491
8492 2010-03-13  Bruno Haible  <bruno@clisp.org>
8493
8494         * gnulib-tool (func_usage): Clarify which options are available for
8495         --create-testdir and --create-megatestdir.
8496
8497 2010-03-13  Bruno Haible  <bruno@clisp.org>
8498
8499         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
8500         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
8501         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
8502         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8503         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
8504         when appropriate.
8505         Reported by Jim Meyering.
8506
8507 2010-03-12  Simon Josefsson  <simon@josefsson.org>
8508
8509         * gnulib-tool (func_import): Explain origin of code.
8510
8511 2010-03-12  Bruno Haible  <bruno@clisp.org>
8512
8513         Fix problem with automake's definition of CXXLINK.
8514         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
8515         Reported by Simon Josefsson and Ludovic Courtès.
8516
8517 2010-03-12  Bruno Haible  <bruno@clisp.org>
8518
8519         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
8520         stable releases.
8521
8522 2010-03-11  Bruno Haible  <bruno@clisp.org>
8523
8524         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
8525         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
8526         whether the system provides one variant or multiple variants of the
8527         function.
8528         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
8529         C++ compilers.
8530         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
8531         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
8532         Reported by Jim Meyering.
8533
8534 2010-03-09  Simon Josefsson  <simon@josefsson.org>
8535
8536         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
8537
8538 2010-03-08  Bruno Haible  <bruno@clisp.org>
8539
8540         gnulib-tool: Add support for --libtool in --create-testdir.
8541         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
8542         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
8543
8544 2010-03-08  Eric Blake  <eblake@redhat.com>
8545
8546         gnulib-tool.texi: mention possibility of git submodule
8547         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
8548         submodules.
8549         * doc/.gitignore: Ignore another generated file.
8550
8551 2010-03-08  Karl Berry  <karl@gnu.org>
8552
8553         * doc/gnulib-tool.texi (VCS Issues): Mention third option
8554         of committing gnulib files while skipping others.
8555
8556 2010-03-07  Bruno Haible  <bruno@clisp.org>
8557
8558         Tests of module 'wctype' in C++ mode.
8559         * tests/test-wctype-c++.cc: New file.
8560         * modules/wctype-tests (Files): Add it and tests/signature.h.
8561         (Depends-on): Add ansi-c++-opt.
8562         (Makefile.am): Arrange to compile and run test-wctype-c++.
8563
8564         Tests of module 'wchar' in C++ mode.
8565         * tests/test-wchar-c++.cc: New file.
8566         * modules/wchar-tests (Files): Add it and tests/signature.h.
8567         (Depends-on): Add ansi-c++-opt.
8568         (Makefile.am): Arrange to compile and run test-wchar-c++.
8569         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
8570         gl_MODULE_INDICATOR.
8571
8572         Tests of module 'unistd' in C++ mode.
8573         * tests/test-unistd-c++.cc: New file.
8574         * modules/unistd-tests (Files): Add it and tests/signature.h.
8575         (Depends-on): Add ansi-c++-opt.
8576         (Makefile.am): Arrange to compile and run test-unistd-c++.
8577         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
8578         gl_MODULE_INDICATOR.
8579
8580         Tests of module 'time' in C++ mode.
8581         * tests/test-time-c++.cc: New file.
8582         * modules/time-tests (Files): Add it and tests/signature.h.
8583         (Depends-on): Add ansi-c++-opt.
8584         (Makefile.am): Arrange to compile and run test-time-c++.
8585         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8586
8587         Tests of module 'sys_time' in C++ mode.
8588         * tests/test-sys_time-c++.cc: New file.
8589         * modules/sys_time-tests (Files): Add it and tests/signature.h.
8590         (Depends-on): Add ansi-c++-opt.
8591         (Makefile.am): Arrange to compile and run test-sys_time-c++.
8592         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
8593         gl_MODULE_INDICATOR.
8594
8595         Tests of module 'sys_stat' in C++ mode.
8596         * tests/test-sys_stat-c++.cc: New file.
8597         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
8598         (Depends-on): Add ansi-c++-opt.
8599         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
8600         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
8601         gl_MODULE_INDICATOR.
8602
8603         Tests of module 'sys_socket' in C++ mode.
8604         * tests/test-sys_socket-c++.cc: New file.
8605         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
8606         (Depends-on): Add ansi-c++-opt.
8607         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
8608         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
8609         gl_MODULE_INDICATOR.
8610
8611         Tests of module 'sys_select' in C++ mode.
8612         * tests/test-sys_select-c++.cc: New file.
8613         * modules/sys_select-tests (Files): Add it and tests/signature.h.
8614         (Depends-on): Add ansi-c++-opt.
8615         (Makefile.am): Arrange to compile and run test-sys_select-c++.
8616         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
8617         gl_MODULE_INDICATOR.
8618
8619         Tests of module 'sys_ioctl' in C++ mode.
8620         * tests/test-sys_ioctl-c++.cc: New file.
8621         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
8622         (Depends-on): Add ansi-c++-opt.
8623         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
8624         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
8625         gl_MODULE_INDICATOR.
8626
8627         Tests of module 'string' in C++ mode.
8628         * tests/test-string-c++.cc: New file.
8629         * modules/string-tests (Files): Add it and tests/signature.h.
8630         (Depends-on): Add ansi-c++-opt.
8631         (Makefile.am): Arrange to compile and run test-string-c++.
8632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
8633         gl_MODULE_INDICATOR.
8634
8635         Tests of module 'stdlib' in C++ mode.
8636         * tests/test-stdlib-c++.cc: New file.
8637         * modules/stdlib-tests (Files): Add it and tests/signature.h.
8638         (Depends-on): Add ansi-c++-opt.
8639         (Makefile.am): Arrange to compile and run test-stdlib-c++.
8640         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
8641         gl_MODULE_INDICATOR.
8642
8643         Tests of module 'stdio' in C++ mode.
8644         * tests/test-stdio-c++.cc: New file.
8645         * modules/stdio-tests (Files): Add it and tests/signature.h.
8646         (Depends-on): Add ansi-c++-opt.
8647         (Makefile.am): Arrange to compile and run test-stdio-c++.
8648         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
8649         gl_MODULE_INDICATOR.
8650
8651         Tests of module 'spawn' in C++ mode.
8652         * tests/test-spawn-c++.cc: New file.
8653         * modules/spawn-tests (Files): Add it and tests/signature.h.
8654         (Depends-on): Add ansi-c++-opt.
8655         (Makefile.am): Arrange to compile and run test-spawn-c++.
8656         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
8657         gl_MODULE_INDICATOR.
8658
8659         Tests of module 'signal' in C++ mode.
8660         * tests/test-signal-c++.cc: New file.
8661         * modules/signal-tests (Files): Add it and tests/signature.h.
8662         (Depends-on): Add ansi-c++-opt.
8663         (Makefile.am): Arrange to compile and run test-signal-c++.
8664         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
8665         gl_MODULE_INDICATOR.
8666
8667         Tests of module 'search' in C++ mode.
8668         * tests/test-search-c++.cc: New file.
8669         * modules/search-tests (Files): Add it and tests/signature.h.
8670         (Depends-on): Add ansi-c++-opt.
8671         (Makefile.am): Arrange to compile and run test-search-c++.
8672         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
8673         gl_MODULE_INDICATOR.
8674
8675         Tests of module 'math' in C++ mode.
8676         * tests/test-math-c++.cc: New file.
8677         * modules/math-tests (Files): Add it and tests/signature.h.
8678         (Depends-on): Add ansi-c++-opt.
8679         (Makefile.am): Arrange to compile and run test-math-c++.
8680         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8681
8682         Tests of module 'locale' in C++ mode.
8683         * tests/test-locale-c++.cc: New file.
8684         * modules/locale-tests (Files): Add it and tests/signature.h.
8685         (Depends-on): Add ansi-c++-opt.
8686         (Makefile.am): Arrange to compile and run test-locale-c++.
8687         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
8688         gl_MODULE_INDICATOR.
8689
8690         Tests of module 'langinfo' in C++ mode.
8691         * tests/test-langinfo-c++.cc: New file.
8692         * modules/langinfo-tests (Files): Add it and tests/signature.h.
8693         (Depends-on): Add ansi-c++-opt.
8694         (Makefile.am): Arrange to compile and run test-langinfo-c++.
8695         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
8696         gl_MODULE_INDICATOR.
8697
8698         Tests of module 'iconv-h' in C++ mode.
8699         * tests/test-iconv-h-c++.cc: New file.
8700         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
8701         (Depends-on): Add ansi-c++-opt.
8702         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
8703
8704         Tests of module 'glob' in C++ mode.
8705         * tests/test-glob-c++.cc: New file.
8706         * modules/glob-tests (Files): Add it.
8707         (Depends-on): Add ansi-c++-opt.
8708         (Makefile.am): Arrange to compile and run test-glob-c++.
8709
8710         Tests of module 'fcntl-h' in C++ mode.
8711         * tests/test-fcntl-h-c++.cc: New file.
8712         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
8713         (Depends-on): Add ansi-c++-opt.
8714         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
8715         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
8716         gl_MODULE_INDICATOR.
8717
8718         Tests of module 'dirent' in C++ mode.
8719         * tests/test-dirent-c++.cc: New file.
8720         * modules/dirent-tests (Files): Add it and tests/signature.h.
8721         (Depends-on): Add ansi-c++-opt.
8722         (Makefile.am): Arrange to compile and run test-dirent-c++.
8723         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8724         gl_MODULE_INDICATOR.
8725
8726         New module 'ansi-c++-opt'.
8727         * modules/ansi-c++-opt: New file.
8728         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
8729
8730         Document C++ namespace mode.
8731         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
8732
8733         wctype: Avoid #define replacements in C++ mode.
8734         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
8735         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
8736         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
8737         In C++, define a namespaced alias symbol.
8738         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
8739         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
8740         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
8741         rule.
8742
8743         wchar: Avoid #define replacements in C++ mode.
8744         * lib/wchar.in.h: Include c++defs.h.
8745         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
8746         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
8747         symbol.
8748         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
8749         * modules/wchar (Depends-on): Add c++defs.
8750         (Makefile.am): Update wchar.h rule.
8751
8752         unistd: Avoid #define replacements in C++ mode.
8753         * lib/unistd.in.h: Include c++defs.h.
8754         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
8755         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
8756         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
8757         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
8758         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
8759         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
8760         symbol.
8761         (environ): Update.
8762         * modules/unistd (Depends-on): Add c++defs.
8763         (Makefile.am): Update unistd.h rule.
8764
8765         time: Avoid #define replacements in C++ mode.
8766         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
8767         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
8768         define a namespaced alias symbol.
8769         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
8770         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
8771         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
8772         * modules/time (Depends-on): Add c++defs, warn-on-use.
8773         (Makefile.am): Update time.h rule.
8774         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8775         * modules/nanosleep (configure.ac): Likewise.
8776         * modules/strptime (configure.ac): Likewise.
8777         * modules/timegm (configure.ac): Likewise.
8778
8779         sys_time: Avoid #define replacements in C++ mode.
8780         * lib/sys_time.in.h: Include c++defs.h.
8781         (gettimeofday): In C++, define a namespaced alias symbol.
8782         * modules/sys_time (Depends-on): Add c++defs.
8783         (Makefile.am): Update sys/time.h rule.
8784
8785         sys_stat: Avoid #define replacements in C++ mode.
8786         * lib/sys_stat.in.h: Include c++defs.h.
8787         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
8788         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
8789         namespaced alias symbol.
8790         In C++, define a namespaced alias symbol.
8791         * modules/sys_stat (Depends-on): Add c++defs.
8792         (Makefile.am): Update sys/stat.h rule.
8793
8794         sys_socket: Avoid #define replacements in C++ mode.
8795         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
8796         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
8797         definitions also when the system has a <sys/socket.h>.
8798         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8799         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
8800         In C++, define a namespaced alias symbol.
8801         * modules/sys_socket (Depends-on): Add c++defs.
8802         (Makefile.am): Update sys/socket.h rule.
8803
8804         sys_select: Avoid #define replacements in C++ mode.
8805         * lib/sys_select.in.h: Include c++defs.h. Enable the function
8806         definitions also when the system has a <sys/select.h>.
8807         (select): In C++, define a namespaced alias symbol.
8808         * modules/sys_select (Depends-on): Add c++defs.
8809         (Makefile.am): Update sys/select.h rule.
8810
8811         sys_ioctl: Avoid #define replacements in C++ mode.
8812         * lib/sys_ioctl.in.h: Include c++defs.h.
8813         (ioctl): In C++, define a namespaced alias symbol.
8814         * modules/sys_ioctl (Depends-on): Add c++defs.
8815         (Makefile.am): Update sys/ioctl.h rule.
8816
8817         string: Avoid #define replacements in C++ mode.
8818         * lib/string.in.h: Include c++defs.h.
8819         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
8820         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
8821         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
8822         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
8823         strsignal, strverscmp): In C++, define a namespaced alias symbol.
8824         * modules/string (Depends-on): Add c++defs.
8825         (Makefile.am): Update string.h rule.
8826
8827         stdlib: Avoid #define replacements in C++ mode.
8828         * lib/stdlib.in.h: Include c++defs.h.
8829         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
8830         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
8831         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
8832         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
8833         symbol.
8834         * modules/stdlib (Depends-on): Add c++defs.
8835         (Makefile.am): Update stdlib.h rule.
8836
8837         stdio: Avoid #define replacements in C++ mode.
8838         * lib/stdio.in.h: Include c++defs.h.
8839         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
8840         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
8841         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
8842         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
8843         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
8844         namespaced alias symbol.
8845         * modules/stdio (Depends-on): Add c++defs.
8846         (Makefile.am): Update stdio.h rule.
8847
8848         spawn: Avoid #define replacements in C++ mode.
8849         * lib/spawn.in.h: Include c++defs.h.
8850         (posix_spawn, posix_spawnp, posix_spawnattr_init,
8851         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
8852         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
8853         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
8854         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
8855         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
8856         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8857         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
8858         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
8859         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8860         In C++, define a namespaced alias symbol.
8861         * modules/spawn (Depends-on): Add c++defs.
8862         (Makefile.am): Update spawn.h rule.
8863
8864         signal: Avoid #define replacements in C++ mode.
8865         * lib/signal.in.h: Include c++defs.h.
8866         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
8867         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
8868         namespaced alias symbol.
8869         * modules/signal (Depends-on): Add c++defs.
8870         (Makefile.am): Update signal.h rule.
8871
8872         search: Avoid #define replacements in C++ mode.
8873         * lib/search.in.h: Include c++defs.h.
8874         (_gl_search_compar_fn, _gl_search_action_fn): New types.
8875         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
8876         symbol.
8877         * modules/search (Depends-on): Add c++defs.
8878         (Makefile.am): Update search.h rule.
8879
8880         math: Avoid #define replacements in C++ mode.
8881         * lib/math.in.h: Include c++defs.h.
8882         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
8883         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
8884         trunc, truncl): In C++, define a namespaced alias symbol.
8885         * modules/math (Depends-on): Add c++defs.
8886         (Makefile.am): Update math.h rule.
8887
8888         locale: Avoid #define replacements in C++ mode.
8889         * lib/locale.in.h: Include c++defs.h.
8890         (duplocale): In C++, define a namespaced alias symbol.
8891         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
8892         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
8893         * modules/locale (Depends-on): Add c++defs.
8894         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
8895
8896         langinfo: Avoid #define replacements in C++ mode.
8897         * lib/langinfo.in.h: Include c++defs.h.
8898         (nl_langinfo): In C++, define a namespaced alias symbol.
8899         * modules/langinfo (Depends-on): Add c++defs.
8900         (Makefile.am): Update langinfo.h rule.
8901
8902         iconv-h: Avoid #define replacements in C++ mode.
8903         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
8904         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
8905         symbol.
8906         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
8907         whenever iconv is present.
8908         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
8909         (Makefile.am): Update iconv.h rule.
8910
8911         glob: Avoid #define replacements in C++ mode.
8912         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
8913         (_gl_glob_errfunc_fn): New type.
8914         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
8915         symbol.
8916         * modules/glob (Depends-on): Add c++defs, warn-on-use.
8917         (Makefile.am): Update glob.h rule.
8918
8919         fcntl-h: Avoid #define replacements in C++ mode.
8920         * lib/fcntl.in.h: Include c++defs.h.
8921         (fcntl, open, openat): In C++, define a namespaced alias symbol.
8922         * modules/fcntl-h (Depends-on): Add c++defs.
8923         (Makefile.am): Update fcntl.h rule.
8924
8925         dirent: Avoid #define replacements in C++ mode.
8926         * lib/dirent.in.h: Include c++defs.h.
8927         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
8928         namespaced alias symbol.
8929         (dirfd): Update declaration.
8930         * modules/dirent (Depends-on): Add c++defs.
8931         (Makefile.am): Update dirent.h rule.
8932
8933         ctype: Make it usable in C++ code.
8934         * lib/ctype.in.h: Include c++defs.h.
8935         (isblank): Declare as extern "C".
8936         * modules/ctype (Depends-on): Add c++defs.
8937         (Makefile.am): Update ctype.h rule.
8938
8939         New module 'c++defs'.
8940         * modules/c++defs: New file.
8941         * build-aux/c++defs.h: New file.
8942         Reported by John W. Eaton <jwe@gnu.org>.
8943
8944 2010-03-07  Bruno Haible  <bruno@clisp.org>
8945
8946         logb: Provide missing declaration for Cygwin.
8947         * lib/math.in.h (logb): New declaration.
8948         * m4/logb.m4: New file.
8949         * modules/logb (Files): Add m4/logb.m4.
8950         (Depends-on): Add math.
8951         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
8952         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
8953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
8954         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
8955         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
8956
8957 2010-03-07  Bruno Haible  <bruno@clisp.org>
8958
8959         Fix test-cond link error.
8960         * tests/test-cond.c: Include <stdio.h>.
8961
8962 2010-03-07  Bruno Haible  <bruno@clisp.org>
8963
8964         Fix test-dirent-safer link error.
8965         * modules/dirent-safer-tests (Makefile.am): Define
8966         test_dirent_safer_LDADD.
8967
8968 2010-03-07  Bruno Haible  <bruno@clisp.org>
8969
8970         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
8971         among default module list.
8972
8973 2010-03-07  Bruno Haible  <bruno@clisp.org>
8974
8975         Fix link error on platforms with GNU libiconv.
8976         * modules/unistr/u8-strcoll-tests (Makefile): Define
8977         test_u8_strcoll_LDADD.
8978         * modules/unistr/u16-strcoll-tests (Makefile): Define
8979         test_u16_strcoll_LDADD.
8980         * modules/unistr/u32-strcoll-tests (Makefile): Define
8981         test_u32_strcoll_LDADD.
8982
8983 2010-03-07  Bruno Haible  <bruno@clisp.org>
8984
8985         Use POSIX declarations for socket functions.
8986         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
8987         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
8988         rpl_sendto): Change declaration to match POSIX.
8989         * lib/connect.c (rpl_connect): Likewise.
8990         * lib/accept.c (rpl_accept): Likewise.
8991         * lib/bind.c (rpl_bind): Likewise.
8992         * lib/getpeername.c (rpl_getpeername): Likewise.
8993         * lib/getsockname.c (rpl_getsockname): Likewise.
8994         * lib/recv.c (rpl_recv): Likewise.
8995         * lib/send.c (rpl_send): Likewise.
8996         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8997         * lib/sendto.c (rpl_sendto): Likewise.
8998
8999 2010-03-06  Bruno Haible  <bruno@clisp.org>
9000
9001         Clarify access, euidaccess, faccessat.
9002         * doc/posix-functions/faccessat.texi: Mention security problem under
9003         "Other problems", not "Portability problems".
9004         * doc/posix-functions/access.texi: Likewise. Mention a related security
9005         problem.
9006         * doc/glibc-functions/euidaccess.texi: Mention security problems.
9007         * lib/euidaccess.c: Add comments about platforms.
9008         * lib/unistd.in.h (access, euidaccess): Add warnings.
9009
9010 2010-03-07  Bruno Haible  <bruno@clisp.org>
9011
9012         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
9013         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
9014         (POSIX_SPAWN_SETSCHEDULER): Likewise.
9015         (POSIX_SPAWN_USEVFORK): Define in a way that works when
9016         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9017         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
9018         declare when POSIX_SPAWN_SETSCHEDULER is zero.
9019         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
9020         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
9021         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
9022         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
9023         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
9024         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
9025         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
9026         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
9027         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
9028         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
9029         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
9030         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
9031         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
9032         Likewise.
9033         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
9034         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
9035         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
9036         Likewise.
9037         * tests/test-spawn.c (main): Make it work when
9038         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9039
9040 2010-03-07  Bruno Haible  <bruno@clisp.org>
9041
9042         Fix incorrect Makefile.am generation in German locale.
9043         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9044         Execute sed command with character range in C locale.
9045
9046 2010-03-06  Bruno Haible  <bruno@clisp.org>
9047
9048         Tests for module 'iconv-h'.
9049         * modules/iconv-h-tests: New file.
9050         * tests/test-iconv-h.c: New file.
9051
9052         New module 'iconv-h'.
9053         * modules/iconv-h: New file.
9054         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
9055         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
9056         (configure.ac): Remove gl_ICONV_H.
9057         (Makefile.am): Remove rule for iconv.h.
9058
9059 2010-03-06  Bruno Haible  <bruno@clisp.org>
9060
9061         More consistent naming of *.m4 files.
9062         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
9063         * modules/wctype (Files): Update.
9064
9065         More consistent naming of *.m4 files.
9066         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
9067         * modules/wchar (Files): Update.
9068
9069 2010-03-06  Jim Meyering  <meyering@redhat.com>
9070
9071         euidaccess: relax license to LGPLv2+
9072         * modules/euidaccess (License): Relax to LGPLv2+.
9073
9074 2010-03-06  Bruno Haible  <bruno@clisp.org>
9075
9076         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
9077         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
9078         (Makefile.am): Augment lib_SOURCES instead.
9079
9080 2010-03-04  Jim Meyering  <meyering@redhat.com>
9081
9082         utime: remove obsolete module
9083         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
9084         unnecessary for years, and has been marked as obsolete for 10 months.
9085         * modules/utime: Remove file.
9086         * lib/utime.c: Remove file.
9087         * m4/utime.m4: Remove file.
9088         * m4/utimes-null.m4: Remove file.
9089         * doc/posix-functions/utime.texi (utime): Remove reference to
9090         the module.  Move the sole "fixed by gnulib" item into the
9091         "problems not fixed by Gnulib" list.
9092         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
9093
9094 2010-03-05  Simon Josefsson  <simon@josefsson.org>
9095
9096         * modules/exit (License): Relax license to LGPLv2+.
9097         (Status): Mark as obsolete.
9098         * NEWS: Mention deprecated 'exit' module.
9099         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
9100         of now obsolete 'exit'.
9101
9102 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9103
9104         fts-lgpl: remove unused module
9105         * modules/fts-lgpl: Remove.
9106         * MODULES.html.sh (func_all_modules): Adjust.
9107         * check-module (find_included_lib_files): Adjust.
9108         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
9109
9110 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
9111
9112         copy-acl: enhance Solaris ACL error handling
9113         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
9114         * lib/set-mode-acl.c (qset_acl): Likewise.
9115
9116 2010-03-02  Bruno Haible  <bruno@clisp.org>
9117
9118         spawn: Don't override the system defined values on FreeBSD 8.
9119         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
9120         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
9121         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
9122         if HAVE_POSIX_SPAWN is 1.
9123         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
9124
9125 2010-03-01  Bruno Haible  <bruno@clisp.org>
9126
9127         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
9128         regarding Automake.
9129
9130 2010-02-25  Bruno Haible  <bruno@clisp.org>
9131
9132         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
9133         * gnulib-tool: Define 'echo' as a function only before the ksh alias
9134         setting, not afterwards.
9135         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9136
9137 2010-02-24  Eric Blake  <eblake@redhat.com>
9138
9139         bootstrap, git-version-gen: use timestamp
9140         * build-aux/git-version-gen (scriptversion): Force UTC.
9141         * build-aux/bootstrap (scriptversion): New variable.
9142
9143         bootstrap: allow older git
9144         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
9145         older than 1.6.4.  Requested by the libvirt project.
9146
9147 2010-02-23  Eric Blake  <eblake@redhat.com>
9148
9149         warn-on-use: work with old autoconf
9150         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
9151         AS_VAR semantics of autoconf 2.60.
9152         Reported by Bruno Haible.
9153
9154         bootstrap: improve some comments
9155         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
9156         clarification comments.
9157
9158         gettimeofday: provide correct function
9159         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
9160         when replacement is declared, otherwise provide gettimeofday.
9161         Reported by Michael Goffioul.
9162
9163 2010-02-23  Jim Meyering  <meyering@redhat.com>
9164
9165         lib-ignore: relax license to "unlimited", not LGPLv2+
9166         * modules/lib-ignore (License): Relax to "unlimited".
9167
9168 2010-02-23  Jim Meyering  <meyering@redhat.com>
9169
9170         lib-ignore: relax license to LGPLv2+
9171         * modules/lib-ignore (License): Relax to LGPLv2+.
9172
9173 2010-02-22  Eric Blake  <eblake@redhat.com>
9174
9175         lseek: avoid bash 3.2 broken pipe bug
9176         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
9177         warning from bash 3.2.
9178         Reported by Ben Pfaff, with analysis from Bruno Haible.
9179
9180         bootstrap: support non-FSF copyright holder
9181         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
9182         bootstrap.conf override of COPYRIGHT_HOLDER.
9183         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
9184
9185         bootstrap: interoperate with gettext 0.14.1
9186         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
9187
9188         bootstrap: allow for alternate submodule location
9189         * build-aux/bootstrap (gnulib_path): New variable; use instead of
9190         hardcoding submodule location.
9191         (gnulib_mk): Allow direct use of Makefile.am.
9192
9193         bootstrap: use GNULIB_SRCDIR to reduce disk usage
9194         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
9195         rather than reconfiguring where the submodule points.
9196
9197         gettimeofday: restore support for platforms that lack function
9198         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
9199         replacement if function is missing.
9200         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
9201         * modules/sys_time (Makefile.am): Substitute it.
9202         * lib/sys_time.in.h (gettimeofday): Check it.
9203         Reported by Michael Goffioul.
9204
9205 2010-02-21  Bruno Haible  <bruno@clisp.org>
9206
9207         * lib/stdio.in.h (obstack_printf): Fix typo.
9208
9209 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
9210
9211         vc-list-files: use bzr ls's -R option
9212         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
9213         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
9214
9215 2010-02-21  Jim Meyering  <meyering@redhat.com>
9216
9217         init.sh: fix EXEEXT shims to work also for names like test-prog
9218         * tests/init.sh: Re-exec a better shell, when needed.
9219         If the current shell lacks support for posix $(...), an init.sh-using
9220         test will now try to find a shell that supports that.  If EXEEXT is
9221         nonempty, we also require support for hyphen-in-alias-name and shell
9222         substitutions like ${var#glob}.  Failure to find such a shell results
9223         in a skipped test.
9224
9225 2010-02-21  Bruno Haible  <bruno@clisp.org>
9226
9227         Really work around around "broken pipe" error message from bash 3.2.
9228         * gnulib-tool (func_reset_sigpipe): Remove function.
9229         (echo): In bash 3.2, define to a function that uses printf.
9230         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
9231
9232 2010-02-20  Bruno Haible  <bruno@clisp.org>
9233
9234         Restore support for automake 1.9.6 with autoconf 2.61.
9235         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
9236         Reported by James Youngman <jay@gnu.org>.
9237
9238 2010-02-20  Bruno Haible  <bruno@clisp.org>
9239
9240         Improve *printf warning condition.
9241         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
9242         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
9243         and the function is overridden due to SIGPIPE emulation.
9244
9245 2010-02-20  Bruno Haible  <bruno@clisp.org>
9246
9247         * lib/stdio.in.h: Tweak comments.
9248
9249 2010-02-19  Bruno Haible  <bruno@clisp.org>
9250
9251         Make it easier to find modules. New gnulib-tool option '--find'.
9252         * gnulib-tool: New option --find.
9253         (func_usage): Document it.
9254         (func_sanitize_modulelist): New function, extracted from
9255         func_all_modules.
9256         (func_all_modules): Invoke it.
9257         * doc/gnulib-tool.texi (Which modules?): New node.
9258
9259 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
9260
9261         * lib/sys_select.in.h: Provide select replacement even if
9262         sys/select.h exists on a system, for Interix.
9263
9264 2010-02-18  Jim Meyering  <meyering@redhat.com>
9265
9266         init.sh: don't use $(...) just yet
9267         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
9268         to accommodate e.g., Solaris' /bin/sh.
9269
9270 2010-02-17  Bruno Haible  <bruno@clisp.org>
9271
9272         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
9273         Reported by Ludovic Courtès <ludo@gnu.org>.
9274
9275 2010-02-16  Simon Josefsson  <simon@josefsson.org>
9276
9277         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
9278         linking with -lintl.
9279
9280 2010-02-17  Simon Josefsson  <simon@josefsson.org>
9281
9282         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
9283         if not provided by the system's netdb.h.  Reported by
9284         ludo@gnu.org (Ludovic Courtès).
9285
9286 2010-02-15  Jim Meyering  <meyering@redhat.com>
9287
9288         init.sh: improve portability and efficiency
9289         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
9290         "dummy" in a for loop.
9291         Use '!', not '^' to select the complement of a character set used
9292         in a "case" statement.
9293         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
9294         Suggestions from Eric Blake.
9295
9296         init.sh: automatically accommodate programs with the .exe suffix
9297         Automatically arrange for an invocation of "prog" to execute the
9298         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
9299         may use the simpler "prog", yet still work when built on a system
9300         that requires specifying the added suffix.
9301         Do this by constructing a function named "prog" that invokes
9302         "prog.exe" for each .exe file in selected directories.
9303         * tests/init.sh (find_exe_basenames_): New function.
9304         (create_exe_shim_functions_): New function.
9305         (path_prepend_): Use it.
9306
9307         maint.mk: mark syntax-check sc_*.m rules as .PHONY
9308         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
9309         "make -t syntax-check" doesn't create a ton of sc_*.m files.
9310
9311 2010-02-14  Jim Meyering  <meyering@redhat.com>
9312
9313         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
9314         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
9315         (sc_prohibit_hash_pjw_without_use): New rule.
9316
9317         maint.mk: allow the default upload destination dir to be overridden
9318         * top/maint.mk (upload_dest_dir_): Define with a default that
9319         preserves the status quo.
9320         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
9321         Reported by Peter Simons.
9322
9323         maint.mk: prohibit inclusion of "hash.h" without_use
9324         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
9325
9326 2010-02-10  Jim Meyering  <meyering@redhat.com>
9327
9328         maint.mk: prohibit inclusion of "ignore-value.h" without_use
9329         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
9330
9331 2010-02-09  Eric Blake  <ebb9@byu.net>
9332         and Bruno Haible  <bruno@clisp.org>
9333
9334         obstack-printf-posix: ensure declaration
9335         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
9336         extracted from gl_FUNC_OBSTACK_PRINTF.
9337         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
9338         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
9339         Likewise.
9340         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
9341         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
9342         0.
9343
9344 2010-02-08  Bruno Haible  <bruno@clisp.org>
9345
9346         gnulib-tool: Fix typo in 2010-02-07 commit.
9347         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
9348         Reported by Eric Blake.
9349
9350 2010-02-07  Bruno Haible  <bruno@clisp.org>
9351
9352         gnulib-tool: Fix up caching patches.
9353         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
9354         option --no-cache. Use associative arrays when supported by the shell.
9355         (sed_comments): New variable.
9356         (modcache): Renamed from do_cache.
9357         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
9358         abbreviate unnecessarily.
9359         (have_associative): New variable.
9360         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
9361         way also for ksh and zsh.
9362         (func_init_sed_convert_to_cache_statements): New function, extracted
9363         from func_cache_lookup_module. Add support for associative arrays.
9364         Don't set the c_MODULE_cached variable here. Ignore all lines before
9365         the first field header. Remove only the final newline, not all trailing
9366         newlines. Support empty fields correctly. Limit the use of 'eval' to
9367         assignments.
9368         (func_get_description, func_get_status, func_get_notice,
9369         func_get_applicability, func_get_filelist, func_get_dependencies,
9370         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
9371         func_get_automake_snippet, func_get_include_directive,
9372         func_get_link_directive, func_get_license, func_get_maintainer):
9373         Update documentation. List the unoptimized code first. Add support for
9374         associative arrays. Limit the use of 'eval' to assignments.
9375         (func_get_applicability): Undo stylistic pessimisations.
9376         (func_get_automake_snippet, func_get_include_directive): Reduce code
9377         duplication.
9378         (func_modules_transitive_closure, func_modules_add_dummy,
9379         func_modules_notice, func_modules_to_filelist, func_add_file,
9380         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
9381         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
9382         func_create_testdir, func_create_megatestdir): Update documentation.
9383
9384 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9385
9386         * gnulib-tool (func_cache_lookup_module): Store the module name
9387         belonging to the cache variable; error out if two different
9388         module names map to the same cache variable name.
9389
9390 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9391
9392         gnulib-tool: Make caching optional.
9393         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
9394         Update matching short versions of --no-changelog.
9395         (func_usage): Update.
9396         (sed_extract_cache_prog): Renamed from ...
9397         (sed_extract_prog): ... this; revert to old extraction script.
9398         (func_get_description, func_get_status)
9399         (func_get_notice, func_get_applicability, func_get_filelist)
9400         (func_get_dependencies, func_get_autoconf_early_snippet)
9401         (func_get_autoconf_snippet, func_get_automake_snippet)
9402         (func_get_include_directive, func_get_link_directive)
9403         (func_get_license, func_get_maintainer): If $do_cache is false,
9404         use old, non-caching extraction scripts.
9405         Suggestion by Bruno Haible.
9406
9407 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9408
9409         gnulib-tool: cache module metainformation.
9410         * gnulib-tool (sed_extract_prog): Match newline before each
9411         header, and rewrite header to a shell variable suffix.
9412         (func_cache_var, func_cache_lookup_module): New functions,
9413         to turn a module name into a cache variable prefix, and to
9414         look up and cache module metainformation.
9415         (func_get_description, func_get_status)
9416         (func_get_notice, func_get_applicability, func_get_filelist)
9417         (func_get_dependencies, func_get_autoconf_early_snippet)
9418         (func_get_autoconf_snippet, func_get_automake_snippet)
9419         (func_get_include_directive, func_get_link_directive)
9420         (func_get_license, func_get_maintainer): Use
9421         func_cache_lookup_module.
9422
9423 2010-02-07  Bruno Haible  <bruno@clisp.org>
9424
9425         fnctl: Fix missing dependency.
9426         * modules/fcntl (Depends-on): Add getdtablesize.
9427         Reported by John W. Eaton <jwe@gnu.org>.
9428
9429 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9430
9431         Argp: fix recognition of short alias options.
9432
9433         * lib/argp-parse.c (convert_options): Fix improper use of
9434         `|' between character values.
9435         * tests/test-argp.c (group1_option): New alias option
9436         --read (-r).
9437         (group1_parser): Special handling for 'r'.
9438         (test15): New test case.
9439         (test_fun): Add test15.
9440         * tests/test-argp-2.sh: Update expected --help and --usage
9441         outputs.
9442
9443 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9444
9445         * tests/test-argp.c: Fix indentation.
9446
9447 2010-02-04  Eric Blake  <ebb9@byu.net>
9448
9449         gettimeofday: expose type of second argument
9450         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
9451         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
9452         * tests/test-gettimeofday.c: Use it to silence warning.
9453         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
9454         the issue.
9455
9456 2010-02-03  Jim Meyering  <meyering@redhat.com>
9457
9458         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
9459         * lib/regcomp.c (TYPE_SIGNED): Define.
9460         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
9461
9462         regcomp.c: avoid a new -Wshadow warning
9463         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
9464
9465 2010-02-01  Jim Meyering  <meyering@redhat.com>
9466
9467         removing useless parentheses in cpp #define directives
9468         For motivation, see commit c0221df4, "define STREQ(a,b)
9469         consistently, removing useless parentheses"
9470         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
9471         * lib/mountlist.c (MNT_IGNORE): Likewise.
9472         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
9473
9474 2010-02-01  Eric Blake  <ebb9@byu.net>
9475
9476         sys_time: use link-warning
9477         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
9478         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
9479         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
9480         * modules/sys_time (Depends-on): Add warn-on-use.
9481         (Makefile.am): Always build replacement.
9482         (configure.ac): Update substitutions.
9483         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
9484         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
9485         bother with SYS_TIME_H.
9486         * modules/gettimeofday (configure.ac): Declare indicator.
9487         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
9488         in use.
9489
9490         closein-tests: silence compiler warning
9491         * tests/test-closein.c (main): Ignore fread result.
9492         * modules/closein-tests (Depends-on): Add ignore-value.
9493
9494         tests: silence warning about system return
9495         * tests/test-areadlink-with-size.c (main): Ignore system result.
9496         * tests/test-areadlink.c (main): Likewise.
9497         * tests/test-areadlinkat-with-size.c (main): Likewise.
9498         * tests/test-areadlinkat.c (main): Likewise.
9499         * tests/test-canonicalize-lgpl.c (main): Likewise.
9500         * tests/test-canonicalize.c (main): Likewise.
9501         * tests/test-chown.c (main): Likewise.
9502         * tests/test-fchownat.c (main): Likewise.
9503         * tests/test-fdutimensat.c (main): Likewise.
9504         * tests/test-fstatat.c (main): Likewise.
9505         * tests/test-futimens.c (main): Likewise.
9506         * tests/test-lchown.c (main): Likewise.
9507         * tests/test-link.c (main): Likewise.
9508         * tests/test-linkat.c (main): Likewise.
9509         * tests/test-lstat.c (main): Likewise.
9510         * tests/test-mkdir.c (main): Likewise.
9511         * tests/test-mkdirat.c (main): Likewise.
9512         * tests/test-mkfifo.c (main): Likewise.
9513         * tests/test-mkfifoat.c (main): Likewise.
9514         * tests/test-mknod.c (main): Likewise.
9515         * tests/test-readlink.c (main): Likewise.
9516         * tests/test-remove.c (main): Likewise.
9517         * tests/test-rename.c (main): Likewise.
9518         * tests/test-renameat.c (main): Likewise.
9519         * tests/test-rmdir.c (main): Likewise.
9520         * tests/test-symlink.c (main): Likewise.
9521         * tests/test-symlinkat.c (main): Likewise.
9522         * tests/test-unlink.c (main): Likewise.
9523         * tests/test-unlinkat.c (main): Likewise.
9524         * tests/test-utimens.c (main): Likewise.
9525         * tests/test-utimensat.c (main): Likewise.
9526         * modules/areadlink-tests (Depends-on): Add ignore-value.
9527         * modules/areadlink-with-size-tests (Depends-on): Likewise.
9528         * modules/areadlinkat-tests (Depends-on): Likewise.
9529         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
9530         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9531         * modules/canonicalize-tests (Depends-on): Likewise.
9532         * modules/chown-tests (Depends-on): Likewise.
9533         * modules/fdutimensat-tests (Depends-on): Likewise.
9534         * modules/futimens-tests (Depends-on): Likewise.
9535         * modules/lchown-tests (Depends-on): Likewise.
9536         * modules/link-tests (Depends-on): Likewise.
9537         * modules/linkat-tests (Depends-on): Likewise.
9538         * modules/lstat-tests (Depends-on): Likewise.
9539         * modules/mkdir-tests (Depends-on): Likewise.
9540         * modules/mkfifo-tests (Depends-on): Likewise.
9541         * modules/mkfifoat-tests (Depends-on): Likewise.
9542         * modules/mknod-tests (Depends-on): Likewise.
9543         * modules/openat-tests (Depends-on): Likewise.
9544         * modules/readlink-tests (Depends-on): Likewise.
9545         * modules/remove-tests (Depends-on): Likewise.
9546         * modules/rename-tests (Depends-on): Likewise.
9547         * modules/renameat-tests (Depends-on): Likewise.
9548         * modules/rmdir-tests (Depends-on): Likewise.
9549         * modules/symlink-tests (Depends-on): Likewise.
9550         * modules/symlinkat-tests (Depends-on): Likewise.
9551         * modules/unlink-tests (Depends-on): Likewise.
9552         * modules/utimens-tests (Depends-on): Likewise.
9553         * modules/utimensat-tests (Depends-on): Likewise.
9554
9555 2010-01-31  Bruno Haible  <bruno@clisp.org>
9556
9557         Perform the same test for many <math.h> functions.
9558         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
9559         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
9560         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
9561         of gl_MATHFUNC.
9562         * modules/acos (configure.ac): Likewise.
9563         * modules/asin (configure.ac): Likewise.
9564         * modules/atan (configure.ac): Likewise.
9565         * modules/atan2 (configure.ac): Likewise.
9566         * modules/cbrt (configure.ac): Likewise.
9567         * modules/copysign (configure.ac): Likewise.
9568         * modules/cos (configure.ac): Likewise.
9569         * modules/cosh (configure.ac): Likewise.
9570         * modules/erf (configure.ac): Likewise.
9571         * modules/erfc (configure.ac): Likewise.
9572         * modules/exp (configure.ac): Likewise.
9573         * modules/fmod (configure.ac): Likewise.
9574         * modules/hypot (configure.ac): Likewise.
9575         * modules/j0 (configure.ac): Likewise.
9576         * modules/j1 (configure.ac): Likewise.
9577         * modules/jn (configure.ac): Likewise.
9578         * modules/lgamma (configure.ac): Likewise.
9579         * modules/log (configure.ac): Likewise.
9580         * modules/log10 (configure.ac): Likewise.
9581         * modules/log1p (configure.ac): Likewise.
9582         * modules/pow (configure.ac): Likewise.
9583         * modules/remainder (configure.ac): Likewise.
9584         * modules/sin (configure.ac): Likewise.
9585         * modules/sinh (configure.ac): Likewise.
9586         * modules/tan (configure.ac): Likewise.
9587         * modules/tanh (configure.ac): Likewise.
9588         * modules/y0 (configure.ac): Likewise.
9589         * modules/y1 (configure.ac): Likewise.
9590         * modules/yn (configure.ac): Likewise.
9591         Suggested by Paolo Bonzini.
9592
9593 2010-01-31  Bruno Haible  <bruno@clisp.org>
9594
9595         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
9596
9597 2010-01-31  Bruno Haible  <bruno@clisp.org>
9598
9599         Work around getdelim() bug on FreeBSD 8.0.
9600         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
9601         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
9602         not work.
9603         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
9604         is 1.
9605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
9606         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
9607         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
9608         a non-zero size.
9609         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
9610
9611 2010-01-31  Bruno Haible  <bruno@clisp.org>
9612
9613         Work around getline() bug on FreeBSD 8.0.
9614         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
9615         and a non-zero size.
9616         * tests/test-getline.c (main): Likewise.
9617         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
9618         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
9619
9620 2010-01-28  Eric Blake  <ebb9@byu.net>
9621
9622         regex: fix build failure
9623         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
9624         platforms.
9625
9626 2010-01-28  Jim Meyering  <meyering@redhat.com>
9627
9628         regex: do not ignore memory allocation failure
9629         * lib/regex_internal.c (create_cd_newstate): Detect
9630         re_node_set_init_copy failure.   Extracted from glibc commit
9631         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9632
9633         regex: sync more white-space changes from libc
9634         * lib/regex_internal.c: White-space only changes.
9635         * lib/regexec.c: Likewise.
9636
9637         regex: add many uses of __attribute_warn_unused_result__
9638         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
9639         * lib/regexec.c: Likewise.
9640         Extracted from a messy glibc commit.
9641
9642         regcomp.c: spelling and merge-artifact from glibc
9643         * lib/regcomp.c: Merge remainder of glibc's
9644         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9645
9646         regcomp.c: sync white-space changes from glibc
9647         * lib/regcomp.c: Merge to accommodate white space
9648         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9649
9650         regcomp.c: do not ignore internal return values
9651         * lib/regcomp.c: Do not ignore internal return values.
9652         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
9653         but without its white-space changes and spelling fixes.
9654
9655         regex_internal.h: define __attribute_warn_unused_result__
9656         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
9657
9658         maint: add a syntax-check rule to check for vulnerable Makefile.in
9659         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
9660
9661 2010-01-27  Jim Meyering  <meyering@redhat.com>
9662
9663         ncftpput-ftp: clean up spaces
9664         * build-aux/ncftpput-ftp: Make Copyright line consistent.
9665         Remove trailing blanks.
9666
9667 2010-01-27  Simon Josefsson  <simon@josefsson.org>
9668
9669         * build-aux/git-version-gen: Fix copyright statement.
9670         * build-aux/gnupload: Likewise.
9671         * tests/test-arcfour.c: Likewise.
9672         * tests/test-arctwo.c: Likewise.
9673         * tests/test-count-one-bits.c: Likewise.
9674         * tests/test-crc.c: Likewise.
9675         * tests/test-des.c: Likewise.
9676         * tests/test-gc-arcfour.c: Likewise.
9677         * tests/test-gc-arctwo.c: Likewise.
9678         * tests/test-gc-des.c: Likewise.
9679         * tests/test-gc-hmac-md5.c: Likewise.
9680         * tests/test-gc-hmac-sha1.c: Likewise.
9681         * tests/test-gc-md2.c: Likewise.
9682         * tests/test-gc-md4.c: Likewise.
9683         * tests/test-gc-md5.c: Likewise.
9684         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9685         * tests/test-gc-rijndael.c: Likewise.
9686         * tests/test-gc-sha1.c: Likewise.
9687         * tests/test-gc.c: Likewise.
9688         * tests/test-gethostname.c: Likewise.
9689         * tests/test-gettimeofday.c: Likewise.
9690         * tests/test-hash.c: Likewise.
9691         * tests/test-hmac-md5.c: Likewise.
9692         * tests/test-hmac-sha1.c: Likewise.
9693         * tests/test-md2.c: Likewise.
9694         * tests/test-md4.c: Likewise.
9695         * tests/test-md5.c: Likewise.
9696         * tests/test-memchr.c: Likewise.
9697         * tests/test-memchr2.c: Likewise.
9698         * tests/test-memcmp.c: Likewise.
9699         * tests/test-memmem.c: Likewise.
9700         * tests/test-memrchr.c: Likewise.
9701         * tests/test-rawmemchr.c: Likewise.
9702         * tests/test-read-file.c: Likewise.
9703         * tests/test-rijndael.c: Likewise.
9704         * tests/test-sockets.c: Likewise.
9705         * tests/test-strchrnul.c: Likewise.
9706         * tests/test-strstr.c: Likewise.
9707         * tests/test-strtod.c: Likewise.
9708         * build-aux/ncftpput-ftp: Likewise.
9709
9710 2010-01-26  Eric Blake  <ebb9@byu.net>
9711
9712         ignore-value: update recommended header name
9713         * modules/ignore-value (Include): Only use <> for headers that
9714         exist in glibc.
9715
9716 2010-01-26  Jim Meyering  <meyering@redhat.com>
9717
9718         test-userspec.c: avoid compiler warnings
9719         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
9720         and "initialization discards qualifiers..." warnings.
9721         Put the first "uid" in its own scope, and make char* members "const".
9722
9723 2010-01-25  Bruno Haible  <bruno@clisp.org>
9724
9725         gnulib-tool: Make warning diagnostics consistent.
9726         * gnulib-tool (func_warning): New function.
9727         Use it everywhere where gnulib-tool produces output to stderr and it is
9728         not a fatal error.
9729
9730 2010-01-25  Bruno Haible  <bruno@clisp.org>
9731
9732         Fix test dependencies.
9733         * modules/xstrtol-tests (Depends-on): Add inttypes.
9734         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
9735
9736 2010-01-25 Pádraig Brady <P@draigBrady.com>
9737
9738         syntax-check: detect incorrect boolean macro values in config.h
9739         * modules/maintainer-makefile (configure.ac): Parameterize the location
9740         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
9741         The logic is from Eric Blake and the location indicated by Jim Meyering.
9742         Note the more natural CONFIG_HEADER name is prohibited by automake
9743         for backwards compatibility reasons.
9744         * top/maint.mk (sc_Wundef_boolean): New rule.
9745
9746 2010-01-25  Jim Meyering  <meyering@redhat.com>
9747
9748         bootstrap: detect MacOS 10.6's shasum, too
9749         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
9750         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
9751
9752 2010-01-23  Jim Meyering  <meyering@redhat.com>
9753
9754         xstrtoll: new module
9755         * modules/xstrtoll: New file.
9756         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
9757         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
9758         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
9759         ./configure fails if you use this module and lack "long long".
9760         * modules/xstrtoll-tests: New module.
9761         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
9762         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
9763         new init.sh-based test framework.
9764
9765 2010-01-24  Bruno Haible  <bruno@clisp.org>
9766
9767         Tests for module 'yn'.
9768         * modules/yn-tests: New file.
9769         * tests/test-yn.c: New file.
9770
9771         Tests for module 'y1'.
9772         * modules/y1-tests: New file.
9773         * tests/test-y1.c: New file.
9774
9775         Tests for module 'y0'.
9776         * modules/y0-tests: New file.
9777         * tests/test-y0.c: New file.
9778
9779         Tests for module 'tanh'.
9780         * modules/tanh-tests: New file.
9781         * tests/test-tanh.c: New file.
9782
9783         Tests for module 'tan'.
9784         * modules/tan-tests: New file.
9785         * tests/test-tan.c: New file.
9786
9787         Tests for module 'sqrt'.
9788         * modules/sqrt-tests: New file.
9789         * tests/test-sqrt.c: New file.
9790
9791         Tests for module 'sinh'.
9792         * modules/sinh-tests: New file.
9793         * tests/test-sinh.c: New file.
9794
9795         Tests for module 'sin'.
9796         * modules/sin-tests: New file.
9797         * tests/test-sin.c: New file.
9798
9799         Tests for module 'rint'.
9800         * modules/rint-tests: New file.
9801         * tests/test-rint.c: New file.
9802
9803         Tests for module 'remainder'.
9804         * modules/remainder-tests: New file.
9805         * tests/test-remainder.c: New file.
9806
9807         Tests for module 'pow'.
9808         * modules/pow-tests: New file.
9809         * tests/test-pow.c: New file.
9810
9811         Tests for module 'nextafter'.
9812         * modules/nextafter-tests: New file.
9813         * tests/test-nextafter.c: New file.
9814
9815         Tests for module 'modf'.
9816         * modules/modf-tests: New file.
9817         * tests/test-modf.c: New file.
9818
9819         Tests for module 'logb'.
9820         * modules/logb-tests: New file.
9821         * tests/test-logb.c: New file.
9822
9823         Tests for module 'log1p'.
9824         * modules/log1p-tests: New file.
9825         * tests/test-log1p.c: New file.
9826
9827         Tests for module 'log10'.
9828         * modules/log10-tests: New file.
9829         * tests/test-log10.c: New file.
9830
9831         Tests for module 'log'.
9832         * modules/log-tests: New file.
9833         * tests/test-log.c: New file.
9834
9835         Tests for module 'lgamma'.
9836         * modules/lgamma-tests: New file.
9837         * tests/test-lgamma.c: New file.
9838
9839         Tests for module 'ldexp'.
9840         * modules/ldexp-tests: New file.
9841         * tests/test-ldexp.c: New file.
9842
9843         Tests for module 'jn'.
9844         * modules/jn-tests: New file.
9845         * tests/test-jn.c: New file.
9846
9847         Tests for module 'j1'.
9848         * modules/j1-tests: New file.
9849         * tests/test-j1.c: New file.
9850
9851         Tests for module 'j0'.
9852         * modules/j0-tests: New file.
9853         * tests/test-j0.c: New file.
9854
9855         Tests for module 'hypot'.
9856         * modules/hypot-tests: New file.
9857         * tests/test-hypot.c: New file.
9858
9859         Tests for module 'fmod'.
9860         * modules/fmod-tests: New file.
9861         * tests/test-fmod.c: New file.
9862
9863         Tests for module 'fabs'.
9864         * modules/fabs-tests: New file.
9865         * tests/test-fabs.c: New file.
9866
9867         Tests for module 'exp'.
9868         * modules/exp-tests: New file.
9869         * tests/test-exp.c: New file.
9870
9871         Tests for module 'erfc'.
9872         * modules/erfc-tests: New file.
9873         * tests/test-erfc.c: New file.
9874
9875         Tests for module 'erf'.
9876         * modules/erf-tests: New file.
9877         * tests/test-erf.c: New file.
9878
9879         Tests for module 'cosh'.
9880         * modules/cosh-tests: New file.
9881         * tests/test-cosh.c: New file.
9882
9883         Tests for module 'cos'.
9884         * modules/cos-tests: New file.
9885         * tests/test-cos.c: New file.
9886
9887         Tests for module 'copysign'.
9888         * modules/copysign-tests: New file.
9889         * tests/test-copysign.c: New file.
9890
9891         Tests for module 'cbrt'.
9892         * modules/cbrt-tests: New file.
9893         * tests/test-cbrt.c: New file.
9894
9895         Tests for module 'atan2'.
9896         * modules/atan2-tests: New file.
9897         * tests/test-atan2.c: New file.
9898
9899         Tests for module 'atan'.
9900         * modules/atan-tests: New file.
9901         * tests/test-atan.c: New file.
9902
9903         Tests for module 'asin'.
9904         * modules/asin-tests: New file.
9905         * tests/test-asin.c: New file.
9906
9907         Tests for module 'acos'.
9908         * modules/acos-tests: New file.
9909         * tests/test-acos.c: New file.
9910
9911 2010-01-24  Bruno Haible  <bruno@clisp.org>
9912
9913         Fix tests for common <math.h> functions.
9914         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
9915         code snippet that references the function pointer, rather than merely
9916         calling the function. Substitute the FUNC_LIBM variable.
9917         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
9918         * modules/acos (configure.ac): Likewise.
9919         * modules/asin (configure.ac): Likewise.
9920         * modules/atan (configure.ac): Likewise.
9921         * modules/atan2 (configure.ac): Likewise.
9922         * modules/cbrt (configure.ac): Likewise.
9923         * modules/copysign (configure.ac): Likewise.
9924         * modules/cos (configure.ac): Likewise.
9925         * modules/cosh (configure.ac): Likewise.
9926         * modules/erf (configure.ac): Likewise.
9927         * modules/erfc (configure.ac): Likewise.
9928         * modules/exp (configure.ac): Likewise.
9929         * modules/fabs (configure.ac): Likewise.
9930         * modules/fmod (configure.ac): Likewise.
9931         * modules/hypot (configure.ac): Likewise.
9932         * modules/j0 (configure.ac): Likewise.
9933         * modules/j1 (configure.ac): Likewise.
9934         * modules/jn (configure.ac): Likewise.
9935         * modules/ldexp (configure.ac): Likewise.
9936         * modules/lgamma (configure.ac): Likewise.
9937         * modules/log (configure.ac): Likewise.
9938         * modules/log10 (configure.ac): Likewise.
9939         * modules/log1p (configure.ac): Likewise.
9940         * modules/logb (configure.ac): Likewise.
9941         * modules/modf (configure.ac): Likewise.
9942         * modules/nextafter (configure.ac): Likewise.
9943         * modules/pow (configure.ac): Likewise.
9944         * modules/remainder (configure.ac): Likewise.
9945         * modules/rint (configure.ac): Likewise.
9946         * modules/sin (configure.ac): Likewise.
9947         * modules/sinh (configure.ac): Likewise.
9948         * modules/tan (configure.ac): Likewise.
9949         * modules/tanh (configure.ac): Likewise.
9950         * modules/y0 (configure.ac): Likewise.
9951         * modules/y1 (configure.ac): Likewise.
9952         * modules/yn (configure.ac): Likewise.
9953
9954 2010-01-24  Bruno Haible  <bruno@clisp.org>
9955
9956         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
9957         * tests/test-acosl.c (x): New variable.
9958         (main): Store argument in x and fetch it from x.
9959         * tests/test-asinl.c (x): New variable.
9960         (main): Store argument in x and fetch it from x.
9961         * tests/test-atanl.c (x): New variable.
9962         (main): Store argument in x and fetch it from x.
9963         * tests/test-cosl.c (x): New variable.
9964         (main): Store argument in x and fetch it from x.
9965         * tests/test-expl.c (x): New variable.
9966         (main): Store argument in x and fetch it from x.
9967         * tests/test-logl.c (x): New variable.
9968         (main): Store argument in x and fetch it from x.
9969         * tests/test-sinl.c (x): New variable.
9970         (main): Store argument in x and fetch it from x.
9971         * tests/test-sqrtl.c (x): New variable.
9972         (main): Store argument in x and fetch it from x.
9973         * tests/test-tanl.c (x): New variable.
9974         (main): Store argument in x and fetch it from x.
9975
9976 2010-01-24  Bruno Haible  <bruno@clisp.org>
9977
9978         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
9979         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
9980         assignments to the initial TESTS_ENVIRONMENT.
9981         * doc/gnulib.texi (Unit test modules): Document it.
9982         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
9983         TESTS_ENVIRONMENT.
9984         * modules/btowc-tests (Makefile.am): Likewise.
9985         * modules/c-stack-tests (Makefile.am): Likewise.
9986         * modules/c-strcase-tests (Makefile.am): Likewise.
9987         * modules/copy-file-tests (Makefile.am): Likewise.
9988         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9989         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9990         * modules/mbrtowc-tests (Makefile.am): Likewise.
9991         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9992         * modules/mbscasestr-tests (Makefile.am): Likewise.
9993         * modules/mbschr-tests (Makefile.am): Likewise.
9994         * modules/mbscspn-tests (Makefile.am): Likewise.
9995         * modules/mbsinit-tests (Makefile.am): Likewise.
9996         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9997         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9998         * modules/mbspbrk-tests (Makefile.am): Likewise.
9999         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10000         * modules/mbsrchr-tests (Makefile.am): Likewise.
10001         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10002         * modules/mbsspn-tests (Makefile.am): Likewise.
10003         * modules/mbsstr-tests (Makefile.am): Likewise.
10004         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10005         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10006         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10007         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10008         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10009         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10010         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10011         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10012         * modules/wcrtomb-tests (Makefile.am): Likewise.
10013         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10014         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10015         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
10016         assignments from TESTS_ENVIRONMENT.
10017         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
10018         augmentation.
10019         * modules/argp-version-etc-tests (Makefile.am): Likewise.
10020         * modules/atexit-tests (Makefile.am): Likewise.
10021         * modules/binary-io-tests (Makefile.am): Likewise.
10022         * modules/closein-tests (Makefile.am): Likewise.
10023         * modules/dprintf-posix-tests (Makefile.am): Likewise.
10024         * modules/exclude-tests (Makefile.am): Likewise.
10025         * modules/fflush-tests (Makefile.am): Likewise.
10026         * modules/fpending-tests (Makefile.am): Likewise.
10027         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10028         * modules/freadahead-tests (Makefile.am): Likewise.
10029         * modules/freadptr-tests (Makefile.am): Likewise.
10030         * modules/freadseek-tests (Makefile.am): Likewise.
10031         * modules/fseek-tests (Makefile.am): Likewise.
10032         * modules/fseeko-tests (Makefile.am): Likewise.
10033         * modules/ftell-tests (Makefile.am): Likewise.
10034         * modules/ftello-tests (Makefile.am): Likewise.
10035         * modules/idpriv-drop-tests (Makefile.am): Likewise.
10036         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
10037         * modules/lseek-tests (Makefile.am): Likewise.
10038         * modules/parse-duration-tests (Makefile.am): Likewise.
10039         * modules/perror-tests (Makefile.am): Likewise.
10040         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
10041         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
10042         * modules/pipe-tests (Makefile.am): Likewise.
10043         * modules/pread-tests (Makefile.am): Likewise.
10044         * modules/printf-posix-tests (Makefile.am): Likewise.
10045         * modules/select-tests (Makefile.am): Likewise.
10046         * modules/sigpipe-tests (Makefile.am): Likewise.
10047         * modules/tsearch-tests (Makefile.am): Likewise.
10048         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10049         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10050         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10051         * modules/uniwidth/width-tests (Makefile.am): Likewise.
10052         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
10053         * modules/version-etc-tests (Makefile.am): Likewise.
10054         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10055         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10056         * modules/xalloc-die-tests (Makefile.am): Likewise.
10057         * modules/xprintf-posix-tests (Makefile.am): Likewise.
10058         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10059         * modules/xstrtol-tests (Makefile.am): Likewise.
10060         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10061         * modules/yesno-tests (Makefile.am): Likewise.
10062         Suggested by Jim Meyering.
10063
10064 2010-01-24  Bruno Haible  <bruno@clisp.org>
10065
10066         More documentation.
10067         * doc/gnulib.texi (Writing modules): New chapter.
10068         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
10069         the new chapter.
10070
10071 2010-01-24  Jim Meyering  <meyering@redhat.com>
10072
10073         maint.mk: do not prepend "./" after filtering
10074         * top/maint.mk (_prepend_srcdir_prefix): New variable
10075         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
10076         "./" when $(srcdir) is ".".
10077
10078         define STREQ(a,b) consistently, removing useless parentheses
10079         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
10080         since the only risk is that "a" or "b" contains an unparenthesized
10081         comma, but if either did that, STREQ would have 3 or more arguments.
10082         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
10083         * lib/fts.c (STREQ): Remove unnecessary parentheses.
10084         * lib/hash-triple.c (STREQ): Likewise.
10085         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
10086         * lib/getugroups.c (STREQ): Likewise.
10087
10088 2010-01-23  Jim Meyering  <meyering@redhat.com>
10089
10090         maint.mk: fix syntax-check in a non-srcdir build directory
10091         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
10092         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
10093
10094 2010-01-22  Jim Meyering  <meyering@redhat.com>
10095
10096         userspec: add unit tests
10097         * tests/test-userspec.c: New file.
10098         * modules/userspec-tests: Likewise.
10099
10100 2010-01-21  Jim Meyering  <meyering@redhat.com>
10101
10102         maint.mk: handle source file names containing "." robustly
10103         * top/maint.mk (_dot_escaped_srcdir): Define.
10104         (VC_LIST): Use it in LHS of sed substitution.
10105
10106 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
10107
10108         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
10109         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
10110         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
10111         from a non-srcdir build.
10112
10113 2010-01-20  Eric Blake  <ebb9@byu.net>
10114
10115         warn-on-use: use instead of link-warning
10116         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
10117         * modules/unistd (Depends-on, Makefile.am): Likewise.
10118         * modules/arpa_inet (Depends-on): Replace link-warning with
10119         warn-on-use.
10120         (Makefile.am): Update rules accordingly.
10121         * modules/ctype (Depends-on, Makefile.am): Likewise.
10122         * modules/dirent (Depends-on, Makefile.am): Likewise.
10123         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
10124         * modules/inttypes (Depends-on, Makefile.am): Likewise.
10125         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10126         * modules/locale (Depends-on, Makefile.am): Likewise.
10127         * modules/math (Depends-on, Makefile.am): Likewise.
10128         * modules/search (Depends-on, Makefile.am): Likewise.
10129         * modules/signal (Depends-on, Makefile.am): Likewise.
10130         * modules/spawn (Depends-on, Makefile.am): Likewise.
10131         * modules/stdlib (Depends-on, Makefile.am): Likewise.
10132         * modules/string (Depends-on, Makefile.am): Likewise.
10133         * modules/strings (Depends-on, Makefile.am): Likewise.
10134         * modules/sys_file (Depends-on, Makefile.am): Likewise.
10135         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
10136         * modules/sys_select (Depends-on, Makefile.am): Likewise.
10137         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
10138         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
10139         * modules/sys_times (Depends-on, Makefile.am): Likewise.
10140         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10141         * modules/wchar (Depends-on, Makefile.am): Likewise.
10142         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
10143         should be poisoned.
10144         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
10145         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
10146         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
10147         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10148         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10149         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10150         * m4/math_h.m4 (gl_MATH_H): Likewise.
10151         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10152         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10153         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10154         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
10155         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10156         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
10157         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10158         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
10159         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10160         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10161         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10162         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10163         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10164         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10165         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10166         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10167         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
10168         GL_LINK_WARNING.
10169         * lib/ctype.in.h: Likewise.
10170         * lib/dirent.in.h: Likewise.
10171         * lib/fcntl.in.h: Likewise.
10172         * lib/inttypes.in.h: Likewise.
10173         * lib/langinfo.in.h: Likewise.
10174         * lib/locale.in.h: Likewise.
10175         * lib/math.in.h: Likewise.
10176         * lib/search.in.h: Likewise.
10177         * lib/signal.in.h: Likewise.
10178         * lib/spawn.in.h: Likewise.
10179         * lib/stdio.in.h: Likewise.
10180         * lib/stdlib.in.h: Likewise.
10181         * lib/string.in.h: Likewise.
10182         * lib/strings.in.h: Likewise.
10183         * lib/sys_file.in.h: Likewise.
10184         * lib/sys_ioctl.in.h: Likewise.
10185         * lib/sys_select.in.h: Likewise.
10186         * lib/sys_socket.in.h: Likewise.
10187         * lib/sys_stat.in.h: Likewise.
10188         * lib/sys_times.in.h: Likewise.
10189         * lib/sys_utsname.in.h: Likewise.
10190         * lib/unistd.in.h: Likewise.
10191         * lib/wchar.in.h: Likewise.
10192
10193 2010-01-20  Bruno Haible  <bruno@clisp.org>
10194
10195         Avoid duplicate -lm.
10196         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
10197         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
10198         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
10199         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
10200         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
10201         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
10202         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
10203         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
10204         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
10205         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
10206         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
10207         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10208         Reported by Paolo Bonzini.
10209
10210 2010-01-19  Bruno Haible  <bruno@clisp.org>
10211
10212         langinfo, nl_langinfo: Relicense under LGPLv2+.
10213         * modules/langinfo (License): Change to LGPLv2+.
10214         * modules/nl_langinfo (License): Likewise.
10215         Patch by David Lutterkort <lutter@redhat.com>.
10216
10217 2010-01-19  Bruno Haible  <bruno@clisp.org>
10218
10219         Avoid compilation error with cc on OSF/1 5.1.
10220         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
10221         statement, not before.
10222         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10223
10224 2010-01-18  Bruno Haible  <bruno@clisp.org>
10225
10226         Avoid a link error due to the __printf__ symbol.
10227         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
10228         and 2.6.x.
10229         (__format__, __printf__): Remove definitions.
10230         * lib/argp-fmtstream.h: Likewise.
10231         * lib/argp.h: Likewise.
10232         * lib/error.h: Likewise.
10233         * lib/vasnprintf.h: Likewise.
10234         * lib/xprintf.h: Likewise.
10235         * lib/xvasprintf.h: Likewise.
10236         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10237
10238 2010-01-18  Bruno Haible  <bruno@clisp.org>
10239
10240         Tests for module 'tanl'.
10241         * modules/tanl-tests: New file.
10242         * tests/test-tanl.c: New file.
10243
10244         Tests for module 'sqrtl'.
10245         * modules/sqrtl-tests: New file.
10246         * tests/test-sqrtl.c: New file.
10247
10248         Tests for module 'sinl'.
10249         * modules/sinl-tests: New file.
10250         * tests/test-sinl.c: New file.
10251
10252         Tests for module 'logl'.
10253         * modules/logl-tests: New file.
10254         * tests/test-logl.c: New file.
10255
10256         Tests for module 'expl'.
10257         * modules/expl-tests: New file.
10258         * tests/test-expl.c: New file.
10259
10260         Tests for module 'cosl'.
10261         * modules/cosl-tests: New file.
10262         * tests/test-cosl.c: New file.
10263
10264         Tests for module 'atanl'.
10265         * modules/atanl-tests: New file.
10266         * tests/test-atanl.c: New file.
10267
10268         Tests for module 'asinl'.
10269         * modules/asinl-tests: New file.
10270         * tests/test-asinl.c: New file.
10271
10272         Tests for module 'acosl'.
10273         * modules/acosl-tests: New file.
10274         * tests/test-acosl.c: New file.
10275
10276         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10277         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
10278         tanl): Use the standard gnulib idiom.
10279         * lib/cosl.c: Don't include trigl.c and sincosl.c.
10280         * lib/sinl.c: Likewise.
10281         * lib/tanl.c: Don't include trigl.c.
10282         (kernel_tanl): Make static.
10283         * lib/sincosl.c: Include trigl.h first.
10284         * lib/trigl.c: Likewise.
10285         * m4/acosl.m4: New file.
10286         * m4/asinl.m4: New file.
10287         * m4/atanl.m4: New file.
10288         * m4/cosl.m4: New file.
10289         * m4/expl.m4: New file.
10290         * m4/logl.m4: New file.
10291         * m4/sinl.m4: New file.
10292         * m4/sqrtl.m4: New file.
10293         * m4/tanl.m4: New file.
10294         * m4/mathl.m4: Remove file.
10295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
10296         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10297         Don't initialize GNULIB_MATHL.
10298         * modules/acosl: New file.
10299         * modules/asinl: New file.
10300         * modules/atanl: New file.
10301         * modules/cosl: New file.
10302         * modules/expl: New file.
10303         * modules/logl: New file.
10304         * modules/sinl: New file.
10305         * modules/sqrtl: New file.
10306         * modules/tanl: New file.
10307         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
10308         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
10309         substitute GNULIB_MATHL.
10310         * modules/mathl: Rewritten.
10311         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
10312         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
10313         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
10314         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
10315         * doc/posix-functions/expl.texi: Mention the 'expl' module.
10316         * doc/posix-functions/logl.texi: Mention the 'logl' module.
10317         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
10318         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
10319         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
10320
10321 2010-01-18  Bruno Haible  <bruno@clisp.org>
10322
10323         sqrt: Make gl_FUNC_SQRT requirable.
10324         * m4/sqrt.m4: New file.
10325         * modules/sqrt (Files): Add it.
10326         (configure.ac): Invoke gl_FUNC_SQRT.
10327
10328 2010-01-18  Bruno Haible  <bruno@clisp.org>
10329
10330         New modules for common <math.h> functions.
10331         * m4/mathfunc.m4: New file.
10332         * modules/acos: New file.
10333         * modules/asin: New file.
10334         * modules/atan: New file.
10335         * modules/atan2: New file.
10336         * modules/cbrt: New file.
10337         * modules/copysign: New file.
10338         * modules/cos: New file.
10339         * modules/cosh: New file.
10340         * modules/erf: New file.
10341         * modules/erfc: New file.
10342         * modules/exp: New file.
10343         * modules/fabs: New file.
10344         * modules/fmod: New file.
10345         * modules/hypot: New file.
10346         * modules/j0: New file.
10347         * modules/j1: New file.
10348         * modules/jn: New file.
10349         * modules/ldexp: New file.
10350         * modules/lgamma: New file.
10351         * modules/log: New file.
10352         * modules/log10: New file.
10353         * modules/log1p: New file.
10354         * modules/logb: New file.
10355         * modules/modf: New file.
10356         * modules/nextafter: New file.
10357         * modules/pow: New file.
10358         * modules/remainder: New file.
10359         * modules/rint: New file.
10360         * modules/sin: New file.
10361         * modules/sinh: New file.
10362         * modules/sqrt: New file.
10363         * modules/tan: New file.
10364         * modules/tanh: New file.
10365         * modules/y0: New file.
10366         * modules/y1: New file.
10367         * modules/yn: New file.
10368         * doc/posix-functions/acos.texi: Mention the 'acos' module.
10369         * doc/posix-functions/asin.texi: Mention the 'asin' module.
10370         * doc/posix-functions/atan.texi: Mention the 'atan' module.
10371         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
10372         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
10373         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
10374         * doc/posix-functions/cos.texi: Mention the 'cos' module.
10375         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
10376         * doc/posix-functions/erf.texi: Mention the 'erf' module.
10377         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
10378         * doc/posix-functions/exp.texi: Mention the 'exp' module.
10379         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
10380         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
10381         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
10382         * doc/posix-functions/j0.texi: Mention the 'j0' module.
10383         * doc/posix-functions/j1.texi: Mention the 'j1' module.
10384         * doc/posix-functions/jn.texi: Mention the 'jn' module.
10385         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
10386         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
10387         * doc/posix-functions/log.texi: Mention the 'log' module.
10388         * doc/posix-functions/log10.texi: Mention the 'log10' module.
10389         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
10390         * doc/posix-functions/logb.texi: Mention the 'logb' module.
10391         * doc/posix-functions/modf.texi: Mention the 'modf' module.
10392         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
10393         * doc/posix-functions/pow.texi: Mention the 'pow' module.
10394         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
10395         * doc/posix-functions/rint.texi: Mention the 'rint' module.
10396         * doc/posix-functions/sin.texi: Mention the 'sin' module.
10397         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
10398         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
10399         * doc/posix-functions/tan.texi: Mention the 'tan' module.
10400         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
10401         * doc/posix-functions/y0.texi: Mention the 'y0' module.
10402         * doc/posix-functions/y1.texi: Mention the 'y1' module.
10403         * doc/posix-functions/yn.texi: Mention the 'yn' module.
10404
10405 2010-01-18  Jim Meyering  <meyering@redhat.com>
10406
10407         ignore-value: relax license to LGPLv2+
10408         * modules/ignore-value (License): Relax to LGPLv2+.
10409
10410         getdate: don't leak when TZ contains two or more '"'s
10411         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
10412         double quote in TZ after the first one.
10413
10414         readtokens: do not leak internal token_lengths buffer
10415         * lib/readtokens.c (readtokens): Free the local, lengths,
10416         when the supplied "token_lengths" parameter is NULL.
10417
10418 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10419
10420         Fix a couple of missing LIBTHREAD link failures on AIX.
10421         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
10422         $(LIBTHREAD).
10423         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
10424
10425         Link test-poll against INET_PTON_LIB.
10426         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
10427         for inet_pton on Solaris 10.
10428
10429 2010-01-17  Bruno Haible  <bruno@clisp.org>
10430
10431         unistdio/*-sprintf: Fix typo in module description.
10432         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
10433         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
10434         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
10435         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
10436         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
10437         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
10438         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
10439         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10440
10441 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10442
10443         gnulib-tool: fix filelist for AIX, HP-UX ksh.
10444         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
10445         variables in shell case patterns, for AIX and HP-UX ksh.
10446
10447         Split large sed scripts, for HP-UX sed.
10448         * modules/stdio: Split sed scripts around 50 sed commands,
10449         to avoid HP-UX limit of 99 commands, in the near future.
10450         * modules/string: Likewise.
10451         * modules/unistd: Likewise.
10452
10453         gnulib-tool: avoid writing in the current directory.
10454         * gnulib-tool (func_emit_lib_Makefile_am)
10455         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
10456         not in the current directory, so concurrent gnulib-tool
10457         instances do not interfere.
10458
10459 2010-01-16  Jim Meyering  <meyering@redhat.com>
10460
10461         doc: update users.txt
10462         * users.txt: Add grep.
10463         (diffutils, gzip): Update URLs.
10464
10465 2010-01-12  Bruno Haible  <bruno@clisp.org>
10466
10467         posix_spawn: Avoid test failure on Cygwin.
10468         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
10469         characters.
10470         Reported by Simon Josefsson.
10471
10472 2010-01-12  Bruno Haible  <bruno@clisp.org>
10473
10474         * tests/test-cond.c (main): When skipping the test, show the reason.
10475
10476 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10477
10478         * lib/striconv.c (str_cd_iconv): Avoid if before free.
10479
10480 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10481
10482         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
10483         VC_LIST_ALWAYS_EXCLUDE_REGEX.
10484
10485 2010-01-12  Eric Blake  <ebb9@byu.net>
10486
10487         build: guarantee AS_VAR_IF
10488         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
10489         (gl_AS_VAR_IF): Move...
10490         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
10491         Reported by Simon Josefsson.
10492
10493 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10494
10495         * lib/stdio.in.h: Fix typo.
10496
10497 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10498
10499         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
10500         libgpg-error.
10501
10502 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10503
10504         * tests/test-xalloc-die.sh: Use $EXEEXT.
10505
10506 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10507             Bruno Haible  <bruno@clisp.org>
10508
10509         getlogin, getlogin_r: Avoid test failure.
10510         * tests/test-getlogin.c: Include <stdio.h>.
10511         (main): Skip the test when the function fails because stdin is not a
10512         tty.
10513         * tests/test-getlogin_r.c: Include <stdio.h>.
10514         (main): Skip the test when the function fails because stdin is not a
10515         tty.
10516
10517 2010-01-11  Eric Blake  <ebb9@byu.net>
10518
10519         tests: avoid more large file warnings
10520         * tests/test-fflush.c: Avoid warning about ftell use.
10521         * tests/test-fseek.c: Avoid warning about fseek use.
10522
10523 2010-01-10  Bruno Haible  <bruno@clisp.org>
10524
10525         nproc: Work better on Linux when /proc and /sys are not mounted.
10526         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
10527         as lower bound when, on glibc/Linux systems,
10528         sysconf (_SC_NPROCESSORS_CONF) returns 1.
10529         Suggested by Pádraig Brady <P@draigbrady.com>.
10530         Reported by Dmitry V. Levin <ldv@altlinux.org>.
10531
10532         nproc: Refactor.
10533         * lib/nproc.c (num_processors_via_affinity_mask): New function,
10534         extracted from num_processors.
10535         (num_processors): Call it.
10536
10537 2010-01-11  Jim Meyering  <meyering@redhat.com>
10538
10539         utimecmp: avoid new warning from upcoming gcc-4.5.0
10540         * lib/utimecmp.c (BILLION): Define using #define rather than an
10541         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
10542
10543 2010-01-11  Eric Blake  <ebb9@byu.net>
10544
10545         math: add portability warnings for classification macros
10546         * modules/math (Depends-on): Add warn-on-use.
10547         (Makefile.am): Provide new substitutions.
10548         * m4/math_h.m4 (gl_MATH_H): Require inline.
10549         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
10550         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
10551         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
10552         implement warnings.
10553
10554         unistd: warn on use of environ without module
10555         * modules/unistd (Depends-on): Add warn-on-use.
10556         (Makefile.am): Provide new substitutions.
10557         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
10558         * lib/unistd.in.h (environ): Wrap with a warning helper function.
10559
10560         stdio: warn on suspicious uses
10561         * modules/stdio (Depends-on): Add warn-on-use.
10562         (Makefile.am): Provide new substitutions.
10563         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
10564         fseeko.
10565         * lib/stdio.in.h (gets): Always warn on use.
10566         (fseek, ftell): Adjust when warnings are issued, and honor
10567         _GL_NO_LARGE_FILES as a way to silence the warning.
10568         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
10569         any warning about large file offsets.
10570         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
10571         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
10572         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
10573         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
10574         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
10575         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
10576         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
10577         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
10578
10579         warn-on-use: new module
10580         * modules/warn-on-use: New file.
10581         * build-aux/warn-on-use.h: Likewise.
10582         * m4/warn-on-use.m4: Likewise.
10583         * MODULES.html.sh (Support for building): Mention it.
10584
10585 2010-01-10  Bruno Haible  <bruno@clisp.org>
10586
10587         Tests for module 'unistr/u32-strdup'.
10588         * modules/unistr/u32-strdup-tests: New file.
10589         * tests/unistr/test-u32-strdup.c: New file.
10590
10591         Tests for module 'unistr/u16-strdup'.
10592         * modules/unistr/u16-strdup-tests: New file.
10593         * tests/unistr/test-u16-strdup.c: New file.
10594
10595         Tests for module 'unistr/u8-strdup'.
10596         * modules/unistr/u8-strdup-tests: New file.
10597         * tests/unistr/test-u8-strdup.c: New file.
10598         * tests/unistr/test-strdup.h: New file.
10599
10600         Tests for module 'unistr/u32-strncmp'.
10601         * modules/unistr/u32-strncmp-tests: New file.
10602         * tests/unistr/test-u32-strncmp.c: New file.
10603
10604         Tests for module 'unistr/u16-strncmp'.
10605         * modules/unistr/u16-strncmp-tests: New file.
10606         * tests/unistr/test-u16-strncmp.c: New file.
10607
10608         Tests for module 'unistr/u8-strncmp'.
10609         * modules/unistr/u8-strncmp-tests: New file.
10610         * tests/unistr/test-u8-strncmp.c: New file.
10611         * tests/unistr/test-strncmp.h: New file.
10612
10613         Tests for module 'unistr/u32-strcoll'.
10614         * modules/unistr/u32-strcoll-tests: New file.
10615         * tests/unistr/test-u32-strcoll.c: New file.
10616
10617         Tests for module 'unistr/u16-strcoll'.
10618         * modules/unistr/u16-strcoll-tests: New file.
10619         * tests/unistr/test-u16-strcoll.c: New file.
10620
10621         Tests for module 'unistr/u8-strcoll'.
10622         * modules/unistr/u8-strcoll-tests: New file.
10623         * tests/unistr/test-u8-strcoll.c: New file.
10624
10625         Tests for module 'unistr/u32-strcmp'.
10626         * modules/unistr/u32-strcmp-tests: New file.
10627         * tests/unistr/test-u32-strcmp.c: New file.
10628         * tests/unistr/test-u32-strcmp.h: New file.
10629
10630         Tests for module 'unistr/u16-strcmp'.
10631         * modules/unistr/u16-strcmp-tests: New file.
10632         * tests/unistr/test-u16-strcmp.c: New file.
10633         * tests/unistr/test-u16-strcmp.h: New file.
10634
10635         Tests for module 'unistr/u8-strcmp'.
10636         * modules/unistr/u8-strcmp-tests: New file.
10637         * tests/unistr/test-u8-strcmp.c: New file.
10638         * tests/unistr/test-u8-strcmp.h: New file.
10639         * tests/unistr/test-strcmp.h: New file.
10640
10641         Tests for module 'unistr/u32-strncat'.
10642         * modules/unistr/u32-strncat-tests: New file.
10643         * tests/unistr/test-u32-strncat.c: New file.
10644
10645         Tests for module 'unistr/u16-strncat'.
10646         * modules/unistr/u16-strncat-tests: New file.
10647         * tests/unistr/test-u16-strncat.c: New file.
10648
10649         Tests for module 'unistr/u8-strncat'.
10650         * modules/unistr/u8-strncat-tests: New file.
10651         * tests/unistr/test-u8-strncat.c: New file.
10652         * tests/unistr/test-strncat.h: New file.
10653
10654         Tests for module 'unistr/u32-strcat'.
10655         * modules/unistr/u32-strcat-tests: New file.
10656         * tests/unistr/test-u32-strcat.c: New file.
10657
10658         Tests for module 'unistr/u16-strcat'.
10659         * modules/unistr/u16-strcat-tests: New file.
10660         * tests/unistr/test-u16-strcat.c: New file.
10661
10662         Tests for module 'unistr/u8-strcat'.
10663         * modules/unistr/u8-strcat-tests: New file.
10664         * tests/unistr/test-u8-strcat.c: New file.
10665         * tests/unistr/test-strcat.h: New file.
10666
10667         Tests for module 'unistr/u32-stpncpy'.
10668         * modules/unistr/u32-stpncpy-tests: New file.
10669         * tests/unistr/test-u32-stpncpy.c: New file.
10670
10671         Tests for module 'unistr/u16-stpncpy'.
10672         * modules/unistr/u16-stpncpy-tests: New file.
10673         * tests/unistr/test-u16-stpncpy.c: New file.
10674
10675         Tests for module 'unistr/u8-stpncpy'.
10676         * modules/unistr/u8-stpncpy-tests: New file.
10677         * tests/unistr/test-u8-stpncpy.c: New file.
10678         * tests/unistr/test-stpncpy.h: New file.
10679
10680         Tests for module 'unistr/u32-strncpy'.
10681         * modules/unistr/u32-strncpy-tests: New file.
10682         * tests/unistr/test-u32-strncpy.c: New file.
10683
10684         Tests for module 'unistr/u16-strncpy'.
10685         * modules/unistr/u16-strncpy-tests: New file.
10686         * tests/unistr/test-u16-strncpy.c: New file.
10687
10688         Tests for module 'unistr/u8-strncpy'.
10689         * modules/unistr/u8-strncpy-tests: New file.
10690         * tests/unistr/test-u8-strncpy.c: New file.
10691         * tests/unistr/test-strncpy.h: New file.
10692
10693         Tests for module 'unistr/u32-stpcpy'.
10694         * modules/unistr/u32-stpcpy-tests: New file.
10695         * tests/unistr/test-u32-stpcpy.c: New file.
10696
10697         Tests for module 'unistr/u16-stpcpy'.
10698         * modules/unistr/u16-stpcpy-tests: New file.
10699         * tests/unistr/test-u16-stpcpy.c: New file.
10700
10701         Tests for module 'unistr/u8-stpcpy'.
10702         * modules/unistr/u8-stpcpy-tests: New file.
10703         * tests/unistr/test-u8-stpcpy.c: New file.
10704         * tests/unistr/test-stpcpy.h: New file.
10705
10706         Tests for module 'unistr/u32-strcpy'.
10707         * modules/unistr/u32-strcpy-tests: New file.
10708         * tests/unistr/test-u32-strcpy.c: New file.
10709
10710         Tests for module 'unistr/u16-strcpy'.
10711         * modules/unistr/u16-strcpy-tests: New file.
10712         * tests/unistr/test-u16-strcpy.c: New file.
10713
10714         Tests for module 'unistr/u8-strcpy'.
10715         * modules/unistr/u8-strcpy-tests: New file.
10716         * tests/unistr/test-u8-strcpy.c: New file.
10717         * tests/unistr/test-strcpy.h: New file.
10718
10719         Tests for module 'unistr/u32-strnlen'.
10720         * modules/unistr/u32-strnlen-tests: New file.
10721         * tests/unistr/test-u32-strnlen.c: New file.
10722
10723         Tests for module 'unistr/u16-strnlen'.
10724         * modules/unistr/u16-strnlen-tests: New file.
10725         * tests/unistr/test-u16-strnlen.c: New file.
10726
10727         Tests for module 'unistr/u8-strnlen'.
10728         * modules/unistr/u8-strnlen-tests: New file.
10729         * tests/unistr/test-u8-strnlen.c: New file.
10730         * tests/unistr/test-strnlen.h: New file.
10731
10732         Tests for module 'unistr/u32-strlen'.
10733         * modules/unistr/u32-strlen-tests: New file.
10734         * tests/unistr/test-u32-strlen.c: New file.
10735
10736         Tests for module 'unistr/u16-strlen'.
10737         * modules/unistr/u16-strlen-tests: New file.
10738         * tests/unistr/test-u16-strlen.c: New file.
10739
10740         Tests for module 'unistr/u8-strlen'.
10741         * modules/unistr/u8-strlen-tests: New file.
10742         * tests/unistr/test-u8-strlen.c: New file.
10743
10744         Tests for module 'unistr/u32-prev'.
10745         * modules/unistr/u32-prev-tests: New file.
10746         * tests/unistr/test-u32-prev.c: New file.
10747
10748         Tests for module 'unistr/u16-prev'.
10749         * modules/unistr/u16-prev-tests: New file.
10750         * tests/unistr/test-u16-prev.c: New file.
10751
10752         Tests for module 'unistr/u8-prev'.
10753         * modules/unistr/u8-prev-tests: New file.
10754         * tests/unistr/test-u8-prev.c: New file.
10755
10756         Tests for module 'unistr/u32-next'.
10757         * modules/unistr/u32-next-tests: New file.
10758         * tests/unistr/test-u32-next.c: New file.
10759
10760         Tests for module 'unistr/u16-next'.
10761         * modules/unistr/u16-next-tests: New file.
10762         * tests/unistr/test-u16-next.c: New file.
10763
10764         Tests for module 'unistr/u8-next'.
10765         * modules/unistr/u8-next-tests: New file.
10766         * tests/unistr/test-u8-next.c: New file.
10767
10768         Tests for module 'unistr/u32-strmbtouc'.
10769         * modules/unistr/u32-strmbtouc-tests: New file.
10770         * tests/unistr/test-u32-strmbtouc.c: New file.
10771
10772         Tests for module 'unistr/u16-strmbtouc'.
10773         * modules/unistr/u16-strmbtouc-tests: New file.
10774         * tests/unistr/test-u16-strmbtouc.c: New file.
10775
10776         Tests for module 'unistr/u8-strmbtouc'.
10777         * modules/unistr/u8-strmbtouc-tests: New file.
10778         * tests/unistr/test-u8-strmbtouc.c: New file.
10779
10780         Tests for module 'unistr/u32-strmblen'.
10781         * modules/unistr/u32-strmblen-tests: New file.
10782         * tests/unistr/test-u32-strmblen.c: New file.
10783
10784         Tests for module 'unistr/u16-strmblen'.
10785         * modules/unistr/u16-strmblen-tests: New file.
10786         * tests/unistr/test-u16-strmblen.c: New file.
10787
10788         Tests for module 'unistr/u8-strmblen'.
10789         * modules/unistr/u8-strmblen-tests: New file.
10790         * tests/unistr/test-u8-strmblen.c: New file.
10791
10792         Tests for module 'unistr/u32-cpy-alloc'.
10793         * modules/unistr/u32-cpy-alloc-tests: New file.
10794         * tests/unistr/test-u32-cpy-alloc.c: New file.
10795
10796         Tests for module 'unistr/u16-cpy-alloc'.
10797         * modules/unistr/u16-cpy-alloc-tests: New file.
10798         * tests/unistr/test-u16-cpy-alloc.c: New file.
10799
10800         Tests for module 'unistr/u8-cpy-alloc'.
10801         * modules/unistr/u8-cpy-alloc-tests: New file.
10802         * tests/unistr/test-u8-cpy-alloc.c: New file.
10803         * tests/unistr/test-cpy-alloc.h: New file.
10804
10805         Tests for module 'unistr/u32-mbsnlen'.
10806         * modules/unistr/u32-mbsnlen-tests: New file.
10807         * tests/unistr/test-u32-mbsnlen.c: New file.
10808
10809         Tests for module 'unistr/u16-mbsnlen'.
10810         * modules/unistr/u16-mbsnlen-tests: New file.
10811         * tests/unistr/test-u16-mbsnlen.c: New file.
10812
10813         Tests for module 'unistr/u8-mbsnlen'.
10814         * modules/unistr/u8-mbsnlen-tests: New file.
10815         * tests/unistr/test-u8-mbsnlen.c: New file.
10816
10817         Tests for module 'unistr/u32-chr'.
10818         * modules/unistr/u32-chr-tests: New file.
10819         * tests/unistr/test-u32-chr.c: New file.
10820
10821         Tests for module 'unistr/u16-chr'.
10822         * modules/unistr/u16-chr-tests: New file.
10823         * tests/unistr/test-u16-chr.c: New file.
10824
10825         Tests for module 'unistr/u8-chr'.
10826         * modules/unistr/u8-chr-tests: New file.
10827         * tests/unistr/test-u8-chr.c: New file.
10828         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
10829
10830         Tests for module 'unistr/u32-cmp2'.
10831         * modules/unistr/u32-cmp2-tests: New file.
10832         * tests/unistr/test-u32-cmp2.c: New file.
10833
10834         Tests for module 'unistr/u16-cmp2'.
10835         * modules/unistr/u16-cmp2-tests: New file.
10836         * tests/unistr/test-u16-cmp2.c: New file.
10837
10838         Tests for module 'unistr/u8-cmp2'.
10839         * modules/unistr/u8-cmp2-tests: New file.
10840         * tests/unistr/test-u8-cmp2.c: New file.
10841         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
10842
10843         Tests for module 'unistr/u32-cmp'.
10844         * modules/unistr/u32-cmp-tests: New file.
10845         * tests/unistr/test-u32-cmp.c: New file.
10846
10847         Tests for module 'unistr/u16-cmp'.
10848         * modules/unistr/u16-cmp-tests: New file.
10849         * tests/unistr/test-u16-cmp.c: New file.
10850
10851         Tests for module 'unistr/u8-cmp'.
10852         * modules/unistr/u8-cmp-tests: New file.
10853         * tests/unistr/test-u8-cmp.c: New file.
10854         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
10855
10856         Tests for module 'unistr/u32-set'.
10857         * modules/unistr/u32-set-tests: New file.
10858         * tests/unistr/test-u32-set.c: New file.
10859
10860         Tests for module 'unistr/u16-set'.
10861         * modules/unistr/u16-set-tests: New file.
10862         * tests/unistr/test-u16-set.c: New file.
10863
10864         Tests for module 'unistr/u8-set'.
10865         * modules/unistr/u8-set-tests: New file.
10866         * tests/unistr/test-u8-set.c: New file.
10867         * tests/unistr/test-set.h: New file.
10868
10869         Tests for module 'unistr/u32-move'.
10870         * modules/unistr/u32-move-tests: New file.
10871         * tests/unistr/test-u32-move.c: New file.
10872
10873         Tests for module 'unistr/u16-move'.
10874         * modules/unistr/u16-move-tests: New file.
10875         * tests/unistr/test-u16-move.c: New file.
10876
10877         Tests for module 'unistr/u8-move'.
10878         * modules/unistr/u8-move-tests: New file.
10879         * tests/unistr/test-u8-move.c: New file.
10880         * tests/unistr/test-move.h: New file.
10881
10882         Tests for module 'unistr/u32-cpy'.
10883         * modules/unistr/u32-cpy-tests: New file.
10884         * tests/unistr/test-u32-cpy.c: New file.
10885
10886         Tests for module 'unistr/u16-cpy'.
10887         * modules/unistr/u16-cpy-tests: New file.
10888         * tests/unistr/test-u16-cpy.c: New file.
10889
10890         Tests for module 'unistr/u8-cpy'.
10891         * modules/unistr/u8-cpy-tests: New file.
10892         * tests/unistr/test-u8-cpy.c: New file.
10893         * tests/unistr/test-cpy.h: New file.
10894
10895 2010-01-09  Bruno Haible  <bruno@clisp.org>
10896
10897         Tests for module 'unistr/u32-uctomb'.
10898         * modules/unistr/u32-uctomb-tests: New file.
10899         * tests/unistr/test-u32-uctomb.c: New file.
10900
10901         Tests for module 'unistr/u16-uctomb'.
10902         * modules/unistr/u16-uctomb-tests: New file.
10903         * tests/unistr/test-u16-uctomb.c: New file.
10904
10905         Tests for module 'unistr/u8-uctomb'.
10906         * modules/unistr/u8-uctomb-tests: New file.
10907         * tests/unistr/test-u8-uctomb.c: New file.
10908
10909         Tests for module 'unistr/u32-mbtoucr'.
10910         * modules/unistr/u32-mbtoucr-tests: New file.
10911         * tests/unistr/test-u32-mbtoucr.c: New file.
10912
10913         Tests for module 'unistr/u16-mbtoucr'.
10914         * modules/unistr/u16-mbtoucr-tests: New file.
10915         * tests/unistr/test-u16-mbtoucr.c: New file.
10916
10917         Tests for module 'unistr/u8-mbtoucr'.
10918         * modules/unistr/u8-mbtoucr-tests: New file.
10919         * tests/unistr/test-u8-mbtoucr.c: New file.
10920
10921         Tests for module 'unistr/u32-mbtouc'.
10922         * modules/unistr/u32-mbtouc-tests: New file.
10923         * tests/unistr/test-u32-mbtouc.c: New file.
10924
10925         Tests for module 'unistr/u16-mbtouc'.
10926         * modules/unistr/u16-mbtouc-tests: New file.
10927         * tests/unistr/test-u16-mbtouc.c: New file.
10928
10929         Tests for module 'unistr/u8-mbtouc'.
10930         * modules/unistr/u8-mbtouc-tests: New file.
10931         * tests/unistr/test-u8-mbtouc.c: New file.
10932
10933         Tests for module 'unistr/u32-mbtouc-unsafe'.
10934         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
10935         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
10936         * tests/unistr/test-u32-mbtouc.h: New file.
10937
10938         Tests for module 'unistr/u16-mbtouc-unsafe'.
10939         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
10940         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
10941         * tests/unistr/test-u16-mbtouc.h: New file.
10942
10943         Tests for module 'unistr/u8-mbtouc-unsafe'.
10944         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
10945         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
10946         * tests/unistr/test-u8-mbtouc.h: New file.
10947
10948         Tests for module 'unistr/u32-mblen'.
10949         * modules/unistr/u32-mblen-tests: New file.
10950         * tests/unistr/test-u32-mblen.c: New file.
10951
10952         Tests for module 'unistr/u16-mblen'.
10953         * modules/unistr/u16-mblen-tests: New file.
10954         * tests/unistr/test-u16-mblen.c: New file.
10955
10956         Tests for module 'unistr/u8-mblen'.
10957         * modules/unistr/u8-mblen-tests: New file.
10958         * tests/unistr/test-u8-mblen.c: New file.
10959
10960         Tests for module 'unistr/u32-to-u16'.
10961         * modules/unistr/u32-to-u16-tests: New file.
10962         * tests/unistr/test-u32-to-u16.c: New file.
10963
10964         Tests for module 'unistr/u32-to-u8'.
10965         * modules/unistr/u32-to-u8-tests: New file.
10966         * tests/unistr/test-u32-to-u8.c: New file.
10967
10968         Tests for module 'unistr/u16-to-u32'.
10969         * modules/unistr/u16-to-u32-tests: New file.
10970         * tests/unistr/test-u16-to-u32.c: New file.
10971
10972         Tests for module 'unistr/u16-to-u8'.
10973         * modules/unistr/u16-to-u8-tests: New file.
10974         * tests/unistr/test-u16-to-u8.c: New file.
10975
10976         Tests for module 'unistr/u8-to-u32'.
10977         * modules/unistr/u8-to-u32-tests: New file.
10978         * tests/unistr/test-u8-to-u32.c: New file.
10979
10980         Tests for module 'unistr/u8-to-u16'.
10981         * modules/unistr/u8-to-u16-tests: New file.
10982         * tests/unistr/test-u8-to-u16.c: New file.
10983
10984         Tests for module 'unistr/u32-check'.
10985         * modules/unistr/u32-check-tests: New file.
10986         * tests/unistr/test-u32-check.c: New file.
10987
10988         Tests for module 'unistr/u16-check'.
10989         * modules/unistr/u16-check-tests: New file.
10990         * tests/unistr/test-u16-check.c: New file.
10991
10992         Tests for module 'unistr/u8-check'.
10993         * modules/unistr/u8-check-tests: New file.
10994         * tests/unistr/test-u8-check.c: New file.
10995
10996         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
10997         (category_equals): New function.
10998         (main): Add more tests.
10999         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
11000
11001         * tests/unictype/test-bidi_byname.c (main): Add more tests.
11002
11003 2010-01-10  Bruno Haible  <bruno@clisp.org>
11004
11005         unistr/u*-strcoll: Try harder to distinguish different strings.
11006         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
11007         compare s1 and s2 to see if they are different.
11008
11009 2010-01-10  Bruno Haible  <bruno@clisp.org>
11010
11011         unistr/u*-stpncpy: Fix the return value.
11012         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
11013         description of the return value consistent with stpncpy in glibc.
11014         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
11015         written non-NUL unit.
11016
11017 2010-01-10  Bruno Haible  <bruno@clisp.org>
11018
11019         unistr/u*-next: Add missing dependencies.
11020         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
11021         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
11022         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
11023
11024 2010-01-10  Bruno Haible  <bruno@clisp.org>
11025
11026         unistr/u8-mbsnlen: Fix return value for incomplete character.
11027         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
11028         u8_mblen.
11029         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
11030         Remove unistr/u8-mblen.
11031         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
11032         u16_mblen.
11033         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
11034         Remove unistr/u16-mblen.
11035
11036 2010-01-10  Bruno Haible  <bruno@clisp.org>
11037
11038         wchar: Fix compilation error when <wchar.h> is used from coreutils.
11039         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
11040         Reported by Brian Gough <bjg@gnu.org> and
11041         Chris Clayton <chris2553@googlemail.com> via
11042         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
11043
11044 2010-01-09  Bruno Haible  <bruno@clisp.org>
11045
11046         unistr/u16-to-u32: Reject invalid input.
11047         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
11048         u16_mbtouc.
11049         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
11050         Remove unistr/u16-mbtouc.
11051
11052         unistr/u16-to-u8: Reject invalid input.
11053         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
11054         u16_mbtouc.
11055         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
11056         Remove unistr/u16-mbtouc.
11057
11058         unistr/u8-to-u32: Reject invalid input.
11059         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
11060         u8_mbtouc.
11061         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
11062         Remove unistr/u8-mbtouc.
11063
11064         unistr/u8-to-u16: Reject invalid input.
11065         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
11066         u8_mbtouc.
11067         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
11068         Remove unistr/u8-mbtouc.
11069
11070 2010-01-09  Bruno Haible  <bruno@clisp.org>
11071
11072         Tests for module 'getlogin'.
11073         * modules/getlogin-tests: New file.
11074         * tests/test-getlogin.c: New file.
11075
11076         New module 'getlogin'.
11077         * lib/unistd.in.h (getlogin): New declaration.
11078         * lib/getlogin.c: New file.
11079         * m4/getlogin.m4: New file.
11080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
11081         HAVE_GETLOGIN.
11082         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
11083         HAVE_GETLOGIN.
11084         * modules/getlogin: New file.
11085         * doc/posix-functions/getlogin.texi: Mention the new module.
11086         Reported by John W. Eaton <jwe@gnu.org>.
11087
11088 2010-01-09  Bruno Haible  <bruno@clisp.org>
11089
11090         getlogin_r: Support for native Windows.
11091         * lib/getlogin_r.c: Include <windows.h>
11092         (getlogin_r): Implement for native Windows.
11093         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
11094         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
11095         via John W. Eaton <jwe@gnu.org>.
11096
11097 2010-01-09  Bruno Haible  <bruno@clisp.org>
11098
11099         getlogin_r: Small fixes.
11100         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
11101         succeeds.
11102         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
11103         before testing whether getlogin_r is declared. No need to set
11104         HAVE_DECL_GETLOGIN_R to 1.
11105         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
11106
11107 2010-01-09  Bruno Haible  <bruno@clisp.org>
11108
11109         * lib/unistd.in.h (getlogin_r): Add comment.
11110
11111 2010-01-09  Bruno Haible  <bruno@clisp.org>
11112
11113         Tests for module 'getlogin_r'.
11114         * modules/getlogin_r-tests: New file.
11115         * tests/test-getlogin_r.c: New file.
11116
11117 2010-01-09  Jim Meyering  <meyering@redhat.com>
11118
11119         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
11120         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
11121         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
11122
11123 2010-01-08  Simon Josefsson  <simon@josefsson.org>
11124
11125         * lib/dup2.c (rpl_dup2): Improve comment.
11126
11127 2010-01-08  Eric Blake  <ebb9@byu.net>
11128
11129         maint.mk: allow packages to add makefile @@ exceptions
11130         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
11131         (sc_makefile_check): Rename...
11132         (sc_makefile_at_at_check): ...to this, and use hook.
11133
11134         dup2: work around mingw bug
11135         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
11136         Reported by Simon Josefsson.
11137
11138 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
11139
11140         glob: Fix C++ compilation.
11141         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
11142         C++.
11143
11144 2010-01-07  Bruno Haible  <bruno@clisp.org>
11145
11146         Fix indentation of wctype.in.h, broken since 2007-01-06.
11147         * lib/wctype.in.h: Fix indentation of preprocessor directives.
11148
11149 2010-01-07  Bruno Haible  <bruno@clisp.org>
11150
11151         mbslen: Avoid collision with system function.
11152         * lib/string.in.h [MirBSD]: Include <wchar.h>.
11153         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
11154         * m4/mbslen.m4: New file.
11155         * modules/mbslen (Files): Add it.
11156         (configure.ac): Invoke gl_MBSLEN.
11157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
11158         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
11159         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
11160         via Ian Beckwith <ianb@erislabs.net>.
11161
11162 2010-01-07  Bruno Haible  <bruno@clisp.org>
11163
11164         dirent: Document the last fix.
11165         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
11166
11167 2010-01-07  Bruno Haible  <bruno@clisp.org>
11168
11169         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
11170         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
11171         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
11172         va_list are defined.
11173         * doc/posix-headers/stdio.texi: Document the bug of missing types.
11174         Reported by Eric Blake.
11175
11176 2010-01-07  Bruno Haible  <bruno@clisp.org>
11177
11178         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
11179         * modules/xlist (Depends-on): Add 'list',
11180         * modules/xoset (Depends-on): Add 'oset'.
11181         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11182
11183 2010-01-07  Bruno Haible  <bruno@clisp.org>
11184
11185         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
11186         * doc/posix-functions/strncasecmp.texi: Likewise.
11187
11188 2010-01-07  Bruno Haible  <bruno@clisp.org>
11189
11190         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
11191
11192 2010-01-07  John W. Eaton  <jwe@octave.org>
11193
11194         wctype: allow C++ use
11195         * lib/wctype.in.h: Add extern "C" block for C++.
11196
11197 2010-01-06  Eric Blake  <ebb9@byu.net>
11198
11199         maint.mk: detect incorrect GFDL usage
11200         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
11201
11202 2010-01-06  Jim Meyering  <meyering@redhat.com>
11203         and Eric Blake  <ebb9@byu.net>
11204
11205         maint.mk: ignore multi-line copyright in NEWS
11206         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
11207
11208 2010-01-06  Eric Blake  <ebb9@byu.net>
11209
11210         select: add missing dependency
11211         * modules/select-tests (Depends-on): Move sockets dependency...
11212         * modules/select (Depends-on): ...here.
11213         Reported by Ian Beckwith.
11214
11215         doc: regenerate INSTALL
11216         * doc/INSTALL: Reflect recent autoconf update.
11217         * doc/INSTALL.ISO: Likewise.
11218         * doc/INSTALL.UTF-8: Likewise.
11219
11220         pread: fix compilation on glibc
11221         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
11222         Reported by Ralf Wildenhues.
11223
11224         dirent: fix test failure
11225         * lib/dirent.in.h (includes): Guarantee ino_t.
11226         Reported by Ralf Wildenhues.
11227
11228 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
11229
11230         linkat, renameat: avoid bad free
11231         * lib/at-func2.c (at_func2): Fix typo.
11232         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
11233
11234 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11235
11236         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
11237         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
11238         to avoid failure of symlink test later.
11239
11240 2010-01-06  Eric Blake  <ebb9@byu.net>
11241
11242         stdio, unistd: guarantee ssize_t
11243         * lib/unistd.in.h (includes): Ensure that types required by POSIX
11244         2008 are exposed when needed.
11245         * lib/stdio.in.h (includes): Likewise.
11246         Reported by Ralf Wildenhues.
11247
11248 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
11249
11250         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
11251         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
11252         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
11253
11254 2010-01-06  Jim Meyering  <meyering@redhat.com>
11255
11256         readtokens: this module *does* require xalloc.h
11257         It uses only functions that were omitted by the old syntax-check rule.
11258         * lib/readtokens.c: Include "xalloc.h" once again.
11259         * modules/readtokens (Depends-on): Add xalloc.
11260         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
11261
11262 2010-01-05  Eric Blake  <ebb9@byu.net>
11263
11264         maint: support 'make announcement' from a VPATH build
11265         * top/maint.mk (announcement): Look for correct NEWS file.
11266
11267 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
11268
11269         utimens (fdutimens): ignore a negative FD, per contract
11270         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
11271         when we have a valid file descriptor.  Otherwise, using a brand
11272         new glibc (with just-patched futimens that now fails with EBADF)
11273         would cause this function to fail with ENOSYS.
11274         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
11275         See also http://bugzilla.redhat.com/552320.
11276
11277 2010-01-05  Eric Blake  <ebb9@byu.net>
11278
11279         strcase: document what it provides
11280         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
11281         gnulib module.
11282         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
11283         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
11284
11285 2010-01-05  Jim Meyering  <meyering@redhat.com>
11286
11287         maint: remove useless inclusions of "xalloc.h"
11288         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
11289         * lib/readtokens.c: Likewise.
11290         * lib/same.c: Likewise.
11291         * modules/getloadavg (Depends-on): Remove xalloc.
11292         * modules/readtokens: Likewise.
11293         * modules/same: Likewise.
11294
11295         maint.mk: include 4 more function names in alloca.h-checking regexp
11296         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
11297         regexp.  Before, we would give a false-positive (saying alloca.h
11298         is included unnecessarily) when the only uses involved omitted symbols.
11299
11300         xalloc.h: use consistent formatting
11301         * lib/xalloc.h: Move declarations to start in the first column.
11302
11303 2010-01-05  Eric Blake  <ebb9@byu.net>
11304
11305         mkdir: avoid xalloc
11306         * lib/mkdir.c (includes): Drop unused header.
11307         Reported by John W. Eaton.
11308
11309 2010-01-04  Jim Meyering  <meyering@redhat.com>
11310
11311         nl_langinfo: avoid configure-time syntax error
11312         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
11313         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
11314         the empty string.  Don't let that provoke a shell syntax error.
11315
11316         regcomp, regexec, fnmatch: avoid array bounds read error
11317         * lib/regcomp.c (build_equiv_class): From glibc:
11318         Use only the low 24 bits of a findidx return value as an index
11319         into the weights array.  Patch by Ulrich Drepper:
11320         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
11321         * lib/regexec.c (check_node_accept_bytes): Likewise.
11322         * lib/fnmatch_loop.c (FCT): Likewise.
11323
11324         regcomp: skip collseq lookup when there are no rules
11325         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
11326         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
11327
11328         regcomp: recognize ill-formed { } expressions
11329         * lib/regcomp.c (parse_dup_op): From glibc:
11330         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
11331
11332         regcomp: fix typo in comment
11333         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
11334         s/satisfy/satisfies/.
11335
11336         regcomp: sync from glibc: remove dead store
11337         * lib/regcomp.c (duplicate_node_closure): Remove useless
11338         search_duplicated_node call and dead store.
11339
11340         regcomp: sync from glibc; always use nl_langinfo
11341         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
11342         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
11343         * modules/regex (Depends-on): Add nl_langinfo.
11344
11345 2010-01-04  Eric Blake  <ebb9@byu.net>
11346
11347         fdopendir: fix configure test
11348         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
11349
11350 2010-01-01  Bruno Haible  <bruno@clisp.org>
11351
11352         wchar: Remove unused configure check.
11353         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
11354
11355 2010-01-01  Eric Blake  <ebb9@byu.net>
11356
11357         headers: make check of system header explicit
11358         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
11359         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
11360         ourselves.
11361         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11362         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11363         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11364         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
11365         internals.
11366         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
11367         missing.
11368         Suggested by Bruno Haible.
11369
11370 2010-01-01  Jim Meyering  <meyering@redhat.com>
11371
11372         ChangeLog: tweak to eliminate unnecessary copyright line
11373         * ChangeLog: Remove a copyright line that was mistakenly updated
11374         by today's update-copyright run.  Reported by Eric Blake.
11375
11376         test-update-copyright: don't let envvar setting cause test failure
11377         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11378
11379 2010-01-01  Bruno Haible  <bruno@clisp.org>
11380
11381         localename: Avoid gcc warning.
11382         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
11383         function if it is not used.
11384
11385 2010-01-01  Jim Meyering  <meyering@redhat.com>
11386
11387         update nearly all FSF copyright year lists to include 2010
11388         Use the same procedure as for 2009, outlined in
11389         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
11390
11391         version-etc: set COPYRIGHT_YEAR to 2010
11392         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
11393
11394 2009-12-31  Eric Blake  <ebb9@byu.net>
11395
11396         doc: correct availability of cygwin 1.5.x getopt
11397         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
11398         variables.
11399         * doc/posix-functions/opterr.texi (opterr): Likewise.
11400         * doc/posix-functions/optind.texi (optind): Likewise.
11401         * doc/posix-functions/optopt.texi (optopt): Likewise.
11402         * doc/posix-functions/tzname.texi (tzname): Likewise.
11403
11404         openat: update maintainer
11405         * modules/openat (Maintainer): Add myself.
11406
11407         utimens: avoid shadowing warning
11408         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
11409         buffers into one, to avoid shadowing, as well as avoiding a
11410         redundant stat.
11411         Reported by Jim Meyering.
11412
11413         test-dup2: avoid compiler warning
11414         * tests/test-dup2.c (is_inheritable): Only define if used.
11415
11416 2010-01-01  Bruno Haible  <bruno@clisp.org>
11417
11418         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
11419         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
11420         defined, use wctomb instead of wcrtomb.
11421
11422 2010-01-01  Bruno Haible  <bruno@clisp.org>
11423
11424         iconv: Reject native Solaris iconv.
11425         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
11426         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
11427
11428 2009-12-31  Bruno Haible  <bruno@clisp.org>
11429
11430         * tests/test-signal.c (main): Remove test of 'SIG'.
11431
11432 2009-12-31  Bruno Haible  <bruno@clisp.org>
11433
11434         spawn: Fix incomplete fix.
11435         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
11436         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
11437         warnings for GNULIB_POSIXCHECK again.
11438         Reported by Eric Blake.
11439
11440 2009-12-31  Bruno Haible  <bruno@clisp.org>
11441
11442         Avoid namespace pollution on glibc systems.
11443         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
11444         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
11445         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
11446         glibc systems.
11447
11448 2009-12-31  Bruno Haible  <bruno@clisp.org>
11449
11450         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
11451         (gl_REPLACE_WCHAR_H): Turn into a no-op.
11452         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
11453         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11454         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11455         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11456         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11457
11458 2009-12-31  Bruno Haible  <bruno@clisp.org>
11459
11460         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11461         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
11462         afterwards.
11463
11464 2009-12-31  Bruno Haible  <bruno@clisp.org>
11465
11466         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
11467         SYS_UTSNAME_H.
11468
11469 2009-12-31  Bruno Haible  <bruno@clisp.org>
11470
11471         spawn: Fix misapplied patch.
11472         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
11473         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
11474         warnings for GNULIB_POSIXCHECK.
11475
11476 2009-12-31  Bruno Haible  <bruno@clisp.org>
11477
11478         times: Update after sys_times changed.
11479         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
11480         * modules/times (Files): Add it.
11481         (configure.ac): Invoke gl_FUNC_TIMES.
11482
11483 2009-12-31  Bruno Haible  <bruno@clisp.org>
11484
11485         Use AC_C_INLINE where necessary.
11486         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
11487         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11488         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
11489         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11490         * m4/mbfile.m4 (gl_MBFILE): Likewise.
11491         * m4/mbiter.m4 (gl_MBITER): Likewise.
11492         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11493         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11494         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
11495         * modules/u64 (configure.ac): Likewise.
11496
11497 2009-12-31  Bruno Haible  <bruno@clisp.org>
11498
11499         Use AC_C_INLINE instead of module 'inline' where possible.
11500         * modules/inline (Description): Clarify purpose.
11501         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
11502         * modules/count-one-bits (Depends-on): Remove inline.
11503         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
11504         * modules/openat (Depends-on): Remove inline.
11505         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
11506         instead of depending on module 'inline'.
11507         * modules/filevercmp (Depends-on, configure.ac): Likewise.
11508         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
11509         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
11510         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
11511         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
11512         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
11513         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
11514         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
11515         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
11516         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
11517         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
11518         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
11519         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
11520         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
11521         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
11522         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
11523         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
11524         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
11525         Likewise.
11526         * modules/unictype/property-ascii-hex-digit (Depends-on,
11527         configure.ac): Likewise.
11528         * modules/unictype/property-bidi-arabic-digit (Depends-on,
11529         configure.ac): Likewise.
11530         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
11531         configure.ac): Likewise.
11532         * modules/unictype/property-bidi-block-separator (Depends-on,
11533         configure.ac): Likewise.
11534         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
11535         configure.ac): Likewise.
11536         * modules/unictype/property-bidi-common-separator (Depends-on,
11537         configure.ac): Likewise.
11538         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
11539         Likewise.
11540         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
11541         configure.ac): Likewise.
11542         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
11543         configure.ac): Likewise.
11544         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
11545         configure.ac): Likewise.
11546         * modules/unictype/property-bidi-european-digit (Depends-on,
11547         configure.ac): Likewise.
11548         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
11549         configure.ac): Likewise.
11550         * modules/unictype/property-bidi-left-to-right (Depends-on,
11551         configure.ac): Likewise.
11552         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
11553         configure.ac): Likewise.
11554         * modules/unictype/property-bidi-other-neutral (Depends-on,
11555         configure.ac): Likewise.
11556         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
11557         Likewise.
11558         * modules/unictype/property-bidi-segment-separator (Depends-on,
11559         configure.ac): Likewise.
11560         * modules/unictype/property-bidi-whitespace (Depends-on,
11561         configure.ac): Likewise.
11562         * modules/unictype/property-combining (Depends-on, configure.ac):
11563         Likewise.
11564         * modules/unictype/property-composite (Depends-on, configure.ac):
11565         Likewise.
11566         * modules/unictype/property-currency-symbol (Depends-on,
11567         configure.ac): Likewise.
11568         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
11569         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
11570         Likewise.
11571         * modules/unictype/property-default-ignorable-code-point (Depends-on,
11572         configure.ac): Likewise.
11573         * modules/unictype/property-deprecated (Depends-on, configure.ac):
11574         Likewise.
11575         * modules/unictype/property-diacritic (Depends-on, configure.ac):
11576         Likewise.
11577         * modules/unictype/property-extender (Depends-on, configure.ac):
11578         Likewise.
11579         * modules/unictype/property-format-control (Depends-on, configure.ac):
11580         Likewise.
11581         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
11582         Likewise.
11583         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
11584         Likewise.
11585         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
11586         Likewise.
11587         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
11588         Likewise.
11589         * modules/unictype/property-hyphen (Depends-on, configure.ac):
11590         Likewise.
11591         * modules/unictype/property-id-continue (Depends-on, configure.ac):
11592         Likewise.
11593         * modules/unictype/property-id-start (Depends-on, configure.ac):
11594         Likewise.
11595         * modules/unictype/property-ideographic (Depends-on, configure.ac):
11596         Likewise.
11597         * modules/unictype/property-ids-binary-operator (Depends-on,
11598         configure.ac): Likewise.
11599         * modules/unictype/property-ids-trinary-operator (Depends-on,
11600         configure.ac): Likewise.
11601         * modules/unictype/property-ignorable-control (Depends-on,
11602         configure.ac): Likewise.
11603         * modules/unictype/property-iso-control (Depends-on, configure.ac):
11604         Likewise.
11605         * modules/unictype/property-join-control (Depends-on, configure.ac):
11606         Likewise.
11607         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
11608         Likewise.
11609         * modules/unictype/property-line-separator (Depends-on, configure.ac):
11610         Likewise.
11611         * modules/unictype/property-logical-order-exception (Depends-on,
11612         configure.ac): Likewise.
11613         * modules/unictype/property-lowercase (Depends-on, configure.ac):
11614         Likewise.
11615         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
11616         * modules/unictype/property-non-break (Depends-on, configure.ac):
11617         Likewise.
11618         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
11619         Likewise.
11620         * modules/unictype/property-numeric (Depends-on, configure.ac):
11621         Likewise.
11622         * modules/unictype/property-other-alphabetic (Depends-on,
11623         configure.ac): Likewise.
11624         * modules/unictype/property-other-default-ignorable-code-point
11625         (Depends-on, configure.ac): Likewise.
11626         * modules/unictype/property-other-grapheme-extend (Depends-on,
11627         configure.ac): Likewise.
11628         * modules/unictype/property-other-id-continue (Depends-on,
11629         configure.ac): Likewise.
11630         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
11631         Likewise.
11632         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
11633         Likewise.
11634         * modules/unictype/property-other-math (Depends-on, configure.ac):
11635         Likewise.
11636         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
11637         Likewise.
11638         * modules/unictype/property-paired-punctuation (Depends-on,
11639         configure.ac): Likewise.
11640         * modules/unictype/property-paragraph-separator (Depends-on,
11641         configure.ac): Likewise.
11642         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
11643         Likewise.
11644         * modules/unictype/property-pattern-white-space (Depends-on,
11645         configure.ac): Likewise.
11646         * modules/unictype/property-private-use (Depends-on, configure.ac):
11647         Likewise.
11648         * modules/unictype/property-punctuation (Depends-on, configure.ac):
11649         Likewise.
11650         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
11651         Likewise.
11652         * modules/unictype/property-radical (Depends-on, configure.ac):
11653         Likewise.
11654         * modules/unictype/property-sentence-terminal (Depends-on,
11655         configure.ac): Likewise.
11656         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
11657         Likewise.
11658         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
11659         * modules/unictype/property-terminal-punctuation (Depends-on,
11660         configure.ac): Likewise.
11661         * modules/unictype/property-titlecase (Depends-on, configure.ac):
11662         Likewise.
11663         * modules/unictype/property-unassigned-code-value (Depends-on,
11664         configure.ac): Likewise.
11665         * modules/unictype/property-unified-ideograph (Depends-on,
11666         configure.ac): Likewise.
11667         * modules/unictype/property-uppercase (Depends-on, configure.ac):
11668         Likewise.
11669         * modules/unictype/property-variation-selector (Depends-on,
11670         configure.ac): Likewise.
11671         * modules/unictype/property-white-space (Depends-on, configure.ac):
11672         Likewise.
11673         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
11674         Likewise.
11675         * modules/unictype/property-xid-start (Depends-on, configure.ac):
11676         Likewise.
11677         * modules/unictype/property-zero-width (Depends-on, configure.ac):
11678         Likewise.
11679         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
11680         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
11681         Likewise.
11682
11683 2009-12-31  Bruno Haible  <bruno@clisp.org>
11684
11685         Remove unnecessary AC_C_INLINE invocation.
11686         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
11687         since 2009-08-21.
11688
11689 2009-12-31  Jim Meyering  <meyering@redhat.com>
11690
11691         maint.mk: don't require explicit gpg_key_ID in cfg.mk
11692         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
11693         With this change, we can all remove the gpg_key_ID = ... definition
11694         from our respective cfg.mk files.
11695
11696         maint.mk: create announcement template in ~/, not in /tmp
11697         * top/maint.mk (emit_upload_commands): Adjust.
11698         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
11699         Remove temporary file, .ci-msg.
11700
11701 2009-12-31  Eric Blake  <ebb9@byu.net>
11702
11703         link-warning: always build headers with link warnings
11704         * modules/arpa_inet (Makefile.am): Always build replacement
11705         header.
11706         * modules/ctype (Makefile.am): Likewise.
11707         * modules/dirent (Makefile.am): Likewise.
11708         * modules/inttypes (Makefile.am): Likewise.
11709         * modules/langinfo (Makefile.am): Likewise.
11710         * modules/locale (Makefile.am): Likewise.
11711         * modules/spawn (Makefile.am): Likewise.
11712         * modules/sys_file (Makefile.am): Likewise.
11713         * modules/sys_ioctl (Makefile.am): Likewise.
11714         * modules/sys_select (Makefile.am): Likewise.
11715         * modules/sys_socket (Makefile.am): Likewise.
11716         * modules/sys_times (Makefile.am): Likewise.
11717         * modules/sys_utsname (Makefile.am): Likewise.
11718         * modules/sys_wait (Makefile.am): Likewise.
11719         * modules/wchar (Makefile.am): Likewise.
11720         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
11721         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
11722         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
11723         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
11724         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
11725         Likewise.
11726         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11727         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11728         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
11729         Likewise.
11730         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
11731         Likewise.
11732         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11733         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
11734         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
11735         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11736         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11737         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11738         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11739         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
11740         (gl_WCHAR_H_DEFAULTS): Likewise.
11741
11742 2009-12-31  Eric Blake  <ebb9@byu.net>
11743
11744         signal, spawn: use link warnings
11745         * lib/signal.in.h (sigset_t): Make unconditional.
11746         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
11747         (sigpending, sigprocmask, sigaction): Add link warnings.
11748         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
11749         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
11750         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
11751         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
11752         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
11753         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
11754         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
11755         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
11756         (posix_spawn_file_actions_destroy)
11757         (posix_spawn_file_actions_addopen)
11758         (posix_spawn_file_actions_addclose)
11759         (posix_spawn_file_actions_adddup2): Likewise.
11760         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
11761         * tests/test-signal.c (main): Enhance test.
11762
11763         spawn: improve wrapper support
11764         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
11765         (gl_SPAWN_H_DEFAULTS): New defaults.
11766         * modules/spawn (Makefile.am): Substitute them.
11767         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
11768         Only declare if missing or broken.
11769
11770         sys_times, sys_utsname: use include_next
11771         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
11772         header.
11773         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
11774         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11775         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11776         * modules/sys_times (Depends-on): Add include_next.
11777         (Makefile.am): Substitute additional values.
11778         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11779         * lib/sys_times.in.h (includes): Include native header, if
11780         available.
11781         * lib/sys_utsname.in.h (includes): Likewise.
11782         * tests/test-sys_times.c (main): Enhance test.
11783
11784         fdutimensat: revert prior patch
11785         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
11786         utimens.h.
11787         Reported by Bruno Haible.
11788
11789 2009-12-30  Eric Blake  <ebb9@byu.net>
11790
11791         sys_wait: drop link-warning dependency
11792         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
11793         link-warning efforts.
11794         * lib/sys_wait.in.h: Likewise.
11795
11796         fdutimensat: remove bogus dependency
11797         * modules/fdutimensat (Depends-on): Drop inline.
11798
11799         unistd: fix typo
11800         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
11801
11802 2009-12-30  Bruno Haible  <bruno@clisp.org>
11803
11804         Fix compilation error with Solaris cc.
11805         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
11806         * lib/unicase/u16-is-invariant.c: Likewise.
11807         * lib/unicase/u32-is-invariant.c: Likewise.
11808         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11809
11810 2009-12-30  Bruno Haible  <bruno@clisp.org>
11811
11812         Fix test crash.
11813         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
11814         locales.
11815         Reported by Simon Josefsson <simon@josefsson.org>.
11816
11817 2009-12-30  Bruno Haible  <bruno@clisp.org>
11818
11819         Fix compilation error on most platforms.
11820         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
11821         Reported by Simon Josefsson <simon@josefsson.org>
11822         and Nelson H. F. Beebe <beebe@math.utah.edu>.
11823
11824 2009-12-30  Eric Blake  <ebb9@byu.net>
11825
11826         futimens, utimensat: work around ntfs-3g bug
11827         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
11828         a ctime bug is present, and expand workaround to cover ntfs-3g.
11829         * lib/utimens.c (fdutimens, lutimens): Likewise.
11830         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
11831         (validate_timespec): Adjust return value.
11832         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
11833         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11834         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
11835
11836 2009-12-29  Eric Blake  <ebb9@byu.net>
11837
11838         link-warning: make usage consistent
11839         * modules/ctype (Depends-on): Add link-warning.
11840         (Makefile.am): Update rules accordingly.
11841         * modules/langinfo (Depends-on, Makefile.am): Likewise.
11842         * modules/locale (Depends-on, Makefile.am): Likewise.
11843         * modules/sys_file (Makefile.am): Likewise.
11844         * modules/getopt-posix (Makefile.am): Delete unused link warning
11845         efforts.
11846         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
11847         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
11848         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
11849         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
11850
11851         stdio: remove unused variables
11852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
11853         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
11854         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11855
11856         tests: test more substitute headers
11857         * modules/ctype-tests: New file.
11858         * modules/dirent-tests: Likewise.
11859         * modules/spawn-tests: Likewise.
11860         * modules/sys_file-tests: Likewise.
11861         * modules/sys_ioctl-tests: Likewise.
11862         * modules/sys_wait-tests: Likewise.
11863         * tests/test-ctype.c: Likewise.
11864         * tests/test-dirent.c: Likewise.
11865         * tests/test-spawn.c: Likewise.
11866         * tests/test-sys_file.c: Likewise.
11867         * tests/test-sys_ioctl.c: Likewise.
11868         * tests/test-sys_wait.c: Likewise.
11869         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
11870         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
11871         whether or not flock is in use.
11872
11873         tests: remove License section from module
11874         * modules/arpa_inet-tests: Remove unneeded section.
11875         * modules/byteswap-tests: Likewise.
11876         * modules/ceilf-tests: Likewise.
11877         * modules/ceill-tests: Likewise.
11878         * modules/crypto/des-tests: Likewise.
11879         * modules/crypto/gc-arcfour-tests: Likewise.
11880         * modules/crypto/gc-arctwo-tests: Likewise.
11881         * modules/crypto/gc-des-tests: Likewise.
11882         * modules/crypto/gc-hmac-md5-tests: Likewise.
11883         * modules/crypto/gc-hmac-sha1-tests: Likewise.
11884         * modules/crypto/gc-md2-tests: Likewise.
11885         * modules/crypto/gc-md4-tests: Likewise.
11886         * modules/crypto/gc-md5-tests: Likewise.
11887         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
11888         * modules/crypto/gc-rijndael-tests: Likewise.
11889         * modules/crypto/gc-sha1-tests: Likewise.
11890         * modules/crypto/gc-tests: Likewise.
11891         * modules/crypto/md2-tests: Likewise.
11892         * modules/crypto/md4-tests: Likewise.
11893         * modules/fcntl-h-tests: Likewise.
11894         * modules/floorf-tests: Likewise.
11895         * modules/floorl-tests: Likewise.
11896         * modules/frexp-nolibm-tests: Likewise.
11897         * modules/frexp-tests: Likewise.
11898         * modules/frexpl-nolibm-tests: Likewise.
11899         * modules/frexpl-tests: Likewise.
11900         * modules/getaddrinfo-tests: Likewise.
11901         * modules/inttypes-tests: Likewise.
11902         * modules/isfinite-tests: Likewise.
11903         * modules/isinf-tests: Likewise.
11904         * modules/ldexpl-tests: Likewise.
11905         * modules/locale-tests: Likewise.
11906         * modules/math-tests: Likewise.
11907         * modules/netdb-tests: Likewise.
11908         * modules/netinet_in-tests: Likewise.
11909         * modules/printf-frexp-tests: Likewise.
11910         * modules/printf-frexpl-tests: Likewise.
11911         * modules/priv-set-tests: Likewise.
11912         * modules/random_r-tests: Likewise.
11913         * modules/round-tests: Likewise.
11914         * modules/roundf-tests: Likewise.
11915         * modules/roundl-tests: Likewise.
11916         * modules/search-tests: Likewise.
11917         * modules/select-tests: Likewise.
11918         * modules/signal-tests: Likewise.
11919         * modules/stdbool-tests: Likewise.
11920         * modules/stddef-tests: Likewise.
11921         * modules/stdint-tests: Likewise.
11922         * modules/stdio-tests: Likewise.
11923         * modules/stdlib-tests: Likewise.
11924         * modules/string-tests: Likewise.
11925         * modules/strings-tests: Likewise.
11926         * modules/sys_select-tests: Likewise.
11927         * modules/sys_socket-tests: Likewise.
11928         * modules/sys_stat-tests: Likewise.
11929         * modules/sys_time-tests: Likewise.
11930         * modules/sys_utsname-tests: Likewise.
11931         * modules/sysexits-tests: Likewise.
11932         * modules/time-tests: Likewise.
11933         * modules/trunc-tests: Likewise.
11934         * modules/truncf-tests: Likewise.
11935         * modules/truncl-tests: Likewise.
11936         * modules/tsearch-tests: Likewise.
11937         * modules/unistd-tests: Likewise.
11938         * modules/wchar-tests: Likewise.
11939         * modules/wctype-tests: Likewise.
11940
11941         tests: fix license on several tests
11942         * tests/test-des.c: Update to GPLv3+.
11943         * tests/test-flock.c: Likewise.
11944         * tests/test-fsync.c: Likewise.
11945         * tests/test-futimens.h: Likewise.
11946         * tests/test-gc-arcfour.c: Likewise.
11947         * tests/test-gc-arctwo.c: Likewise.
11948         * tests/test-gc-des.c: Likewise.
11949         * tests/test-gc-hmac-md5.c: Likewise.
11950         * tests/test-gc-hmac-sha1.c: Likewise.
11951         * tests/test-gc-md2.c: Likewise.
11952         * tests/test-gc-md4.c: Likewise.
11953         * tests/test-gc-md5.c: Likewise.
11954         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11955         * tests/test-gc-rijndael.c: Likewise.
11956         * tests/test-gc-sha1.c: Likewise.
11957         * tests/test-gc.c: Likewise.
11958         * tests/test-getcwd.c: Likewise.
11959         * tests/test-link.c: Likewise.
11960         * tests/test-link.h: Likewise.
11961         * tests/test-lutimens.h: Likewise.
11962         * tests/test-md2.c: Likewise.
11963         * tests/test-md4.c: Likewise.
11964         * tests/test-mkdir.h: Likewise.
11965         * tests/test-rename.c: Likewise.
11966         * tests/test-rename.h: Likewise.
11967         * tests/test-safe-alloc.c: Likewise.
11968         * tests/test-utimens-common.h: Likewise.
11969         * tests/test-utimens.h: Likewise.
11970
11971         maint: sync license texts
11972         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
11973         * doc/gpl-3.0.texi: Revert copyright year update.
11974         * doc/lgpl-3.0.texi: Likewise.
11975
11976 2009-12-29  Jim Meyering  <meyering@redhat.com>
11977
11978         update nearly all FSF copyright year lists to include 2009
11979         The files named by the following are exempted:
11980             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
11981               test -f "$dst" && { echo "$dst"; continue; }
11982               test -d "$dst" || continue
11983               echo "$dst"/$(basename "$src")
11984             done > exempt
11985             git ls-files tests/unictype >> exempt
11986         In the remaining files, convert to all-interval notation if
11987         - there is already at least one year interval like 2000-2003
11988         - the file is maintained by me
11989         - the file is in lib/uni*/, where that style already prevails
11990         Otherwise, use update-copyright's default.
11991
11992 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11993         and Eric Blake  <ebb9@byu.net>
11994
11995         tests: don't require debug system() to pass
11996         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
11997         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11998         * tests/test-unlink.h (test_unlink_func): Likewise.
11999         * tests/test-fstatat.c (main): ...into callers.
12000         * tests/test-lstat.c (main): Likewise.
12001         * tests/test-rmdir.c (main): Likewise.
12002         * tests/test-unlink.c (main): Likewise.
12003         * tests/test-unlinkat.c (main): Likewise.
12004         * tests/test-areadlink-with-size.c (main): Don't require a
12005         debug-only system call to pass, aiding cross-testing to mingw.
12006         * tests/test-areadlink.c (main): Likewise.
12007         * tests/test-areadlinkat-with-size.c (main): Likewise.
12008         * tests/test-areadlinkat.c (main): Likewise.
12009         * tests/test-canonicalize-lgpl.c (main): Likewise.
12010         * tests/test-canonicalize.c (main): Likewise.
12011         * tests/test-chown.c (main): Likewise.
12012         * tests/test-fchownat.c (main): Likewise.
12013         * tests/test-lchown.c (main): Likewise.
12014         * tests/test-fdutimensat.c (main): Likewise.
12015         * tests/test-futimens.c (main): Likewise.
12016         * tests/test-link.c (main): Likewise.
12017         * tests/test-linkat.c (main): Likewise.
12018         * tests/test-mkdir.c (main): Likewise.
12019         * tests/test-mkdirat.c (main): Likewise.
12020         * tests/test-mkfifo.c (main): Likewise.
12021         * tests/test-mkfifoat.c (main): Likewise.
12022         * tests/test-mknod.c (main): Likewise.
12023         * tests/test-readlink.c (main): Likewise.
12024         * tests/test-remove.c (main): Likewise.
12025         * tests/test-rename.c (main): Likewise.
12026         * tests/test-renameat.c (main): Likewise.
12027         * tests/test-symlink.c (main): Likewise.
12028         * tests/test-symlinkat.c (main): Likewise.
12029         * tests/test-utimens.c (main): Likewise.
12030         * tests/test-utimensat.c (main): Likewise.
12031
12032 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12033
12034         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
12035         on $(UNUSED_PARAMETER_H) to avoid build failure.
12036
12037 2009-12-28  Jim Meyering  <meyering@redhat.com>
12038
12039         update-copyright: you may specify a max. line length other than 72
12040         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12041
12042         maint: use consistent FSF copyright line syntax
12043         * lib/posixtm.c: Add missing comma in FSF copyright line.
12044         * lib/posixtm.h: Likewise.
12045         * lib/getugroups.c: Add missing ", Inc.".
12046
12047         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
12048         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
12049         FSF copyright line.  Remove trailing blanks.
12050
12051 2009-12-28  Eric Blake  <ebb9@byu.net>
12052
12053         test-dup2: reduce dependencies
12054         * modules/cloexec (Configure.ac): Set witness.
12055         * modules/dup2-tests (Depends-on): Drop cloexec.
12056         * tests/test-dup2.c (main): Skip portion of test if cloexec module
12057         not present.
12058         Suggested by Bruno Haible.
12059
12060 2009-12-26  Bruno Haible  <bruno@clisp.org>
12061
12062         Remove an unneeded dependency.
12063         * modules/fseterr (Depends-on): Remove dup2.
12064
12065 2009-12-26  Eric Blake  <ebb9@byu.net>
12066
12067         tests: use macros.h in more places
12068         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
12069         (ASSERT_STREAM): Provide default of stderr.
12070         * tests/test-dirent-safer.c: Include macros.h, using alternate
12071         stream for assertions.
12072         * tests/test-dup-safer.c: Likewise.
12073         * tests/test-freopen-safer.c: Likewise.
12074         * tests/test-getopt.c: Likewise.
12075         * tests/test-openat-safer.c: Likewise.
12076         * tests/test-pipe.c: Likewise.
12077         * tests/test-popen-safer.c: Likewise.
12078         * modules/dirent-safer-tests (Files): Include macros.h.
12079         * modules/unistd-safer-tests (Files): Likewise.
12080         * modules/freopen-safer-tests (Files): Likewise.
12081         * modules/getopt-posix-tests (Files): Likewise.
12082         * modules/openat-safer-tests (Files): Likewise.
12083         * modules/pipe-tests (Files): Likewise.
12084
12085 2009-12-26  Bruno Haible  <bruno@clisp.org>
12086
12087         javacomp: Portability fix.
12088         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
12089         that it also works on Solaris.
12090
12091 2009-12-26  Bruno Haible  <bruno@clisp.org>
12092
12093         localename: Fix storage allocation of gl_locale_name_thread's result.
12094         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
12095         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
12096         all platforms that have 'uselocale'.
12097         (gl_locale_name_thread_unsafe): New function, extracted from
12098         gl_locale_name_thread.
12099         (gl_locale_name_thread): Call struniq on all platforms that have
12100         'uselocale'.
12101         * tests/test-localename.c (test_locale_name_thread): Check that the
12102         resulting strings are permanently allocated.
12103         * modules/localename-tests (Depends-on): Add strdup.
12104
12105 2009-12-26  Bruno Haible  <bruno@clisp.org>
12106
12107         * tests/test-localename.c (categories): Fill in the strings.
12108
12109 2009-12-26  Jim Meyering  <meyering@redhat.com>
12110
12111         isdir: complete the removal of m4/isdir.m4
12112         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
12113
12114         isdir: clean up, since at least grep still uses it
12115         * lib/isdir.c: Include "isdir.h".
12116         (S_ISDIR): Remove now-unneeded definition.
12117         * modules/isdir (Files): Add lib/isdir.h.
12118         * lib/isdir.h: New file, with declaration.
12119         * m4/isdir.m4: Remove file -- unneeded.
12120
12121 2009-12-25  Bruno Haible  <bruno@clisp.org>
12122
12123         selinux-h: Make generated .h files standalone.
12124         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
12125         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
12126         * lib/se-selinux.in.h: Likewise.
12127         * modules/selinux-h (Depends-on): Add unused-parameter.
12128         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
12129         selinux/selinux.h and selinux/context.h.
12130         Suggested by Eric Blake.
12131
12132 2009-12-25  Bruno Haible  <bruno@clisp.org>
12133
12134         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
12135         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
12136         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
12137         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
12138         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
12139
12140 2009-12-24  Bruno Haible  <bruno@clisp.org>
12141
12142         openat: Fix warning.
12143         * lib/openat-proc.c: Include <unistd.h>.
12144
12145 2009-12-24  Bruno Haible  <bruno@clisp.org>
12146
12147         New module 'unused-parameter'.
12148         * build-aux/unused-parameter.h: New file, extracted from earlier
12149         gnulib-common.m4.
12150         * modules/unused-parameter: New file.
12151         * lib/unistr.h: Include unused-parameter.h.
12152         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
12153         _GL_UNUSED.
12154         * modules/unistr/base (Depends-on): Add unused-parameter.
12155
12156 2009-12-24  Bruno Haible  <bruno@clisp.org>
12157
12158         Add missing dependencies to 'extensions' module.
12159         * m4/extensions.m4: Add comment.
12160         * modules/accept4 (Depends-on): Add extensions.
12161         * modules/dup3 (Depends-on): Likewise.
12162         * modules/fcntl (Depends-on): Likewise.
12163         * modules/futimens (Depends-on): Likewise.
12164         * modules/mknod (Depends-on): Likewise.
12165         * modules/pipe2 (Depends-on): Likewise.
12166         * modules/stat-time (Depends-on): Likewise.
12167         * modules/strcasestr-simple (Depends-on): Likewise.
12168         * modules/strsignal (Depends-on): Likewise.
12169         * modules/utimensat (Depends-on): Likewise.
12170         * modules/localcharset (Depends-on): Likewise. Needed because of
12171         gl_FCNTL_O_FLAGS.
12172         * modules/wcrtomb (Depends-on): Likewise. Needed because of
12173         AC_TYPE_MBSTATE_T.
12174         * modules/wcsnrtombs (Depends-on): Likewise.
12175         * modules/wcsrtombs (Depends-on): Likewise.
12176
12177 2009-12-24  Bruno Haible  <bruno@clisp.org>
12178
12179         binary-io: Avoid gcc warning due to SET_BINARY.
12180         * lib/binary-io.h (SET_BINARY): Cast the result to void.
12181         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
12182
12183 2009-12-24  Bruno Haible  <bruno@clisp.org>
12184
12185         Avoid future namespace pollution on glibc systems.
12186         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
12187         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
12188         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
12189         glibc systems.
12190
12191 2009-12-24  Bruno Haible  <bruno@clisp.org>
12192
12193         Refactor common macros used in tests.
12194         * tests/macros.h: New file.
12195         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
12196         and/or <stdlib.h>, if appropriate.
12197         (ASSERT, SIZEOF): Remove macros.
12198         * tests/test-areadlink-with-size.c: Likewise.
12199         * tests/test-areadlinkat.c: Likewise.
12200         * tests/test-areadlinkat-with-size.c: Likewise.
12201         * tests/test-argmatch.c: Likewise.
12202         * tests/test-argv-iter.c: Likewise.
12203         * tests/test-array-mergesort.c: Likewise.
12204         * tests/test-array_list.c: Likewise.
12205         * tests/test-array_oset.c: Likewise.
12206         * tests/test-avltree_list.c: Likewise.
12207         * tests/test-avltree_oset.c: Likewise.
12208         * tests/test-avltreehash_list.c: Likewise.
12209         * tests/test-base64.c: Likewise.
12210         * tests/test-binary-io.c: Likewise.
12211         * tests/test-bitrotate.c: Likewise.
12212         * tests/test-btowc.c: Likewise.
12213         * tests/test-byteswap.c: Likewise.
12214         * tests/test-c-ctype.c: Likewise.
12215         * tests/test-c-stack.c: Likewise.
12216         * tests/test-c-strcasecmp.c: Likewise.
12217         * tests/test-c-strcasestr.c: Likewise.
12218         * tests/test-c-strncasecmp.c: Likewise.
12219         * tests/test-c-strstr.c: Likewise.
12220         * tests/test-canonicalize-lgpl.c: Likewise.
12221         * tests/test-canonicalize.c: Likewise.
12222         * tests/test-carray_list.c: Likewise.
12223         * tests/test-ceilf1.c: Likewise.
12224         * tests/test-ceilf2.c: Likewise.
12225         * tests/test-ceill.c: Likewise.
12226         * tests/test-chown.c: Likewise.
12227         * tests/test-cloexec.c: Likewise.
12228         * tests/test-copy-acl.c: Likewise.
12229         * tests/test-copy-file.c: Likewise.
12230         * tests/test-count-one-bits.c: Likewise.
12231         * tests/test-dprintf-posix.c: Likewise.
12232         * tests/test-dup2.c: Likewise.
12233         * tests/test-dup3.c: Likewise.
12234         * tests/test-duplocale.c: Likewise.
12235         * tests/test-fbufmode.c: Likewise.
12236         * tests/test-fchdir.c: Likewise.
12237         * tests/test-fchownat.c: Likewise.
12238         * tests/test-fcntl-safer.c: Likewise.
12239         * tests/test-fcntl.c: Likewise.
12240         * tests/test-fdopendir.c: Likewise.
12241         * tests/test-fdutimensat.c: Likewise.
12242         * tests/test-fflush2.c: Likewise.
12243         * tests/test-file-has-acl.c: Likewise.
12244         * tests/test-filevercmp.c: Likewise.
12245         * tests/test-flock.c: Likewise.
12246         * tests/test-floorf1.c: Likewise.
12247         * tests/test-floorf2.c: Likewise.
12248         * tests/test-floorl.c: Likewise.
12249         * tests/test-fnmatch.c: Likewise.
12250         * tests/test-fopen.h: Likewise.
12251         * tests/test-fpending.c: Likewise.
12252         * tests/test-fprintf-posix.c: Likewise.
12253         * tests/test-fpurge.c: Likewise.
12254         * tests/test-freadable.c: Likewise.
12255         * tests/test-freadahead.c: Likewise.
12256         * tests/test-freading.c: Likewise.
12257         * tests/test-freadptr.c: Likewise.
12258         * tests/test-freadptr2.c: Likewise.
12259         * tests/test-freadseek.c: Likewise.
12260         * tests/test-freopen.c: Likewise.
12261         * tests/test-frexp.c: Likewise.
12262         * tests/test-frexpl.c: Likewise.
12263         * tests/test-fseek.c: Likewise.
12264         * tests/test-fseeko.c: Likewise.
12265         * tests/test-fstatat.c: Likewise.
12266         * tests/test-fstrcmp.c: Likewise.
12267         * tests/test-fsync.c: Likewise.
12268         * tests/test-ftell.c: Likewise.
12269         * tests/test-ftello.c: Likewise.
12270         * tests/test-func.c: Likewise.
12271         * tests/test-futimens.c: Likewise.
12272         * tests/test-fwritable.c: Likewise.
12273         * tests/test-fwriting.c: Likewise.
12274         * tests/test-getcwd.c: Likewise.
12275         * tests/test-getdate.c: Likewise.
12276         * tests/test-getdelim.c: Likewise.
12277         * tests/test-getdtablesize.c: Likewise.
12278         * tests/test-getgroups.c: Likewise.
12279         * tests/test-getline.c: Likewise.
12280         * tests/test-getndelim2.c: Likewise.
12281         * tests/test-glob.c: Likewise.
12282         * tests/test-hash.c: Likewise.
12283         * tests/test-i-ring.c: Likewise.
12284         * tests/test-iconv-utf.c: Likewise.
12285         * tests/test-iconv.c: Likewise.
12286         * tests/test-idpriv-drop.c: Likewise.
12287         * tests/test-idpriv-droptemp.c: Likewise.
12288         * tests/test-inet_ntop.c: Likewise.
12289         * tests/test-inet_pton.c: Likewise.
12290         * tests/test-isblank.c: Likewise.
12291         * tests/test-isfinite.c: Likewise.
12292         * tests/test-isinf.c: Likewise.
12293         * tests/test-isnan.c: Likewise.
12294         * tests/test-isnand.h: Likewise.
12295         * tests/test-isnanf.h: Likewise.
12296         * tests/test-isnanl.h: Likewise.
12297         * tests/test-lchown.c: Likewise.
12298         * tests/test-ldexpl.c: Likewise.
12299         * tests/test-link.c: Likewise.
12300         * tests/test-linkat.c: Likewise.
12301         * tests/test-linked_list.c: Likewise.
12302         * tests/test-linkedhash_list.c: Likewise.
12303         * tests/test-localename.c: Likewise.
12304         * tests/test-lseek.c: Likewise.
12305         * tests/test-lstat.c: Likewise.
12306         * tests/test-mbmemcasecmp.c: Likewise.
12307         * tests/test-mbmemcasecoll.c: Likewise.
12308         * tests/test-mbrtowc.c: Likewise.
12309         * tests/test-mbscasecmp.c: Likewise.
12310         * tests/test-mbscasestr1.c: Likewise.
12311         * tests/test-mbscasestr2.c: Likewise.
12312         * tests/test-mbscasestr3.c: Likewise.
12313         * tests/test-mbscasestr4.c: Likewise.
12314         * tests/test-mbschr.c: Likewise.
12315         * tests/test-mbscspn.c: Likewise.
12316         * tests/test-mbsinit.c: Likewise.
12317         * tests/test-mbsncasecmp.c: Likewise.
12318         * tests/test-mbsnrtowcs.c: Likewise.
12319         * tests/test-mbspbrk.c: Likewise.
12320         * tests/test-mbspcasecmp.c: Likewise.
12321         * tests/test-mbsrchr.c: Likewise.
12322         * tests/test-mbsrtowcs.c: Likewise.
12323         * tests/test-mbsspn.c: Likewise.
12324         * tests/test-mbsstr1.c: Likewise.
12325         * tests/test-mbsstr2.c: Likewise.
12326         * tests/test-mbsstr3.c: Likewise.
12327         * tests/test-memchr.c: Likewise.
12328         * tests/test-memchr2.c: Likewise.
12329         * tests/test-memcmp.c: Likewise.
12330         * tests/test-memmem.c: Likewise.
12331         * tests/test-memrchr.c: Likewise.
12332         * tests/test-mkdir.c: Likewise.
12333         * tests/test-mkdirat.c: Likewise.
12334         * tests/test-mkfifo.c: Likewise.
12335         * tests/test-mkfifoat.c: Likewise.
12336         * tests/test-mknod.c: Likewise.
12337         * tests/test-nanosleep.c: Likewise.
12338         * tests/test-nl_langinfo.c: Likewise.
12339         * tests/test-obstack-printf.c: Likewise.
12340         * tests/test-open.c: Likewise.
12341         * tests/test-openat.c: Likewise.
12342         * tests/test-pipe-filter-gi1.c: Likewise.
12343         * tests/test-pipe-filter-gi2-main.c: Likewise.
12344         * tests/test-pipe-filter-ii1.c: Likewise.
12345         * tests/test-pipe-filter-ii2-main.c: Likewise.
12346         * tests/test-pipe2.c: Likewise.
12347         * tests/test-popen.h: Likewise.
12348         * tests/test-posixtm.c: Likewise.
12349         * tests/test-pread.c: Likewise.
12350         * tests/test-printf-frexp.c: Likewise.
12351         * tests/test-printf-frexpl.c: Likewise.
12352         * tests/test-printf-posix.c: Likewise.
12353         * tests/test-priv-set.c: Likewise.
12354         * tests/test-quotearg.c: Likewise.
12355         * tests/test-random_r.c: Likewise.
12356         * tests/test-rawmemchr.c: Likewise.
12357         * tests/test-rbtree_list.c: Likewise.
12358         * tests/test-rbtree_oset.c: Likewise.
12359         * tests/test-rbtreehash_list.c: Likewise.
12360         * tests/test-readlink.c: Likewise.
12361         * tests/test-remove.c: Likewise.
12362         * tests/test-rename.c: Likewise.
12363         * tests/test-renameat.c: Likewise.
12364         * tests/test-rmdir.c: Likewise.
12365         * tests/test-round1.c: Likewise.
12366         * tests/test-roundf1.c: Likewise.
12367         * tests/test-roundl.c: Likewise.
12368         * tests/test-safe-alloc.c: Likewise.
12369         * tests/test-sameacls.c: Likewise.
12370         * tests/test-set-mode-acl.c: Likewise.
12371         * tests/test-setenv.c: Likewise.
12372         * tests/test-sigaction.c: Likewise.
12373         * tests/test-signbit.c: Likewise.
12374         * tests/test-sleep.c: Likewise.
12375         * tests/test-snprintf-posix.c: Likewise.
12376         * tests/test-snprintf.c: Likewise.
12377         * tests/test-sprintf-posix.c: Likewise.
12378         * tests/test-stat-time.c: Likewise.
12379         * tests/test-stat.c: Likewise.
12380         * tests/test-strcasestr.c: Likewise.
12381         * tests/test-strchrnul.c: Likewise.
12382         * tests/test-strerror.c: Likewise.
12383         * tests/test-striconv.c: Likewise.
12384         * tests/test-striconveh.c: Likewise.
12385         * tests/test-striconveha.c: Likewise.
12386         * tests/test-strsignal.c: Likewise.
12387         * tests/test-strstr.c: Likewise.
12388         * tests/test-strtod.c: Likewise.
12389         * tests/test-strverscmp.c: Likewise.
12390         * tests/test-symlink.c: Likewise.
12391         * tests/test-symlinkat.c: Likewise.
12392         * tests/test-trunc1.c: Likewise.
12393         * tests/test-trunc2.c: Likewise.
12394         * tests/test-truncf1.c: Likewise.
12395         * tests/test-truncf2.c: Likewise.
12396         * tests/test-truncl.c: Likewise.
12397         * tests/test-uname.c: Likewise.
12398         * tests/test-unlink.c: Likewise.
12399         * tests/test-unlinkat.c: Likewise.
12400         * tests/test-unsetenv.c: Likewise.
12401         * tests/test-usleep.c: Likewise.
12402         * tests/test-utimens.c: Likewise.
12403         * tests/test-utimensat.c: Likewise.
12404         * tests/test-vasnprintf-posix.c: Likewise.
12405         * tests/test-vasnprintf-posix2.c: Likewise.
12406         * tests/test-vasnprintf.c: Likewise.
12407         * tests/test-vasprintf-posix.c: Likewise.
12408         * tests/test-vasprintf.c: Likewise.
12409         * tests/test-vdprintf-posix.c: Likewise.
12410         * tests/test-vfprintf-posix.c: Likewise.
12411         * tests/test-vprintf-posix.c: Likewise.
12412         * tests/test-vsnprintf-posix.c: Likewise.
12413         * tests/test-vsnprintf.c: Likewise.
12414         * tests/test-vsprintf-posix.c: Likewise.
12415         * tests/test-wcrtomb.c: Likewise.
12416         * tests/test-wcsnrtombs.c: Likewise.
12417         * tests/test-wcsrtombs.c: Likewise.
12418         * tests/test-wctype.c: Likewise.
12419         * tests/test-wcwidth.c: Likewise.
12420         * tests/test-xfprintf-posix.c: Likewise.
12421         * tests/test-xmemdup0.c: Likewise.
12422         * tests/test-xprintf-posix.c: Likewise.
12423         * tests/test-xvasprintf.c: Likewise.
12424         * tests/unicase/test-locale-language.c: Likewise.
12425         * tests/unicase/test-mapping-part1.h: Likewise.
12426         * tests/unicase/test-predicate-part1.h: Likewise.
12427         * tests/unicase/test-u8-casecmp.c: Likewise.
12428         * tests/unicase/test-u8-casecoll.c: Likewise.
12429         * tests/unicase/test-u8-casefold.c: Likewise.
12430         * tests/unicase/test-u8-is-cased.c: Likewise.
12431         * tests/unicase/test-u8-is-casefolded.c: Likewise.
12432         * tests/unicase/test-u8-is-lowercase.c: Likewise.
12433         * tests/unicase/test-u8-is-titlecase.c: Likewise.
12434         * tests/unicase/test-u8-is-uppercase.c: Likewise.
12435         * tests/unicase/test-u8-tolower.c: Likewise.
12436         * tests/unicase/test-u8-totitle.c: Likewise.
12437         * tests/unicase/test-u8-toupper.c: Likewise.
12438         * tests/unicase/test-u16-casecmp.c: Likewise.
12439         * tests/unicase/test-u16-casecoll.c: Likewise.
12440         * tests/unicase/test-u16-casefold.c: Likewise.
12441         * tests/unicase/test-u16-is-cased.c: Likewise.
12442         * tests/unicase/test-u16-is-casefolded.c: Likewise.
12443         * tests/unicase/test-u16-is-lowercase.c: Likewise.
12444         * tests/unicase/test-u16-is-titlecase.c: Likewise.
12445         * tests/unicase/test-u16-is-uppercase.c: Likewise.
12446         * tests/unicase/test-u16-tolower.c: Likewise.
12447         * tests/unicase/test-u16-totitle.c: Likewise.
12448         * tests/unicase/test-u16-toupper.c: Likewise.
12449         * tests/unicase/test-u32-casecmp.c: Likewise.
12450         * tests/unicase/test-u32-casecoll.c: Likewise.
12451         * tests/unicase/test-u32-casefold.c: Likewise.
12452         * tests/unicase/test-u32-is-cased.c: Likewise.
12453         * tests/unicase/test-u32-is-casefolded.c: Likewise.
12454         * tests/unicase/test-u32-is-lowercase.c: Likewise.
12455         * tests/unicase/test-u32-is-titlecase.c: Likewise.
12456         * tests/unicase/test-u32-is-uppercase.c: Likewise.
12457         * tests/unicase/test-u32-tolower.c: Likewise.
12458         * tests/unicase/test-u32-totitle.c: Likewise.
12459         * tests/unicase/test-u32-toupper.c: Likewise.
12460         * tests/unicase/test-ulc-casecmp.c: Likewise.
12461         * tests/unicase/test-ulc-casecoll.c: Likewise.
12462         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12463         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
12464         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12465         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12466         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
12467         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
12468         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12469         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12470         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12471         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
12472         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12473         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12474         * tests/unictype/test-bidi_byname.c: Likewise.
12475         * tests/unictype/test-bidi_name.c: Likewise.
12476         * tests/unictype/test-bidi_of.c: Likewise.
12477         * tests/unictype/test-bidi_test.c: Likewise.
12478         * tests/unictype/test-block_list.c: Likewise.
12479         * tests/unictype/test-block_of.c: Likewise.
12480         * tests/unictype/test-block_test.c: Likewise.
12481         * tests/unictype/test-categ_and.c: Likewise.
12482         * tests/unictype/test-categ_and_not.c: Likewise.
12483         * tests/unictype/test-categ_byname.c: Likewise.
12484         * tests/unictype/test-categ_name.c: Likewise.
12485         * tests/unictype/test-categ_none.c: Likewise.
12486         * tests/unictype/test-categ_of.c: Likewise.
12487         * tests/unictype/test-categ_or.c: Likewise.
12488         * tests/unictype/test-categ_test_withtable.c: Likewise.
12489         * tests/unictype/test-combining.c: Likewise.
12490         * tests/unictype/test-decdigit.c: Likewise.
12491         * tests/unictype/test-digit.c: Likewise.
12492         * tests/unictype/test-mirror.c: Likewise.
12493         * tests/unictype/test-numeric.c: Likewise.
12494         * tests/unictype/test-pr_byname.c: Likewise.
12495         * tests/unictype/test-pr_test.c: Likewise.
12496         * tests/unictype/test-predicate-part1.h: Likewise.
12497         * tests/unictype/test-scripts.c: Likewise.
12498         * tests/unictype/test-sy_c_ident.c: Likewise.
12499         * tests/unictype/test-sy_java_ident.c: Likewise.
12500         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
12501         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
12502         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
12503         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
12504         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
12505         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
12506         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
12507         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
12508         * tests/uninorm/test-canonical-decomposition.c: Likewise.
12509         * tests/uninorm/test-compat-decomposition.c: Likewise.
12510         * tests/uninorm/test-composition.c: Likewise.
12511         * tests/uninorm/test-decomposing-form.c: Likewise.
12512         * tests/uninorm/test-decomposition.c: Likewise.
12513         * tests/uninorm/test-u8-nfc.c: Likewise.
12514         * tests/uninorm/test-u8-nfd.c: Likewise.
12515         * tests/uninorm/test-u8-nfkc.c: Likewise.
12516         * tests/uninorm/test-u8-nfkd.c: Likewise.
12517         * tests/uninorm/test-u8-normcmp.c: Likewise.
12518         * tests/uninorm/test-u8-normcoll.c: Likewise.
12519         * tests/uninorm/test-u16-nfc.c: Likewise.
12520         * tests/uninorm/test-u16-nfd.c: Likewise.
12521         * tests/uninorm/test-u16-nfkc.c: Likewise.
12522         * tests/uninorm/test-u16-nfkd.c: Likewise.
12523         * tests/uninorm/test-u16-normcmp.c: Likewise.
12524         * tests/uninorm/test-u16-normcoll.c: Likewise.
12525         * tests/uninorm/test-u32-nfc.c: Likewise.
12526         * tests/uninorm/test-u32-nfd.c: Likewise.
12527         * tests/uninorm/test-u32-nfkc.c: Likewise.
12528         * tests/uninorm/test-u32-nfkd.c: Likewise.
12529         * tests/uninorm/test-u32-normalize-big.c: Likewise.
12530         * tests/uninorm/test-u32-normcmp.c: Likewise.
12531         * tests/uninorm/test-u32-normcoll.c: Likewise.
12532         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
12533         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
12534         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
12535         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
12536         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
12537         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
12538         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
12539         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
12540         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
12541         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
12542         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
12543         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
12544         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
12545         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
12546         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
12547         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
12548         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
12549         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
12550         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
12551         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
12552         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
12553         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
12554         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
12555         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
12556         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
12557         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
12558         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
12559         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
12560         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
12561         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
12562         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
12563         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
12564         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
12565         * tests/uniwidth/test-u8-strwidth.c: Likewise.
12566         * tests/uniwidth/test-u8-width.c: Likewise.
12567         * tests/uniwidth/test-u16-strwidth.c: Likewise.
12568         * tests/uniwidth/test-u16-width.c: Likewise.
12569         * tests/uniwidth/test-u32-strwidth.c: Likewise.
12570         * tests/uniwidth/test-u32-width.c: Likewise.
12571         * tests/uniwidth/test-uc_width.c: Likewise.
12572         * tests/uniwidth/test-uc_width2.c: Likewise.
12573         * modules/acl-tests (Files): Add tests/macros.h.
12574         * modules/areadlink-tests (Files): Likewise.
12575         * modules/areadlink-with-size-tests (Files): Likewise.
12576         * modules/areadlinkat-tests (Files): Likewise.
12577         * modules/areadlinkat-with-size-tests (Files): Likewise.
12578         * modules/argmatch-tests (Files): Likewise.
12579         * modules/argv-iter-tests (Files): Likewise.
12580         * modules/array-list-tests (Files): Likewise.
12581         * modules/array-mergesort-tests (Files): Likewise.
12582         * modules/array-oset-tests (Files): Likewise.
12583         * modules/avltree-list-tests (Files): Likewise.
12584         * modules/avltree-oset-tests (Files): Likewise.
12585         * modules/avltreehash-list-tests (Files): Likewise.
12586         * modules/base64-tests (Files): Likewise.
12587         * modules/binary-io-tests (Files): Likewise.
12588         * modules/bitrotate-tests (Files): Likewise.
12589         * modules/btowc-tests (Files): Likewise.
12590         * modules/byteswap-tests (Files): Likewise.
12591         * modules/c-ctype-tests (Files): Likewise.
12592         * modules/c-stack-tests (Files): Likewise.
12593         * modules/c-strcase-tests (Files): Likewise.
12594         * modules/c-strcasestr-tests (Files): Likewise.
12595         * modules/c-strstr-tests (Files): Likewise.
12596         * modules/canonicalize-lgpl-tests (Files): Likewise.
12597         * modules/canonicalize-tests (Files): Likewise.
12598         * modules/carray-list-tests (Files): Likewise.
12599         * modules/ceilf-tests (Files): Likewise.
12600         * modules/ceill-tests (Files): Likewise.
12601         * modules/chown-tests (Files): Likewise.
12602         * modules/cloexec-tests (Files): Likewise.
12603         * modules/copy-file-tests (Files): Likewise.
12604         * modules/count-one-bits-tests (Files): Likewise.
12605         * modules/dprintf-posix-tests (Files): Likewise.
12606         * modules/dup2-tests (Files): Likewise.
12607         * modules/dup3-tests (Files): Likewise.
12608         * modules/duplocale-tests (Files): Likewise.
12609         * modules/fbufmode-tests (Files): Likewise.
12610         * modules/fchdir-tests (Files): Likewise.
12611         * modules/fcntl-safer-tests (Files): Likewise.
12612         * modules/fcntl-tests (Files): Likewise.
12613         * modules/fdopendir-tests (Files): Likewise.
12614         * modules/fdutimensat-tests (Files): Likewise.
12615         * modules/fflush-tests (Files): Likewise.
12616         * modules/filevercmp-tests (Files): Likewise.
12617         * modules/flock-tests (Files): Likewise.
12618         * modules/floorf-tests (Files): Likewise.
12619         * modules/floorl-tests (Files): Likewise.
12620         * modules/fnmatch-tests (Files): Likewise.
12621         * modules/fopen-safer-tests (Files): Likewise.
12622         * modules/fopen-tests (Files): Likewise.
12623         * modules/fpending-tests (Files): Likewise.
12624         * modules/fprintf-posix-tests (Files): Likewise.
12625         * modules/fpurge-tests (Files): Likewise.
12626         * modules/freadable-tests (Files): Likewise.
12627         * modules/freadahead-tests (Files): Likewise.
12628         * modules/freading-tests (Files): Likewise.
12629         * modules/freadptr-tests (Files): Likewise.
12630         * modules/freadseek-tests (Files): Likewise.
12631         * modules/freopen-tests (Files): Likewise.
12632         * modules/frexp-nolibm-tests (Files): Likewise.
12633         * modules/frexp-tests (Files): Likewise.
12634         * modules/frexpl-nolibm-tests (Files): Likewise.
12635         * modules/frexpl-tests (Files): Likewise.
12636         * modules/fseek-tests (Files): Likewise.
12637         * modules/fseeko-tests (Files): Likewise.
12638         * modules/fstrcmp-tests (Files): Likewise.
12639         * modules/fsync-tests (Files): Likewise.
12640         * modules/ftell-tests (Files): Likewise.
12641         * modules/ftello-tests (Files): Likewise.
12642         * modules/func-tests (Files): Likewise.
12643         * modules/futimens-tests (Files): Likewise.
12644         * modules/fwritable-tests (Files): Likewise.
12645         * modules/fwriting-tests (Files): Likewise.
12646         * modules/getcwd-tests (Files): Likewise.
12647         * modules/getdate-tests (Files): Likewise.
12648         * modules/getdelim-tests (Files): Likewise.
12649         * modules/getdtablesize-tests (Files): Likewise.
12650         * modules/getgroups-tests (Files): Likewise.
12651         * modules/getline-tests (Files): Likewise.
12652         * modules/getndelim2-tests (Files): Likewise.
12653         * modules/glob-tests (Files): Likewise.
12654         * modules/hash-tests (Files): Likewise.
12655         * modules/i-ring-tests (Files): Likewise.
12656         * modules/iconv-tests (Files): Likewise.
12657         * modules/iconv_open-utf-tests (Files): Likewise.
12658         * modules/idpriv-drop-tests (Files): Likewise.
12659         * modules/idpriv-droptemp-tests (Files): Likewise.
12660         * modules/inet_ntop-tests (Files): Likewise.
12661         * modules/inet_pton-tests (Files): Likewise.
12662         * modules/isblank-tests (Files): Likewise.
12663         * modules/isfinite-tests (Files): Likewise.
12664         * modules/isinf-tests (Files): Likewise.
12665         * modules/isnan-tests (Files): Likewise.
12666         * modules/isnand-nolibm-tests (Files): Likewise.
12667         * modules/isnand-tests (Files): Likewise.
12668         * modules/isnanf-nolibm-tests (Files): Likewise.
12669         * modules/isnanf-tests (Files): Likewise.
12670         * modules/isnanl-nolibm-tests (Files): Likewise.
12671         * modules/isnanl-tests (Files): Likewise.
12672         * modules/lchown-tests (Files): Likewise.
12673         * modules/ldexpl-tests (Files): Likewise.
12674         * modules/link-tests (Files): Likewise.
12675         * modules/linkat-tests (Files): Likewise.
12676         * modules/linked-list-tests (Files): Likewise.
12677         * modules/linkedhash-list-tests (Files): Likewise.
12678         * modules/localename-tests (Files): Likewise.
12679         * modules/lseek-tests (Files): Likewise.
12680         * modules/lstat-tests (Files): Likewise.
12681         * modules/mbmemcasecmp-tests (Files): Likewise.
12682         * modules/mbmemcasecoll-tests (Files): Likewise.
12683         * modules/mbrtowc-tests (Files): Likewise.
12684         * modules/mbscasecmp-tests (Files): Likewise.
12685         * modules/mbscasestr-tests (Files): Likewise.
12686         * modules/mbschr-tests (Files): Likewise.
12687         * modules/mbscspn-tests (Files): Likewise.
12688         * modules/mbsinit-tests (Files): Likewise.
12689         * modules/mbsncasecmp-tests (Files): Likewise.
12690         * modules/mbsnrtowcs-tests (Files): Likewise.
12691         * modules/mbspbrk-tests (Files): Likewise.
12692         * modules/mbspcasecmp-tests (Files): Likewise.
12693         * modules/mbsrchr-tests (Files): Likewise.
12694         * modules/mbsrtowcs-tests (Files): Likewise.
12695         * modules/mbsspn-tests (Files): Likewise.
12696         * modules/mbsstr-tests (Files): Likewise.
12697         * modules/memchr-tests (Files): Likewise.
12698         * modules/memchr2-tests (Files): Likewise.
12699         * modules/memcmp-tests (Files): Likewise.
12700         * modules/memmem-tests (Files): Likewise.
12701         * modules/memrchr-tests (Files): Likewise.
12702         * modules/mkdir-tests (Files): Likewise.
12703         * modules/mkfifo-tests (Files): Likewise.
12704         * modules/mkfifoat-tests (Files): Likewise.
12705         * modules/mknod-tests (Files): Likewise.
12706         * modules/nanosleep-tests (Files): Likewise.
12707         * modules/nl_langinfo-tests (Files): Likewise.
12708         * modules/obstack-printf-tests (Files): Likewise.
12709         * modules/open-tests (Files): Likewise.
12710         * modules/openat-tests (Files): Likewise.
12711         * modules/pipe-filter-gi-tests (Files): Likewise.
12712         * modules/pipe-filter-ii-tests (Files): Likewise.
12713         * modules/pipe2-tests (Files): Likewise.
12714         * modules/popen-safer-tests (Files): Likewise.
12715         * modules/popen-tests (Files): Likewise.
12716         * modules/posixtm-tests (Files): Likewise.
12717         * modules/pread-tests (Files): Likewise.
12718         * modules/printf-frexp-tests (Files): Likewise.
12719         * modules/printf-frexpl-tests (Files): Likewise.
12720         * modules/printf-posix-tests (Files): Likewise.
12721         * modules/priv-set-tests (Files): Likewise.
12722         * modules/quotearg-tests (Files): Likewise.
12723         * modules/random_r-tests (Files): Likewise.
12724         * modules/rawmemchr-tests (Files): Likewise.
12725         * modules/rbtree-list-tests (Files): Likewise.
12726         * modules/rbtree-oset-tests (Files): Likewise.
12727         * modules/rbtreehash-list-tests (Files): Likewise.
12728         * modules/readlink-tests (Files): Likewise.
12729         * modules/remove-tests (Files): Likewise.
12730         * modules/rename-tests (Files): Likewise.
12731         * modules/renameat-tests (Files): Likewise.
12732         * modules/rmdir-tests (Files): Likewise.
12733         * modules/round-tests (Files): Likewise.
12734         * modules/roundf-tests (Files): Likewise.
12735         * modules/roundl-tests (Files): Likewise.
12736         * modules/safe-alloc-tests (Files): Likewise.
12737         * modules/setenv-tests (Files): Likewise.
12738         * modules/sigaction-tests (Files): Likewise.
12739         * modules/signbit-tests (Files): Likewise.
12740         * modules/sleep-tests (Files): Likewise.
12741         * modules/snprintf-posix-tests (Files): Likewise.
12742         * modules/snprintf-tests (Files): Likewise.
12743         * modules/sprintf-posix-tests (Files): Likewise.
12744         * modules/stat-tests (Files): Likewise.
12745         * modules/stat-time-tests (Files): Likewise.
12746         * modules/strcasestr-tests (Files): Likewise.
12747         * modules/strchrnul-tests (Files): Likewise.
12748         * modules/strerror-tests (Files): Likewise.
12749         * modules/striconv-tests (Files): Likewise.
12750         * modules/striconveh-tests (Files): Likewise.
12751         * modules/striconveha-tests (Files): Likewise.
12752         * modules/strsignal-tests (Files): Likewise.
12753         * modules/strstr-tests (Files): Likewise.
12754         * modules/strtod-tests (Files): Likewise.
12755         * modules/strverscmp-tests (Files): Likewise.
12756         * modules/symlink-tests (Files): Likewise.
12757         * modules/symlinkat-tests (Files): Likewise.
12758         * modules/trunc-tests (Files): Likewise.
12759         * modules/truncf-tests (Files): Likewise.
12760         * modules/truncl-tests (Files): Likewise.
12761         * modules/uname-tests (Files): Likewise.
12762         * modules/unicase/cased-tests (Files): Likewise.
12763         * modules/unicase/ignorable-tests (Files): Likewise.
12764         * modules/unicase/locale-language-tests (Files): Likewise.
12765         * modules/unicase/tolower-tests (Files): Likewise.
12766         * modules/unicase/totitle-tests (Files): Likewise.
12767         * modules/unicase/toupper-tests (Files): Likewise.
12768         * modules/unicase/u8-casecmp-tests (Files): Likewise.
12769         * modules/unicase/u8-casecoll-tests (Files): Likewise.
12770         * modules/unicase/u8-casefold-tests (Files): Likewise.
12771         * modules/unicase/u8-is-cased-tests (Files): Likewise.
12772         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
12773         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
12774         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
12775         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
12776         * modules/unicase/u8-tolower-tests (Files): Likewise.
12777         * modules/unicase/u8-totitle-tests (Files): Likewise.
12778         * modules/unicase/u8-toupper-tests (Files): Likewise.
12779         * modules/unicase/u16-casecmp-tests (Files): Likewise.
12780         * modules/unicase/u16-casecoll-tests (Files): Likewise.
12781         * modules/unicase/u16-casefold-tests (Files): Likewise.
12782         * modules/unicase/u16-is-cased-tests (Files): Likewise.
12783         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
12784         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
12785         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
12786         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
12787         * modules/unicase/u16-tolower-tests (Files): Likewise.
12788         * modules/unicase/u16-totitle-tests (Files): Likewise.
12789         * modules/unicase/u16-toupper-tests (Files): Likewise.
12790         * modules/unicase/u32-casecmp-tests (Files): Likewise.
12791         * modules/unicase/u32-casecoll-tests (Files): Likewise.
12792         * modules/unicase/u32-casefold-tests (Files): Likewise.
12793         * modules/unicase/u32-is-cased-tests (Files): Likewise.
12794         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
12795         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
12796         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
12797         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
12798         * modules/unicase/u32-tolower-tests (Files): Likewise.
12799         * modules/unicase/u32-totitle-tests (Files): Likewise.
12800         * modules/unicase/u32-toupper-tests (Files): Likewise.
12801         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
12802         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
12803         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
12804         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
12805         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
12806         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
12807         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
12808         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
12809         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
12810         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
12811         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
12812         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
12813         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
12814         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
12815         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
12816         * modules/unictype/bidicategory-name-tests (Files): Likewise.
12817         * modules/unictype/bidicategory-of-tests (Files): Likewise.
12818         * modules/unictype/bidicategory-test-tests (Files): Likewise.
12819         * modules/unictype/block-list-tests (Files): Likewise.
12820         * modules/unictype/block-of-tests (Files): Likewise.
12821         * modules/unictype/block-test-tests (Files): Likewise.
12822         * modules/unictype/category-C-tests (Files): Likewise.
12823         * modules/unictype/category-Cc-tests (Files): Likewise.
12824         * modules/unictype/category-Cf-tests (Files): Likewise.
12825         * modules/unictype/category-Cn-tests (Files): Likewise.
12826         * modules/unictype/category-Co-tests (Files): Likewise.
12827         * modules/unictype/category-Cs-tests (Files): Likewise.
12828         * modules/unictype/category-L-tests (Files): Likewise.
12829         * modules/unictype/category-Ll-tests (Files): Likewise.
12830         * modules/unictype/category-Lm-tests (Files): Likewise.
12831         * modules/unictype/category-Lo-tests (Files): Likewise.
12832         * modules/unictype/category-Lt-tests (Files): Likewise.
12833         * modules/unictype/category-Lu-tests (Files): Likewise.
12834         * modules/unictype/category-M-tests (Files): Likewise.
12835         * modules/unictype/category-Mc-tests (Files): Likewise.
12836         * modules/unictype/category-Me-tests (Files): Likewise.
12837         * modules/unictype/category-Mn-tests (Files): Likewise.
12838         * modules/unictype/category-N-tests (Files): Likewise.
12839         * modules/unictype/category-Nd-tests (Files): Likewise.
12840         * modules/unictype/category-Nl-tests (Files): Likewise.
12841         * modules/unictype/category-No-tests (Files): Likewise.
12842         * modules/unictype/category-P-tests (Files): Likewise.
12843         * modules/unictype/category-Pc-tests (Files): Likewise.
12844         * modules/unictype/category-Pd-tests (Files): Likewise.
12845         * modules/unictype/category-Pe-tests (Files): Likewise.
12846         * modules/unictype/category-Pf-tests (Files): Likewise.
12847         * modules/unictype/category-Pi-tests (Files): Likewise.
12848         * modules/unictype/category-Po-tests (Files): Likewise.
12849         * modules/unictype/category-Ps-tests (Files): Likewise.
12850         * modules/unictype/category-S-tests (Files): Likewise.
12851         * modules/unictype/category-Sc-tests (Files): Likewise.
12852         * modules/unictype/category-Sk-tests (Files): Likewise.
12853         * modules/unictype/category-Sm-tests (Files): Likewise.
12854         * modules/unictype/category-So-tests (Files): Likewise.
12855         * modules/unictype/category-Z-tests (Files): Likewise.
12856         * modules/unictype/category-Zl-tests (Files): Likewise.
12857         * modules/unictype/category-Zp-tests (Files): Likewise.
12858         * modules/unictype/category-Zs-tests (Files): Likewise.
12859         * modules/unictype/category-and-not-tests (Files): Likewise.
12860         * modules/unictype/category-and-tests (Files): Likewise.
12861         * modules/unictype/category-byname-tests (Files): Likewise.
12862         * modules/unictype/category-name-tests (Files): Likewise.
12863         * modules/unictype/category-none-tests (Files): Likewise.
12864         * modules/unictype/category-of-tests (Files): Likewise.
12865         * modules/unictype/category-or-tests (Files): Likewise.
12866         * modules/unictype/category-test-withtable-tests (Files): Likewise.
12867         * modules/unictype/combining-class-tests (Files): Likewise.
12868         * modules/unictype/ctype-alnum-tests (Files): Likewise.
12869         * modules/unictype/ctype-alpha-tests (Files): Likewise.
12870         * modules/unictype/ctype-blank-tests (Files): Likewise.
12871         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
12872         * modules/unictype/ctype-digit-tests (Files): Likewise.
12873         * modules/unictype/ctype-graph-tests (Files): Likewise.
12874         * modules/unictype/ctype-lower-tests (Files): Likewise.
12875         * modules/unictype/ctype-print-tests (Files): Likewise.
12876         * modules/unictype/ctype-punct-tests (Files): Likewise.
12877         * modules/unictype/ctype-space-tests (Files): Likewise.
12878         * modules/unictype/ctype-upper-tests (Files): Likewise.
12879         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
12880         * modules/unictype/decimal-digit-tests (Files): Likewise.
12881         * modules/unictype/digit-tests (Files): Likewise.
12882         * modules/unictype/mirror-tests (Files): Likewise.
12883         * modules/unictype/numeric-tests (Files): Likewise.
12884         * modules/unictype/property-alphabetic-tests (Files): Likewise.
12885         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
12886         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
12887         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
12888         Likewise.
12889         * modules/unictype/property-bidi-block-separator-tests (Files):
12890         Likewise.
12891         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
12892         Likewise.
12893         * modules/unictype/property-bidi-common-separator-tests (Files):
12894         Likewise.
12895         * modules/unictype/property-bidi-control-tests (Files): Likewise.
12896         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
12897         Likewise.
12898         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
12899         Likewise.
12900         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
12901         Likewise.
12902         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
12903         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
12904         Likewise.
12905         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
12906         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
12907         Likewise.
12908         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
12909         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
12910         * modules/unictype/property-bidi-segment-separator-tests (Files):
12911         Likewise.
12912         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
12913         * modules/unictype/property-byname-tests (Files): Likewise.
12914         * modules/unictype/property-combining-tests (Files): Likewise.
12915         * modules/unictype/property-composite-tests (Files): Likewise.
12916         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
12917         * modules/unictype/property-dash-tests (Files): Likewise.
12918         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
12919         * modules/unictype/property-default-ignorable-code-point-tests (Files):
12920         Likewise.
12921         * modules/unictype/property-deprecated-tests (Files): Likewise.
12922         * modules/unictype/property-diacritic-tests (Files): Likewise.
12923         * modules/unictype/property-extender-tests (Files): Likewise.
12924         * modules/unictype/property-format-control-tests (Files): Likewise.
12925         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
12926         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
12927         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
12928         * modules/unictype/property-hex-digit-tests (Files): Likewise.
12929         * modules/unictype/property-hyphen-tests (Files): Likewise.
12930         * modules/unictype/property-id-continue-tests (Files): Likewise.
12931         * modules/unictype/property-id-start-tests (Files): Likewise.
12932         * modules/unictype/property-ideographic-tests (Files): Likewise.
12933         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
12934         * modules/unictype/property-ids-trinary-operator-tests (Files):
12935         Likewise.
12936         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
12937         * modules/unictype/property-iso-control-tests (Files): Likewise.
12938         * modules/unictype/property-join-control-tests (Files): Likewise.
12939         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
12940         * modules/unictype/property-line-separator-tests (Files): Likewise.
12941         * modules/unictype/property-logical-order-exception-tests (Files):
12942         Likewise.
12943         * modules/unictype/property-lowercase-tests (Files): Likewise.
12944         * modules/unictype/property-math-tests (Files): Likewise.
12945         * modules/unictype/property-non-break-tests (Files): Likewise.
12946         * modules/unictype/property-not-a-character-tests (Files): Likewise.
12947         * modules/unictype/property-numeric-tests (Files): Likewise.
12948         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
12949         * modules/unictype/property-other-default-ignorable-code-point-tests
12950         (Files): Likewise.
12951         * modules/unictype/property-other-grapheme-extend-tests (Files):
12952         Likewise.
12953         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
12954         * modules/unictype/property-other-id-start-tests (Files): Likewise.
12955         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
12956         * modules/unictype/property-other-math-tests (Files): Likewise.
12957         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
12958         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
12959         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
12960         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
12961         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
12962         * modules/unictype/property-private-use-tests (Files): Likewise.
12963         * modules/unictype/property-punctuation-tests (Files): Likewise.
12964         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
12965         * modules/unictype/property-radical-tests (Files): Likewise.
12966         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
12967         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
12968         * modules/unictype/property-space-tests (Files): Likewise.
12969         * modules/unictype/property-terminal-punctuation-tests (Files):
12970         Likewise.
12971         * modules/unictype/property-test-tests (Files): Likewise.
12972         * modules/unictype/property-titlecase-tests (Files): Likewise.
12973         * modules/unictype/property-unassigned-code-value-tests (Files):
12974         Likewise.
12975         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
12976         * modules/unictype/property-uppercase-tests (Files): Likewise.
12977         * modules/unictype/property-variation-selector-tests (Files): Likewise.
12978         * modules/unictype/property-white-space-tests (Files): Likewise.
12979         * modules/unictype/property-xid-continue-tests (Files): Likewise.
12980         * modules/unictype/property-xid-start-tests (Files): Likewise.
12981         * modules/unictype/property-zero-width-tests (Files): Likewise.
12982         * modules/unictype/scripts-tests (Files): Likewise.
12983         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
12984         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
12985         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
12986         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
12987         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
12988         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
12989         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
12990         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
12991         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
12992         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
12993         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
12994         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
12995         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
12996         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
12997         * modules/uninorm/composition-tests (Files): Likewise.
12998         * modules/uninorm/decomposing-form-tests (Files): Likewise.
12999         * modules/uninorm/decomposition-tests (Files): Likewise.
13000         * modules/uninorm/filter-tests (Files): Likewise.
13001         * modules/uninorm/nfc-tests (Files): Likewise.
13002         * modules/uninorm/nfd-tests (Files): Likewise.
13003         * modules/uninorm/nfkc-tests (Files): Likewise.
13004         * modules/uninorm/nfkd-tests (Files): Likewise.
13005         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
13006         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
13007         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
13008         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
13009         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
13010         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
13011         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
13012         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
13013         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
13014         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
13015         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
13016         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
13017         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
13018         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
13019         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
13020         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
13021         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
13022         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
13023         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
13024         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
13025         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
13026         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
13027         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
13028         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
13029         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
13030         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
13031         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
13032         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
13033         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
13034         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
13035         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
13036         * modules/uniwidth/u8-width-tests (Files): Likewise.
13037         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
13038         * modules/uniwidth/u16-width-tests (Files): Likewise.
13039         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
13040         * modules/uniwidth/u32-width-tests (Files): Likewise.
13041         * modules/uniwidth/width-tests (Files): Likewise.
13042         * modules/unlink-tests (Files): Likewise.
13043         * modules/unsetenv-tests (Files): Likewise.
13044         * modules/usleep-tests (Files): Likewise.
13045         * modules/utimens-tests (Files): Likewise.
13046         * modules/utimensat-tests (Files): Likewise.
13047         * modules/vasnprintf-posix-tests (Files): Likewise.
13048         * modules/vasnprintf-tests (Files): Likewise.
13049         * modules/vasprintf-posix-tests (Files): Likewise.
13050         * modules/vasprintf-tests (Files): Likewise.
13051         * modules/vdprintf-posix-tests (Files): Likewise.
13052         * modules/vfprintf-posix-tests (Files): Likewise.
13053         * modules/vprintf-posix-tests (Files): Likewise.
13054         * modules/vsnprintf-posix-tests (Files): Likewise.
13055         * modules/vsnprintf-tests (Files): Likewise.
13056         * modules/vsprintf-posix-tests (Files): Likewise.
13057         * modules/wcrtomb-tests (Files): Likewise.
13058         * modules/wcsnrtombs-tests (Files): Likewise.
13059         * modules/wcsrtombs-tests (Files): Likewise.
13060         * modules/wctype-tests (Files): Likewise.
13061         * modules/wcwidth-tests (Files): Likewise.
13062         * modules/xmemdup0-tests (Files): Likewise.
13063         * modules/xprintf-posix-tests (Files): Likewise.
13064         * modules/xvasprintf-tests (Files): Likewise.
13065
13066 2009-12-24  Eric Blake  <ebb9@byu.net>
13067
13068         test-nanosleep: fix typo
13069         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
13070         patch.
13071         Reported by Bruno Haible.
13072
13073 2009-12-24  Bruno Haible  <bruno@clisp.org>
13074
13075         Reduce namespace pollution on glibc systems.
13076         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
13077         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
13078         systems.
13079         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
13080         <getopt.h> on glibc systems.
13081         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
13082         systems.
13083         * lib/fcntl.c: Include <unistd.h> here instead.
13084
13085 2009-12-24  Bruno Haible  <bruno@clisp.org>
13086
13087         * lib/stdlib.in.h (includes): Fix typo in today's commit.
13088
13089 2009-12-24  Eric Blake  <ebb9@byu.net>
13090
13091         tests: add signature checks
13092         * tests/signature.h (SIGNATURE_CHECK): New file.
13093         * modules/atexit-tests (Files): Use it.
13094         * modules/btowc-tests (Files): Likewise.
13095         * modules/canonicalize-lgpl-tests (Files): Likewise.
13096         * modules/ceilf-tests (Files): Likewise.
13097         * modules/ceill-tests (Files): Likewise.
13098         * modules/chown-tests (Files): Likewise.
13099         * modules/dprintf-posix-tests (Files): Likewise.
13100         * modules/dup2-tests (Files): Likewise.
13101         * modules/dup3-tests (Files): Likewise.
13102         * modules/duplocale-tests (Files): Likewise.
13103         * modules/fchdir-tests (Files): Likewise.
13104         * modules/fcntl-tests (Files): Likewise.
13105         * modules/fdopendir-tests (Files): Likewise.
13106         * modules/fflush-tests (Files): Likewise.
13107         * modules/flock-tests (Files): Likewise.
13108         * modules/floorf-tests (Files): Likewise.
13109         * modules/floorl-tests (Files): Likewise.
13110         * modules/fnmatch-tests (Files): Likewise.
13111         * modules/fopen-tests (Files): Likewise.
13112         * modules/fprintf-posix-tests (Files): Likewise.
13113         * modules/freopen-tests (Files): Likewise.
13114         * modules/frexp-nolibm-tests (Files): Likewise.
13115         * modules/frexp-tests (Files): Likewise.
13116         * modules/frexpl-nolibm-tests (Files): Likewise.
13117         * modules/frexpl-tests (Files): Likewise.
13118         * modules/fseek-tests (Files): Likewise.
13119         * modules/fseeko-tests (Files): Likewise.
13120         * modules/fsync-tests (Files): Likewise.
13121         * modules/ftell-tests (Files): Likewise.
13122         * modules/ftello-tests (Files): Likewise.
13123         * modules/futimens-tests (Files): Likewise.
13124         * modules/getaddrinfo-tests (Files): Likewise.
13125         * modules/getcwd-tests (Files): Likewise.
13126         * modules/getdelim-tests (Files): Likewise.
13127         * modules/getdtablesize-tests (Files): Likewise.
13128         * modules/getgroups-tests (Files): Likewise.
13129         * modules/gethostname-tests (Files): Likewise.
13130         * modules/getline-tests (Files): Likewise.
13131         * modules/getopt-posix-tests (Files): Likewise.
13132         * modules/gettimeofday-tests (Files): Likewise.
13133         * modules/glob-tests (Files): Likewise.
13134         * modules/iconv-tests (Files): Likewise.
13135         * modules/inet_ntop-tests (Files): Likewise.
13136         * modules/inet_pton-tests (Files): Likewise.
13137         * modules/isblank-tests (Files): Likewise.
13138         * modules/lchown-tests (Files): Likewise.
13139         * modules/ldexpl-tests (Files): Likewise.
13140         * modules/link-tests (Files): Likewise.
13141         * modules/linkat-tests (Files): Likewise.
13142         * modules/lseek-tests (Files): Likewise.
13143         * modules/lstat-tests (Files): Likewise.
13144         * modules/mbrtowc-tests (Files): Likewise.
13145         * modules/mbsinit-tests (Files): Likewise.
13146         * modules/mbsnrtowcs-tests (Files): Likewise.
13147         * modules/mbsrtowcs-tests (Files): Likewise.
13148         * modules/memchr-tests (Files): Likewise.
13149         * modules/memcmp-tests (Files): Likewise.
13150         * modules/memmem-tests (Files): Likewise.
13151         * modules/memrchr-tests (Files): Likewise.
13152         * modules/mkdir-tests (Files): Likewise.
13153         * modules/mkfifo-tests (Files): Likewise.
13154         * modules/mkfifoat-tests (Files): Likewise.
13155         * modules/mknod-tests (Files): Likewise.
13156         * modules/nanosleep-tests (Files): Likewise.
13157         * modules/nl_langinfo-tests (Files): Likewise.
13158         * modules/obstack-printf-tests (Files): Likewise.
13159         * modules/open-tests (Files): Likewise.
13160         * modules/openat-tests (Files): Likewise.
13161         * modules/perror-tests (Files): Likewise.
13162         * modules/pipe2-tests (Files): Likewise.
13163         * modules/poll-tests (Files): Likewise.
13164         * modules/popen-tests (Files): Likewise.
13165         * modules/posix_spawn-tests (Files): Likewise.
13166         * modules/posix_spawnp-tests (Files): Likewise.
13167         * modules/pread-tests (Files): Likewise.
13168         * modules/printf-posix-tests (Files): Likewise.
13169         * modules/pty-tests (Files): Likewise.
13170         * modules/random_r-tests (Files): Likewise.
13171         * modules/rawmemchr-tests (Files): Likewise.
13172         * modules/readlink-tests (Files): Likewise.
13173         * modules/remove-tests (Files): Likewise.
13174         * modules/rename-tests (Files): Likewise.
13175         * modules/renameat-tests (Files): Likewise.
13176         * modules/rmdir-tests (Files): Likewise.
13177         * modules/round-tests (Files): Likewise.
13178         * modules/roundf-tests (Files): Likewise.
13179         * modules/roundl-tests (Files): Likewise.
13180         * modules/select-tests (Files): Likewise.
13181         * modules/setenv-tests (Files): Likewise.
13182         * modules/sigaction-tests (Files): Likewise.
13183         * modules/sleep-tests (Files): Likewise.
13184         * modules/snprintf-posix-tests (Files): Likewise.
13185         * modules/snprintf-tests (Files): Likewise.
13186         * modules/sprintf-posix-tests (Files): Likewise.
13187         * modules/stat-tests (Files): Likewise.
13188         * modules/strcasestr-tests (Files): Likewise.
13189         * modules/strchrnul-tests (Files): Likewise.
13190         * modules/strerror-tests (Files): Likewise.
13191         * modules/strsignal-tests (Files): Likewise.
13192         * modules/strstr-tests (Files): Likewise.
13193         * modules/strtod-tests (Files): Likewise.
13194         * modules/strverscmp-tests (Files): Likewise.
13195         * modules/symlink-tests (Files): Likewise.
13196         * modules/symlinkat-tests (Files): Likewise.
13197         * modules/times-tests (Files): Likewise.
13198         * modules/trunc-tests (Files): Likewise.
13199         * modules/truncf-tests (Files): Likewise.
13200         * modules/truncl-tests (Files): Likewise.
13201         * modules/tsearch-tests (Files): Likewise.
13202         * modules/uname-tests (Files): Likewise.
13203         * modules/unlink-tests (Files): Likewise.
13204         * modules/unsetenv-tests (Files): Likewise.
13205         * modules/usleep-tests (Files): Likewise.
13206         * modules/utimensat-tests (Files): Likewise.
13207         * modules/vasprintf-tests (Files): Likewise.
13208         * modules/vdprintf-posix-tests (Files): Likewise.
13209         * modules/vfprintf-posix-tests (Files): Likewise.
13210         * modules/vprintf-posix-tests (Files): Likewise.
13211         * modules/vsnprintf-posix-tests (Files): Likewise.
13212         * modules/vsnprintf-tests (Files): Likewise.
13213         * modules/vsprintf-posix-tests (Files): Likewise.
13214         * modules/wcrtomb-tests (Files): Likewise.
13215         * modules/wcsnrtombs-tests (Files): Likewise.
13216         * modules/wcsrtombs-tests (Files): Likewise.
13217         * modules/wcwidth-tests (Files): Likewise.
13218         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
13219         * tests/test-isinf.c (isinf): Likewise.
13220         * tests/test-isnan.c (isnan): Likewise.
13221         * tests/test-signbit.c (signbit): Likewise.
13222         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
13223         declaration, either as macro or with correct signature.
13224         (select): Ensure function under test is declared with correct
13225         signature in correct header.
13226         * tests/test-atexit.c (atexit): Likewise.
13227         * tests/test-btowc.c (btowc): Likewise.
13228         * tests/test-canonicalize-lgpl.c (realpath)
13229         (canonicalize_file_name): Likewise.
13230         * tests/test-ceilf1.c (ceilf): Likewise.
13231         * tests/test-ceill.c (ceill): Likewise.
13232         * tests/test-chown.c (chown): Likewise.
13233         * tests/test-dprintf-posix.c (dprintf): Likewise.
13234         * tests/test-dup2.c (dup2): Likewise.
13235         * tests/test-dup3.c (dup3): Likewise.
13236         * tests/test-duplocale.c (duplocale): Likewise.
13237         * tests/test-fchdir.c (fchdir): Likewise.
13238         * tests/test-fchownat.c (fchownat): Likewise.
13239         * tests/test-fcntl.c (fcntl): Likewise.
13240         * tests/test-fdopendir.c (fdopendir): Likewise.
13241         * tests/test-fflush.c (fflush): Likewise.
13242         * tests/test-flock.c (flock): Likewise.
13243         * tests/test-floorf1.c (floorf): Likewise.
13244         * tests/test-floorl.c (floorl): Likewise.
13245         * tests/test-fnmatch.c (fnmatch): Likewise.
13246         * tests/test-fopen.c (fopen): Likewise.
13247         * tests/test-fprintf-posix.c (fprintf): Likewise.
13248         * tests/test-freopen.c (freopen): Likewise.
13249         * tests/test-frexp.c (frexp): Likewise.
13250         * tests/test-frexpl.c (frexpl): Likewise.
13251         * tests/test-fseek.c (fseek): Likewise.
13252         * tests/test-fseeko.c (fseeko): Likewise.
13253         * tests/test-fstatat.c (fstatat): Likewise.
13254         * tests/test-fsync.c (fsync): Likewise.
13255         * tests/test-ftell.c (ftell): Likewise.
13256         * tests/test-ftello.c (ftello): Likewise.
13257         * tests/test-futimens.c (futimens): Likewise.
13258         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
13259         (gai_strerror): Likewise.
13260         * tests/test-getcwd.c (getcwd): Likewise.
13261         * tests/test-getdelim.c (getdelim): Likewise.
13262         * tests/test-getdtablesize.c (getdtablesize): Likewise.
13263         * tests/test-getgroups.c (getgroups): Likewise.
13264         * tests/test-gethostname.c (gethostname): Likewise.
13265         * tests/test-getline.c (getline): Likewise.
13266         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
13267         Likewise.
13268         * tests/test-gettimeofday.c (gettimeofday): Likewise.
13269         * tests/test-glob.c (glob, globfree): Likewise.
13270         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
13271         * tests/test-inet_ntop.c (inet_ntop): Likewise.
13272         * tests/test-inet_pton.c (inet_pton): Likewise.
13273         * tests/test-isblank.c (isblank): Likewise.
13274         * tests/test-lchown.c (lchown): Likewise.
13275         * tests/test-ldexpl.c (ldexpl): Likewise.
13276         * tests/test-link.c (link): Likewise.
13277         * tests/test-linkat.c (linkat): Likewise.
13278         * tests/test-lseek.c (lseek): Likewise.
13279         * tests/test-lstat.c (lstat): Likewise.
13280         * tests/test-mbrtowc.c (mbrtowc): Likewise.
13281         * tests/test-mbsinit.c (mbsinit): Likewise.
13282         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
13283         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
13284         * tests/test-memchr.c (memchr): Likewise.
13285         * tests/test-memcmp.c (memcmp): Likewise.
13286         * tests/test-memmem.c (memmem): Likewise.
13287         * tests/test-memrchr.c (memrchr): Likewise.
13288         * tests/test-mkdir.c (mkdir): Likewise.
13289         * tests/test-mkdirat.c (mkdirat): Likewise.
13290         * tests/test-mkfifo.c (mkfifo): Likewise.
13291         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
13292         * tests/test-mknod.c (mknod): Likewise.
13293         * tests/test-nanosleep.c (nanosleep): Likewise.
13294         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
13295         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
13296         Likewise.
13297         * tests/test-open.c (open): Likewise.
13298         * tests/test-openat.c (openat): Likewise.
13299         * tests/test-perror.c (perror): Likewise.
13300         * tests/test-pipe2.c (pipe2): Likewise.
13301         * tests/test-poll.c (poll): Likewise.
13302         * tests/test-popen.c (popen, pclose): Likewise.
13303         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
13304         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
13305         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
13306         (posix_spawn_file_actions_destroy)
13307         (posix_spawn_file_actions_addclose)
13308         (posix_spawn_file_actions_addopen)
13309         (posix_spawn_file_actions_adddup2): Likewise.
13310         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
13311         * tests/test-pread.c (pread): Likewise.
13312         * tests/test-printf-posix.c (printf): Likewise.
13313         * tests/test-pty.c (openpty, forkpty): Likewise.
13314         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
13315         (random_r): Likewise.
13316         * tests/test-rawmemchr.c (rawmemchr): Likewise.
13317         * tests/test-readlink.c (readlink): Likewise.
13318         * tests/test-remove.c (remove): Likewise.
13319         * tests/test-rename.c (rename): Likewise.
13320         * tests/test-renameat.c (renameat): Likewise.
13321         * tests/test-rmdir.c (rmdir): Likewise.
13322         * tests/test-round1.c (round): Likewise.
13323         * tests/test-roundf1.c (roundf): Likewise.
13324         * tests/test-roundl.c (roundl): Likewise.
13325         * tests/test-setenv.c (setenv): Likewise.
13326         * tests/test-sigaction.c (sigaction): Likewise.
13327         * tests/test-sleep.c (sleep): Likewise.
13328         * tests/test-snprintf.c (snprintf): Likewise.
13329         * tests/test-sprintf-posix.c (sprintf): Likewise.
13330         * tests/test-stat.c (stat): Likewise.
13331         * tests/test-stpncpy.c (stpncpy): Likewise.
13332         * tests/test-strcasestr.c (strcasestr): Likewise.
13333         * tests/test-strchrnul.c (strchrnul): Likewise.
13334         * tests/test-strerror.c (strerror): Likewise.
13335         * tests/test-strsignal.c (strsignal): Likewise.
13336         * tests/test-strstr.c (strstr): Likewise.
13337         * tests/test-strtod.c (strtod): Likewise.
13338         * tests/test-strverscmp.c (strverscmp): Likewise.
13339         * tests/test-symlink.c (symlink): Likewise.
13340         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
13341         * tests/test-times.c (times): Likewise.
13342         * tests/test-trunc1.c (trunc): Likewise.
13343         * tests/test-truncf1.c (truncf): Likewise.
13344         * tests/test-truncl.c (truncl): Likewise.
13345         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
13346         Likewise.
13347         * tests/test-uname.c (uname): Likewise.
13348         * tests/test-unlink.c (unlink): Likewise.
13349         * tests/test-unlinkat.c (unlinkat): Likewise.
13350         * tests/test-unsetenv.c (unsetenv): Likewise.
13351         * tests/test-usleep.c (usleep): Likewise.
13352         * tests/test-utimensat.c (utimensat): Likewise.
13353         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
13354         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
13355         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
13356         * tests/test-vprintf-posix.c (vprintf): Likewise.
13357         * tests/test-vsnprintf.c (vsnprintf): Likewise.
13358         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
13359         * tests/test-wcrtomb.c (wcrtomb): Likewise.
13360         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
13361         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
13362         * tests/test-wcwidth.c (wcwidth): Likewise.
13363
13364         build: pull in conditional headers during GNULIB_POSIXCHECK
13365         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
13366         definitions from any conditionally-included headers.
13367         * lib/stdlib.in.h (includes): Likewise.
13368         * lib/unistd.in.h (includes): Likewise.
13369
13370 2009-12-24  Bruno Haible  <bruno@clisp.org>
13371
13372         * tests/test-argv-iter.c: Include header file being tested immediately
13373         after config.h.
13374         * tests/test-base64.c: Likewise.
13375         * tests/test-flock.c: Likewise.
13376         * tests/test-fsync.c: Likewise.
13377         * tests/test-getdate.c: Likewise.
13378         * tests/test-getndelim2.c: Likewise.
13379         * tests/test-isfinite.c: Likewise.
13380         * tests/test-isinf.c: Likewise.
13381         * tests/test-strerror.c: Likewise.
13382         * tests/test-strsignal.c: Likewise.
13383
13384 2009-12-23  Eric Blake  <ebb9@byu.net>
13385
13386         unistd: work around cygwin bug
13387         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
13388         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
13389         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13390
13391 2009-12-23  Bruno Haible  <bruno@clisp.org>
13392
13393         localename: More tests.
13394         * tests/test-localename.c (SIZEOF): New macro.
13395         (categories): New variable.
13396         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
13397         test_locale_name_default): Add test w.r.t. thread locale.
13398         (test_locale_name_thread): New function.
13399         (main): Invoke it.
13400
13401         localename: Make aware of thread locale.
13402         * lib/localename.h (gl_locale_name_thread): New declaration.
13403         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
13404         behaviour with respect to thread locale.
13405         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
13406         <langinfo.h>, glthread/lock.h.
13407         (SIZE_BITS): New macro.
13408         (string_hash): New function.
13409         (struct hash_node): New type.
13410         (HASH_TABLE_SIZE): New macro.
13411         (struniq_hash_table, struniq_lock): New variables.
13412         (struniq): New function.
13413         (gl_locale_name_thread): New function.
13414         (gl_locale_name): Invoke it.
13415         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
13416         * modules/localename (Depends-on): Add lock.
13417         Reported by Mike Gran <spk121@yahoo.com>.
13418
13419 2009-12-23  Eric Blake  <ebb9@byu.net>
13420
13421         va-args: new module
13422         * modules/va-args: New file.
13423         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
13424         * MODULES.html.sh (Core language properties): Mention it.
13425
13426         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
13427         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
13428         named alias for __attribute__((__unused__)).
13429         * lib/chown.c: Update client.
13430         * lib/fchmodat.c: Likewise.
13431         * lib/fts.c: Likewise.
13432         * lib/getdate.y: Likewise.
13433         * lib/getgroups.c: Likewise.
13434         * lib/getopt.c: Likewise.
13435         * lib/getugroups.c: Likewise.
13436         * lib/mkdir.c: Likewise.
13437         * lib/mkfifo.c: Likewise.
13438         * lib/mkfifoat.c: Likewise.
13439         * lib/mknod.c: Likewise.
13440         * lib/mknodat.c: Likewise.
13441         * lib/readlink.c: Likewise.
13442         * lib/se-context.in.h: Likewise.
13443         * lib/se-selinux.in.h: Likewise.
13444         * lib/sockets.c: Likewise.
13445         * lib/symlink.c: Likewise.
13446         * lib/symlinkat.c: Likewise.
13447         * lib/unicodeio.c: Likewise.
13448         * lib/unistr.h: Likewise.
13449         * tests/test-areadlink.c: Likewise.
13450         * tests/test-areadlinkat.c: Likewise.
13451         * tests/test-filenamecat.c: Likewise.
13452         * tests/test-fseeko.c: Likewise.
13453         * tests/test-ftello.c: Likewise.
13454         * tests/test-getdate.c: Likewise.
13455         * tests/test-getgroups.c: Likewise.
13456         * tests/test-gethostname.c: Likewise.
13457         * tests/test-quotearg.c: Likewise.
13458         * tests/test-version-etc.c: Likewise.
13459         * tests/test-xalloc-die.c: Likewise.
13460         * tests/test-xfprintf-posix.c: Likewise.
13461         * tests/test-xprintf-posix.c: Likewise.
13462         * tests/test-xvasprintf.c: Likewise.
13463
13464         tests: avoid compiler warnings
13465         * tests/test-fcntl.c (main): Delete unused parameters.
13466         * tests/test-freopen-safer.c (main): Likewise.
13467         * tests/test-xalloc-die.c (main): Mark unused parameters.
13468         * tests/test-fseeko.c (main): Likewise.
13469         * tests/test-ftello.c (main): Likewise.
13470         * tests/test-nanosleep.c (main): Avoid declaration warning.
13471         * tests/test-sleep.c (main): Likewise.
13472         * tests/test-unsetenv.c (main): Silence warning about string
13473         literal.
13474         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13475
13476 2009-12-23  Bruno Haible  <bruno@clisp.org>
13477
13478         * tests/test-localename.c (test_locale_name): New function, extracted
13479         from main. Also test mixed situations.
13480         (test_locale_name_posix, test_locale_name_environ,
13481         test_locale_name_default): New functions.
13482         (main): Invoke them all.
13483         * modules/localename-tests (configure.ac): Test for newlocale.
13484
13485 2009-12-23  Bruno Haible  <bruno@clisp.org>
13486
13487         unistd: Ensure getcwd gets declared before being overridden.
13488         * lib/unistd.in.h: Conditionally include <io.h>.
13489
13490 2009-12-22  Bruno Haible  <bruno@clisp.org>
13491
13492         wchar: Diagnose broken combination of glibc and gcc versions and flags.
13493         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
13494         (gl_WCHAR_H): Invoke it.
13495         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
13496         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
13497         Reported by Karl Berry <karl@freefriends.org>.
13498
13499 2009-12-22  Eric Blake  <ebb9@byu.net>
13500
13501         math, unistd: avoid redundant includes
13502         * lib/math.in.h (isnan): No need to re-include <math.h>.
13503         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
13504
13505         getsubopt: work around cygwin bug
13506         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
13507         avoid conflicting with system getsubopt.
13508         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
13509         bug.
13510
13511         getopt: synchronize from glibc
13512         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
13513         parameter order.  Adjust all callers.
13514         (_getopt_internal_r, main): Adjust quoting in error messages.
13515         Drop considerations for outdated POSIX 1003.2 error message.
13516         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
13517         callers.
13518         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
13519
13520         test-getopt: test stderr behavior
13521         * modules/getopt-posix-tests (Depends-on): Add dup2.
13522         * tests/test-getopt.c (ASSERT): Avoid stderr.
13523         (main): Move stderr to a temporary file.
13524         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
13525         Instead, add parameter to inform caller if output occurred.
13526         (test_getopt): Adjust all existing tests to expect silence, and
13527         add new tests of leading ":".
13528         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
13529         glibc shortcomings with leading "-:" or "+:" in optstring.
13530         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13531         Likewise.
13532         * doc/posix-functions/getopt.texi (getopt): Likewise.
13533
13534         test-getopt: enhance test
13535         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
13536         supports optind=0.
13537         * tests/test-getopt.c (OPTIND_MIN): Move...
13538         * tests/test-getopt.h (OPTIND_MIN): ...here.
13539         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
13540         Require that optind=0 works, since modern BSD supports it in
13541         addition to optreset, and since coreutils expects it.
13542         (test_getopt_long_only): New test.
13543         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
13544         glibc shortcomings with 'W;', and enforcement of optind=0.
13545         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13546         Likewise.
13547
13548 2009-12-21  Bruno Haible  <bruno@clisp.org>
13549
13550         localename: Improvements for MacOS X and Cygwin.
13551         * lib/localename.h (gl_locale_name_environ): New declaration.
13552         * lib/localename.c (gl_locale_name_environ): New function, extracted from
13553         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
13554         (gl_locale_name_posix): Invoke it.
13555         (gl_locale_name_default): Add comments. Use Windows native API also on
13556         Cygwin.
13557
13558 2009-12-21  Bruno Haible  <bruno@clisp.org>
13559
13560         Update list of Win32 locale ids.
13561         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
13562         (LANG_SAMI): Renamed from LANG_SAAMI.
13563         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
13564         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
13565         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
13566         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
13567         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
13568         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
13569         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
13570         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
13571         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
13572         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
13573         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
13574         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
13575         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
13576         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
13577         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
13578         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
13579         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
13580         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
13581         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
13582         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
13583         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
13584         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
13585         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
13586         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
13587         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
13588         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
13589         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
13590         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
13591         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
13592         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
13593         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
13594         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
13595         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
13596         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
13597         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
13598         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
13599         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
13600         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
13601         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
13602         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
13603         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
13604         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
13605         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
13606         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
13607         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
13608         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
13609         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
13610         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
13611         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
13612         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
13613         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
13614         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
13615         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
13616         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
13617         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
13618         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
13619         Add more languages and countries for Sami, Sorbian. Add more countries
13620         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
13621         for Pashto. Change country for Syriac, Tswana.
13622
13623 2009-12-21  Eric Blake  <ebb9@byu.net>
13624
13625         test-utimens: avoid spurious failure
13626         * tests/test-chown.h (nap): Factor...
13627         * tests/nap.h: ...into new file.
13628         * tests/test-lchown.h (nap): Avoid duplication.
13629         * tests/test-utimens-common.h (nap): Use shared implementation,
13630         necessary on file systems with 1-second resolution.
13631         * modules/chown-tests (Files): Include new file.
13632         * modules/fdutimensat-tests (Files): Likewise.
13633         * modules/futimens-tests (Files): Likewise.
13634         * modules/lchown-tests (Files): Likewise.
13635         * modules/openat-tests (Files): Likewise.
13636         * modules/utimens-tests (Files): Likewise.
13637         * modules/utimensat-tests (Files): Likewise.
13638
13639 2009-12-19  Eric Blake  <ebb9@byu.net>
13640
13641         futimens, utimensat: work around Linux bug
13642         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
13643         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13644         * lib/utimensat.c (rpl_utimensat): Work around it.
13645         * lib/futimens.c (rpl_futimens): Adjust comment.
13646
13647         utimens: work around Linux ctime bug
13648         * lib/utimens.c (detect_ctime_bug): New helper function.
13649         (update_timespec): Differentiate between workaround needed for
13650         this bug vs. what is needed for systems that lack utimensat.
13651         (fdutimens, lutimens): Work around bug.
13652
13653         utimens: check for ctime update
13654         * tests/test-utimens-common.h (check_ctime): Define.
13655         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
13656         * tests/test-futimens.h (test_futimens): Likewise.
13657         * tests/test-lutimens.h (test_lutimens): Likewise.
13658         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13659         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13660
13661 2009-12-19  Bruno Haible  <bruno@clisp.org>
13662
13663         dprintf-posix: Check against memory leak fixed on 2009-12-15.
13664         * tests/test-dprintf-posix2.sh: New file.
13665         * tests/test-dprintf-posix2.c: New file.
13666         * modules/dprintf-posix-tests (Files): Add them.
13667         (configure.ac): Check for getrlimit and setrlimit.
13668         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13669
13670 2009-12-19  Bruno Haible  <bruno@clisp.org>
13671
13672         fprintf-posix: Check against memory leak fixed on 2009-12-15.
13673         * tests/test-fprintf-posix3.sh: New file.
13674         * tests/test-fprintf-posix3.c: New file.
13675         * modules/fprintf-posix-tests (Files): Add them.
13676         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13677
13678 2009-12-19  Eric Blake  <ebb9@byu.net>
13679
13680         dirfd: fix prototype
13681         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
13682         * lib/dirfd.c (dirfd): Likewise.
13683
13684         canonicalize: reduce memory usage
13685         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
13686         allocation to size.
13687         Reported by Solar Designer <solar@openwall.com>.
13688
13689 2009-12-19  Bruno Haible  <bruno@clisp.org>
13690
13691         New module attribute 'Applicability'.
13692         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
13693         * gnulib-tool: New option --extract-applicability.
13694         (func_usage): Document it.
13695         (sed_extract_prog): Recognize it.
13696         (func_get_applicability): New function.
13697         (func_import): Generalize handling of 'link-warning' module.
13698         * modules/link-warning (Applicability): New section.
13699         * modules/arg-nonnull (Applicability): New section.
13700         Repoted by Simon Josefsson <simon@josefsson.org>.
13701
13702 2009-12-19  Bruno Haible  <bruno@clisp.org>
13703
13704         fflush: tweak
13705         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
13706         * lib/fseeko.c (rpl_fseeko): Likewise.
13707
13708 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
13709
13710         * lib/gl_list.h: Fix typo in comment.
13711
13712 2009-12-16  Eric Blake  <ebb9@byu.net>
13713
13714         fcntl: use to simplify other modules
13715         * modules/cloexec (Depends-on): Add fcntl.
13716         * modules/fchdir (Depends-on): Likewise.
13717         * modules/fd-safer-flag (Depends-on): Likewise.
13718         * modules/unistd-safer (Depends-on): Likewise.
13719         * modules/dup3 (configure.ac): Set module indicator.
13720         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
13721         missing.
13722         * lib/fchdir.c (_gl_register_dup): Fix comment.
13723         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
13724         * lib/dup-safer.c (dup_safer): Likewise.
13725         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
13726         * lib/dup3.c (dup3): Likewise.
13727         * tests/test-fchdir.c (main): Enhance test.
13728         Fixes a dup_cloexec bug reported by Ondřej Vašík.
13729
13730         fcntl: port portions of fcntl to mingw
13731         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
13732         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
13733         replacement for mingw.
13734         * modules/fcntl (Description): Update.
13735         (Depends-on): Add dup2.
13736         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
13737         * modules/fcntl-h (Makefile.am): Substitute it.
13738         * lib/fcntl.in.h (fcntl): Update declaration.
13739         (F_DUPFD, F_GETFD): New macros, when needed.
13740         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
13741         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
13742         * tests/test-fcntl.c (check_flags, main): Enhance test for items
13743         we now guarantee.
13744
13745         fcntl: work around cygwin bug in F_DUPFD
13746         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
13747         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
13748         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
13749         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
13750         * doc/posix-functions/fcntl.texi (fcntl): Document it.
13751
13752         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
13753         * modules/fcntl (Files): List new files.
13754         (configure.ac): Run a test.
13755         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
13756         * lib/fcntl.c (rpl_fcntl): Likewise.
13757         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
13758         (gl_FCNTL_H): Always replace fcntl.h.
13759         * modules/fcntl-h (Makefile.am): Substitute witnesses.
13760         * lib/fcntl.in.h (fcntl): Declare replacement.
13761         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
13762         needed, plus a witness.
13763         * doc/posix-functions/fcntl.texi (fcntl): Document this.
13764         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
13765         * tests/test-fcntl.c: New file.
13766         * modules/fcntl-tests: Likewise.
13767
13768         binary-io: avoid potential compilation warning
13769         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
13770         directives.
13771
13772         fflush: avoid compilation error on NetBSD
13773         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
13774         between off_t and fpos_t, since the latter is sometimes a struct.
13775         * lib/fseeko.c (rpl_fseeko): Likewise.
13776         Reported by Alexander Nasonov <alnsn@yandex.ru>.
13777
13778 2009-12-15  Eric Blake  <ebb9@byu.net>
13779
13780         fcntl-h, stdio, sys_ioctl: fix declarations
13781         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
13782         function must not take arguments.
13783         * lib/sys_ioctl.in.h (ioctl): Likewise.
13784         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
13785         (open): Add a link warning.
13786
13787 2009-12-15  Jim Meyering  <meyering@redhat.com>
13788
13789         areadlink, areadlink-with-size: relax license to LGPLv2+
13790         * modules/areadlink (License): Relax to LGPLv2+.
13791         * modules/areadlink-with-size (License): Likewise.
13792
13793 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
13794             Bruno Haible  <bruno@clisp.org>
13795
13796         *printf: Fix memory leak.
13797         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
13798         * lib/vfprintf.c (vfprintf): Likewise.
13799         * lib/dprintf.c (dprintf): Likewise.
13800         * lib/vdprintf.c (vdprintf): Likewise.
13801
13802 2009-12-14  Eric Blake  <ebb9@byu.net>
13803
13804         accept4: adjust module dependencies
13805         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
13806
13807         utimens: one more try at avoiding compiler warning
13808         * lib/utimens.c (lutimens): Lower scope of result.
13809
13810 2009-12-13  Bruno Haible  <bruno@clisp.org>
13811
13812         Move the malloc checking from module 'list' to new module 'xlist'.
13813         * modules/xlist: New file.
13814         * lib/gl_xlist.h: New file.
13815         * lib/gl_xlist.c: New file.
13816         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
13817         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
13818         gl_list_add_last, gl_list_add_before, gl_list_add_after,
13819         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
13820         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
13821         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
13822         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
13823         gl_sortedlist_nx_add): New declarations.
13824         (struct gl_list_implementation): Rename and change methods accordingly.
13825         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
13826         (gl_list_nx_create): Renamed from gl_list_create.
13827         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13828         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13829         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13830         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13831         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13832         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13833         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13834         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13835         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
13836         gl_list_create_empty.
13837         (gl_list_nx_create): Renamed from gl_list_create.
13838         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13839         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13840         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13841         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13842         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13843         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13844         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13845         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13846         * lib/gl_array_list.c: Don't include xalloc.h.
13847         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
13848         NULL upon out-of-memory.
13849         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
13850         out-of-memory.
13851         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
13852         Change return type to 'int'.
13853         (gl_array_nx_set_at): Renamed from gl_array_set_at.
13854         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13855         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
13856         upon out-of-memory.
13857         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
13858         upon out-of-memory.
13859         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
13860         upon out-of-memory.
13861         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
13862         upon out-of-memory.
13863         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
13864         out-of-memory.
13865         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
13866         Update.
13867         (gl_array_list_implementation): Update.
13868         * lib/gl_carray_list.c: Don't include xalloc.h.
13869         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
13870         Return NULL upon out-of-memory.
13871         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
13872         out-of-memory.
13873         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
13874         Change return type to 'int'.
13875         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
13876         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13877         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
13878         upon out-of-memory.
13879         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
13880         upon out-of-memory.
13881         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
13882         out-of-memory.
13883         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
13884         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
13885         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
13886         Update.
13887         (gl_carray_list_implementation): Update.
13888         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
13889         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
13890         gl_linked_create_empty. Return NULL upon out-of-memory.
13891         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
13892         out-of-memory.
13893         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
13894         Change return type to 'int'. Return -1 upon out-of-memory.
13895         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
13896         out-of-memory.
13897         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
13898         upon out-of-memory.
13899         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
13900         upon out-of-memory.
13901         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
13902         NULL upon out-of-memory.
13903         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
13904         upon out-of-memory.
13905         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
13906         out-of-memory.
13907         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
13908         Update.
13909         * lib/gl_linked_list.c: Don't include xalloc.h.
13910         (gl_linked_list_implementation): Update.
13911         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
13912         (add_to_bucket): Change return type to 'int'.
13913         (gl_linkedhash_list_implementation): Update.
13914         * lib/gl_anytree_list1.h (free_subtree): New function.
13915         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
13916         gl_tree_create_empty. Return NULL upon out-of-memory.
13917         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
13918         Change return type to 'int'. Return -1 upon out-of-memory.
13919         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
13920         out-of-memory.
13921         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
13922         (gl_tree_remove_node): New function, moved here from
13923         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
13924         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
13925         Update.
13926         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
13927         malloc, not xmalloc. Return NULL upon out-of-memory.
13928         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13929         out-of-memory.
13930         (gl_tree_remove_node_from_tree): New function, extracted from
13931         gl_tree_remove_node.
13932         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13933         upon out-of-memory.
13934         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13935         out-of-memory.
13936         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13937         upon out-of-memory.
13938         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13939         upon out-of-memory.
13940         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13941         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
13942         not xmalloc. Return NULL upon out-of-memory.
13943         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13944         out-of-memory.
13945         (gl_tree_remove_node_from_tree): New function, extracted from
13946         gl_tree_remove_node.
13947         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13948         upon out-of-memory.
13949         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13950         out-of-memory.
13951         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13952         upon out-of-memory.
13953         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13954         upon out-of-memory.
13955         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13956         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
13957         gl_anytree_list1.h before gl_anyavltree_list2.h.
13958         (gl_avltree_list_implementation): Update.
13959         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
13960         gl_anytree_list1.h before gl_anyavltree_list2.h.
13961         (gl_rbtree_list_implementation): Update.
13962         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
13963         Change return type to 'int'. Return -1 upon out-of-memory. Use
13964         __builtin_expect.
13965         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
13966         (gl_avltreehash_list_implementation): Update.
13967         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
13968         (gl_rbtreehash_list_implementation): Update.
13969         * modules/array-list (Depends-on): Remove xalloc.
13970         * modules/carray-list (Depends-on): Likewise.
13971         * modules/linked-list (Depends-on): Likewise.
13972         * modules/linkedhash-list (Depends-on): Likewise.
13973         * modules/avltree-list (Depends-on): Likewise.
13974         * modules/rbtree-list (Depends-on): Likewise.
13975         * modules/avltreehash-list (Depends-on): Likewise.
13976         * modules/rbtreehash-list (Depends-on): Likewise.
13977
13978         * modules/xsublist: New file.
13979         * lib/gl_xsublist.h: New file.
13980         * lib/gl_xsublist.c: New file.
13981         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
13982         (gl_sublist_nx_create): New declaration.
13983         * lib/gl_sublist.c: Don't include xalloc.h.
13984         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
13985         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
13986         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
13987         Change return type to 'int'. Return -1 upon out-of-memory.
13988         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
13989         upon out-of-memory.
13990         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
13991         NULL upon out-of-memory.
13992         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
13993         upon out-of-memory.
13994         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
13995         NULL upon out-of-memory.
13996         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
13997         NULL upon out-of-memory.
13998         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
13999         upon out-of-memory.
14000         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
14001         (gl_sublist_list_implementation): Update.
14002         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
14003         upon out-of-memory.
14004         * modules/sublist (Depends-on): Remove xalloc.
14005
14006         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
14007         * tests/test-carray_list.c: Likewise.
14008         * tests/test-linked_list.c: Likewise.
14009         * tests/test-linkedhash_list.c: Likewise.
14010         * tests/test-avltree_list.c: Likewise.
14011         * tests/test-rbtree_list.c: Likewise.
14012         * tests/test-avltreehash_list.c: Likewise.
14013         * tests/test-rbtreehash_list.c: Likewise.
14014         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
14015         * modules/carray-list-tests (Makefile.am): Likewise.
14016         * modules/linked-list-tests (Makefile.am): Likewise.
14017         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14018         * modules/avltree-list-tests (Makefile.am): Likewise.
14019         * modules/rbtree-list-tests (Makefile.am): Likewise.
14020         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14021         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14022
14023         * NEWS: Mention the changes.
14024
14025         * lib/clean-temp.c: Include gl_xlist.h.
14026         * modules/clean-temp (Depends-on): Add xlist.
14027
14028         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
14029         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
14030
14031         * tests/test-array_oset.c: Include gl_xlist.h.
14032         * modules/array-oset-tests (Depends-on): Add xlist.
14033
14034         Reported by José E. Marchesi <jemarch@gnu.org>.
14035
14036 2009-12-13  Bruno Haible  <bruno@clisp.org>
14037
14038         Move the malloc checking from module 'oset' to new module 'xoset'.
14039         * modules/xoset: New file.
14040         * lib/gl_xoset.h: New file.
14041         * lib/gl_xoset.c: New file.
14042         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
14043         declarations.
14044         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
14045         (struct gl_oset_implementation): Rename and change methods accordingly.
14046         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
14047         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14048         'int'. Mark as __warn_unused_result__.
14049         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
14050         gl_oset_create_empty.
14051         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14052         'int'.
14053         * lib/gl_array_oset.c: Don't include xalloc.h.
14054         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
14055         malloc, not xmalloc.
14056         (grow): Change return type to 'int'. Don't call xalloc_die.
14057         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
14058         to 'int'.
14059         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
14060         'int'.
14061         (gl_array_oset_implementation): Update.
14062         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
14063         gl_tree_create_empty.
14064         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
14065         'int'.
14066         * lib/gl_avltree_oset.c: Don't include xalloc.h.
14067         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14068         xmalloc.
14069         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14070         not xmalloc.
14071         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14072         xmalloc.
14073         (gl_avltree_oset_implementation): Update.
14074         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
14075         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14076         xmalloc.
14077         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14078         not xmalloc.
14079         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14080         xmalloc.
14081         (gl_rbtree_oset_implementation): Update.
14082         * modules/array-oset (Depends-on): Remove xalloc.
14083         * modules/avltree-oset (Depends-on): Likewise.
14084         * modules/rbtree-oset (Depends-on): Likewise.
14085         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
14086         * tests/test-avltree_oset.c: Likewise.
14087         * tests/test-rbtree_oset.c: Likewise.
14088         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
14089         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
14090         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14091         * NEWS: Mention the change.
14092
14093 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
14094
14095         maint.mk: allow a project to override release-prep commands
14096         * top/maint.mk (alpha, beta, stable): Move release-preparatory
14097         commands into a new rule.
14098         (release-prep): New rule.
14099         (release-prep-hook): New overridable variable.
14100
14101 2009-12-13  Bruno Haible  <bruno@clisp.org>
14102
14103         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
14104
14105 2009-12-13  Jim Meyering  <meyering@redhat.com>
14106
14107         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
14108         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
14109
14110 2009-12-12  Bruno Haible  <bruno@clisp.org>
14111
14112         duplocale: Tweak.
14113         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
14114
14115 2009-12-12  Karl Berry  <karl@gnu.org>
14116
14117         * config/srclist.txt (strtoll.c): tab changes, no more sync.
14118
14119 2009-12-12  Bruno Haible  <bruno@clisp.org>
14120
14121         * m4/po.m4: Undo incorrect untabification.
14122
14123 2009-12-12  Bruno Haible  <bruno@clisp.org>
14124
14125         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
14126         * modules/c-strtod (Depends-on): Add locale.
14127         * modules/c-strtold (Depends-on): Likewise.
14128
14129 2009-12-12  Bruno Haible  <bruno@clisp.org>
14130
14131         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
14132
14133 2009-12-11  Eric Blake  <ebb9@byu.net>
14134
14135         setenv: relax requirement in light of POSIX ruling
14136         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
14137         not NULL.
14138         * tests/test-setenv.c (main): Relax test.
14139         * tests/test-unsetenv.c (main): Likewise.
14140         * doc/posix-functions/setenv.texi (setenv): Document this.
14141         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14142
14143 2009-12-11  Bruno Haible  <bruno@clisp.org>
14144
14145         New module 'fd-safer-flag'.
14146         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
14147         * lib/dup-safer.c (dup_safer_flag): Remove function.
14148         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
14149         * lib/fd-safer.c (fd_safer_flag): Remove function.
14150         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
14151         * modules/cloexec (configure.ac): Drop indicator macro.
14152         * modules/fd-safer-flag: New file.
14153         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
14154         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
14155         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
14156
14157 2009-12-11  Bruno Haible  <bruno@clisp.org>
14158
14159         Tests for module 'nl_langinfo'.
14160         * modules/nl_langinfo-tests: New file.
14161         * tests/test-nl_langinfo.sh: New file.
14162         * tests/test-nl_langinfo.c: New file.
14163
14164         New module 'nl_langinfo'.
14165         * lib/nl_langinfo.c: New file.
14166         * m4/nl_langinfo.m4: New file.
14167         * modules/nl_langinfo: New file.
14168         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
14169
14170 2009-12-11  Bruno Haible  <bruno@clisp.org>
14171
14172         Tests for module 'langinfo'.
14173         * modules/langinfo-tests: New file.
14174         * tests/test-langinfo.c: New file.
14175
14176         New module 'langinfo'.
14177         * lib/langinfo.in.h: New file.
14178         * m4/langinfo_h.m4: New file.
14179         * modules/langinfo: New file.
14180         * doc/posix-headers/langinfo.texi: Mention the new module.
14181
14182 2009-12-11  Bruno Haible  <bruno@clisp.org>
14183
14184         * lib/config.charset: Untabify.
14185
14186 2009-12-11  Bruno Haible  <bruno@clisp.org>
14187
14188         * modules/unistd-safer (configure.ac): Drop indicator macro.
14189
14190 2009-12-11  Bruno Haible  <bruno@clisp.org>
14191
14192         Move pipe2-safer code to its own file.
14193         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
14194         * lib/pipe-safer.c (pipe2_safer): Remove function.
14195         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
14196         (Makefile.am): Add it to lib_SOURCES.
14197
14198 2009-12-10  Bruno Haible  <bruno@clisp.org>
14199
14200         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
14201
14202 2009-12-10  Bruno Haible  <bruno@clisp.org>
14203
14204         Declare which arguments expect non-NULL values, for GCC and clang.
14205         * build-aux/arg-nonnull.h: New file.
14206         * modules/arg-nonnull: New file.
14207         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
14208         (inet_ntop, inet_pton): Use it.
14209         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
14210         (closedir, dirfd, opendir, scandir, alphasort): Use it.
14211         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
14212         (open, openat): Use it.
14213         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
14214         (fnmatch): Use it.
14215         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
14216         (getopt, getopt_long, getopt_long_only): Use it.
14217         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
14218         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
14219         Use it.
14220         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
14221         (iconv_open): Use it.
14222         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
14223         (strtoimax, strtoumax): Use it.
14224         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
14225         (duplocale): Use it.
14226         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
14227         (frexp, frexpl): Use it.
14228         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
14229         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
14230         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
14231         (tsearch, tfind, tdelete, twalk): Use it.
14232         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
14233         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14234         sigpending): Use it.
14235         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
14236         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14237         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14238         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14239         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14240         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14241         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14242         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14243         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14244         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14245         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14246         Use it.
14247         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
14248         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
14249         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
14250         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
14251         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
14252         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
14253         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
14254         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
14255         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
14256         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
14257         strtoull, unsetenv): Use it.
14258         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
14259         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14260         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14261         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
14262         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
14263         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
14264         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
14265         (strcasecmp, strncasecmp): Use it.
14266         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
14267         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
14268         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
14269         rpl_setsockopt): Use it.
14270         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
14271         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
14272         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
14273         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
14274         (gettimeofday): Use it.
14275         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
14276         (times): Use it.
14277         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
14278         (uname): Use it.
14279         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
14280         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
14281         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
14282         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
14283         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
14284         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
14285         unlinkat, write): Use it.
14286         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
14287         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
14288         * lib/argv-iter.h: Include arg-nonnull.h.
14289         (_ATTRIBUTE_NONNULL_): Remove macro.
14290         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
14291         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
14292         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
14293         optimization.
14294         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
14295         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
14296         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
14297         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
14298         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
14299         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
14300         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
14301         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
14302         * modules/arpa_inet (Depends-on): Add arg-nonnull.
14303         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
14304         * modules/dirent (Depends-on): Add arg-nonnull.
14305         (Makefile.am): Insert arg-nonnull.h into dirent.h.
14306         * modules/fcntl-h (Depends-on): Add arg-nonnull.
14307         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
14308         * modules/fnmatch (Depends-on): Add arg-nonnull.
14309         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
14310         * modules/getopt-posix (Depends-on): Add arg-nonnull.
14311         (Makefile.am): Insert arg-nonnull.h into getopt.h.
14312         * modules/glob (Depends-on): Add arg-nonnull.
14313         (Makefile.am): Insert arg-nonnull.h into glob.h.
14314         * modules/iconv_open (Depends-on): Add arg-nonnull.
14315         (Makefile.am): Insert arg-nonnull.h into iconv.h.
14316         * modules/inttypes (Depends-on): Add arg-nonnull.
14317         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
14318         * modules/locale (Depends-on): Add arg-nonnull.
14319         (Makefile.am): Insert arg-nonnull.h into locale.h.
14320         * modules/math (Depends-on): Add arg-nonnull.
14321         (Makefile.am): Insert arg-nonnull.h into math.h.
14322         * modules/netdb (Depends-on): Add arg-nonnull.
14323         (Makefile.am): Insert arg-nonnull.h into netdb.h.
14324         * modules/search (Depends-on): Add arg-nonnull.
14325         (Makefile.am): Insert arg-nonnull.h into search.h.
14326         * modules/signal (Depends-on): Add arg-nonnull.
14327         (Makefile.am): Insert arg-nonnull.h into signal.h.
14328         * modules/spawn (Depends-on): Add arg-nonnull.
14329         (Makefile.am): Insert arg-nonnull.h into spawn.h.
14330         * modules/stdio (Depends-on): Add arg-nonnull.
14331         (Makefile.am): Insert arg-nonnull.h into stdio.h.
14332         * modules/stdlib (Depends-on): Add arg-nonnull.
14333         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
14334         * modules/string (Depends-on): Add arg-nonnull.
14335         (Makefile.am): Insert arg-nonnull.h into string.h.
14336         * modules/strings (Depends-on): Add arg-nonnull.
14337         (Makefile.am): Insert arg-nonnull.h into strings.h.
14338         * modules/sys_socket (Depends-on): Add arg-nonnull.
14339         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
14340         * modules/sys_stat (Depends-on): Add arg-nonnull.
14341         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
14342         * modules/sys_time (Depends-on): Add arg-nonnull.
14343         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
14344         * modules/sys_times (Depends-on): Add arg-nonnull.
14345         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
14346         * modules/sys_utsname (Depends-on): Add arg-nonnull.
14347         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
14348         * modules/time (Depends-on): Add arg-nonnull.
14349         (Makefile.am): Insert arg-nonnull.h into time.h.
14350         * modules/unistd (Depends-on): Add arg-nonnull.
14351         (Makefile.am): Insert arg-nonnull.h into unistd.h.
14352         * modules/wchar (Depends-on): Add arg-nonnull.
14353         (Makefile.am): Insert arg-nonnull.h into wchar.h.
14354         * modules/argv-iter (Depends-on): Add arg-nonnull.
14355         * tests/test-canonicalize.c (null_ptr): New function.
14356         (main): Use it.
14357         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
14358         (main): Use it.
14359         * tests/test-memmem.c (null_ptr): New function.
14360         (main): Use it.
14361         Reported by Jim Meyering.
14362
14363 2009-12-10  Bruno Haible  <bruno@clisp.org>
14364
14365         Use spaces for indentation, not tabs.
14366         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14367         * m4/*.m4: Untabify.
14368         * build-aux/*.h: Untabify.
14369         * tests/**/*.[hc]: Untabify.
14370         * README: New section "Indent with spaces, not TABs", based on
14371         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
14372         * NEWS: Mention the change.
14373
14374 2009-12-10  Bruno Haible  <bruno@clisp.org>
14375
14376         pty test: Fix link error.
14377         * modules/pty-tests (Makefile.am): Add the default LDADD value to
14378         test_pty_LDADD.
14379
14380 2009-12-07  Simon Josefsson  <simon@josefsson.org>
14381
14382         * modules/pty: New file.
14383         * modules/pty-tests: New file.
14384         * m4/pty.m4: New file.
14385         * tests/test-pty.c: New file.
14386         * doc/glibc-headers/pty.texi: Modified.
14387         * doc/glibc-functions/forkpty.texi: Modified.
14388         * doc/glibc-functions/openpty.texi: Modified.
14389
14390 2009-12-10  Bruno Haible  <bruno@clisp.org>
14391
14392         Avoid syntax error in C++ mode.
14393         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
14394
14395 2009-12-10  Bruno Haible  <bruno@clisp.org>
14396
14397         Use sed with option -e.
14398         * gnulib-tool (func_version, func_emit_copyright_notice,
14399         func_emit_initmacro_end, func_import, func_create_testdir): Pass
14400         option -e to sed.
14401         * modules/link-warning (Makefile.am): Likewise.
14402
14403 2009-12-10  Jim Meyering  <meyering@redhat.com>
14404
14405         mgetgroups: do not write bytes beyond end of malloc'd buffer
14406         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
14407         username, we call getgroups with a one-element-shorter buffer,
14408         but still told it the length was original, max_n_groups.
14409
14410 2009-12-09  Eric Blake  <ebb9@byu.net>
14411
14412         cloexec: relax license
14413         * modules/cloexec (Maintainer): Add myself.
14414         (License): Use LGPL, not GPL.
14415
14416         link-warning: optimize generation
14417         * modules/link-warning (Makefile.am): Reduce process usage.
14418
14419 2009-12-09  Bruno Haible  <bruno@clisp.org>
14420
14421         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
14422         workaround was added on 2009-11-17.
14423
14424 2009-12-09  Jim Meyering  <meyering@redhat.com>
14425             Bruno Haible  <bruno@clisp.org>
14426
14427         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
14428         * modules/link-warning (Makefile.am): Make the comment-removing sed
14429         command more robust in the face of bootstrap-prepended comment lines.
14430
14431 2009-12-09  Bruno Haible  <bruno@clisp.org>
14432
14433         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
14434         most one group.
14435
14436 2009-12-09  Simon Josefsson <simon@josefsson.org>
14437             Bruno Haible  <bruno@clisp.org>
14438
14439         * build-aux/link-warning.h: Add copyright notice.
14440         * modules/link-warning (Makefile.am): Generate link-warning.h from
14441         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
14442         * NEWS: Mention change in link-warning module.
14443         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
14444         * modules/dirent (Makefile.am): Add dependency to dirent.h.
14445         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
14446         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
14447         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
14448         * modules/math (Makefile.am): Add dependency to math.h.
14449         * modules/search (Makefile.am): Add dependency to search.h.
14450         * modules/signal (Makefile.am): Add dependency to signal.h.
14451         * modules/spawn (Makefile.am): Add dependency to spawn.h.
14452         * modules/stdio (Makefile.am): Add dependency to stdio.h.
14453         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
14454         * modules/string (Makefile.am): Add dependency to string.h.
14455         * modules/strings (Makefile.am): Add dependency to strings.h.
14456         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
14457         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
14458         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
14459         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
14460         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
14461         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
14462         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
14463         * modules/unistd (Makefile.am): Add dependency to unistd.h.
14464         * modules/wchar (Makefile.am): Add dependency to wchar.h.
14465
14466 2009-12-09  Bruno Haible  <bruno@clisp.org>
14467
14468         fchdir: Optimize away rpl_fstat when possible.
14469         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
14470         REPLACE_OPEN_DIRECTORY.
14471         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
14472
14473 2009-12-09  Bruno Haible  <bruno@clisp.org>
14474
14475         * lib/fchdir.c: Update comment.
14476
14477 2009-12-09  Bruno Haible  <bruno@clisp.org>
14478
14479         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
14480
14481 2009-12-08  Eric Blake  <ebb9@byu.net>
14482
14483         fchdir: avoid memory leak on re-registration.
14484         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
14485
14486 2009-12-08  Jim Meyering  <meyering@redhat.com>
14487
14488         init.sh: avoid Solaris 10 /bin/sh portability problem
14489         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
14490         sourced script:
14491           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
14492           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
14493           bar
14494         tests/init.sh relied on that, accepting a --set-path=DIR argument,
14495         and two tests used that idiom.
14496         * tests/init.sh: Update suggested usage comments.
14497         (path_prepend_): New function, to be used in place
14498         of the --src-path=DIR option.
14499         (setup_): Move PATH-prepending code into path_prepend_.
14500         * tests/test-pread.sh: Adapt to new usage.
14501         * tests/test-xalloc-die.sh: Likewise.
14502
14503 2009-12-08  Simon Josefsson  <simon@josefsson.org>
14504
14505         * doc/gnulib.texi (Glibc pty.h): Add.
14506         * doc/glibc-functions/forkpty.texi: Add.
14507         * doc/glibc-functions/openpty.texi: Add.
14508         Suggested by Bruno Haible.
14509
14510 2009-12-08  Eric Blake  <ebb9@byu.net>
14511
14512         fchdir: fix logic bugs
14513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
14514         * tests/test-fchdir.c (main): Enhance test.
14515         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
14516         is in use.
14517
14518         dup2: fix logic bugs
14519         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
14520         REPLACE_DUP2 to decide when rpl_dup2 is needed.
14521         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
14522         exists.
14523         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
14524
14525 2009-12-07  Eric Blake  <ebb9@byu.net>
14526
14527         unlink: fix m4 detection
14528         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
14529
14530         unistd-safer: add unit test
14531         * modules/unistd-safer-tests: New file.
14532         * tests/test-dup-safer.c: Likewise.
14533         * tests/test-cloexec.c (setmode): Avoid compiler warning.
14534         * tests/test-dup2.c (setmode): Likewise.
14535         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
14536
14537         cloexec: preserve text vs. binary across dup_cloexec
14538         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
14539         mode.
14540         * modules/dup2-tests (Depends-on): Add binary-io.
14541         * modules/cloexec-tests (Depends-on): Likewise.
14542         * tests/test-dup2.c (setmode, is_mode): New helpers.
14543         (main): Add tests that translation mode is preserved.
14544         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
14545         Reported by Bruno Haible.
14546
14547         mgetgroups: reduce duplicate listings
14548         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
14549         resulting array.
14550         * tests/test-chown.h (test_chown): Simplify client.
14551         * tests/test-lchown.h (test_lchown): Likewise.
14552
14553 2009-12-06  Bruno Haible  <bruno@clisp.org>
14554
14555         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
14556         value.
14557
14558 2009-12-06  Bruno Haible  <bruno@clisp.org>
14559
14560         * lib/progname.c: Include stdio.h, stdlib.h.
14561         (set_program_name): Reject a NULL argument.
14562
14563 2009-12-05  Eric Blake  <ebb9@byu.net>
14564
14565         pipe2-safer: new module
14566         * modules/pipe2-safer: New file.
14567         * lib/unistd-safer.h (pipe2_safer): New prototype.
14568         * lib/unistd--.h (pipe2): New wrapper.
14569         * lib/pipe-safer.c (pipe2_safer): New function.
14570         * modules/pipe (Depends-on): Add pipe2-safer.
14571         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
14572
14573         stdlib-safer: preserve cloexec flag for mkostemp[s]
14574         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
14575         fd_safer_flag.
14576
14577         unistd-safer: allow preservation of cloexec status via flag
14578         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
14579         prototypes.
14580         * lib/dup-safer.c (dup_safer_flag): New function.
14581         * lib/fd-safer.c (fd_safer_flag): Likewise.
14582         * modules/cloexec (configure.ac): Set witness.
14583
14584         test-dup2: enhance test
14585         * modules/dup2-tests (Depends-on): Add cloexec.
14586         * tests/test-dup2.c (main): Enhance test.
14587
14588         cloexec: add dup_cloexec
14589         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
14590         header and comments.
14591         * lib/cloexec.c (set_cloexec_flag): Add comments.
14592         (dup_cloexec): New function, with mingw implementation borrowed
14593         from...
14594         * lib/w32spawn.h (dup_noinherit): ...here.
14595         * modules/execute (Depends-on): Add cloexec.
14596         * modules/pipe (Depends-on): Likewise.
14597         * modules/cloexec (Depends-on): Add dup2.
14598         * modules/cloexec-tests (Files): New file.
14599         * tests/test-cloexec.c: Likewise.
14600
14601         test-xalloc-die: fix test for mingw
14602         * modules/xalloc-die-tests (Files): Add tests/init.sh.
14603         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
14604         directory and .exe suffix off argv[0] output.
14605
14606         test-fseeko: fix test for mingw
14607         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
14608         than undefining fseek, so test will pass on mingw.
14609
14610 2009-12-05  Bruno Haible  <bruno@clisp.org>
14611
14612         * lib/progname.h (set_program_name): Clarify specification.
14613         * lib/progname.c (set_program_name): Likewise.
14614         Reported by Jim Meyering.
14615
14616 2009-12-05  Jim Meyering  <meyering@redhat.com>
14617
14618         maint.mk: backslash-escape parens in default regexp
14619         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
14620         backslash-escape the literal parentheses.
14621
14622         maint.mk: news-date-check: use grep -E
14623         * top/maint.mk (today): Define a Make variable, not a...
14624         (news-date-check): ...shell variable.
14625         (news-date-regexp): Use the Make variable.
14626         Use grep's -E option.  Change the failing diagnostic to mention
14627         the variable, $(news-date-regexp).
14628
14629 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
14630
14631         maintainer-makefile: allow customization of NEWS entry format
14632         * top/maint.mk (news-date-regexp): New overridable variable.
14633         (news-date-check): Use it.
14634
14635 2009-12-04  Eric Blake  <ebb9@byu.net>
14636
14637         mgetgroups: add xgetgroups, and avoid ENOSYS failures
14638         * lib/mgetgroups.h (xgetgroups): New prototype.
14639         * lib/mgetgroups.c (xgetgroups): New wrapper.
14640         (mgetgroups): Handle ENOSYS.
14641         * modules/mgetgroups (Depends-on): Add realloc.
14642         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
14643
14644         mgetgroups: avoid argument promotion issues with -1
14645         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
14646         for invalid gid_t.
14647         * tests/test-chown.h (getegid, test_chown): Likewise.
14648         * tests/test-lchown.h (getegid, test_lchown): Likewise.
14649
14650 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
14651
14652         exclude: Fix header file problems.
14653         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
14654
14655 2009-12-01  Jim Meyering  <meyering@redhat.com>
14656
14657         fts: fts_open: do not let an empty string cause immediate failure
14658         This is required in support of GNU rm, for which the command
14659         "rm A '' B" must process and remove both A and B, in spite of
14660         the empty string argument.
14661         * lib/fts.c (fts_open): Do not let the presence of an empty string
14662         cause fts_open to fail immediately.  Most fts-using tools must be
14663         able to process all arguments, in order, and can be expected to
14664         diagnose such arguments themselves.
14665
14666 2009-11-30  Eric Blake  <ebb9@byu.net>
14667
14668         utimens: fix compilation error
14669         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
14670         Declare variable at right scope.
14671
14672 2009-11-29  Jim Meyering  <meyering@redhat.com>
14673
14674         bootstrap: handle perl-5.11's changed --version output
14675         * build-aux/bootstrap (get_version): Handle perl separately,
14676         since perl-5.11's --version output is different.
14677
14678 2009-11-28  Jim Meyering  <meyering@redhat.com>
14679
14680         userspec: depend on the inttostr module, too
14681         * modules/userspec (Depends-on): Add inttostr.
14682
14683         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
14684         * lib/userspec.c (parse_with_separator): Do not accept a user ID
14685         number of MAXUID when it evaluates to (uid_t) -1.
14686         Likewise for group ID.  Reported by Matt McCutchen in
14687         <http://savannah.gnu.org/bugs/?28113>
14688
14689         userspec: reformat to use spaces, not TABs
14690         * lib/userspec.c: Expand TABs to spaces.
14691         Add Emacs' "indent-tabs-mode: nil" hint.
14692
14693 2009-11-27  Eric Blake  <ebb9@byu.net>
14694
14695         getopt-gnu: flush out another BSD bug
14696         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
14697         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
14698         flush out BSD bug.
14699         * tests/test-getopt.h (test_getopt): End lists with NULL.
14700         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14701         (test_getopt_long_posix): Enhance test.
14702         * modules/getopt-posix-tests (Depends-on): Add stdbool.
14703         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
14704         getopt-gnu.
14705         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14706         Likewise.
14707
14708 2009-11-27  Simon Josefsson  <simon@josefsson.org>
14709
14710         * modules/idpriv-droptemp-tests (Notice): Fix text.
14711
14712 2009-11-27  Jim Meyering  <meyering@redhat.com>
14713
14714         test-xalloc-die: avoid spurious failure due to libtool argv difference
14715         In a libtool-enabled project, this test would fail due to a difference
14716         in the emitted program name, e.g.,
14717         -test-xalloc-die: memory exhausted
14718         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
14719         Use program to avoid that.
14720         * modules/xalloc-die-tests (Depends-on): Add progname.
14721         * tests/test-xalloc-die.c: Include progname.h".
14722         (program_name): Remove decl.
14723         (main): Call set_program_name.
14724         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
14725
14726 2009-11-26  Richard Jones  <rjones@redhat.com>
14727
14728         w32sock: leave win32 error in place.
14729         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
14730
14731 2009-11-26  Eric Blake  <ebb9@byu.net>
14732
14733         init.sh: suggest to use skip_ and fail_ functions in comments
14734         * tests/init.sh: Add a sentence.
14735
14736 2009-11-25  Bruno Haible  <bruno@clisp.org>
14737
14738         init.sh: add documentation in comments
14739         * tests/init.sh: Add some developer and user documentation.
14740
14741 2009-11-26  Jim Meyering  <meyering@redhat.com>
14742
14743         init.sh: accommodate even those who specify bogus srcdir manually
14744         * tests/init.sh: Normally, srcdir is guaranteed by automake and
14745         configure-time tests to be sanitized, so that there is no need to
14746         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
14747         (with no double quotes) suffices.  However, since tests may be
14748         invoked manually, and since you may explicitly set srcdir to the
14749         name of a directory containing spaces, do quote its uses here.
14750         * tests/test-pread.sh: Likewise.
14751         Suggested by Bruno Haible.
14752
14753         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
14754         * tests/test-pread.sh: Write no data into the pipe, because
14755         test-pread actually reads none.  This avoids a diagnostic,
14756         "bash: echo: write error: Broken pipe", that arises in the unusual
14757         event something is ignoring SIGPIPE, and might be interpreted
14758         as some sort of failure.  Reported by Bruno Haible.
14759
14760 2009-11-25  Jim Meyering  <meyering@redhat.com>
14761
14762         test-pread: cover failure with ESPIPE and EINVAL
14763         * tests/test-pread.c (main): Test for failure, too.
14764         * tests/test-pread.sh: Invoke with stdin on a pipe.
14765         Suggested by Eric Blake.
14766
14767         pread: improvement and fix
14768         * modules/pread (Depends-on): Depend on lseek, for portability to
14769         e.g., mingw.  Suggested by Eric Blake.
14770         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
14771
14772         unistd.in.h: correct declaration of pread
14773         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
14774         Reported by Richard W.M. Jones.
14775
14776         test-pread.sh: distribute the test script
14777         * modules/pread-tests (Files): Include test-pread.sh.
14778
14779         test-pread.sh: clean up
14780         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
14781         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
14782         That is unnecessary, since it's always ".".
14783         Suggestion from Eric Blake.
14784
14785         test-pread.sh: make executable
14786         * tests/test-pread.sh: Set executable bit.
14787         Reported by Eric Blake.
14788
14789         correct typo in test-pread.sh
14790         * tests/test-pread.sh: Add #! line.
14791
14792         test pread
14793         * tests/test-pread.c: New file.
14794         * tests/test-pread.sh: Likewise.
14795         * modules/pread-tests: Likewise.
14796
14797         pread: new module
14798         * modules/pread: New file.
14799         * lib/unistd.in.h (pread): Define/declare.
14800         * lib/pread.c (pread): New file.
14801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
14802         * modules/unistd (Makefile.am): Substitute witnesses.
14803         * doc/posix-functions/pread.texi (pread): Update.
14804         * MODULES.html.sh: Add pread.
14805
14806 2009-11-25  Jim Meyering  <meyering@redhat.com>
14807
14808         tests/init.sh: new file to be used via most *.sh tests
14809         * tests/init.sh: New file.
14810
14811 2009-11-25  Eric Blake  <ebb9@byu.net>
14812
14813         utimens: work around older Linux failure with symlinks
14814         * lib/utimens.c (lutimensat_works_really): New variable.
14815         (fdutimens, lutimens): Use it to manage kernels that support
14816         nanosecond times on files, but not on symlinks.
14817         Reported by Ondřej Vašík.
14818
14819         utimes: fix configure grammar
14820         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
14821
14822 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
14823
14824         regex: Fix fastmap for multibyte character ranges.
14825         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
14826         characters when a multibyte character range is included.
14827
14828 2009-11-22  Andy Wingo  <wingo@pobox.com>
14829
14830         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
14831         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
14832
14833 2009-11-24  Bruno Haible  <bruno@clisp.org>
14834
14835         doc: Most *_l functions exist in MacOS X 10.5.
14836         * doc/posix-functions/duplocale.texi: Update platforms list.
14837         * doc/posix-functions/freelocale.texi: Likewise.
14838         * doc/posix-functions/newlocale.texi: Likewise.
14839         * doc/posix-functions/uselocale.texi: Likewise.
14840         * doc/posix-functions/isalnum_l.texi: Likewise.
14841         * doc/posix-functions/isalpha_l.texi: Likewise.
14842         * doc/posix-functions/isblank_l.texi: Likewise.
14843         * doc/posix-functions/iscntrl_l.texi: Likewise.
14844         * doc/posix-functions/isdigit_l.texi: Likewise.
14845         * doc/posix-functions/isgraph_l.texi: Likewise.
14846         * doc/posix-functions/islower_l.texi: Likewise.
14847         * doc/posix-functions/isprint_l.texi: Likewise.
14848         * doc/posix-functions/ispunct_l.texi: Likewise.
14849         * doc/posix-functions/isspace_l.texi: Likewise.
14850         * doc/posix-functions/isupper_l.texi: Likewise.
14851         * doc/posix-functions/iswalnum_l.texi: Likewise.
14852         * doc/posix-functions/iswalpha_l.texi: Likewise.
14853         * doc/posix-functions/iswblank_l.texi: Likewise.
14854         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14855         * doc/posix-functions/iswctype_l.texi: Likewise.
14856         * doc/posix-functions/iswdigit_l.texi: Likewise.
14857         * doc/posix-functions/iswgraph_l.texi: Likewise.
14858         * doc/posix-functions/iswlower_l.texi: Likewise.
14859         * doc/posix-functions/iswprint_l.texi: Likewise.
14860         * doc/posix-functions/iswpunct_l.texi: Likewise.
14861         * doc/posix-functions/iswspace_l.texi: Likewise.
14862         * doc/posix-functions/iswupper_l.texi: Likewise.
14863         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14864         * doc/posix-functions/isxdigit_l.texi: Likewise.
14865         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
14866         * doc/posix-functions/strcasecmp_l.texi: Likewise.
14867         * doc/posix-functions/strcoll_l.texi: Likewise.
14868         * doc/posix-functions/strfmon_l.texi: Likewise.
14869         * doc/posix-functions/strftime_l.texi: Likewise.
14870         * doc/posix-functions/strncasecmp_l.texi: Likewise.
14871         * doc/posix-functions/strxfrm_l.texi: Likewise.
14872         * doc/posix-functions/tolower_l.texi: Likewise.
14873         * doc/posix-functions/toupper_l.texi: Likewise.
14874         * doc/posix-functions/towctrans_l.texi: Likewise.
14875         * doc/posix-functions/towlower_l.texi: Likewise.
14876         * doc/posix-functions/towupper_l.texi: Likewise.
14877         * doc/posix-functions/wcscoll_l.texi: Likewise.
14878         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14879         * doc/posix-functions/wctrans_l.texi: Likewise.
14880         * doc/posix-functions/wctype_l.texi: Likewise.
14881         * doc/glibc-functions/strptime_l.texi: Likewise.
14882         * doc/glibc-functions/strtod_l.texi: Likewise.
14883         * doc/glibc-functions/strtof_l.texi: Likewise.
14884         * doc/glibc-functions/strtol_l.texi: Likewise.
14885         * doc/glibc-functions/strtold_l.texi: Likewise.
14886         * doc/glibc-functions/strtoll_l.texi: Likewise.
14887         * doc/glibc-functions/strtoul_l.texi: Likewise.
14888         * doc/glibc-functions/strtoull_l.texi: Likewise.
14889         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14890         * doc/glibc-functions/wcstod_l.texi: Likewise.
14891         * doc/glibc-functions/wcstof_l.texi: Likewise.
14892         * doc/glibc-functions/wcstol_l.texi: Likewise.
14893         * doc/glibc-functions/wcstold_l.texi: Likewise.
14894         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14895         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14896         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14897
14898 2009-11-24  Bruno Haible  <bruno@clisp.org>
14899
14900         duplocale: Fix logic bug.
14901         * lib/duplocale.c: Don't include <langinfo.h>.
14902         (_NL_LOCALE_NAME): Remove macro.
14903         (rpl_duplocale): Use setlocale instead of nl_langinfo.
14904         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
14905
14906 2009-11-23  Jim Meyering  <meyering@redhat.com>
14907
14908         test-update-copyright: don't hard-code /usr/bin/perl
14909         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
14910         perl to print the current year.  Gilles Espinasse reported that
14911         the replaced use of perl was hard-coded as /usr/bin/perl.
14912
14913 2009-11-23  Bruno Haible  <bruno@clisp.org>
14914
14915         duplocale: Add support for glibc 2.3.x.
14916         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
14917
14918 2009-11-22  Bruno Haible  <bruno@clisp.org>
14919
14920         vasnprintf: Tiny optimization.
14921         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
14922         MacOS X.
14923
14924 2009-11-22  Bruno Haible  <bruno@clisp.org>
14925
14926         Tests for module 'duplocale'.
14927         * modules/duplocale-tests: New file.
14928         * tests/test-duplocale.c: New file.
14929
14930         New module 'duplocale'.
14931         * m4/duplocale.m4: New file.
14932         * lib/locale.in.h (duplocale): New declaration.
14933         * lib/duplocale.c: New file.
14934         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
14935         gl_LOCALE_H_DEFAULTS): New macros.
14936         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
14937         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
14938         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
14939         REPLACE_DUPLOCALE.
14940         * modules/duplocale: New file.
14941         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
14942
14943 2009-11-22  Bruno Haible  <bruno@clisp.org>
14944
14945         * modules/locale-tests (configure.ac): Test for newlocale function.
14946         * tests/test-locale.c: When the system has extended locale functions,
14947         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
14948
14949         locale: Make locale_t available when possible.
14950         * lib/locale.in.h: Include <xlocale.h> when it exists.
14951         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
14952         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
14953         * modules/locale (Depends-on): Add extensions.
14954         (Makefile.am): Also substitute HAVE_XLOCALE_H.
14955         * doc/posix-headers/locale.texi: Document the problem with locale_t.
14956
14957 2009-11-22  Bruno Haible  <bruno@clisp.org>
14958
14959         Add comments.
14960         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
14961         invocation.
14962         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14963         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14964         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14965
14966 2009-11-22  Bruno Haible  <bruno@clisp.org>
14967
14968         error: account for the possibility of freopen (stdout).
14969         * lib/error.c: Include <unistd.h>.
14970         (flush_stdout): New function, extracted from error and error_at_line.
14971         Determine stdout's fd dynamically.
14972         (error, error_at_line): Invoke flush_stdout.
14973         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
14974         * modules/error (Depends-on): Add unistd.
14975
14976 2009-11-22  Bruno Haible  <bruno@clisp.org>
14977
14978         diffseq: Add comment.
14979         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
14980
14981 2009-11-22  Jim Meyering  <meyering@redhat.com>
14982
14983         c-stack: avoid defining an unused static function
14984         * lib/c-stack.c (find_stack_direction): Do not define this function
14985         when it will not be used.
14986
14987         diffseq: avoid spurious gcc warnings
14988         * lib/diffseq.h (IF_LINT2): Define.
14989         (compareseq): Use it to initialize two members of "part".
14990         This avoids two used-uninitialized warnings.
14991
14992 2009-11-21  Jim Meyering  <meyering@redhat.com>
14993
14994         c-stack: avoid "ignoring return value of `write'" warning
14995         * lib/c-stack.c: Include "ignore-value.h".
14996         (die): Explicitly ignore each write return value.
14997         * modules/c-stack (Depends-on): Add ignore-value.
14998
14999 2009-11-21  Bruno Haible  <bruno@clisp.org>
15000
15001         diffseq: reduce scope of variable 'best'.
15002         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
15003         variable, earlier used for two different purposes.
15004
15005 2009-11-21  Jim Meyering  <meyering@redhat.com>
15006
15007         diffseq: remove useless assignment to "best"
15008         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
15009         assignment.  At that point "best" is already guaranteed to be zero.
15010
15011 2009-11-20  Eric Blake  <ebb9@byu.net>
15012
15013         build: mention ftp redirector in release announcements
15014         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
15015         values that used to come from cfg.mk; mention FTP redirect URL.
15016         * build-aux/announce-gen: Mention the mirror list.
15017         Suggested by Karl Berry.
15018
15019         nanosleep: improve port to mingw
15020         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
15021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
15022         LIB_NANOSLEEP, but only when needed.
15023         * modules/select (Link): Document LIBSOCKET.
15024         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
15025         enough.
15026
15027         nanosleep: work around cygwin bug
15028         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
15029         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
15030         bug.
15031         (getnow): Delete, not needed.
15032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
15033         LIB_CLOCK_GETTIME.
15034         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
15035         clock-time, gettime.
15036         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
15037         bug.
15038         * modules/nanosleep-tests: New test.
15039         * tests/test-nanosleep.c: New file.
15040
15041         sleep: work around cygwin bug
15042         * lib/sleep.c (rpl_sleep): Work around the bug.
15043         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
15044         (gl_PREREQ_SLEEP): Delete unused macro.
15045         * modules/sleep (Depends-on): Add verify.
15046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15047         * modules/unistd (Makefile.am): Substitute witness.
15048         * lib/unistd.in.h (sleep): Update prototype.
15049         * doc/posix-functions/sleep.texi (sleep): Document the bug.
15050         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
15051         * modules/sleep-tests (Depends-on): Check for alarm.
15052
15053 2009-11-20  Jim Meyering  <meyering@redhat.com>
15054
15055         maint.mk: improve sc_prohibit_magic_number_exit
15056         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
15057         so it does not match uses like System.exit(1).
15058         Add comments showing how to correct all offenders.
15059
15060 2009-11-19  Eric Blake  <ebb9@byu.net>
15061
15062         xalloc-die-tests: add missing library
15063         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
15064
15065         test-xvasprintf: silence compiler warnings
15066         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
15067         empty string from gcc.
15068
15069 2009-11-19  Jim Meyering  <meyering@redhat.com>
15070
15071         xfreopen: new module, from coreutils
15072         * modules/xfreopen: New module.
15073         * lib/xfreopen.c: New file.
15074         * lib/xfreopen.h: New file.
15075         * MODULES.html.sh (File stream based Input/Output"): Add it.
15076
15077 2009-11-19  Eric Blake  <ebb9@byu.net>
15078
15079         manywarnings: depend on warnings
15080         * modules/manywarnings (Depends-on): Add warnings.
15081
15082         build: avoid compiler warnings
15083         * lib/select.c (rpl_select): Delete unused variable.
15084         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
15085
15086 2009-11-18  Eric Blake  <ebb9@byu.net>
15087
15088         tests: avoid false negative with --with-packager
15089         * tests/test-version-etc.sh: Discard packager information.
15090         * tests/test-argp-version-etc-1.sh: Likewise.
15091         Reported by Mike Frysinger.
15092
15093         utimens: fix regression on Solaris
15094         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
15095         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
15096         can only change fd timestamps via futimesat.  Instead, use an
15097         additional witness macro to avoid BSD bug.
15098         Reported by Jim Meyering.
15099
15100 2009-11-17  Eric Blake  <ebb9@byu.net>
15101
15102         usleep: use it to simplify tests
15103         * modules/stat-time-tests (Depends-on): Add usleep.
15104         (configure.ac): Drop usleep check.
15105         * modules/chown-tests (Depends-on, configure.ac): Likewise.
15106         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
15107         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
15108         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
15109         * modules/openat-tests (Depends-on, configure.ac): Likewise.
15110         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
15111         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
15112         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
15113         Likewise.
15114         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
15115         * tests/test-lchown.h (nap): Likewise.
15116         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
15117         * tests/test-stat-time.c (nap): Likewise.
15118         * tests/test-utimens-common.h (nap): Update comments.
15119
15120         usleep: new module
15121         * modules/usleep: New file.
15122         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15123         * lib/usleep.c (usleep): Likewise.
15124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15125         * modules/unistd (Makefile.am): Substitute witnesses.
15126         * lib/unistd.in.h (usleep): Add declaration.
15127         * doc/pastposix-functions/usleep.texi (usleep): Document this.
15128         * MODULES.html.sh (Date and time): Likewise.
15129         * modules/usleep-tests (Depends-on): New test.
15130         * tests/test-usleep.c: New file.
15131
15132         chown: work around OpenBSD bug
15133         * lib/chown.c (rpl_chown): Work around the bug.
15134         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
15135         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
15136         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
15137         * modules/chown (Depends-on): Add stdbool.
15138         * modules/lchown (Depends-on): Likewise.
15139         * doc/posix-functions/chown.texi (chown): Document the bug.
15140         * doc/posix-functions/lchown.texi (lchown): Likewise.
15141         * tests/test-lchown.h (test_chown): Relax test.
15142
15143         mkstemp: avoid conflict with C++ keyword template
15144         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
15145         * lib/mkostemp.c (mkostemp): Likewise.
15146         * lib/mkostemps.c (mkostemps): Likewise.
15147         * lib/mkstemp.c (mkstemp): Likewise.
15148         * lib/mkstemps.c (mkstemps): Likewise.
15149
15150         xalloc-die-tests: optimize
15151         * tests/test-xalloc-die.sh: Reduce number of processes.
15152
15153 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15154
15155         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
15156         patch from ludo@gnu.org (Ludovic Courtès).
15157
15158 2009-11-17  Jim Meyering  <meyering@redhat.com>
15159
15160         version-etc: use proper license string
15161         * modules/version-etc (License): Use LGPL, not LGPLv3+.
15162         * modules/version-etc-fsf: Likewise.
15163
15164 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15165
15166         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
15167         printed to stdout.  Deal with EOL differences.
15168
15169 2009-11-17  Eric Blake  <ebb9@byu.net>
15170
15171         unsetenv: work around Solaris bug
15172         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
15173         * lib/unsetenv.c (rpl_unsetenv): Work around it.
15174         Reported by Jim Meyering.
15175
15176         vasnprintf: avoid compiler warnings
15177         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
15178         variables.
15179         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
15180
15181 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15182
15183         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
15184         settings since xalloc-die is no longer the self test,
15185         xalloc-die.sh is.
15186
15187 2009-11-17  Jim Meyering  <meyering@redhat.com>
15188
15189         test-xalloc-die.sh: make the code agree with the commit log
15190         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
15191         at the end, just in case you happen to have a test-xalloc-die
15192         program in some other PATH directory.
15193
15194         test-xalloc-die.sh: fix a portability bug
15195         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
15196         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
15197         Otherwise, argv[0] (as often seen in diagnostics) would be too
15198         system-dependent, sometimes with, and sometimes without the leading "./".
15199
15200         version-etc-fsf: relax license to LGPLv3+
15201         * modules/version-etc-fsf (License): Relax license.
15202
15203 2009-11-16  Eric Blake  <ebb9@byu.net>
15204
15205         xalloc-die-tests: avoid printing null pointer
15206         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
15207         shell script.
15208         * tests/test-xalloc-die.c (program_name): Declare.
15209         * tests/test-xalloc-die.sh (tmpfiles): New file.
15210
15211         setenv, unsetenv: work around various bugs
15212         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
15213         (setenv) [HAVE_SETENV]: Work around bugs.
15214         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
15215         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
15216         for bugs.
15217         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
15218         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
15219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
15220         * modules/stdlib (Makefile.am): Update substitutions.
15221         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
15222         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
15223         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
15224         * modules/setenv-tests: New test.
15225         * modules/unsetenv-tests: Likewise.
15226         * tests/test-setenv.c: New file.
15227         * tests/test-unsetenv.c: Likewise.
15228
15229 2009-11-16  Jim Meyering  <meyering@redhat.com>
15230
15231         version-etc: relax license to LGPLv3+
15232         * modules/version-etc (License): Relax license.
15233
15234         better AC_REQUIRE expanded-before-required-warning avoidance
15235         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
15236         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
15237         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
15238         which is no longer needed.
15239
15240 2009-11-16  Eric Blake  <ebb9@byu.net>
15241
15242         test-freading: clean up temporary file
15243         * tests/test-freading.c (main): Remove file on success, and use
15244         ASSERT more liberally.
15245         Reported by Jim Meyering.
15246
15247 2009-11-16  Jim Meyering  <meyering@redhat.com>
15248
15249         avoid new AC_REQUIRE expanded-before-required warnings
15250         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
15251         merely using it.
15252         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
15253         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
15254
15255 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15256
15257         * tests/test-xalloc-die.c: New file.
15258         * modules/xalloc-die-tests: New file.
15259         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
15260         XFAIL_TESTS so it can be appended by modules.
15261
15262 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15263
15264         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
15265         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
15266
15267 2009-11-14  Eric Blake  <ebb9@byu.net>
15268
15269         fnmatch: avoid compiler warning
15270         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
15271         to silence compiler warning about mismatch signedness in ?:.
15272         Reported by Robert Millan.
15273
15274         intprops: add double-inclusion guard
15275         * lib/intprops.h: Allow idempotent includes.
15276         Suggested by Bruce Korb.
15277
15278         openat: detect Solaris fchownat bug
15279         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
15280         penalizing glibc chownat when only lchownat is broken.
15281         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
15282         trailing slash bugs.
15283         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
15284         * modules/openat-tests (Files): Include more files.
15285         (Depends-on): Add mgetgroups, sleep, stat-time.
15286         (configure.ac): Add additional checks.
15287         (Makefile.am): Build new test.
15288         * tests/test-fchownat.c: New file.
15289
15290         lchown: detect Solaris and FreeBSD bug
15291         * lib/lchown.c (rpl_lchown): Work around bug.
15292         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
15293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15294         * modules/unistd (Makefile.am): Populate it.
15295         * lib/unistd.in.h (lchown): Update declaration.
15296         * doc/posix-functions/lchown.texi (lchown): Document the bug.
15297         * modules/lchown-tests: New file.
15298         * tests/test-lchown.h (test_lchown): Likewise.
15299         * tests/test-lchown.c (main): Likewise.
15300
15301         chown: detect Solaris and FreeBSD bug
15302         * lib/chown.c (rpl_chown): Work around bug.
15303         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
15304         (gl_PREREQ_CHOWN): Delete.
15305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15306         * modules/unistd (Makefile.am): Populate it.
15307         * lib/unistd.in.h (chown): Update declaration.
15308         * lib/lchown.c (chown): Update client.
15309         * modules/lchown (Depends-on): Add lstat.
15310         * doc/posix-functions/chown.texi (chown): Document the bug.
15311         * doc/posix-functions/getgroups.texi (getgroups): Document
15312         getgroups pitfall.
15313         * modules/chown-tests: New file.
15314         * tests/test-chown.h (test_chown): Likewise.
15315         * tests/test-chown.c (main): Likewise.
15316
15317 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
15318
15319         gnulib-tool: correctly detect absence of m4 directories
15320         * gnulib-tool: Avoid extra newline on data passed to wc -l.
15321
15322 2009-11-14  Jim Meyering  <meyering@redhat.com>
15323
15324         maint.mk: Prohibit inclusion of "xalloc.h" without use.
15325         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15326
15327 2009-11-14  John W. Eaton  <jwe@gnu.org>
15328
15329         strftime.h: wrap funtion declaration in extern "C" block
15330         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
15331
15332 2009-11-13  Eric Blake  <ebb9@byu.net>
15333
15334         getgroups: avoid compiler warning
15335         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
15336
15337         getgroups: work around FreeBSD bug
15338         * lib/getgroups.c (rpl_getgroups): Work around the bug.
15339         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
15340         * doc/posix-functions/getgroups.texi (getgroups): Document it.
15341         * tests/test-getgroups.c (main): Fix buffer overrun.
15342
15343         getgroups: avoid compilation failure
15344         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
15345         * modules/getgroups (Depends-on): Add stdint.
15346
15347 2009-11-13  Jim Meyering  <meyering@redhat.com>
15348
15349         test-getgroups: avoid compilation failure
15350         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
15351
15352 2009-11-13  Eric Blake  <ebb9@byu.net>
15353
15354         mgetgroups: new module, taken from coreutils
15355         * modules/mgetgroups: New file.
15356         * lib/mgetgroups.h: Likewise.
15357         * lib/mgetgroups.c (mgetgroups): Likewise.
15358         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
15359         * MODULES.html.sh (Users and groups): Mention it.
15360
15361         getgroups: don't expose GETGROUPS_T to user
15362         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
15363         an element at a time if GETGROUPS_T is wrong size.
15364         * lib/getugroups.h (getugroups): Change signature.
15365         * lib/unistd.in.h (getgroups): Likewise.
15366         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
15367         signature needs fixing.
15368         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
15369         AC_TYPE_GETGROUPS.
15370         * modules/group-member (Depends-on): Add getgroups.
15371         * lib/group-member.c (group_info, get_group_info): Use gid_t.
15372         (group_member): Rely on getgroups replacement.
15373         * lib/getugroups.c (getugroups): Use gid_t.
15374         * tests/test-getgroups.c (main): Likewise.
15375         * NEWS: Mention the signature change.
15376         * doc/posix-functions/getgroups.texi (getgroups): Mention the
15377         problem with signature.
15378         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
15379         GETGROUPS_T is still useful for setgroups.
15380
15381         getgroups, getugroups: provide stubs for mingw
15382         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
15383         * lib/getugroups.c (getugroups): Likewise.
15384         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
15385         function.  Modernize replacement scheme.
15386         (gl_PREREQ_GETGROUPS): Delete.
15387         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
15388         * modules/getgroups (configure.ac): Declare witness.
15389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15390         * modules/unistd (Depends-on): Substitute witness.
15391         * lib/unistd.in.h (getgroups): Declare replacement.
15392
15393         getgroups: avoid calling exit
15394         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
15395         drop xalloc.
15396         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
15397         dependencies.
15398         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
15399         exiting, in the rare case of malloc failure.
15400
15401         getgroups: fix logic error
15402         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
15403         has more than 20 groups.
15404         * modules/getgroups-tests: New test.
15405         * tests/test-getgroups.c: New file.
15406
15407 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15408
15409         * tests/test-base64.c: Improve.
15410
15411 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15412
15413         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
15414         Blake <ebb9@byu.net>.
15415
15416 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15417
15418         * tests/test-xvasprintf.c: Add %s%s related checks.
15419
15420 2009-11-12  Eric Blake  <ebb9@byu.net>
15421
15422         version-etc: match standards.texi style
15423         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
15424         and use <> only for URLs.
15425
15426 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
15427
15428         fts: do not fail on a submount during traversal
15429         * lib/fts.c (fts_build): Read the stat info again after opening
15430         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
15431         Original report at http://bugzilla.redhat.com/501848.
15432
15433 2009-11-12  Jim Meyering  <meyering@redhat.com>
15434
15435         bootstrap: sync from coreutils
15436         * build-aux/bootstrap (bootstrap_epilogue): New function.
15437         Use git_modules_config in one more place.  This make bootstrap's
15438         --gnulib-srcdir option more useful for testing.
15439
15440         bootstrap: generalize autoheader check
15441         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
15442         AC_CONFIG_HEADERS.
15443
15444 2009-11-11  Eric Blake  <ebb9@byu.net>
15445
15446         mkfifoat: use new modules for Solaris and BSD bugs
15447         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
15448         * lib/mkfifoat.c (mknodat): Split...
15449         * lib/mknodat.c (mknodat): ...into new file.
15450         * modules/mkfifoat (Files): Ship new file.
15451         (Depends-on): Add mkfifo, mknod.
15452         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
15453         (Depends-on): Add symlink.
15454         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
15455         redundant with test_mkfifo.h.
15456         (do_mkfifoat, do_mknodat): New helpers.
15457
15458         mknod: new module
15459         * modules/mknod: New file.
15460         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
15461         * lib/mknod.c (mknod): Likewise.
15462         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
15463         defaults.
15464         * modules/sys_stat (Makefile.am): Substitute them.
15465         * lib/sys_stat.in.h (mknod): Declare replacement.
15466         * MODULES.html.sh (Support for systems lacking POSIX:2008):
15467         Document it.
15468         * doc/posix-functions/mknod.texi (mknod): Likewise.
15469         * modules/mknod-tests: New test.
15470         * tests/test-mknod.c: Likewise.
15471
15472         mkfifo: new module
15473         * modules/mkfifo: New file.
15474         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15475         * lib/mkfifo.c (mkfifo): Likewise.
15476         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
15477         defaults.
15478         * modules/sys_stat (Makefile.am): Substitute them.
15479         * lib/sys_stat.in.h (mkfifo): Declare replacement.
15480         * MODULES.html.sh (Support for systems lacking POSIX:2008):
15481         Document it.
15482         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
15483         * modules/mkfifo-tests: New test.
15484         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
15485         from test-mkfifoat.c.
15486         * tests/test-mkfifo.c: New file.
15487
15488         readlink: detect FreeBSD bug
15489         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
15490         slash on symlink.
15491         * doc/posix-functions/readlink.texi (readlink): Document the bug.
15492         * tests/test-readlink.h (test_readlink): Enhance test.
15493
15494         symlink: detect FreeBSD bug
15495         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
15496         slash on symlink.
15497         * doc/posix-functions/symlink.texi (symlink): Document the bug.
15498         * tests/test-symlink.h (test_symlink): Enhance test.
15499
15500 2009-11-10  Eric Blake  <ebb9@byu.net>
15501
15502         link: detect FreeBSD bug
15503         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
15504         symlink.
15505         * doc/posix-functions/link.texi (link): Document the bug.
15506         * tests/test-link.h (test_link): Enhance test.
15507         * tests/test-linkat.c (main): Update caller.
15508
15509         unlink, remove: detect FreeBSD bug
15510         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
15511         slash on symlink.
15512         * doc/posix-functions/unlink.texi (unlink): Document the bug.
15513         * doc/posix-functions/remove.texi (remove): Likewise.
15514         * tests/test-unlink.h (test_unlink): Enhance test.
15515         * tests/test-remove.c (main): Likewise.
15516
15517 2009-11-09  Eric Blake  <ebb9@byu.net>
15518
15519         rename: detect FreeBSD bug
15520         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
15521         slash on symlink.
15522         * modules/renameat-tests (Depends-on): Add filenamecat.
15523         * tests/test-rename.h (test_rename): Allow one more errno.
15524         * tests/test-renameat.c (main): Likewise.
15525         * doc/posix-functions/rename.texi (rename): Document the bug.
15526
15527         open: detect FreeBSD bug
15528         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
15529         symlink.
15530         * doc/posix-functions/open.texi (open): Document the bug.
15531         * doc/posix-functions/utimes.texi (utimes): Likewise.
15532         * tests/test-open.h (test_open): Add parameters, and test symlink
15533         handling.
15534         * tests/test-open.c (main): Adjust caller.
15535         * tests/test-fcntl-safer.c (main): Likewise.
15536         * modules/open-tests (Depends-on): Add stdbool, symlink.
15537         * modules/fcntl-safer-tests (Depends-on): Likewise.
15538         * tests/test-openat.c (main): Add test-open tests.
15539
15540         stat: detect FreeBSD bug
15541         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
15542         symlink.
15543         * doc/posix-functions/stat.texi (stat): Document the bug.
15544         * tests/test-stat.h (test_stat_func): Add argument.
15545         * tests/test-stat.c (main): Adjust caller.
15546         * tests/test-fstatat.c (main): Likewise.
15547         * modules/stat-tests (Depends-on): Add stdbool, symlink.
15548         Reported by Jim Meyering.
15549
15550 2009-11-09  James Youngman  <jay@gnu.org>
15551
15552         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
15553         * lib/strftime.c: Correct placement of #include "ignore-value.h".
15554
15555 2009-11-08  Jim Meyering  <meyering@redhat.com>
15556
15557         utimens: remove invalid futimesat call
15558         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
15559         It used the file descriptor of the target file as the DIR_FD
15560         parameter and NULL as the file name.  That caused failure with
15561         errno == EFAULT on FreeBSD-8.0-rc2
15562
15563 2009-11-07  Eric Blake  <ebb9@byu.net>
15564
15565         fflush, freadseek: use fseeko, not fseek
15566         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15567         (clear_ungetc_buffer): Avoid potential problems on large files.
15568         * lib/freadseek.c (freadseek): Likewise.
15569         * modules/freadseek (Depends-on): Add fseeko.
15570         * modules/fseek (configure.ac): Set a witness.
15571         * tests/test-fflush.c (main): Use fseeko.
15572         * tests/test-fpurge.c (fseek): Disable link warning.
15573         * tests/test-freadable.c (fseek): Likewise.
15574         * tests/test-freading.c (fseek): Likewise.
15575         * tests/test-fseeko.c (fseek): Likewise.
15576         * tests/test-ftell.c (fseek): Likewise.
15577         * tests/test-ftello.c (fseek): Likewise.
15578         * tests/test-fwritable.c (fseek): Likewise.
15579         * tests/test-fwriting.c (fseek): Likewise.
15580
15581 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15582
15583         * modules/memchr (Depends-on): Drop getpagesize dependency.
15584
15585 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15586
15587         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
15588         Reported by Ludovic Courtès.
15589         * build-aux/pmccabe2html: Improve example usage.
15590         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
15591
15592 2009-11-06  Jim Meyering  <meyering@redhat.com>
15593
15594         do-release-commit-and-tag: New module.
15595         Automate the release-commit and tag process.
15596         * build-aux/do-release-commit-and-tag: New script, from coreutils.
15597         * modules/do-release-commit-and-tag: New file.
15598         * MODULES.html.sh (Support for maintaining and releasing): Add it.
15599
15600 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15601
15602         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
15603         because test-select.c uses inet_pton.
15604
15605 2009-11-06  Simon Josefsson  <simon@josefsson.org>
15606
15607         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
15608         GETADDRINFO_LIB.  Bump serial number.
15609         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
15610         Suggested by Eric Blake <ebb9@byu.net>.
15611
15612 2009-11-05  Eric Blake  <ebb9@byu.net>
15613
15614         strtod: detect darwin bug
15615         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
15616         Reported by Leo Davis.
15617
15618         freopen-safer: new module
15619         * modules/freopen-safer: New module.
15620         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
15621         * lib/freopen-safer.c (freopen_safer): New file.
15622         * lib/stdio-safer.h (freopen_safer): New declaration.
15623         * lib/stdio--.h (freopen): New override.
15624         * MODULES.html.sh (File stream based Input/Output): Mention it.
15625         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
15626         freopen-safer module.
15627         * doc/posix-functions/stderr.texi (stderr): Likewise.
15628         * doc/posix-functions/stdin.texi (stdin): Likewise.
15629         * doc/posix-functions/stdout.texi (stdout): Likewise.
15630         * modules/freopen-safer-tests: New test.
15631         * tests/test-reopen-safer.c: New file.
15632
15633 2009-11-05  Jim Meyering  <meyering@redhat.com>
15634
15635         maint.mk: Prohibit inclusion of "close-stream.h" without use.
15636         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15637
15638 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15639
15640         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
15641
15642 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15643
15644         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
15645
15646 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15647
15648         Fix link error.
15649         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15650         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15651
15652 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15653
15654         * tests/test-func.c: Also test value of __func__.
15655
15656 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15657
15658         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
15659         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
15660
15661 2009-11-05  Bruno Haible  <bruno@clisp.org>
15662
15663         Fix link error.
15664         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15665         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15666         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
15667
15668 2009-11-05  Bruno Haible  <bruno@clisp.org>
15669
15670         Tests for module 'inet_pton'.
15671         * modules/inet_pton-tests: New file.
15672         * tests/test-inet_pton.c: New file.
15673
15674 2009-11-05  Bruno Haible  <bruno@clisp.org>
15675
15676         Tests for module 'inet_ntop'.
15677         * modules/inet_ntop-tests: New file.
15678         * tests/test-inet_ntop.c: New file.
15679
15680 2009-11-04  Eric Blake  <ebb9@byu.net>
15681
15682         stdlib-safer: wrap all mkstemp variants
15683         * modules/mkostemp (configure.ac): Set witness.
15684         * modules/mkostemps (configure.ac): Likewise.
15685         * modules/mkstemps (configure.ac): Likewise.
15686         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
15687         (mkstemps_safer): Wrap more functions.
15688         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
15689         wrapping.
15690         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
15691         (mkstemps_safer): Implement the wrappers.
15692
15693         mkstemps, mkostemps: new modules
15694         * modules/mkostemps: New module.
15695         * modules/mkstemps: Likewise.
15696         * lib/mkostemps.c (mkostemps): New file.
15697         * lib/mkstemps.c (mkstemps): Likewise.
15698         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
15699         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
15700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
15701         * modules/stdlib (Makefile.am): Substitute them.
15702         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
15703         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
15704         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15705         * doc/gnulib.texi (Glibc stdlib.h): Include them.
15706         * MODULES.html.sh (File system functions): Mention them.
15707
15708         tempname: resync from glibc
15709         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
15710         same values for __GT_FILE as glibc.  Abort even when assertions
15711         are disabled.
15712         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
15713         match its value otherwise.  Allow idempotent inclusion.
15714         * lib/mkdtemp.c (mkdtemp): Adjust caller.
15715         * lib/mkostemp.c (mkostemp): Likewise.
15716         * lib/mkstemp.c (mkstemp): Likewise.
15717         * lib/tmpfile.c (tmpfile): Likewise.
15718         * NEWS: Document this.
15719
15720         utimens: fix use of futimens on older Linux
15721         * lib/utimens.c (fdutimens): Use updated, rather than original,
15722         timespec to avoid bug in older Linux kernel.
15723         Reported by Simon Josefsson.
15724
15725 2009-11-04  Bruno Haible  <bruno@clisp.org>
15726
15727         Make num_processors more flexible and consistent.
15728         * lib/nproc.h (enum nproc_query): New type.
15729         (num_processors): Add a 'query' argument.
15730         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
15731         (num_processors): Add a 'query' argument. Test the value of the
15732         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
15733         mingw, count the number of CPUs available for the current process.
15734         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
15735         Check for sched_getaffinity and sched_getaffinity_np.
15736         * modules/nproc (Depends-on): Add c-ctype, extensions.
15737         * NEWS: Mention the change.
15738
15739 2009-11-03  Bruno Haible  <bruno@clisp.org>
15740
15741         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
15742
15743 2009-11-03  Jim Meyering  <meyering@redhat.com>
15744
15745         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
15746         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
15747         if it is defined.
15748
15749 2009-11-02  Eric Blake  <ebb9@byu.net>
15750
15751         mktime, timegm: share common declaration
15752         * lib/mktime-internal.h: New file.
15753         * lib/mktime.c: Use it rather than open-coding a declaration.
15754         * lib/timegm.c: Likewise.
15755         * modules/mktime (Files): Ship it.
15756         * modules/timegm (Files): Likewise.
15757         Suggested by Bruno Haible.
15758
15759         test-update-copyright: update test to match script changes
15760         * tests/test-update-copyright.sh: Avoid hard-coding perl
15761         location.  Don't update *.bak created by earlier runs.
15762
15763 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15764             Simon Josefsson  <simon@josefsson.org>
15765             Bruno Haible  <bruno@clisp.org>
15766
15767         Fix link error on Solaris 8.
15768         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
15769         also in libnsl. Define also INET_PTON_LIB.
15770         * modules/inet_pton (Link): New section.
15771
15772 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15773             Bruno Haible  <bruno@clisp.org>
15774
15775         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
15776         * modules/inet_ntop (Link): New section.
15777         Reported by Boyan Kasarov <bkasarov@gmail.com>.
15778
15779 2009-11-02  Eric Blake  <ebb9@byu.net>
15780
15781         maint: avoid compiler warnings in m4 macros
15782         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
15783         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
15784
15785 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15786
15787         * m4/pmccabe2html.m4: Remove file.
15788         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
15789         function.  Change maintainer.
15790         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
15791         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
15792         Courtès).
15793
15794 2009-10-31  Eric Blake  <ebb9@byu.net>
15795
15796         fseeko: fix m4 regression
15797         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
15798         regression from 2009-10-27.
15799         Reported by Ralf Wildenhues.
15800
15801 2009-10-31  Jim Meyering  <meyering@redhat.com>
15802
15803         inttostr: aesthetics and improved (compile-time) safety
15804         Define inttype_is_signed rather than inttype_is_unsigned,
15805         since the sole use is via "#if inttype_is_signed".
15806         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
15807         inttype_is_unsigned.
15808         * lib/offtostr.c (inttype_is_signed): Likewise.
15809         * lib/uinttostr.c (inttype_is_signed): Likewise.
15810         * lib/umaxtostr.c (inttype_is_signed): Likewise.
15811         * lib/inttostr.c (inttostr): Use verify to cross-check the
15812         inttype_is_signed value and the signedness of the actual type.
15813         * modules/inttostr (Depends-on): Add verify.
15814
15815 2009-10-30  Eric Blake  <ebb9@byu.net>
15816
15817         build: avoid compiler warnings
15818         * lib/fchmodat.c (lchmod): Mark unused variables.
15819         * lib/getopt.c (_getopt_initialize): Likewise.
15820         * lib/mktime.c (__mktime_internal): Provide prototype.
15821         * lib/inttostr.c (inttostr): Avoid compiler warning even with
15822         older gcc that do not understand #pragma GCC diagnostic.
15823         * lib/uinttostr.c (inttype_is_unsigned): Define.
15824         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
15825
15826 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15827
15828         stat: fix compilation on AIX
15829         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
15830         only see struct stat64.
15831
15832 2009-10-30  Eric Blake  <ebb9@byu.net>
15833
15834         exclude: make more robust
15835         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
15836         rather than masking a coding bug.
15837         Suggested by Bruno Haible.
15838
15839 2009-10-30  Jim Meyering  <meyering@redhat.com>
15840
15841         perl scripts: remove #!/usr/bin/perl in favor of more portable...
15842         Rather than putting #!/usr/bin/perl on the first line,
15843         start with a variant of what's recommended by "man perlrun" that
15844         invokes the first "perl" program from your shell's search path.
15845         * build-aux/gitlog-to-changelog: Replace #!... as above.
15846         Add a "Local Variables" perl mode setting.
15847         Prompted by a patch from Ludovic Courtès.
15848         Improved by Eric Blake.
15849         * build-aux/useless-if-before-free: Likewise.
15850         * build-aux/announce-gen: Likewise.
15851         * build-aux/update-copyright: Likewise.
15852
15853 2009-10-29  Eric Blake  <ebb9@byu.net>
15854
15855         filenamecat-lgpl: adjust clients
15856         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
15857         filenamecat.
15858         * modules/renameat (Depends-on): Likewise.
15859
15860         filenamecat: split into filenamecat-lgpl
15861         * modules/filenamecat-lgpl: New module.
15862         * modules/filenamecat (Files): Move library-safe files into
15863         filenamecat-lgpl.
15864         (Depends-on): Add filenamecat-lgpl.
15865         (configure.ac): Declare witness.
15866         * lib/filenamecat.h (file_name_concat): Only declare when using
15867         GPL module.
15868         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
15869         Move...
15870         * lib/filenamecat-lgpl.c: ...into new file.
15871         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
15872         (gl_FILE_NAME_CONCAT): Use it.
15873         * MODULES.html.sh (File system functions): Mention new module.
15874
15875         argp: avoid memory leak
15876         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
15877         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
15878         base_name, since the latter malloc()s and can call exit().
15879         Leak introduced 2006-07-03.
15880
15881         dirname-lgpl: adjust clients that don't need full dirname
15882         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
15883         * modules/filenamecat (Depends-on): Likewise.
15884         * modules/linkat (Depends-on): Likewise.
15885         * modules/mkancesdirs (Depends-on): Likewise.
15886         * modules/mkdir (Depends-on): Likewise.
15887         * modules/openat (Depends-on): Likewise.
15888         * modules/savewd (Depends-on): Likewise.
15889         * modules/rename (Depends-on): Likewise.
15890         (License): Relax license.
15891         * modules/mkdir-tests (Depends-on): Drop progname.
15892         (Makefile.am): Delete unneeded LDADD.
15893         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
15894
15895         dirname: split into dirname-lgpl
15896         * modules/dirname-lgpl: New module.
15897         * modules/dirname (Files): Move library-safe files into
15898         dirname-lgpl.
15899         (Depends-on): Add dirname-lgpl.
15900         (configure.ac): Declare witness.
15901         * modules/double-slash-root (License): Relax license.
15902         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
15903         module.
15904         * lib/dirname.c (dir_len, mdir_name): Move...
15905         * lib/dirname-lgpl.c: ...into new file.
15906         * lib/basename.c (last_component, base_len): Move...
15907         * lib/basename-lgpl.c: ...into new file.
15908         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
15909         (gl_DIRNAME): Use it.
15910         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
15911         Mention new module.
15912         * modules/dirname-tests (Depends-on): Add progname.
15913         * tests/test-dirname.c (program_name): Delete.
15914
15915         mkdir: make safe for libraries
15916         * modules/mkdir (Depends-on): Drop xalloc.
15917         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
15918         exit.
15919
15920         tests: avoid some compiler warnings
15921         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
15922         literals.
15923         * tests/test-memchr.c (main): Avoid type mismatch.
15924         * tests/test-arpa_inet.c (main): Avoid unused parameters.
15925         * tests/test-base64.c (main): Likewise.
15926         * tests/test-getdelim.c (main): Likewise.
15927         * tests/test-gethostname.c (main): Likewise.
15928         * tests/test-getline.c (main): Likewise.
15929         * tests/test-netinet_in.c (main): Likewise.
15930         * tests/test-select.c (open_server_socket, main): Likewise.
15931         * tests/test-select-stdin.c (main): Likewise.
15932         * tests/test-sockets.c (main): Likewise.
15933         * tests/test-strsignal.c (main): Likewise.
15934         * tests/test-sys_select.c (main): Likewise.
15935         * tests/test-sys_socket.c (main): Likewise.
15936         * tests/test-u64.c (main): Likewise.
15937         * tests/test-xfprintf-posix.c (main): Likewise.
15938         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
15939
15940         sockets: avoid compiler warning
15941         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
15942
15943         maint: detect usage(1) and other suspicious exits
15944         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
15945
15946 2009-10-29  Jim Meyering  <meyering@redhat.com>
15947
15948         timespec: long-to-int truncation could make timespec_cmp malfunction
15949         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
15950         a multiple of 2^32 nanoseconds as no difference.
15951
15952 2009-10-28  Jim Meyering  <meyering@redhat.com>
15953
15954         fprintftime: wrap macro code argument in "do {...} while(0)"
15955         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
15956         cpy macro must be a statement that can be followed by a semicolon.
15957         Now that the else clause contains a comment and is hence longer
15958         than one line, I require curly braces.  That in turn requires
15959         that we wrap this code block in the standard do...while(0).
15960
15961         fprintftime: remove stray semicolon from previous change
15962         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
15963
15964         fprintftime: avoid a warning about ignored fwrite return value
15965         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
15966         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
15967         that is unsafe.
15968         * modules/fprintftime (Depends-on): Add ignore-value.
15969
15970         exclude: avoid an unwarranted warning
15971         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
15972
15973 2009-10-27  Eric Blake  <ebb9@byu.net>
15974
15975         fseek: avoid compilation failure when fflush is replaced
15976         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
15977         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
15978         module is in use.
15979         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
15980         module is not in use; since REPLACE_FSEEK worked otherwise.
15981         (GNULIB_FTELLO): Likewise for ftell.
15982         Reported by Ian Beckwith and others.
15983
15984 2009-10-27  Bruno Haible  <bruno@clisp.org>
15985
15986         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
15987         Reported by Jim Meyering.
15988
15989 2009-10-27  Jim Meyering  <jim@meyering.net>
15990             Bruno Haible  <bruno@clisp.org>
15991
15992         Avoid warning despite dropping the return value of fwrite.
15993         * lib/unicodeio.c: Include ignore-value.h.
15994         (fwrite_success_callback): Explicitly ignore fwrite's return value.
15995         * modules/unicodeio (Depends-on): Add ignore-value.
15996
15997 2009-10-26  Eric Blake  <ebb9@byu.net>
15998
15999         areadlinkat: fix fallback path
16000         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
16001         pointer and zero.
16002
16003 2009-10-22  Pádraig Brady  <P@draigBrady.com>
16004
16005         Use a better IO block size for modern systems
16006         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
16007         * lib/md2.c: Likewise.
16008         * lib/md4.c: Likewise.
16009         * lib/md5.c: Likewise.
16010         * lib/sha1.c: Likewise.
16011         * lib/sha256.c: Likewise.
16012         * lib/sha512.c: Likewise.
16013
16014 2009-10-22  Eric Blake  <ebb9@byu.net>
16015
16016         tests: avoid several compiler warnings
16017         * tests/test-getcwd.c (main): Avoid buffer underflow.
16018         * tests/test-getdate.c (main): String literals are not safe with
16019         putenv, so use setenv.  Declare unused argument.
16020         * modules/getdate-tests (Depends-on): Add setenv.
16021         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
16022         problems with string literals in char *.
16023         * tests/test-hash.c (main): Avoid shadowing declaration.
16024         (insert_new): Treat string literals as char const *.
16025         * tests/test-getopt.h (test_getopt): Likewise.
16026         (getopt_loop): Alter types to minimize casting elsewhere.
16027         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
16028         (test_getopt_long_posix): Likewise.
16029         (do_getopt_long): Add wrapper to minimize casting.
16030         * tests/test-atexit.c (clear_temp_file): Use void.
16031         * tests/test-areadlink-with-size.c (main): Declare unused
16032         arguments.
16033         * tests/test-areadlink.c (main): Likewise.
16034         * tests/test-areadlinkat-with-size.c (main): Likewise.
16035         * tests/test-areadlinkat.c (main): Likewise.
16036         * tests/test-canonicalize-lgpl.c (main): Likewise.
16037         * tests/test-canonicalize.c (main): Likewise.
16038         * tests/test-dirent-safer.c (main): Likewise.
16039         * tests/test-dirname.c (main): Likewise.
16040         * tests/test-dup2.c (main): Likewise.
16041         * tests/test-fchdir.c (main): Likewise.
16042         * tests/test-fcntl-h.c (main): Likewise.
16043         * tests/test-fcntl-safer.c (main): Likewise.
16044         * tests/test-fdopendir.c (main): Likewise.
16045         * tests/test-fdutimensat.c (main): Likewise.
16046         * tests/test-fflush.c (main): Likewise.
16047         * tests/test-filenamecat.c (main): Likewise.
16048         * tests/test-filevercmp.c (main): Likewise.
16049         * tests/test-fopen-safer.c (main): Likewise.
16050         * tests/test-fopen.c (main): Likewise.
16051         * tests/test-fpending.c (main): Likewise.
16052         * tests/test-fpurge.c (main): Likewise.
16053         * tests/test-freading.c (main): Likewise.
16054         * tests/test-fstatat.c (main): Likewise.
16055         * tests/test-fsync.c (main): Likewise.
16056         * tests/test-futimens.c (main): Likewise.
16057         * tests/test-getndelim2.c (main): Likewise.
16058         * tests/test-gettimeofday.c (main): Likewise.
16059         * tests/test-getopt.c (main): Likewise.
16060         * tests/test-i-ring.c (main): Likewise.
16061         * tests/test-inttypes.c (main): Likewise.
16062         * tests/test-link.c (main): Likewise.
16063         * tests/test-lstat.c (main): Likewise.
16064         * tests/test-math.c (main): Likewise.
16065         * tests/test-md5.c (main): Likewise.
16066         * tests/test-memchr2.c (main): Likewise.
16067         * tests/test-memrchr.c (main): Likewise.
16068         * tests/test-mkdir.c (main): Likewise.
16069         * tests/test-mkdirat.c (main): Likewise.
16070         * tests/test-mkfifoat.c (main): Likewise.
16071         * tests/test-open.c (main): Likewise.
16072         * tests/test-openat-safer.c (main): Likewise.
16073         * tests/test-openat.c (main): Likewise.
16074         * tests/test-quotearg.c (main): Likewise.
16075         * tests/test-rawmemchr.c (main): Likewise.
16076         * tests/test-readlink.c (main): Likewise.
16077         * tests/test-remove.c (main): Likewise.
16078         * tests/test-rename.c (main): Likewise.
16079         * tests/test-renameat.c (main): Likewise.
16080         * tests/test-rmdir.c (main): Likewise.
16081         * tests/test-sha1.c (main): Likewise.
16082         * tests/test-signal.c (main): Likewise.
16083         * tests/test-sigaction.c (main): Likewise.
16084         * tests/test-stat.c (main): Likewise.
16085         * tests/test-stat-time.c (main): Likewise.
16086         * tests/test-stddef.c (main): Likewise.
16087         * tests/test-stdint.c (main): Likewise.
16088         * tests/test-stdio.c (main): Likewise.
16089         * tests/test-stdlib.c (main): Likewise.
16090         * tests/test-strchrnul.c (main): Likewise.
16091         * tests/test-strerror.c (main): Likewise.
16092         * tests/test-string.c (main): Likewise.
16093         * tests/test-strtod.c (main): Likewise.
16094         * tests/test-strverscmp.c (main): Likewise.
16095         * tests/test-symlink.c (main): Likewise.
16096         * tests/test-symlinkat.c (main): Likewise.
16097         * tests/test-sys_stat.c (main): Likewise.
16098         * tests/test-sys_time.c (main): Likewise.
16099         * tests/test-time.c (main): Likewise.
16100         * tests/test-unistd.c (main): Likewise.
16101         * tests/test-unlink.c (main): Likewise.
16102         * tests/test-unlinkat.c (main): Likewise.
16103         * tests/test-utimens.c (main): Likewise.
16104         * tests/test-utimensat.c (main): Likewise.
16105         * tests/test-version-etc.c (main): Likewise.
16106         * tests/test-wchar.c (main): Likewise.
16107         * tests/test-wctype.c (main): Likewise.
16108         * tests/test-xprintf-posix.c (main): Likewise.
16109         * tests/test-posixtm.c (main): Likewise.
16110         (STREQ): Delete unused macro.
16111         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
16112         shadowed variables.
16113         * tests/test-memchr.c (main): Likewise.
16114
16115 2009-10-21  Eric Blake  <ebb9@byu.net>
16116
16117         areadlinkat: avoid failure on older glibc
16118         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
16119         rather than mis-comparing 0 against FUNC_RESULT of char*.
16120
16121 2009-10-21  Bruno Haible  <bruno@clisp.org>
16122
16123         * modules/stpncpy (License): Relicense under LGPLv2+.
16124         Reported by David Lutterkort <lutter@redhat.com>.
16125
16126 2009-10-20  Eric Blake  <ebb9@byu.net>
16127
16128         utimensat: work around Solaris 9 bug
16129         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
16130         has trailing slash bugs.
16131         * tests/test-lutimens.h (test_lutimens): Enhance test.
16132         * tests/test-utimens.h (test_utimens): Likewise.
16133         * doc/posix-functions/utime.texi (utime): Enhance documentation.
16134         * doc/posix-functions/utimes.texi (utimes): Likewise.
16135         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16136         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
16137         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
16138         * doc/posix-functions/futimens.texi (futimens): Likewise.
16139
16140         fdutimensat: new module
16141         * modules/fdutimensat: New file.
16142         * lib/fdutimensat.c (fdutimensat): Likewise.
16143         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
16144         * MODULES.html.sh (File system functions): Mention module.
16145         * modules/fdutimensat-tests: New test.
16146         * tests/test-fdutimensat.c: Likewise.
16147
16148         doc: regenerate INSTALL
16149         * doc/INSTALL: Reflect recent autoconf update.
16150         * doc/INSTALL.ISO: Likewise.
16151         * doc/INSTALL.UTF-8: Likewise.
16152
16153 2009-10-20  Pádraig Brady  <P@draigBrady.com>
16154
16155         acl: warn if ACL support is not detected
16156         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
16157
16158 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
16159
16160         * lib/nproc.h: Add extern "C" block for C++.
16161
16162 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
16163             Bruno Haible  <bruno@clisp.org>
16164
16165         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
16166         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
16167         * doc/posix-functions/isalpha.texi: Likewise.
16168         * doc/posix-functions/isblank.texi: Likewise.
16169         * doc/posix-functions/iscntrl.texi: Likewise.
16170         * doc/posix-functions/isdigit.texi: Likewise.
16171         * doc/posix-functions/isgraph.texi: Likewise.
16172         * doc/posix-functions/islower.texi: Likewise.
16173         * doc/posix-functions/isprint.texi: Likewise.
16174         * doc/posix-functions/ispunct.texi: Likewise.
16175         * doc/posix-functions/isspace.texi: Likewise.
16176         * doc/posix-functions/isupper.texi: Likewise.
16177         * doc/posix-functions/isxdigit.texi: Likewise.
16178
16179 2009-10-18  Bruno Haible  <bruno@clisp.org>
16180
16181         Tests for module 'isblank'.
16182         * modules/isblank-tests: New file.
16183         * tests/test-isblank.c: New file.
16184
16185         New module 'isblank'.
16186         * lib/isblank.c: New file.
16187         * m4/isblank.m4: New file.
16188         * modules/isblank: New file.
16189         * doc/posix-functions/isblank.texi: Mention the new module.
16190
16191 2009-10-18  Bruno Haible  <bruno@clisp.org>
16192
16193         New module 'ctype'.
16194         * lib/ctype.in.h: New file.
16195         * m4/ctype.m4: New file.
16196         * modules/ctype: New file.
16197         * doc/posix-headers/ctype.texi: Mention the new module.
16198
16199 2009-10-18  Jim Meyering  <meyering@redhat.com>
16200
16201         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
16202         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
16203         right after its initialization, rather than farther down.
16204         Keeping these in close proximity makes it easier to ensure
16205         that each such variable is initialized.  E.g.,
16206
16207             LIB_CLOCK_GETTIME=
16208             AC_SUBST([LIB_CLOCK_GETTIME])
16209
16210         This change also increments these serial numbers.
16211         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
16212         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16213         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16214
16215 2009-10-18  Bruno Haible  <bruno@clisp.org>
16216
16217         Don't let environment variables perturb build.
16218         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
16219         (gl_PREREQ_GETHRXTIME): ... not here.
16220
16221 2009-10-18  Bruno Haible  <bruno@clisp.org>
16222
16223         Avoid symlink attack in localcharset module.
16224         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
16225         (O_NOFOLLOW): Define fallback.
16226         (get_charset_aliases): Don't open the file if it is a symbolic link.
16227         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
16228         gl_FCNTL_H.
16229         (gl_FCNTL_H): Require it.
16230         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
16231         * modules/localcharset (Files): Add m4/fcntl_h.m4.
16232         Reported by Fergal Glynn <fglynn@veracode.com>.
16233
16234 2009-10-18  Bruno Haible  <bruno@clisp.org>
16235
16236         Implement nproc for mingw.
16237         * lib/nproc.c: Include <windows.h>
16238         (num_processors): On native Windows platforms, try GetSystemInfo.
16239
16240 2009-10-18  Bruno Haible  <bruno@clisp.org>
16241
16242         Implement nproc for IRIX.
16243         * lib/nproc.c: Include <sys/sysmp.h>.
16244         (num_processors): On IRIX systems, try sysmp.
16245         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
16246
16247 2009-10-18  Bruno Haible  <bruno@clisp.org>
16248
16249         Implement nproc for HP-UX.
16250         * lib/nproc.c: Include <sys/pstat.h>
16251         (num_processors): On HP-UX systems, try pstat_getdynamic.
16252         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
16253         pstat_getdynamic.
16254
16255 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
16256             Bruno Haible  <bruno@clisp.org>
16257
16258         Implement nproc for NetBSD, OpenBSD.
16259         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
16260         (ARRAY_SIZE): New macro.
16261         (num_processors): On BSD systems, try sysctl of HW_NCPU.
16262         * m4/nproc.m4: New file.
16263         * modules/nproc (Files): Add m4/nproc.m4.
16264         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
16265         (Makefile.am): Instead, augment lib_SOURCES.
16266
16267 2009-10-18  Bruno Haible  <bruno@clisp.org>
16268
16269         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
16270         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
16271         sys/param.h.
16272
16273 2009-10-16  Eric Blake  <ebb9@byu.net>
16274
16275         utimensat: new module
16276         * modules/utimensat: New file.
16277         * lib/utimensat.c (utimensat): Likewise.
16278         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16279         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
16280         so we can work around Linux bugs.
16281         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16282         * modules/sys_stat (Makefile.am): Substitute them.
16283         * lib/sys_stat.in.h (utimensat): Declare it.
16284         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16285         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16286         * modules/utimensat-tests: New test.
16287         * tests/test-utimensat.c: Likewise.
16288
16289         utimens: let lutimens work on non-symlinks
16290         * lib/utimens.c (lutimens): Fall back to utimens rather than
16291         failing with ENOSYS, when file is not a symlink.
16292         (utimens): Reduce redirection.
16293         * tests/test-lutimens.h (test_lutimens): Update test to cover
16294         non-symlinks.
16295         * tests/test-utimens.h (test_utimens): Update test to cover
16296         symlinks.
16297         * tests/test-utimens.c (main): Update caller.
16298
16299         utimens: cache whether utimensat syscall works
16300         * lib/utimens.c (utimensat_works_really): New cache variable.
16301         (fdutimens, lutimens): Use it to avoid failing syscall.
16302
16303         test-stat-time, test-utimens: improve portability
16304         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
16305         ext4 on alpha, and for cygwin.
16306         * tests/test-utimens-common.h: New file.
16307         (nap): Factor delays into single function.
16308         * tests/test-lutimens.h (test_lutimens): Use new header.
16309         * tests/test-futimens.h (test_futimens): Likewise.
16310         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
16311         timestamps to occur from same machine, as was done previously for
16312         test_utimens.
16313         * modules/utimens-tests (Files): Ship new file.
16314         * modules/futimens-tests (Files): Likewise.
16315         Reported in part by Jim Meyering.
16316
16317         sys_stat: sort replacement declarations
16318         * lib/sys_stat.in.h: Sort declarations.
16319         * lib/futimens.c (futimens): Fix typo.
16320
16321 2009-10-15  Jim Meyering  <meyering@redhat.com>
16322
16323         don't let environment settings perturb build
16324         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
16325         could cause a configure-time and/or build-time malfunction.
16326         Typically, a configure-time function-in-library test is performed
16327         via code like this:
16328
16329           LIB_VAR=
16330           AC_SUBST([LIB_VAR])
16331           prefix_saved_LIBS=$LIBS
16332             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
16333                        [test "$ac_cv_search_FUNC" = "none required" ||
16334                         LIB_VAR=$ac_cv_search_FUNC])
16335           LIBS=$prefix_saved_LIBS
16336
16337         However, in each of the files affected by this change, the LIB_VAR=
16338         initialization was omitted.  Thus, when set in the environment, its
16339         value would propagate into generated Makefiles when FUNC is not found
16340         in LIB_NAME.
16341         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
16342         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16344
16345 2009-10-14  Eric Blake  <ebb9@byu.net>
16346
16347         fchdir: avoid infinite recursion in mingw
16348         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
16349         recursing.
16350
16351         test-stat-time: port to mingw
16352         * tests/test-stat-time.c (force_unlink): Return a value.
16353         (test_ctime) [W32]: Fix compilation error.
16354         (nap): Don't call usleep with too large an argument.  Use
16355         force_unlink.
16356         * doc/pastposix-functions/usleep.texi (usleep): Document the
16357         portability issue.
16358
16359 2009-10-13  Jim Meyering  <meyering@redhat.com>
16360
16361         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
16362         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
16363         * modules/pipe-filter-ii: Likewise.
16364         * modules/sys_socket-tests: Likewise.
16365         * modules/tsearch-tests: Likewise.
16366         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
16367         (check): Depend on it.
16368
16369 2009-10-12  Eric Blake  <ebb9@byu.net>
16370
16371         utimens-tests: port to NFS file systems
16372         * tests/test-utimens.h (test_utimens): Refactor utimecmp
16373         comparisons to avoid spurious failures from timestamp drift
16374         between NFS machines.
16375
16376 2009-10-12  Eric Blake  <ebb9@byu.net>
16377
16378         stat-time-tests: minor cleanups
16379         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
16380         * tests/test-stat-time.c (nap): Separate assignment from call.
16381         Suggested by Paolo Bonzini and Bruno Haible.
16382
16383         sys_stat: guarantee struct timespec
16384         * lib/sys_stat.in.h (includes): Always include <time.h>
16385         * modules/sys_stat (Depends-on): Add time.
16386         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
16387         mode_t permission values.
16388         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
16389         get at subsecond timestamps.
16390
16391 2009-10-10  Eric Blake  <ebb9@byu.net>
16392
16393         futimens: new module
16394         * modules/futimens: New file.
16395         * lib/futimens.c (futimens): Likewise.
16396         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
16397         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
16398         we can work around Linux bugs.
16399         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16400         * modules/sys_stat (Makefile.am): Substitute them.
16401         * lib/sys_stat.in.h (futimens): Declare it.
16402         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16403         * doc/posix-functions/futimens.texi (futimens): Likewise.
16404         * modules/futimens-tests: New test.
16405         * tests/test-futimens.c: Likewise.
16406
16407         utimens: introduce fdutimens
16408         * lib/utimens.h (fdutimens): New prototype.
16409         * lib/utimens.c (gl_futimens): Move guts...
16410         (fdutimens): ...to new interface.
16411         * tests/test-utimens.c (do_fdutimens): Use it.
16412
16413         utimens: add UTIME_NOW and UTIME_OMIT support
16414         * lib/utimens.c (validate_timespec, update_timespec): New helper
16415         functions.
16416         (gl_futimens, lutimens): Use them.
16417         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
16418         stdbool, sys_stat.
16419         (Link): Mention resulting library dependency.
16420         * modules/utimecmp (Link): Likewise.
16421         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
16422         (Makefile.am): Pick up library dependency.
16423         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
16424         definition.
16425         * tests/test-sys_stat.c: Test the definitions.
16426         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
16427         * NEWS: Document library dependency.
16428
16429         utimecmp: support symlink timestamps
16430         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
16431         hashing when possible.  Use pathconf when available.
16432         (SYSCALL_RESOLUTION): Recognize tighter resolution.
16433         * modules/utimecmp (Depends-on): Add lstat.
16434
16435         utimens: add lutimens interface
16436         * lib/utimens.c (lutimens): New function.
16437         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
16438         * lib/utimens.h (lutimens): Declare new interface.
16439         * tests/test-utimens.c (main): Enhance test.
16440         * tests/test-lutimens.h (test_lutimens): New file.
16441         * modules/utimens-tests (Files): Distribute it.
16442         (Depends-on): Add symlink.
16443         (configure.ac): Check for usleep.
16444
16445         utimens: validate futimens usage
16446         * lib/utimens.c (gl_futimens): Require valid fd up front, using
16447         fewer syscalls on failure later on.  Avoid compiler warning on
16448         mingw.
16449         * modules/utimens (Depends-on): Add dup2.
16450
16451         utimens: add test
16452         * modules/utimens-tests: New test.
16453         * tests/test-utimens.h: New file.
16454         * tests/test-futimens.h: Likewise.
16455         * tests/test-utimens.c: Likewise.
16456
16457         doc: mention timestamp portability issues
16458         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
16459         instead.
16460         * doc/posix-functions/utime.texi (utime): Likewise.
16461         * doc/posix-functions/utimes.texi (utimes): Likewise.
16462         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
16463         instead.
16464         * doc/posix-functions/futimens.texi (futimens): Mention utimens
16465         module.
16466         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16467         Mention weakness with symlink timestamps.
16468         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
16469         to utimensat/futimens instead.
16470         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
16471
16472         test-dup2: enhance test
16473         * tests/test-dup2.c (main): Also check AT_FDCWD.
16474
16475         test-stat-time: avoid more spurious failures
16476         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
16477         xfs; and avoid race if the two timestamps cross quantization edge.
16478
16479         relocatable: prefer 'file system' over 'filesystem'
16480         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
16481         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
16482         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
16483         * doc/relocatable.texi (Enabling Relocatability): Likewise.
16484         * lib/relocatable.c (compute_curr_prefix): Likewise.
16485
16486 2009-10-10  Jim Meyering  <meyering@redhat.com>
16487
16488         stat-time-tests: check for the usleep function
16489         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
16490
16491 2009-10-10  Bruno Haible  <bruno@clisp.org>
16492
16493         * modules/xnanosleep: Put the Link section after the Include section.
16494
16495 2009-10-09  Eric Blake  <ebb9@byu.net>
16496
16497         dup2: work around FreeBSD 6.1 bug
16498         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
16499         * doc/posix-functions/dup2.texi (dup2): Document it.
16500         Reported by Nelson H. F. Beebe and Jim Meyering.
16501
16502         test-stat-time: port to buggy NFS clients
16503         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
16504         (test_ctime): Also skip test if mtime and ctime are skewed.
16505
16506         maint: prefer 'file system' over 'filesystem'
16507         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16508         * doc/posix-functions/lstat.texi (lstat): Likewise.
16509         * lib/file-has-acl.c (file_has_acl): Likewise.
16510         * lib/fwriteerror.c [TEST]: Likewise.
16511         * tests/test-areadlink.h (test_areadlink): Likewise.
16512         * tests/test-areadlinkat-with-size.c (main): Likewise.
16513         * tests/test-areadlinkat.c (main): Likewise.
16514         * tests/test-canonicalize-lgpl.c (main): Likewise.
16515         * tests/test-canonicalize.c (main): Likewise.
16516         * tests/test-fstatat.c (main): Likewise.
16517         * tests/test-linkat.c (main): Likewise.
16518         * tests/test-lstat.h (test_lstat_func): Likewise.
16519         * tests/test-mkdir.h (test_mkdir): Likewise.
16520         * tests/test-readlink.h (test_readlink): Likewise.
16521         * tests/test-remove.c (main): Likewise.
16522         * tests/test-rename.h (test_rename): Likewise.
16523         * tests/test-renameat.c (main): Likewise.
16524         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16525         * tests/test-symlink.h (test_symlink): Likewise.
16526         * tests/test-symlinkat.c (main): Likewise.
16527         * tests/test-unlink.h (test_unlink_func): Likewise.
16528         * tests/test-unlinkat.c (main): Likewise.
16529
16530         maint: make realtime library usage explicit
16531         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
16532         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
16533         * modules/settime (Link): Likewise.
16534         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
16535
16536         test-stat-time: speed up execution
16537         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
16538         warning on mingw.
16539         (nap): New helper function.
16540         (prepare_test): Use it to reduce sleep time.
16541         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
16542         execution.
16543         * modules/stat-time-tests (configure.ac): Check for usleep.
16544
16545 2009-10-09  Jim Meyering  <meyering@redhat.com>
16546
16547         selinux-h: always use getfilecon wrappers
16548         * lib/getfilecon.c: New file.
16549         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
16550         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
16551         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
16552         (fgetfilecon): Provide a stub.
16553         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
16554         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
16555         file unconditionally.
16556         When <selinux/selinux.h> is found, arrange to use wrappers.
16557         * modules/selinux-h (Files): Add getfilecon.c.
16558         (Makefile.am): Substitute include-next-related bits
16559         into the now-always-generated selinux/selinux.h file.
16560         * doc/glibc-functions/lgetfilecon.texi: New file.
16561         * doc/glibc-functions/fgetfilecon.texi: New file.
16562         * doc/glibc-functions/getfilecon.texi: New file.
16563         * doc/glibc-functions/getfilecon-desc.texi: New file.
16564         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
16565         which to pull in the new files.
16566         * MODULES.html.sh (Misc): Add selinux-h.
16567
16568 2009-10-08  Jim Meyering  <meyering@redhat.com>
16569
16570         unistd: fix comment typo
16571         * lib/unistd.in.h (euidaccess): Fix a comment typo.
16572
16573 2009-10-08  Eric Blake  <ebb9@byu.net>
16574
16575         areadlink: use SIZE_MAX consistently
16576         * modules/areadlink (Depends-on): Add stdint.
16577         * modules/areadlink-with-size (Depends-on): Likewise.
16578         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
16579         gives NULL; drop sys/types, since unistd gives size_t; and add
16580         stdint for SIZE_MAX.
16581         (SIZE_MAX): Rely on headers.
16582         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
16583         and add stdint.
16584         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
16585         (SIZE_MAX): Likewise.
16586         (INITIAL_BUF_SIZE): Turn into enum.
16587         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
16588
16589 2009-10-08  Jim Meyering  <meyering@redhat.com>
16590
16591         areadlinkat: avoid compilation failure
16592         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
16593         Fix typo in comment.
16594
16595 2009-10-07  Eric Blake  <ebb9@byu.net>
16596
16597         areadlinkat-with-size: new module
16598         * modules/areadlinkat-with-size: New module.
16599         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
16600         * lib/areadlink.h (areadlinkat): Declare it.
16601         * MODULES.html.sh (File system functions): Mention it.
16602         * modules/areadlinkat-with-size-tests: New test.
16603         * tests/test-areadlinkat-with-size.c: New file.
16604
16605         xreadlinkat: new module
16606         * modules/xreadlinkat: New module.
16607         * lib/xreadlinkat.c (xreadlinkat): New file.
16608         * lib/xreadlink.h (xreadlinkat): Declare it.
16609         * MODULES.html.sh (File system functions): Mention it.
16610
16611         areadlinkat: new module
16612         * lib/at-func.c (FUNC_FAIL): New define.
16613         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
16614         * modules/areadlinkat: New module.
16615         * lib/linkat.c (areadlinkat): Move...
16616         * lib/areadlinkat.c (areadlinkat): ...to new file.
16617         * lib/areadlink.h (areadlinkat): Declare it.
16618         * modules/linkat (Depends-on): Add areadlinkat.
16619         * MODULES.html.sh (File system functions): Mention it.
16620         * modules/areadlinkat-tests: New test.
16621         * tests/test-areadlinkat.c: New file.
16622
16623         areadlink, areadlink-with-size: add tests
16624         * modules/areadlink-tests: New test.
16625         * modules/areadlink-with-size-tests: Likewise.
16626         * tests/test-areadlink.h: New file.
16627         * tests/test-areadlink.c: Likewise.
16628         * tests/test-areadlink-with-size.c: Likewise.
16629
16630         maint: minor cleanups
16631         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
16632         _UNUSED_PARAMETER_ instead.
16633         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
16634         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
16635         * modules/linkat-tests (Files): Distribute test-link.h.
16636
16637         openat, utimens: whitespace cleanup
16638         * lib/openat.c: Prefer space throughout, rather than mix of 8
16639         spaces vs. tabs.
16640         * lib/at-func.c: Likewise.
16641         * lib/utimens.c: Likewise.
16642
16643         openat: avoid using wrong fd
16644         * lib/openat.c (openat_permissive): Reject user's fd if saving the
16645         working directory chooses same fd.
16646         * lib/at-func.c (AT_FUNC_NAME): Likewise.
16647
16648         mkdir, mkdirat: fix cygwin 1.5.x bug
16649         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
16650         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
16651         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
16652         bug.
16653         (gl_PREREQ_MKDIR): Delete unused macro.
16654         * modules/mkdir (Files): Track file rename.
16655         (configure.ac): Update macro name.
16656         * modules/openat (Depends-on): Add mkdir.
16657         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
16658
16659         mkdir, mkdirat: add tests
16660         * modules/mkdir-tests: New test.
16661         * tests/test-mkdir.h: New file.
16662         * tests/test-mkdir.c: Likewise.
16663         * tests/test-mkdirat.c: Likewise.
16664         * modules/openat-tests (Files): Add new files.
16665         (Makefile.am): Run new test.
16666
16667 2009-10-06  Eric Blake  <ebb9@byu.net>
16668
16669         doc: tweak *at function documentation
16670         * doc/posix-functions/faccessat.texi (faccessat): Mention
16671         known issue with replacement.
16672         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
16673         * doc/posix-functions/linkat.texi (linkat): Likewise.
16674         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
16675         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
16676         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16677         * doc/posix-functions/renameat.texi (renameat): Likewise.
16678         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16679
16680         openat: fix GNU/Hurd bug in unlinkat
16681         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
16682         broken.
16683         * doc/posix-functions/unlink.texi (unlink): Document this.
16684         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
16685
16686         fdopendir: fix GNU/Hurd bug
16687         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
16688         allowing non-directory fds.
16689         * lib/fdopendir.c (rpl_fdopendir): Work around it.
16690         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16691         * modules/dirent (Makefile.am): Substitute it.
16692         * lib/dirent.in.h (fdopendir): Declare replacement.
16693         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
16694         * tests/test-fdopendir.c (main): Test something other than
16695         /dev/null, since on Hurd that behaves like a directory.
16696
16697         test-symlink: port to GNU/Hurd
16698         * tests/test-symlink.h (test_symlink): Relax expected errno.
16699
16700         doc: tweak more cygwin information
16701         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
16702         now compatible with glibc.
16703         * doc/posix-functions/getopt.texi (getopt): Likewise.
16704
16705         getopt-gnu: add another test
16706         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
16707         guarantee behavior relied on by m4.
16708         * tests/test-getopt.c (main): Use it.
16709         * modules/getopt-posix-tests (Depends-on): Add setenv.
16710         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
16711
16712         getopt: fix compilation on darwin
16713         * lib/getopt.in.h (includes): Leave breadcrumbs during system
16714         include.
16715         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
16716         Reported by Ludovic Courtès.
16717
16718 2009-10-06  Bruno Haible  <bruno@clisp.org>
16719
16720         * modules/size_max (Description): Discourage its use.
16721         Reported by Simon Josefsson.
16722
16723 2009-10-06  Jim Meyering  <meyering@redhat.com>
16724
16725         linkat: avoid compilation failure
16726         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
16727
16728 2009-10-05  Eric Blake  <ebb9@byu.net>
16729
16730         linkat: support Linux 2.6.17
16731         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
16732         linkat on Linux, but allow cache variable override.
16733         * lib/linkat.c (rpl_linkat): Define override.
16734         * modules/linkat (Depends-on): Add symlinkat.
16735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
16736         * modules/unistd (Makefile.am): Substitute it.
16737         * lib/unistd.in.h (linkat): Declare replacement.
16738         Reported by Pádraig Brady.
16739
16740         quotearg: port test to systems with C.UTF-8 locale
16741         * tests/test-quotearg.c (struct result_strings): Add another
16742         member, differentiating between C.ASCII and C.UTF-8 handling.
16743         (compare_strings): Add parameter.
16744         (main): Adjust all callers.
16745
16746         getopt: avoid clash with FreeBSD _getopt_internal
16747         * lib/getopt.in.h (_getopt_internal): Override the name.
16748         * lib/getopt_int.h (includes): Pick up any overrides.
16749         Reported by Reuben Thomas.
16750
16751         hash: allow C89 compilation
16752         * lib/hash.c (check_tuning): Move declaration before statement.
16753         Reported by Reuben Thomas.
16754
16755 2009-10-05  Karl Berry  <karl@gnu.org>
16756
16757         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
16758
16759 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
16760             Bruno Haible  <bruno@clisp.org>
16761
16762         * lib/uname.c (uname): Use a table-driven algorithm to compute
16763         Windows NT versions.
16764
16765 2009-10-04  Bruno Haible  <bruno@clisp.org>
16766
16767         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
16768         program_invocation_short_name.
16769         * modules/progname (configure.ac): Test for presence of
16770         program_invocation_short_name.
16771         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16772
16773 2009-10-04  Bruno Haible  <bruno@clisp.org>
16774
16775         * lib/progname.c (set_program_name): Fix comment.
16776         Reported by Jim Meyering.
16777
16778 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16779             Bruno Haible  <bruno@clisp.org>
16780
16781         * lib/uname.c: Include <string.h>.
16782         (uname): Do only one call to GetVersionEx in the common case.
16783
16784 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16785             Bruno Haible  <bruno@clisp.org>
16786
16787         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
16788         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
16789         (uname): Add support for Windows CE and various non-x86 CPU types.
16790
16791 2009-10-03  Bruno Haible  <bruno@clisp.org>
16792
16793         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
16794         invocation to tests/configure.ac.
16795         Reported by Ian Beckwith <ianb@erislabs.net>.
16796
16797 2009-10-02  Eric Blake  <ebb9@byu.net>
16798
16799         fchdir: avoid compiler warning
16800         * lib/fchdir.c (canonicalize_file_name)
16801         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
16802
16803         test-open: support mingw errno values
16804         * tests/test-open.h (test_open): Relax test.
16805         * tests/test-fopen.h (test_fopen): Likewise.
16806         * tests/test-openat-safer.c (main): Likewise.
16807
16808         open: fix opening directory on mingw
16809         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
16810
16811         test-open: on GNU/Hurd, /dev/null is a directory
16812         * tests/test-fopen.h (main): Rename...
16813         (test_fopen): ...to this.  Use a guaranteed non-directory when
16814         confirming open behavior on trailing slash.
16815         * tests/test-openat-safer.c (main): Likewise.
16816         * tests/test-open.h (main): Likewise....
16817         (test_open): ...to this.
16818         * tests/test-fopen.c (main): Adjust caller.
16819         * tests/test-fopen-safer.c (main): Likewise.
16820         * tests/test-open.c (main): Likewise.
16821         * tests/test-fcntl-safer.c (main): Likewise.
16822         Reported by Samuel Thibault.
16823
16824         rename, fchdir: don't ignore chdir failure
16825         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
16826         * lib/rename.c (rpl_rename) [W32]: Likewise.
16827         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
16828         an empty destination directory if source cannot be renamed,
16829         although there is still possibility for failure.
16830         * doc/posix-functions/rename.texi (rename): Document the race.
16831         Reported by Jim Meyering.
16832
16833         maint: cleanup whitespace in recent commits
16834         * lib/rename.c (rpl_rename): Remove tabs.
16835         * tests/test-link.h (test_link): Likewise.
16836         * lib/fchdir.c (get_name): Likewise.
16837         Reported by Jim Meyering.
16838
16839 2009-10-02  Ben Pfaff  <blp@gnu.org>
16840
16841         relocatable-prog-wrapper: Add missing dependency on
16842         double-slash-root.
16843         * modules/relocatable-prog-wrapper: Add dependency.
16844         Reported by Ian Beckwith <ianb@erislabs.net>.
16845
16846 2009-10-02  Eric Blake  <ebb9@byu.net>
16847
16848         renameat: fix Solaris bugs
16849         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
16850         needed fixing.
16851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
16852         * modules/stdio (Makefile.am): Substitute it.
16853         * lib/stdio.in.h (renameat): Declare replacement.
16854         * lib/renameat.c (rpl_renameat): Implement fix.
16855
16856         renameat: new module
16857         * modules/renameat: New file.
16858         * lib/renameat.c (renameat): Likewise.
16859         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
16860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16861         * modules/stdio (Makefile.am): Substitute them.
16862         * lib/stdio.in.h (renameat): Declare it.
16863         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16864         * doc/posix-functions/renameat.texi (renameat): Likewise.
16865         * modules/renameat-tests: New test.
16866         * tests/test-renameat.c: Likewise.
16867
16868         rename: fix mingw bugs
16869         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
16870         directory overwrite bugs.
16871
16872         rename: fix another cygwin 1.5 bug
16873         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
16874         checks.
16875         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
16876         unnecessary cygwin workarounds.  Also work around bug with moving
16877         full directory onto an empty one.
16878         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
16879
16880         rename-dest-slash: merge into rename module
16881         * modules/rename-dest-slash (Status): Mark obsolete.
16882         (Depends-on): Add rename.
16883         (Files): Let rename do it all.
16884         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
16885         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
16886         * m4/rename-dest-slash.m4: ...so this file can be deleted.
16887         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
16888         * lib/rename.c (rpl_rename): Update comments.
16889
16890         rename: fix cygwin 1.5.x bugs
16891         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
16892         * lib/rename.c (rpl_rename): Work around them.
16893         * modules/rename (Depends-on): Add same-inode.
16894
16895         rename: fix Solaris 10 bug
16896         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16897         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
16898         was the only bug.
16899
16900         rename: fix Solaris 9 bug
16901         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
16902         on non-directory.  Avoid calling exit.
16903         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
16904         strdup.
16905         * modules/rename-tests (Depends-on): Drop lstat.
16906         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16907         (gl_PREREQ_RENAME): Delete unused macro.
16908
16909         rename-dest-slash: fix NetBSD bug
16910         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
16911         links.
16912         * modules/rename-dest-slash (Depends-on): Add same-inode.
16913
16914         rename-tests: new test, exposes several platform bugs
16915         * modules/rename-tests: New file.
16916         * tests/test-rename.h: Likewise.
16917         * tests/test-rename.c: Likewise.
16918         * doc/posix-functions/rename.texi (rename): Improve documentation,
16919         including bugs that will eventually be fixed in gnulib.
16920
16921 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
16922
16923         * lib/uname.c: Include <stdlib.h>
16924         (uname): Assume version info is available.
16925
16926 2009-10-02  Jim Meyering  <meyering@redhat.com>
16927
16928         gnu-web-doc-update: correct --help output
16929         * build-aux/gnu-web-doc-update: Make --help output relevant.
16930
16931         gnu-web-doc-update: add standard options
16932         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
16933
16934         gnu-web-doc-update: New module.
16935         Use this script to automatically update the on-line web documentation
16936         for your GNU project at http://www.gnu.org/software/$pkg/manual/
16937         * modules/gnu-web-doc-update: New file, from coreutils.
16938         * build-aux/gnu-web-doc-update: New script.
16939
16940 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
16941
16942         link: LoadLibrary is not needed.
16943         * lib/link.c: Use GetModuleHandle.
16944
16945 2009-10-01  Eric Blake  <ebb9@byu.net>
16946
16947         getopt: bump serial number
16948         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
16949         change.
16950
16951         tests: tighten link, rmdir, and remove tests
16952         * tests/test-link.h (includes): No need to use <config.h> here.
16953         Clean up if directory hard link was created, otherwise test for
16954         trailing '.'.
16955         * tests/test-linkat.c (main): Simplify.
16956         * tests/test-remove.c (main): Enhance test for trailing '.'.
16957         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16958
16959 2009-10-01  Jim Meyering  <meyering@redhat.com>
16960
16961         maint.mk: requiring "make major" was annoying, for a "minor" release.
16962         What is intended is "stable", to contrast with alpha and beta,
16963         so require "make stable", not "make major".
16964         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
16965         (get_tool_versions): Likewise.
16966         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
16967
16968 2009-09-30  Ben Pfaff  <blp@gnu.org>
16969
16970         Fix broken build of replacement for Windows tmpfile().
16971         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
16972         flags argument added along with the 'mkostemp' module.
16973
16974 2009-09-28  Bruno Haible  <bruno@clisp.org>
16975
16976         Avoid identifier clash with POSIX function 'remove' defined as a macro.
16977         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
16978         to 'remove_elt'.
16979         (gl_list_remove): Update.
16980         * lib/gl_list.c (gl_list_remove): Update.
16981         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
16982         to 'remove_elt'.
16983         (gl_oset_remove): Update.
16984         * lib/gl_list.c (gl_oset_remove): Update.
16985         Reported by Eric Blake.
16986
16987 2009-09-28  Eric Blake  <ebb9@byu.net>
16988
16989         doc: mention yet more cygwin 1.7 status
16990         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
16991         cygwin.
16992         * doc/glibc-functions/execvpe.texi (execvpe): New file.
16993         * doc/gnulib.texi (Glibc unistd.h): Mention it.
16994
16995         argp: fix test failure
16996         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
16997         that are not upper-case.  Pass correct range to tolower.
16998
16999 2009-09-27  Jim Meyering  <meyering@redhat.com>
17000
17001         test-yesno: work around sparc-dash here-document infelicity
17002         Without this change, the literal \177 byte in a here document
17003         would make dash 0.5.5.1-3 access uninitialized memory.
17004         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
17005         Instead, use a marker, "@", and filter through tr to create the desired
17006         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
17007
17008 2009-09-27  Bruno Haible  <bruno@clisp.org>
17009
17010         Disable untested support for new flavours of ACLs on AIX.
17011         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
17012         progress.
17013         * lib/set-mode-acl.c (qset_acl): Likewise.
17014
17015 2008-12-07  Bruno Haible  <bruno@clisp.org>
17016
17017         Add support for new flavours of ACLs on AIX. (Untested.)
17018         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
17019         (file_has_acl): Add support for newer AIX.
17020         * lib/set-mode-acl.c (qset_acl): Likewise.
17021         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
17022         Rainer Tammer <tammer@tammer.net>.
17023
17024 2009-09-26  Eric Blake  <ebb9@byu.net>
17025
17026         argp: fix compilation of getopt
17027         * lib/getopt.in.h (includes): Use different guard than glibc.
17028         Reported by Sergey Poznyakoff.
17029
17030         doc: mention more cygwin 1.7 status
17031         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
17032         bug.
17033         * doc/posix-functions/execl.texi (execl): Likewise.
17034         * doc/posix-functions/execle.texi (execle): Likewise.
17035         * doc/posix-functions/execlp.texi (execlp): Likewise.
17036         * doc/posix-functions/execv.texi (execv): Likewise.
17037         * doc/posix-functions/execve.texi (execve): Likewise.
17038         * doc/posix-functions/execvp.texi (execvp): Likewise.
17039         * doc/glibc-functions/canonicalize_file_name.texi
17040         (canonicalize_file_name): Cygwin 1.7 now provides this.
17041         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
17042         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
17043         on AT_SYMLINK_NOFOLLOW.
17044
17045 2009-09-24  Eric Blake  <ebb9@byu.net>
17046
17047         test-linkat: make test more robust
17048         * tests/test-linkat.c (main): Avoid collision with EEXIST.
17049
17050         getopt: fix inclusion guards for cygwin
17051         * modules/getopt-posix (Depends-on): Add include-next.
17052         (Makefile.am): Substitute more items in replacement header.
17053         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
17054         <getopt.h>.
17055         * lib/getopt.in.h (includes): Use split inclusion guard, and
17056         prefer <getopt.h> over include <unistd.h> when one is present.
17057         (option): Also override name of 'struct option'.
17058
17059         same-inode: revert prior change; it is not yet ready
17060         * NEWS: Undo mention of this change.
17061         * lib/same-inode.h (same-inode.h): Undo tri-state change.
17062         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17063         * lib/cycle-check.c (cycle_check): Likewise.
17064         * lib/same.c (same_name): Likewise.
17065         * lib/at-func2.c (at_func2): Likewise.
17066
17067 2009-09-23  Eric Blake  <ebb9@byu.net>
17068
17069         linkat: new module
17070         * modules/linkat: New file.
17071         * lib/at-func2.c (at_func2): Likewise.
17072         * lib/linkat.c (linkat): Likewise.
17073         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17074         * lib/openat-priv.h (at_func2): Add declaration.
17075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17076         * modules/unistd (Makefile.am): Substitute them.
17077         * lib/unistd.in.h (linkat): Declare it.
17078         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17079         * doc/posix-functions/linkat.texi (linkat): Likewise.
17080         * doc/posix-functions/link.texi (link): Tweak wording.
17081         * tests/test-link.c (main): Move guts...
17082         * tests/test-link.h (test_link): ...into new file.
17083         * modules/linkat-tests: New test.
17084         * tests/test-linkat.c: Likewise.
17085         * modules/link-tests (Files): Ship new file.
17086         (Depends-on): Add stdbool.
17087
17088         dirname: add library-safe mdir_name
17089         * lib/dirname.h (mdir_name): New prototype.
17090         * lib/dirname.c (dir_name): Move guts...
17091         (mdir_name): ...to new function that avoids xalloc_die.
17092
17093         fchdir: another mingw fix
17094         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
17095         * lib/fchdir.c (get_name): New helper method; skips canonicalize
17096         on mingw (where it has not yet been ported), and make it optional
17097         elsewhere.
17098         (_gl_register_fd): Use it.
17099
17100         same-inode: make SAME_INODE tri-state, to port to mingw
17101         * NEWS: Mention this change.
17102         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
17103         st_ino always being 0.
17104         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17105         * lib/cycle-check.c (cycle_check): Likewise.
17106         * lib/same.c (same_name): Likewise.
17107
17108         lstat: avoid mingw compilation error
17109         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
17110         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
17111         lstat ourselves.
17112         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
17113         was adequate.
17114         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
17115         the checks for lstat.
17116         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
17117
17118         link: fix test failure on Solaris 9
17119         * lib/link.c (rpl_link): Don't assume link will catch bogus
17120         trailing slash on source.
17121
17122         test-symlinkat: enhance test
17123         * tests/test-readlink.c (main): Move guts...
17124         * tests/test-readlink.h (test_readlink): ...into new file.
17125         * tests/test-symlink.c (main): Move guts...
17126         * tests/test-symlink.h (test_symlink): ...into new file.
17127         * tests/test-symlinkat.c (main): Use new files for further
17128         coverage.
17129         (do_symlink, do_readlink): New helper functions.
17130         * modules/symlink-tests (Files): Ship new file.
17131         (Depends-on): Add stdbool.
17132         * modules/readlink-tests (Files): Ship new file.
17133         (Depends-on): Add stdbool.
17134         * modules/symlinkat-tests (Files): Use new files.
17135
17136 2009-09-23  Eric Blake  <ebb9@byu.net>
17137
17138         readlink: document portability issue with symlink length
17139         * doc/posix-functions/lstat.texi (lstat): Mention that some file
17140         systems have bogus st_size on symlinks, and mention the
17141         areadlink-with-size module.
17142         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17143         * doc/posix-functions/readlink.texi (readlink): Mention the
17144         areadlink module, and ERANGE failure.
17145         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17146         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
17147
17148         readlink: fix Solaris 9 bug with trailing slash
17149         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
17150         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
17151         * doc/posix-functions/readlink.texi (readlink): Document this.
17152         * modules/readlink-tests: New test.
17153         * tests/test-readlink.c: Likewise.
17154
17155         readlink: fix cygwin 1.5.x bug with return type
17156         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
17157         * lib/unistd.in.h (readlink): Use ssize_t.
17158         * lib/readlink.c (readlink): Likewise.
17159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17160         * modules/unistd (Makefile.am): Substitute it.
17161         * lib/unistd.in.h (readlink): Declare replacement.
17162         * doc/posix-functions/readlink.texi (readlink): Document this.
17163
17164         symlink: use throughout gnulib
17165         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
17166         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
17167         symlink is not used.
17168         * modules/symlinkat (Depends-on): Add symlink.
17169         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17170         * modules/canonicalize-tests (Depends-on): Likewise.
17171         * modules/lstat-tests (Depends-on): Likewise.
17172         * modules/openat-tests (Depends-on): Likewise.
17173         * modules/remove-tests (Depends-on): Likewise.
17174         * modules/rmdir-tests (Depends-on): Likewise.
17175         * modules/unlink-tests (Depends-on): Likewise.
17176         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
17177         * tests/test-canonicalize.c (symlink): Likewise.
17178         * tests/test-fstatat.c (symlink): Likewise.
17179         * tests/test-lstat.c (symlink): Likewise.
17180         * tests/test-remove.c (symlink): Likewise.
17181         * tests/test-rmdir.c (symlink): Likewise.
17182         * tests/test-unlink.c (symlink): Likewise.
17183         * tests/test-unlinkat.c (symlink): Likewise.
17184
17185         symlink: new module, for Solaris 9 bug
17186         * modules/symlink: New file.
17187         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17188         * lib/symlink.c: Likewise.
17189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17190         * modules/unistd (Makefile.am): Substitute them.
17191         * lib/unistd.in.h (symlink): Declare replacement.
17192         * MODULES.html.sh (File system functions): Mention it.
17193         * doc/posix-functions/symlink.texi (symlink): Likewise.
17194         * modules/symlink-tests: New test.
17195         * tests/test-symlink.c: Likewise.
17196
17197 2009-09-23  Bruno Haible  <bruno@clisp.org>
17198
17199         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
17200         when needed.
17201         Test case: gnulib-tool --import --with-tests atexit inttypes.
17202         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
17203
17204 2009-09-23  Bruno Haible  <bruno@clisp.org>
17205
17206         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
17207         subcommand, not in a subshell.
17208
17209 2009-09-22  Eric Blake  <ebb9@byu.net>
17210
17211         unistd: sort replacement declarations
17212         * lib/unistd.in.h: Sort declarations.
17213
17214         open, openat: minor optimization
17215         * lib/open.c (open): If open succeeded, len is non-zero.
17216         * lib/openat.c (rpl_openat): Likewise.
17217
17218         link-follow: ensure correct result
17219         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
17220         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
17221         distinguish between possible failures.
17222
17223 2009-09-21  Eric Blake  <ebb9@byu.net>
17224
17225         fts: avoid compiler warning
17226         * lib/fts.c (dirent_inode_sort_may_be_useful)
17227         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
17228
17229 2009-09-19  Bruno Haible  <bruno@clisp.org>
17230
17231         * lib/progreloc.c (canonicalize_file_name): New declaration.
17232
17233 2009-09-19  Eric Blake  <ebb9@byu.net>
17234
17235         link: fix quoting
17236         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
17237
17238         openat: fix openat bugs on Solaris 9
17239         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
17240         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
17241         * modules/openat (Depends-on): Add open.
17242         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
17243         * modules/fcntl-h (Makefile.am): Substitute it.
17244         * lib/fcntl.in.h (openat): Declare replacement.
17245         * doc/posix-functions/openat.texi (openat): Document this.
17246
17247         openat: move fstatat and unlinkat into correct files
17248         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
17249         compiled.
17250         * lib/openat.c (fstatat, unlinkat): Move...
17251         * lib/fstatat.c (fstatat): ...into correct files.
17252         * lib/unlinkat.c (unlinkat): Likewise.
17253
17254         openat: fix unlinkat bugs on Solaris 9
17255         * lib/unlinkat.c (unlinkat): New file.
17256         * modules/openat (Depends-on): Add unlink.
17257         (Files): Distribute it.
17258         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
17259         trailing slash behavior is broken.
17260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17261         * modules/unistd (Makefile.am): Substitute it.
17262         * lib/unistd.in.h (unlinkat): Declare replacement.
17263         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
17264
17265         openat: fix fstatat bugs on Solaris 9
17266         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
17267         stat.
17268         * doc/posix-functions/fstatat.texi (fstatat): Document this.
17269
17270         test-unlinkat: enhance test, to expose Solaris 9 bug
17271         * tests/test-unlink.c (main): Factor guts...
17272         * tests/test-unlink.h (test_rmdir_func): ...into new file.
17273         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
17274         * tests/test-rmdir.c (main): Adjust caller.
17275         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
17276         (unlinker): New helper function.
17277         (rmdirat): Enhance check.
17278         * modules/rmdir-tests (Depends-on): Add stdbool.
17279         * modules/unlink-tests (Depends-on): Likewise.
17280         (Files): Add test-unlink.h.
17281         * modules/openat-tests (Files): Likewise.
17282         (Depends-on): Add unlinkdir.
17283
17284         test-fstatat: new test, to expose Solaris 9 bugs
17285         * tests/test-stat.c (main): Factor guts...
17286         * tests/test-stat.h (test_stat_func): ...into new file.
17287         * tests/test-lstat.c (main): Factor guts...
17288         * tests/test-lstat.h (test_lstat_func): ...into new file.
17289         * tests/test-fstatat.c: New file.
17290         * modules/stat-tests (Files): Add test-stat.h.
17291         * modules/lstat-tests (Files): Add test-lstat.h.
17292         (Depends-on): Add stdbool.
17293         * modules/openat-tests (Depends-on): Add pathmax.
17294         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
17295         (Makefile.am): Run new test.
17296
17297         remove: new module, for mingw and Solaris 9 bugs
17298         * modules/remove: New file.
17299         * lib/remove.c: Likewise.
17300         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
17301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17302         * modules/stdio (Makefile.am): Use them.
17303         * lib/stdio.in.h (remove): Declare replacement.
17304         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17305         * doc/posix-functions/remove.texi (remove): Likewise.
17306         * modules/remove-tests: New test.
17307         * tests/test-remove.c: Likewise.
17308
17309         unlink: new module, for Solaris 9 bug
17310         * modules/unlink: New file.
17311         * lib/unlink.c: Likewise.
17312         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17314         * modules/unistd (Makefile.am): Use them.
17315         * lib/unistd.in.h (stat): Declare replacement.
17316         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17317         * doc/posix-functions/unlink.texi (unlink): Likewise.
17318         * modules/unlink-tests: New test.
17319         * tests/test-unlink.c: Likewise.
17320
17321         lstat: fix Solaris 9 bug
17322         * lib/lstat.c (lstat): Also check for trailing slash on
17323         non-symlink, non-directories.  Use stat module to simplify logic.
17324         * doc/posix-functions/lstat.texi (lstat): Document it.
17325         * modules/lstat-tests (Depends-on): Add errno, same-inode.
17326         (configure.ac): Check for symlink.
17327         * tests/test-lstat.c (main): Add more tests.
17328
17329         stat: add as dependency to other modules
17330         * modules/chown (Depends-on): Add stat.
17331         * modules/euidaccess (Depends-on): Likewise.
17332         * modules/fchdir (Depends-on): Likewise.
17333         * modules/isdir (Depends-on): Likewise.
17334         * modules/link (Depends-on): Likewise.
17335         * modules/lstat (Depends-on): Likewise.
17336         * modules/mkdir-p (Depends-on): Likewise.
17337         * modules/modechange (Depends-on): Likewise.
17338         * modules/open (Depends-on): Likewise.
17339         * modules/readlink (Depends-on): Likewise.
17340         * modules/same (Depends-on): Likewise.
17341
17342         stat: fix Solaris 9 bug
17343         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
17344         slash.
17345         * lib/stat.c (rpl_stat): Work around it.
17346         * doc/posix-functions/stat.texi (stat): Update documentation.
17347
17348         stat: new module, for mingw bug
17349         * modules/stat: New file.
17350         * lib/stat.c: Likewise.
17351         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17352         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17353         * modules/sys_stat (Makefile.am): Use them.
17354         * lib/sys_stat.in.h (stat): Declare replacement.
17355         * lib/openat.c (fstatat): Deal with lstat and stat being function
17356         macros.
17357         * modules/openat (Depends-on): Add inline.
17358         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17359         * doc/posix-functions/stat.texi (stat): Likewise.
17360         * modules/stat-tests: New test.
17361         * tests/test-stat.c: Likewise.
17362
17363 2009-09-19  Jim Meyering  <meyering@redhat.com>
17364
17365         syntax-check: detect unnecessary inclusion of canonicalize.h
17366         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
17367
17368 2009-09-19  Eric Blake  <ebb9@byu.net>
17369
17370         canonicalize-lgpl: adjust clients to use correct header
17371         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17372         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
17373         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
17374         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
17375         * lib/progreloc.c (includes): Likewise.
17376
17377 2009-09-19  Jim Meyering  <meyering@redhat.com>
17378
17379         test-posixtm.c: correct a comment
17380         * tests/test-posixtm.c: Correct first-line comment.
17381         Spotted by Eric Blake.
17382
17383 2009-09-16  Jim Meyering  <meyering@redhat.com>
17384
17385         posixtm-tests: make T const-correct; add a test case
17386         * tests/test-posixtm.c (T): Declare const.
17387         Add a test for -(2^31+1).
17388         Remove useless can-succeed-only-in-2002 test.
17389
17390         posixtm-tests: adjust the sole failing test
17391         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
17392         expected output matches what mktime now produces.  Cross-checked via
17393         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
17394
17395         posixtm: move #ifdef'd tests into a new module
17396         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
17397         * tests/test-posixtm.c: ... this new file.
17398         * modules/posixtm-tests: New module.
17399
17400 2009-09-19  Eric Blake  <ebb9@byu.net>
17401
17402         openat: simplify use of at-func.c
17403         * lib/at-func.c (includes): Include prerequisites here, to
17404         simplify requirements on client files.
17405         * lib/openat-priv.h: Add double-inclusion guard.
17406         * lib/faccessat.c (includes): Simplify.
17407         * lib/fchmodat.c (includes): Likewise.
17408         * lib/fchownat.c (includes): Likewise.
17409         * lib/mkdirat.c (includes): Likewise.
17410         * lib/mkfifoat.c (includes): Likewise.
17411         * lib/symlinkat.c (includes): Likewise.
17412
17413         openat: allow return of fd 0
17414         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
17415         * modules/save-cwd (Depends-on): Replace fcntl-safer with
17416         unistd-safer.
17417         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
17418         <fcntl.h>; this module does not leak fds.
17419         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
17420         must be allowed to return 0, leaving openat_safer to add the
17421         safety.
17422         (openat_permissive): Avoid writing to just-opened fd 2 if
17423         restoring the current directory fails.
17424         * lib/openat-die.c (openat_restore_fail): Add comment.
17425         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
17426         (save_cwd): Guarantee safe fd, but without use of open_safer.
17427         * tests/test-openat.c: New test.
17428         * modules/openat-tests (Files, Makefile.am): Distribute and build
17429         new file.
17430
17431         relocatable-prog-wrapper: fix build
17432         * modules/relocatable-prog-wrapper (Files): Update name of
17433         canonicalize m4 file, broken on 2009-09-17.
17434         Reported by emad hajjar <aleppos@hotmail.com>.
17435
17436 2009-09-19  Bruno Haible  <bruno@clisp.org>
17437
17438         * lib/safe-alloc.h: Use the standard header with GPL copyright.
17439         * lib/safe-alloc.c: Likewise.
17440         Reported by Ian Beckwith <ianb@erislabs.net>.
17441
17442 2009-09-18  Bruno Haible  <bruno@clisp.org>
17443
17444         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
17445         Reported by <erobles@sensacd.com.mx>.
17446
17447 2009-09-17  Eric Blake  <ebb9@byu.net>
17448
17449         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
17450         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
17451         slashes when checking if last component is missing.
17452         * tests/test-canonicalize.c (main): Test this.
17453
17454         canonicalize, canonicalize-lgpl: honor // if distinct from /
17455         * modules/canonicalize (Files): Add double-slash-root.m4.
17456         * modules/canonicalize-lgpl (Files): Likewise.
17457         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17458         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
17459         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
17460         fallback definition.
17461         (canonicalize_filename_mode): Use it to protect //.
17462         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
17463         (__realpath): Likewise.
17464         * tests/test-canonicalize.c (main): Test this.
17465         * tests/test-canonicalize-lgpl.c (main): Likewise.
17466         * modules/canonicalize-tests (Depends-on): Add same-inode.
17467         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17468
17469         canonicalize-lgpl: fix glibc bug with trailing slash
17470         * m4/canonicalize-lgpl.m4: Move contents...
17471         * m4/canonicalize.m4: ...here.
17472         (gl_CANONICALIZE_LGPL): Factor realpath check...
17473         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
17474         glibc 2.3.5 bug, fixed 2005-04-27.
17475         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
17476         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
17477         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
17478         * modules/canonicalize-lgpl (Files): Manage file rename.
17479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
17480         * modules/stdlib (Makefile.am): Substitute witness.
17481         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
17482         is needed.
17483         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
17484         replacement is required.
17485         * lib/canonicalize.c (canonicalize_file_name): Likewise.
17486         * doc/glibc-functions/canonicalize_file_name.texi
17487         (canonicalize_file_name): Document this.
17488         * doc/posix-functions/realpath.texi (realpath): Likewise.
17489
17490         canonicalize-lgpl: reject non-directory with trailing slash
17491         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
17492         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
17493         catches failures in glibc 2.3.5.
17494         * tests/test-canonicalize.c (main): Likewise.
17495
17496         canonicalize-lgpl: use native realpath if it works
17497         * lib/canonicalize-lgpl.c (realpath): Guard with
17498         FUNC_REALPATH_WORKS.
17499         * lib/stdlib.in.h (realpath): Make declaration optional based on
17500         HAVE_REALPATH.
17501         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
17502         native realpath works.
17503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
17504         * modules/stdlib (Makefile.am): Substitute witness.
17505
17506         canonicalize, canonicalize-lgpl: use <stdlib.h>
17507         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
17508         (Include): Mention <stdlib.h>.
17509         (configure.ac): Mention functions we provide.
17510         * modules/canonicalize (configure.ac): Likewise.
17511         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
17512         realpath if canonicalize_file_name is missing.
17513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
17514         * modules/stdlib (Makefile.am): Substitute witnesses.
17515         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
17516         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
17517         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
17518         * NEWS: Document this.
17519         * doc/glibc-functions/canonicalize_file_name.texi
17520         (canonicalize_file_name): Likewise.
17521         * doc/posix-functions/realpath.texi (realpath): Likewise.
17522         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
17523
17524         test-canonicalize: consolidate into single C program
17525         * tests/test-canonicalize.sh: Delete; move setup into...
17526         * tests/test-canonicalize.c (main): ...the program, making it
17527         easier to run in debugger.  Add some tests.
17528         * modules/canonicalize-tests (Files): Remove unused file.
17529         (Depends-on): Add progname.
17530         (configure.ac, Makefile.am): Simplify.
17531
17532         test-canonicalize-lgpl: consolidate into single C program
17533         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
17534         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
17535         easier to run in debugger.  Add some tests.
17536         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
17537         (configure.ac, Makefile.am): Simplify.
17538
17539         canonicalize: avoid resolvepath
17540         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
17541         unnecessary checks.
17542         * lib/canonicalize.c (includes): Simplify.
17543         (canonicalize_file_name): Drop resolvepath implementation.
17544         * modules/canonicalize (Depends-on): Drop filenamecat.
17545
17546         canonicalize: don't lose errno
17547         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
17548         over calls to free.
17549
17550         canonicalize: simplify errno handling
17551         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
17552         assignment.
17553
17554         canonicalize, canonicalize-lgpl: update module dependencies
17555         * modules/canonicalize (Depends-on): Add extensions, lstat,
17556         pathmax, stdlib.
17557         (Files): Drop pathmax.h.
17558         (configure.ac): Adjust macro name.
17559         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
17560         lstat, stdlib, sys_stat.
17561         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
17562         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
17563         extensions.
17564         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
17565         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
17566         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
17567         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
17568         declaration, if available.
17569         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
17570         we can rely on the readlink module.
17571         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
17572         (includes): Use <unistd.h> unconditionally.
17573
17574 2009-09-17  Eric Blake  <ebb9@byu.net>
17575
17576         maint: make Include sections of modules consistent
17577         * modules/alloca: Use only header name; no need to list #include.
17578         * modules/alloca-opt: Likewise.
17579         * modules/arpa_inet: Likewise.
17580         * modules/canon-host: Likewise.
17581         * modules/configmake: Likewise.
17582         * modules/dirent: Likewise.
17583         * modules/eealloc: Likewise.
17584         * modules/environ: Likewise.
17585         * modules/fchdir: Likewise.
17586         * modules/fcntl: Likewise.
17587         * modules/fcntl-h: Likewise.
17588         * modules/gethrxtime: Likewise.
17589         * modules/gettime: Likewise.
17590         * modules/ignore-value: Likewise.
17591         * modules/inet_ntop: Likewise.
17592         * modules/inet_pton: Likewise.
17593         * modules/inttypes: Likewise.
17594         * modules/isnand-nolibm: Likewise.
17595         * modules/isnanf-nolibm: Likewise.
17596         * modules/mbchar: Likewise.
17597         * modules/mbfile: Likewise.
17598         * modules/mbiter: Likewise.
17599         * modules/mbuiter: Likewise.
17600         * modules/netdb: Likewise.
17601         * modules/netinet_in: Likewise.
17602         * modules/nproc: Likewise.
17603         * modules/pagealign_alloc: Likewise.
17604         * modules/poll: Likewise.
17605         * modules/printf-frexp: Likewise.
17606         * modules/pthread: Likewise.
17607         * modules/putenv: Likewise.
17608         * modules/random_r: Likewise.
17609         * modules/relocatable-prog: Likewise.
17610         * modules/search: Likewise.
17611         * modules/select: Likewise.
17612         * modules/selinux-h: Likewise.
17613         * modules/settime: Likewise.
17614         * modules/signal: Likewise.
17615         * modules/size_max: Likewise.
17616         * modules/socklen: Likewise.
17617         * modules/ssize_t: Likewise.
17618         * modules/stdarg: Likewise.
17619         * modules/stdbool: Likewise.
17620         * modules/stddef: Likewise.
17621         * modules/stdint: Likewise.
17622         * modules/stdio: Likewise.
17623         * modules/stdlib: Likewise.
17624         * modules/string: Likewise.
17625         * modules/strings: Likewise.
17626         * modules/sys_file: Likewise.
17627         * modules/sys_ioctl: Likewise.
17628         * modules/sys_select: Likewise.
17629         * modules/sys_socket: Likewise.
17630         * modules/sys_stat: Likewise.
17631         * modules/sys_time: Likewise.
17632         * modules/sys_times: Likewise.
17633         * modules/sys_utsname: Likewise.
17634         * modules/sys_wait: Likewise.
17635         * modules/sysexits: Likewise.
17636         * modules/time: Likewise.
17637         * modules/times: Likewise.
17638         * modules/tmpfile: Likewise.
17639         * modules/trim: Likewise.
17640         * modules/unistd: Likewise.
17641         * modules/wchar: Likewise.
17642         * modules/wctype: Likewise.
17643
17644 2009-09-17  Bruno Haible  <bruno@clisp.org>
17645
17646         Make getdate.y compile on QNX and NetBSD 5 / i386.
17647         * m4/getdate.m4 (gl_GETDATE): Conditionally define
17648         TIME_T_FITS_IN_LONG_INT.
17649         * lib/getdate.y (long_time_t): New type.
17650         (relative_time): Change type of 'seconds' field to long_time_t.
17651         (get_date): Update types of local variables. Check against overflow
17652         during conversion from long_time_t to time_t.
17653         Reported by Matt Kraai <kraai@ftbfs.org>
17654         and Hasso Tepper <hasso@netbsd.org>.
17655
17656 2009-09-17  Bruno Haible  <bruno@clisp.org>
17657
17658         * modules/COPYING: Update copyright years.
17659         * modules/README: Likeiwse.
17660         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
17661         Reported by Ian Beckwith <ianb@erislabs.net>.
17662
17663 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17664
17665         * users.txt: Update references for gnuit package.
17666
17667 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17668
17669         * m4/getdelim.m4: Fix typo in copyright line.
17670
17671 2009-09-17  Bruno Haible  <bruno@clisp.org>
17672
17673         * lib/atoll.c: Use the standard header with GPL copyright.
17674         * lib/argz.in.h: Likewise.
17675         * lib/glob.c: Likewise.
17676         * lib/glob-libc.h: Likewise.
17677         * lib/random_r.c: Likewise.
17678         * lib/siglist.h: Likewise.
17679         * lib/strsignal.c: Likewise.
17680         Reported by Ian Beckwith <ianb@erislabs.net>.
17681
17682 2009-09-17  Eric Blake  <ebb9@byu.net>
17683
17684         rmdir: ensure correct dependency order
17685         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
17686
17687 2009-09-17  Bruno Haible  <bruno@clisp.org>
17688
17689         Disable assertion that fails on NetBSD 5 / i386.
17690         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
17691         Reported by Sam Steingold <sds@gnu.org>
17692         and Hasso Tepper <hasso@netbsd.org>.
17693
17694 2009-09-16  Eric Blake  <ebb9@byu.net>
17695
17696         unlinkdir: port to mingw
17697         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
17698         on which no one can unlink a directory.
17699
17700         stdlib: sort witness names
17701         * modules/stdlib (Makefile.am): Sort replacements.
17702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
17703         * lib/stdlib.in.h: Likewise.
17704
17705         parse-duration-tests: avoid link failure
17706         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
17707         LIBINTL.
17708         Reported by Tom G. Christensen.
17709
17710         openat-tests: ensure unlinkat behaves like rmdir
17711         * tests/test-rmdir.c (main): Factor guts...
17712         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
17713         * modules/rmdir-tests (Files): Ship new file.
17714         * modules/openat-tests: New test.
17715         * tests/test-unlinkat.c: Likewise.
17716
17717         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
17718         * modules/rmdir-errno (Status, Notice): Now obsolete.
17719
17720         rmdir: work around cygwin 1.5.x and mingw bugs
17721         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
17722         * lib/rmdir.c (rmdir): Work around it.
17723         * modules/rmdir (Status, Notice): No longer obsolete.
17724         (Files): Add dos.m4.
17725         (Depends-on): Add unistd.
17726         (configure.ac): Set witnesses.
17727         (License): Relax to LGPLv2+.
17728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
17729         * modules/unistd (Makefile.am): Substitute witnesses.
17730         * lib/unistd.in.h (rmdir): Declare replacement.
17731         * doc/posix-functions/rmdir.texi (rmdir): Document this.
17732         * modules/rmdir-tests: New tests.
17733         * tests/test-rmdir.c: Likewise.
17734
17735 2009-09-15  Eric Blake  <ebb9@byu.net>
17736
17737         fchdir: improve use of replacement functions
17738         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
17739         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
17740         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
17741         REPLACE_CLOSEDIR.
17742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
17743         * modules/sys_stat (Makefile.am): Substitute correct witness.
17744         * modules/dirent (Makefile.am): Likewise.
17745         * modules/unistd (Makefile.am): Likewise.
17746         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
17747         * lib/unistd.in.h (dup): Likewise.
17748         * lib/sys_stat.in.h (fstat): Likewise.
17749
17750         maint: ignore gnulib-tool temp files
17751         * .gitignore: Ignore files created during gnulib-tool --test.
17752
17753 2009-09-13  Jim Meyering  <meyering@redhat.com>
17754
17755         posixtm: don't reject a time that specify "60" as the number of seconds
17756         * lib/posixtm.c (posixtime): The code to reject invalid dates
17757         would also reject a time specified with the .60 suffix.
17758         But POSIX allows that, in order to accommodate leap seconds.
17759         So don't reject it.
17760         (main): Adjust tests accordingly.
17761         * modules/posixtm (Depends-on): Add stpcpy.
17762
17763 2009-09-11  Jim Meyering  <meyering@redhat.com>
17764
17765         announce-gen: include [$release_type] in emitted Subject:
17766         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
17767         e.g., [stable] in the emitted Subject: line.
17768
17769 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17770
17771         Remove obsolete macros from several modules.
17772         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
17773         obsolete Autoconf macros with their modern counterparts.
17774         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
17775         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
17776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
17777         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17778         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
17779         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17780         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17781         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17782         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17783         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
17784         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17785         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17786         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
17787         * m4/sockets.m4 (gl_SOCKETS): Likewise.
17788         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
17789         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
17790         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
17791         * m4/time_r.m4 (gl_TIME_R): Likewise.
17792         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17793         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
17794         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17795
17796         Fix copyright header in build-aux scripts.
17797         * build-aux/git-version-gen: Fix copyright header to match GPLv3
17798         recommendation.
17799         * build-aux/ncftpput-ftp: Likewise.
17800         * build-aux/update-copyright: Likewise.
17801
17802 2009-09-09  Eric Blake  <ebb9@byu.net>
17803
17804         test-link: allow Linux choice of errno
17805         * tests/test-link.c (main): Relax test for alternate error.
17806
17807         strndup: fix improper m4 caching
17808         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
17809         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
17810         (gl_PREREQ_STRNDUP): Delete.
17811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
17812         * modules/string (Makefile.am): Substitute it.
17813         * lib/string.in.h (strndup): Modernize prototype.
17814
17815         getcwd: port to mingw
17816         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
17817         different from the POSIX assumptions made throughout the getcwd
17818         module; fortunately, the mingw getcwd does not need replacement.
17819         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
17820         * modules/getcwd-tests: New test.
17821         * tests/test-getcwd.c: Likewise.
17822
17823         link: fix platform bugs
17824         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
17825         * lib/link.c (link): Work around them.  Fix related mingw bug.
17826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
17827         * modules/unistd (Makefile.am): Substitute it.
17828         * lib/unistd.in.h (link): Declare replacement.
17829         * doc/posix-functions/link.texi (link): Document this.
17830         * modules/link (Depends-on): Add strdup-posix, sys_stat.
17831
17832         test-link: consolidate into single C program, test more cases
17833         * tests/test-link.sh: Delete.
17834         * tests/test-link.c: Test more error conditions.  Exposes bugs on
17835         at least Cygwin and Solaris.
17836         * modules/link-tests (Files): Remove unused file.
17837         (Depends-on): Add errno, sys_stat.
17838         (Makefile.am): Simplify.
17839
17840 2009-09-08  Bruno Haible  <bruno@clisp.org>
17841
17842         Work around towlower, towupper bug on mingw.
17843         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
17844         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
17845         * doc/posix-functions/towlower.texi: Mention the mingw bug.
17846         * doc/posix-functions/towupper.texi: Likewise.
17847         Reported by Eric Blake.
17848
17849 2009-09-08  Jim Meyering  <meyering@redhat.com>
17850
17851         build: don't try to run autoheader if we don't use it
17852         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
17853         is not used in configure.ac.
17854
17855 2009-09-08  Eric Blake  <ebb9@byu.net>
17856
17857         euidaccess: fix compilation error
17858         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
17859
17860         rawmemchr: relax license
17861         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
17862         okay.
17863         Reported by Jim Meyering.
17864
17865         mkfifoat: new module
17866         * modules/mkfifoat: New file.
17867         * lib/mkfifoat.c: Likewise.
17868         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
17869         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17870         * modules/sys_stat (Makefile.am): Use them.
17871         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
17872         * MODULES.html.sh (File system functions): Mention module.
17873         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17874         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17875         * modules/mkfifoat-tests: New test.
17876         * tests/test-mkfifoat.c: Likewise.
17877
17878         strchrnul: relax license
17879         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
17880         okay.
17881         Reported by Jim Meyering.
17882
17883 2009-09-08  Eric Blake  <ebb9@byu.net>
17884
17885         fstatat: fix compilation on Solaris
17886         * lib/fstatat.c (includes): Add fcntl.h.
17887         Reported by Pádraig Brady.
17888
17889 2009-09-07  Eric Blake  <ebb9@byu.net>
17890
17891         rename: modernize replacement
17892         * modules/rename (Depends-on): Add stdio.
17893         (configure.ac): Declare witness.
17894         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
17895         stdio take care of replacement.
17896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17897         * modules/stdio (Makefile.am): Substitute them.
17898         * lib/stdio.in.h (rename): Declare replacement.
17899         * lib/rename.c (includes): Allow cross-compilation to non-windows
17900         machines.
17901         * doc/posix-functions/rename.texi (rename): Improve
17902         documentation.
17903
17904         stdio: sort witness names
17905         * modules/stdio (Makefile.am): Sort replacements.
17906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17907         * lib/stdio.in.h: Likewise.
17908
17909         getcwd: minor cleanups
17910         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
17911         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
17912
17913         openat: provide more convenience names
17914         * modules/faccessat (configure.ac): Add C witness.
17915         * lib/unistd.in.h (readlinkat): Fix typo.
17916         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
17917         convenience wrappers.
17918         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
17919         wrappers in syntax checks.
17920
17921 2009-09-06  Eric Blake  <ebb9@byu.net>
17922
17923         doc: fix comments in recent patches
17924         * lib/faccessat.c: Mention correct function.
17925         * lib/fchmodat.c: Likewise.
17926         * lib/fchownat.c: Likewise.
17927         * lib/symlinkat.c: Likewise.
17928         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
17929         constants.
17930
17931         faccessat, symlinkat: continue cleanup of previous patch
17932         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
17933         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17934         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
17935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
17936         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
17937         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
17938         set.
17939
17940 2009-09-06  Bruno Haible  <bruno@clisp.org>
17941
17942         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
17943         (fstatat): Declare if GNULIB_FSTATAT is set.
17944         (mkdirat): Declare if GNULIB_MKDIRAT is set.
17945         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
17946         (unlinkat): Declare if GNULIB_UNLINKAT is set.
17947         * modules/fcntl-h (Files): Remove m4/openat.m4.
17948         * modules/sys_stat (Files): Remove m4/openat.m4.
17949         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
17950         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
17951         * modules/unistd (Files): Remove m4/openat.m4.
17952         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
17953         GNULIB_OPENAT.
17954         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
17955         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
17956         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17957         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
17958         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
17959         gl_OPENAT_DEFAULTS.
17960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
17961         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
17962         Don't require gl_OPENAT_DEFAULTS.
17963         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
17964         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
17965         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
17966         (gl_OPENAT_DEFAULTS): Remove macro.
17967
17968 2009-09-06  Bruno Haible  <bruno@clisp.org>
17969
17970         * modules/openat (configure.ac): Remove unneeded witness.
17971
17972 2009-09-06  Bruno Haible  <bruno@clisp.org>
17973
17974         Set errno to ENOSYS when a function is entirely unsupported.
17975         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
17976         EOPNOTSUPP.
17977         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17978         * modules/chown (Depends-on): Remove errno.
17979
17980 2009-09-06  Bruno Haible  <bruno@clisp.org>
17981
17982         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
17983
17984 2009-09-06  Bruno Haible  <bruno@clisp.org>
17985
17986         * lib/sys_stat.in.h: Fix preprocessor command indentation.
17987
17988 2009-09-06  Ben Pfaff  <blp@gnu.org>
17989             Bruno Haible  <bruno@clisp.org>
17990
17991         Work around a glibc bug in strtok_r.
17992         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
17993         Undefine if UNDEFINE_STRTOK_R is set.
17994         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
17995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17996         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
17997         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
17998         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
17999         UNDEFINE_STRTOK_R.
18000         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
18001
18002 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18003
18004         exclude: minor fix
18005         * lib/exclude.c: Include wctype.h
18006
18007 2009-09-06  Akim Demaille  <demaille@gostai.com>
18008
18009         bootstrap: improve error message
18010         * build-aux/bootstrap (find_tool): Upon failure, report the list
18011         of candidates.
18012         Honor the initial value of the envvar.
18013
18014 2009-09-05  Eric Blake  <ebb9@byu.net>
18015
18016         symlinkat: new module
18017         * modules/symlinkat: New file.
18018         * lib/symlinkat.c: Likewise.
18019         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18021         * modules/unistd (Makefile.am): Use them.
18022         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
18023         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
18024         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
18025         * MODULES.html.sh (File system functions): Mention module.
18026         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18027         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18028         * modules/symlinkat-tests: New test.
18029         * tests/test-symlinkat.c: Likewise.
18030
18031         test-openat-safer: add more checks
18032         * tests/test-openat-safer.c (main): Check more code paths.
18033
18034 2009-09-05  Jim Meyering  <meyering@redhat.com>
18035
18036         syntax-check: detect unnecessary inclusion of openat.h
18037         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
18038
18039 2009-09-05  Bruno Haible  <bruno@clisp.org>
18040
18041         Support towlower, towupper.
18042         * doc/posix-functions/towlower.texi: Mention module wctype.
18043         * doc/posix-functions/towupper.texi: Likewise.
18044         * lib/wctype.in.h (towlower, towupper): New functions.
18045         * tests/test-wctype.c: Include stdio.h, stdlib.h.
18046         (ASSERT): New macro.
18047         (e): New variable.
18048         (main): Test also towlower, towupper. Test WEOF argument.
18049         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18050
18051 2009-09-05  Bruno Haible  <bruno@clisp.org>
18052
18053         Fix conversion behaviour when the input is invalid.
18054         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
18055         mark occurring in first pass of indirect conversion.
18056         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
18057         input.
18058         Found by clang's static analyzer.
18059
18060 2009-09-05  Bruno Haible  <bruno@clisp.org>
18061
18062         * tests/test-striconveh.c (main): Test indirect conversion on platforms
18063         where direct conversion is possible.
18064
18065 2009-09-04  Eric Blake  <ebb9@byu.net>
18066
18067         openat: fail with ENOENT on empty name
18068         * lib/openat-proc.c (openat_proc_name): Special-case the empty
18069         buffer.
18070
18071         link-follow: fix logic bug in prior patch
18072         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
18073         reversed sense of yes and no in prior patch.  Avoid confusing
18074         compilation failure with desired semantics.
18075
18076         link-follow: accomodate mingw and cross-compilation
18077         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
18078         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
18079         cross-compilation results to -1, to make linkat easier to
18080         implement when cross-compiling.  Trivially support mingw.
18081         * modules/link-follow (configure.ac): Call new name.
18082         * NEWS: Mention this.
18083
18084 2009-09-03  Eric Blake  <ebb9@byu.net>
18085
18086         faccessat: compile replacement
18087         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
18088         needed.
18089
18090         fts: fix compilation error
18091         * lib/fts.c (includes): Re-add "openat.h", for
18092         openat_needs_fchdir.
18093
18094         faccessat: new module
18095         * modules/faccessat: New file.
18096         * lib/faccessat.c: Likewise.
18097         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18099         * modules/unistd (Makefile.am): Use it.
18100         * lib/unistd.in.h (faccessat): Declare it.
18101         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
18102         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
18103         * MODULES.html.sh (File system functions): Mention it.
18104         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
18105         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18106
18107         euidaccess: prefer POSIX over non-standard implementation
18108         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
18109         * lib/euidaccess.c (euidaccess): Use it if available.
18110
18111         openat: make template easier to use
18112         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
18113         AT_FUNC_F2 to be undefined.
18114         (VALIDATE_FLAG): New macro; use it to reject bad flags.
18115         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
18116         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
18117         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
18118         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
18119         Likewise.
18120         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
18121         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
18122         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
18123         Likewise.
18124
18125         openat: declare in POSIX headers
18126         * NEWS: Mention this.
18127         * modules/openat (configure.ac): Declare witnesses.
18128         (Depends-on): Add fcntl-h, sys_stat, unistd.
18129         (Include): Mention correct headers.
18130         * modules/fcntl-h (Depends-on): Add link-warning.
18131         (Files): Add openat.m4.
18132         (Makefile.am): Substitute witnesses.
18133         * modules/sys_stat (Files, Makefile.am): Likewise.
18134         * modules/unistd (Files, Makefile.am): Likewise.
18135         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
18136         (gl_OPENAT_DEFAULTS): New macro.
18137         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
18138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
18139         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
18140         (SYS_STAT_H): Remove unused variable.
18141         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
18142         * lib/fcntl--.h (includes): Remove unneeded header.
18143         * lib/openat-safer.c (includes): Likewise.
18144         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
18145         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
18146         appropriate headers.
18147         (__OPENAT_PREFIX): Delete.
18148         * lib/fcntl.in.h (openat): Provide declaration.
18149         (AT_FDCWD): Fix Solaris bug.
18150         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
18151         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
18152         * lib/fchmodat.c (includes):  Adjust to find declaration.
18153         * lib/fchownat.c (includes): Likewise.
18154         * lib/mkdirat.c (includes): Likewise.
18155         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
18156         still visible.
18157
18158 2009-09-02  Eric Blake  <ebb9@byu.net>
18159
18160         errno: use consistently
18161         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
18162         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
18163         * lib/canonicalize.c (ELOOP): Likewise.
18164         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
18165         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
18166         * lib/lchown.c (EOPNOTSUPP): Likewise.
18167         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
18168         * lib/savewd.c (ESTALE): Likewise.
18169         * lib/settime.c (ENOSYS): Likewise.
18170         * lib/utimens.c (ENOSYS): Likewise.
18171         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
18172         * lib/chdir-safer.c (ELOOP): Likewise.
18173         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
18174         * modules/c-stack (Depends-on): Add errno.
18175         * modules/canonicalize (Depends-on): Likewise.
18176         * modules/chdir-safer (Depends-on): Likewise.
18177         * modules/fdopendir (Depends-on): Likewise.
18178         * modules/inet_ntop (Depends-on): Likewise.
18179         * modules/inet_pton (Depends-on): Likewise.
18180         * modules/lchown (Depends-on): Likewise.
18181         * modules/openat (Depends-on): Likewise.
18182         * modules/savewd (Depends-on): Likewise.
18183         * modules/settime (Depends-on): Likewise.
18184         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
18185
18186         fts: avoid leaking fds
18187         * modules/fts (Depends-on): Add cloexec.
18188         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
18189         flag.
18190
18191         fts: make directory fds more robust
18192         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
18193         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
18194
18195         backupfile, chdir-long, fts, savedir: make safer
18196         * lib/backupfile.c (includes): Use "dirent--.h", since
18197         numbered_backup can write to stderr during readdir.
18198         * lib/savedir.c (includes): Likewise.
18199         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
18200         emulation can write to stderr on failure.
18201         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
18202         * lib/getcwd.c: Document why opendir_safer is unused.
18203         * lib/glob.c: Likewise.
18204         * lib/scandir.c: Likewise.
18205         * lib/openat-proc.c: Likewise, for open_safer.
18206         * modules/backupfile (Depends-on): Add dirent-safer.
18207         * modules/savedir (Depends-on): Likewise.
18208         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
18209         * modules/chdir-long (Depends-on): Add openat-safer.
18210
18211         openat-safer: new module
18212         * modules/openat-safer: New file.
18213         * lib/openat-safer.c: Likewise.
18214         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
18215         * lib/fcntl-safer.h (openat_safer): Declare.
18216         * lib/fcntl--.h (openat): Override.
18217         * MODULES.html.sh (File descriptor based I/O): Mention it.
18218         * lib/openat.h: Add double-inclusion guards.
18219         * lib/openat.c (includes): Only include "fcntl-safer.h", not
18220         "fcntl--.h", so we can implement openat.
18221         * modules/openat-safer-tests: New test.
18222         * tests/test-openat-safer.c: New file.
18223
18224         dirent-safer: new module
18225         * modules/dirent-safer: New file.
18226         * lib/dirent--.h: Likewise.
18227         * lib/dirent-safer.h: Likewise.
18228         * lib/opendir-safer.c: Likewise.
18229         * m4/dirent-safer.m4: Likewise.
18230         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
18231         * modules/dirent-safer-tests: New test.
18232         * tests/test-dirent-safer.c: New file.
18233         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
18234
18235         fdopendir: optimize on mingw
18236         * lib/unistd.in.h (_gl_directory_name): New prototype.
18237         * lib/fchdir.c (_gl_directory_name): Implement it.
18238         (fchdir): Use it to simplify implementation.
18239         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
18240         fchdir, when available, to avoid calling [f]chdir().
18241
18242         fdopendir: split into its own module
18243         * lib/openat.c (fdopendir): Move...
18244         * lib/fdopendir.c: ...into new file.
18245         * modules/fdopendir: New module.
18246         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
18247         * modules/openat (Depends-on): Add fdopendir.
18248         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
18249         fdopendir here.
18250         * modules/savedir (Depends-on): Only need fdopendir, not full
18251         openat.
18252         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
18253         * lib/openat.h (fdopendir): Drop prototype.
18254         * lib/dirent.in.h (fdopendir): Provide prototype.
18255         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
18256         * modules/dirent (Makefile.am): Substitute them.
18257         * MODULES.html.sh (File system functions): Mention it.
18258         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
18259         * modules/fdopendir-tests: New file.
18260         * tests/test-fdopendir.c: Likewise.
18261
18262         fchdir: use more consistent macro convention
18263         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
18264         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
18265         REPLACE_FCHDIR, rather than relying on config.h macros.
18266         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
18267         inside a single make-time REPLACE_FCHDIR block, rather than using
18268         the config.h FCHDIR_REPLACEMENT.
18269         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
18270         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
18271         Manage fstat replacement.
18272         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
18273         REPLACE_FCHDIR.
18274         * modules/sys_stat (Files): Add m4/unistd_h.m4.
18275         (Makefile.am): Substitute REPLACE_FCHDIR.
18276         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
18277         FCHDIR_REPLACEMENT.
18278         * lib/dup-safer.c (dup_safer): Likewise.
18279         * lib/dup2.c (rpl_dup2): Likewise.
18280         * lib/dup3.c (rpl_dup3): Likewise.
18281         * lib/open.c (rpl_open): Likewise.
18282
18283         fchdir: simplify error handling, and support dup3
18284         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
18285         stdbool, malloc-posix, realloc-posix.
18286         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
18287         (ensure_dirs_slot): Return false on allocation failure.
18288         (rpl_dup2): Delete.
18289         (_gl_register_dup): New function.
18290         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
18291         (_gl_register_fd): Close fd on allocation failure.
18292         * lib/fcntl.in.h (_gl_register_fd): Update signature.
18293         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
18294         prototype.
18295         (rpl_dup2_fchdir): Delete prototype.
18296         * lib/open.c (open): Update caller.
18297         * lib/dup2.c (dup2): Track fchdir metadata.
18298         * lib/dup3.c (dup3): Likewise.
18299         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
18300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
18301
18302 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18303
18304         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
18305         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
18306         don't pass arguments to AC_OUTPUT.
18307
18308 2009-09-02  Bruno Haible  <bruno@clisp.org>
18309
18310         * modules/mkdtemp (License): Relicense under LGPLv2+.
18311         Reported by Paolo Bonzini.
18312
18313 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18314
18315         Replace uses of obsolete autoconf macros in Jim's modules.
18316         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
18317         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
18318         can evoke a warning from autoconf when run with -Wobsolete
18319         enabled.  They were declared obsolete for good reasons (see
18320         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
18321         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
18322         should not continue using the deprecated macros.
18323         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
18324         obsolete Autoconf macros with modern counterparts.
18325         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18326         * m4/dos.m4 (gl_AC_DOS): Likewise.
18327         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
18328         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18329         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
18330         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
18331         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
18332         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18333         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
18334         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
18335         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18336         Likewise.
18337         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18338         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18339         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
18340         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
18341         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18342         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
18343
18344 2009-09-01  Eric Blake  <ebb9@byu.net>
18345
18346         fchdir: fix off-by-one bug in previous patch
18347         * lib/fchdir.c (rpl_fstat): Use correct bounds.
18348         (_gl_unregister_fd): Delete useless if.
18349
18350 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
18351
18352         maint.mk: sort the list of syntax-check rules
18353         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
18354         easier to get a sense of progress when the rules are run sequentially
18355         and take a long time.
18356
18357 2009-09-01  Simon Josefsson  <simon@josefsson.org>
18358
18359         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
18360         * modules/netinet_in: Likewise.
18361         * modules/sys_file: Likewise.
18362         * modules/sys_ioctl: Likewise.
18363         * modules/sys_select: Likewise.
18364         * modules/sys_socket: Likewise.
18365         * modules/sys_stat: Likewise.
18366         * modules/sys_time: Likewise.
18367         * modules/sys_times: Likewise.
18368         * modules/sys_utsname: Likewise.
18369         * modules/sys_wait: Likewise.
18370
18371 2009-09-01  Jim Meyering  <meyering@redhat.com>
18372
18373         fts: help ensure that return values are not ignored
18374         * lib/fts_.h (__GNUC_PREREQ): Define.
18375         (__attribute_warn_unused_result__): Define.
18376         (fts_children, fts_close, fts_open, fts_read): Declare with
18377         __attribute_warn_unused_result__.
18378
18379         fts: fts_close now fails also when closing a dir file descriptor fails
18380         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
18381         and propagate to caller, along with errno.
18382
18383         announce-gen: correct formatting in --help output
18384         * build-aux/announce-gen (usage): Move the one-line description in
18385         --help output "up", to where it belongs, just after Usage:.
18386
18387 2009-08-31  Eric Blake  <ebb9@byu.net>
18388
18389         fchdir: port to mingw
18390         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
18391         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
18392         opened, then use a substitute.
18393         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
18394         replacement.
18395         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
18396         (_gl_register_fd): No need to check stat if open already filters
18397         all directories.
18398         (fchdir): Fix error condition to match POSIX.
18399         * modules/fchdir (Depends-on): Add sys_stat.
18400         * doc/posix-functions/open.texi (open): Document the limitation.
18401         * modules/fchdir-tests: New file.
18402         * tests/test-fchdir.c: Likewise.
18403
18404         canonicalize: allow cross-testing from cygwin to mingw
18405         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
18406         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
18407         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
18408         Likewise.
18409         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
18410         target does not support symlinks.
18411         * tests/test-canonicalize-lgpl.sh: Likewise.
18412
18413         chown: avoid compilation warning on mingw
18414         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
18415         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
18416         mingw.
18417         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18418         * modules/chown (Depends-on): Add errno.
18419
18420 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18421
18422         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
18423         command.
18424
18425 2009-08-31  Jim Meyering  <meyering@redhat.com>
18426
18427         canonicalize: remove useless initialization
18428         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
18429         initialization of local, "end".
18430
18431 2009-08-30  Bruno Haible  <bruno@clisp.org>
18432
18433         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
18434         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
18435         ENOSYS.
18436
18437 2009-08-30  Bruno Haible  <bruno@clisp.org>
18438
18439         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
18440         /usr/xpg4/bin/tr when it exists.
18441         * tests/test-pipe-filter-gi1.sh: Likewise.
18442
18443 2009-08-30  Bruno Haible  <bruno@clisp.org>
18444
18445         Work around deficient /usr/bin/id program on Solaris.
18446         * tests/test-file-has-acl.sh (ID): New variable.
18447         * tests/test-set-mode-acl.sh (ID): Likewise.
18448         * tests/test-copy-acl.sh (ID): Likewise.
18449         * tests/test-copy-file.sh (ID): Likewise.
18450
18451 2009-08-30  Bruno Haible  <bruno@clisp.org>
18452
18453         New module 'xstriconveh'.
18454         * lib/xstriconveh.h: New file.
18455         * lib/xstriconveh.c: New file.
18456         * modules/xstriconveh: New file.
18457
18458 2009-08-30  Bruno Haible  <bruno@clisp.org>
18459
18460         Make it easier to use mem_cd_iconveh.
18461         * lib/striconveh.h (iconveh_t): New type.
18462         (iconveh_open, iconveh_close): New declarations.
18463         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
18464         with a single 'const iconveh_t *' argument.
18465         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
18466         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
18467         with a single 'const iconveh_t *' argument.
18468         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
18469         * tests/test-striconveh.c (main): Update.
18470         * NEWS: Mention the change.
18471
18472 2009-08-30  Bruno Haible  <bruno@clisp.org>
18473
18474         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
18475         problem.
18476
18477 2009-08-30  Bruno Haible  <bruno@clisp.org>
18478
18479         Work around iconv_open problem on Solaris.
18480         * lib/iconv_open-solaris.gperf: New file.
18481         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
18482         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
18483         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
18484         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
18485         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
18486         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
18487
18488 2009-08-29  Jim Meyering  <meyering@redhat.com>
18489
18490         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
18491         * top/maint.mk (cvs-check): Remove target; it was just an alias
18492         to the better-named vc-diff-check.
18493         (maintainer-distcheck): Remove rule.  It was used only from
18494         the (alpha/beta/major) target, and all of its commands but one
18495         were coreutils-specific.
18496         (vc-dist): Remove rule.
18497         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
18498         Run vc-diff-check, not vc-dist.
18499         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
18500
18501 2009-08-27  Bruno Haible  <bruno@clisp.org>
18502
18503         * tests/test-bitrotate.c (main): Remove test that uses a shift count
18504         of 0.
18505
18506 2009-08-27  Bruno Haible  <bruno@clisp.org>
18507
18508         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
18509         compilers.
18510         * doc/func.texi: Document the SunPRO C bug.
18511
18512 2009-08-27  Bruno Haible  <bruno@clisp.org>
18513
18514         Fix link error on Solaris.
18515         * tests/test-parse-duration.c (xstrdup): Remove function.
18516
18517 2009-08-26  Pádraig Brady  <P@draigbrady.com>
18518
18519         ignore-value: handle pointer types, too
18520         * lib/ignore-value.h (__attribute__): Remove definition.
18521         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
18522         of a more concise and more-often effective "(void) i" statement.
18523         (ignore_ptr): New function to suppress warnings from functions that
18524         return pointers, and to make it explicit that one function doesn't
18525         handle all cases.
18526
18527 2009-08-25  Bruno Haible  <bruno@clisp.org>
18528
18529         dup2: work around a Linux bug.
18530         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
18531         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
18532         * doc/posix-functions/dup2.texi: Mention the Linux bug.
18533         Reported by Simon Josefsson.
18534
18535 2009-08-25  Jim Meyering  <meyering@redhat.com>
18536
18537         libguestfs uses gnulib
18538         * users.txt: Add libguestfs.
18539
18540 2009-08-24  Eric Blake  <ebb9@byu.net>
18541
18542         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
18543         * lib/pipe2.c (includes): Add binary-io.h.
18544         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
18545
18546 2009-08-24  Bruno Haible  <bruno@clisp.org>
18547
18548         Tolerate declared but missing accept4 syscall.
18549         * lib/accept4.c (accept4): Invoke original accept4 function first, if
18550         available.
18551         * lib/sys_socket.in.h (accept4): If the function is already present,
18552         override it.
18553         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
18554         * modules/accept4 (Makefile.am): Compile accept4.c always.
18555         Reported by Paolo Bonzini and Eric Blake.
18556
18557 2009-08-23  Bruno Haible  <bruno@clisp.org>
18558
18559         New module 'accept4'.
18560         * lib/sys_socket.in.h (accept4): New declaration.
18561         * lib/accept4.c: New file.
18562         * m4/accept4.m4: New file.
18563         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18564         GNULIB_ACCEPT4, HAVE_ACCEPT4.
18565         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
18566         HAVE_ACCEPT4.
18567         * modules/accept4: New file.
18568         * doc/glibc-functions/accept4.texi: Mention the new module.
18569
18570 2009-08-24  Jim Meyering  <meyering@redhat.com>
18571
18572         progname: also set global program_invocation_name, when possible
18573         Before this change, a libtool-enabled program that calls glibc's
18574         error function would report the program name as
18575         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
18576         * modules/progname (configure.ac): Check for a declaration of
18577         program_invocation_name.
18578         * lib/progname.c:  Include <errno.h>.
18579         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
18580         Set program_invocation_name.
18581
18582 2009-08-23  Bruno Haible  <bruno@clisp.org>
18583
18584         * lib/dup3.c: Include <string.h>.
18585
18586 2009-08-23  Bruno Haible  <bruno@clisp.org>
18587
18588         * lib/dup3.c (dup3): Test only once whether the system actually exists.
18589         * lib/pipe2.c (pipe2): Likewise.
18590         Suggested by Eric Blake.
18591
18592 2009-08-23  Bruno Haible  <bruno@clisp.org>
18593
18594         Tolerate declared but missing dup3 syscall.
18595         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
18596         * lib/unistd.in.h (dup3): If the function is already present,
18597         override it.
18598         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
18599         * modules/dup3 (Makefile.am): Compile dup3.c always.
18600         Reported by Paolo Bonzini.
18601
18602 2009-08-23  Bruno Haible  <bruno@clisp.org>
18603
18604         Tolerate declared but missing pipe2 syscall.
18605         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
18606         available.
18607         * lib/unistd.in.h (pipe2): If the function is already present,
18608         override it.
18609         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
18610         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
18611         Reported by Paolo Bonzini.
18612
18613 2009-08-23  Bruno Haible  <bruno@clisp.org>
18614
18615         * lib/pipe2.c (pipe2): Move #ifs inside function.
18616
18617 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18618
18619         quotearg: document limitations of quote_these_too
18620         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
18621         those limitations are created.
18622         * lib/quotearg.h (set_char_quoting): Document that digits and
18623         letters that are special after backslash are not permitted.
18624         (quotearg_char): Cross-reference set_char_quoting documentation.
18625
18626 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
18627
18628         quotearg: implement custom_quoting_style
18629         * lib/quotearg.c: (struct quoting_options): Add left_quote and
18630         right_quote fields.
18631         (set_custom_quoting): New public function.
18632         (quotearg_buffer_restyled): Add left_quote and right_quote
18633         arguments, handle them very much like locale quoting, and update
18634         all uses.
18635         (quotearg_n_custom): New public function.
18636         (quotearg_n_custom_mem): New public function.
18637         (quotearg_custom): New public function.
18638         (quotearg_custom_mem): New public function.
18639         * lib/quotearg.h: Prototype and document new public functions.
18640         (enum quoting_style): For escape_quoting_style and
18641         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
18642         ignored even though they're otherwise like c_quoting_style.
18643         Add custom_quoting_style member and document with comparison to
18644         clocale_quoting_style.
18645         * tests/test-quotearg.c (custom_quotes): New array.
18646         (custom_results): New array.
18647         (main): Extend to test custom quoting.
18648
18649 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18650
18651         quotearg: fix right quote escaping when it's in quote_these_too
18652         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
18653         quote, be sure to prepend only one backslash.
18654         * tests/test-quotearg.c (use_quote_double_quotes): New function.
18655         (main): Test it.
18656
18657 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18658
18659         quotearg-tests: test escaping of embedded locale quotes
18660         * tests/test-quotearg.c (struct result_strings): Add member for
18661         new input.
18662         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
18663         (inputs): Add new input.
18664         (results_g): Add expected results.
18665         (flag_results): Likewise.
18666         (locale_results): Likewise.
18667         (compare_strings): Check those.
18668
18669 2009-08-23  Bruno Haible  <bruno@clisp.org>
18670
18671         Tests for module 'dup3'.
18672         * modules/dup3-tests: New file.
18673         * tests/test-dup3.c: New file.
18674
18675         New module 'dup3'.
18676         * lib/unistd.in.h (dup3): New declaration.
18677         * lib/dup3.c: New file.
18678         * m4/dup3.m4: New file.
18679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
18680         HAVE_DUP3.
18681         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
18682         * modules/dup3: New file.
18683         * doc/glibc-functions/dup3.texi: Mention the new module.
18684
18685 2009-08-23  Bruno Haible  <bruno@clisp.org>
18686
18687         Tweak the dup2 test.
18688         * tests/test-dup2.c (main): Create the test file empty. Verify that an
18689         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
18690         the test file is still empty. Fix argument order of lseek.
18691
18692 2009-08-23  Bruno Haible  <bruno@clisp.org>
18693
18694         Avoid test link errors when the modules getopt-gnu, gettext are used.
18695         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
18696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18697
18698 2009-08-23  Bruno Haible  <bruno@clisp.org>
18699
18700         Fix getdtablesize() on mingw.
18701         * lib/getdtablesize.c (getdtablesize): Implement differently.
18702         * lib/unistd.in.h (getdtablesize): Improve comment.
18703
18704 2009-08-23  Bruno Haible  <bruno@clisp.org>
18705
18706         New module 'mkostemp'.
18707         Based on Ulrich Drepper's 2007-08-10 change in glibc.
18708         * lib/stdlib.in.h (mksotemp): New declaration.
18709         * lib/mkostemp.c: New file, from glibc with modifications.
18710         * lib/tempname.h (GT_FILE): Remove outdated comment.
18711         (gen_tempname): Add flags argument.
18712         * lib/tempname.c (__GT_BIGFILE): Remove macro.
18713         (__GT_FILE): Map to 1.
18714         (small_open, large_open): Remove macros.
18715         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
18716         * lib/mkstemp.c (mkstemp): Update.
18717         * lib/mkdtemp.c (mkdtemp): Likewise.
18718         * m4/mkostemp.m4: New file.
18719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
18720         HAVE_MKOSTEMP.
18721         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
18722         HAVE_MKOSTEMP.
18723         * modules/mkostemp: New file, based on modules/mkstemp.
18724         * doc/glibc-functions/mkostemp.texi: Mention the new module.
18725         * NEWS: Mention the change.
18726
18727 2009-08-23  Bruno Haible  <bruno@clisp.org>
18728
18729         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
18730         Reported by Eric Blake.
18731
18732 2009-08-23  Bruno Haible  <bruno@clisp.org>
18733
18734         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
18735         Reported by Eric Blake.
18736
18737 2009-08-23  Bruno Haible  <bruno@clisp.org>
18738
18739         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
18740         * modules/pipe2 (Depends-on): Likewise.
18741
18742 2009-08-23  Eric Blake  <ebb9@byu.net>
18743
18744         fcntl-h: add O_TTY_INIT support
18745         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
18746         * tests/test-fcntl-h.c (o): Test it.
18747         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18748
18749         fcntl-h: rename from fcntl, in preparation for fcntl(2)
18750         * modules/fcntl: Move <fcntl.h> header replacement...
18751         * modules/fcntl-h: ...to new name, so as not to collide with
18752         like-named function.
18753         * tests/test-fcntl.c: Rename...
18754         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
18755         * modules/fcntl-tests: Rename...
18756         * modules/fcntl-h-tests: ...to this.  Update test file name.
18757         * modules/chdir-long (Depends-on): Update clients.
18758         * modules/chdir-safer (Depends-on): Likewise.
18759         * modules/fcntl-safer (Depends-on): Likewise.
18760         * modules/fts (Depends-on): Likewise.
18761         * modules/mkancesdirs (Depends-on): Likewise.
18762         * modules/mkdir-p (Depends-on): Likewise.
18763         * modules/open (Depends-on): Likewise.
18764         * modules/savewd (Depends-on): Likewise.
18765         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
18766         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18767
18768 2009-08-22  Bruno Haible  <bruno@clisp.org>
18769
18770         * modules/binary-io (License): Relicense under LGPL.
18771         * modules/pipe2 (License): Likewise.
18772
18773 2009-08-22  Bruno Haible  <bruno@clisp.org>
18774
18775         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
18776         return value.
18777         * lib/pipe-filter-gi.c (filter_init): Likewise.
18778         Reported by Eric Blake.
18779
18780 2009-08-22  Bruno Haible  <bruno@clisp.org>
18781
18782         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
18783         * modules/pipe (Depends-on): Add pipe2.
18784
18785 2009-08-22  Bruno Haible  <bruno@clisp.org>
18786
18787         Tests for module 'pipe2'.
18788         * modules/pipe2-tests: New file.
18789         * tests/test-pipe2.c: New file.
18790
18791         New module 'pipe2'.
18792         * lib/unistd.in.h (pipe2): New declaration.
18793         * lib/pipe2.c: New file.
18794         * m4/pipe2.m4: New file.
18795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
18796         HAVE_PIPE2.
18797         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
18798         * modules/pipe2: New file.
18799         * doc/glibc-functions/pipe2.texi: Mention the new module.
18800
18801 2009-08-22  Bruno Haible  <bruno@clisp.org>
18802
18803         Reference some new glibc functions.
18804         * doc/glibc-functions/accept4.texi: New file.
18805         * doc/glibc-functions/dup3.texi: New file.
18806         * doc/glibc-functions/mkostemp.texi: New file.
18807         * doc/glibc-functions/pipe2.texi: New file.
18808         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
18809         (Glibc sys/socket.h): Refer to accept4.
18810         (Glibc unistd.h): Refer to dup3, pipe2.
18811         Reported by Eric Blake.
18812
18813 2009-08-22  Jim Meyering  <meyering@redhat.com>
18814             Bruno Haible  <bruno@clisp.org>
18815
18816         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
18817         This makes it so packages using automake-1.11's silent-rules option
18818         can print e.g., a single "GEN    configmake.h" line, rather than
18819         the 30+ statements that perform the job.  If you want to see the
18820         actual commands, you can still run "make V=1".
18821         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
18822         so that make output is abbreviated when those variables are defined
18823         appropriately.
18824         * modules/argz: Likewise.
18825         * modules/arpa_inet: Likewise.
18826         * modules/byteswap: Likewise.
18827         * modules/configmake: Likewise.
18828         * modules/dirent: Likewise.
18829         * modules/errno: Likewise.
18830         * modules/fcntl: Likewise.
18831         * modules/float: Likewise.
18832         * modules/fnmatch: Likewise.
18833         * modules/getopt-posix: Likewise.
18834         * modules/glob: Likewise.
18835         * modules/iconv_open: Likewise.
18836         * modules/inttypes: Likewise.
18837         * modules/localcharset: Likewise.
18838         * modules/locale: Likewise.
18839         * modules/math: Likewise.
18840         * modules/netdb: Likewise.
18841         * modules/netinet_in: Likewise.
18842         * modules/poll: Likewise.
18843         * modules/posix_spawnp-tests: Likewise.
18844         * modules/sched: Likewise.
18845         * modules/search: Likewise.
18846         * modules/selinux-h: Likewise.
18847         * modules/signal: Likewise.
18848         * modules/spawn: Likewise.
18849         * modules/stdarg: Likewise.
18850         * modules/stdbool: Likewise.
18851         * modules/stddef: Likewise.
18852         * modules/stdint: Likewise.
18853         * modules/stdio: Likewise.
18854         * modules/stdlib: Likewise.
18855         * modules/string: Likewise.
18856         * modules/strings: Likewise.
18857         * modules/sys_file: Likewise.
18858         * modules/sys_ioctl: Likewise.
18859         * modules/sys_select: Likewise.
18860         * modules/sys_socket: Likewise.
18861         * modules/sys_stat: Likewise.
18862         * modules/sys_time: Likewise.
18863         * modules/sys_times: Likewise.
18864         * modules/sys_utsname: Likewise.
18865         * modules/sys_wait: Likewise.
18866         * modules/sysexits: Likewise.
18867         * modules/time: Likewise.
18868         * modules/unistd: Likewise.
18869         * modules/wchar: Likewise.
18870         * modules/wctype: Likewise.
18871
18872 2009-08-22  Jim Meyering  <meyering@redhat.com>
18873
18874         announce-gen: detect write failure
18875         * build-aux/announce-gen: Add Coda at end.
18876         Remove equivalent-but-more-verbose block at top.
18877
18878 2009-08-19  Akim Demaille  <demaille@gostai.com>
18879
18880         bootstrap: --help to stdout.
18881         * bootstrap (usage): Don't send --help to stderr.
18882         Use a here doc instead of a long string.
18883
18884 2009-08-21  Eric Blake  <ebb9@byu.net>
18885
18886         test-popen-safer: split from test-popen
18887         * tests/test-popen.c (main): Move...
18888         * tests/test-popen.h: ...into new file.
18889         * tests/test-popen-safer2.c: New file.
18890         * modules/popen-tests (Files): Add test-popen.h.
18891         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
18892         Suggested by Bruno Haible.
18893
18894         test-fcntl-safer: split from test-open
18895         * tests/test-open.c (main): Move...
18896         * tests/test-open.h: ...into new file.
18897         * tests/test-fcntl-safer.c: New file.
18898         * modules/open-tests (Files): Add test-open.h.
18899         * modules/fcntl-safer-tests: New file.
18900         Suggested by Bruno Haible.
18901
18902         test-fopen-safer: split from test-fopen
18903         * tests/test-fopen.c (main): Move...
18904         * tests/test-fopen.h: ...into new file.
18905         * tests/test-fopen-safer.c: New file.
18906         * modules/fopen-tests (Files): Add test-fopen.h.
18907         * modules/fopen-safer-tests: New file.
18908         Suggested by Bruno Haible.
18909
18910 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18911
18912         popen-safer: test O_CLOEXEC at run-time.
18913         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
18914
18915 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18916
18917         fcntl: move more flags to the header
18918         * lib/cloexec.c: Do not define FD_CLOEXEC here.
18919         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
18920         * lib/fcntl.in.h: Do both things here.
18921
18922 2009-08-21  Jim Meyering  <meyering@redhat.com>
18923
18924         consistently remove $@-t before redirecting to it
18925         * modules/argz: Remove $@-t and $@ before redirecting to the former.
18926         * modules/alloca-opt: Likewise.
18927         * modules/byteswap: Likewise.
18928         * modules/fnmatch: Likewise.
18929         * modules/getopt-posix: Likewise.
18930         * modules/glob: Likewise.
18931         * modules/poll: Likewise.
18932         * modules/posix_spawnp-tests: Likewise.
18933         * modules/sys_socket: Likewise.
18934         * modules/sysexits: Likewise.
18935
18936 2009-08-21  Eric Blake  <ebb9@byu.net>
18937
18938         popen: simplify access to original popen
18939         * lib/popen.c (rpl_popen): No need to worry about popen being a
18940         macro.
18941         Reported by Bruno Haible.
18942
18943 2009-08-20  Eric Blake  <ebb9@byu.net>
18944
18945         build: avoid some compiler warnings
18946         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
18947         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
18948         type.
18949         (new_exclude_segment, excluded_file_pattern_p)
18950         (excluded_file_name_p): Reduce scope.
18951         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
18952         old-style declaration.
18953
18954 2009-08-20  Simon Josefsson  <simon@josefsson.org>
18955
18956         * tests/test-exclude1.sh: Handle Windows EOL.
18957         * tests/test-exclude2.sh: Likewise.
18958         * tests/test-exclude3.sh: Likewise.
18959         * tests/test-exclude4.sh: Likewise.
18960         * tests/test-exclude5.sh: Likewise.
18961         * tests/test-exclude6.sh: Likewise.
18962         * tests/test-exclude7.sh: Likewise.
18963
18964 2009-08-19  Akim Demaille  <demaille@gostai.com>
18965
18966         bootstrap: find sha1sum when named gsha1sum.
18967         * bootstrap (find_tool): New.
18968         ($SHA1SUM): New.
18969         Use it.
18970
18971 2009-08-20  Jim Meyering  <meyering@redhat.com>
18972
18973         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
18974         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
18975         expression that converts "." in a file name to "\." in the resulting
18976         regexp.  Start with a dummy statement, so that prior shell variable
18977         definitions are expanded portably.  Reported by Simon Josefsson.
18978
18979 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
18980
18981         Fix polling for writeability of a screen buffer.
18982         * lib/poll.c: Distinguish input and screen buffers for the
18983         Win32 implementation.
18984         * lib/select.c: Likewise.
18985
18986 2009-08-19  Eric Blake  <ebb9@byu.net>
18987
18988         popen-safer: prevent popen from clobbering std descriptors
18989         * modules/popen-safer: New file.
18990         * lib/popen-safer.c: Likewise.
18991         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
18992         * lib/stdio--.h (popen): Provide override.
18993         * lib/stdio-safer.h (popen_safer): Provide declaration.
18994         * tests/test-popen.c (includes): Partially test this.
18995         * modules/popen-safer-tests: New file, for more tests.
18996         * tests/test-popen-safer.c: Likewise.
18997         * MODULES.html.sh (file stream based Input/Output): Mention it.
18998
18999         tests: test some of the *-safer modules
19000         * modules/fopen-safer (Depends-on): Add fopen.
19001         * modules/fcntl-safer (Depends-on): Add fcntl.
19002         * modules/stdlib-safer (Depends-on): Add stdlib.
19003         (configure.ac): Set indicator.
19004         * modules/unistd-safer (configure.ac): Likewise.
19005         * modules/tmpfile-safer (configure.ac): Likewise.
19006         (Depends-on): Add tmpfile.
19007         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
19008         active.
19009         * tests/test-fopen.c (includes): Test safer versions when they are
19010         in use.
19011         * tests/test-open.c (includes): Likewise.
19012
19013         popen: fix cygwin 1.5 bug when stdin closed
19014         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
19015         * modules/popen: New file.
19016         * modules/popen-tests: Likewise.
19017         * tests/test-popen.c: Likewise.
19018         * m4/popen.m4: Likewise.
19019         * lib/popen.c: Likewise.
19020         * lib/stdio.in.h (popen): New declaration.
19021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
19022         * modules/stdio (Makefile.am): Likewise.
19023         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
19024
19025 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
19026
19027         maint.mk: give full control over update-copyright exclusions
19028         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
19029         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
19030         (update-copyright): Don't force inclusion of top-level
19031         ChangeLog.  Don't force exclusion of all COPYING files, but make
19032         them the default exclusion instead.
19033
19034 2009-08-16  Bruno Haible  <bruno@clisp.org>
19035
19036         Fix test failures on Solaris 10.
19037         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
19038         tests when Solaris iconv() is used.
19039         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19040         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19041         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19042         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19043         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19044
19045 2009-08-16  Bruno Haible  <bruno@clisp.org>
19046
19047         Fix test failures on Solaris 10.
19048         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
19049         'tr' program and pass it as first argument.
19050         * tests/test-pipe-filter-gi1.sh: Likewise.
19051         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
19052         program as first argument.
19053         * tests/test-pipe-filter-gi1.c (main): Likewise.
19054
19055 2009-08-16  Eric Blake  <ebb9@byu.net>
19056
19057         fpurge: fix previous commits
19058         * modules/fpurge (Makefile.am): Make replacement conditional,
19059         partially reverting 2007-04-29 change; missed in previous
19060         attempt.
19061         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
19062         is missing.
19063
19064 2009-08-16  Bruno Haible  <bruno@clisp.org>
19065
19066         Clarify fpurge's effect on the file position.
19067         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
19068         * tests/test-fpurge.c (main): Make a second pass for checking the file
19069         position.
19070
19071 2009-08-16  Bruno Haible  <bruno@clisp.org>
19072
19073         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
19074         declaration of fpurge is missing.
19075         * tests/test-fpurge.c (main): Check that the file has not more contents
19076         than expected. Close the file before removing it.
19077
19078 2009-08-15  Eric Blake  <ebb9@byu.net>
19079
19080         fpurge: don't wrap working cygwin implementation
19081         * lib/fpurge.c (fpurge): Fix comment typo.
19082         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
19083         1.7 to avoid replacement.
19084         * tests/test-fpurge.c (main): Enhance test.
19085
19086 2009-08-15  Eric Blake  <ebb9@byu.net>
19087         and Jim Meyering  <meyering@redhat.com>
19088
19089         test-update-copyright: skip if perl is insufficient
19090         * tests/test-update-copyright.sh: Failure to run maintainer tool
19091         should not cause testsuite failure on cygwin 1.5.
19092
19093 2009-08-14  Eric Blake  <ebb9@byu.net>
19094
19095         doc: mention more functions added in cygwin 1.7.0
19096         * doc/posix-headers/limits.texi (limits.h): Update for recent
19097         cygwin additions.
19098         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
19099         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19100         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
19101         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
19102         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
19103
19104 2009-08-14  Eric Blake  <ebb9@byu.net>
19105
19106         maint.mk: simplify update-copyright rule
19107         * top/maint.mk (update-copyright-local): Delete, and document how
19108         to do it in cfg.mk instead.
19109         (update-copyright-exclude-regexp): Delete, and document how to do
19110         it in .x-update-copyright instead.
19111         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
19112         exclude ChangeLog.
19113
19114 2009-08-14  Bruno Haible  <bruno@clisp.org>
19115
19116         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
19117
19118 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19119
19120         maint.mk: support update-copyright-env
19121         * top/maint.mk (update-copyright-env): Define place-holder.
19122         (update-copyright): Expand $(update-copyright-env) before
19123         invoking update-copyright.
19124
19125 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19126
19127         update-copyright: implement forced reformatting
19128         * build-aux/update-copyright: Implement and document
19129         UPDATE_COPYRIGHT_FORCE.
19130         * tests/test-update-copyright.sh: Test it.
19131
19132 2009-08-14  Eric Blake  <ebb9@byu.net>
19133         and Bruno Haible  <bruno@clisp.org>
19134
19135         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
19136         * tests/test-locale.c: Revert previous patch related to NULL.
19137         * tests/test-stdio.c: Likewise.
19138         * tests/test-stdlib.c: Likewise.
19139         * tests/test-string.c: Likewise.
19140         * tests/test-unistd.c: Likewise.
19141         * modules/time-tests (Depends-on): Add verify.
19142         * modules/wchar-tests (Depends-on): Likewise.
19143         * tests/test-time.c: Test for NULL compliance.
19144         * tests/test-wchar.c: Likewise.
19145         * modules/locale (Depends-on): Add stddef.
19146         * modules/stdio (Depends-on): Likewise.
19147         * modules/stdlib (Depends-on): Likewise.
19148         * modules/string (Depends-on): Likewise.
19149         * modules/time (Depends-on): Likewise.
19150         * modules/unistd (Depends-on): Likewise.
19151         * modules/wchar (Depends-on): Likewise.
19152         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
19153         * lib/stdlib.in.h (includes): Likewise.
19154         * lib/string.in.h (includes): Likewise.
19155         * lib/time.in.h (includes): Likewise.
19156         * lib/unistd.in.h (includes): Likewise.
19157         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
19158         replaced.
19159         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19160         * m4/stddef_h.m4: New file.
19161         * modules/stddef: Likewise.
19162         * lib/stddef.in.h: Likewise.
19163         * modules/stddef-tests: Likewise.
19164         * tests/test-stddef.c: Likewise.
19165         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
19166         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
19167         * doc/posix-headers/locale.texi (locale.h): Likewise.
19168         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
19169         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19170         * doc/posix-headers/string.texi (string.h): Likewise.
19171         * doc/posix-headers/time.texi (time.h): Likewise.
19172         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
19173         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
19174
19175 2009-08-14  Eric Blake  <ebb9@byu.net>
19176
19177         doc: improve git diff of texinfo files
19178         * .gitattributes: Add rule for *.texi files, with hint on how to
19179         use it.
19180         Copied from m4, and based on a report by Bruno Haible.
19181
19182 2009-08-14  Bruno Haible  <bruno@clisp.org>
19183
19184         Disable multithread support by default on Cygwin 1.5.x for real.
19185         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
19186
19187 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19188
19189         update-copyright: much ado about intervals
19190         * build-aux/update-copyright: Implement and document
19191         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
19192         of copyright year intervals.
19193         Also, document UPDATE_COPYRIGHT_YEAR.
19194         * tests/test-update-copyright.sh: Test it.
19195
19196         update-copyright: convert 2-digit to 4-digit years
19197         * build-aux/update-copyright: Implement and document.
19198         * tests/test-update-copyright.sh: Update.
19199
19200 2009-08-14  Jim Meyering  <meyering@redhat.com>
19201
19202         test-exclude: avoid coreutils "make check" failure
19203         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
19204         just as in test-argmatch.c.
19205
19206 2009-08-13  Eric Blake  <ebb9@byu.net>
19207
19208         test-dup2: fix bad assumption
19209         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
19210         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
19211
19212         test-version-etc: fix CRLF portability issue
19213         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
19214         recognize \r.
19215         * tests/test-argp-version-etc-1.sh: Likewise.
19216
19217         getopt: update client modules
19218         * modules/argp (Depends-on): Use getopt-gnu.
19219         * modules/git-merge-changelog (Depends-on): Likewise.
19220         * modules/long-options (Depends-on): Likewise.
19221         * modules/xstrtol (Depends-on): Likewise.
19222
19223 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19224
19225         * tests/test-version-etc.sh: Don't fail on different
19226         project/version.  Don't fail on CRLF differences.  Rewrite to use
19227         multiple -e instead of multiple sed forks, suggested by Eric Blake
19228         <ebb9@byu.net>.
19229         * tests/test-argp-version-etc-1.sh: Likewise.
19230
19231 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19232
19233         * tests/test-version-etc.sh: Don't fail on different
19234         project/version.
19235
19236 2009-08-12  Bruno Haible  <bruno@clisp.org>
19237
19238         Tests for modules 'getopt-posix', 'getopt-gnu'.
19239         * modules/getopt-posix-tests: New file.
19240         * tests/test-getopt.c: New file.
19241         * tests/test-getopt.h: New file.
19242         * tests/test-getopt_long.h: New file.
19243
19244         New modules 'getopt-posix', 'getopt-gnu'.
19245         * modules/getopt-gnu: New file, renamed from modules/getopt.
19246         * modules/getopt-posix: New file.
19247         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
19248         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
19249         (gl_GETOPT): Remove macro.
19250         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
19251         Disable the test against BSD systems that declare optreset. Test
19252         against mingw bug. Test against lack of support of optional arguments
19253         on many platforms.
19254         * doc/glibc-headers/getopt.texi: Update module name and list of
19255         relevant platforms.
19256         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
19257         'getopt-gnu' and more portability problems.
19258         * NEWS: Mention the changes.
19259
19260 2009-08-12  Bruno Haible  <bruno@clisp.org>
19261
19262         Ensure that optarg etc. get declared by <unistd.h>.
19263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
19264         AC_USE_SYSTEM_EXTENSIONS.
19265         * modules/getopt (Depends-on): Add 'extensions'.
19266
19267 2009-08-12  Bruno Haible  <bruno@clisp.org>
19268
19269         Avoid test link errors.
19270         * modules/pipe-filter-ii-tests (Makefile.am): Define
19271         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
19272         * modules/pipe-filter-gi-tests (Makefile.am): Define
19273         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
19274         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19275
19276 2009-08-12  Bruno Haible  <bruno@clisp.org>
19277
19278         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
19279         gl_GETOPT_SUBSTITUTE before.
19280         (gl_GETOPT): Use it.
19281         * m4/argp.m4 (gl_ARGP): Update.
19282         Reported by Sergey Poznyakoff.
19283
19284         * m4/getopt.m4: Reorder macros.
19285         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
19286         (gl_GETOPT_SUBSTITUTE): Remove macro.
19287
19288 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19289
19290         Minor improvement in gitlog-to-changelog
19291
19292         * build-aux/gitlog-to-changelog: New option `--format' makes
19293         output format string configurable.
19294
19295 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19296
19297         Optimize exclude: use hash tables for non-wildcard patterns.
19298
19299         * lib/exclude.c: Include hash.h and mbuiter.h
19300         (struct exclude_pattern, exclude_segment): New data types.
19301         (struct exclude): Rewrite.
19302         (fnmatch_pattern_has_wildcards): New function.
19303         (new_exclude_segment, free_exclude_segment): New functions.
19304         (excluded_file_pattern_p, excluded_file_name_p): New functions.
19305         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
19306         * lib/exclude.h (is_fnmatch_pattern): New prototype.
19307         * modules/exclude: Depend on hash and mbuiter.
19308
19309         * modules/exclude-tests: New file.
19310         * tests/test-exclude.c: New file.
19311         * tests/test-exclude1.sh: New file.
19312         * tests/test-exclude2.sh: New file.
19313         * tests/test-exclude3.sh: New file.
19314         * tests/test-exclude4.sh: New file.
19315         * tests/test-exclude5.sh: New file.
19316         * tests/test-exclude6.sh: New file.
19317         * tests/test-exclude7.sh: New file.
19318
19319 2009-08-12  Bruno Haible  <bruno@clisp.org>
19320
19321         Ensure that getopt() gets declared by <unistd.h>.
19322         * lib/unistd.in.h: Conditionally include getopt.h.
19323         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
19324         Set GNULIB_UNISTD_H_GETOPT.
19325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19326         GNULIB_UNISTD_H_GETOPT.
19327         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
19328
19329 2009-08-12  Bruno Haible  <bruno@clisp.org>
19330
19331         Clarify logic.
19332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
19333         gl_replace_getopt instead of GETOPT_H.
19334
19335 2009-08-12  Bruno Haible  <bruno@clisp.org>
19336
19337         * m4/getopt.m4: Add comments.
19338
19339 2009-08-12  Bruno Haible  <bruno@clisp.org>
19340
19341         Disable multithread support by default on Cygwin 1.5.x.
19342         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
19343         set gl_use_threads=no if not specified otherwise.
19344
19345 2009-08-11  Bruno Haible  <bruno@clisp.org>
19346
19347         Avoid compilation error on NetBSD 5.0.
19348         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
19349         * tests/test-stdio.c: Likewise.
19350         * tests/test-stdlib.c: Likewise.
19351         * tests/test-string.c: Likewise.
19352         * tests/test-unistd.c: Likewise.
19353         Reported by Greg Troxel <gdt@ir.bbn.com>
19354         at <https://savannah.gnu.org/support/?106973>.
19355
19356 2009-08-11  Bruno Haible  <bruno@clisp.org>
19357
19358         * modules/dup2-tests (Depends-on): Remove close.
19359
19360         Undo 2009-07-19 commit.
19361         * modules/acl-tests (Depends-on): Remove close.
19362         * modules/binary-io-tests (Depends-on): Likewise.
19363         * modules/closein-tests (Depends-on): Likewise.
19364         * modules/flock-tests (Depends-on): Likewise.
19365         * modules/fsync-tests (Depends-on): Likewise.
19366         * modules/lseek-tests (Depends-on): Likewise.
19367         * modules/pipe-tests (Depends-on): Likewise.
19368         * modules/posix_spawn-tests (Depends-on): Likewise.
19369         * modules/posix_spawnp-tests (Depends-on): Likewise.
19370         * modules/stat-time-tests (Depends-on): Likewise.
19371         * modules/yesno-tests (Depends-on): Likewise.
19372
19373 2009-08-10  Bruno Haible  <bruno@clisp.org>
19374
19375         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
19376
19377 2009-08-10  Bruno Haible  <bruno@clisp.org>
19378
19379         Fix a gcc warning.
19380         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
19381
19382 2009-08-10  Bruno Haible  <bruno@clisp.org>
19383
19384         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
19385         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
19386         not only the first time.
19387         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
19388         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
19389         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
19390         is 1, not only the the first time.
19391
19392 2009-08-10  Bruno Haible  <bruno@clisp.org>
19393
19394         Make it possible to use module 'gethostname' without module 'close'.
19395         * lib/unistd.in.h (close): Evoke a link error only if
19396         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19398         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19399         * modules/unistd (Makefile.am): Substitute
19400         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19401         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
19402         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19403         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19404         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19405         * modules/sys_ioctl (Makefile.am): Substitute
19406         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19407         * modules/socket (configure.ac): On native Windows, set
19408         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
19409         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19410         Reported by Sam Steingold <sds@gnu.org>.
19411
19412 2009-08-10  Bruno Haible  <bruno@clisp.org>
19413
19414         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
19415         * modules/ioctl (configure.ac): Likewise.
19416
19417 2009-08-10  Bruno Haible  <bruno@clisp.org>
19418
19419         Avoid collision between gnulib wrapper and libintl wrapper.
19420         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
19421         already defined in intl/printf.c.
19422         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
19423         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
19424
19425 2009-08-09  Bruno Haible  <bruno@clisp.org>
19426
19427         Make <sys/select.h> really self-contained, also on Solaris 10.
19428         * lib/sys_select.in.h: Include <string.h>.
19429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
19430         Solaris 10 problem.
19431         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
19432         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
19433         Reported by Jim Meyering.
19434
19435 2009-08-09  Bruno Haible  <bruno@clisp.org>
19436
19437         Avoid warnings from 'aclocal' that are due to a use of macro name
19438         AM_XGETTEXT_OPTION that is not defined in automake.
19439         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
19440         automake.
19441         * modules/error (configure.ac): Likewise.
19442         * modules/propername (configure.ac): Likewise.
19443         * modules/vasprintf (configure.ac): Likewise.
19444         * modules/verror (configure.ac): Likewise.
19445         * modules/xprintf (configure.ac): Likewise.
19446         * modules/xvasprintf (configure.ac): Likewise.
19447
19448 2009-08-08  Bruno Haible  <bruno@clisp.org>
19449
19450         Avoid compilation error in C++ mode.
19451         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
19452         Reported by Sam Steingold <sds@gnu.org>.
19453
19454 2009-08-08  Bruno Haible  <bruno@clisp.org>
19455
19456         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
19457         for the various Unix platforms.
19458         * doc/posix-headers/limits.texi: Update platforms list regarding
19459         HOST_NAME_MAX.
19460         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19461
19462 2009-08-07  Jim Meyering  <meyering@redhat.com>
19463
19464         selinux-at: fix typo in a comment
19465         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
19466         Spotted by Paolo Bonzini.
19467
19468         selinux-at: remove redundant m4 code, add documentation
19469         * modules/selinux-at (configure.ac): Remove redundant code.
19470         LIB_SELINUX is already set via the dependent module, selinux-h.
19471         (Include): Add quotes around selinux-at.h.
19472         * lib/selinux-at.h: Add documentation.
19473         Reported by Bruno Haible in
19474         http://marc.info/?l=gnulib-bug&m=124958988300749
19475
19476 2009-08-07  Bruno Haible  <bruno@clisp.org>
19477
19478         Avoid link error on MacOS X 10.3 and 10.4.
19479         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
19480         on non-ELF systems.
19481         * lib/argp-pv.c (argp_program_version): Likewise.
19482         Reported by Simon Josefsson.
19483
19484 2009-08-07  Simon Josefsson  <simon@josefsson.org>
19485
19486         * tests/test-version-etc.sh: Use $EXEEXT.
19487
19488 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
19489
19490         update-copyright: update documentation to point to maint.mk
19491         * build-aux/update-copyright: Here.
19492
19493 2009-08-06  Jim Meyering  <meyering@redhat.com>
19494
19495         maint.mk: support update-copyright-local
19496         * top/maint.mk (update-copyright-local): Define place-holder.
19497         (update-copyright): Depend on $(update-copyright-local).
19498
19499 2009-08-06  Jim Meyering  <meyering@redhat.com>
19500
19501         selinux-at: new module
19502         Initially written for coreutils, this module will soon be
19503         used by findutils, too.
19504         * MODULES.html.sh [Misc]: Add selinux-at.
19505         * lib/selinux-at.h: New file, from coreutils.
19506         * lib/selinux-at.c: Likewise.
19507         * modules/selinux-at: Likewise.
19508         (License): Change from LGPL to GPL, since it depends
19509         on the GPL'd openat module.
19510
19511         doc: update README
19512         * README: Remove references to cogito.
19513         Remove cvs-repo-updating instructions from 2007.
19514         Don't imply that CVS is better if you have limited disk space.
19515
19516 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19517
19518         update-copyright: support C-style comments
19519         * build-aux/update-copyright: Implement and document.
19520         * tests/test-update-copyright.sh: Test.
19521
19522 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19523
19524         update-copyright: support omitted "(C)"
19525         * build-aux/update-copyright: Implement and document.  Also,
19526         allow variable whitespace before "(C)".
19527         * tests/test-update-copyright.sh: Test.
19528
19529 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19530
19531         update-copyright: don't trip on non-FSF copyright statements
19532         * build-aux/update-copyright: Fix so that the first correctly
19533         formatted FSF copyright statement is recognized no matter what
19534         appears before it.  Update documentation.
19535         * tests/test-update-copyright.sh: Test that.
19536
19537 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19538
19539         update-copyright: clean up code a little
19540         * build-aux/update-copyright: Append "_re" to the name of any
19541         variable holding a regular expression.
19542         Replace "old" and "new" with "stmt" in variable names.
19543         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
19544         handled correctly.
19545         Format code more consistently.
19546
19547 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19548
19549         update-copyright-tests: improve portability
19550         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
19551         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
19552
19553 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19554
19555         update-copyright: support @copyright{} and &copy;
19556         * build-aux/update-copyright: Implement and document.
19557         * tests/test-update-copyright.sh: Test.
19558
19559 2009-08-04  Jim Meyering  <meyering@redhat.com>
19560
19561         update-copyright-tests: correctly test EOL=\r\n handling
19562         * tests/test-update-copyright.sh: Put \r at the end of some lines
19563         for the dos-eol tests.  Based on a patch by Joel E. Denny.
19564
19565         maint.mk: make update-copyright exclusion list more configurable
19566         * top/maint.mk (update-copyright): Default to excluding COPYING,
19567         but allow an override, in case someone does want to update that file.
19568
19569         maint.mk: don't update copyright date in COPYING
19570         * top/maint.mk (update-copyright): Exclude COPYING.
19571
19572         maint.mk: add a copyright-updating rule
19573         * top/maint.mk (update-copyright): New rule.
19574         Derived from coreutils/Makefile.am.
19575
19576         update-copyright: rename some variables
19577         * build-aux/update-copyright: Rename a few variables for clarity.
19578         Tweak syntax.  List Joel E. Denny as coauthor.
19579
19580 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
19581
19582         update-copyright: fix bug for 2-digit last year and add tests
19583         * build-aux/update-copyright: Fix bug.
19584         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
19585         specified.
19586         * modules/update-copyright-tests: New
19587         * tests/test-update-copyright.sh: New.
19588
19589 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19590
19591         update-copyright: handle leading tabs in line prefix
19592         * build-aux/update-copyright: Count leading tabs as 8 spaces
19593         when computing margin.  This helps with the formatting of
19594         ChangeLogs, for example.
19595         Fix documentation a little.
19596
19597 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19598
19599         update-copyright: support EOL=\r\n
19600         * build-aux/update-copyright: Implement that.
19601
19602 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
19603
19604         update-copyright: automatically format copyright statements
19605         * build-aux/update-copyright: Implement that.
19606         Also, be a little more predictable and safer by always failing
19607         when the full copyright format is not perfectly recognized as an
19608         unbroken whole.  Discussed at
19609         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
19610         Rewrite documentation.
19611
19612 2009-08-03  Bruno Haible  <bruno@clisp.org>
19613
19614         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
19615
19616 2009-08-02  Bruno Haible  <bruno@clisp.org>
19617
19618         Tests for module 'uname'.
19619         * modules/uname-tests: New file.
19620         * tests/test-uname.c: New file.
19621
19622         New module 'uname'.
19623         * lib/uname.c: New file.
19624         * m4/uname.m4: New file.
19625         * modules/uname: New file.
19626         * doc/posix-functions/uname.texi: Mention the new module.
19627
19628 2009-08-02  Bruno Haible  <bruno@clisp.org>
19629
19630         Tests for module 'sys_utsname'.
19631         * modules/sys_utsname-tests: New file.
19632         * tests/test-sys_utsname.c: New file.
19633
19634         New module 'sys_utsname'.
19635         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
19636         * m4/sys_utsname_h.m4: New file.
19637         * modules/sys_utsname: New file.
19638         * doc/posix-headers/sys_utsname.texi: Mention the new module.
19639
19640 2009-08-02  Bruno Haible  <bruno@clisp.org>
19641
19642         Implicitly initialize the sockets library.
19643         * lib/gethostname.c: Include sockets.h.
19644         (rpl_gethostname): Invoke gl_sockets_startup.
19645         * lib/socket.c: Include sockets.h.
19646         (rpl_socket): Invoke gl_sockets_startup.
19647         * modules/gethostname (Depends-on): Add sockets.
19648         * modules/socket (Depends-on): Likewise.
19649         * tests/test-poll.c: Don't include sockets.h.
19650         (main): Don't invoke gl_sockets_startup.
19651         * tests/test-select.c: Don't include sockets.h.
19652         (main): Don't invoke gl_sockets_startup.
19653
19654 2009-08-02  Bruno Haible  <bruno@clisp.org>
19655
19656         Allow multiple calls to gl_sockets_startup.
19657         * lib/sockets.c (initialized_sockets_version): New variable.
19658         (gl_sockets_startup): Do nothing if already called for this or a higher
19659         version.
19660         (gl_sockets_cleanup): Reset initialized_sockets_version.
19661
19662 2009-08-03  Simon Josefsson  <simon@josefsson.org>
19663
19664         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
19665         different project/version.
19666
19667 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
19668             Bruno Haible  <bruno@clisp.org>
19669
19670         Tests for module 'pipe-filter-gi'.
19671         * modules/pipe-filter-gi-tests: New file.
19672         * tests/test-pipe-filter-gi1.sh: New file.
19673         * tests/test-pipe-filter-gi1.c: New file.
19674         * tests/test-pipe-filter-gi2.sh: New file.
19675         * tests/test-pipe-filter-gi2-main.c: New file.
19676         * tests/test-pipe-filter-gi2-child.c: New file.
19677
19678         New module 'pipe-filter-gi'.
19679         * lib/pipe-filter-gi.c: New file.
19680         * modules/pipe-filter-gi: New file.
19681
19682 2009-08-02  Bruno Haible  <bruno@clisp.org>
19683             Paolo Bonzini  <bonzini@gnu.org>
19684
19685         Tests for module 'pipe-filter-ii'.
19686         * modules/pipe-filter-ii-tests: New file.
19687         * tests/test-pipe-filter-ii1.sh: New file.
19688         * tests/test-pipe-filter-ii1.c: New file.
19689         * tests/test-pipe-filter-ii2.sh: New file.
19690         * tests/test-pipe-filter-ii2-main.c: New file.
19691         * tests/test-pipe-filter-ii2-child.c: New file.
19692
19693         New module 'pipe-filter-ii'.
19694         * lib/pipe-filter.h: New file.
19695         * lib/pipe-filter-ii.c: New file.
19696         * lib/pipe-filter-aux.h: New file.
19697         * modules/pipe-filter-ii: New file.
19698
19699 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19700
19701         * lib/gc-libgcrypt.c: Change copyright to FSF.
19702         * lib/gc-gnulib.c: Likewise.
19703
19704 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
19705
19706         * lib/gethostname.c: Include limits.h.
19707
19708 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19709             Bruno Haible  <bruno@clisp.org>
19710
19711         Ensure HOST_NAME_MAX as part of the gethostname module.
19712         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
19713         define also HOST_NAME_MAX.
19714         * tests/test-gethostname.c: Include <limits.h>.
19715         (main): Check also HOST_NAME_MAX.
19716         * doc/posix-headers/limits.texi: Document the mingw problem.
19717
19718 2009-08-02  Bruno Haible  <bruno@clisp.org>
19719
19720         * lib/gethostname.c (gethostname): Fix handling of large len argument.
19721         Add comments.
19722
19723 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19724
19725         * lib/gethostname.c: Add Windows wrapper.
19726         * m4/gethostname.m4: Look for gethostname in -lws2_32.
19727         * modules/gethostname: Depend on sys_socket & errno, for also
19728         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
19729         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
19730
19731 2009-07-31  Jim Meyering  <meyering@redhat.com>
19732
19733         getloadavg: fix symbol name in comment
19734         * lib/getloadavg.c: Correct a typo I introduced when adding
19735         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
19736         Matt Kraai spotted the problem.
19737
19738 2009-07-29  Matt Kraai  <mkraai@beckman.com>
19739
19740         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
19741         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
19742         code also if ! defined N_NAME_POINTER.
19743         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
19744         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
19745         but the n_name member is a 12-byte array.
19746
19747 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
19748
19749         update-copyright: generalize comment handling
19750         * build-aux/update-copyright: Handle copyright statements
19751         within more comment styles.
19752         Document usage.
19753         Report any file with an external copyright holder or parse failure.
19754
19755 2009-07-29  Jim Meyering  <meyering@redhat.com>
19756
19757         mktime: correct setting of REPLACE_MKTIME
19758         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
19759
19760         update-copyright: new module
19761         * modules/update-copyright: New file.
19762         * build-aux/update-copyright: New file.
19763         * MODULES.html.sh (maint+release support): Add update-copyright.
19764
19765 2009-07-27  Bruno Haible  <bruno@clisp.org>
19766
19767         Fix compilation error when <ctime> is used and mktime is replaced.
19768         * lib/time.in.h (mktime): New declaration.
19769         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
19770         REPLACE_MKTIME instead of defining mktime in config.h.
19771         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
19772         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
19773         Reported by Ross McFarland <rwmcfa1@neces.com>.
19774
19775 2009-07-27  Bruno Haible  <bruno@clisp.org>
19776
19777         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
19778         Reported by Matt Kraai <mkraai@beckman.com>.
19779
19780 2009-07-25  Jim Meyering  <meyering@redhat.com>
19781
19782         maint.mk: avoid warnings about missing files
19783         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
19784         diagnostic when .prev-version does not exist.
19785         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
19786         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
19787         nonexistent cfg.mk.
19788         Suggestions from Simon Josefsson.
19789
19790 2009-07-25  Bruno Haible  <bruno@clisp.org>
19791
19792         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
19793         defined as macros. Needed on QNX 6.4.1.
19794         Reported by Matt Kraai <mkraai@beckman.com>.
19795
19796 2009-07-23  Jim Meyering  <meyering@redhat.com>
19797
19798         maint.mk: invoke "make dist" with a working value of XZ_OPT
19799         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
19800
19801 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
19802
19803         Make fseeko.c compile on QNX.
19804         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
19805
19806 2009-07-22  Peter Simons  <simons@cryp.to>
19807
19808         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
19809         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
19810         * lib/md4.h: Likewise.
19811         * lib/md5.h: Likewise.
19812         * lib/sha1.h: Likewise.
19813         * lib/sha256.h: Likewise.
19814         * lib/sha512.h: Likewise.
19815
19816         tests-sha1: don't assign literal string to 'char *' variable
19817         * tests/test-sha1.c (main): Declare locals with "const" to match
19818         attributes of the right hand side.
19819
19820 2009-07-21  Eric Blake  <ebb9@byu.net>
19821
19822         dup2: fix more mingw problems
19823         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
19824         fd to itself.
19825         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19826         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
19827         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
19828         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
19829         care of mingw bugs.
19830
19831 2009-07-21  Jim Meyering  <meyering@redhat.com>
19832
19833         vc-list-files: avoid failure when /bin/sh is dash
19834         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
19835         On some Debian based systems, /bin/sh is a symlink to dash, and running
19836         this command would omit the "/" following each 'tests' prefix:
19837           dash -x build-aux/vc-list-files -C . tests
19838         That is because bash and dash work differently:
19839           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
19840           bash ok
19841           dash odd
19842
19843 2009-07-21  Eric Blake  <ebb9@byu.net>
19844
19845         dup2-tests: test previous patch
19846         * modules/dup2-tests: New file.
19847         * tests/test-dup2.c: Likewise.
19848         * tests/test-open.c (main): Avoid unspecified behavior.
19849         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
19850         test.
19851
19852         dup2: work around mingw and cygwin 1.5 bug
19853         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
19854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19855         * modules/unistd (Makefile.am): Substitute it.
19856         * lib/unistd.in.h (dup2): Declare the replacement.
19857         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
19858         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
19859         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
19860         * modules/execute (Depends-on): Add dup2.
19861         * modules/fseterr (Depends-on): Likewise.
19862         * modules/pipe (Depends-on): Likewise.
19863         * modules/posix_spawn-internal (Depends-on): Likewise.
19864
19865 2009-07-21  Bruno Haible  <bruno@clisp.org>
19866
19867         * modules/.gitattributes: New file.
19868
19869 2009-07-20  Bruno Haible  <bruno@clisp.org>
19870
19871         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
19872         (main): Use it.
19873
19874 2009-07-20  Eric Blake  <ebb9@byu.net>
19875
19876         test-pipe: make a bit more robust.
19877         * tests/test-pipe.c (myerr): Allow error messages regardless of
19878         what we do to stderr.
19879         (test_pipe): Rearrange to avoid deadlock.
19880         (child_main): Try a larger read, to ensure we avoided deadlock.
19881         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
19882         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
19883         if misused.
19884
19885 2009-07-19  Jim Meyering  <meyering@redhat.com>
19886
19887         fts: avoid false-positive cycle-detection
19888         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
19889         for each new command line argument.
19890
19891 2009-07-19  Bruno Haible  <bruno@clisp.org>
19892
19893         Fix build error on mingw with the modules sys_select and unistd.
19894         * modules/acl-tests (Depends-on): Add close.
19895         * modules/binary-io-tests (Depends-on): Likewise.
19896         * modules/closein-tests (Depends-on): Likewise.
19897         * modules/flock-tests (Depends-on): Likewise.
19898         * modules/fsync-tests (Depends-on): Likewise.
19899         * modules/lseek-tests (Depends-on): Likewise.
19900         * modules/pipe-tests (Depends-on): Likewise.
19901         * modules/posix_spawn-tests (Depends-on): Likewise.
19902         * modules/posix_spawnp-tests (Depends-on): Likewise.
19903         * modules/stat-time-tests (Depends-on): Likewise.
19904         * modules/yesno-tests (Depends-on): Likewise.
19905
19906 2009-07-19  Bruno Haible  <bruno@clisp.org>
19907
19908         Unify conditionals.
19909         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
19910         macros, not at the compiler macros.
19911         * lib/pipe.c: Likewise.
19912         * lib/execute.c: Likewise.
19913         * lib/spawni.c: Likewise.
19914
19915 2009-07-19  Bruno Haible  <bruno@clisp.org>
19916
19917         Fix handling of closed stdin/stdout/stderr on mingw.
19918         * lib/w32spawn.h: Include unistd.h.
19919         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
19920         file descriptor with O_NOINHERIT flag.
19921         (fd_safer_noinherit): New function, based on fd-safer.c.
19922         (dup_safer_noinherit): New function, based on dup-safer.c.
19923         (undup_safer_noinherit): New function.
19924         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
19925         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
19926         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
19927         instead of fd_safer.
19928         * tests/test-pipe.c: Include <windows.h>.
19929         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
19930
19931         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
19932         from main.
19933         (test_pipe): Pass an extra argument for disambiguation.
19934         (main): Invoke parent_main or child_main.
19935
19936         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
19937         consistently.
19938
19939 2009-07-18  Eric Blake  <ebb9@byu.net>
19940
19941         test-pipe: fix mingw build
19942         * tests/test-pipe.c (main): Avoid fcntl on mingw.
19943
19944 2009-07-18  Bruno Haible  <bruno@clisp.org>
19945
19946         * modules/pipe-tests (Makefile.am): Fix typo.
19947
19948 2009-07-18  Eric Blake  <ebb9@byu.net>
19949
19950         error: fix mingw build
19951         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
19952         Reported by Bruno Haible.
19953
19954         error: avoid undefined use of stdout
19955         * lib/error.c (error, error_at_line): Check that fd 1 is open
19956         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
19957         is handling faults and the close_stdout module wants to report the
19958         detection of closed stdout as an error.
19959
19960 2009-07-17  Eric Blake  <ebb9@byu.net>
19961
19962         pipe: be robust in face of closed fds
19963         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
19964         should cause child to misbehave.
19965         * modules/pipe-tests: New module.
19966         * tests/test-pipe.c: New file.
19967         * tests/test-pipe.sh: New file.
19968         Reported by Akim Demaille.
19969
19970 2009-07-14  Bruno Haible  <bruno@clisp.org>
19971
19972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
19973         Reported by anonymous kc.
19974
19975 2009-07-07  Jim Meyering  <meyering@redhat.com>
19976
19977         maint.mk: don't look for translatable strings in *.m4 or *.mk
19978         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
19979         when searching for translatable strings.
19980
19981 2009-07-05  Jim Meyering  <meyering@redhat.com>
19982
19983         remove superfluous parentheses in STREQ definition
19984         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
19985         * lib/getugroups.c (STREQ): Likewise.
19986         * lib/fnmatch.c (STREQ): Likewise.
19987         Spotted by Bruno Haible.
19988
19989 2009-07-04  Jim Meyering  <meyering@redhat.com>
19990
19991         argv-iter: new module
19992         * MODULES.html.sh: Add argv-iter.
19993         * lib/argv-iter.c, lib/argv-iter.h: New files.
19994         * modules/argv-iter: New file.
19995         * modules/argv-iter-tests: New file.
19996         * tests/test-argv-iter.c: Test it.
19997
19998 2009-07-04  Bruno Haible  <bruno@clisp.org>
19999
20000         Fix assertion.
20001         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
20002         contains more exact copies of a given entry than file2, leave the extra
20003         copies unpaired rather than aborting.
20004         Reported by Eric Blake.
20005
20006 2009-07-02  Bruno Haible  <bruno@clisp.org>
20007
20008         Speedup git-merge-changelog for git cherry-pick.
20009         * lib/git-merge-changelog.c (struct entries_mapping): New type.
20010         (entries_mapping_get): New function, extracted from compute_mapping.
20011         (entries_mapping_reverse_get): New function.
20012         (compute_mapping): Add a 'full' argument. Return the result in a
20013         'struct entries_mapping'.
20014         (main): Update. Access the mappings through entries_mapping_get.
20015         Reported by Eric Blake.
20016
20017 2009-07-02  Bruno Haible  <bruno@clisp.org>
20018
20019         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
20020         best_i.
20021
20022 2009-07-02  Bruno Haible  <bruno@clisp.org>
20023
20024         Speed up approximate search for matching ChangeLog entries.
20025         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
20026         argument. Call fstrcmp_bounded instead of fstrcmp.
20027         (compute_mapping, try_split_merged_entry, main): Update callers.
20028
20029 2009-07-02  Bruno Haible  <bruno@clisp.org>
20030
20031         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
20032
20033 2009-06-30  Bruno Haible  <bruno@clisp.org>
20034
20035         Reduce the number of uc_is_cased calls.
20036         * lib/unicase.h (casing_suffix_context_t): Add
20037         'first_char_except_ignorable' field.
20038         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
20039         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
20040         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
20041         Update initializer.
20042         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
20043         case-ignorable characters.
20044         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
20045         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
20046         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
20047         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
20048         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
20049
20050 2009-06-30  Bruno Haible  <bruno@clisp.org>
20051
20052         Tests for module 'unicase/ignorable'.
20053         * modules/unicase/ignorable-tests: New file.
20054         * tests/unicase/test-ignorable.c: New file, generated by
20055         gen-uni-tables.
20056
20057         Tests for module 'unicase/cased'.
20058         * modules/unicase/cased-tests: New file.
20059         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
20060         * tests/unicase/test-predicate-part1.h: New file, derived from
20061         tests/unictype/test-predicate-part1.h.
20062         * tests/unicase/test-predicate-part2.h: New file, same as
20063         tests/unictype/test-predicate-part2.h.
20064
20065         Fix evaluation of "Before C" condition of FINAL_SIGMA.
20066         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
20067         (output_casing_properties): New function.
20068         (main): Call it.
20069         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
20070         * lib/unicase/cased.c: Include unictype/bitmap.h.
20071         (uc_is_cased): Define through a bitmap lookup.
20072         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
20073         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
20074         (uc_is_case_ignorable): Define through a bitmap lookup.
20075         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
20076         lib/unictype/bitmap.h.
20077         (Depends-on): Add inline. Clean up.
20078         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
20079         lib/unictype/bitmap.h.
20080         (Depends-on): Add inline. Clean up.
20081         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
20082         recognition.
20083         * tests/unicase/test-u16-tolower.c (main): Likewise.
20084         * tests/unicase/test-u32-tolower.c (main): Likewise.
20085
20086 2009-06-30  Bruno Haible  <bruno@clisp.org>
20087
20088         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
20089         * lib/unicase/u16-casemap.c: Likewise.
20090         * lib/unicase/u32-casemap.c: Likewise.
20091
20092 2009-06-29  Bruno Haible  <bruno@clisp.org>
20093
20094         Define u32_casefold as a wrapper around u32_ct_casefold.
20095         * lib/unicase/u32-casefold.c: Update.
20096         * modules/unicase/u32-casefold (Depends-on): Add
20097         unicase/u32-ct-casefold, unicase/empty-prefix-context,
20098         unicase/empty-suffix-context. Clean up.
20099
20100         Define u16_casefold as a wrapper around u16_ct_casefold.
20101         * lib/unicase/u16-casefold.c: Update.
20102         * modules/unicase/u16-casefold (Depends-on): Add
20103         unicase/u16-ct-casefold, unicase/empty-prefix-context,
20104         unicase/empty-suffix-context. Clean up.
20105
20106         Define u8_casefold as a wrapper around u8_ct_casefold.
20107         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
20108         * lib/unicase/u8-casefold.c: Update.
20109         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
20110         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20111
20112         Define u32_totitle as a wrapper around u32_ct_totitle.
20113         * lib/unicase/u32-totitle.c: Update.
20114         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
20115         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20116
20117         Define u16_totitle as a wrapper around u16_ct_totitle.
20118         * lib/unicase/u16-totitle.c: Update.
20119         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
20120         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20121
20122         Define u8_totitle as a wrapper around u8_ct_totitle.
20123         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
20124         functions.
20125         (FUNC): Delegate to U_CT_TOTITLE.
20126         * lib/unicase/u8-totitle.c: Update.
20127         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
20128         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20129
20130         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
20131         invocation.
20132         * modules/unicase/u32-tolower (Depends-on): Add
20133         unicase/empty-prefix-context, unicase/empty-suffix-context.
20134
20135         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
20136         invocation.
20137         * modules/unicase/u16-tolower (Depends-on): Add
20138         unicase/empty-prefix-context, unicase/empty-suffix-context.
20139
20140         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
20141         * modules/unicase/u8-tolower (Depends-on): Add
20142         unicase/empty-prefix-context, unicase/empty-suffix-context.
20143
20144         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
20145         invocation.
20146         * modules/unicase/u32-toupper (Depends-on): Add
20147         unicase/empty-prefix-context, unicase/empty-suffix-context.
20148
20149         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
20150         invocation.
20151         * modules/unicase/u16-toupper (Depends-on): Add
20152         unicase/empty-prefix-context, unicase/empty-suffix-context.
20153
20154         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
20155         * modules/unicase/u8-toupper (Depends-on): Add
20156         unicase/empty-prefix-context, unicase/empty-suffix-context.
20157
20158         New module 'unicase/u32-ct-casefold'.
20159         * lib/unicase/u32-ct-casefold.c: New file.
20160         * modules/unicase/u32-ct-casefold: New file.
20161
20162         New module 'unicase/u16-ct-casefold'.
20163         * lib/unicase/u16-ct-casefold.c: New file.
20164         * modules/unicase/u16-ct-casefold: New file.
20165
20166         New module 'unicase/u8-ct-casefold'.
20167         * lib/unicase/u8-ct-casefold.c: New file.
20168         * lib/unicase/u-ct-casefold.h: New file, derived from
20169         lib/unicase/u-casefold.h.
20170         * modules/unicase/u8-ct-casefold: New file.
20171
20172         New module 'unicase/u32-ct-totitle'.
20173         * lib/unicase/u32-ct-totitle.c: New file.
20174         * modules/unicase/u32-ct-totitle: New file.
20175
20176         New module 'unicase/u16-ct-totitle'.
20177         * lib/unicase/u16-ct-totitle.c: New file.
20178         * modules/unicase/u16-ct-totitle: New file.
20179
20180         New module 'unicase/u8-ct-totitle'.
20181         * lib/unicase/u8-ct-totitle.c: New file.
20182         * lib/unicase/u-ct-totitle.h: New file, derived from
20183         lib/unicase/u-totitle.h.
20184         * modules/unicase/u8-ct-totitle: New file.
20185
20186         New module 'unicase/u32-ct-tolower'.
20187         * lib/unicase/u32-ct-tolower.c: New file.
20188         * modules/unicase/u32-ct-tolower: New file.
20189
20190         New module 'unicase/u16-ct-tolower'.
20191         * lib/unicase/u16-ct-tolower.c: New file.
20192         * modules/unicase/u16-ct-tolower: New file.
20193
20194         New module 'unicase/u8-ct-tolower'.
20195         * lib/unicase/u8-ct-tolower.c: New file.
20196         * modules/unicase/u8-ct-tolower: New file.
20197
20198         New module 'unicase/u32-ct-toupper'.
20199         * lib/unicase/u32-ct-toupper.c: New file.
20200         * modules/unicase/u32-ct-toupper: New file.
20201
20202         New module 'unicase/u16-ct-toupper'.
20203         * lib/unicase/u16-ct-toupper.c: New file.
20204         * modules/unicase/u16-ct-toupper: New file.
20205
20206         New module 'unicase/u8-ct-toupper'.
20207         * lib/unicase/u8-ct-toupper.c: New file.
20208         * modules/unicase/u8-ct-toupper: New file.
20209
20210         Add context arguments to u*_casemap functions.
20211         * lib/unicase/unicasemap.h: Include unicase.h.
20212         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
20213         suffix_context arguments.
20214         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
20215         functions.
20216         (FUNC): Add prefix_context and suffix_context arguments. Use
20217         uc_is_cased and uc_is_case_ignorable.
20218         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
20219         * lib/unicase/u16-casemap.c: Likewise.
20220         * lib/unicase/u32-casemap.c: Likewise.
20221         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
20222         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20223         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
20224         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20225         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
20226         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20227
20228         New module 'unicase/u32-suffix-context'.
20229         * lib/unicase/u32-suffix-context.c: New file.
20230         * modules/unicase/u32-suffix-context: New file.
20231
20232         New module 'unicase/u16-suffix-context'.
20233         * lib/unicase/u16-suffix-context.c: New file.
20234         * modules/unicase/u16-suffix-context: New file.
20235
20236         New module 'unicase/u8-suffix-context'.
20237         * lib/unicase/u8-suffix-context.c: New file.
20238         * lib/unicase/u-suffix-context.h: New file.
20239         * modules/unicase/u8-suffix-context: New file.
20240
20241         New module 'unicase/empty-suffix-context'.
20242         * lib/unicase/empty-suffix-context.c: New file.
20243         * modules/unicase/empty-suffix-context: New file.
20244
20245         New module 'unicase/u32-prefix-context'.
20246         * lib/unicase/u32-prefix-context.c: New file.
20247         * modules/unicase/u32-prefix-context: New file.
20248
20249         New module 'unicase/u16-prefix-context'.
20250         * lib/unicase/u16-prefix-context.c: New file.
20251         * modules/unicase/u16-prefix-context: New file.
20252
20253         New module 'unicase/u8-prefix-context'.
20254         * lib/unicase/u8-prefix-context.c: New file.
20255         * lib/unicase/u-prefix-context.h: New file.
20256         * lib/unicase/context.h: New file.
20257         * modules/unicase/u8-prefix-context: New file.
20258
20259         New module 'unicase/empty-prefix-context'.
20260         * lib/unicase/empty-prefix-context.c: New file.
20261         * modules/unicase/empty-prefix-context: New file.
20262
20263         New module 'unicase/ignorable'.
20264         * lib/unicase/ignorable.c: New file.
20265         * modules/unicase/ignorable: New file.
20266
20267         New module 'unicase/cased'.
20268         * lib/unicase/caseprop.h: New file.
20269         * lib/unicase/cased.c: New file.
20270         * modules/unicase/cased: New file.
20271
20272         New functions for case mapping of substrings.
20273         * lib/unicase.h (casing_prefix_context_t): New type.
20274         (unicase_empty_prefix_context): New variable.
20275         (u8_casing_prefix_context, u16_casing_prefix_context,
20276         u32_casing_prefix_context, u8_casing_prefixes_context,
20277         u16_casing_prefixes_context, u32_casing_prefixes_context): New
20278         declarations.
20279         (casing_suffix_context_t): New type.
20280         (unicase_empty_suffix_context): New variable.
20281         (u8_casing_suffix_context, u16_casing_suffix_context,
20282         u32_casing_suffix_context, u8_casing_suffixes_context,
20283         u16_casing_suffixes_context, u32_casing_suffixes_context,
20284         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
20285         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
20286         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
20287         declarations.
20288
20289 2009-06-28  Jim Meyering  <meyering@redhat.com>
20290
20291         boostrap: indent only with spaces
20292         * build-aux/bootstrap: Indent only with spaces, never TABs.
20293
20294         bootstrap: split long lines
20295         * build-aux/bootstrap: Keep line length < 80.
20296
20297         bootstrap: sync from coreutils
20298         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
20299         just as autoreconf does.  Verify a list of prerequisite
20300         package-name,version-number pairs if defined in bootstrap.conf.
20301         Refer to README-prereq, if prerequisites are not satisfied.
20302
20303 2009-06-27  Eric Blake  <ebb9@byu.net>
20304
20305         tests: add test for bogus NULL definition
20306         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
20307         * tests/test-stdlib.c: Likewise.
20308         * tests/test-string.c: Likewise.
20309         * tests/test-locale.c: Likewise.
20310         * tests/test-unistd.c: Likewise.
20311         * modules/stdio-tests (Depends-on): Add verify.
20312         * modules/stdlib-tests (Depends-on): Likewise.
20313         * modules/string-tests (Depends-on): Likewise.
20314         * modules/locale-tests (Depends-on): Likewise.
20315         * modules/unistd-tests (Depends-on): Likewise.
20316
20317 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
20318
20319         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
20320         self-explaining comment.
20321         * m4/selinux-selinux-h: Update serial.
20322         (gl_LIBSELINUX): New macro, adding a warning for missing development
20323         packages to code extracted from...
20324         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
20325         Add warning for missing development packages here, too.
20326
20327 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
20328
20329         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
20330
20331 2009-06-25  Eric Blake  <ebb9@byu.net>
20332
20333         version-etc: fix regression
20334         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
20335         gcc.
20336         (version_etc): Use it, to catch bugs with trailing NULL.
20337         * lib/version-etc.c (version_etc_arn): Delete unused argument.
20338         (version_etc_va): Fix logic bug.
20339         * modules/version-etc-tests: Add test.
20340         * tests/test-version-etc.c: New file.
20341         * tests/test-version-etc.sh: Likewise.
20342
20343 2009-06-25  Sam Steingold  <sds@gnu.org>
20344
20345         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
20346         mbtowc declaration.
20347
20348 2009-06-25  Eric Blake  <ebb9@byu.net>
20349
20350         fpurge: migrate into <stdio.h>
20351         * lib/fpurge.h: Delete...
20352         * lib/stdio.in.h (fpurge): ...and declare here, instead.
20353         * lib/fpurge.c (fpurge): Change declaring header.
20354         * modules/fpurge (Files): Drop deleted file.
20355         (Depends-on): Add stdio.
20356         (configure.ac): Set witness.
20357         * modules/stdio (Makefile.am): Support fpurge macros.
20358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20359         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
20360         * lib/fflush.c: Update client.
20361         * tests/test-fpurge.c: Likewise.
20362         * NEWS: Mention the change.
20363
20364 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20365
20366         * lib/argp-version-etc.c (program_authors): Add const
20367         qualifier.
20368         * lib/version-etc.c: Fix typos in the comments.
20369         * modules/argp-version-etc: Depends on version-etc.
20370
20371 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20372
20373         argp-version-etc: new module.
20374
20375         * lib/argp-version-etc.c: New file.
20376         * lib/argp-version-etc.h: New file.
20377         * modules/argp-version-etc: New file.
20378         * modules/argp-version-etc-tests: New file.
20379         * tests/test-argp-version-etc.c: New test.
20380         * tests/test-argp-version-etc-1.sh: New test.
20381
20382 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20383
20384         Provide additional interfaces and documentation for version-etc
20385         module.
20386
20387         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
20388         interfaces.
20389         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
20390         prototypes.
20391
20392 2009-06-24  Bruno Haible  <bruno@clisp.org>
20393
20394         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
20395         HAVE_LIB${NAME} macro.
20396         Reported by Sam Steingold <sds@gnu.org>.
20397
20398 2009-06-23  Simon Josefsson  <simon@josefsson.org>
20399
20400         * modules/hash-tests (test_hash_LDADD): Link to libintl when
20401         needed.
20402
20403 2009-06-21  Bruno Haible  <bruno@clisp.org>
20404
20405         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
20406         work.
20407         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
20408         together with LIB${NAME}, LTLIB${NAME}.
20409         Reported by Sam Steingold <sds@gnu.org>.
20410
20411 2009-06-20  Jim Meyering  <meyering@redhat.com>
20412
20413         tests: make sc_require_test_exit_idiom more generic
20414         * top/maint.mk (Exit_witness_file): New overridable variable.
20415         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
20416         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
20417
20418 2009-06-19  Jim Meyering  <meyering@redhat.com>
20419
20420         hash: reverse order of src/dst parameters in an internal interface
20421         * lib/hash.c (transfer_entries): Reverse order of parameters to
20422         put DST before SRC.  Adjust callers.
20423
20424         tests: test-hash: avoid wholesale duplication
20425         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
20426         Instead, use a loop and add a single conditional.
20427
20428         tests: test-hash: allow seed selection via a command line argument
20429         * tests/test-hash.c (get_seed): New function.
20430         (main): Use it.
20431
20432 2009-06-19  Eric Blake  <ebb9@byu.net>
20433
20434         hash: avoid memory leak on allocation failure
20435         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
20436         failure.  Factor repeated algorithm...
20437         (transfer_entries): ...into new helper routine.
20438         (hash_delete): React to hash_rehash return value.
20439
20440         hash: reduce memory pressure in hash_rehash no-op case
20441         * lib/hash.c (next_prime): Avoid overflow.
20442         (hash_initialize): Factor bucket size computation...
20443         (compute_bucket_size): ...into new helper function.
20444         (hash_rehash): Use new function and open coding to reduce memory
20445         pressure, and avoid a memory leak in USE_OBSTACK code.
20446         Reported by Jim Meyering.
20447
20448 2009-06-18  Eric Blake  <ebb9@byu.net>
20449
20450         hash: make rotation more obvious
20451         * modules/hash (Depends-on): Add bitrotate and stdint.
20452         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
20453         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
20454         (SIZE_MAX): Rely on headers for definition.
20455         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
20456         (raw_hasher): Use rotr_sz.
20457         Suggested by Jim Meyering.
20458
20459         hash: fix memory leak in last patch
20460         * lib/hash.c (hash_rehash): Avoid memory leak.
20461
20462         hash: avoid no-op rehashing
20463         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
20464
20465         hash: provide default callback functions
20466         * lib/hash.c (raw_hasher, raw_comparator): New functions.
20467         (hash_initialize): Use them as defaults.
20468         * tests/test-hash.c (main): Test this.
20469
20470         hash: minor optimization
20471         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
20472         when possible.
20473         (hash_initialize): Document this promise.
20474         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
20475         * tests/test-hash.c (hash_compare_strings): Test this.
20476
20477 2009-06-18  Bruno Haible  <bruno@clisp.org>
20478
20479         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
20480         going to be replaced anyway.
20481
20482 2009-06-18  Bruno Haible  <bruno@clisp.org>
20483
20484         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
20485         in one place.
20486         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
20487         be replaced anyway.
20488
20489 2009-06-18  Eric Blake  <ebb9@byu.net>
20490
20491         hash: check for resize before insertion
20492         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
20493         threshold before insertion, so that a pathological hash_rehash
20494         that fills every bucket can still trigger another rehash.
20495
20496 2009-06-18  Jim Meyering  <meyering@redhat.com>
20497
20498         hash-tests: add a loop around the small tests
20499         * tests/test-hash.c (main): Repeat small tests with selected
20500         small initial table sizes.
20501
20502 2009-06-17  Eric Blake  <ebb9@byu.net>
20503
20504         hash: minor cleanups
20505         * lib/hash.h (hash_entry): Make opaque, by moving...
20506         * lib/hash.c (hash_entry): ...here.
20507         (hash_insert): Clarify restrictions on what can be inserted.
20508         (hash_get_next): Clarify when it is safe to remove an element
20509         during traversal.
20510         (check_tuning): Skip verification when tuning is known safe.
20511         (hash_initialize): Clarify restrictions on tuning.
20512
20513 2009-06-17  Jim Meyering  <jim@meyering.net>
20514         and Eric Blake  <ebb9@byu.net>
20515
20516         hash-tests: new module
20517         * modules/hash-tests: New file.
20518         * tests/test-hash.c: New file.
20519
20520 2009-06-17  Eric Blake  <ebb9@byu.net>
20521
20522         strstr-simple: document new module
20523         * MODULES.html.sh: Document new module.
20524
20525         strstr, strcasestr: replace on platforms with broken memchr
20526         * modules/strstr: Split into...
20527         * modules/strstr-simple: ...new module that does not care about
20528         performance, but does care about glibc bug.
20529         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
20530         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
20531         if platform memchr is broken, per Debian bug 521737.
20532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
20533         memchr.
20534         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
20535         * doc/posix-functions/strstr.texi (strstr): Document the fix.
20536         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20537         * modules/mountlist (Depends-on): Add strstr-simple.
20538         * modules/gen-uni-tables (Depends-on): Likewise.
20539         * modules/argz (Depends-on): Add strstr.
20540
20541 2009-06-17  Bruno Haible  <bruno@clisp.org>
20542
20543         * modules/posix_spawn-internal (Depends-on): Add errno.
20544
20545 2009-06-17  Bruno Haible  <bruno@clisp.org>
20546
20547         Define missing ESTALE on Interix 3.5.
20548         * lib/errno.in.h (ESTALE): Assign a value if missing.
20549         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
20550         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
20551         missing.
20552         * doc/posix-headers/errno.texi: Mention the Interix bug.
20553         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
20554
20555 2009-06-15  Eric Blake  <ebb9@byu.net>
20556
20557         memchr, memchr2: add valgrind exception
20558         * lib/memchr.valgrind: New file.
20559         * lib/memchr2.valgrind: New file.
20560         * modules/memchr (Files): Distribute valgrind file.
20561         * modules/memchr2 (Files): Likewise.
20562
20563         docs: memchr is no longer obsolete
20564         * MODULES.html.sh: Move memchr from obsolete to string.h section.
20565         * lib/string.in.h (memchr): Simplify logic.
20566
20567 2009-06-14  Jim Meyering  <meyering@redhat.com>
20568
20569         link-follow: fix the "checking..." message to not mention trailing slash
20570         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
20571         never considered trailing slashes.
20572
20573 2009-06-14  Bruno Haible  <bruno@clisp.org>
20574
20575         * m4/memchr.m4: Mention also the bug on IA-64.
20576         * doc/posix-functions/memchr.texi: Likewise.
20577
20578 2009-06-12  Eric Blake  <ebb9@byu.net>
20579
20580         memchr: detect broken x86_64 and alpha implementations
20581         * modules/memchr-tests (Depends-on): Move mmap detection...
20582         * modules/memchr (Depends-on): ...here.
20583         (configure.ac): Set indicator.
20584         * lib/string.in.h (memchr): Declare replacement.
20585         * modules/string (Makefile.am): Trigger replacement.
20586         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
20587         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
20588         bugs.
20589         * doc/posix-functions/memchr.texi (memchr): Document the bug.
20590         * modules/getpagesize (License): Relax license.
20591
20592 2009-06-11  Bruno Haible  <bruno@clisp.org>
20593
20594         * lib/idpriv.h: Add more references.
20595
20596 2009-06-08  Bruno Haible  <bruno@clisp.org>
20597
20598         Tests for module 'idpriv-droptemp'.
20599         * modules/idpriv-droptemp-tests: New file.
20600         * tests/test-idpriv-droptemp.sh: New file.
20601         * tests/test-idpriv-droptemp.su.sh: New file.
20602         * tests/test-idpriv-droptemp.c: New file.
20603
20604         New module 'idpriv-droptemp'.
20605         * lib/idpriv-droptemp.c: New file.
20606         * modules/idpriv-droptemp: New file.
20607
20608 2009-06-08  Bruno Haible  <bruno@clisp.org>
20609
20610         Tests for module 'idpriv-drop'.
20611         * modules/idpriv-drop-tests: New file.
20612         * tests/test-idpriv-drop.sh: New file.
20613         * tests/test-idpriv-drop.su.sh: New file.
20614         * tests/test-idpriv-drop.c: New file.
20615
20616         New module 'idpriv-drop'.
20617         * lib/idpriv.h: New file.
20618         * lib-idpriv-drop.c: New file.
20619         * m4/idpriv.m4: New file.
20620         * modules/idpriv-drop: New file.
20621
20622 2009-06-08  Bruno Haible  <bruno@clisp.org>
20623
20624         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
20625         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20626         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20627         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20628         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20629         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20630         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20631
20632 2009-06-08  Eric Blake  <ebb9@byu.net>
20633
20634         test-strstr: use memory fence, when possible
20635         * tests/test-strstr.c (main): Use memory fence, in order to be
20636         more likely to trigger Debian bug 521737.
20637         * modules/strstr-tests (Files): Pull in additional files.
20638
20639         memchr: no longer obsolete, for wider field testing
20640         * modules/memchr (Status, Notice): Delete, this module is no
20641         longer obsolete.
20642         * modules/vasnprintf (Depends-on): Add memchr.
20643
20644 2009-06-07  Jim Meyering  <meyering@redhat.com>
20645
20646         hash: declare some functions with the warn_unused_result attribute
20647         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
20648
20649 2009-06-07  Bruno Haible  <bruno@clisp.org>
20650
20651         * tests/test-alignof.c: Don't test int64_t if it does not exist.
20652         Reported by Eric Blake.
20653
20654 2009-06-06  Eric Blake  <ebb9@byu.net>
20655
20656         test-alignof: fix typo with long double
20657         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
20658         compiler error.
20659
20660 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
20661
20662         Escape non-texinfo { and }s.
20663         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
20664         markup error.
20665
20666 2009-06-04  Jim Meyering  <meyering@redhat.com>
20667
20668         gitlog-to-changelog: don't infloop on an empty commit log
20669         * build-aux/gitlog-to-changelog: Warn about an empty log message.
20670         Reported by Boris Petersen <transacid@centerim.org>.
20671
20672 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
20673
20674         version-etc: extend for packagers
20675         Add three new configure options, intended for packagers:
20676           --with-packager="packager name"
20677           --with-packager-version="packager-specific version"
20678           --with-packager-bug-reports="packager bug reporting"
20679         An example with coreutils:
20680           $ ./configure \
20681             --with-packager=Gentoo \
20682             --with-packager-bug-report=http://bugs.gentoo.org/ \
20683             --with-packager-version="patchset 1.6"
20684           $ ./src/ls --version | head -n2
20685           ls (GNU coreutils) 7.1-dirty
20686           Packaged by Gentoo (patchset 1.6)
20687         Note that the bug reporting info via --help doesn't show up because
20688         coreutils uses its own custom emit_bug_reporting_address() implementation
20689         in src/system.h.  If it didn't, it'd look like:
20690           $ ./src/ls --help | tail -n4
20691           Report bugs to <bug-coreutils@gnu.org>.
20692           Report Gentoo bugs to <http://bugs.gentoo.org/>.
20693           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
20694           General help using GNU software: <http://www.gnu.org/gethelp/>.
20695         * lib/version-etc.c: Print new information, if provided.
20696         * m4/version-etc.m4: New file.
20697         * modules/version-etc (Files): Add m4/version-etc.m4.
20698         (configure.ac): Add gl_VERSION_ETC.
20699
20700 2009-05-31  Bruno Haible  <bruno@clisp.org>
20701
20702         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
20703         and 'int64_t'.
20704         * modules/alignof-tests (Dependencies): Add stdint.
20705         Reported by Eric Blake.
20706
20707 2009-05-31  Bruno Haible  <bruno@clisp.org>
20708
20709         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
20710         restriction due to compiler bugs.
20711         Reported by Eric Blake.
20712
20713 2009-05-31  Simon Josefsson  <simon@josefsson.org>
20714             Bruno Haible  <bruno@clisp.org>
20715
20716         Fix test-alignof failure.
20717         * lib/alignof.h (alignof_slot): New macro.
20718         (alignof_type): New macro, with the same semantics as the previous
20719         'alignof'.
20720         (alignof): Alias to alignof_slot.
20721         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
20722         check that the results are usable as constant expressions.
20723
20724 2009-05-31  Bruno Haible  <bruno@clisp.org>
20725
20726         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
20727         * tests/test-memchr.c (main): Check that memchr does not read past the
20728         first occurrence of the byte.
20729         * tests/test-strstr.c (main): Update comment.
20730         Suggested by Eric Blake.
20731
20732 2009-05-30  Bruno Haible  <bruno@clisp.org>
20733
20734         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
20735         detail how to use dumpbin.
20736         Reported by David Byron <dbyron@dbyron.com>.
20737
20738 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20739
20740         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
20741
20742 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20743
20744         * m4/manywarnings.m4: Add GCC 4.4 warnings.
20745
20746 2009-05-28  Bruno Haible  <bruno@clisp.org>
20747
20748         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
20749         build-aux/ files.
20750
20751 2009-05-28  Simon Josefsson  <simon@josefsson.org>
20752
20753         * gnulib-tool (func_import): Transform license on build-aux/ files too.
20754
20755 2009-05-27  Simon Josefsson  <simon@josefsson.org>
20756
20757         * gnulib-tool (sed_transform_main_lib_file)
20758         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
20759         regexps.
20760
20761 2009-05-26  Simon Josefsson  <simon@josefsson.org>
20762
20763         * tests/test-strstr.c: Add another self-test.
20764         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
20765         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
20766
20767 2009-05-23  Bruno Haible  <bruno@clisp.org>
20768
20769         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
20770         change.
20771
20772 2009-05-21  Bruno Haible  <bruno@clisp.org>
20773
20774         Simplify use of mode_t varargs.
20775         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
20776         uses 'mode_t' or 'int'.
20777         * lib/openat.c (openat): Likewise.
20778         * lib/open-safer.c (open_safer): Likewise.
20779         * m4/mode_t.m4: New file.
20780         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
20781         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
20782         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
20783         * modules/open (Files): Add m4/mode_t.m4.
20784         * modules/openat (Files): Likewise.
20785         * modules/fcntl-safer (Files): Likewise.
20786         Suggested by Eric Blake.
20787
20788 2009-05-21  Pádraig Brady  <P@draigbrady.com>
20789
20790         * doc/glibc-functions/fallocate.texi: New file.
20791         * doc/gnulib.texi: Include it.
20792
20793 2009-05-21  Eric Blake  <ebb9@byu.net>
20794             Bruno Haible  <bruno@clisp.org>
20795
20796         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
20797         invocations.
20798         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20799
20800 2009-05-21  Eric Blake  <ebb9@byu.net>
20801             Bruno Haible  <bruno@clisp.org>
20802
20803         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
20804         include_next. Fix of 2008-11-20 commit.
20805         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
20806         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
20807         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
20808         NEXT_MATH_H.
20809         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
20810         instead of NEXT_MATH_H.
20811
20812 2009-05-21  Bruno Haible  <bruno@clisp.org>
20813
20814         Avoid redefinition warnings for SIZE_MAX.
20815         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
20816         Reported by Simon Josefsson.
20817
20818 2009-05-21  Bruno Haible  <bruno@clisp.org>
20819
20820         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
20821         AC_CACHE_VAL.
20822
20823 2009-05-20  Bruno Haible  <bruno@clisp.org>
20824
20825         Make zeroptr.h work on mingw.
20826         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
20827         mprotect.
20828         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
20829         * modules/memchr2-tests (configure.ac): Likewise.
20830         * modules/memcmp-tests (configure.ac): Likewise.
20831         * modules/memmem-tests (configure.ac): Likewise.
20832         * modules/memrchr-tests (configure.ac): Likewise.
20833         Reported by Simon Josefsson.
20834
20835 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20836
20837         * tests/test-glob.c: Include string.h for strcmp prototype.
20838
20839 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20840
20841         * modules/getdelim (Depends-on): Add explicit stdint, although it
20842         was implicitly already pulled in via realloc-posix.
20843         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
20844
20845 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20846
20847         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
20848         G. Christensen" <tgc@jupiterrise.com>.
20849         * m4/sys_socket_h.m4: Check for sa_family_t.
20850         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
20851         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
20852         * tests/test-sys_socket.c: Check that sa_family_t works.
20853
20854 2009-05-18  Eric Blake  <ebb9@byu.net>
20855
20856         maint.mk: allow gnulib_dir in VPATH build
20857         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
20858
20859 2009-05-15  Jim Meyering  <meyering@redhat.com>
20860
20861         maint.mk: Give gnulib_dir a default definition.
20862         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
20863         Thus, most packages no longer need to specify this variable in cfg.mk
20864
20865 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
20866
20867         rename.m4: fix typos that would make non-mingw cross-configure fail
20868         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
20869
20870 2009-05-13  Eric Blake  <ebb9@byu.net>
20871
20872         mmap-anon: avoid out-of-order autoconf expansion
20873         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
20874         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
20875         * modules/memchr-tests (Depends-on): Add extensions.
20876         * modules/memchr2-tests (Depends-on): Add extensions.
20877         * modules/memcmp-tests (Depends-on): Add extensions.
20878         * modules/memmem-tests (Depends-on): Add extensions.
20879         * modules/memrchr-tests (Depends-on): Add extensions.
20880
20881 2009-05-13  Bruno Haible  <bruno@clisp.org>
20882
20883         Make some tests ISO C 99 compliant.
20884         * tests/zerosize-ptr.h: New file.
20885         * tests/test-memchr.c: Include zerosize-ptr.h.
20886         (main): Use a zero-size object pointer instead of NULL.
20887         * tests/test-memchr2.c: Include zerosize-ptr.h.
20888         (main): Use a zero-size object pointer instead of NULL.
20889         * tests/test-memcmp.c: Include zerosize-ptr.h.
20890         (main): Use a zero-size object pointer instead of NULL.
20891         * tests/test-memmem.c: Include zerosize-ptr.h.
20892         (main): Use a zero-size object pointer instead of NULL.
20893         * tests/test-memrchr.c: Include zerosize-ptr.h.
20894         (main): Use a zero-size object pointer instead of NULL.
20895         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
20896         m4/mmap-anon.m4.
20897         (Depends-on): Add getpagesize.
20898         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20899         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
20900         m4/mmap-anon.m4.
20901         (Depends-on): Add getpagesize.
20902         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20903         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
20904         m4/mmap-anon.m4.
20905         (Depends-on): Add getpagesize.
20906         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20907         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
20908         m4/mmap-anon.m4.
20909         (Depends-on): Add getpagesize.
20910         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20911         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
20912         m4/mmap-anon.m4.
20913         (Depends-on): Add getpagesize.
20914         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20915
20916 2009-05-12  Bruno Haible  <bruno@clisp.org>
20917
20918         Tests for module 'alignof'.
20919         * modules/alignof-tests: New file.
20920         * tests/test-alignof.c: New file.
20921
20922 2009-05-12  Bruno Haible  <bruno@clisp.org>
20923
20924         Fix alignof macro.
20925         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
20926         vendor compilers that are always correct.
20927
20928 2009-05-12  Bruno Haible  <bruno@clisp.org>
20929
20930         Make the MAP_ANONYMOUS detection work on HP-UX 11.
20931         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
20932         not whether its fully works.
20933
20934 2009-05-12  Bruno Haible  <bruno@clisp.org>
20935
20936         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
20937
20938 2009-05-12  Jim Meyering  <meyering@redhat.com>
20939
20940         * top/maint.mk: Adjust backslash alignment.
20941
20942 2009-05-11  Simon Josefsson  <simon@josefsson.org>
20943
20944         * top/maint.mk: Make $(srcdir)/build-aux configurable.
20945
20946 2009-05-11  Eric Blake  <ebb9@byu.net>
20947
20948         argp: avoid undefined behavior
20949         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
20950         macros.
20951
20952 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20953
20954         * tests/test-vc-list-files-git.sh: Do git config of user.email and
20955         user.name to prevent git commit from complaining.
20956
20957 2009-05-10  Bruno Haible  <bruno@clisp.org>
20958
20959         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
20960         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
20961         it rewrites every file name only once.
20962         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
20963
20964 2009-05-08  Bruno Haible  <bruno@clisp.org>
20965
20966         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
20967         instead of 'max'.
20968
20969 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20970
20971         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
20972         sockaddr_storage test.
20973
20974 2009-05-07  Simon Josefsson  <simon@josefsson.org>
20975
20976         * modules/sys_socket (Makefile.am): Substitute
20977         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
20978         * m4/sys_socket_h.m4: Check for sockaddr_storage.
20979         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
20980         * tests/test-sys_socket.c: Check sockaddr_storage.
20981
20982 2009-05-08  Bruno Haible  <bruno@clisp.org>
20983
20984         New module 'alignof'.
20985         * lib/alignof.h: New file.
20986         * modules/alignof: New file.
20987
20988 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20989             Bruno Haible  <bruno@clisp.org>
20990
20991         Fix test-file-has-acl on FreeBSD.
20992         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
20993         mask is implicitly added.
20994         * tests/test-file-has-acl.c: Include <signal.h>.
20995         (main): Terminate the test after 5 seconds.
20996         * modules/acl-tests (configure.ac): Check for alarm function.
20997
20998 2009-05-04  Bruno Haible  <bruno@clisp.org>
20999
21000         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
21001         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
21002         * modules/errno (configure.ac): Drop AC_REQUIRE.
21003         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
21004         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
21005
21006 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21007
21008         * modules/glob-tests: New module.
21009         * tests/test-glob.c: Add.
21010
21011 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21012
21013         * modules/fnmatch-tests: New module.
21014         * tests/test-fnmatch.c: Add.
21015
21016 2009-05-04  Eric Blake  <ebb9@byu.net>
21017
21018         maint: make the new no-submodule-changes rule VPATH-safe
21019         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
21020
21021 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21022             Bruno Haible  <bruno@clisp.org>
21023
21024         acl: Fix infinite loop on FreeBSD.
21025         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
21026         of return value from acl_get_entry.
21027         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
21028         Likewise.
21029
21030 2009-05-03  Bruno Haible  <bruno@clisp.org>
21031
21032         * lib/acl-internal.h (acl_entries): Clarify return value.
21033         * lib/acl_entries.c (acl_entries): Likewise.
21034
21035 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21036
21037         Bug fix in acl module.
21038         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
21039
21040 2009-05-03  Bruno Haible  <bruno@clisp.org>
21041
21042         Create gperf-generated file in the source dir, not in the build dir.
21043         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
21044         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
21045         * modules/unicase/locale-language (unicase/locale-languages.h):
21046         Likewise.
21047         * modules/unicase/special-casing (unicase/special-casing-table.h):
21048         Likewise.
21049         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
21050         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
21051         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
21052         Reported by Ralf Wildenhues.
21053
21054 2009-05-03  Bruno Haible  <bruno@clisp.org>
21055
21056         * modules/fnmatch (Description, configure.ac): Taken from
21057         fnmatch-posix.
21058         * modules/fnmatch-posix: Turn into a symbolic reference to the
21059         'fnmatch' module, and deprecate.
21060         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
21061
21062 2009-05-03  Bruno Haible  <bruno@clisp.org>
21063
21064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
21065         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
21066         Reported by Ralf Wildenhues.
21067
21068 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21069
21070         * m4/fnmatch.m4: Fix fnmatch re-define.
21071
21072 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21073
21074         priv-set: new module and tests; adapt write-any-file
21075         * lib/priv-set.c: New file.
21076         * lib/priv-set.h: New file.
21077         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
21078         * lib/write-any-file.c: Simplify by using priv-set module.
21079         * m4/priv-set.m4: New file.
21080         * modules/priv-set: New file.
21081         * modules/unlinkdir: Add dependency on priv-set module.
21082         * modules/write-any-file: Likewise.
21083
21084         Tests for module 'priv-set'.
21085         * modules/priv-set-tests: New file.
21086         * tests/test-priv-set.c: New file.
21087
21088 2009-05-03  Jim Meyering  <meyering@redhat.com>
21089             Bruno Haible  <bruno@clisp.org>
21090
21091         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
21092         use the converted UTF-8 variant of the name instead.
21093
21094 2009-05-03  Jim Meyering  <meyering@redhat.com>
21095
21096         tests: tighten some getdate tests
21097         * tests/test-getdate.c (main): Tighten tests: require equality,
21098         not just greater than.  Set TZ envvar to UTC0.
21099
21100 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21101
21102         getdate: correctly interpret "next monday" when run on a Monday
21103         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
21104         that e.g., "next tues" (when run on a tuesday) results in a date
21105         that is one week in the future, and not today's date.
21106         I.e., add a week when the wday is the same as the current one.
21107         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
21108         and earlier by Martin Bernreuther and Jan Minář.
21109         * tests/test-getdate.c (main): Check that "next DAY" is always in
21110         the future and that "last DAY" is always in the past.
21111
21112 2009-05-02  Jim Meyering  <meyering@redhat.com>
21113
21114         build: ensure that a release build fails when a submodule is unclean
21115         * top/maint.mk (no-submodule-changes): New rule.
21116         (alpha beta major): Depend on it.
21117
21118 2009-05-02  Bruno Haible  <bruno@clisp.org>
21119
21120         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
21121         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
21122         shell variable gl_fnmatch_required to detect which variant is
21123         requested.
21124         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
21125         gl_FUNC_FNMATCH_POSIX.
21126         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
21127         exclude fnmatch-posix.
21128
21129 2009-05-02  Bruno Haible  <bruno@clisp.org>
21130
21131         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
21132         * modules/mbsrtowcs (License): Change to LGPLv2+.
21133         * modules/strnlen1 (License): Likewise.
21134         Reported by Simon Josefsson.
21135
21136 2009-05-02  Bruno Haible  <bruno@clisp.org>
21137
21138         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
21139         "cross".
21140         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
21141         gnulib-tool was called with option --source-base=lib.
21142
21143 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21144
21145         Use automake *-local hooks without commands, for extensibility.
21146         * modules/localcharset (Makefile.am): Rename install-exec-local
21147         rule to install-exec-localcharset, and make it a prerequisite of
21148         install-exec-local.  Likewise, rename the uninstall-local rule to
21149         uninstall-localcharset, and make it a prerequisite of the former.
21150
21151 2009-05-01  Bruno Haible  <bruno@clisp.org>
21152
21153         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
21154         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21155         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
21156         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
21157         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
21158         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21159         m4/locale-zh.m4, m4/codeset.m4.
21160
21161         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21162         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
21163         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21164         m4/locale-zh.m4.
21165
21166         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
21167         REPLACE_WCRTOMB if mbstate_t must be replaced.
21168         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
21169         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
21170
21171 2009-05-01  Bruno Haible  <bruno@clisp.org>
21172
21173         Avoid compiler warnings when redefining macros defined by <libintl.h>.
21174         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
21175         dngettext, dcngettext, textdomain, bindtextdomain,
21176         bind_textdomain_codeset): Undefine before redefining.
21177
21178 2009-04-30  Bruno Haible  <bruno@clisp.org>
21179
21180         Fix bug introduced on 2009-04-25.
21181         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
21182         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
21183         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
21184         is defined.
21185         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
21186         is defined.
21187         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
21188         is defined.
21189         Reported by Elbert_Pol <elbert.pol@gmail.com>.
21190
21191 2009-04-28  Bruno Haible  <bruno@clisp.org>
21192
21193         Comment tweaks.
21194         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
21195         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
21196         * lib/unicase.h (u*_casexfrm): Likewise.
21197         Reported by Paolo Bonzini.
21198
21199 2009-04-28  Bruno Haible  <bruno@clisp.org>
21200
21201         Fix a compilation error.
21202         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
21203         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21204         Reported by Jim Meyering.
21205
21206 2009-04-27  Bruno Haible  <bruno@clisp.org>
21207
21208         New module 'libunistring'.
21209         * modules/libunistring: New file.
21210         * m4/libunistring.m4: New file.
21211         * MODULES.html.sh (Unicode string functions): Add it.
21212
21213 2009-04-27  Eric Blake  <ebb9@byu.net>
21214
21215         maint.mk: allow package-specific header to provide <config.h>
21216         * top/maint.mk (sc_require_config_h): New variable.
21217         (sc_require_config_h, sc_require_config_h_first): Use it.
21218
21219 2009-04-27  Simon Josefsson  <simon@josefsson.org>
21220
21221         * top/maint.mk (sc_avoid_if_before_free): Except
21222         useless-if-before-free script.
21223
21224 2009-04-27  Eric Blake  <ebb9@byu.net>
21225
21226         maintainer-makefile: depend on all required helper scripts
21227         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
21228         useless-if-before-free.
21229         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
21230         version, rather than assuming gnulib checkout is available.
21231         Reported by Simen Josefsson.
21232
21233 2009-04-26  Bruno Haible  <bruno@clisp.org>
21234
21235         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
21236         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
21237         "../" or "..".
21238
21239 2009-04-26  Bruno Haible  <bruno@clisp.org>
21240
21241         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
21242         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
21243         AC_LIB_HAVE_LINKFLAGS.
21244
21245 2009-04-26  Bruno Haible  <bruno@clisp.org>
21246
21247         Simplify calling convention of u*_conv_from_encoding.
21248         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
21249         u32_conv_from_encoding): Expect a resultbuf argument and return the
21250         result directly as a pointer.
21251         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
21252         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
21253         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
21254         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
21255         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
21256         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21257         Update.
21258         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
21259         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
21260         * lib/vasnprintf.c (VASNPRINTF): Update.
21261         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
21262         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
21263         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
21264         * NEWS: Mention the change.
21265
21266 2009-04-26  Bruno Haible  <bruno@clisp.org>
21267
21268         Simplify calling convention of u*_conv_to_encoding.
21269         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
21270         u32_conv_to_encoding): Expect a resultbuf argument and return the
21271         result directly as a pointer.
21272         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21273         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
21274         freeing scaled_offsets if mem_iconveha failed.
21275         * lib/unicase/u-casexfrm.h (FUNC): Update.
21276         * lib/uninorm/u-normxfrm.h (FUNC): Update.
21277         * lib/vasnprintf.c (VASNPRINTF): Update.
21278         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
21279         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
21280         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
21281         * NEWS: Mention the change.
21282
21283 2009-04-26  Bruno Haible  <bruno@clisp.org>
21284
21285         Avoid test failures on AIX and OSF/1.
21286         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
21287         malloc(0).
21288         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21289         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21290         Likewise.
21291         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
21292         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
21293         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
21294         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
21295         * doc/posix-functions/malloc.texi: Document the portability problem
21296         related to malloc(0).
21297
21298 2009-04-26  Bruno Haible  <bruno@clisp.org>
21299
21300         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
21301         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
21302         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
21303
21304 2009-04-25  Bruno Haible  <bruno@clisp.org>
21305
21306         Avoid link error when creating a namespace clean library.
21307         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
21308         as macro with arguments if already defined as an alias.
21309         * lib/signbitf.c (gl_signbitf): Don't undefine.
21310         * lib/signbitd.c (gl_signbitd): Don't undefine.
21311         * lib/signbitl.c (gl_signbitl): Don't undefine.
21312
21313 2009-04-25  Jim Meyering  <meyering@redhat.com>
21314
21315         vc-list-files: fix another quoting bug
21316         * build-aux/vc-list-files: Avoid sed backslash expansion
21317         of pathological directory names.
21318
21319 2009-04-25  Eric Blake  <ebb9@byu.net>
21320
21321         vc-list-files: fix shell quoting error
21322         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
21323         timestamp.
21324
21325 2009-04-25  Jim Meyering  <meyering@redhat.com>
21326
21327         vc-list-files: restore lost functionality with subdir argument
21328         * build-aux/vc-list-files: When given a non-"." sub-directory
21329         argument, substitute the $dir/ prefix back onto each resulting name.
21330         Otherwise, coreutils' root_tests check would fail.
21331
21332 2009-04-24  Eric Blake  <ebb9@byu.net>
21333
21334         vc-list-files: ignore git symlinks
21335         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
21336         than ls-files, to ignore git symlinks.
21337
21338         maint.mk: import improvements from m4
21339         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
21340         (move_if_change): Delete unused macro.
21341         (news-date-check, vc-diff-check): Support VPATH builds.
21342         (announcement): Likewise.  Split --bootstrap-tools list...
21343         (boostrap-tools): ...into separate list, which can be overridden
21344         in cfg.mk.
21345         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
21346         requiring dependency on useless-if-before-free module.
21347         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
21348         Support VPATH builds.
21349
21350 2009-04-24  Jim Meyering  <meyering@redhat.com>
21351
21352         maint.mk: remove coreutils-specific rules and variables
21353         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
21354         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
21355         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
21356
21357         maint.mk: remove obsolete rule
21358         * top/maint.mk (rel-check): Remove rule.
21359         (WGET, WGETFLAGS): Remove now-unused variables.
21360
21361 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21362
21363         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
21364         consistency.
21365
21366         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
21367         '$(PATH_SEPARATOR)' instead of ':'.
21368
21369 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21370
21371         * lib/getopt1.c (main): Use 'const' for static array.
21372
21373 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21374
21375         * top/maint.mk: Sync with coreutils.
21376         * NEWS: Explain incompatibilities.
21377
21378 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21379             Bruno Haible  <bruno@clisp.org>
21380
21381         Fix cross-compilation results.
21382         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
21383         statement, as third argument of AC_TRY_RUN.
21384         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21385         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21386         Likewise.
21387         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21388         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21389         Likewise.
21390         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21391         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
21392         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
21393
21394 2009-04-20  Bruno Haible  <bruno@clisp.org>
21395
21396         Avoid test failure on mingw.
21397         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
21398
21399 2009-04-20  Bruno Haible  <bruno@clisp.org>
21400
21401         Avoid compilation error on mingw.
21402         * modules/localename-tests (Depends-on): Add locale.
21403
21404 2009-04-19  Bruno Haible  <bruno@clisp.org>
21405
21406         Support for building a shared library on Windows platforms.
21407         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
21408         (main): Test the presence of UNINORM_NFC here.
21409         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
21410         (main): Test the presence of UNINORM_NFD here.
21411         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
21412         (main): Test the presence of UNINORM_NFKC here.
21413         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
21414         (main): Test the presence of UNINORM_NFKD here.
21415
21416 2009-04-19  Bruno Haible  <bruno@clisp.org>
21417
21418         Avoid a compiler warning.
21419         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
21420         Change type of variable 'sequence'.
21421
21422 2009-04-19  Bruno Haible  <bruno@clisp.org>
21423
21424         * modules/configmake (Makefile.am): When the contents of configmake.h
21425         does not change, arrange to preserve its modification time.
21426
21427 2009-04-17  Simon Josefsson  <simon@josefsson.org>
21428
21429         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
21430         gettext domain.
21431
21432 2009-04-16  Jim Meyering  <meyering@redhat.com>
21433
21434         useless-if-before-free: improve conversion code
21435         * build-aux/useless-if-before-free: Adjust code-in-comment to match
21436         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
21437
21438 2009-04-14  Bruno Haible  <bruno@clisp.org>
21439
21440         * modules/fcntl (Depends-on): Add extensions.
21441         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
21442
21443 2009-04-12  Ben Pfaff  <blp@gnu.org>
21444
21445         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
21446         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
21447
21448 2009-03-20  Ben Pfaff  <blp@gnu.org>
21449
21450         Make rename replace existing destinations on Windows.
21451         * m4/rename.m4: Add test for Mingw.
21452         * lib/rename.c: Add rename replacement that uses MoveFileEx with
21453         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
21454         * doc/posix-functions/rename.texi: Document.
21455
21456 2009-04-10  Bruno Haible  <bruno@clisp.org>
21457
21458         New include file "iconveh.h".
21459         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
21460         * lib/striconveh.h: Include it.
21461         (enum iconv_ilseq_handler): Remove definition.
21462         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
21463         striconveh.h.
21464         * lib/striconveha.c: Include striconveh.h.
21465         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
21466         * modules/striconveh (Files): Add lib/iconveh.h.
21467         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
21468         lib/striconveh.h.
21469
21470 2009-04-10  Bruno Haible  <bruno@clisp.org>
21471
21472         * lib/uniconv.h: Update comment.
21473
21474 2009-04-10  Bruno Haible  <bruno@clisp.org>
21475
21476         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
21477         always.
21478         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
21479         * lib/unistr/u16-mbtouc-aux.c: Likewise.
21480         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
21481         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
21482         "unistring-notinline.h", so that the function gets defined always.
21483         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
21484         * lib/unistr/u8-uctomb.c: Likewise.
21485         * lib/unistr/u16-mbtouc.c: Likewise.
21486         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
21487         * lib/unistr/u16-uctomb.c: Likewise.
21488         * lib/unistr/u32-mbtouc.c: Likewise.
21489         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
21490         * lib/unistr/u32-uctomb.c: Likewise.
21491
21492 2009-04-10  Bruno Haible  <bruno@clisp.org>
21493
21494         Mark 'utime' obsolete.
21495         * modules/utime (Status, Notice): New sections.
21496         Suggested by Jim Meyering.
21497
21498         Fix cross-compile guess for utime test.
21499         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
21500         autoconf.
21501         * doc/posix-functions/utime.texi: Give more precisions.
21502         Reported by Jan <ipif@ymail.com>.
21503
21504 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
21505
21506         filevercmp: correct today's change
21507         * lib/filevercmp.c: Also handle coreutils' test inputs.
21508         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
21509
21510         Fix regression in 'filevercmp' module. Thanks Sven Joachim
21511         for reporting it.
21512         * lib/filevercmp.c: Special handle for "", "." and "..".
21513         * tests/test-filevercmp.c: Enlarge the set suite.
21514
21515 2009-04-07  Jim Meyering  <meyering@redhat.com>
21516
21517         useless-if-before-free: show how to remove braced useless free, too
21518         * build-aux/useless-if-before-free: still only in a comment, though.
21519
21520 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
21521
21522         maint.mk: import changes to syntax-check macros from coreutils
21523         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
21524         Use them in the relevant macros.
21525
21526 2009-04-06  Bruno Haible  <bruno@clisp.org>
21527
21528         Fix unportable use of bit-fields.
21529         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
21530         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
21531         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
21532
21533 2009-04-06  Bruno Haible  <bruno@clisp.org>
21534
21535         Avoid test failures on AIX and OSF/1.
21536         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
21537         that malloc(0) = NULL.
21538         * tests/unicase/test-u8-tolower.c (check): Likewise.
21539         * tests/unicase/test-u8-totitle.c (check): Likewise.
21540         * tests/unicase/test-u8-toupper.c (check): Likewise.
21541         * tests/unicase/test-u16-casefold.c (check): Likewise.
21542         * tests/unicase/test-u16-tolower.c (check): Likewise.
21543         * tests/unicase/test-u16-totitle.c (check): Likewise.
21544         * tests/unicase/test-u16-toupper.c (check): Likewise.
21545         * tests/unicase/test-u32-casefold.c (check): Likewise.
21546         * tests/unicase/test-u32-tolower.c (check): Likewise.
21547         * tests/unicase/test-u32-totitle.c (check): Likewise.
21548         * tests/unicase/test-u32-toupper.c (check): Likewise.
21549         * tests/uninorm/test-u8-nfc.c (check): Likewise.
21550         * tests/uninorm/test-u8-nfd.c (check): Likewise.
21551         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
21552         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
21553         * tests/uninorm/test-u16-nfc.c (check): Likewise.
21554         * tests/uninorm/test-u16-nfd.c (check): Likewise.
21555         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
21556         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
21557         * tests/uninorm/test-u32-nfc.c (check): Likewise.
21558         * tests/uninorm/test-u32-nfd.c (check): Likewise.
21559         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
21560         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
21561
21562 2009-04-05  Bruno Haible  <bruno@clisp.org>
21563
21564         Work around an autoconf limitation.
21565         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
21566         comment line if it would be longer than 3 KB.
21567
21568 2009-04-05  Bruno Haible  <bruno@clisp.org>
21569
21570         Avoid test failure with libiconv-1.13.
21571         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
21572         of the expected test results.
21573
21574 2009-04-05  Bruno Haible  <bruno@clisp.org>
21575
21576         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
21577         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
21578         that it should be installed.
21579
21580 2009-04-05  Bruno Haible  <bruno@clisp.org>
21581
21582         * gnulib-tool: New option --copy-file.
21583         (func_usage): Document it.
21584         (func_dest_tmpfilename): Moved out of func_import.
21585         (func_add_file, func_update_file): New functions, extracted from
21586         func_import.
21587         (func_import): Update.
21588
21589 2009-04-05  Karl Berry  <karl@gnu.org>
21590
21591         * README: prominently mention gnulib-tool.
21592         Rearrange sections so getting the code is near the top.
21593
21594 2009-04-05  Bruno Haible  <bruno@clisp.org>
21595
21596         * lib/unicase.h: Mention u*_cmp2.
21597         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21598         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
21599         * lib/unicase/ulc-casecmp.c: Likewise.
21600         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
21601         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
21602         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
21603         unistr/u8-cmp.
21604         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
21605         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
21606         unistr/u16-cmp.
21607         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
21608         unistr/u32-cmp.
21609
21610         * lib/uninorm.h: Mention u*_cmp2.
21611         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
21612         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
21613         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
21614         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
21615         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
21616         unistr/u8-cmp.
21617         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
21618         unistr/u16-cmp.
21619         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
21620         unistr/u32-cmp.
21621
21622         New module 'unistr/u32-cmp2'.
21623         * lib/unistr/u32-cmp2.c: New file.
21624         * modules/unistr/u32-cmp2: New file.
21625
21626         New module 'unistr/u16-cmp2'.
21627         * lib/unistr/u16-cmp2.c: New file.
21628         * modules/unistr/u16-cmp2: New file.
21629
21630         New module 'unistr/u8-cmp2'.
21631         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
21632         * lib/unistr/u8-cmp2.c: New file.
21633         * lib/unistr/u-cmp2.h: New file.
21634         * modules/unistr/u8-cmp2: New file.
21635
21636 2009-04-05  Bruno Haible  <bruno@clisp.org>
21637
21638         * lib/unictype.h (uc_property_is_valid): New macro.
21639         * tests/unictype/test-pr_byname.c (main): Use it.
21640
21641         * lib/unistr.h: Doc fixes.
21642         * lib/uniconv.h: Doc fixes.
21643         * lib/unictype.h: Doc fixes.
21644
21645 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
21646
21647         Port coreutils 7.2 to Solaris 8.
21648
21649         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
21650         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
21651         for Solaris 8.  This is a bit of a hack, as it means it's the
21652         caller's responsibility to add -lnsl if needed, but most likely it
21653         won't be needed since only getaddrinfo uses this and getaddrinfo
21654         isn't needed on Solaris 8.
21655
21656         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
21657         problem to Solaris 8 encountered with coreutils 7.2, which
21658         resulted in a message "fnmatch.c:292: warning: passing argument 4
21659         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
21660         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
21661
21662 2009-04-03  Simon Josefsson  <simon@josefsson.org>
21663
21664         * m4/ld-version-script.m4: Add FIXME comment.
21665
21666 2009-04-02  Simon Josefsson  <simon@josefsson.org>
21667
21668         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
21669         SOVERSION variable.
21670
21671 2009-04-02  Bruno Haible  <bruno@clisp.org>
21672
21673         * Makefile (info, html, dvi, pdf): Combine the rules.
21674         Suggested by Jim Meyering.
21675
21676 2009-04-01  Bruno Haible  <bruno@clisp.org>
21677
21678         * Makefile (info, html, dvi, pdf): New targets.
21679         Reported by Reuben Thomas <rrt@sc3d.org>.
21680
21681 2009-04-01  Bruno Haible  <bruno@clisp.org>
21682
21683         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
21684         can be put into PATH.
21685         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
21686
21687 2009-04-01  Bruno Haible  <bruno@clisp.org>
21688
21689         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
21690
21691 2009-04-01  Bruno Haible  <bruno@clisp.org>
21692
21693         Rename module 'visibility'.
21694         * modules/lib-symbol-visibility: Renamed from modules/visibility.
21695         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
21696         * doc/gnulib.texi: Update.
21697         * MODULES.html.sh (Misc): Update.
21698         * NEWS: Mention the change.
21699
21700 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21701
21702         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
21703         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
21704         Eric Blake <ebb9@byu.net> for review.
21705         * MODULES.html.sh: Add lib-msvc-compat.
21706         * doc/gnulib.texi: Link to new section.
21707         * m4/ld-output-def.m4: New file.
21708         * doc/ld-output-def.texi: New file.
21709
21710 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21711
21712         Rename ld-version-script to lib-symbol-versions.  Suggested by
21713         Bruno Haible <bruno@clisp.org>.
21714         * modules/ld-version-script: Renamed to lib-symbol-versions.
21715         * doc/ld-version-script.texi: Fix module name.
21716         * MODULES.html.sh: Add lib-symbol-versions.
21717
21718 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21719
21720         * modules/u64-tests: New file.
21721         * tests/test-u64.c: New file.
21722
21723 2009-03-04  Simon Josefsson  <simon@josefsson.org>
21724
21725         * MODULES.html.sh: Mention u64.
21726         * modules/u64: New module.
21727         * modules/crypto/sha512: Depend on u64 module instead of providing
21728         u64.h.
21729
21730 2009-03-27  Eric Blake  <ebb9@byu.net>
21731
21732         test-strerror: make debugging EAI_SYSTEM easier
21733         * modules/getaddrinfo-tests (Depends-on): Add strerror.
21734         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
21735         failure was EAI_SYSTEM.
21736
21737 2009-03-25  Bruno Haible  <bruno@clisp.org>
21738
21739         Fix a problem with --enable-relocatable on Solaris 7.
21740         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
21741         since 2008-02-24.
21742
21743 2009-03-25  Eric Blake  <ebb9@byu.net>
21744
21745         test-sockets: avoid gcc warning
21746         * tests/test-sockets.c (main): Silence compiler warning.
21747
21748 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
21749
21750         New modules nproc, pthread, contributed by Glen Lenker.
21751
21752         * MODULES.html.sh: Add pthread, nproc.
21753         * lib/nproc.c: New file.
21754         * lib/nproc.h: New file.
21755         * lib/pthread.in.h: New file.
21756         * m4/pthread.m4: New file.
21757         * modules/nproc: New file.
21758         * modules/pthread: New file.
21759
21760 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21761
21762         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
21763         New variable.
21764
21765 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
21766
21767         filevercmp: handle simple~ and numbered.~3~ backup suffixes
21768         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
21769         * tests/test-filevercmp.c: Add tests for backup suffixes.
21770
21771 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21772
21773         * modules/stdlib (Depends-on): Add stdint, needed when defining
21774         struct random_data on, for example, HP-UX 10.20.  Reported by
21775         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21776
21777 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21778
21779         * lib/readline.c (readline): Call fflush on stdout after printing
21780         prompt.
21781
21782 2009-03-20  Bruno Haible  <bruno@clisp.org>
21783
21784         Remove dependency from 'close' module to -lws2_32 on native Windows.
21785         * lib/close-hook.h: New file.
21786         * lib/close-hook.c: New file.
21787         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
21788         w32sock.h.
21789         (_gl_close_fd_maybe_socket): Remove function.
21790         (rpl_close): Invoke execute_all_close_hooks instead of
21791         _gl_close_fd_maybe_socket.
21792         * lib/sockets.c: Include close-hook.h, w32sock.h.
21793         (close_fd_maybe_socket): New function, essentially from lib/close.c.
21794         (close_sockets_hook): New variable.
21795         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
21796         (gl_sockets_cleanup): Unregister it.
21797         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
21798         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
21799         * modules/close-hook: New file.
21800         * modules/close (Files): Remove lib/w32sock.h.
21801         (Depends-on): Add close-hook.
21802         (Link): Remove section.
21803         * modules/sockets (Files): Add lib/w32sock.h.
21804         (Depends-on): Add close-hook.
21805         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
21806         invocation.
21807         * NEWS: Mention that LIB_CLOSE is gone.
21808
21809 2009-03-23  Eric Blake  <ebb9@byu.net>
21810
21811         signal-tests: test previous patch
21812         * tests/test-signal.c: New file.
21813         * modules/signal-tests: Likewise.
21814
21815         signal.h: always support 'volatile sig_atomic_t'
21816         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
21817         (gl_SIGNAL_H_DEFAULTS): Add a default.
21818         * modules/signal (Makefile.am): Substitute if needed.
21819         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
21820         users can blindly add volatile.
21821         * doc/posix-headers/signal.texi (signal.h): Document it.
21822         Reported by Matthew Woehlke.
21823
21824 2009-03-23  Jim Meyering  <meyering@redhat.com>
21825
21826         pathmax: PATH_MAX: use pathconf only when available
21827         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
21828         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
21829         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
21830         This avoids a link failure in a PSP cross-compilation environment
21831         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
21832
21833         * lib/vasnprintf.c (divide): Fix typo in comment.
21834
21835 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21836
21837         * gnulib-tool (func_filter_filelist): Fix comment.
21838
21839 2009-03-20  Bruno Haible  <bruno@clisp.org>
21840
21841         Make sockets.h self-contained.
21842         * lib/sockets.c: Include sockets.h first.
21843         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
21844
21845 2009-03-19  Eric Blake  <ebb9@byu.net>
21846
21847         doc: mention more functions added in cygwin 1.7.0
21848         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
21849         addition.
21850         * doc/posix-functions/log2f.texi: Likewise.
21851
21852 2009-03-19  Jim Meyering  <meyering@redhat.com>
21853
21854         fsusage: avoid syntax error due to statement-before-declaration
21855         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
21856         after all declarations.  Reported by Matthew Woehlke in
21857         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
21858
21859 2009-03-18  Eric Blake  <ebb9@byu.net>
21860
21861         build-aux/compile: sync from automake
21862         * build-aux/compile: New file, from automake.
21863         * config/srclist.txt: Mention build-aux/compile.
21864
21865 2009-03-17  Bruno Haible  <bruno@clisp.org>
21866
21867         * lib/git-merge-changelog.c: Fix typo in comment.
21868         Reported by Reuben Thomas <rrt@sc3d.org>.
21869
21870 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
21871
21872         * m4/regex.m4: update and improve help for
21873         --without-included-regex.
21874
21875 2009-03-17  Simon Josefsson  <simon@josefsson.org>
21876
21877         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
21878         failure on missing include files.
21879
21880 2009-03-17  Eric Blake  <ebb9@byu.net>
21881
21882         doc: mention more functions added in cygwin 1.7.0
21883         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
21884         addition.
21885         * doc/posix-functions/fwscanf.texi: Likewise.
21886         * doc/posix-functions/swprintf.texi: Likewise.
21887         * doc/posix-functions/swscanf.texi: Likewise.
21888         * doc/posix-functions/vfwprintf.texi: Likewise.
21889         * doc/posix-functions/vfwscanf.texi: Likewise.
21890         * doc/posix-functions/vswprintf.texi: Likewise.
21891         * doc/posix-functions/vswscanf.texi: Likewise.
21892         * doc/posix-functions/vwprintf.texi: Likewise.
21893         * doc/posix-functions/vwscanf.texi: Likewise.
21894         * doc/posix-functions/wcscasecmp.texi: Likewise.
21895         * doc/posix-functions/wcsdup.texi: Likewise.
21896         * doc/posix-functions/wcsftime.texi: Likewise.
21897         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21898         * doc/posix-functions/wprintf.texi: Likewise.
21899         * doc/posix-functions/wscanf.texi: Likewise.
21900         * doc/glibc-functions/gethostbyname2.texi: Likewise.
21901
21902 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21903
21904         maint.mk: really add $(AM_MAKEFLAGS)
21905         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
21906         was inadvertently omitted in the last commit.
21907         Spotted by Bruno Haible.
21908
21909         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
21910         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
21911         $(AM_MAKEFLAGS)' rather than plain `make'.
21912
21913         gnulib-tool: execute $MAKE not make
21914         * gnulib-tool: Default $MAKE to 'make'.
21915         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
21916         than make.  Initialize $MAKE in the do-autobuild script.
21917
21918         gnulib-tool: use $MAKE not make in generated files
21919         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
21920         make, in generated files.  Initialize $MAKE in the do-autobuild
21921         script.
21922
21923         * top/GNUmakefile (_have-git-version-gen): Fix typo.
21924
21925         GNUmakefile: disable parallelism only for multiple, recursive targets
21926         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
21927         additions in the Makefile.
21928         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
21929         by Automake.
21930         (.NOTPARALLEL): Only disable parallel builds if multiple targets
21931         are listed on the command line and at least one of them is
21932         listed in $(ALL_RECURSIVE_TARGETS).
21933
21934 2009-03-14  Bruno Haible  <bruno@clisp.org>
21935
21936         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
21937         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
21938         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
21939         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
21940         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
21941         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
21942         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
21943         unistr/u8-uctomb.
21944         * modules/unistr/u8-strchr (Depends-on): Likewise.
21945         * modules/unistr/u8-strrchr (Depends-on): Likewise.
21946         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
21947         unistr/u16-uctomb.
21948         * modules/unistr/u16-strchr (Depends-on): Likewise.
21949         * modules/unistr/u16-strrchr (Depends-on): Likewise.
21950
21951 2009-03-12  Bruno Haible  <bruno@clisp.org>
21952
21953         Work around select() bug on Interix 3.5.
21954         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
21955         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
21956         * m4/select.m4: New file.
21957         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
21958         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
21959         * modules/select (Files): Add m4/select.m4.
21960         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
21961         * modules/nanosleep (Depends-on): Add select.
21962         * modules/poll (Depends-on): Likewise.
21963         * doc/posix-functions/select.texi: Mention the Interix bug.
21964         Reported by Markus Duft <mduft@gentoo.org>.
21965
21966         * lib/select.c: Renamed from lib/winsock-select.c.
21967         * modules/select (Files): Add lib/select.c, remove
21968         lib/winsock-select.c.
21969         (configure.ac): Update.
21970
21971 2009-03-12  Jim Meyering  <meyering@redhat.com>
21972
21973         avoid gcc warnings about unused macro definitions
21974         * lib/readtokens.c (STREQ): Remove unused definition.
21975         * lib/xmalloc.c (SIZE_MAX): Likewise.
21976         * lib/openat-die.c (N_): Likewise.
21977         * lib/mountlist.c (SIZE_MAX): Remove definition.
21978         Instead, include <stdint.h>.
21979         * lib/readutmp.c: Likewise.
21980         * modules/readutmp (Depends-on): Add stdint.
21981         * modules/mountlist (Depends-on): Add stdint.
21982         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
21983
21984 2009-03-10  Bruno Haible  <bruno@clisp.org>
21985
21986         Tests for module 'mbmemcasecoll'.
21987         * modules/mbmemcasecoll-tests: New file.
21988         * tests/test-mbmemcasecoll1.sh: New file.
21989         * tests/test-mbmemcasecoll2.sh: New file.
21990         * tests/test-mbmemcasecoll3.sh: New file.
21991         * tests/test-mbmemcasecoll.c: New file.
21992
21993         New module 'mbmemcasecoll'.
21994         * lib/mbmemcasecoll.h: New file.
21995         * lib/mbmemcasecoll.c: New file.
21996         * modules/mbmemcasecoll: New file.
21997
21998         * tests/test-mbmemcasecmp.h: New file, extracted from
21999         tests/test-mbmemcasecmp.c.
22000         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
22001         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
22002         (main): Update.
22003         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
22004
22005 2009-03-09  Bruno Haible  <bruno@clisp.org>
22006
22007         Tests for module 'mbmemcasecmp'.
22008         * modules/mbmemcasecmp-tests: New file.
22009         * tests/test-mbmemcasecmp1.sh: New file.
22010         * tests/test-mbmemcasecmp2.sh: New file.
22011         * tests/test-mbmemcasecmp3.sh: New file.
22012         * tests/test-mbmemcasecmp.c: New file.
22013
22014         New module 'mbmemcasecmp'.
22015         * lib/mbmemcasecmp.h: New file.
22016         * lib/mbmemcasecmp.c: New file.
22017         * modules/mbmemcasecmp: New file.
22018
22019 2009-03-09  Bruno Haible  <bruno@clisp.org>
22020
22021         Tests for module 'unicase/ulc-casecoll'.
22022         * modules/unicase/ulc-casecoll-tests: New file.
22023         * tests/unicase/test-ulc-casecoll1.sh: New file.
22024         * tests/unicase/test-ulc-casecoll2.sh: New file.
22025         * tests/unicase/test-ulc-casecoll.c: New file.
22026
22027         New module 'unicase/ulc-casecoll'.
22028         * lib/unicase.h (ulc_casecoll): New declaration.
22029         * lib/unicase/ulc-casecoll.c: New file.
22030         * modules/unicase/ulc-casecoll: New file.
22031
22032         New module 'unicase/ulc-casexfrm'.
22033         * lib/unicase.h (ulc_casexfrm): New declaration.
22034         * lib/unicase/ulc-casexfrm.c: New file.
22035         * modules/unicase/ulc-casexfrm: New file.
22036
22037 2009-03-09  Bruno Haible  <bruno@clisp.org>
22038
22039         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
22040         invocations.
22041
22042         * m4/mbscasecmp.m4: Remove file.
22043         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
22044         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
22045
22046         * m4/mbscasestr.m4: Remove file.
22047         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
22048         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
22049
22050         * m4/mbschr.m4: Remove file.
22051         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
22052         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
22053
22054         * m4/mbscspn.m4: Remove file.
22055         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
22056         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
22057
22058         * m4/mbslen.m4: Remove file.
22059         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
22060         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
22061
22062         * m4/mbsncasecmp.m4: Remove file.
22063         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
22064         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
22065
22066         * m4/mbsnlen.m4: Remove file.
22067         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
22068         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
22069
22070         * m4/mbspbrk.m4: Remove file.
22071         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
22072         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
22073
22074         * m4/mbspcasecmp.m4: Remove file.
22075         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
22076         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
22077
22078         * m4/mbsrchr.m4: Remove file.
22079         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
22080         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
22081
22082         * m4/mbssep.m4: Remove file.
22083         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
22084         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
22085
22086         * m4/mbsspn.m4: Remove file.
22087         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
22088         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
22089
22090         * m4/mbsstr.m4: Remove file.
22091         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
22092         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
22093
22094         * m4/mbstok_r.m4: Remove file.
22095         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
22096         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
22097
22098         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
22099
22100         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
22101         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
22102
22103         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
22104
22105 2009-03-08  Bruno Haible  <bruno@clisp.org>
22106
22107         Tests for module 'unicase/ulc-casecmp'.
22108         * modules/unicase/ulc-casecmp-tests: New file.
22109         * tests/unicase/test-ulc-casecmp1.sh: New file.
22110         * tests/unicase/test-ulc-casecmp2.sh: New file.
22111         * tests/unicase/test-ulc-casecmp.c: New file.
22112
22113         New module 'unicase/ulc-casecmp'.
22114         * lib/unicase.h (ulc_casecmp): New declaration.
22115         * lib/unicase/ulc-casecmp.c: New file.
22116         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
22117         'const SRC_UNIT *'.
22118         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
22119         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
22120         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
22121         * modules/unicase/ulc-casecmp: New file.
22122
22123         Tests for module 'unicase/u32-is-cased'.
22124         * modules/unicase/u32-is-cased-tests: New file.
22125         * tests/unicase/test-u32-is-cased.c: New file.
22126
22127         Tests for module 'unicase/u16-is-cased'.
22128         * modules/unicase/u16-is-cased-tests: New file.
22129         * tests/unicase/test-u16-is-cased.c: New file.
22130
22131         Tests for module 'unicase/u8-is-cased'.
22132         * modules/unicase/u8-is-cased-tests: New file.
22133         * tests/unicase/test-u8-is-cased.c: New file.
22134         * tests/unicase/test-is-cased.h: New file.
22135
22136         New module 'unicase/u32-is-cased'.
22137         * lib/unicase/u32-is-cased.c: New file.
22138         * modules/unicase/u32-is-cased: New file.
22139
22140         New module 'unicase/u16-is-cased'.
22141         * lib/unicase/u16-is-cased.c: New file.
22142         * modules/unicase/u16-is-cased: New file.
22143
22144         New module 'unicase/u8-is-cased'.
22145         * lib/unicase/u8-is-cased.c: New file.
22146         * lib/unicase/u-is-cased.h: New file.
22147         * modules/unicase/u8-is-cased: New file.
22148
22149         Tests for module 'unicase/u32-is-casefolded'.
22150         * modules/unicase/u32-is-casefolded-tests: New file.
22151         * tests/unicase/test-u32-is-casefolded.c: New file.
22152
22153         Tests for module 'unicase/u16-is-casefolded'.
22154         * modules/unicase/u16-is-casefolded-tests: New file.
22155         * tests/unicase/test-u16-is-casefolded.c: New file.
22156
22157         Tests for module 'unicase/u8-is-casefolded'.
22158         * modules/unicase/u8-is-casefolded-tests: New file.
22159         * tests/unicase/test-u8-is-casefolded.c: New file.
22160         * tests/unicase/test-is-casefolded.h: New file.
22161
22162         New module 'unicase/u32-is-casefolded'.
22163         * lib/unicase/u32-is-casefolded.c: New file.
22164         * modules/unicase/u32-is-casefolded: New file.
22165
22166         New module 'unicase/u16-is-casefolded'.
22167         * lib/unicase/u16-is-casefolded.c: New file.
22168         * modules/unicase/u16-is-casefolded: New file.
22169
22170         New module 'unicase/u8-is-casefolded'.
22171         * lib/unicase/u8-is-casefolded.c: New file.
22172         * modules/unicase/u8-is-casefolded: New file.
22173
22174         Tests for module 'unicase/u32-is-titlecase'.
22175         * modules/unicase/u32-is-titlecase-tests: New file.
22176         * tests/unicase/test-u32-is-titlecase.c: New file.
22177
22178         Tests for module 'unicase/u16-is-titlecase'.
22179         * modules/unicase/u16-is-titlecase-tests: New file.
22180         * tests/unicase/test-u16-is-titlecase.c: New file.
22181
22182         Tests for module 'unicase/u8-is-titlecase'.
22183         * modules/unicase/u8-is-titlecase-tests: New file.
22184         * tests/unicase/test-u8-is-titlecase.c: New file.
22185         * tests/unicase/test-is-titlecase.h: New file.
22186
22187         New module 'unicase/u32-is-titlecase'.
22188         * lib/unicase/u32-is-titlecase.c: New file.
22189         * modules/unicase/u32-is-titlecase: New file.
22190
22191         New module 'unicase/u16-is-titlecase'.
22192         * lib/unicase/u16-is-titlecase.c: New file.
22193         * modules/unicase/u16-is-titlecase: New file.
22194
22195         New module 'unicase/u8-is-titlecase'.
22196         * lib/unicase/u8-is-titlecase.c: New file.
22197         * modules/unicase/u8-is-titlecase: New file.
22198
22199         Tests for module 'unicase/u32-is-lowercase'.
22200         * modules/unicase/u32-is-lowercase-tests: New file.
22201         * tests/unicase/test-u32-is-lowercase.c: New file.
22202
22203         Tests for module 'unicase/u16-is-lowercase'.
22204         * modules/unicase/u16-is-lowercase-tests: New file.
22205         * tests/unicase/test-u16-is-lowercase.c: New file.
22206
22207         Tests for module 'unicase/u8-is-lowercase'.
22208         * modules/unicase/u8-is-lowercase-tests: New file.
22209         * tests/unicase/test-u8-is-lowercase.c: New file.
22210         * tests/unicase/test-is-lowercase.h: New file.
22211
22212         New module 'unicase/u32-is-lowercase'.
22213         * lib/unicase/u32-is-lowercase.c: New file.
22214         * modules/unicase/u32-is-lowercase: New file.
22215
22216         New module 'unicase/u16-is-lowercase'.
22217         * lib/unicase/u16-is-lowercase.c: New file.
22218         * modules/unicase/u16-is-lowercase: New file.
22219
22220         New module 'unicase/u8-is-lowercase'.
22221         * lib/unicase/u8-is-lowercase.c: New file.
22222         * modules/unicase/u8-is-lowercase: New file.
22223
22224         Tests for module 'unicase/u32-is-uppercase'.
22225         * modules/unicase/u32-is-uppercase-tests: New file.
22226         * tests/unicase/test-u32-is-uppercase.c: New file.
22227
22228         Tests for module 'unicase/u16-is-uppercase'.
22229         * modules/unicase/u16-is-uppercase-tests: New file.
22230         * tests/unicase/test-u16-is-uppercase.c: New file.
22231
22232         Tests for module 'unicase/u8-is-uppercase'.
22233         * modules/unicase/u8-is-uppercase-tests: New file.
22234         * tests/unicase/test-u8-is-uppercase.c: New file.
22235         * tests/unicase/test-is-uppercase.h: New file.
22236
22237         New module 'unicase/u32-is-uppercase'.
22238         * lib/unicase/u32-is-uppercase.c: New file.
22239         * modules/unicase/u32-is-uppercase: New file.
22240
22241         New module 'unicase/u16-is-uppercase'.
22242         * lib/unicase/u16-is-uppercase.c: New file.
22243         * modules/unicase/u16-is-uppercase: New file.
22244
22245         New module 'unicase/u8-is-uppercase'.
22246         * lib/unicase/u8-is-uppercase.c: New file.
22247         * modules/unicase/u8-is-uppercase: New file.
22248
22249         New module 'unicase/u32-is-invariant'.
22250         * lib/unicase/u32-is-invariant.c: New file.
22251         * modules/unicase/u32-is-invariant: New file.
22252
22253         New module 'unicase/u16-is-invariant'.
22254         * lib/unicase/u16-is-invariant.c: New file.
22255         * modules/unicase/u16-is-invariant: New file.
22256
22257         New module 'unicase/u8-is-invariant'.
22258         * lib/unicase/u8-is-invariant.c: New file.
22259         * lib/unicase/invariant.h: New file.
22260         * lib/unicase/u-is-invariant.h: New file.
22261         * modules/unicase/u8-is-invariant: New file.
22262
22263         Tests for module 'unicase/u32-casecoll'.
22264         * modules/unicase/u32-casecoll-tests: New file.
22265         * tests/unicase/test-u32-casecoll.c: New file.
22266
22267         Tests for module 'unicase/u16-casecoll'.
22268         * modules/unicase/u16-casecoll-tests: New file.
22269         * tests/unicase/test-u16-casecoll.c: New file.
22270
22271         Tests for module 'unicase/u8-casecoll'.
22272         * modules/unicase/u8-casecoll-tests: New file.
22273         * tests/unicase/test-u8-casecoll.c: New file.
22274
22275         New module 'unicase/u32-casecoll'.
22276         * lib/unicase/u32-casecoll.c: New file.
22277         * modules/unicase/u32-casecoll: New file.
22278
22279         New module 'unicase/u16-casecoll'.
22280         * lib/unicase/u16-casecoll.c: New file.
22281         * modules/unicase/u16-casecoll: New file.
22282
22283         New module 'unicase/u8-casecoll'.
22284         * lib/unicase/u8-casecoll.c: New file.
22285         * lib/unicase/u-casecoll.h: New file.
22286         * modules/unicase/u8-casecoll: New file.
22287
22288         New module 'unicase/u32-casexfrm'.
22289         * lib/unicase/u32-casexfrm.c: New file.
22290         * modules/unicase/u32-casexfrm: New file.
22291
22292         New module 'unicase/u16-casexfrm'.
22293         * lib/unicase/u16-casexfrm.c: New file.
22294         * modules/unicase/u16-casexfrm: New file.
22295
22296         New module 'unicase/u8-casexfrm'.
22297         * lib/unicase/u8-casexfrm.c: New file.
22298         * lib/unicase/u-casexfrm.h: New file.
22299         * modules/unicase/u8-casexfrm: New file.
22300
22301         Tests for module 'unicase/u32-casecmp'.
22302         * modules/unicase/u32-casecmp-tests: New file.
22303         * tests/unicase/test-u32-casecmp.c: New file.
22304
22305         Tests for module 'unicase/u16-casecmp'.
22306         * modules/unicase/u16-casecmp-tests: New file.
22307         * tests/unicase/test-u16-casecmp.c: New file.
22308
22309         Tests for module 'unicase/u8-casecmp'.
22310         * modules/unicase/u8-casecmp-tests: New file.
22311         * tests/unicase/test-u8-casecmp.c: New file.
22312         * tests/unicase/test-casecmp.h: New file.
22313
22314         New module 'unicase/u32-casecmp'.
22315         * lib/unicase/u32-casecmp.c: New file.
22316         * modules/unicase/u32-casecmp: New file.
22317
22318         New module 'unicase/u16-casecmp'.
22319         * lib/unicase/u16-casecmp.c: New file.
22320         * modules/unicase/u16-casecmp: New file.
22321
22322         New module 'unicase/u8-casecmp'.
22323         * lib/unicase/u8-casecmp.c: New file.
22324         * lib/unicase/u-casecmp.h: New file.
22325         * modules/unicase/u8-casecmp: New file.
22326
22327         Tests for module 'unicase/u32-casefold'.
22328         * modules/unicase/u32-casefold-tests: New file.
22329         * tests/unicase/test-u32-casefold.c: New file.
22330
22331         Tests for module 'unicase/u16-casefold'.
22332         * modules/unicase/u16-casefold-tests: New file.
22333         * tests/unicase/test-u16-casefold.c: New file.
22334
22335         Tests for module 'unicase/u8-casefold'.
22336         * modules/unicase/u8-casefold-tests: New file.
22337         * tests/unicase/test-u8-casefold.c: New file.
22338
22339         New module 'unicase/u32-casefold'.
22340         * lib/unicase/u32-casefold.c: New file.
22341         * modules/unicase/u32-casefold: New file.
22342
22343         New module 'unicase/u16-casefold'.
22344         * lib/unicase/u16-casefold.c: New file.
22345         * modules/unicase/u16-casefold: New file.
22346
22347         New module 'unicase/u8-casefold'.
22348         * lib/unicase/u8-casefold.c: New file.
22349         * lib/unicase/u-casefold.h: New file.
22350         * modules/unicase/u8-casefold: New file.
22351
22352         New module 'unicase/tocasefold'.
22353         * lib/unicase/casefold.h: New file.
22354         * lib/unicase/tocasefold.c: New file.
22355         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
22356         * modules/unicase/tocasefold: New file.
22357
22358         Tests for module 'unicase/u32-totitle'.
22359         * modules/unicase/u32-totitle-tests: New file.
22360         * tests/unicase/test-u32-totitle.c: New file.
22361
22362         Tests for module 'unicase/u16-totitle'.
22363         * modules/unicase/u16-totitle-tests: New file.
22364         * tests/unicase/test-u16-totitle.c: New file.
22365
22366         Tests for module 'unicase/u8-totitle'.
22367         * modules/unicase/u8-totitle-tests: New file.
22368         * tests/unicase/test-u8-totitle.c: New file.
22369
22370         New module 'unicase/u32-totitle'.
22371         * lib/unicase/u32-totitle.c: New file.
22372         * modules/unicase/u32-totitle: New file.
22373
22374         New module 'unicase/u16-totitle'.
22375         * lib/unicase/u16-totitle.c: New file.
22376         * modules/unicase/u16-totitle: New file.
22377
22378         New module 'unicase/u8-totitle'.
22379         * lib/unicase/u8-totitle.c: New file.
22380         * lib/unicase/u-totitle.h: New file.
22381         * modules/unicase/u8-totitle: New file.
22382
22383         Tests for module 'unicase/u32-tolower'.
22384         * modules/unicase/u32-tolower-tests: New file.
22385         * tests/unicase/test-u32-tolower.c: New file.
22386
22387         Tests for module 'unicase/u16-tolower'.
22388         * modules/unicase/u16-tolower-tests: New file.
22389         * tests/unicase/test-u16-tolower.c: New file.
22390
22391         Tests for module 'unicase/u8-tolower'.
22392         * modules/unicase/u8-tolower-tests: New file.
22393         * tests/unicase/test-u8-tolower.c: New file.
22394
22395         New module 'unicase/u32-tolower'.
22396         * lib/unicase/u32-tolower.c: New file.
22397         * modules/unicase/u32-tolower: New file.
22398
22399         New module 'unicase/u16-tolower'.
22400         * lib/unicase/u16-tolower.c: New file.
22401         * modules/unicase/u16-tolower: New file.
22402
22403         New module 'unicase/u8-tolower'.
22404         * lib/unicase/u8-tolower.c: New file.
22405         * modules/unicase/u8-tolower: New file.
22406
22407         Tests for module 'unicase/u32-toupper'.
22408         * modules/unicase/u32-toupper-tests: New file.
22409         * tests/unicase/test-u32-toupper.c: New file.
22410
22411         Tests for module 'unicase/u16-toupper'.
22412         * modules/unicase/u16-toupper-tests: New file.
22413         * tests/unicase/test-u16-toupper.c: New file.
22414
22415         Tests for module 'unicase/u8-toupper'.
22416         * modules/unicase/u8-toupper-tests: New file.
22417         * tests/unicase/test-u8-toupper.c: New file.
22418
22419         New module 'unicase/u32-toupper'.
22420         * lib/unicase/u32-toupper.c: New file.
22421         * modules/unicase/u32-toupper: New file.
22422
22423         New module 'unicase/u16-toupper'.
22424         * lib/unicase/u16-toupper.c: New file.
22425         * modules/unicase/u16-toupper: New file.
22426
22427         New module 'unicase/u8-toupper'.
22428         * lib/unicase/u8-toupper.c: New file.
22429         * modules/unicase/u8-toupper: New file.
22430
22431         New module 'unicase/u32-casemap'.
22432         * lib/unicase/u32-casemap.c: New file.
22433         * modules/unicase/u32-casemap: New file.
22434
22435         New module 'unicase/u16-casemap'.
22436         * lib/unicase/u16-casemap.c: New file.
22437         * modules/unicase/u16-casemap: New file.
22438
22439         New module 'unicase/u8-casemap'.
22440         * lib/unicase/unicasemap.h: New file.
22441         * lib/unicase/u8-casemap.c: New file.
22442         * lib/unicase/u-casemap.h: New file.
22443         * modules/unicase/u8-casemap: New file.
22444
22445         New module 'unicase/special-casing'.
22446         * lib/unicase/special-casing.h: New file.
22447         * lib/unicase/special-casing.c: New file.
22448         * lib/unicase/special-casing-table.gperf: New file, generated by
22449         gen-uni-tables.c.
22450         * modules/unicase/special-casing: New file.
22451
22452         Tests for module 'unicase/locale-language'.
22453         * modules/unicase/locale-language-tests: New file.
22454         * tests/unicase/test-locale-language.sh: New file.
22455         * tests/unicase/test-locale-language.c: New file.
22456
22457         New module 'unicase/locale-language'.
22458         * lib/unicase/locale-language.c: New file.
22459         * lib/unicase/locale-languages.gperf: New file.
22460         * modules/unicase/locale-language: New file.
22461
22462         Generate more tables for case conversion and case folding.
22463         * lib/gen-uni-tables.c (SCC_*): New enum items.
22464         (struct special_casing_rule): New type.
22465         (casing_rules, num_casing_rules, allocated_casing_rules): New
22466         variables.
22467         (add_casing_rule, fill_casing_rules): New functions.
22468         (struct casefold_rule): New type.
22469         (casefolding_rules, num_casefolding_rules,
22470         allocated_casefolding_rules): New variables.
22471         (fill_casefolding_rules): New function.
22472         (unicode_casefold): New variable.
22473         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
22474         sort_casing_rules, output_casing_rules): New functions.
22475         (main): Accept to more arguments: SpecialCasing.txt and
22476         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
22477         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
22478         Output mapping for casefolding.
22479
22480         * lib/unicase.h: Include stdbool.h, uninorm.h.
22481         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
22482         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
22483         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
22484         arguments.
22485         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
22486         resultp arguments.
22487         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
22488         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
22489         resultp arguments.
22490         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
22491         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
22492         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
22493         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
22494         declarations.
22495         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
22496
22497 2009-03-08  Bruno Haible  <bruno@clisp.org>
22498
22499         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22500         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
22501         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
22502         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22503
22504 2009-03-07  Bruno Haible  <bruno@clisp.org>
22505
22506         Adjust u*_normcmp, u*_normcoll API.
22507         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22508         u16_normcoll, u32_normcoll): Change failure conventions.
22509         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
22510         errno and return -1.
22511         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22512
22513 2009-03-07  Bruno Haible  <bruno@clisp.org>
22514
22515         Tests for module 'uninorm/u32-normcoll'.
22516         * modules/uninorm/u32-normcoll-tests: New file.
22517         * tests/uninorm/test-u32-normcoll.c: New file.
22518
22519         Tests for module 'uninorm/u16-normcoll'.
22520         * modules/uninorm/u16-normcoll-tests: New file.
22521         * tests/uninorm/test-u16-normcoll.c: New file.
22522
22523         Tests for module 'uninorm/u8-normcoll'.
22524         * modules/uninorm/u8-normcoll-tests: New file.
22525         * tests/uninorm/test-u8-normcoll.c: New file.
22526
22527 2009-03-07  Bruno Haible  <bruno@clisp.org>
22528
22529         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
22530         tests/uninorm/test-u32-normcmp.c.
22531         * tests/uninorm/test-u32-normcmp.c: Include it.
22532         (test_nonascii): New function, extracted from main. Add some more
22533         tests.
22534         (main): Invoke test_ascii and test_nonascii.
22535         * modules/uninorm/u32-normcmp-tests (Files): Add
22536         tests/uninorm/test-u32-normcmp.h.
22537         (Depends-on): Remove uninorm/u32-normcmp.
22538
22539         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
22540         tests/uninorm/test-u16-normcmp.c.
22541         * tests/uninorm/test-u16-normcmp.c: Include it.
22542         (test_nonascii): New function, extracted from main. Add some more
22543         tests.
22544         (main): Invoke test_ascii and test_nonascii.
22545         * modules/uninorm/u16-normcmp-tests (Files): Add
22546         tests/uninorm/test-u16-normcmp.h.
22547         (Depends-on): Remove uninorm/u16-normcmp.
22548
22549         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
22550         tests/uninorm/test-u8-normcmp.c.
22551         * tests/uninorm/test-u8-normcmp.c: Include it.
22552         (test_nonascii): New function, extracted from main. Add some more
22553         tests.
22554         (main): Invoke test_ascii and test_nonascii.
22555         * modules/uninorm/u8-normcmp-tests (Files): Add
22556         tests/uninorm/test-u8-normcmp.h.
22557         (Depends-on): Remove uninorm/u8-normcmp.
22558
22559 2009-03-07  Bruno Haible  <bruno@clisp.org>
22560
22561         New module 'uninorm/u32-normcoll'.
22562         * lib/uninorm/u32-normcoll.c: New file.
22563         * modules/uninorm/u32-normcoll: New file.
22564
22565         New module 'uninorm/u16-normcoll'.
22566         * lib/uninorm/u16-normcoll.c: New file.
22567         * modules/uninorm/u16-normcoll: New file.
22568
22569         New module 'uninorm/u8-normcoll'.
22570         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
22571         declarations.
22572         * lib/uninorm/u8-normcoll.c: New file.
22573         * lib/uninorm/u-normcoll.h: New file.
22574         * modules/uninorm/u8-normcoll: New file.
22575
22576         New module 'uninorm/u32-normxfrm'.
22577         * lib/uninorm/u32-normxfrm.c: New file.
22578         * modules/uninorm/u32-normxfrm: New file.
22579
22580         New module 'uninorm/u16-normxfrm'.
22581         * lib/uninorm/u16-normxfrm.c: New file.
22582         * modules/uninorm/u16-normxfrm: New file.
22583
22584         New module 'uninorm/u8-normxfrm'.
22585         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
22586         declarations.
22587         * lib/uninorm/u8-normxfrm.c: New file.
22588         * lib/uninorm/u-normxfrm.h: New file.
22589         * modules/uninorm/u8-normxfrm: New file.
22590
22591 2009-03-07  Bruno Haible  <bruno@clisp.org>
22592
22593         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
22594         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
22595         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
22596
22597 2009-03-07  Bruno Haible  <bruno@clisp.org>
22598
22599         New module 'memxfrm'.
22600         * lib/memxfrm.h: New file.
22601         * lib/memxfrm.c: New file.
22602         * modules/memxfrm: New file.
22603
22604 2009-03-07  Bruno Haible  <bruno@clisp.org>
22605
22606         New module 'memcmp2'.
22607         * lib/memcmp2.h: New file.
22608         * lib/memcmp2.c: New file.
22609         * modules/memcmp2: New file.
22610
22611 2009-03-07  Bruno Haible  <bruno@clisp.org>
22612
22613         Tests for module 'uninorm/decomposing-form'.
22614         * modules/uninorm/decomposing-form-tests: New file.
22615         * tests/uninorm/test-decomposing-form.c: New file.
22616
22617         New module 'uninorm/decomposing-form'.
22618         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
22619         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
22620         Add 'decomposing_variant' field.
22621         * lib/uninorm/decomposing-form.c: New file.
22622         * lib/uninorm/nfc.c (uninorm_nfc): Update.
22623         * lib/uninorm/nfd.c (uninorm_nfd): Update.
22624         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
22625         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
22626         * modules/uninorm/decomposing-form: New file.
22627         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
22628         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
22629
22630 2009-03-07  Bruno Haible  <bruno@clisp.org>
22631
22632         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
22633         strings.
22634
22635 2009-03-06  Bruno Haible  <bruno@clisp.org>
22636
22637         Tests for module 'uninorm/u32-normcmp'.
22638         * tests/uninorm/test-u32-normcmp.c: New file.
22639         * modules/uninorm/u32-normcmp-tests: New file.
22640
22641         Tests for module 'uninorm/u16-normcmp'.
22642         * tests/uninorm/test-u16-normcmp.c: New file.
22643         * modules/uninorm/u16-normcmp-tests: New file.
22644
22645         Tests for module 'uninorm/u8-normcmp'.
22646         * tests/uninorm/test-u8-normcmp.c: New file.
22647         * modules/uninorm/u8-normcmp-tests: New file.
22648
22649         New module 'uninorm/u32-normcmp'.
22650         * lib/uninorm/u32-normcmp.c: New file.
22651         * modules/uninorm/u32-normcmp: New file.
22652
22653         New module 'uninorm/u16-normcmp'.
22654         * lib/uninorm/u16-normcmp.c: New file.
22655         * modules/uninorm/u16-normcmp: New file.
22656
22657         New module 'uninorm/u8-normcmp'.
22658         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
22659         declarations.
22660         * lib/uninorm/u8-normcmp.c: New file.
22661         * lib/uninorm/u-normcmp.h: New file.
22662         * modules/uninorm/u8-normcmp: New file.
22663
22664 2009-03-06  Bruno Haible  <bruno@clisp.org>
22665
22666         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
22667         Reported by Eric Blake.
22668
22669 2009-03-06  Eric Blake  <ebb9@byu.net>
22670             Bruno Haible  <bruno@clisp.org>
22671
22672         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
22673         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
22674         condition.
22675         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22676         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
22677         condition.
22678         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22679
22680 2009-03-06  Eric Blake  <ebb9@byu.net>
22681
22682         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
22683         to avoid compiler warnings.
22684         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
22685
22686 2009-03-05  Bruno Haible  <bruno@clisp.org>
22687
22688         * tests/test-ftell.c (main): Disable test beyond end of file on
22689         FreeMiNT.
22690         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22691
22692 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
22693
22694         * lib/filevercmp.c: Move hidden files up in ordering.
22695         * tests/test-filevercmp.c: Add tests for hidden files.
22696
22697 2009-03-04  Bruno Haible  <bruno@clisp.org>
22698
22699         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
22700         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
22701         AM_CFLAGS.
22702         Reported by Simon Josefsson.
22703
22704 2009-03-03  Bruno Haible  <bruno@clisp.org>
22705
22706         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
22707         Reported by Simon Josefsson.
22708
22709         * doc/ld-version-script.texi: Update node reference.
22710
22711 2009-03-03  Bruno Haible  <bruno@clisp.org>
22712
22713         * modules/visibility (License): Change to 'unlimited'.
22714         Suggested by Simon Josefsson.
22715
22716 2009-03-03  Jim Meyering  <meyering@redhat.com>
22717
22718         unlinkdir: cannot_unlink_dir may modify process state
22719         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
22720         it's neither thread-safe nor appropriate for use in a library.
22721
22722 2009-03-03  Eric Blake  <ebb9@byu.net>
22723
22724         test-closein: silence test under Darwin
22725         * tests/test-closein.sh: Ignore stderr from cat, since we don't
22726         care if it dies from EPIPE or EBADF.
22727
22728 2009-03-03  Bruno Haible  <bruno@clisp.org>
22729
22730         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
22731         earlier.
22732         * doc/visibility.texi: Fix @node and @section.
22733
22734 2009-03-03  Simon Josefsson  <simon@josefsson.org>
22735
22736         * doc/gnulib.texi: Link to sections for ld version script and
22737         visibility.
22738         * doc/visibility.texi: Add @node and @section.
22739         * modules/ld-version-script: New module.
22740         * m4/ld-version-script.m4: New file.
22741         * doc/ld-version-script.texi: New file.
22742
22743 2009-03-02  David Lutterkort  <lutter@redhat.com>
22744
22745         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
22746         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22747
22748 2009-03-02  Bruno Haible  <bruno@clisp.org>
22749
22750         * doc/visibility.texi: Mention libtool's -export-symbols option.
22751
22752 2009-03-02  Jim Meyering  <meyering@redhat.com>
22753
22754         announce-gen: new option: --no-print-checksums
22755         * build-aux/announce-gen (usage): Describe it.
22756         (print_checksums): Print a newline here, not in the [*] footnote.
22757         (main): Honor it.
22758
22759 2009-03-01  Bruno Haible  <bruno@clisp.org>
22760
22761         Use socklen_t in the native Windows replacements prototypes.
22762         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
22763         instead of 'int'.
22764         * lib/getsockopt.c (rpl_getsockopt): Likewise.
22765         * lib/setsockopt.c (rpl_setsockopt): Likewise.
22766         * modules/getsockopt (Depends-on): Add socklen.
22767         * modules/setsockopt (Depends-on): Add socklen.
22768
22769 2009-03-01  Bruno Haible  <bruno@clisp.org>
22770
22771         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
22772         least 4.2.
22773
22774 2009-03-01  Eric Blake  <ebb9@byu.net>
22775             Bruno Haible  <bruno@clisp.org>
22776
22777         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
22778         error messages.
22779         * lib/wait-process.c (wait_subprocess): Omit error message about
22780         deadly signal sent to the child of termsigp != NULL.
22781
22782 2009-03-01  Eric Blake  <ebb9@byu.net>
22783
22784         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
22785
22786 2009-03-01  Bruno Haible  <bruno@clisp.org>
22787
22788         Avoid a gcc warning.
22789         * tests/test-sched.c (b): Make global.
22790         Reported by Eric Blake.
22791
22792 2009-01-19  Martin Lambers  <marlam@marlam.de>
22793
22794         Provide POSIX semantics for socket timeout options on W32.
22795         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
22796         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
22797         * modules/setsockopt: Depend on sys_time module for struct timeval.
22798         * modules/getsockopt: Depend on sys_time module for struct timeval.
22799
22800 2009-03-01  Simon Josefsson  <simon@josefsson.org>
22801
22802         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
22803         __USE_GNU, for consistency with netdb.in.h.
22804         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22805
22806 2009-03-01  Bruno Haible  <bruno@clisp.org>
22807
22808         More support for FreeMiNT.
22809         * lib/fseeko.c (rpl_fseeko): Complete last commit.
22810         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22811
22812 2009-03-01  Bruno Haible  <bruno@clisp.org>
22813
22814         More support for FreeMiNT.
22815         * lib/fpurge.c (fpurge): Correct last commit.
22816         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22817
22818 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22819
22820         Fix unportable awk script in vc-list-files.
22821         * build-aux/vc-list-files: In the replacement awk script, use
22822         substr with a second argument of 1, not zero.
22823         Report by Simon Josefsson.
22824
22825 2009-02-28  Bruno Haible  <bruno@clisp.org>
22826
22827         More support for FreeMiNT.
22828         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
22829         to FreeMiNT today.
22830         * lib/fwriting.c (fwriting): Likewise.
22831         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
22832
22833 2009-02-28  Bruno Haible  <bruno@clisp.org>
22834
22835         * tests/test-freadseek.c (main): Disable test beyond end of file on
22836         FreeMiNT.
22837         * tests/test-ftello.c (main): Likewise.
22838         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22839
22840 2009-02-28  Bruno Haible  <bruno@clisp.org>
22841
22842         Add tentative support for FreeMiNT.
22843         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
22844         * lib/fpurge.c (fpurge): Likewise.
22845         * lib/freadable.c (freadable): Likewise.
22846         * lib/freading.c (freading): Likewise.
22847         * lib/freadptr.c (freadptr): Likewise.
22848         * lib/freadseek.c (freadptrinc): Likewise.
22849         * lib/fseeko.c (rpl_fseeko): Likewise.
22850         * lib/fseterr.c (fseterr): Likewise.
22851         * lib/fwritable.c (fwritable): Likewise.
22852         * lib/fwriting.c (fwriting): Likewise.
22853         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
22854         Hourihane.
22855         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22856
22857 2009-02-28  Bruno Haible  <bruno@clisp.org>
22858
22859         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
22860         SIGCHLD.
22861         Reported by Jim Meyering.
22862
22863 2009-02-28  Bruno Haible  <bruno@clisp.org>
22864
22865         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
22866         Mention the results of these tests on various platforms.
22867         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
22868         order.
22869         * doc/posix-functions/printf.texi: Likewise.
22870         * doc/posix-functions/snprintf.texi: Likewise.
22871         * doc/posix-functions/sprintf.texi: Likewise.
22872         * doc/posix-functions/vfprintf.texi: Likewise.
22873         * doc/posix-functions/vprintf.texi: Likewise.
22874         * doc/posix-functions/vsnprintf.texi: Likewise.
22875         * doc/posix-functions/vsprintf.texi: Likewise.
22876         * doc/glibc-functions/obstack_printf.texi: Likewise.
22877         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22878
22879 2009-02-28  Bruno Haible  <bruno@clisp.org>
22880
22881         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
22882         Reported by Loïc Minier <lool@dooz.org>.
22883
22884 2009-02-27  Bruno Haible  <bruno@clisp.org>
22885
22886         * gnulib-tool (func_import): Make the sed expression used to create the
22887         sed script for updating the .gitignore file POSIX compliant.
22888         Reported by Eric Blake.
22889
22890 2009-02-27  Bruno Haible  <bruno@clisp.org>
22891
22892         * gnulib-tool (sed): Don't alias as "sed --posix".
22893         Reported by Eric Blake.
22894
22895 2009-02-27  Bruno Haible  <bruno@clisp.org>
22896
22897         Avoid test link errors.
22898         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
22899         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
22900         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
22901         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
22902         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22903
22904 2009-02-27  Bruno Haible  <bruno@clisp.org>
22905
22906         Avoid spurious "(cached)" in configure output.
22907         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
22908         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
22909         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22910         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22911         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22912         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22913         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22914         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22915         Reported by Eric Blake.
22916
22917 2009-02-27  Eric Blake  <ebb9@byu.net>
22918
22919         printf: fix regression in previous patch
22920         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
22921
22922 2009-02-27  Bruno Haible  <bruno@clisp.org>
22923
22924         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
22925         value.
22926         * lib/stdint.in.h: Likewise.
22927         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
22928
22929 2009-02-27  Eric Blake  <ebb9@byu.net>
22930
22931         doc: mention more functions added in cygwin 1.7.0
22932         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
22933         addition.
22934         * doc/posix-functions/open_wmemstream.texi: Likewise.
22935         * doc/posix-functions/wcsnlen.texi: Likewise.
22936         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22937         * doc/posix-functions/wcstod.texi: Likewise.
22938         * doc/posix-functions/wcstof.texi: Likewise.
22939         * doc/posix-functions/wcstoimax.texi: Likewise.
22940         * doc/posix-functions/wcstok.texi: Likewise.
22941         * doc/posix-functions/wcstoumax.texi: Likewise.
22942
22943         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
22944         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
22945         * doc/posix-functions/fprintf.texi: Update.
22946         * doc/posix-functions/printf.texi: Update.
22947         * doc/posix-functions/snprintf.texi: Update.
22948         * doc/posix-functions/sprintf.texi: Update.
22949         * doc/posix-functions/vfprintf.texi: Update.
22950         * doc/posix-functions/vprintf.texi: Update.
22951         * doc/posix-functions/vsnprintf.texi: Update.
22952         * doc/posix-functions/vsprintf.texi: Update.
22953         * doc/glibc-functions/obstack_printf.texi: Update.
22954         * doc/glibc-functions/obstack_vprintf.texi: Update.
22955
22956 2009-02-26  Eric Blake  <ebb9@byu.net>
22957
22958         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
22959         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
22960         compilation bug by using runtime conversion.
22961         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22962         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
22963         * modules/ceill-tests (Files): Use nan.h.
22964         * modules/floorl-tests (Files): Likewise.
22965         * modules/frexpl-tests (Files): Likewise.
22966         * modules/isnanl-tests (Files): Likewise.
22967         * modules/ldexpl-tests (Files): Likewise.
22968         * modules/roundl-tests (Files): Likewise.
22969         * modules/truncl-tests (Files): Likewise.
22970         * tests/test-ceill.c (main): Use a working NaN.
22971         * tests/test-floorl.c (main): Likewise.
22972         * tests/test-frexpl.c (main): Likewise.
22973         * tests/test-isnan.c (test_long_double): Likewise.
22974         * tests/test-isnanl.h (main): Likewise.
22975         * tests/test-ldexpl.h (main): Likewise.
22976         * tests/test-roundl.h (main): Likewise.
22977         * tests/test-truncl.h (main): Likewise.
22978         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
22979
22980 2009-02-26  Eric Blake  <ebb9@byu.net>
22981             Bruno Haible  <bruno@clisp.org>
22982
22983         Work around a *printf bug with %ls on Solaris.
22984         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
22985         precision is specified, sprintf stops converting the wide string
22986         argument when the number of bytes that have been produced by this
22987         conversion equals or exceeds the precision.
22988         * doc/posix-functions/fprintf.texi: Update.
22989         * doc/posix-functions/printf.texi: Update.
22990         * doc/posix-functions/snprintf.texi: Update.
22991         * doc/posix-functions/sprintf.texi: Update.
22992         * doc/posix-functions/vfprintf.texi: Update.
22993         * doc/posix-functions/vprintf.texi: Update.
22994         * doc/posix-functions/vsnprintf.texi: Update.
22995         * doc/posix-functions/vsprintf.texi: Update.
22996         * doc/glibc-functions/obstack_printf.texi: Update.
22997         * doc/glibc-functions/obstack_vprintf.texi: Update.
22998
22999 2009-02-26  Eric Blake  <ebb9@byu.net>
23000
23001         stdlib: favor compiler check of random.h
23002         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
23003         to avoid an ObjC random.h installed by Swarm.
23004
23005 2009-02-26  Bruno Haible  <bruno@clisp.org>
23006
23007         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
23008         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
23009         Reported by Gary V. Vaughan <gary@gnu.org>.
23010
23011 2009-02-26  Bruno Haible  <bruno@clisp.org>
23012
23013         Fix *printf behaviour regarding the %ls directive.
23014         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
23015         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
23016         NEED_PRINTF_DIRECTIVE_LS.
23017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
23018         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23019         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23020         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
23021         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
23022         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
23023         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23024         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23025         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23026         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23027         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23028         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
23029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23032         * doc/posix-functions/fprintf.texi: Update.
23033         * doc/posix-functions/printf.texi: Update.
23034         * doc/posix-functions/snprintf.texi: Update.
23035         * doc/posix-functions/sprintf.texi: Update.
23036         * doc/posix-functions/vfprintf.texi: Update.
23037         * doc/posix-functions/vprintf.texi: Update.
23038         * doc/posix-functions/vsnprintf.texi: Update.
23039         * doc/posix-functions/vsprintf.texi: Update.
23040         * doc/glibc-functions/obstack_printf.texi: Update.
23041         * doc/glibc-functions/obstack_vprintf.texi: Update.
23042         Reported by Eric Blake.
23043
23044 2009-02-25  Bruno Haible  <bruno@clisp.org>
23045
23046         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
23047         with known value.
23048         Reported by Gary V. Vaughan <gary@gnu.org>.
23049
23050 2009-02-25  Bruno Haible  <bruno@clisp.org>
23051
23052         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
23053         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
23054         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
23055         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
23056         Reported by Gary V. Vaughan <gary@gnu.org>.
23057
23058 2009-02-25  Bruno Haible  <bruno@clisp.org>
23059
23060         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
23061         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
23062         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
23063         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
23064         Reported by Gary V. Vaughan <gary@gnu.org>.
23065
23066 2009-02-25  Eric Blake  <ebb9@byu.net>
23067
23068         tests: skip fseek/ftell tests if ungetc is broken
23069         * m4/ungetc.m4: New file.
23070         * modules/fseek-tests: Split test, so ungetc dependency is
23071         separate from rest of test.
23072         * modules/fseeko-tests: Likewise.
23073         * modules/ftell-tests: Likewise.
23074         * modules/ftello-tests: Likewise.
23075         * tests/test-fseek.c (main): Isolate ungetc dependency.
23076         * tests/test-fseeko.c (main): Likewise.
23077         * tests/test-ftell.c (main): Likewise.
23078         * tests/test-ftello.c (main): Likewise.
23079         * tests/test-fseek2.sh: New file.
23080         * tests/test-fseeko2.sh: Likewise.
23081         * tests/test-ftell2.sh: Likewise.
23082         * tests/test-ftello2.sh: Likewise.
23083
23084 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
23085
23086         test-getaddrinfo: fix usage of skip return code 77
23087         * tests/test-gettaddrinfo.c: Return skip code 77 only
23088         for first occurance of skip (4x77 is not 77)
23089
23090 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
23091
23092         strtod: avoid C99 decl-after-statement
23093         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
23094
23095 2009-02-24  Eric Blake  <ebb9@byu.net>
23096
23097         strtod: detect HP-UX 11.31 bug
23098         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
23099         Reported by Gary V. Vaughan.
23100
23101 2009-02-23  Bruno Haible  <bruno@clisp.org>
23102
23103         Fix invalid read past end of memory block.
23104         * lib/vasnprintf.c (DCHAR_SET): Define.
23105         (local_wcslen): Define only when needed.
23106         (local_strnlen, local_wcsnlen): New functions.
23107         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
23108         directives that involve a conversion ourselves.
23109         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
23110         wcsnlen, mbrtowc, wcrtomb.
23111         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
23112         * tests/test-vasprintf-posix.c (test_function): Likewise.
23113         * tests/test-snprintf-posix.h (test_function): Likewise.
23114         * tests/test-sprintf-posix.h (test_function): Likewise.
23115         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23116
23117 2009-02-22  Bruno Haible  <bruno@clisp.org>
23118
23119         Implement new clarified decomposition of Hangul syllables.
23120         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
23121         of type LTV, return only a pairwise decomposition.
23122         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
23123         Likewise.
23124         * tests/uninorm/test-decomposition.c (main): Updated expected result.
23125         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
23126         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
23127
23128 2009-02-22  Bruno Haible  <bruno@clisp.org>
23129
23130         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
23131         zero-length results and shrink excess allocated memory.
23132         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
23133         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
23134         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
23135         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
23136         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
23137         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
23138         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
23139         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
23140         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
23141         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
23142         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
23143         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
23144
23145 2009-02-21  Bruno Haible  <bruno@clisp.org>
23146
23147         * doc/gnulib.texi: Include safe-alloc.texi earlier.
23148         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
23149         spaces after a period. Put a space between a macro name and its
23150         argument list. Trivial rewordings.
23151         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
23152         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
23153         (main): Return 0 explicitly.
23154
23155 2009-02-21  Bruno Haible  <bruno@clisp.org>
23156
23157         Tests for module 'uninorm/filter'.
23158         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
23159         * modules/uninorm/filter-tests: New file.
23160
23161         New module 'uninorm/filter'.
23162         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
23163         uninorm_filter_flush, uninorm_filter_free): New declarations.
23164         * lib/uninorm/uninorm-filter.c: New file.
23165         * modules/uninorm/filter: New file.
23166
23167 2009-02-21  Bruno Haible  <bruno@clisp.org>
23168
23169         Tests for module 'uninorm/nfkc'.
23170         * tests/uninorm/test-nfkc.c: New file.
23171         * tests/uninorm/test-u8-nfkc.c: New file.
23172         * tests/uninorm/test-u16-nfkc.c: New file.
23173         * tests/uninorm/test-u32-nfkc.c: New file.
23174         * tests/uninorm/test-u32-nfkc-big.sh: New file.
23175         * tests/uninorm/test-u32-nfkc-big.c: New file.
23176         * modules/uninorm/nfkc-tests: New file.
23177
23178         New module 'uninorm/nfkc'.
23179         * lib/uninorm/nfkc.c: New file.
23180         * modules/uninorm/nfkc: New file.
23181
23182         Tests for module 'uninorm/nfkd'.
23183         * tests/uninorm/test-nfkd.c: New file.
23184         * tests/uninorm/test-u8-nfkd.c: New file.
23185         * tests/uninorm/test-u16-nfkd.c: New file.
23186         * tests/uninorm/test-u32-nfkd.c: New file.
23187         * tests/uninorm/test-u32-nfkd-big.sh: New file.
23188         * tests/uninorm/test-u32-nfkd-big.c: New file.
23189         * modules/uninorm/nfkd-tests: New file.
23190
23191         New module 'uninorm/nfkd'.
23192         * lib/uninorm/nfkd.c: New file.
23193         * modules/uninorm/nfkd: New file.
23194
23195         Tests for module 'uninorm/nfc'.
23196         * tests/uninorm/test-nfc.c: New file.
23197         * tests/uninorm/test-u8-nfc.c: New file.
23198         * tests/uninorm/test-u16-nfc.c: New file.
23199         * tests/uninorm/test-u32-nfc.c: New file.
23200         * tests/uninorm/test-u32-nfc-big.sh: New file.
23201         * tests/uninorm/test-u32-nfc-big.c: New file.
23202         * modules/uninorm/nfc-tests: New file.
23203
23204         New module 'uninorm/nfc'.
23205         * lib/uninorm/nfc.c: New file.
23206         * modules/uninorm/nfc: New file.
23207
23208         Tests for module 'uninorm/nfd'.
23209         * tests/uninorm/test-nfd.c: New file.
23210         * tests/uninorm/test-u8-nfd.c: New file.
23211         * tests/uninorm/test-u16-nfd.c: New file.
23212         * tests/uninorm/test-u32-nfd.c: New file.
23213         * tests/uninorm/test-u32-nfd-big.sh: New file.
23214         * tests/uninorm/test-u32-nfd-big.c: New file.
23215         * tests/uninorm/test-u32-normalize-big.h: New file.
23216         * tests/uninorm/test-u32-normalize-big.c: New file.
23217         * tests/uninorm/NormalizationTest.txt: New file, created from
23218         Unicode 5.1.0 NormalizationTest.txt.
23219         * modules/uninorm/nfd-tests: New file.
23220
23221         New module 'uninorm/nfd'.
23222         * lib/uninorm/nfd.c: New file.
23223         * modules/uninorm/nfd: New file.
23224
23225         New module 'uninorm/u32-normalize'.
23226         * lib/uninorm/u32-normalize.c: New file.
23227         * modules/uninorm/u32-normalize: New file.
23228
23229         New module 'uninorm/u16-normalize'.
23230         * lib/uninorm/u16-normalize.c: New file.
23231         * modules/uninorm/u16-normalize: New file.
23232
23233         New module 'uninorm/u8-normalize'.
23234         * lib/uninorm/u8-normalize.c: New file.
23235         * lib/uninorm/normalize-internal.h: New file.
23236         * lib/uninorm/u-normalize-internal.h: New file.
23237         * modules/uninorm/u8-normalize: New file.
23238
23239         New module 'uninorm/decompose-internal'.
23240         * lib/uninorm/decompose-internal.c: New file.
23241         * modules/uninorm/decompose-internal: New file.
23242
23243         Tests for module 'uninorm/composition'.
23244         * tests/uninorm/test-composition.c: New file.
23245         * modules/uninorm/composition-tests: New file.
23246
23247         New module 'uninorm/composition'.
23248         * lib/uninorm/composition.c: New file.
23249         * lib/uninorm/composition-table.gperf: New file, generated by
23250         gen-uni-tables.
23251         * modules/uninorm/composition: New file.
23252
23253         Tests for module 'uninorm/compat-decomposition'.
23254         * tests/uninorm/test-compat-decomposition.c: New file.
23255         * modules/uninorm/compat-decomposition-tests: New file.
23256
23257         New module 'uninorm/compat-decomposition'.
23258         * lib/uninorm/decompose-internal.h: New file.
23259         * lib/uninorm/compat-decomposition.c: New file.
23260         * modules/uninorm/compat-decomposition: New file.
23261
23262         Tests for module 'uninorm/canonical-decomposition'.
23263         * tests/uninorm/test-canonical-decomposition.c: New file.
23264         * modules/uninorm/canonical-decomposition-tests: New file.
23265
23266         New module 'uninorm/canonical-decomposition'.
23267         * lib/uninorm/canonical-decomposition.c: New file.
23268         * modules/uninorm/canonical-decomposition: New file.
23269
23270         Tests for module 'uninorm/decomposition'.
23271         * tests/uninorm/test-decomposition.c: New file.
23272         * modules/uninorm/decomposition-tests: New file.
23273
23274         New module 'uninorm/decomposition'.
23275         * lib/uninorm/decomposition.c: New file.
23276         * modules/uninorm/decomposition: New file.
23277
23278         New module 'uninorm/decomposition-table'.
23279         * lib/uninorm/decomposition-table.h: New file.
23280         * lib/uninorm/decomposition-table.c: New file.
23281         * lib/uninorm/decomposition-table1.h: New file, generated by
23282         gen-uni-tables.
23283         * lib/uninorm/decomposition-table2.h: New file, generated by
23284         gen-uni-tables.
23285         * modules/uninorm/decomposition-table: New file.
23286
23287         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
23288         (UC_DECOMP_*): New enumeration items.
23289         (get_decomposition): New function.
23290         (struct decomp_table): New type.
23291         (output_decomposition, output_decomposition_tables): New functions.
23292         (unicode_composition_exclusions): New variable.
23293         (fill_composition_exclusions, debug_output_composition_tables): New
23294         functions.
23295         (main): Accept one more argument. Invoke fill_composition_exclusions.
23296         Output decomposition and composition tables.
23297
23298         New module 'uninorm/base'.
23299         * lib/uninorm.h: New file.
23300         * lib/unictype.h: Update comment.
23301         * modules/uninorm/base: New file.
23302
23303 2009-02-21  David Lutterkort  <lutter@redhat.com>
23304
23305         Tests for module 'safe-alloc'.
23306         * tests/test-safe-alloc.c: New file.
23307         * modules/safe-alloc-tests: New file.
23308
23309         New module 'safe-alloc'.
23310         * lib/safe-alloc.h: New file.
23311         * lib/safe-alloc.c: New file.
23312         * m4/safe-alloc.m4: New file.
23313         * modules/safe-alloc: New file.
23314         * doc/safe-alloc.texi: New file.
23315         * doc/gnulib.texi: Include it.
23316         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23317         safe-alloc.
23318
23319 2009-02-18  Bruno Haible  <bruno@clisp.org>
23320
23321         Fix link error on non-glibc systems.
23322         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
23323         variable.
23324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23325
23326 2009-02-18  Jim Meyering  <meyering@redhat.com>
23327
23328         fts: avoid used-uninitialized error due to recent change
23329         * lib/fts.c (fts_read): Guard uses of the new member,
23330         parent->fts_n_dirs_remaining, since it's not relevant for
23331         the parent of a directory specified on the command-line.
23332
23333 2009-02-17  James Youngman  <jay@gnu.org>
23334             Bruno Haible  <bruno@clisp.org>
23335
23336         * m4/include_next.m4: Reformulate comment.
23337
23338 2009-02-16  Jim Meyering  <meyering@redhat.com>
23339
23340         fts: add #if guards so that the fts_lgpl module still builds
23341         * lib/fts.c: Guard just-added hash-table-using parts with
23342         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
23343         Reported by Simon Josefsson.
23344
23345 2009-02-15  Bruno Haible  <bruno@clisp.org>
23346
23347         * modules/array-mergesort-tests: New file.
23348         * tests/test-array-mergesort.c: New file.
23349
23350         New module 'array-mergesort'.
23351         * modules/array-mergesort: New file.
23352         * lib/array-mergesort.h: New file.
23353
23354 2009-02-15  Bruno Haible  <bruno@clisp.org>
23355
23356         Fix 2009-02-07 commit.
23357         * lib/gen-uni-tables.c (output_predicate, output_category,
23358         output_combclass, output_bidi_category, output_decimal_digit,
23359         output_digit, output_numeric, output_mirror, output_scripts,
23360         output_ident_category, output_simple_mapping): Fix format directives.
23361         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
23362
23363 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
23364
23365         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
23366         fixes are available from IBM.
23367
23368 2009-02-13  Jim Meyering  <meyering@redhat.com>
23369
23370         fts: arrange not to stat non-directories in more cases
23371         This makes GNU find (when it doesn't need to stat each file)
23372         *much* more efficient at traversing reiserfs file systems.
23373         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
23374         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
23375         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
23376         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
23377         (leaf_optimization_applies): New function.
23378         (LCO_hash, LCO_compare): New helper functions.
23379         (link_count_optimize_ok): New function.
23380         (fts_stat): Initialize new member (if dir).
23381         (fts_read): Decrement parent's fts_n_dirs_remaining count if
23382         we've just stat'ed a directory.  Skip the stat call when possible.
23383         ---
23384         Note this AFS-related exchange:
23385         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
23386         and note find's pioctl call in find/fstype.c.
23387         But that is necessary only if you want to enable the
23388         optimization for AFS, and for now, I don't.
23389
23390         fts: move a function definition "up" (no semantic change)
23391         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
23392         "up" to precede upcoming use of a related function.
23393
23394 2009-02-11  Jim Meyering  <meyering@redhat.com>
23395
23396         fts: correct internal computation of nlinks (optimization-related)
23397         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
23398         whether the current entry is a directory, so don't test it.
23399
23400 2009-02-10  Bruno Haible  <bruno@clisp.org>
23401
23402         Tests for module 'uniwbrk/ulc-wordbreaks'.
23403         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
23404         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
23405         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
23406
23407         Tests for module 'uniwbrk/u32-wordbreaks'.
23408         * modules/uniwbrk/u32-wordbreaks-tests: New file.
23409         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
23410
23411         Tests for module 'uniwbrk/u16-wordbreaks'.
23412         * modules/uniwbrk/u16-wordbreaks-tests: New file.
23413         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
23414
23415         Tests for module 'uniwbrk/u8-wordbreaks'.
23416         * modules/uniwbrk/u8-wordbreaks-tests: New file.
23417         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
23418
23419 2009-02-10  Bruno Haible  <bruno@clisp.org>
23420
23421         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
23422         property.
23423         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
23424         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
23425         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
23426
23427 2009-02-10  Simon Josefsson  <simon@josefsson.org>
23428
23429         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
23430         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
23431
23432 2009-02-10  Bruno Haible  <bruno@clisp.org>
23433
23434         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
23435         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
23436         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
23437         * lib/unilbrk/u8-possible-linebreaks.c: Update.
23438         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
23439         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
23440
23441 2009-02-09  Simon Josefsson  <simon@josefsson.org>
23442
23443         * lib/sockets.h (gl_fd_to_handle): New function.
23444
23445         * tests/test-sockets.c: Call gl_fd_to_handle.
23446
23447 2009-02-09  Bruno Haible  <bruno@clisp.org>
23448
23449         * doc/havelib.texi: Document the conventions on bi-arch systems.
23450
23451 2009-02-08  Bruno Haible  <bruno@clisp.org>
23452
23453         Document the AC_LIB_LINKFLAGS macro.
23454         * doc/havelib.texi: New file, mostly written on 2005-05-24.
23455         * doc/gnulib.texi: Include it.
23456
23457 2009-02-08  Bruno Haible  <bruno@clisp.org>
23458
23459         Fix wrong order of sections, compared to TOC.
23460         * doc/gnulib.texi: Include relocatable-maint.texi after the
23461         "Regular expressions" node, not before.
23462
23463 2009-02-08  Bruno Haible  <bruno@clisp.org>
23464
23465         Tests for module 'unicase/totitle'.
23466         * modules/unicase/totitle-tests: New file.
23467
23468         Tests for module 'unicase/tolower'.
23469         * modules/unicase/tolower-tests: New file.
23470
23471         Tests for module 'unicase/toupper'.
23472         * modules/unicase/toupper-tests: New file.
23473         * tests/unicase/test-mapping-part1.h: New file.
23474         * tests/unicase/test-mapping-part2.h: New file.
23475
23476         New module 'unicase/totitle'.
23477         * modules/unicase/totitle: New file.
23478         * lib/unicase/totitle.c: New file.
23479
23480         New module 'unicase/tolower'.
23481         * modules/unicase/tolower: New file.
23482         * lib/unicase/tolower.c: New file.
23483
23484         New module 'unicase/toupper'.
23485         * modules/unicase/toupper: New file.
23486         * lib/unicase/toupper.c: New file.
23487         * lib/unicase/simple-mapping.h: New file.
23488
23489         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
23490         (mapping_table): New structure.
23491         (output_simple_mapping): New function.
23492         (main): Invoke output_simple_mapping_test and output_simple_mapping.
23493         * modules/gen-uni-tables (Description): Update.
23494         * lib/unicase/toupper.h: New file, automatically generated by
23495         gen-uni-tables.
23496         * lib/unicase/tolower.h: New file, automatically generated by
23497         gen-uni-tables.
23498         * lib/unicase/totitle.h: New file, automatically generated by
23499         gen-uni-tables.
23500         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
23501         gen-uni-tables.
23502         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
23503         gen-uni-tables.
23504         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
23505         gen-uni-tables.
23506
23507         New module 'unicase/base'.
23508         * modules/unicase/base: New file.
23509         * lib/unicase.h: New file.
23510
23511 2009-02-08  Bruno Haible  <bruno@clisp.org>
23512
23513         New module 'uniwbrk/ulc-wordbreaks'.
23514         * modules/uniwbrk/ulc-wordbreaks: New file.
23515         * lib/uniwbrk/ulc-wordbreaks.c: New file.
23516
23517         New module 'uniwbrk/u32-wordbreaks'.
23518         * modules/uniwbrk/u32-wordbreaks: New file.
23519         * lib/uniwbrk/u32-wordbreaks.c: New file.
23520
23521         New module 'uniwbrk/u16-wordbreaks'.
23522         * modules/uniwbrk/u16-wordbreaks: New file.
23523         * lib/uniwbrk/u16-wordbreaks.c: New file.
23524
23525         New module 'uniwbrk/u8-wordbreaks'.
23526         * modules/uniwbrk/u8-wordbreaks: New file.
23527         * lib/uniwbrk/u8-wordbreaks.c: New file.
23528         * lib/uniwbrk/u-wordbreaks.h: New file.
23529
23530         New module 'uniwbrk/table'.
23531         * modules/uniwbrk/table: New file.
23532         * lib/uniwbrk/wbrktable.h: New file.
23533         * lib/uniwbrk/wbrktable.c: New file.
23534
23535         New module 'uniwbrk/wordbreak-property'.
23536         * modules/uniwbrk/wordbreak-property: New file.
23537         * lib/uniwbrk/wordbreak-property.c: New file.
23538
23539         * lib/gen-uni-tables.c (WBP_*): New enum items.
23540         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
23541         (unicode_org_wbp): New variable.
23542         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
23543         New functions.
23544         (wbp_table): New structure.
23545         (output_wbp, output_wbrk_tables): New functions.
23546         (main): Accept additional argument. Invoke fill_org_wbp,
23547         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
23548         output_wbrk_tables.
23549         * modules/gen-uni-tables (Description): Update.
23550         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
23551         gen-uni-tables.
23552
23553         New module 'uniwbrk/base'.
23554         * modules/uniwbrk/base: New file.
23555         * lib/uniwbrk.h: New file.
23556
23557 2009-02-08  Bruno Haible  <bruno@clisp.org>
23558
23559         Update to Unicode 5.1.0.
23560         * lib/gen-uni-tables.c (is_property_alphabetic): Include
23561         U+2185..U+2188.
23562         (is_property_default_ignorable_code_point): Don't include characters
23563         of category Cc or Cs and not-a-characters.
23564         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
23565         U+0D79, U+109E, U+109F, U+A60C.
23566         * lib/unictype/bidi_of.h: Regenerated.
23567         * lib/unictype/blocks.h: Regenerated.
23568         * lib/unictype/categ_C.h: Regenerated.
23569         * lib/unictype/categ_Cf.h: Regenerated.
23570         * lib/unictype/categ_Cn.h: Regenerated.
23571         * lib/unictype/categ_L.h: Regenerated.
23572         * lib/unictype/categ_Ll.h: Regenerated.
23573         * lib/unictype/categ_Lm.h: Regenerated.
23574         * lib/unictype/categ_Lo.h: Regenerated.
23575         * lib/unictype/categ_Lu.h: Regenerated.
23576         * lib/unictype/categ_M.h: Regenerated.
23577         * lib/unictype/categ_Mc.h: Regenerated.
23578         * lib/unictype/categ_Me.h: Regenerated.
23579         * lib/unictype/categ_Mn.h: Regenerated.
23580         * lib/unictype/categ_N.h: Regenerated.
23581         * lib/unictype/categ_Nd.h: Regenerated.
23582         * lib/unictype/categ_Nl.h: Regenerated.
23583         * lib/unictype/categ_No.h: Regenerated.
23584         * lib/unictype/categ_P.h: Regenerated.
23585         * lib/unictype/categ_Pd.h: Regenerated.
23586         * lib/unictype/categ_Pe.h: Regenerated.
23587         * lib/unictype/categ_Pf.h: Regenerated.
23588         * lib/unictype/categ_Pi.h: Regenerated.
23589         * lib/unictype/categ_Po.h: Regenerated.
23590         * lib/unictype/categ_Ps.h: Regenerated.
23591         * lib/unictype/categ_S.h: Regenerated.
23592         * lib/unictype/categ_Sk.h: Regenerated.
23593         * lib/unictype/categ_Sm.h: Regenerated.
23594         * lib/unictype/categ_So.h: Regenerated.
23595         * lib/unictype/categ_of.h: Regenerated.
23596         * lib/unictype/combining.h: Regenerated.
23597         * lib/unictype/ctype_alnum.h: Regenerated.
23598         * lib/unictype/ctype_alpha.h: Regenerated.
23599         * lib/unictype/ctype_graph.h: Regenerated.
23600         * lib/unictype/ctype_lower.h: Regenerated.
23601         * lib/unictype/ctype_print.h: Regenerated.
23602         * lib/unictype/ctype_punct.h: Regenerated.
23603         * lib/unictype/ctype_upper.h: Regenerated.
23604         * lib/unictype/decdigit.h: Regenerated.
23605         * lib/unictype/digit.h: Regenerated.
23606         * lib/unictype/mirror.h: Regenerated.
23607         * lib/unictype/numeric.h: Regenerated.
23608         * lib/unictype/pr_alphabetic.h: Regenerated.
23609         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
23610         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
23611         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
23612         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
23613         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
23614         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
23615         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
23616         * lib/unictype/pr_combining.h: Regenerated.
23617         * lib/unictype/pr_dash.h: Regenerated.
23618         * lib/unictype/pr_decimal_digit.h: Regenerated.
23619         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
23620         * lib/unictype/pr_deprecated.h: Regenerated.
23621         * lib/unictype/pr_diacritic.h: Regenerated.
23622         * lib/unictype/pr_extender.h: Regenerated.
23623         * lib/unictype/pr_format_control.h: Regenerated.
23624         * lib/unictype/pr_grapheme_base.h: Regenerated.
23625         * lib/unictype/pr_grapheme_extend.h: Regenerated.
23626         * lib/unictype/pr_grapheme_link.h: Regenerated.
23627         * lib/unictype/pr_id_continue.h: Regenerated.
23628         * lib/unictype/pr_id_start.h: Regenerated.
23629         * lib/unictype/pr_ideographic.h: Regenerated.
23630         * lib/unictype/pr_ignorable_control.h: Regenerated.
23631         * lib/unictype/pr_lowercase.h: Regenerated.
23632         * lib/unictype/pr_math.h: Regenerated.
23633         * lib/unictype/pr_numeric.h: Regenerated.
23634         * lib/unictype/pr_other_alphabetic.h: Regenerated.
23635         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
23636         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
23637         * lib/unictype/pr_other_id_continue.h: Regenerated.
23638         * lib/unictype/pr_other_lowercase.h: Regenerated.
23639         * lib/unictype/pr_other_math.h: Regenerated.
23640         * lib/unictype/pr_punctuation.h: Regenerated.
23641         * lib/unictype/pr_sentence_terminal.h: Regenerated.
23642         * lib/unictype/pr_soft_dotted.h: Regenerated.
23643         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
23644         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
23645         * lib/unictype/pr_unified_ideograph.h: Regenerated.
23646         * lib/unictype/pr_uppercase.h: Regenerated.
23647         * lib/unictype/pr_xid_continue.h: Regenerated.
23648         * lib/unictype/pr_xid_start.h: Regenerated.
23649         * lib/unictype/pr_zero_width.h: Regenerated.
23650         * lib/unictype/scripts.h: Regenerated.
23651         * lib/unictype/scripts_byname.gperf: Regenerated.
23652         * lib/unictype/sy_java_ident.h: Regenerated.
23653         * lib/unilbrk/lbrkprop1.h: Regenerated.
23654         * lib/unilbrk/lbrkprop2.h: Regenerated.
23655         * tests/unictype/test-categ_C.c: Regenerated.
23656         * tests/unictype/test-categ_Cf.c: Regenerated.
23657         * tests/unictype/test-categ_Cn.c: Regenerated.
23658         * tests/unictype/test-categ_L.c: Regenerated.
23659         * tests/unictype/test-categ_Ll.c: Regenerated.
23660         * tests/unictype/test-categ_Lm.c: Regenerated.
23661         * tests/unictype/test-categ_Lo.c: Regenerated.
23662         * tests/unictype/test-categ_Lu.c: Regenerated.
23663         * tests/unictype/test-categ_M.c: Regenerated.
23664         * tests/unictype/test-categ_Mc.c: Regenerated.
23665         * tests/unictype/test-categ_Me.c: Regenerated.
23666         * tests/unictype/test-categ_Mn.c: Regenerated.
23667         * tests/unictype/test-categ_N.c: Regenerated.
23668         * tests/unictype/test-categ_Nd.c: Regenerated.
23669         * tests/unictype/test-categ_Nl.c: Regenerated.
23670         * tests/unictype/test-categ_No.c: Regenerated.
23671         * tests/unictype/test-categ_P.c: Regenerated.
23672         * tests/unictype/test-categ_Pd.c: Regenerated.
23673         * tests/unictype/test-categ_Pe.c: Regenerated.
23674         * tests/unictype/test-categ_Pf.c: Regenerated.
23675         * tests/unictype/test-categ_Pi.c: Regenerated.
23676         * tests/unictype/test-categ_Po.c: Regenerated.
23677         * tests/unictype/test-categ_Ps.c: Regenerated.
23678         * tests/unictype/test-categ_S.c: Regenerated.
23679         * tests/unictype/test-categ_Sk.c: Regenerated.
23680         * tests/unictype/test-categ_Sm.c: Regenerated.
23681         * tests/unictype/test-categ_So.c: Regenerated.
23682         * tests/unictype/test-ctype_alnum.c: Regenerated.
23683         * tests/unictype/test-ctype_alpha.c: Regenerated.
23684         * tests/unictype/test-ctype_graph.c: Regenerated.
23685         * tests/unictype/test-ctype_lower.c: Regenerated.
23686         * tests/unictype/test-ctype_print.c: Regenerated.
23687         * tests/unictype/test-ctype_punct.c: Regenerated.
23688         * tests/unictype/test-ctype_upper.c: Regenerated.
23689         * tests/unictype/test-decdigit.h: Regenerated.
23690         * tests/unictype/test-digit.h: Regenerated.
23691         * tests/unictype/test-numeric.h: Regenerated.
23692         * tests/unictype/test-pr_alphabetic.c: Regenerated.
23693         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
23694         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
23695         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
23696         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
23697         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
23698         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
23699         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
23700         * tests/unictype/test-pr_combining.c: Regenerated.
23701         * tests/unictype/test-pr_dash.c: Regenerated.
23702         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
23703         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
23704         * tests/unictype/test-pr_deprecated.c: Regenerated.
23705         * tests/unictype/test-pr_diacritic.c: Regenerated.
23706         * tests/unictype/test-pr_extender.c: Regenerated.
23707         * tests/unictype/test-pr_format_control.c: Regenerated.
23708         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
23709         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
23710         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
23711         * tests/unictype/test-pr_id_continue.c: Regenerated.
23712         * tests/unictype/test-pr_id_start.c: Regenerated.
23713         * tests/unictype/test-pr_ideographic.c: Regenerated.
23714         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
23715         * tests/unictype/test-pr_lowercase.c: Regenerated.
23716         * tests/unictype/test-pr_math.c: Regenerated.
23717         * tests/unictype/test-pr_numeric.c: Regenerated.
23718         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
23719         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
23720         Regenerated.
23721         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
23722         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
23723         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
23724         * tests/unictype/test-pr_other_math.c: Regenerated.
23725         * tests/unictype/test-pr_punctuation.c: Regenerated.
23726         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
23727         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
23728         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
23729         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
23730         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
23731         * tests/unictype/test-pr_uppercase.c: Regenerated.
23732         * tests/unictype/test-pr_xid_continue.c: Regenerated.
23733         * tests/unictype/test-pr_xid_start.c: Regenerated.
23734         * tests/unictype/test-pr_zero_width.c: Regenerated.
23735
23736         Update to Unicode 5.1.0.
23737         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
23738         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
23739         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
23740         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
23741         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
23742         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
23743         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
23744         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
23745         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
23746         (nonspacing_table_ind): Update.
23747         * tests/uniwidth/test-uc_width2.sh: Update expected result.
23748
23749         Update to Unicode 5.1.0.
23750         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
23751         code transform.
23752         * lib/uniname/uniname.c (unicode_character_name,
23753         unicode_name_character): Add the range 0x1Fxxx to the code transform.
23754         * lib/uniname/uninames.h: Regenerated.
23755         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
23756
23757 2009-02-07  Bruno Haible  <bruno@clisp.org>
23758
23759         Merge gen-ctype and gen-lbrk into a single program.
23760         * lib/gen-uni-tables.c: New file, incorporating
23761         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
23762         Add directory prefixes to the names of the generated files.
23763         * lib/unictype/gen-ctype.c: Remove file.
23764         * lib/unilbrk/gen-lbrk.c: Remove file.
23765         * modules/gen-uni-tables: New file.
23766         * modules/unictype/gen-ctype: Remove file.
23767         * modules/unilbrk/gen-lbrk: Remove file.
23768
23769 2009-02-07  Bruno Haible  <bruno@clisp.org>
23770
23771         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
23772
23773         New module 'unistr/u32-strcoll'.
23774         * modules/unistr/u32-strcoll: New file.
23775         * lib/unistr/u32-strcoll.c: New file.
23776
23777         New module 'unistr/u16-strcoll'.
23778         * modules/unistr/u16-strcoll: New file.
23779         * lib/unistr/u16-strcoll.c: New file.
23780
23781         New module 'unistr/u8-strcoll'.
23782         * modules/unistr/u8-strcoll: New file.
23783         * lib/unistr/u8-strcoll.c: New file.
23784         * lib/unistr/u-strcoll.h: New file.
23785
23786 2009-02-07  Bruno Haible  <bruno@clisp.org>
23787
23788         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
23789         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23790         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23791         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
23792         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
23793         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
23794
23795 2009-02-07  Bruno Haible  <bruno@clisp.org>
23796
23797         Make 64-bit clean.
23798         * lib/unictype/gen-ctype.c (output_predicate, output_category,
23799         output_combclass, output_bidi_category, output_decimal_digit,
23800         output_digit, output_numeric, output_mirror, output_scripts,
23801         output_ident_category): Use proper width specifier in format strings.
23802
23803 2009-02-07  Bruno Haible  <bruno@clisp.org>
23804
23805         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
23806         failure behaviour.
23807
23808 2009-02-07  Jim Meyering  <meyering@redhat.com>
23809
23810         regex: avoid compilation failure with upcoming gcc-4.4
23811         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
23812         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
23813         "... error: integer overflow in preprocessor expression".
23814
23815 2009-02-05  Ben Pfaff  <blp@gnu.org>
23816
23817         Fix link errors on Windows when close module is used.
23818         * modules/close: Add $(LIB_CLOSE) to Link section.
23819         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
23820         $(LIB_CLOSE) on Windows.
23821
23822 2009-02-05  Jim Meyering  <meyering@redhat.com>
23823
23824         still avoid unused-parameter warnings, but do it cleanly
23825         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
23826         (get_fs_usage): Cast to void instead.
23827         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
23828         (dev_from_mount_options, read_file_system_list): Cast to void.
23829         Prompted by Bruno Haible.
23830
23831 2009-02-04  Jim Meyering  <meyering@redhat.com>
23832
23833         fsusage.c: correct copyright year
23834         * lib/fsusage.c: Reflect year in which the change is pushed into
23835
23836         avoid misc. warnings
23837         * lib/fsusage.c (UNUSED_PARAM): Define.
23838         (get_fs_usage): Mark parameter "disk" as unused.
23839         * lib/getugroups.c (getgrent): Use "void" in prototype.
23840         * lib/mountlist.c: Mark unused parameters.
23841         (read_file_system_list): Declare a local with "const".
23842         * lib/nanosleep.c (getnow): Declare static.
23843         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
23844
23845         dirfd: set errno upon failure
23846         * lib/dirfd.c: Include <errno.h>.
23847         Set errno to ENOTSUP when returning -1.
23848         * modules/dirfd (Depends-on): Add errno.
23849         Suggested by John Kodis <kodis@comcast.net>.
23850
23851 2009-02-01  Bruno Haible  <bruno@clisp.org>
23852
23853         Don't assume sizeof (long) >= sizeof (void *).
23854         * lib/memcmp.c: Include stdint.h.
23855         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
23856         srcp2 to 'const byte *'.
23857         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
23858         types to uintptr_t.
23859         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
23860         * modules/memcmp (Depends-on): Add stdint.
23861         Reported by Ozkan Sezer <sezeroz@gmail.com>.
23862
23863 2009-01-30  Eric Blake  <ebb9@byu.net>
23864
23865         fix more require-before-expand issues
23866         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
23867         expand, AC_PROG_AWK.
23868         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
23869
23870 2009-01-28  Eric Blake  <ebb9@byu.net>
23871
23872         version-etc: use consistent URL formatting
23873         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
23874         Improve formatting.  Use fputs for string without %.
23875
23876 2009-01-28  Jim Meyering  <meyering@redhat.com>
23877
23878         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
23879         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
23880         "underquoted definition of NAME" from autoconf-2.59.
23881
23882 2009-01-28  Bruno Haible  <bruno@clisp.org>
23883
23884         * doc/gnulib.texi: Add "Obsolete modules" to index.
23885
23886 2009-01-28  Jim Meyering  <meyering@redhat.com>
23887
23888         useless-if-before-free: recognize more variants
23889         * build-aux/useless-if-before-free: Also recognize e.g.,
23890         if (NULL != p) free (p);
23891
23892 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
23893
23894         test-getaddrinfo: skip (don't fail) this test when there's no network
23895         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
23896         on the presumption that it means you lack network access.
23897
23898 2009-01-26  Jim Meyering  <meyering@redhat.com>
23899
23900         fflush: avoid warnings on modern systems
23901         * lib/fflush.c (rpl_fflush): Move declarations of locals,
23902         pos and result, into scopes where they're used.
23903
23904 2009-01-26  Eric Blake  <ebb9@byu.net>
23905
23906         Silence warning reintroduced by recent extensions patch.
23907         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
23908         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
23909         autoconf.
23910
23911         Backport improved autoconf semantics of AC_DEFUN_ONCE.
23912         * m4/00gnulib.m4: New file.
23913         * gnulib-tool (func_get_filelist): Always use it.
23914         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
23915         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
23916
23917 2009-01-25  Bruno Haible  <bruno@clisp.org>
23918
23919         Make test-quotearg work on MacOS X and AIX.
23920         * tests/test-quotearg.sh: New file.
23921         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
23922         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
23923         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
23924         include <libintl.h>.
23925         (fake_locale): Remove variable.
23926         (gettext, dgettext, dcgettext): Remove functions.
23927         (main): Instead of setting a fake locale, set a real locale. Call
23928         textdomain and bindtextdomain.
23929         * modules/quotearg-tests (Files): Add the new files.
23930         (Depends-on): Add gettext, setenv, unsetenv.
23931         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23932         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
23933         Augment TESTS_ENVIRONMENT.
23934
23935 2009-01-25  Bruno Haible  <bruno@clisp.org>
23936
23937         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
23938         fr_FR.ISO8859-1 locale on MacOS X.
23939         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
23940         ja_JP.eucJP locale on MacOS X.
23941         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
23942         zh_CN.GB18030 locale on MacOS X.
23943
23944 2009-01-25  Bruno Haible  <bruno@clisp.org>
23945
23946         Avoid link errors on MacOS X 10.3.
23947         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
23948         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23949
23950 2009-01-25  Bruno Haible  <bruno@clisp.org>
23951
23952         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23953         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
23954         * modules/pipe (Files): Remove m4/posix_spawn.m4.
23955         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23956         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
23957         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23958         posix_spawnattr_init, posix_spawnattr_setsigmask,
23959         posix_spawnattr_setflags, posix_spawnattr_destroy.
23960
23961         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23962         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
23963         * modules/execute (Files): Remove m4/posix_spawn.m4.
23964         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23965         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23966         posix_spawnattr_init, posix_spawnattr_setsigmask,
23967         posix_spawnattr_setflags, posix_spawnattr_destroy.
23968
23969 2009-01-25  Bruno Haible  <bruno@clisp.org>
23970
23971         * lib/glthread/threadlib.c: Include <stdlib.h>.
23972
23973 2009-01-25  Bruno Haible  <bruno@clisp.org>
23974
23975         * lib/glthread/threadlib.c (dummy): New declaration.
23976
23977 2009-01-25  Bruno Haible  <bruno@clisp.org>
23978
23979         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
23980         multibyte characters also for the GB18030 encoding. Don't crash when
23981         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
23982
23983 2009-01-25  Bruno Haible  <bruno@clisp.org>
23984
23985         Avoid redefining 'struct random_data' on OSF/1 5.1.
23986         * lib/stdlib.in.h: Include <random.h> if it exists.
23987         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
23988         HAVE_RANDOM_H. Include <random.h> when testing whether
23989         'struct random_data' exists.
23990         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
23991
23992 2009-01-25  Bruno Haible  <bruno@clisp.org>
23993
23994         Don't install charset.alias on MacOS X >= 10.3.
23995         * lib/localcharset.c (DARWIN7): New macro.
23996         (get_charset_aliases): Hardcode the result for Darwin7.
23997         * modules/localcharset (install-exec-local): Don't install
23998         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
23999
24000 2009-01-25  Bruno Haible  <bruno@clisp.org>
24001
24002         Don't install charset.alias on mingw and Cygwin.
24003         * modules/localcharset (install-exec-local): Don't install
24004         charset.alias on mingw and Cygwin, if the file does not yet exist.
24005         The result for these platforms is hardcoded in localcharset.c.
24006
24007 2009-01-25  Bruno Haible  <bruno@clisp.org>
24008
24009         Make it possible again to use AC_GNU_SOURCE together with gnulib.
24010         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
24011         before requiring AC_USE_SYSTEM_EXTENSIONS.
24012
24013 2009-01-25  Jim Meyering  <meyering@redhat.com>
24014
24015         c-strtod: avoid warnings
24016         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
24017         "assignment discards qualifiers from pointer target type" warnings.
24018
24019 2009-01-24  Bruno Haible  <bruno@clisp.org>
24020
24021         Add support for non-UTF-8 locales on MacOS X.
24022         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
24023         canonical encodings. For Darwin 7 and newer, don't map traditional
24024         encodings to UTF-8.
24025         Reported by Vincent Lefevre <vincent@vinc17.org>
24026         at <http://savannah.gnu.org/bugs/?25235>.
24027
24028 2009-01-24  Bruno Haible  <bruno@clisp.org>
24029
24030         * doc/gnulib.texi (Obsolete modules): New section.
24031         Reported by Mike Frysinger <vapier@gentoo.org>.
24032
24033 2009-01-24  Bruno Haible  <bruno@clisp.org>
24034
24035         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
24036         (%.dvi): New rule.
24037
24038 2009-01-24  Bruno Haible  <bruno@clisp.org>
24039
24040         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
24041         Reported by Eric Blake.
24042
24043 2009-01-24  Bruno Haible  <bruno@clisp.org>
24044
24045         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
24046         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
24047         Reported by Gary V. Vaughan <gary@gnu.org>.
24048
24049 2009-01-24  Bruno Haible  <bruno@clisp.org>
24050
24051         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
24052
24053 2009-01-23  Bruno Haible  <bruno@clisp.org>
24054
24055         Make c-strtod, c-strtold usable in libraries.
24056         * lib/c-strtod.c: Include string.h instead of xalloc.h.
24057         (C_STRTOD): Call strdup instead of xstrdup.
24058         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
24059         * modules/c-strtold (Depends-on): Likewise.
24060         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
24061         * NEWS: Mention the change.
24062         Reported by Michael Gold <mgold@ncf.ca>.
24063
24064 2009-01-23  Jim Meyering  <meyering@redhat.com>
24065
24066         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
24067         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
24068         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
24069
24070 2009-01-23  Simon Josefsson  <simon@josefsson.org>
24071
24072         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
24073         GNU CoreUtils.
24074         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
24075         * modules/version-etc (Description): Update.
24076
24077 2009-01-22  Bruno Haible  <bruno@clisp.org>
24078
24079         Cache the C locale object.
24080         * lib/c-strtod.c (c_locale_cache): New variable.
24081         (c_locale): New function.
24082         (C_STRTOD): Use it, and don't call freelocale.
24083         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
24084         Suggested by Paolo Bonzini.
24085
24086 2009-01-21  Bruno Haible  <bruno@clisp.org>
24087
24088         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
24089         conditions other than overflow.
24090
24091 2009-01-21  Bruno Haible  <bruno@clisp.org>
24092
24093         * lib/c-strtod.c: Include errno.h.
24094         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
24095         value from STRTOD_L and STRTOD.
24096
24097 2009-01-21  Bruno Haible  <bruno@clisp.org>
24098         and Jim Meyering  <meyering@redhat.com>
24099
24100         nanosleep: skip configure test (fail it) for apple universal builds
24101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
24102         universal builds, assume that nanosleep does not work.
24103         * modules/nanosleep (Depends-on): Add multiarch.
24104
24105         mktime: skip configure test (fail it) for apple universal builds
24106         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
24107         universal builds, assume that mktime does not work.
24108         * modules/mktime (Depends-on): Add multiarch.
24109
24110 2009-01-21  Eric Blake  <ebb9@byu.net>
24111
24112         multiarch: avoid expand-before-require warning
24113         * modules/multiarch (configure.ac): Require, rather than expand,
24114         gl_MULTIARCH.
24115         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
24116         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
24117         enforce that all clients require it.  Partial reversion of
24118         2008-12-29 patch.
24119
24120         error: avoid expand-before-require warning
24121         * modules/errno (configure.ac): Require, rather than expand,
24122         gl_HEADER_ERRNO_H.
24123         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
24124         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
24125         enforce that all clients require it.
24126
24127         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
24128         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
24129         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
24130         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
24131
24132 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
24133
24134         Revert:
24135         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24136
24137         regex: do not depend on obsolete modules.
24138         * modules/regex: Remove memcmp and memmove.
24139
24140 2009-01-20  Bruno Haible  <bruno@clisp.org>
24141
24142         Make the 'link' module link on Windows NT 4.
24143         * lib/link.c (_WIN32_WINNT): Don't define.
24144         (CreateHardLinkFuncType): New type.
24145         (CreateHardLinkFunc, initialized): New variables.
24146         (initialize): New function.
24147         (link): Invoke CreateHardLink indirectly through the function pointer.
24148
24149 2009-01-20  Bruno Haible  <bruno@clisp.org>
24150
24151         Fix compilation failure on mingw.
24152         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
24153
24154 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
24155
24156         * doc/c-strtod.texi: Mention a couple of restrictions.
24157
24158 2009-01-20  Jim Meyering  <meyering@redhat.com>
24159
24160         gettimeofday: move more declarations out of functions
24161         * lib/gettimeofday.c: Move extern declarations of tzset and
24162         gmtime out of containing functions.  Prompted by Bruno Haible.
24163
24164 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24165
24166         regex: do not depend on obsolete modules.
24167         * modules/regex: Remove memcmp and memmove.
24168
24169 2009-01-19  Bruno Haible  <bruno@clisp.org>
24170
24171         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24172         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
24173         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24174         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
24175         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
24176
24177 2009-01-19  Bruno Haible  <bruno@clisp.org>
24178
24179         * tests/test-link.c: Include <errno.h>.
24180         (main): Exit with code 77 when a hard link cannot be created due to
24181         the file system.
24182         * tests/test-link.sh: Skip test when a hard link cannot be created due
24183         to the file system.
24184         Suggested by Eric Blake.
24185
24186 2009-01-19  Martin Lambers  <marlam@marlam.de>
24187
24188         * modules/link-tests: New file.
24189         * tests/test-link.sh: New file.
24190         * tests/test-link.c: New file.
24191
24192 2009-01-19  Eric Blake  <ebb9@byu.net>
24193
24194         doc: mention another function added in cygwin 1.7.0
24195         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
24196         Another new function in cygwin 1.7.
24197
24198 2009-01-19  Bruno Haible  <bruno@clisp.org>
24199
24200         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24201         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
24202         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
24203         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24204         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24205         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
24206         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24207         * m4/md4.m4 (gl_MD4): Likewise.
24208         * m4/md5.m4 (gl_MD5): Likewise.
24209         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
24210         * m4/sha1.m4 (gl_SHA1): Likewise.
24211         * m4/sha256.m4 (gl_SHA256): Likewise.
24212         * m4/sha512.m4 (gl_SHA512): Likewise.
24213
24214 2009-01-19  Bruno Haible  <bruno@clisp.org>
24215
24216         * modules/uniname/uniname-tests (Depends-on): Add progname.
24217         * tests/uniname/test-uninames.c: Include progname.h.
24218         (main): Call set_program_name.
24219
24220         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
24221         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
24222         (main): Call set_program_name.
24223
24224         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
24225         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
24226         (main): Call set_program_name.
24227
24228         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
24229         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
24230         (main): Call set_program_name.
24231
24232         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
24233         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
24234         (main): Call set_program_name.
24235
24236         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
24237         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
24238         (main): Call set_program_name.
24239
24240         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
24241         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
24242         (main): Call set_program_name.
24243
24244         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
24245         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
24246         (main): Call set_program_name.
24247
24248         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
24249         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
24250         (main): Call set_program_name.
24251
24252 2009-01-19  Eric Blake  <ebb9@byu.net>
24253
24254         test-unistd: test previous patch
24255         * tests/test-unistd.c: Test *_FILENO macros.
24256
24257         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
24258         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24259         Guarantee a definition.
24260         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
24261         * modules/unistd-safer (Depends-on): Add dependency on unistd.
24262         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
24263         * lib/dup-safer.c (STDERR_FILENO): Likewise.
24264         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24265         Likewise.
24266         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
24267         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
24268         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24269         Likewise.
24270         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
24271         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
24272         (STDERR_FILENO): Likewise.
24273         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
24274         (STDERR_FILENO): Likewise.
24275         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
24276         (STDERR_FILENO): Likewise.
24277         Reported by Elbert Pol.
24278
24279 2009-01-19  Eric Blake  <ebb9@byu.net>
24280
24281         doc: mention more functions added in cygwin 1.7.0
24282         * doc/posix-functions/abort.texi (abort): Update wording related
24283         to cygwin.
24284         * doc/posix-functions/daylight.texi (daylight): Likewise.
24285         * doc/posix-functions/optarg.texi (optarg): Likewise.
24286         * doc/posix-functions/optarg.texi (opterr): Likewise.
24287         * doc/posix-functions/optarg.texi (optind): Likewise.
24288         * doc/posix-functions/optarg.texi (optopt): Likewise.
24289         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
24290         worked in 1.5.x, and was withdrawn in 1.7.
24291         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
24292         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
24293         cygwin versions.
24294         * doc/posix-functions/perror.texi (perror): Likewise.
24295         * doc/posix-functions/printf.texi (printf): Likewise.
24296         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
24297         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
24298         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
24299         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
24300         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24301         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
24302         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24303         Likewise.
24304         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24305         Likewise.
24306         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
24307         this function.
24308         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
24309         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
24310         Likewise.
24311         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
24312         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
24313         * doc/posix-functions/confstr.texi (confstr): Likewise.
24314         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
24315         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
24316         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
24317         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
24318         * doc/posix-functions/fputws.texi (fputws): Likewise.
24319         * doc/posix-functions/fwide.texi (fwide): Likewise.
24320         * doc/posix-functions/getwc.texi (getwc): Likewise.
24321         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
24322         * doc/posix-functions/putwc.texi (putwc): Likewise.
24323         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
24324         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
24325         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
24326         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
24327         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
24328         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
24329         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
24330         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
24331         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
24332         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
24333         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
24334
24335 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24336
24337         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
24338         * lib/ioctl.c: Include <sys/ioctl.h>.
24339
24340 2009-01-19  Simon Josefsson  <simon@josefsson.org>
24341
24342         * modules/getdate-tests (Depends-on): Add progname.
24343         * tests/test-getdate.c: Use progname module, to avoid link errors
24344         on non-glibc systems.
24345
24346 2009-01-18  Simon Josefsson  <simon@josefsson.org>
24347
24348         * modules/filenamecat-tests (Depends-on): Add progname.
24349         * modules/fstrcmp-tests (Depends-on): Likewise.
24350
24351         * tests/test-filenamecat.c: Use progname module, to avoid link
24352         errors on non-glibc systems.
24353         * tests/test-fstrcmp.c: Likewise.
24354
24355 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24356
24357         gettimeofday: avoid warning: nested extern declaration of 'localtime'
24358         * lib/gettimeofday.c: Move extern declaration out of function.
24359
24360 2009-01-18  Bruno Haible  <bruno@clisp.org>
24361
24362         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
24363         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
24364         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
24365
24366 2009-01-18  Bruno Haible  <bruno@clisp.org>
24367
24368         * lib/strftime.c (MEMPCPY): Remove unused macro.
24369         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
24370
24371 2009-01-18  Martin Lambers  <marlam@marlam.de>
24372
24373         New module 'link'.
24374         * lib/unistd.in.h (link): New declaration.
24375         * lib/link.c: New file.
24376         * m4/link.m4: New file.
24377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
24378         HAVE_LINK.
24379         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
24380         * modules/link: New file.
24381         * doc/posix-functions/link.texi: Mention the new module.
24382
24383 2009-01-18  Bruno Haible  <bruno@clisp.org>
24384
24385         * tests/test-avltree_list.c (main): Call set_program_name.
24386         * tests/test-avltree_oset.c (main): Likewise.
24387         * tests/test-obstack-printf.c: Include progname.h.
24388         (main): Call set_program_name.
24389         * tests/test-quotearg.c: Include progname.h.
24390         (main): Call set_program_name.
24391         * tests/test-xmemdup0.c: Include progname.h.
24392         (main): Call set_program_name.
24393
24394 2009-01-18  Bruno Haible  <bruno@clisp.org>
24395
24396         New module 'alphasort'.
24397         * lib/dirent.in.h (alphasort): New declaration.
24398         * lib/alphasort.c: New file, from glibc with modifications.
24399         * m4/alphasort.m4: New file.
24400         * modules/alphasort: New file.
24401         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
24402         HAVE_ALPHASORT.
24403         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
24404         HAVE_ALPHASORT.
24405         * doc/posix-functions/alphasort.texi: Mention the new module and the
24406         portability problems.
24407
24408 2009-01-18  Bruno Haible  <bruno@clisp.org>
24409
24410         New module 'scandir'.
24411         * lib/dirent.in.h (scandir): New declaration.
24412         * lib/scandir.c: New file, from glibc with modifications.
24413         * m4/scandir.m4: New file.
24414         * modules/scandir: New file.
24415         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
24416         HAVE_SCANDIR.
24417         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
24418         HAVE_SCANDIR.
24419         * doc/posix-functions/scandir.texi: Mention the new module and the
24420         portability problems.
24421
24422 2009-01-17  Bruno Haible  <bruno@clisp.org>
24423
24424         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
24425         Update documentation.
24426         (func_remove_suffix): Escape all dots in the suffix. Update
24427         documentation.
24428         (func_filter_filelist): Update documentation.
24429         Reported by Ralf Wildenhues.
24430
24431 2009-01-17  Bruno Haible  <bruno@clisp.org>
24432
24433         * modules/dprintf-posix-tests: New file.
24434         * tests/test-dprintf-posix.sh: New file.
24435         * tests/test-dprintf-posix.c: New file.
24436
24437         New modules 'dprintf', 'dprintf-posix'.
24438         * lib/stdio.in.h (dprintf): New declaration.
24439         * lib/dprintf.c: New file.
24440         * m4/dprintf.m4: New file.
24441         * m4/dprintf-posix.m4: New file.
24442         * modules/dprintf: New file.
24443         * modules/dprintf-posix: New file.
24444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
24445         HAVE_DPRINTF, REPLACE_DPRINTF.
24446         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
24447         HAVE_DPRINTF, REPLACE_DPRINTF.
24448         * doc/posix-functions/dprintf.texi: Mention the new modules.
24449
24450 2009-01-17  Bruno Haible  <bruno@clisp.org>
24451
24452         * modules/vdprintf-posix-tests: New file.
24453         * tests/test-vdprintf-posix.sh: New file.
24454         * tests/test-vdprintf-posix.c: New file.
24455
24456         New modules 'vdprintf', 'vdprintf-posix'.
24457         * lib/stdio.in.h (vdprintf): New declaration.
24458         * lib/vdprintf.c: New file.
24459         * m4/vdprintf.m4: New file.
24460         * m4/vdprintf-posix.m4: New file.
24461         * modules/vdprintf: New file.
24462         * modules/vdprintf-posix: New file.
24463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
24464         HAVE_VDPRINTF, REPLACE_VDPRINTF.
24465         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
24466         HAVE_VDPRINTF, REPLACE_VDPRINTF.
24467         * doc/posix-functions/vdprintf.texi: Mention the new modules.
24468
24469 2009-01-17  Bruno Haible  <bruno@clisp.org>
24470
24471         Fix replacement of fopen on mingw.
24472         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
24473         mingw.
24474
24475 2009-01-17  Bruno Haible  <bruno@clisp.org>
24476
24477         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
24478         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
24479
24480 2009-01-17  Bruno Haible  <bruno@clisp.org>
24481
24482         Avoid test-fflush2.sh failure on mingw.
24483         * tests/test-fflush2.c: Include binary-io.h.
24484         (main): Put standard input into binary mode.
24485         * modules/fflush-tests (Depends-on): Add binary-io.
24486
24487 2009-01-17  Bruno Haible  <bruno@clisp.org>
24488
24489         * lib/wchar.in.h: In another particular situation, include only the
24490         system's <wchar.h> file.
24491         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
24492         Reported by Albert Chin-A-Young <china@thewrittenword.com>
24493         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
24494
24495 2009-01-17  Bruno Haible  <bruno@clisp.org>
24496
24497         Support for stripping executables in --enable-relocatable.
24498         * build-aux/install-reloc: Expect one more argument, or an environment
24499         variable RELOC_STRIP_PROG. If set, strip the destination program and
24500         its wrapper.
24501         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
24502         RELOC_STRIP_PROG.
24503         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
24504         to set RELOCATABLE_STRIP.
24505         * NEWS: Mention the new Makefile requirement.
24506
24507 2009-01-17  Bruno Haible  <bruno@clisp.org>
24508
24509         * build-aux/install-reloc: Remove debugging information left over by
24510         C compiler on MacOS X.
24511
24512 2009-01-17  Bruno Haible  <bruno@clisp.org>
24513
24514         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
24515         * lib/progreloc.c (find_executable): Fix type of pointer passed to
24516         _NSGetExecutablePath.
24517
24518 2009-01-16  Jim Meyering  <meyering@redhat.com>
24519
24520         strerror: avoid warnings about discarding "const"
24521         * lib/strerror.c (rpl_strerror): Instead of returning a const
24522         string from each and every "case", use a variable, and add a single
24523         cast after the switch.
24524
24525 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
24526
24527         * lib/arpa_inet.in.h: Add extern "C" block for C++.
24528
24529 2009-01-16  Bruno Haible  <bruno@clisp.org>
24530
24531         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
24532         array initializer syntax that also works in C++ mode.
24533         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24534
24535 2009-01-16  Jim Meyering  <meyering@redhat.com>
24536
24537         poll: suppress a warning
24538         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
24539         to ignore "...unsigned expression < 0 is always false" warnings.
24540
24541 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
24542
24543         poll: remove declarations of unused variables
24544         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
24545         sockbuf and optlen.
24546
24547 2009-01-15  Bruno Haible  <bruno@clisp.org>
24548
24549         Make fflush-after-ungetc POSIX compliant on BSD systems.
24550         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
24551         (clear_ungetc_buffer): Implement also for other systems.
24552         (rpl_fflush): On glibc systems, invoke
24553         clear_ungetc_buffer_preserving_position. Otherwise, invoke
24554         clear_ungetc_buffer after fetching the stream's position, not before.
24555
24556 2009-01-15  Bruno Haible  <bruno@clisp.org>
24557
24558         Make fflush-after-ungetc POSIX compliant on glibc systems.
24559         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
24560         after ungetc.
24561         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
24562         (rpl_fflush): On glibc systems, simply call the system's fflush
24563         function after clearing the ungetc buffer.
24564         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
24565         Instead, lseek only to the end of file, then use the system's fseeko
24566         for the rest. On glibc systems, reset the EOF indicator bit.
24567
24568 2009-01-15  Jim Meyering  <meyering@redhat.com>
24569
24570         openmp.m4: revert quote-adding change, for portability to older autoconf
24571         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
24572         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
24573         Simon Josefsson noticed the problem when using autoconf-2.61.
24574
24575 2009-01-15  Bruno Haible  <bruno@clisp.org>
24576
24577         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
24578         * tests/test-fflush2.c (ASSERT): Always fail.
24579         (main): Add two tests for fflush() after ungetc(), taking into account
24580         the Austin Group's clarification.
24581         Suggested by Eric Blake.
24582
24583 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
24584
24585         mktime.m4: remove K&R-style function prototypes
24586         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
24587         for the Sun C++ compiler.
24588
24589 2009-01-14  Bruno Haible  <bruno@clisp.org>
24590
24591         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
24592         while including <wchar.h>.
24593         * lib/wchar.in.h: In two particular situations on HP-UX, include only
24594         the system's <wchar.h> file.
24595         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24596
24597 2009-01-14  Bruno Haible  <bruno@clisp.org>
24598
24599         * m4/csharp.m4: Don't mention gettext on the serial number line.
24600         * m4/csharpexec.m4: Likewise.
24601         * m4/eaccess.m4: Likewise.
24602         * m4/javaexec.m4: Likewise.
24603         * m4/sig_atomic_t.m4: Likewise.
24604         * m4/tmpdir.m4: Likewise.
24605         * m4/intldir.m4: Bump gettext version.
24606         * m4/lib-ld.m4: Likewise.
24607
24608 2009-01-14  Bruno Haible  <bruno@clisp.org>
24609
24610         * lib/progname.c (set_program_name): Add more comments.
24611         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24612
24613 2009-01-14  Simon Josefsson  <simon@josefsson.org>
24614
24615         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
24616         were sys/stat.h does not define it.
24617
24618 2009-01-14  Jim Meyering  <meyering@redhat.com>
24619
24620         many *.m4 files: improve m4 quoting
24621         99% of this change was performed by running the following commands:
24622         git ls-files | grep '\.m4$' | xargs perl -pi \
24623           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
24624           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24625           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
24626           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
24627         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
24628         The remainder were to add Copyright dates, increment serial numbers,
24629         undo some changes in comments, exclude m4/intl.m4, and add quotes
24630         around the "1" in ",1" where the unusual spacing prohibited the
24631         above regexps from doing the job.  For more details, see
24632         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
24633         * m4/acl.m4: Modified.
24634         * m4/afs.m4: Likewise.
24635         * m4/alloca.m4: Likewise.
24636         * m4/argp.m4: Likewise.
24637         * m4/argz.m4: Likewise.
24638         * m4/atexit.m4: Likewise.
24639         * m4/bison-i18n.m4: Likewise.
24640         * m4/bison.m4: Likewise.
24641         * m4/byteswap.m4: Likewise.
24642         * m4/c-stack.m4: Likewise.
24643         * m4/c-strtod.m4: Likewise.
24644         * m4/calloc.m4: Likewise.
24645         * m4/canonicalize-lgpl.m4: Likewise.
24646         * m4/chown.m4: Likewise.
24647         * m4/clock_time.m4: Likewise.
24648         * m4/codeset.m4: Likewise.
24649         * m4/copy-file.m4: Likewise.
24650         * m4/csharp.m4: Likewise.
24651         * m4/csharpcomp.m4: Likewise.
24652         * m4/csharpexec.m4: Likewise.
24653         * m4/d-ino.m4: Likewise.
24654         * m4/d-type.m4: Likewise.
24655         * m4/dirfd.m4: Likewise.
24656         * m4/double-slash-root.m4: Likewise.
24657         * m4/eaccess.m4: Likewise.
24658         * m4/eealloc.m4: Likewise.
24659         * m4/environ.m4: Likewise.
24660         * m4/errno_h.m4: Likewise.
24661         * m4/euidaccess.m4: Likewise.
24662         * m4/execute.m4: Likewise.
24663         * m4/fatal-signal.m4: Likewise.
24664         * m4/fchdir.m4: Likewise.
24665         * m4/fcntl_h.m4: Likewise.
24666         * m4/fileblocks.m4: Likewise.
24667         * m4/filenamecat.m4: Likewise.
24668         * m4/findprog.m4: Likewise.
24669         * m4/flexmember.m4: Likewise.
24670         * m4/fnmatch.m4: Likewise.
24671         * m4/fopen.m4: Likewise.
24672         * m4/fpending.m4: Likewise.
24673         * m4/fprintf-posix.m4: Likewise.
24674         * m4/free.m4: Likewise.
24675         * m4/frexp.m4: Likewise.
24676         * m4/frexpl.m4: Likewise.
24677         * m4/fsusage.m4: Likewise.
24678         * m4/ftruncate.m4: Likewise.
24679         * m4/gc-camellia.m4: Likewise.
24680         * m4/gc-random.m4: Likewise.
24681         * m4/gc.m4: Likewise.
24682         * m4/getaddrinfo.m4: Likewise.
24683         * m4/getcwd-abort-bug.m4: Likewise.
24684         * m4/getcwd-path-max.m4: Likewise.
24685         * m4/getdate.m4: Likewise.
24686         * m4/getdomainname.m4: Likewise.
24687         * m4/getgroups.m4: Likewise.
24688         * m4/gethostname.m4: Likewise.
24689         * m4/gethrxtime.m4: Likewise.
24690         * m4/getline.m4: Likewise.
24691         * m4/getloadavg.m4: Likewise.
24692         * m4/getndelim2.m4: Likewise.
24693         * m4/getpass.m4: Likewise.
24694         * m4/gettext.m4: Likewise.
24695         * m4/gettime.m4: Likewise.
24696         * m4/gettimeofday.m4: Likewise.
24697         * m4/gnulib-common.m4: Likewise.
24698         * m4/group-member.m4: Likewise.
24699         * m4/host-os.m4: Likewise.
24700         * m4/iconv.m4: Likewise.
24701         * m4/iconv_open.m4: Likewise.
24702         * m4/inet_ntop.m4: Likewise.
24703         * m4/inet_pton.m4: Likewise.
24704         * m4/inline.m4: Likewise.
24705         * m4/intldir.m4: Likewise.
24706         * m4/intlmacosx.m4: Likewise.
24707         * m4/intmax.m4: Likewise.
24708         * m4/intmax_t.m4: Likewise.
24709         * m4/inttypes.m4: Likewise.
24710         * m4/inttypes_h.m4: Likewise.
24711         * m4/inttypes-pri.m4: Likewise.
24712         * m4/isapipe.m4: Likewise.
24713         * m4/isnand.m4: Likewise.
24714         * m4/isnanf.m4: Likewise.
24715         * m4/isnanl.m4: Likewise.
24716         * m4/javacomp.m4: Likewise.
24717         * m4/javaexec.m4: Likewise.
24718         * m4/jm-winsz1.m4: Likewise.
24719         * m4/jm-winsz2.m4: Likewise.
24720         * m4/lchown.m4: Likewise.
24721         * m4/lcmessage.m4: Likewise.
24722         * m4/ldexpl.m4: Likewise.
24723         * m4/lib-ld.m4: Likewise.
24724         * m4/lib-link.m4: Likewise.
24725         * m4/libsigsegv.m4: Likewise.
24726         * m4/link-follow.m4: Likewise.
24727         * m4/localcharset.m4: Likewise.
24728         * m4/locale-fr.m4: Likewise.
24729         * m4/locale-ja.m4: Likewise.
24730         * m4/locale-tr.m4: Likewise.
24731         * m4/locale-zh.m4: Likewise.
24732         * m4/lock.m4: Likewise.
24733         * m4/longlong.m4: Likewise.
24734         * m4/ls-mntd-fs.m4: Likewise.
24735         * m4/lstat.m4: Likewise.
24736         * m4/malloc.m4: Likewise.
24737         * m4/mathl.m4: Likewise.
24738         * m4/mbrtowc.m4: Likewise.
24739         * m4/mbstate_t.m4: Likewise.
24740         * m4/mbswidth.m4: Likewise.
24741         * m4/memchr.m4: Likewise.
24742         * m4/memcmp.m4: Likewise.
24743         * m4/memcpy.m4: Likewise.
24744         * m4/memmem.m4: Likewise.
24745         * m4/memmove.m4: Likewise.
24746         * m4/mempcpy.m4: Likewise.
24747         * m4/memrchr.m4: Likewise.
24748         * m4/memset.m4: Likewise.
24749         * m4/minmax.m4: Likewise.
24750         * m4/mkdir-slash.m4: Likewise.
24751         * m4/mkdtemp.m4: Likewise.
24752         * m4/mktime.m4: Likewise.
24753         * m4/mmap-anon.m4: Likewise.
24754         * m4/mountlist.m4: Likewise.
24755         * m4/nanosleep.m4: Likewise.
24756         * m4/nls.m4: Likewise.
24757         * m4/nocrash.m4: Likewise.
24758         * m4/open.m4: Likewise.
24759         * m4/openat.m4: Likewise.
24760         * m4/openmp.m4: Likewise.
24761         * m4/pathmax.m4: Likewise.
24762         * m4/perl.m4: Likewise.
24763         * m4/physmem.m4: Likewise.
24764         * m4/pipe.m4: Likewise.
24765         * m4/po.m4: Likewise.
24766         * m4/poll.m4: Likewise.
24767         * m4/posixtm.m4: Likewise.
24768         * m4/posixver.m4: Likewise.
24769         * m4/printf-frexp.m4: Likewise.
24770         * m4/printf-frexpl.m4: Likewise.
24771         * m4/printf-posix.m4: Likewise.
24772         * m4/printf-posix-rpl.m4: Likewise.
24773         * m4/printf.m4: Likewise.
24774         * m4/progtest.m4: Likewise.
24775         * m4/putenv.m4: Likewise.
24776         * m4/readline.m4: Likewise.
24777         * m4/readlink.m4: Likewise.
24778         * m4/readutmp.m4: Likewise.
24779         * m4/realloc.m4: Likewise.
24780         * m4/regex.m4: Likewise.
24781         * m4/relocatable.m4: Likewise.
24782         * m4/relocatable-lib.m4: Likewise.
24783         * m4/rename-dest-slash.m4: Likewise.
24784         * m4/rename.m4: Likewise.
24785         * m4/rmdir-errno.m4: Likewise.
24786         * m4/rmdir.m4: Likewise.
24787         * m4/roundf.m4: Likewise.
24788         * m4/roundl.m4: Likewise.
24789         * m4/rpmatch.m4: Likewise.
24790         * m4/save-cwd.m4: Likewise.
24791         * m4/selinux-selinux-h.m4: Likewise.
24792         * m4/setenv.m4: Likewise.
24793         * m4/settime.m4: Likewise.
24794         * m4/sig2str.m4: Likewise.
24795         * m4/sig_atomic_t.m4: Likewise.
24796         * m4/signalblocking.m4: Likewise.
24797         * m4/signbit.m4: Likewise.
24798         * m4/sigpipe.m4: Likewise.
24799         * m4/sockets.m4: Likewise.
24800         * m4/sockpfaf.m4: Likewise.
24801         * m4/st_dm_mode.m4: Likewise.
24802         * m4/stat-time.m4: Likewise.
24803         * m4/stdbool.m4: Likewise.
24804         * m4/stdint.m4: Likewise.
24805         * m4/stdint_h.m4: Likewise.
24806         * m4/stpcpy.m4: Likewise.
24807         * m4/stpncpy.m4: Likewise.
24808         * m4/strcase.m4: Likewise.
24809         * m4/strchrnul.m4: Likewise.
24810         * m4/strcspn.m4: Likewise.
24811         * m4/strdup.m4: Likewise.
24812         * m4/strftime.m4: Likewise.
24813         * m4/strndup.m4: Likewise.
24814         * m4/strnlen.m4: Likewise.
24815         * m4/strpbrk.m4: Likewise.
24816         * m4/strptime.m4: Likewise.
24817         * m4/strsep.m4: Likewise.
24818         * m4/strtod.m4: Likewise.
24819         * m4/strtoimax.m4: Likewise.
24820         * m4/strtok_r.m4: Likewise.
24821         * m4/strtol.m4: Likewise.
24822         * m4/strtoll.m4: Likewise.
24823         * m4/strtoul.m4: Likewise.
24824         * m4/strtoull.m4: Likewise.
24825         * m4/strtoumax.m4: Likewise.
24826         * m4/strverscmp.m4: Likewise.
24827         * m4/threadlib.m4: Likewise.
24828         * m4/timegm.m4: Likewise.
24829         * m4/tm_gmtoff.m4: Likewise.
24830         * m4/tmpdir.m4: Likewise.
24831         * m4/tmpfile.m4: Likewise.
24832         * m4/tzset.m4: Likewise.
24833         * m4/uintmax_t.m4: Likewise.
24834         * m4/unlinkdir.m4: Likewise.
24835         * m4/unlocked-io.m4: Likewise.
24836         * m4/uptime.m4: Likewise.
24837         * m4/userspec.m4: Likewise.
24838         * m4/utimbuf.m4: Likewise.
24839         * m4/utime.m4: Likewise.
24840         * m4/utimes-null.m4: Likewise.
24841         * m4/utimes.m4: Likewise.
24842         * m4/vararrays.m4: Likewise.
24843         * m4/vasnprintf.m4: Likewise.
24844         * m4/vfprintf-posix.m4: Likewise.
24845         * m4/vprintf-posix.m4: Likewise.
24846         * m4/wait-process.m4: Likewise.
24847         * m4/wchar_t.m4: Likewise.
24848         * m4/wint_t.m4: Likewise.
24849         * m4/write-any-file.m4: Likewise.
24850         * m4/yield.m4: Likewise.
24851
24852 2009-01-13  Bruno Haible  <bruno@clisp.org>
24853
24854         Avoid test-copy-file.sh failures when ACL support insufficient.
24855         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
24856         TESTS_ENVIRONMENT.
24857         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
24858         Reported by Jim Meyering.
24859
24860 2009-01-13  Bruno Haible  <bruno@clisp.org>
24861
24862         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
24863         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
24864         * modules/unistdio/u8-printf-parse (Files): Likewise.
24865         * modules/unistdio/u32-printf-parse (Files): Likewise.
24866         * modules/unistdio/ulc-printf-parse (Files): Likewise.
24867
24868 2009-01-13  Simon Josefsson  <simon@josefsson.org>
24869
24870         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
24871         and m4/inttypes_h.m4 too.
24872
24873 2009-01-12  Eric Blake  <ebb9@byu.net>
24874
24875         tests: IRIX 6.2 cc can't compile -0.0 into .data
24876         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
24877         rather than at compile-time.
24878         * tests/test-floorl.c (minus_zero): Likewise.
24879         * tests/test-frexpl.c (minus_zero): Likewise.
24880         * tests/test-isnan.c (minus_zerol): Likewise.
24881         * tests/test-isnanl.h (minus_zero): Likewise.
24882         * tests/test-ldexpl.c (minus_zero): Likewise.
24883         * tests/test-roundl.c (minus_zero): Likewise.
24884         * tests/test-signbit.c (minus_zerol): Likewise.
24885         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24886         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24887         * tests/test-truncl.c (minus_zero): Likewise.
24888         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24889         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24890         Reported by Tom G. Christensen and Nelson H. F. Beebe.
24891
24892 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24893
24894         regex: fix glibc bug 9697
24895         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
24896         handling.
24897
24898 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24899
24900         regex: fix glibc bug 697
24901         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
24902         being NULL also if there are no backreferences.
24903
24904 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24905
24906         regex: merge glibc changes
24907         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
24908         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
24909         re_string_skip_chars, re_string_reconstruct): Likewise.
24910         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
24911
24912 2009-01-07  Jim Meyering  <meyering@redhat.com>
24913
24914         poll: filter through cppi
24915         * lib/poll.c: Indent cpp directives to reflect nesting.
24916
24917 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
24918
24919         poll: don't return uninitialized
24920         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
24921
24922 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
24923
24924         avoid compile failure on AIX 6.1
24925         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
24926         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
24927
24928 2009-01-04  Jim Meyering  <meyering@redhat.com>
24929
24930         remove duplicate inclusion of <stdio.h>
24931         * tests/test-fprintf-posix.c: Likewise.
24932         * tests/test-printf-posix.c: Likewise.
24933         * tests/test-snprintf-posix.c: Likewise.
24934         * tests/test-sprintf-posix.c: Likewise.
24935         * tests/test-vasprintf-posix.c: Likewise.
24936         * tests/test-vfprintf-posix.c: Likewise.
24937         * tests/test-vprintf-posix.c: Likewise.
24938         * tests/test-vsnprintf-posix.c: Likewise.
24939         * tests/test-vsprintf-posix.c: Likewise.
24940
24941 2009-01-03  Jim Meyering  <meyering@redhat.com>
24942
24943         gnulib-tool: fix sed-based filtering
24944         * gnulib-tool (func_filter_filelist): Remove extra backslash
24945         in sed_fff_filter definition.
24946
24947 2009-01-02  Jim Meyering  <meyering@redhat.com>
24948
24949         strftime: avoid compilation failure on Solaris 2.6
24950         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
24951         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
24952         Don't #define mbrlen or mbsinit, since now they're guaranteed to
24953         be available.  Reported by Tom G. Christensen.  Details in
24954         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
24955
24956 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24957             Bruno Haible  <bruno@clisp.org>
24958
24959         Speed up gnulib-tool by doing more string processing through shell
24960         built-ins.
24961         * gnulib-tool (fast_func_append): New variable.
24962         (func_remove_prefix, func_remove_suffix): New functions.
24963         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
24964         (func_filter_filelist): New function.
24965         (func_get_dependencies): Use func_remove_suffix instead of sed.
24966         (func_get_automake_snippet): Use func_filter_filelist instead of a
24967         subshell and sed invocation.
24968
24969 2009-01-01  Bruno Haible  <bruno@clisp.org>
24970
24971         Fix a security bug.
24972         * gnulib-tool (func_import, import, update): Don't allow the characters
24973         '"', '$', '`', '\' in macro arguments that become part of commands that
24974         are evaluated.
24975
24976 2009-01-01  Bruno Haible  <bruno@clisp.org>
24977
24978         * gnulib-tool (func_reset_sigpipe): Add more comments.
24979
24980 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24981
24982         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
24983         func_emit_tests_Makefile_am, func_import): Abort loops early if we
24984         already know the answer.
24985
24986 2009-01-01  Jim Meyering  <meyering@redhat.com>
24987
24988         * lib/version-etc.c (version_etc_va): Update copyright year.
24989
24990 2008-12-30  Bruno Haible  <bruno@clisp.org>
24991
24992         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
24993         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
24994         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
24995
24996 2008-12-29  Eric Blake  <ebb9@byu.net>
24997
24998         multiarch: avoid autoconf AC_REQUIRE bug
24999         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
25000         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
25001         2.63 and older.
25002         Reported by Bruno Haible, and analyzed in
25003         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
25004
25005 2008-12-29  Bruno Haible  <bruno@clisp.org>
25006
25007         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
25008         files in subdirectories correctly.
25009         Reported by Ralf Wildenhues.
25010
25011 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25012
25013         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
25014         rather than 'join FILE -', for Solaris join.
25015
25016 2008-12-29  Bruno Haible  <bruno@clisp.org>
25017
25018         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
25019         quoting.
25020         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25021         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25022         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25023         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
25024         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25025         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25026         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25027         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25028         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25029         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25030         * m4/nls.m4 (AM_NLS): Likewise.
25031         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
25032         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25033         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25034         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25035         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25036         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25037         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
25038         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25039         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25040         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25041         * m4/xsize.m4 (gl_XSIZE): Likewise.
25042         Suggested by Jim Meyering.
25043
25044 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25045
25046         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
25047         * lib/parse-duration.c: use a switch instead of cascading if's.
25048
25049 2008-12-29  Eric Blake  <ebb9@byu.net>
25050
25051         wchar.h: supply WEOF on Irix 5.3
25052         * lib/wchar.in.h (wint_t): Also supply WEOF.
25053         * lib/wctype.in.h (wint_t): Likewise.
25054         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
25055         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
25056         Reported by Tom G. Christensen.
25057
25058 2008-12-26  Bruno Haible  <bruno@clisp.org>
25059
25060         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
25061         i486, i586, i686.
25062
25063 2008-12-26  Bruno Haible  <bruno@clisp.org>
25064
25065         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
25066
25067 2008-12-26  Bruno Haible  <bruno@clisp.org>
25068
25069         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
25070         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
25071         not __STDC_CONSTANT_MACROS.
25072         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25073
25074 2008-12-25  Bruno Haible  <bruno@clisp.org>
25075
25076         Add support for universal builds to vasnprintf.
25077         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
25078         universal builds, guess no.
25079         * modules/vasnprintf-posix (Depends-on): Add multiarch.
25080         * modules/vasprintf-posix (Depends-on): Likewise.
25081         * modules/fprintf-posix (Depends-on): Likewise.
25082         * modules/vfprintf-posix (Depends-on): Likewise.
25083         * modules/snprintf-posix (Depends-on): Likewise.
25084         * modules/vsnprintf-posix (Depends-on): Likewise.
25085         * modules/sprintf-posix (Depends-on): Likewise.
25086         * modules/vsprintf-posix (Depends-on): Likewise.
25087         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25088         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25089         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25090         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25091         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25092         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25093         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25094
25095         Add support for universal builds to <inttypes.h>.
25096         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
25097         _SCNu64_PREFIX): In Apple
25098         universal builds, define directly, using _LP64.
25099         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
25100         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
25101         * modules/inttypes (Depends-on): Add multiarch.
25102         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25103
25104         Add support for universal builds to <stdint.h>.
25105         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
25106         universal builds, define directly, using _LP64.
25107         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
25108         Apple universal builds, don't test for the size and suffix of ptrdiff_t
25109         and size_t.
25110         * modules/stdint (Depends-on): Add multiarch.
25111         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25112
25113         New module 'multiarch'.
25114         * modules/multiarch: New file.
25115         * m4/multiarch.m4: New file.
25116
25117 2008-12-25  Bruno Haible  <bruno@clisp.org>
25118
25119         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
25120
25121 2008-12-25  Bruno Haible  <bruno@clisp.org>
25122
25123         * modules/btowc (License): Relicense under LGPLv2+.
25124         * modules/mbsinit (License): Likewise.
25125         * modules/mbrtowc (License): Likewise.
25126         * modules/wcrtomb (License): Likewise.
25127         * modules/streq (License): Likewise.
25128         Reported by David Lutterkort <lutter@redhat.com>.
25129
25130 2008-12-23  Bruno Haible  <bruno@clisp.org>
25131
25132         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
25133
25134 2008-12-23  Bruno Haible  <bruno@clisp.org>
25135
25136         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
25137         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
25138         GETADDRINFO_LIB, not in LIBS.
25139         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
25140         * modules/canon-host (Link): Likewise.
25141         * NEWS: Mention the change.
25142         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
25143         GETADDRINFO_LIB.
25144
25145 2008-12-22  Bruno Haible  <bruno@clisp.org>
25146
25147         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
25148         * doc/posix-functions/iswalpha_l.texi: Likewise.
25149         * doc/posix-functions/iswblank_l.texi: Likewise.
25150         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25151         * doc/posix-functions/iswctype_l.texi: Likewise.
25152         * doc/posix-functions/iswdigit_l.texi: Likewise.
25153         * doc/posix-functions/iswgraph_l.texi: Likewise.
25154         * doc/posix-functions/iswlower_l.texi: Likewise.
25155         * doc/posix-functions/iswprint_l.texi: Likewise.
25156         * doc/posix-functions/iswpunct_l.texi: Likewise.
25157         * doc/posix-functions/iswspace_l.texi: Likewise.
25158         * doc/posix-functions/iswupper_l.texi: Likewise.
25159         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25160         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
25161         * doc/posix-functions/open_wmemstream.texi: Likewise.
25162         * doc/posix-functions/swscanf.texi: Likewise.
25163         * doc/posix-functions/towctrans_l.texi: Likewise.
25164         * doc/posix-functions/towlower.texi: Likewise.
25165         * doc/posix-functions/towlower_l.texi: Likewise.
25166         * doc/posix-functions/towupper.texi: Likewise.
25167         * doc/posix-functions/towupper_l.texi: Likewise.
25168         * doc/posix-functions/vfwprintf.texi: Likewise.
25169         * doc/posix-functions/vfwscanf.texi: Likewise.
25170         * doc/posix-functions/vswscanf.texi: Likewise.
25171         * doc/posix-functions/vwprintf.texi: Likewise.
25172         * doc/posix-functions/vwscanf.texi: Likewise.
25173         * doc/posix-functions/wcpcpy.texi: Likewise.
25174         * doc/posix-functions/wcpncpy.texi: Likewise.
25175         * doc/posix-functions/wcscasecmp.texi: Likewise.
25176         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
25177         * doc/posix-functions/wcscoll_l.texi: Likewise.
25178         * doc/posix-functions/wcsdup.texi: Likewise.
25179         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25180         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
25181         * doc/posix-functions/wcsnlen.texi: Likewise.
25182         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25183         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25184         * doc/posix-functions/wctrans_l.texi: Likewise.
25185         * doc/posix-functions/wctype_l.texi: Likewise.
25186         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
25187         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
25188         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
25189         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
25190         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
25191         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
25192         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
25193         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
25194         * doc/glibc-functions/wcschrnul.texi: Likewise.
25195         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25196         * doc/glibc-functions/wcstod_l.texi: Likewise.
25197         * doc/glibc-functions/wcstof_l.texi: Likewise.
25198         * doc/glibc-functions/wcstol_l.texi: Likewise.
25199         * doc/glibc-functions/wcstold_l.texi: Likewise.
25200         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25201         * doc/glibc-functions/wcstoq.texi: Likewise.
25202         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25203         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25204         * doc/glibc-functions/wcstouq.texi: Likewise.
25205         * doc/glibc-functions/wmempcpy.texi: Likewise.
25206
25207 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
25208             Eric Blake  <ebb9@byu.net>
25209             Paolo Bonzini  <bonzini@gnu.org>
25210             Bruno Haible  <bruno@clisp.org>
25211
25212         Make c-stack work on Haiku.
25213         * lib/c-stack.c (SA_ONSTACK): Define fallback.
25214         (c_stack_action): Use SA_ONSTACK flag.
25215
25216 2008-12-22  Bruno Haible  <bruno@clisp.org>
25217
25218         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
25219
25220 2008-12-22  Bruno Haible  <bruno@clisp.org>
25221
25222         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
25223         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
25224         being overridden.
25225         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
25226         New macros.
25227         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
25228         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
25229         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
25230         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
25231
25232 2008-12-22  Bruno Haible  <bruno@clisp.org>
25233
25234         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
25235         from test code.
25236
25237 2008-12-22  Eric Blake  <ebb9@byu.net>
25238
25239         Avoid gcc warnings on cygwin.
25240         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
25241         Avoid unused variable.
25242         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
25243         Likewise.
25244
25245 2008-12-22  Bruno Haible  <bruno@clisp.org>
25246
25247         Remove HAVE_MBRTOWC conditionals.
25248         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
25249         (mbscasecmp): Assume mbrtowc function.
25250         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
25251         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
25252         * lib/mbschr.c: Include mbuiter.h unconditionally.
25253         (mbschr): Assume mbrtowc function.
25254         * lib/mbscspn.c: Include mbuiter.h unconditionally.
25255         (mbscspn): Assume mbrtowc function.
25256         * lib/mbslen.c: Include mbuiter.h unconditionally.
25257         (mbslen): Assume mbrtowc function.
25258         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
25259         (mbsncasecmp): Assume mbrtowc function.
25260         * lib/mbsnlen.c: Include mbiter.h unconditionally.
25261         (mbsnlen): Assume mbrtowc function.
25262         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
25263         (mbspbrk): Assume mbrtowc function.
25264         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
25265         (mbspcasecmp): Assume mbrtowc function.
25266         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
25267         (mbsrchr): Assume mbrtowc function.
25268         * lib/mbssep.c: Include mbuiter.h unconditionally.
25269         (mbssep): Assume mbrtowc function.
25270         * lib/mbsspn.c: Include mbuiter.h unconditionally.
25271         (mbsspn): Assume mbrtowc function.
25272         * lib/mbsstr.c: Include mbuiter.h unconditionally.
25273         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
25274         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
25275         (mbstok_r): Assume mbrtowc function.
25276         * lib/propername.c: Include mbuiter.h unconditionally.
25277         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
25278         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
25279         (trim2): Assume mbrtowc function.
25280         * lib/mbswidth.c (mbsinit): Remove fallback definition.
25281         (mbsnwidth): Assume mbrtowc function.
25282         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
25283         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
25284         fallback definitions.
25285         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
25286
25287 2008-12-22  Bruno Haible  <bruno@clisp.org>
25288
25289         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
25290
25291 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
25292
25293         * modules/regex: Request emulations for the mb*/wc* functions we need.
25294         * m4/regex.m4: Don't look for those functions here.
25295         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
25296
25297 2008-12-22  Bruno Haible  <bruno@clisp.org>
25298
25299         * modules/fnmatch (Depends-on): Remove duplicated dependency.
25300
25301 2008-12-21  Bruno Haible  <bruno@clisp.org>
25302
25303         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
25304         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
25305         (Include): Remove conditionalization.
25306         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
25307         (Include): Remove conditionalization.
25308         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
25309         (Include): Remove conditionalization.
25310         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
25311         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25312         * NEWS: Mention the change.
25313         Reported by Alan Hourihane <alanh@fairlite.co.uk>
25314         via Sergey Poznyakoff <gray@gnu.org.ua>.
25315
25316 2008-12-21  Bruno Haible  <bruno@clisp.org>
25317
25318         * MODULES.html.sh (Extended multibyte and wide character utilities
25319         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
25320         wcrtomb, wcsrtombs.
25321         (Support for systems lacking POSIX:2008): Add accept, bind, close,
25322         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
25323         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
25324         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
25325
25326 2008-12-21  Bruno Haible  <bruno@clisp.org>
25327
25328         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
25329
25330 2008-12-21  Bruno Haible  <bruno@clisp.org>
25331
25332         * modules/wcsnrtombs-tests: New file.
25333         * tests/test-wcsnrtombs1.sh: New file.
25334         * tests/test-wcsnrtombs2.sh: New file.
25335         * tests/test-wcsnrtombs3.sh: New file.
25336         * tests/test-wcsnrtombs4.sh: New file.
25337         * tests/test-wcsnrtombs.c: New file.
25338
25339         New module 'wcsnrtombs'.
25340         * lib/wchar.in.h (wcsnrtombs): New declaration.
25341         * lib/wcsnrtombs.c: New file.
25342         * lib/wcsrtombs-state.c: New file.
25343         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
25344         (internal_state): Remove variable.
25345         * m4/wcsnrtombs.m4: New file.
25346         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
25347         compilation units.
25348         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
25349         HAVE_WCSNRTOMBS.
25350         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
25351         HAVE_WCSNRTOMBS.
25352         * modules/wcsnrtombs: New file.
25353         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
25354         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
25355
25356 2008-12-21  Bruno Haible  <bruno@clisp.org>
25357
25358         * modules/wcsrtombs-tests: New file.
25359         * tests/test-wcsrtombs1.sh: New file.
25360         * tests/test-wcsrtombs2.sh: New file.
25361         * tests/test-wcsrtombs3.sh: New file.
25362         * tests/test-wcsrtombs4.sh: New file.
25363         * tests/test-wcsrtombs.c: New file.
25364
25365         New module 'wcsrtombs'.
25366         * lib/wchar.in.h (wcsrtombs): New declaration.
25367         * lib/wcsrtombs.c: New file.
25368         * m4/wcsrtombs.m4: New file.
25369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
25370         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25371         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
25372         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25373         * modules/wcsrtombs: New file.
25374         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
25375         bugs.
25376
25377 2008-12-21  Bruno Haible  <bruno@clisp.org>
25378
25379         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
25380         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
25381         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
25382         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
25383         if not correct.
25384         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
25385         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
25386         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25387         m4/locale-zh.m4, m4/codeset.m4.
25388         * doc/posix-functions/wcrtomb.texi: Document the bug.
25389
25390 2008-12-21  Bruno Haible  <bruno@clisp.org>
25391
25392         Work around a btowc() bug on IRIX 6.5.
25393         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
25394         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
25395         REPLACE_WTOBC if not.
25396         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
25397         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
25398         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
25399
25400 2008-12-21  Bruno Haible  <bruno@clisp.org>
25401
25402         * modules/wcrtomb-tests: New file.
25403         * tests/test-wcrtomb.sh: New file.
25404         * tests/test-wcrtomb.c: New file.
25405
25406         New module 'wcrtomb'.
25407         * lib/wchar.in.h (wcrtomb): New declaration.
25408         * lib/wcrtomb.c: New file.
25409         * m4/wcrtomb.m4: New file.
25410         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
25411         HAVE_WCRTOMB.
25412         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
25413         HAVE_WCRTOMB.
25414         * modules/wcrtomb: New file.
25415         * doc/posix-functions/wcrtomb.texi: Mention the new module.
25416
25417 2008-12-21  Bruno Haible  <bruno@clisp.org>
25418
25419         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
25420         * modules/mbsrtowcs (Files): Likewise.
25421         * modules/wctob (Files): Likewise.
25422         * modules/c-strcase-tests (Files): Likewise.
25423         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25424         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25425         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25426         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25427         * modules/vasnprintf-posix-tests (Files): Likewise.
25428
25429 2008-12-21  William Pursell  <bill.pursell@gmail.com>
25430
25431         gitlog-to-changelog: pass all command-line arguments to git-log
25432         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
25433         it is sometimes convenient to filter the commits in various ways.
25434         gitlog-to-changelog only allows --since to specify a start date,
25435         but git-log itself supports many other filtering mechanisms.
25436         At the moment, I want to filter by branch name.  Rather than
25437         adding a --branch option to gitlog-to-changelog, it seems more
25438         flexible to simply pass all options directly to git-log and let
25439         git do the work.  Notice that this effectively makes --since a
25440         redundant option for gitlog-to-changelog, but removing it would
25441         require current usage to change since calls would then require
25442         an additional '--'.
25443
25444 2008-12-21  Bruno Haible  <bruno@clisp.org>
25445
25446         * modules/mbsnrtowcs-tests: New file.
25447         * tests/test-mbsnrtowcs1.sh: New file.
25448         * tests/test-mbsnrtowcs2.sh: New file.
25449         * tests/test-mbsnrtowcs3.sh: New file.
25450         * tests/test-mbsnrtowcs4.sh: New file.
25451         * tests/test-mbsnrtowcs.c: New file.
25452
25453         New module 'mbsnrtowcs'.
25454         * lib/wchar.in.h (mbsnrtowcs): New declaration.
25455         * lib/mbsnrtowcs.c: New file.
25456         * lib/mbsrtowcs-state.c: New file.
25457         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
25458         (internal_state): Remove variable.
25459         * m4/mbsnrtowcs.m4: New file.
25460         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
25461         compilation units.
25462         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
25463         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
25464         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
25465         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
25466         * modules/mbsnrtowcs: New file.
25467         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
25468         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
25469         portability problem.
25470
25471 2008-12-21  Bruno Haible  <bruno@clisp.org>
25472
25473         Work around mbsrtowcs bug.
25474         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
25475         (gl_FUNC_MBSRTOWCS): Invoke it.
25476         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25477         m4/locale-zh.m4.
25478         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
25479
25480 2008-12-21  Bruno Haible  <bruno@clisp.org>
25481
25482         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
25483
25484 2008-12-21  Bruno Haible  <bruno@clisp.org>
25485
25486         Update doc for AIX.
25487         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
25488         16-bit wchar_t type.
25489         * doc/posix-functions/btowc.texi: Likewise.
25490         * doc/posix-functions/fgetwc.texi: Likewise.
25491         * doc/posix-functions/fgetws.texi: Likewise.
25492         * doc/posix-functions/fputwc.texi: Likewise.
25493         * doc/posix-functions/fputws.texi: Likewise.
25494         * doc/posix-functions/fwide.texi: Likewise.
25495         * doc/posix-functions/fwprintf.texi: Likewise.
25496         * doc/posix-functions/fwscanf.texi: Likewise.
25497         * doc/posix-functions/getwchar.texi: Likewise.
25498         * doc/posix-functions/getwc.texi: Likewise.
25499         * doc/posix-functions/iswalnum.texi: Likewise.
25500         * doc/posix-functions/iswalpha.texi: Likewise.
25501         * doc/posix-functions/iswblank.texi: Likewise.
25502         * doc/posix-functions/iswcntrl.texi: Likewise.
25503         * doc/posix-functions/iswctype.texi: Likewise.
25504         * doc/posix-functions/iswdigit.texi: Likewise.
25505         * doc/posix-functions/iswgraph.texi: Likewise.
25506         * doc/posix-functions/iswlower.texi: Likewise.
25507         * doc/posix-functions/iswprint.texi: Likewise.
25508         * doc/posix-functions/iswpunct.texi: Likewise.
25509         * doc/posix-functions/iswspace.texi: Likewise.
25510         * doc/posix-functions/iswupper.texi: Likewise.
25511         * doc/posix-functions/iswxdigit.texi: Likewise.
25512         * doc/posix-functions/mbrtowc.texi: Likewise.
25513         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25514         * doc/posix-functions/mbstowcs.texi: Likewise.
25515         * doc/posix-functions/mbtowc.texi: Likewise.
25516         * doc/posix-functions/putwchar.texi: Likewise.
25517         * doc/posix-functions/putwc.texi: Likewise.
25518         * doc/posix-functions/swprintf.texi: Likewise.
25519         * doc/posix-functions/tolower.texi: Likewise.
25520         * doc/posix-functions/toupper.texi: Likewise.
25521         * doc/posix-functions/towctrans.texi: Likewise.
25522         * doc/posix-functions/ungetwc.texi: Likewise.
25523         * doc/posix-functions/vswprintf.texi: Likewise.
25524         * doc/posix-functions/wcrtomb.texi: Likewise.
25525         * doc/posix-functions/wcscat.texi: Likewise.
25526         * doc/posix-functions/wcschr.texi: Likewise.
25527         * doc/posix-functions/wcscmp.texi: Likewise.
25528         * doc/posix-functions/wcscoll.texi: Likewise.
25529         * doc/posix-functions/wcscpy.texi: Likewise.
25530         * doc/posix-functions/wcscspn.texi: Likewise.
25531         * doc/posix-functions/wcsftime.texi: Likewise.
25532         * doc/posix-functions/wcslen.texi: Likewise.
25533         * doc/posix-functions/wcsncat.texi: Likewise.
25534         * doc/posix-functions/wcsncmp.texi: Likewise.
25535         * doc/posix-functions/wcsncpy.texi: Likewise.
25536         * doc/posix-functions/wcspbrk.texi: Likewise.
25537         * doc/posix-functions/wcsrchr.texi: Likewise.
25538         * doc/posix-functions/wcsrtombs.texi: Likewise.
25539         * doc/posix-functions/wcsspn.texi: Likewise.
25540         * doc/posix-functions/wcsstr.texi: Likewise.
25541         * doc/posix-functions/wcstod.texi: Likewise.
25542         * doc/posix-functions/wcstof.texi: Likewise.
25543         * doc/posix-functions/wcstoimax.texi: Likewise.
25544         * doc/posix-functions/wcstok.texi: Likewise.
25545         * doc/posix-functions/wcstold.texi: Likewise.
25546         * doc/posix-functions/wcstoll.texi: Likewise.
25547         * doc/posix-functions/wcstol.texi: Likewise.
25548         * doc/posix-functions/wcstombs.texi: Likewise.
25549         * doc/posix-functions/wcstoull.texi: Likewise.
25550         * doc/posix-functions/wcstoul.texi: Likewise.
25551         * doc/posix-functions/wcstoumax.texi: Likewise.
25552         * doc/posix-functions/wcswidth.texi: Likewise.
25553         * doc/posix-functions/wcsxfrm.texi: Likewise.
25554         * doc/posix-functions/wctob.texi: Likewise.
25555         * doc/posix-functions/wctomb.texi: Likewise.
25556         * doc/posix-functions/wctrans.texi: Likewise.
25557         * doc/posix-functions/wctype.texi: Likewise.
25558         * doc/posix-functions/wcwidth.texi: Likewise.
25559         * doc/posix-functions/wmemchr.texi: Likewise.
25560         * doc/posix-functions/wmemcmp.texi: Likewise.
25561         * doc/posix-functions/wmemcpy.texi: Likewise.
25562         * doc/posix-functions/wmemmove.texi: Likewise.
25563         * doc/posix-functions/wmemset.texi: Likewise.
25564         * doc/posix-functions/wprintf.texi: Likewise.
25565         * doc/posix-functions/wscanf.texi: Likewise.
25566
25567 2008-12-21  Bruno Haible  <bruno@clisp.org>
25568
25569         Update doc for HP-UX 11.11.
25570         * doc/posix-functions/btowc.texi: Clarify that the function is missing
25571         in HP-UX version 11.00, not in all versions of HP-UX 11.
25572         * doc/posix-functions/fwide.texi: Likewise.
25573         * doc/posix-functions/fwprintf.texi: Likewise.
25574         * doc/posix-functions/fwscanf.texi: Likewise.
25575         * doc/posix-functions/inet_ntop.texi: Likewise.
25576         * doc/posix-functions/inet_pton.texi: Likewise.
25577         * doc/posix-functions/mbrlen.texi: Likewise.
25578         * doc/posix-functions/mbrtowc.texi: Likewise.
25579         * doc/posix-functions/mbsinit.texi: Likewise.
25580         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25581         * doc/posix-functions/swprintf.texi: Likewise.
25582         * doc/posix-functions/swscanf.texi: Likewise.
25583         * doc/posix-functions/towctrans.texi: Likewise.
25584         * doc/posix-functions/vfwprintf.texi: Likewise.
25585         * doc/posix-functions/vswprintf.texi: Likewise.
25586         * doc/posix-functions/vwprintf.texi: Likewise.
25587         * doc/posix-functions/wcrtomb.texi: Likewise.
25588         * doc/posix-functions/wcsrtombs.texi: Likewise.
25589         * doc/posix-functions/wcsstr.texi: Likewise.
25590         * doc/posix-functions/wctob.texi: Likewise.
25591         * doc/posix-functions/wctrans.texi: Likewise.
25592         * doc/posix-functions/wmemchr.texi: Likewise.
25593         * doc/posix-functions/wmemcmp.texi: Likewise.
25594         * doc/posix-functions/wmemcpy.texi: Likewise.
25595         * doc/posix-functions/wmemmove.texi: Likewise.
25596         * doc/posix-functions/wmemset.texi: Likewise.
25597         * doc/posix-functions/wprintf.texi: Likewise.
25598         * doc/posix-functions/wscanf.texi: Likewise.
25599
25600 2008-12-21  Bruno Haible  <bruno@clisp.org>
25601
25602         Work around a portability problem.
25603         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
25604         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
25605
25606 2008-12-20  Bruno Haible  <bruno@clisp.org>
25607
25608         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
25609         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
25610         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
25611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
25612         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
25613
25614         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
25615         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
25616         set.
25617         (GNULIB_defined_mbstate_t): New macro.
25618         (mbsinit): Redefine if REPLACE_MBSINIT is set.
25619         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
25620         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
25621         reuses the system's mbrtowc function but works around the bugs.
25622         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
25623         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
25624         macros.
25625         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
25626         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
25627         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
25628         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
25629         REPLACE_MBSINIT if mbsinit needs to be overridden.
25630         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
25631         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25632         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
25633         REPLACE_MBSINIT, REPLACE_MBRTOWC.
25634         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25635         m4/locale-zh.m4.
25636         (Depends): Add mbsinit.
25637         * modules/mbsinit (Depends): Add mbrtowc.
25638         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
25639
25640 2008-12-20  Bruno Haible  <bruno@clisp.org>
25641
25642         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
25643         so that there are no conversion errors on AIX.
25644         * tests/test-mbsrtowcs.c (main): LIkewise.
25645
25646 2008-12-20  Bruno Haible  <bruno@clisp.org>
25647
25648         Work around wctob bug on Solaris <= 9.
25649         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
25650         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
25651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
25652         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
25653         * modules/wctob (Files): Add m4/locale-fr.m4.
25654         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
25655
25656 2008-12-20  Bruno Haible  <bruno@clisp.org>
25657
25658         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
25659         /dev/null.
25660         * tests/test-select-in.sh: Likewise.
25661         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25662
25663 2008-12-20  Bruno Haible  <bruno@clisp.org>
25664
25665         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
25666         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
25667         Cygwin 1.5.x.
25668
25669 2008-12-20  Bruno Haible  <bruno@clisp.org>
25670
25671         Ensure mbstate_t is defined on HP-UX 11.11.
25672         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
25673         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
25674         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
25675         AC_USE_SYSTEM_EXTENSIONS.
25676         * modules/fnmatch (Depends-on): Add extensions.
25677         * modules/mbrlen (Depends-on): Likewise.
25678         * modules/mbrtowc (Depends-on): Likewise.
25679         * modules/mbsinit (Depends-on): Likewise.
25680         * modules/mbsrtowcs (Depends-on): Likewise.
25681         * modules/mbswidth (Depends-on): Likewise.
25682         * modules/quotearg (Depends-on): Likewise.
25683         * modules/strftime (Depends-on): Likewise.
25684
25685 2008-12-20  Bruno Haible  <bruno@clisp.org>
25686
25687         Ensure wctob is declared on IRIX 6.5.
25688         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
25689         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
25690         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
25691         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
25692         of HAVE_WCTOB.
25693         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
25694         HAVE_WCTOB.
25695         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
25696
25697 2008-12-19  Bruno Haible  <bruno@clisp.org>
25698
25699         * modules/mbsrtowcs-tests: New file.
25700         * tests/test-mbsrtowcs1.sh: New file.
25701         * tests/test-mbsrtowcs2.sh: New file.
25702         * tests/test-mbsrtowcs3.sh: New file.
25703         * tests/test-mbsrtowcs4.sh: New file.
25704         * tests/test-mbsrtowcs.c: New file.
25705
25706         New module 'mbsrtowcs'.
25707         * lib/wchar.in.h (mbsrtowcs): New declaration.
25708         * lib/mbsrtowcs.c: New file.
25709         * m4/mbsrtowcs.m4: New file.
25710         * modules/mbsrtowcs: New file.
25711         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
25712         HAVE_MBSRTOWCS.
25713         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
25714         HAVE_MBSRTOWCS.
25715         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
25716
25717 2008-12-19  Bruno Haible  <bruno@clisp.org>
25718
25719         New module 'mbrlen'.
25720         * lib/wchar.in.h (mbrlen): New declaration.
25721         * lib/mbrlen.c: New file.
25722         * m4/mbrlen.m4: New file.
25723         * modules/mbrlen: New file.
25724         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
25725         HAVE_MBRLEN.
25726         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
25727         HAVE_MBRLEN.
25728         * doc/posix-functions/mbrlen.texi: Document the new module.
25729
25730 2008-12-19  Bruno Haible  <bruno@clisp.org>
25731
25732         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
25733         * modules/mbrtowc (Depends-on): Add verify.
25734         Suggested by Paul Eggert.
25735
25736 2008-12-18  Bruno Haible  <bruno@clisp.org>
25737
25738         * modules/mbsinit-tests: New file.
25739         * tests/test-mbsinit.sh: New file.
25740         * tests/test-mbsinit.c: New file.
25741
25742 2008-12-18  Bruno Haible  <bruno@clisp.org>
25743
25744         * modules/mbrtowc-tests: New file.
25745         * tests/test-mbrtowc1.sh: New file.
25746         * tests/test-mbrtowc2.sh: New file.
25747         * tests/test-mbrtowc3.sh: New file.
25748         * tests/test-mbrtowc4.sh: New file.
25749         * tests/test-mbrtowc.c: New file.
25750
25751         New module 'mbrtowc'.
25752         * lib/wchar.in.h (mbstate_t): Override when the system does not have
25753         mbsinit and mbrtowc.
25754         (mbrtowc): New declaration.
25755         * lib/mbrtowc.c: New file.
25756         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
25757         * modules/mbrtowc: New file.
25758         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
25759         HAVE_MBRTOWC.
25760         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
25761         HAVE_MBRTOWC.
25762         * doc/posix-functions/mbrtowc.texi: Document the new module.
25763
25764 2008-12-18  Bruno Haible  <bruno@clisp.org>
25765
25766         New module 'wctob'.
25767         * lib/wchar.in.h (wctob): New declaration.
25768         * lib/wctob.c: New file.
25769         * m4/wctob.m4: New file.
25770         * modules/wctob: New file.
25771         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
25772         HAVE_WCTOB.
25773         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
25774         * doc/posix-functions/wctob.texi: Document the new module.
25775
25776 2008-12-18  Bruno Haible  <bruno@clisp.org>
25777
25778         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
25779         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
25780
25781 2008-12-18  Simon Josefsson  <simon@josefsson.org>
25782
25783         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
25784         G. Christensen" <tgc@jupiterrise.com>.
25785
25786         * lib/flock.c: Need to include errno.h.  Reported by "Tom
25787         G. Christensen" <tgc@jupiterrise.com>.
25788
25789         * lib/flock.c: Need to include string.h.  Reported by "Tom
25790         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
25791         <ebb9@byu.net>.
25792
25793 2008-12-18  Bruno Haible  <bruno@clisp.org>
25794
25795         * m4/locale-ja.m4: New file, from GNU gettext.
25796
25797 2008-12-17  Bruno Haible  <bruno@clisp.org>
25798
25799         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
25800         Suggested by Eric Blake.
25801
25802 2008-12-17  Bruno Haible  <bruno@clisp.org>
25803
25804         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
25805
25806 2008-12-17  Bruno Haible  <bruno@clisp.org>
25807
25808         * lib/mbsinit.c: Include verify.h. Verify an assumption.
25809         * modules/mbsinit (Depends-on): Add verify.
25810         Suggested by Paul Eggert.
25811
25812 2008-12-17  Bruno Haible  <bruno@clisp.org>
25813
25814         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
25815         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
25816         gl_FUNC_MBRTOWC.
25817         * m4/mbiter.m4 (gl_MBITER): LIkewise.
25818         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
25819         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
25820         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
25821         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
25822         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
25823         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
25824         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
25825         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
25826         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
25827         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
25828         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
25829         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
25830         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
25831         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
25832         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25833         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
25834         * modules/trim (configure.ac): Likewise.
25835
25836 2008-12-17  Bruno Haible  <bruno@clisp.org>
25837
25838         * modules/btowc-tests: New file.
25839         * tests/test-btowc1.sh: New file.
25840         * tests/test-btowc2.sh: New file.
25841         * tests/test-btowc.c: New file.
25842
25843         New module 'btowc'.
25844         * lib/wchar.in.h (btowc): New declaration.
25845         * lib/btowc.c: New file.
25846         * m4/btowc.m4: New file.
25847         * modules/btowc: New file.
25848         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
25849         HAVE_BTOWC.
25850         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
25851         * doc/posix-functions/btowc.texi: Document the new module.
25852
25853 2008-12-17  Bruno Haible  <bruno@clisp.org>
25854
25855         New module 'mbsinit'.
25856         * lib/wchar.in.h (mbsinit): New declaration.
25857         * lib/mbsinit.c: New file.
25858         * m4/mbsinit.m4: New file.
25859         * modules/mbsinit: New file.
25860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
25861         HAVE_MBSINIT.
25862         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
25863         HAVE_MBSINIT.
25864         * doc/posix-functions/mbsinit.texi: Document the new module.
25865
25866 2008-12-16  Bruno Haible  <bruno@clisp.org>
25867
25868         * lib/unistd.in.h: Add comment.
25869         * tests/test-environ.c: Don't include <stdlib.h>.
25870
25871 2008-12-16  Bruno Haible  <bruno@clisp.org>
25872
25873         * lib/parse-duration.h (parse_duration): Document return value
25874         convention.
25875         * lib/parse-duration.c: Include specification header first. Add
25876         comments.
25877         (_): Remove macro.
25878         (parse_year_month_day, parse_hour_minute_second): Move side effects
25879         outside of strchr call.
25880         (parse_non_iso8601): Move side effects outside of isspace call.
25881         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
25882         call.
25883
25884 2008-12-16  Bruno Haible  <bruno@clisp.org>
25885
25886         * tests/test-parse-duration.sh: Produce no output when the test
25887         succeeds.
25888
25889 2008-12-16  Bruno Haible  <bruno@clisp.org>
25890
25891         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
25892         expressions.
25893
25894 2008-12-15  Bruno Haible  <bruno@clisp.org>
25895
25896         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
25897         * doc/glibc-functions/flistxattr.texi: Likewise.
25898         * doc/glibc-functions/fopencookie.texi: Likewise.
25899         * doc/glibc-functions/fremovexattr.texi: Likewise.
25900         * doc/glibc-functions/fsetxattr.texi: Likewise.
25901         * doc/glibc-functions/getxattr.texi: Likewise.
25902         * doc/glibc-functions/lgetxattr.texi: Likewise.
25903         * doc/glibc-functions/listxattr.texi: Likewise.
25904         * doc/glibc-functions/llistxattr.texi: Likewise.
25905         * doc/glibc-functions/lremovexattr.texi: Likewise.
25906         * doc/glibc-functions/lsetxattr.texi: Likewise.
25907         * doc/glibc-functions/removexattr.texi: Likewise.
25908         * doc/glibc-functions/setxattr.texi: Likewise.
25909         * doc/posix-functions/open_memstream.texi: Likewise.
25910
25911 2008-12-15  Eric Blake  <ebb9@byu.net>
25912
25913         Update doc for cygwin 1.7.
25914         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
25915         functions.
25916         * doc/posix-functions/fchmodat.texi: Likewise.
25917         * doc/posix-functions/fchownat.texi: Likewise.
25918         * doc/posix-functions/fdopendir.texi: Likewise.
25919         * doc/posix-functions/fmemopen.texi: Likewise.
25920         * doc/posix-functions/freeaddrinfo.texi: Likewise.
25921         * doc/posix-functions/fstatat.texi: Likewise.
25922         * doc/posix-functions/futimens.texi: Likewise.
25923         * doc/posix-functions/gai_strerror.texi: Likewise.
25924         * doc/posix-functions/getaddrinfo.texi: Likewise.
25925         * doc/posix-functions/getnameinfo.texi: Likewise.
25926         * doc/posix-functions/if_freenameindex.texi: Likewise.
25927         * doc/posix-functions/if_indextoname.texi: Likewise.
25928         * doc/posix-functions/if_nameindex.texi: Likewise.
25929         * doc/posix-functions/if_nametoindex.texi: Likewise.
25930         * doc/posix-functions/insque.texi: Likewise.
25931         * doc/posix-functions/linkat.texi: Likewise.
25932         * doc/posix-functions/llrint.texi: Likewise.
25933         * doc/posix-functions/llrintf.texi: Likewise.
25934         * doc/posix-functions/llrintl.texi: Likewise.
25935         * doc/posix-functions/lockf.texi: Likewise.
25936         * doc/posix-functions/lrintl.texi: Likewise.
25937         * doc/posix-functions/mkdirat.texi: Likewise.
25938         * doc/posix-functions/mkfifoat.texi: Likewise.
25939         * doc/posix-functions/mknodat.texi: Likewise.
25940         * doc/posix-functions/mq_close.texi: Likewise.
25941         * doc/posix-functions/mq_getattr.texi: Likewise.
25942         * doc/posix-functions/mq_notify.texi: Likewise.
25943         * doc/posix-functions/mq_open.texi: Likewise.
25944         * doc/posix-functions/mq_receive.texi: Likewise.
25945         * doc/posix-functions/mq_send.texi: Likewise.
25946         * doc/posix-functions/mq_setattr.texi: Likewise.
25947         * doc/posix-functions/mq_timedreceive.texi: Likewise.
25948         * doc/posix-functions/mq_timedsend.texi: Likewise.
25949         * doc/posix-functions/mq_unlink.texi: Likewise.
25950         * doc/posix-functions/open_memstream.texi: Likewise.
25951         * doc/posix-functions/openat.texi: Likewise.
25952         * doc/posix-functions/posix_fadvise.texi: Likewise.
25953         * doc/posix-functions/posix_fallocate.texi: Likewise.
25954         * doc/posix-functions/posix_madvise.texi: Likewise.
25955         * doc/posix-functions/posix_memalign.texi: Likewise.
25956         * doc/posix-functions/posix_openpt.texi: Likewise.
25957         * doc/posix-functions/readlinkat.texi: Likewise.
25958         * doc/posix-functions/remque.texi: Likewise.
25959         * doc/posix-functions/renameat.texi: Likewise.
25960         * doc/posix-functions/rintl.texi: Likewise.
25961         * doc/posix-functions/sem_unlink.texi: Likewise.
25962         * doc/posix-functions/shm_open.texi: Likewise.
25963         * doc/posix-functions/shm_unlink.texi: Likewise.
25964         * doc/posix-functions/signgam.texi: Likewise.
25965         * doc/posix-functions/sigset.texi: Likewise.
25966         * doc/posix-functions/stpcpy.texi: Likewise.
25967         * doc/posix-functions/stpncpy.texi: Likewise.
25968         * doc/posix-functions/strerror.texi: Likewise.
25969         * doc/posix-functions/strtod.texi: Likewise.
25970         * doc/posix-functions/symlinkat.texi: Likewise.
25971         * doc/posix-functions/unlinkat.texi: Likewise.
25972         * doc/posix-functions/utimensat.texi: Likewise.
25973         * doc/glibc-functions/bindresvport.texi: Likewise.
25974         * doc/glibc-functions/dn_expand.texi: Likewise.
25975         * doc/glibc-functions/exp10.texi: Likewise.
25976         * doc/glibc-functions/exp10f.texi: Likewise.
25977         * doc/glibc-functions/fgetxattr.texi: Likewise.
25978         * doc/glibc-functions/flistxattr.texi: Likewise.
25979         * doc/glibc-functions/fopencookie.texi: Likewise.
25980         * doc/glibc-functions/freeifaddrs.texi: Likewise.
25981         * doc/glibc-functions/fremovexattr.texi: Likewise.
25982         * doc/glibc-functions/fsetxattr.texi: Likewise.
25983         * doc/glibc-functions/getifaddrs.texi: Likewise.
25984         * doc/glibc-functions/getxattr.texi: Likewise.
25985         * doc/glibc-functions/lgetxattr.texi: Likewise.
25986         * doc/glibc-functions/listxattr.texi: Likewise.
25987         * doc/glibc-functions/llistxattr.texi: Likewise.
25988         * doc/glibc-functions/lremovexattr.texi: Likewise.
25989         * doc/glibc-functions/lsetxattr.texi: Likewise.
25990         * doc/glibc-functions/pow10.texi: Likewise.
25991         * doc/glibc-functions/pow10f.texi: Likewise.
25992         * doc/glibc-functions/rcmd_af.texi: Likewise.
25993         * doc/glibc-functions/removexattr.texi: Likewise.
25994         * doc/glibc-functions/res_init.texi: Likewise.
25995         * doc/glibc-functions/res_mkquery.texi: Likewise.
25996         * doc/glibc-functions/res_query.texi: Likewise.
25997         * doc/glibc-functions/res_querydomain.texi: Likewise.
25998         * doc/glibc-functions/res_send.texi: Likewise.
25999         * doc/glibc-functions/rresvport_af.texi: Likewise.
26000         * doc/glibc-functions/setxattr.texi: Likewise.
26001         * doc/glibc-functions/strcasestr.texi: Likewise.
26002
26003 2008-12-15  Bruno Haible  <bruno@clisp.org>
26004
26005         Fix compilation error on OSF/1 4.0.
26006         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
26007         <sys/time.h>, simply delegate to the system header.
26008         Reported by Daniel Richard G. <oss@teragram.com>.
26009
26010 2008-12-15  Bruno Haible  <bruno@clisp.org>
26011
26012         * doc/posix-functions/openat.texi: Mention the 'openat' module.
26013         * doc/posix-functions/fchmodat.texi: Likewise.
26014         * doc/posix-functions/fchownat.texi: Likewise.
26015         * doc/posix-functions/fdopendir.texi: Likewise.
26016         * doc/posix-functions/fstatat.texi: Likewise.
26017         * doc/posix-functions/mkdirat.texi: Likewise.
26018         * doc/posix-functions/unlinkat.texi: Likewise.
26019
26020 2008-12-14  Bruno Haible  <bruno@clisp.org>
26021
26022         Update doc for POSIX:2008.
26023         * doc/posix-functions/faccessat.texi: New file.
26024         * doc/posix-functions/fchmodat.texi: New file.
26025         * doc/posix-functions/fchownat.texi: New file.
26026         * doc/posix-functions/fdopendir.texi: New file.
26027         * doc/posix-functions/fstatat.texi: New file.
26028         * doc/posix-functions/futimens.texi: New file.
26029         * doc/posix-functions/linkat.texi: New file.
26030         * doc/posix-functions/mkdirat.texi: New file.
26031         * doc/posix-functions/mkfifoat.texi: New file.
26032         * doc/posix-functions/mknodat.texi: New file.
26033         * doc/posix-functions/open_wmemstream.texi: New file.
26034         * doc/posix-functions/openat.texi: New file.
26035         * doc/posix-functions/psiginfo.texi: New file.
26036         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
26037         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
26038         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
26039         * doc/posix-functions/readlinkat.texi: New file.
26040         * doc/posix-functions/renameat.texi: New file.
26041         * doc/posix-functions/strerror_l.texi: New file.
26042         * doc/posix-functions/symlinkat.texi: New file.
26043         * doc/posix-functions/unlinkat.texi: New file.
26044         * doc/posix-functions/utimensat.texi: New file.
26045         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26046
26047 2008-12-14  Bruno Haible  <bruno@clisp.org>
26048
26049         Update doc for POSIX:2008.
26050         * doc/posix-functions/alphasort.texi: Renamed from
26051         doc/glibc-functions/alphasort.texi.
26052         * doc/posix-functions/dirfd.texi: Renamed from
26053         doc/glibc-functions/dirfd.texi.
26054         * doc/posix-functions/dprintf.texi: Renamed from
26055         doc/glibc-functions/dprintf.texi.
26056         * doc/posix-functions/duplocale.texi: Renamed from
26057         doc/glibc-functions/duplocale.texi.
26058         * doc/posix-functions/fexecve.texi: Renamed from
26059         doc/glibc-functions/fexecve.texi.
26060         * doc/posix-functions/fmemopen.texi: Renamed from
26061         doc/glibc-functions/fmemopen.texi.
26062         * doc/posix-functions/freelocale.texi: Renamed from
26063         doc/glibc-functions/freelocale.texi.
26064         * doc/posix-functions/getdate_err.texi: Renamed from
26065         doc/glibc-functions/getdate_err.texi.
26066         * doc/posix-functions/isalnum_l.texi: Renamed from
26067         doc/glibc-functions/isalnum_l.texi.
26068         * doc/posix-functions/isalpha_l.texi: Renamed from
26069         doc/glibc-functions/isalpha_l.texi.
26070         * doc/posix-functions/isblank_l.texi: Renamed from
26071         doc/glibc-functions/isblank_l.texi.
26072         * doc/posix-functions/iscntrl_l.texi: Renamed from
26073         doc/glibc-functions/iscntrl_l.texi.
26074         * doc/posix-functions/isdigit_l.texi: Renamed from
26075         doc/glibc-functions/isdigit_l.texi.
26076         * doc/posix-functions/isgraph_l.texi: Renamed from
26077         doc/glibc-functions/isgraph_l.texi.
26078         * doc/posix-functions/islower_l.texi: Renamed from
26079         doc/glibc-functions/islower_l.texi.
26080         * doc/posix-functions/isprint_l.texi: Renamed from
26081         doc/glibc-functions/isprint_l.texi.
26082         * doc/posix-functions/ispunct_l.texi: Renamed from
26083         doc/glibc-functions/ispunct_l.texi.
26084         * doc/posix-functions/isspace_l.texi: Renamed from
26085         doc/glibc-functions/isspace_l.texi.
26086         * doc/posix-functions/isupper_l.texi: Renamed from
26087         doc/glibc-functions/isupper_l.texi.
26088         * doc/posix-functions/iswalnum_l.texi: Renamed from
26089         doc/glibc-functions/iswalnum_l.texi.
26090         * doc/posix-functions/iswalpha_l.texi: Renamed from
26091         doc/glibc-functions/iswalpha_l.texi.
26092         * doc/posix-functions/iswblank_l.texi: Renamed from
26093         doc/glibc-functions/iswblank_l.texi.
26094         * doc/posix-functions/iswcntrl_l.texi: Renamed from
26095         doc/glibc-functions/iswcntrl_l.texi.
26096         * doc/posix-functions/iswctype_l.texi: Renamed from
26097         doc/glibc-functions/iswctype_l.texi.
26098         * doc/posix-functions/iswdigit_l.texi: Renamed from
26099         doc/glibc-functions/iswdigit_l.texi.
26100         * doc/posix-functions/iswgraph_l.texi: Renamed from
26101         doc/glibc-functions/iswgraph_l.texi.
26102         * doc/posix-functions/iswlower_l.texi: Renamed from
26103         doc/glibc-functions/iswlower_l.texi.
26104         * doc/posix-functions/iswprint_l.texi: Renamed from
26105         doc/glibc-functions/iswprint_l.texi.
26106         * doc/posix-functions/iswpunct_l.texi: Renamed from
26107         doc/glibc-functions/iswpunct_l.texi.
26108         * doc/posix-functions/iswspace_l.texi: Renamed from
26109         doc/glibc-functions/iswspace_l.texi.
26110         * doc/posix-functions/iswupper_l.texi: Renamed from
26111         doc/glibc-functions/iswupper_l.texi.
26112         * doc/posix-functions/iswxdigit_l.texi: Renamed from
26113         doc/glibc-functions/iswxdigit_l.texi.
26114         * doc/posix-functions/isxdigit_l.texi: Renamed from
26115         doc/glibc-functions/isxdigit_l.texi.
26116         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
26117         doc/glibc-functions/mbsnrtowcs.texi.
26118         * doc/posix-functions/mkdtemp.texi: Renamed from
26119         doc/glibc-functions/mkdtemp.texi.
26120         * doc/posix-functions/newlocale.texi: Renamed from
26121         doc/glibc-functions/newlocale.texi.
26122         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
26123         doc/glibc-functions/nl_langinfo_l.texi.
26124         * doc/posix-functions/open_memstream.texi: Renamed from
26125         doc/glibc-functions/open_memstream.texi.
26126         * doc/posix-functions/opterr.texi: Renamed from
26127         doc/glibc-functions/opterr.texi.
26128         * doc/posix-functions/optind.texi: Renamed from
26129         doc/glibc-functions/optind.texi.
26130         * doc/posix-functions/optopt.texi: Renamed from
26131         doc/glibc-functions/optopt.texi.
26132         * doc/posix-functions/psignal.texi: Renamed from
26133         doc/glibc-functions/psignal.texi.
26134         * doc/posix-functions/scandir.texi: Renamed from
26135         doc/glibc-functions/scandir.texi.
26136         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
26137         doc/glibc-functions/sched_get_priority_min.texi.
26138         * doc/posix-functions/signgam.texi: Renamed from
26139         doc/glibc-functions/signgam.texi.
26140         * doc/posix-functions/stpcpy.texi: Renamed from
26141         doc/glibc-functions/stpcpy.texi.
26142         * doc/posix-functions/stpncpy.texi: Renamed from
26143         doc/glibc-functions/stpncpy.texi.
26144         * doc/posix-functions/strcasecmp_l.texi: Renamed from
26145         doc/glibc-functions/strcasecmp_l.texi.
26146         * doc/posix-functions/strcoll_l.texi: Renamed from
26147         doc/glibc-functions/strcoll_l.texi.
26148         * doc/posix-functions/strfmon_l.texi: Renamed from
26149         doc/glibc-functions/strfmon_l.texi.
26150         * doc/posix-functions/strftime_l.texi: Renamed from
26151         doc/glibc-functions/strftime_l.texi.
26152         * doc/posix-functions/strncasecmp_l.texi: Renamed from
26153         doc/glibc-functions/strncasecmp_l.texi.
26154         * doc/posix-functions/strndup.texi: Renamed from
26155         doc/glibc-functions/strndup.texi.
26156         * doc/posix-functions/strnlen.texi: Renamed from
26157         doc/glibc-functions/strnlen.texi.
26158         * doc/posix-functions/strsignal.texi: Renamed from
26159         doc/glibc-functions/strsignal.texi.
26160         * doc/posix-functions/strxfrm_l.texi: Renamed from
26161         doc/glibc-functions/strxfrm_l.texi.
26162         * doc/posix-functions/timer_gettime.texi: Renamed from
26163         doc/glibc-functions/timer_gettime.texi.
26164         * doc/posix-functions/tolower_l.texi: Renamed from
26165         doc/glibc-functions/tolower_l.texi.
26166         * doc/posix-functions/toupper_l.texi: Renamed from
26167         doc/glibc-functions/toupper_l.texi.
26168         * doc/posix-functions/towctrans_l.texi: Renamed from
26169         doc/glibc-functions/towctrans_l.texi.
26170         * doc/posix-functions/towlower_l.texi: Renamed from
26171         doc/glibc-functions/towlower_l.texi.
26172         * doc/posix-functions/towupper_l.texi: Renamed from
26173         doc/glibc-functions/towupper_l.texi.
26174         * doc/posix-functions/uselocale.texi: Renamed from
26175         doc/glibc-functions/uselocale.texi.
26176         * doc/posix-functions/vdprintf.texi: Renamed from
26177         doc/glibc-functions/vdprintf.texi.
26178         * doc/posix-functions/wcpcpy.texi:
26179         Renamed from doc/glibc-functions/wcpcpy.texi.
26180         * doc/posix-functions/wcpncpy.texi: Renamed from
26181         doc/glibc-functions/wcpncpy.texi.
26182         * doc/posix-functions/wcscasecmp.texi: Renamed from
26183         doc/glibc-functions/wcscasecmp.texi.
26184         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
26185         doc/glibc-functions/wcscasecmp_l.texi.
26186         * doc/posix-functions/wcscoll_l.texi: Renamed from
26187         doc/glibc-functions/wcscoll_l.texi.
26188         * doc/posix-functions/wcsdup.texi: Renamed from
26189         doc/glibc-functions/wcsdup.texi.
26190         * doc/posix-functions/wcsncasecmp.texi: Renamed from
26191         doc/glibc-functions/wcsncasecmp.texi.
26192         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
26193         doc/glibc-functions/wcsncasecmp_l.texi.
26194         * doc/posix-functions/wcsnlen.texi: Renamed from
26195         doc/glibc-functions/wcsnlen.texi.
26196         * doc/posix-functions/wcsnrtombs.texi: Renamed from
26197         doc/glibc-functions/wcsnrtombs.texi.
26198         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
26199         doc/glibc-functions/wcsxfrm_l.texi.
26200         * doc/posix-functions/wctrans_l.texi: Renamed from
26201         doc/glibc-functions/wctrans_l.texi.
26202         * doc/posix-functions/wctype_l.texi: Renamed from
26203         doc/glibc-functions/wctype_l.texi.
26204         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26205         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
26206         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
26207         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
26208         these subsections.
26209         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
26210         Remove sections.
26211
26212 2008-12-14  Bruno Haible  <bruno@clisp.org>
26213
26214         Update doc for POSIX:2008.
26215         * doc/posix-functions/*.texi: Update URL of POSIX specification.
26216
26217 2008-12-14  Bruno Haible  <bruno@clisp.org>
26218
26219         Update doc for POSIX:2008.
26220         * doc/pastposix-functions/bcmp.texi: Renamed from
26221         doc/posix-functions/bcmp.texi.
26222         * doc/pastposix-functions/bcopy.texi: Renamed from
26223         doc/posix-functions/bcopy.texi.
26224         * doc/pastposix-functions/bsd_signal.texi: Renamed from
26225         doc/posix-functions/bsd_signal.texi.
26226         * doc/pastposix-functions/bzero.texi: Renamed from
26227         doc/posix-functions/bzero.texi.
26228         * doc/pastposix-functions/ecvt.texi: Renamed from
26229         doc/posix-functions/ecvt.texi.
26230         * doc/pastposix-functions/fcvt.texi: Renamed from
26231         doc/posix-functions/fcvt.texi.
26232         * doc/pastposix-functions/ftime.texi: Renamed from
26233         doc/posix-functions/ftime.texi.
26234         * doc/pastposix-functions/gcvt.texi: Renamed from
26235         doc/posix-functions/gcvt.texi.
26236         * doc/pastposix-functions/getcontext.texi: Renamed from
26237         doc/posix-functions/getcontext.texi.
26238         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
26239         doc/posix-functions/gethostbyaddr.texi.
26240         * doc/pastposix-functions/gethostbyname.texi: Renamed from
26241         doc/posix-functions/gethostbyname.texi.
26242         * doc/pastposix-functions/getwd.texi: Renamed from
26243         doc/posix-functions/getwd.texi.
26244         * doc/pastposix-functions/h_errno.texi: Renamed from
26245         doc/posix-functions/h_errno.texi.
26246         * doc/pastposix-functions/index.texi: Renamed from
26247         doc/posix-functions/index.texi.
26248         * doc/pastposix-functions/makecontext.texi: Renamed from
26249         doc/posix-functions/makecontext.texi.
26250         * doc/pastposix-functions/mktemp.texi: Renamed from
26251         doc/posix-functions/mktemp.texi.
26252         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
26253         doc/posix-functions/pthread_attr_getstackaddr.texi.
26254         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
26255         doc/posix-functions/pthread_attr_setstackaddr.texi.
26256         * doc/pastposix-functions/rindex.texi: Renamed from
26257         doc/posix-functions/rindex.texi.
26258         * doc/pastposix-functions/scalb.texi: Renamed from
26259         doc/posix-functions/scalb.texi.
26260         * doc/pastposix-functions/setcontext.texi: Renamed from
26261         doc/posix-functions/setcontext.texi.
26262         * doc/pastposix-functions/swapcontext.texi: Renamed from
26263         doc/posix-functions/swapcontext.texi.
26264         * doc/pastposix-functions/ualarm.texi: Renamed from
26265         doc/posix-functions/ualarm.texi.
26266         * doc/pastposix-functions/usleep.texi: Renamed from
26267         doc/posix-functions/usleep.texi.
26268         * doc/pastposix-functions/vfork.texi: Renamed from
26269         doc/posix-functions/vfork.texi.
26270         * doc/pastposix-functions/wcswcs.texi: Renamed from
26271         doc/posix-functions/wcswcs.texi.
26272         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
26273         (Function Substitutes): Update.
26274
26275 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26276
26277         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
26278         m4/strerror.m4.
26279
26280 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26281             Bruno Haible  <bruno@clisp.org>
26282
26283         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
26284
26285 2008-12-13  Bruno Haible  <bruno@clisp.org>
26286
26287         * modules/strtoull (Depends-on): Remove unistd.
26288
26289 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26290
26291         * modules/strtoull (Depends-on): Add stdlib.
26292
26293 2008-12-11  Simon Josefsson  <simon@josefsson.org>
26294
26295         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
26296
26297 2008-12-10  Jim Meyering  <meyering@redhat.com>
26298
26299         gl_ASSERT: don't say assertions are disabled when they're not
26300         * m4/assert.m4 (gl_ASSERT): Do not make configure report
26301         "checking whether to enable assertions... no", when they are in
26302         fact enabled.  This is solely a bug in the output of configure.
26303         In spite of saying "no", NDEBUG was not defined in that case.
26304         Also, as noted by Eric Blake, leave assertions enabled upon
26305         --enable-assert=INVALID.
26306
26307 2008-12-10  Bruno Haible  <bruno@clisp.org>
26308
26309         Change MODULES.html to refer to POSIX:2008 where possible.
26310         * MODULES.html.sh (POSIX2008_URL): New variable.
26311         (posix_headers): Remove sys/timeb, ucontext.
26312         (posix2001_headers): New variable.
26313         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
26314         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
26315         index, makecontext, mktemp, pthread_attr_getstackaddr,
26316         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
26317         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
26318         (posix2001_functions): New variable.
26319         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
26320         otherwise.
26321
26322 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26323
26324         add missing include to parse-duration.c
26325         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
26326         * modules/parse-duration (Depends-on): Add xalloc.
26327
26328         fix sed script reading maint.mk
26329         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
26330         (syntax-check-rules): Use it.
26331
26332 2008-12-09  Bruno Haible  <bruno@clisp.org>
26333
26334         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
26335         MacOS X 10.4/PowerPC.
26336         Reported by Simon Josefsson.
26337
26338 2008-12-08  Jim Meyering  <meyering@redhat.com>
26339
26340         work around mingw's lack of some S_IF definitions
26341         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
26342         Reported by Simon Josefsson.
26343
26344 2008-12-08  Bruno Haible  <bruno@clisp.org>
26345
26346         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
26347         applied to variables. Needed on MacOS X 10.4/PowerPC.
26348         Reported by Simon Josefsson.
26349
26350 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
26351         and Eric Blake  <ebb9@byu.net>
26352
26353         assert: honor --enable-assert
26354         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
26355         order to honor --enable-assert, rather than treating it as a
26356         synonym for --disable-assert.
26357
26358 2008-12-08  Jim Meyering  <meyering@redhat.com>
26359
26360         * lib/posixtm.c: Remove now-useless declaration of mktime.
26361
26362         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
26363
26364 2008-12-07  Bruno Haible  <bruno@clisp.org>
26365
26366         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
26367         test_once): Mark functions as static.
26368         * tests/test-tls.c (test_tls): Likewise.
26369
26370 2008-12-07  Bruno Haible  <bruno@clisp.org>
26371
26372         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
26373         iconv_register_autodetect.
26374
26375 2008-12-07  Jim Meyering  <meyering@redhat.com>
26376
26377         posixtm.c: avoid a warning
26378         * lib/posixtm.c (posixtime): Don't initialize tm0.
26379         It's no longer needed to placate gcc4's -Wuninitialized,
26380         and the attempt to placate would elicit a new warning.
26381
26382         unicodeio.c: mark unused parameters
26383         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26384         (fallback_failure_callback): Likewise.
26385
26386 2008-12-07  Bruno Haible  <bruno@clisp.org>
26387
26388         * gnulib-tool (func_create_testdir): When building the tests
26389         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
26390         Reported by Simon Josefsson.
26391
26392 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26393
26394         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
26395
26396 2008-12-06  Bruno Haible  <bruno@clisp.org>
26397
26398         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
26399         Suggested by Eric Blake.
26400
26401 2008-12-06  Bruno Haible  <bruno@clisp.org>
26402
26403         Fix a c-stack test failure on MacOS X.
26404         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
26405         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
26406         handler for SIGBUS as well.
26407         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
26408         install a signal handler for SIGBUS as well.
26409         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
26410
26411 2008-12-06  Bruno Haible  <bruno@clisp.org>
26412
26413         Advocacy documentation.
26414         * doc/gnulib-intro.texi (Benefits): New section.
26415         * doc/gnulib.texi: Update.
26416
26417 2008-12-06  Bruno Haible  <bruno@clisp.org>
26418
26419         Document the 'manywarnings' module.
26420         * doc/manywarnings.texi: New file.
26421         * doc/gnulib.texi: Include it.
26422
26423 2008-12-05  Eric Blake  <ebb9@byu.net>
26424
26425         tests: silence some gcc warnings
26426         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
26427         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
26428         type mismatches.
26429
26430 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26431             Bruno Haible  <bruno@clisp.org>
26432
26433         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
26434
26435 2008-11-29  Jim Meyering  <meyering@redhat.com>
26436
26437         unicodeio.c: mark unused parameters
26438         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26439         (fallback_failure_callback): Likewise.
26440
26441         fts: fix a thinko
26442         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
26443         (set_stat_type): Return S_IF*-valued "type" directly.
26444         Prompted by James Youngman's spotting a related bug.
26445         Confirmed by further testing through find.
26446
26447         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
26448         * lib/fts.c (D_TYPE): Define.
26449         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
26450         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
26451         (s_ifmt_shift_bits): New function.
26452         (set_stat_type): New function.
26453         (fts_build): When not calling fts_stat, call set_stat_type
26454         to propagate dirent.d_type info to fts_read caller.
26455         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
26456         fts_statp->st_mode type information may be valid.
26457
26458 2008-11-28  Simon Josefsson  <simon@josefsson.org>
26459
26460         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
26461         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
26462         <sds@gnu.org>.
26463
26464 2008-11-20  Bruno Haible  <bruno@clisp.org>
26465
26466         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
26467         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
26468         INCLUDE_NEXT.
26469         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
26470         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
26471         * modules/math (Makefile.am): Substitute
26472         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
26473         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26474
26475 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
26476             Bruno Haible  <bruno@clisp.org>
26477
26478         * lib/stdint.in.h: Define all type macros so that their expansion is
26479         a single typedef'ed token. Fixes a compilation failure in Boost which
26480         does "using ::int8_t;".
26481
26482 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26483
26484         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
26485         gl_MANYWARN_ALL_GCC.
26486         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
26487         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
26488         * modules/manywarnings: New file.
26489         * MODULES.html.sh: Mention manywarnings module.
26490
26491 2008-11-18  Bruno Haible  <bruno@clisp.org>
26492
26493         * doc/gnulib-tool.texi (Unit tests): New section.
26494
26495 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26496
26497         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
26498         paths like 'lib/po/foo.po'.
26499
26500 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26501
26502         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
26503         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
26504
26505 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26506
26507         * m4/warnings.m4: Use CPPFLAGS to really check whether the
26508         parameter works.
26509
26510 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26511
26512         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
26513
26514 2008-11-17  Bruce Korb  <bkorb@gnu.org>
26515
26516         * modules/parse-duration-tests: New file.
26517         * tests/test-parse-duration.sh: New file.
26518         * tests/test-parse-duration.c: New file.
26519
26520         New module 'parse-duration'.
26521         * lib/parse-duration.h: New file.
26522         * lib/parse-duration.c: New file.
26523         * modules/parse-duration: New file.
26524
26525 2008-11-17  Bruno Haible  <bruno@clisp.org>
26526
26527         * tests/test-select-out.sh: Comment out the first pipe test.
26528         Reported by Simon Josefsson.
26529
26530 2008-11-17  Bruno Haible  <bruno@clisp.org>
26531
26532         * modules/getaddrinfo (Depends-on): Add servent, hostent.
26533         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
26534         gl_HOSTENT.
26535
26536 2008-11-17  Bruno Haible  <bruno@clisp.org>
26537
26538         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
26539         -lnetwork and -lnet. Needed for Haiku and BeOS.
26540
26541 2008-11-16  Bruno Haible  <bruno@clisp.org>
26542
26543         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
26544
26545 2008-11-16  Bruno Haible  <bruno@clisp.org>
26546
26547         Avoid test failure on Haiku.
26548         * tests/test-fsync.c: Include <errno.h>.
26549         (main): Don't require that fsync (0) fails.
26550
26551 2008-11-15  Bruno Haible  <bruno@clisp.org>
26552
26553         New module 'hostent'.
26554         * modules/hostent: New file.
26555         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
26556
26557 2008-11-15  Bruno Haible  <bruno@clisp.org>
26558
26559         New module 'servent'.
26560         * modules/servent: New file.
26561         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
26562
26563 2008-11-15  Bruno Haible  <bruno@clisp.org>
26564
26565         Avoid generating same test program with two different rules.
26566         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
26567         test-frexp to test-frexp-nolibm.
26568         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
26569         test-frexpl to test-frexpl-nolibm.
26570
26571 2008-11-15  Bruno Haible  <bruno@clisp.org>
26572
26573         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
26574         $(FREXPL_LIBM).
26575
26576 2008-11-15  Bruno Haible  <bruno@clisp.org>
26577
26578         * lib/netdb.in.h: Activate the definitions also when the system's
26579         <netdb.h> has 'struct addrinfo'.
26580         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
26581         EAI_OVERFLOW or AI_NUMERICSERV.
26582         * doc/posix-headers/netdb.texi: Document the problem.
26583
26584 2008-11-15  Bruno Haible  <bruno@clisp.org>
26585
26586         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
26587
26588         Make the 'sched' module work on platforms where <sched.h> exists but
26589         is incomplete (such as Haiku).
26590         * lib/sched.in.h; Include the system's <sched.h> if it exists.
26591         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
26592         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
26593         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
26594         HAVE_STRUCT_SCHED_PARAM.
26595         * modules/sched (Depends-on): Add include_next.
26596         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
26597         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
26598         * doc/posix-headers/sched.texi: Document the issue.
26599
26600 2008-11-13  Jim Meyering  <meyering@redhat.com>
26601
26602         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
26603         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
26604         test would fail due to the difference in the Report bugs to ...
26605         line.  The expected address is empty, "<>", while the actual
26606         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
26607
26608 2008-11-12  Bruno Haible  <bruno@clisp.org>
26609
26610         lstat: don't compile lstat.c on systems lacking lstat
26611         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
26612         which don't have lstat; this is handled by lib/sys_stat.in.h already.
26613         Reported by Daniel P. Berrange via Jim Meyering.
26614
26615 2008-11-12  Jim Meyering  <meyering@redhat.com>
26616
26617         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
26618
26619 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26620
26621         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
26622         instead.
26623
26624 2008-11-12  Bruno Haible  <bruno@clisp.org>
26625
26626         * lib/unicodeio.c: Include unistr.h.
26627         (utf8_wctomb): Remove function.
26628         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
26629
26630 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26631
26632         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
26633         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
26634         <bruno@clisp.org>.
26635         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
26636
26637 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26638
26639         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
26640         * doc/gnulib.texi: Add section for warnings.
26641
26642 2008-11-11  Bruno Haible  <bruno@clisp.org>
26643
26644         * lib/sockets.h: Add a comment.
26645
26646 2008-11-11  Karl Berry  <karl@gnu.org>
26647
26648         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
26649
26650 2008-11-11  Eric Blake  <ebb9@byu.net>
26651
26652         fdl.texi: avoid git symlinks
26653         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
26654
26655 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26656
26657         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
26658
26659 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26660
26661         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
26662         (gl_WARN_ADD): Substitute $2 if literal.
26663
26664 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26665
26666         * m4/warning.m4: Remove.
26667
26668 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26669
26670         * m4/warnings.m4: Almost complete rewrite. :-)
26671
26672 2008-11-10  Simon Josefsson  <simon@josefsson.org>
26673
26674         * modules/warnings: New module.
26675         * m4/warnings.m4: New file.
26676         * MODULES.html.sh: Mention warnings module.
26677         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
26678         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26679
26680 2008-11-10  Eric Blake  <ebb9@byu.net>
26681
26682         fdl.texi: make a symlink to the latest version
26683         * doc/standards.texi: Revert today's earlier change.
26684         * doc/fdl-1.2.texi: Rename from old fdl.texi...
26685         * doc/fdl.texi: ...and replace this with a symlink to the newer
26686         fdl-1.3.texi.
26687
26688 2008-11-10  Bruno Haible  <bruno@clisp.org>
26689
26690         * tests/test-select-fd.c (main): Accept the result file name as fourth
26691         argument.
26692         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
26693         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
26694
26695 2008-11-10  Bruno Haible  <bruno@clisp.org>
26696
26697         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
26698         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
26699         as autoconf-substituted macros.
26700         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
26701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
26702         gl_NETDB_H_DEFAULTS. Set these variables.
26703         * modules/netdb (Makefile.am): Substitute these variables.
26704
26705 2008-11-10  Eric Blake  <ebb9@byu.net>
26706
26707         standards.texi: include correct file for FDL 1.3
26708         * doc/standards.texi (GNU Free Documentation License): Change
26709         include file to pull in FDL 1.3, not 1.2.
26710
26711         fdl.texi: revert accidental change to license
26712         * doc/fdl.texi: This is FDL 1.2, not 1.3.
26713
26714 2008-11-10  Bruno Haible  <bruno@clisp.org>
26715
26716         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
26717         cross-compiling guesses also when the native compile gives no result.
26718
26719 2008-11-10  Bruno Haible  <bruno@clisp.org>
26720
26721         * lib/spawni.c (__spawni): Force variable into the stack.
26722
26723 2008-11-10  Bruno Haible  <bruno@clisp.org>
26724
26725         Add support for Haiku.
26726         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
26727         glibc and BeOS, but also on Haiku.
26728         * lib/fpurge.c (fpurge): Likewise.
26729         * lib/freadable.c (freadable): Likewise.
26730         * lib/freadahead.c (freadahead): Likewise.
26731         * lib/freading.c (freading): Likewise.
26732         * lib/freadptr.c (freadptr): Likewise.
26733         * lib/freadseek.c (freadptrinc): Likewise.
26734         * lib/fseeko.c (rpl_fseeko): Likewise.
26735         * lib/fseterr.c (fseterr): Likewise.
26736         * lib/fwritable.c (fwritable): Likewise.
26737         * lib/fwriting.c (fwriting): Likewise.
26738         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
26739
26740 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26741
26742         * lib/config.charset: Treat Haiku like BeOS.
26743
26744 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26745
26746         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
26747         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
26748
26749 2008-11-08  Bruno Haible  <bruno@clisp.org>
26750
26751         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
26752         AC_CACHE_CHECK.
26753
26754 2008-11-08  Bruno Haible  <bruno@clisp.org>
26755
26756         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
26757
26758 2008-11-08  Bruno Haible  <bruno@clisp.org>
26759
26760         * tests/test-select-fd.c: New file.
26761         * tests/test-select-in.sh: New file.
26762         * tests/test-select-out.sh: New file.
26763         * tests/test-select-stdin.c: New file.
26764         * modules/select-tests (Files): Add the new files.
26765         (Depends-on): Add gettimeofday.
26766         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
26767         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
26768         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
26769
26770 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
26771             Bruno Haible  <bruno@clisp.org>
26772
26773         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
26774
26775 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
26776
26777         * build-aux/pmccabe2html: Added support for C++ source files.
26778
26779 2008-11-05  Ben Pfaff  <blp@gnu.org>
26780
26781         Fix lib/close.c build on Windows.
26782         * modules/close (Files): Add lib/w32sock.h.
26783
26784 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
26785
26786         Accept Bison's NEWS format.
26787         * build-aux/announce-gen (print_news_deltas): Tweak
26788         $re_prefix.
26789
26790 2008-11-04  Bruno Haible  <bruno@clisp.org>
26791
26792         * modules/random_r (Maintainer): Add glibc.
26793
26794 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26795
26796         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
26797         by karl@freefriends.org (Karl Berry).
26798         * doc/alloca.texi: Likewise.
26799         * doc/c-ctype.texi: Likewise.
26800         * doc/c-strcase.texi: Likewise.
26801         * doc/c-strcaseeq.texi: Likewise.
26802         * doc/c-strcasestr.texi: Likewise.
26803         * doc/c-strstr.texi: Likewise.
26804         * doc/c-strtod.texi: Likewise.
26805         * doc/c-strtold.texi: Likewise.
26806         * doc/ctime.texi: Likewise.
26807         * doc/error.texi: Likewise.
26808         * doc/fdl.texi: Likewise.
26809         * doc/gcd.texi: Likewise.
26810         * doc/getdate.texi: Likewise.
26811         * doc/gnulib-intro.texi: Likewise.
26812         * doc/gnulib-tool.texi: Likewise.
26813         * doc/gnulib.texi: Likewise.
26814         * doc/inet_ntoa.texi: Likewise.
26815         * doc/maintain.texi: Likewise.
26816         * doc/make-stds.texi: Likewise.
26817         * doc/quote.texi: Likewise.
26818         * doc/regexprops-generic.texi: Likewise.
26819         * doc/standards.texi: Likewise.
26820         * doc/verify.texi: Likewise.
26821         * doc/visibility.texi: Likewise.
26822         * doc/gnulib.texi (GNU Free Documentation License): Include
26823         fdl-1.3.texi instead of fdl.texi.
26824
26825 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26826
26827         * doc/fdl-1.3.texi: New file, from
26828         <http://www.gnu.org/licenses/fdl-1.3.texi>.
26829         * modules/fdl-1.3: Add.
26830         * MODULES.html.sh: Add fdl-1.3.
26831
26832 2008-11-03  Bruno Haible  <bruno@clisp.org>
26833
26834         Make determination of absolute name of header file work with AIX xlc.
26835         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
26836         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
26837         preprocessing.
26838         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26839         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26840
26841 2008-11-03  Simon Josefsson  <simon@josefsson.org>
26842
26843         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
26844         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
26845         <ludo@gnu.org>.
26846
26847 2008-11-02  Bruno Haible  <bruno@clisp.org>
26848
26849         Mark 'strpbrk' obsolete.
26850         * modules/strpbrk (Status, Notice): New sections.
26851         * modules/strtok_r (Depends-on): Add strpbrk.
26852
26853 2008-11-02  Bruno Haible  <bruno@clisp.org>
26854
26855         Mark 'strdup' obsolete.
26856         * modules/strdup (Status, Notice): New sections.
26857         * modules/findprog (Depends-on): Add strdup.
26858         * modules/getaddrinfo (Depends-on): Likewise.
26859         * modules/localename (Depends-on): Likewise.
26860         * modules/relocatable-lib (Depends-on): Likewise.
26861         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
26862         * modules/relocatable-prog (Depends-on): Likewise.
26863         * modules/trim (Depends-on): Likewise.
26864         * modules/unictype/gen-ctype (Depends-on): Likewise.
26865         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26866
26867 2008-11-02  Bruno Haible  <bruno@clisp.org>
26868
26869         Mark 'strcspn' obsolete.
26870         * modules/strcspn (Status, Notice): New sections.
26871
26872 2008-11-02  Bruno Haible  <bruno@clisp.org>
26873
26874         Mark 'rmdir' obsolete.
26875         * modules/rmdir (Status, Notice): New sections.
26876         * modules/clean-temp (Depends-on): Add rmdir.
26877         * modules/openat (Depends-on): Likewise.
26878
26879 2008-11-02  Bruno Haible  <bruno@clisp.org>
26880
26881         Mark 'raise' obsolete.
26882         * modules/raise (Status, Notice): New sections.
26883         (Include): Specify <signal.h>.
26884         * modules/stdio (Depends-on): Add raise.
26885         * modules/write (Depends-on): Likewise.
26886
26887 2008-11-02  Bruno Haible  <bruno@clisp.org>
26888
26889         Mark 'memset' obsolete.
26890         * modules/memset (Status, Notice): New sections.
26891
26892 2008-11-02  Bruno Haible  <bruno@clisp.org>
26893
26894         Mark 'memmove' obsolete.
26895         * modules/memmove (Status, Notice): New sections.
26896         * modules/argp (Depends-on): Add memmove.
26897         * modules/argz (Depends-on): Likewise.
26898         * modules/canonicalize (Depends-on): Likewise.
26899         * modules/canonicalize-lgpl (Depends-on): Likewise.
26900         * modules/fts (Depends-on): Likewise.
26901         * modules/getcwd (Depends-on): Likewise.
26902         * modules/human (Depends-on): Likewise.
26903         * modules/regex (Depends-on): Likewise.
26904         * modules/striconveh (Depends-on): Likewise.
26905         * modules/trim (Depends-on): Likewise.
26906         * modules/unistr/u8-move (Depends-on): Likewise.
26907         * modules/unistr/u16-move (Depends-on): Likewise.
26908         * modules/unistr/u32-move (Depends-on): Likewise.
26909
26910 2008-11-02  Bruno Haible  <bruno@clisp.org>
26911
26912         Mark 'memcpy' obsolete.
26913         * modules/memcpy (Status, Notice): New sections.
26914
26915 2008-11-02  Bruno Haible  <bruno@clisp.org>
26916
26917         Mark 'memcmp' obsolete.
26918         * modules/memcmp (Status, Notice): New sections.
26919         * modules/argmatch (Depends-on): Add memchr.
26920         * modules/backupfile (Depends-on): Likewise.
26921         * modules/c-strcasestr (Depends-on): Likewise.
26922         * modules/crypto/des (Depends-on): Likewise.
26923         * modules/csharpcomp (Depends-on): Likewise.
26924         * modules/fnmatch (Depends-on): Likewise.
26925         * modules/git-merge-changelog (Depends-on): Likewise.
26926         * modules/isnand (Depends-on): Likewise.
26927         * modules/isnand-nolibm (Depends-on): Likewise.
26928         * modules/isnanf (Depends-on): Likewise.
26929         * modules/isnanf-nolibm (Depends-on): Likewise.
26930         * modules/isnanl (Depends-on): Likewise.
26931         * modules/isnanl-nolibm (Depends-on): Likewise.
26932         * modules/mbchar (Depends-on): Likewise.
26933         * modules/memcoll (Depends-on): Likewise.
26934         * modules/quotearg (Depends-on): Likewise.
26935         * modules/regex (Depends-on): Likewise.
26936         * modules/relocatable-prog (Depends-on): Likewise.
26937         * modules/same (Depends-on): Likewise.
26938         * modules/signbit (Depends-on): Likewise.
26939         * modules/strcasestr-simple (Depends-on): Likewise.
26940         * modules/unictype/gen-ctype (Depends-on): Likewise.
26941         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26942         * modules/uniname/uniname (Depends-on): Likewise.
26943         * modules/unistr/u8-cmp (Depends-on): Likewise.
26944
26945 2008-11-02  Bruno Haible  <bruno@clisp.org>
26946
26947         Mark 'memchr' obsolete.
26948         * modules/memchr (Status, Notice): New sections.
26949         * modules/argp (Depends-on): Add memchr.
26950         * modules/base64 (Depends-on): Likewise.
26951         * modules/c-strcasestr (Depends-on): Likewise.
26952         * modules/chdir-long (Depends-on): Likewise.
26953         * modules/fnmatch (Depends-on): Likewise.
26954         * modules/getsubopt (Depends-on): Likewise.
26955         * modules/git-merge-changelog (Depends-on): Likewise.
26956         * modules/glob (Depends-on): Likewise.
26957         * modules/strcasestr-simple (Depends-on): Likewise.
26958         * modules/strnlen (Depends-on): Likewise.
26959
26960 2008-11-02  Bruno Haible  <bruno@clisp.org>
26961
26962         Mark 'atexit' obsolete.
26963         * modules/atexit (Status, Notice): New sections.
26964         * modules/chdir-long (Depends-on): Add atexit.
26965         * modules/wait-process (Depends-on): Likewise.
26966
26967 2008-11-02  Bruno Haible  <bruno@clisp.org>
26968
26969         * gnulib-tool: New option --with-obsolete.
26970         (func_usage): Document it.
26971         (func_modules_transitive_closure): Drop obsolete dependencies if
26972         incobsolete is not true.
26973         (func_import): Read and save the incobsolete variable to the cache.
26974
26975 2008-11-02  Bruno Haible  <bruno@clisp.org>
26976
26977         * modules/TEMPLATE-EXTENDED: New field 'Status'.
26978         * gnulib-tool: New option --extract-status.
26979         (func_usage): Document it.
26980         (sed_extract_prog): Recognize it.
26981         (func_get_status): New function.
26982
26983 2008-10-30  Simon Josefsson  <simon@josefsson.org>
26984
26985         * modules/sockets (License): Change from LGPL to LGPLv2+.
26986
26987 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26988
26989         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
26990
26991 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26992
26993         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26994         Mention times and sys_times.
26995         * modules/sys_times, modules/sys_times-tests: New modules.
26996         * modules/times, modules/times-tests: Likewise
26997         * m4/sys_times_h.m4: New file.
26998         * lib/sys_times.in.h: Likewise
26999         * lib/times.c: Likewise.
27000         * tests/test-sys_times.c: Likewise.
27001         * tests/test-times.c: Likewise.
27002         * doc/posix-headers/sys_times.texi: Update.
27003         * doc/posix-functions/times.texi: Update.
27004
27005 2008-10-28  Jim Meyering  <meyering@redhat.com>
27006
27007         * modules/tempname (Depends-on): Add lstat.
27008
27009         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
27010
27011 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27012
27013         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
27014         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
27015         using idiom used elsewhere in gnulib.
27016
27017 2008-10-27  Jim Meyering  <meyering@redhat.com>
27018
27019         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
27020
27021 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27022
27023         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
27024         TESTS_ENVIRONMENT, for shell scripts that needs to call built
27025         programs.
27026         * tests/test-argp-2.sh: Use $EXEEXT when needed.
27027
27028 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27029
27030         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
27031
27032 2008-10-27  Bruno Haible  <bruno@clisp.org>
27033
27034         * tests/test-lstat.c: Include <stdio.h>.
27035
27036 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27037
27038         * modules/lstat-tests: New module.
27039         * tests/test-lstat.c: New file.
27040
27041 2008-10-26  Jim Meyering  <meyering@redhat.com>
27042
27043         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
27044
27045 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27046             Bruno Haible  <bruno@clisp.org>
27047
27048         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
27049         * modules/configmake (Include): Add a note that the include must come
27050         after all system headers.
27051         * lib/javaversion.c: Include configmake.h after all other includes.
27052
27053 2008-10-26  Bruno Haible  <bruno@clisp.org>
27054
27055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
27056         HAVE_STRUCT_RANDOM_DATA to 1.
27057         (gl_STDLIB_H): Simplify.
27058
27059 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27060
27061         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
27062         substitute HAVE_STRUCT_RANDOM_DATA.
27063         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
27064         random_data.
27065         * modules/stdlib (Makefile.am): Substitute
27066         HAVE_STRUCT_RANDOM_DATA.
27067
27068 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27069
27070         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
27071         * doc/gnulib-intro.texi (Copyright): Likewise.
27072
27073 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27074
27075         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
27076         findings.
27077
27078 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
27079             Bruno Haible  <bruno@clisp.org>
27080
27081         * lib/unistd.in.h: Include <winsock2.h>.
27082         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
27083         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
27084         Provide dummy declarations.
27085         (gethostname): Override.
27086         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
27087         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
27088         gl_PREREQ_SYS_H_WINSOCK2.
27089         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
27090         * doc/posix-functions/gethostname.texi: More details.
27091
27092 2008-10-25  Bruno Haible  <bruno@clisp.org>
27093
27094         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27095         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
27096         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
27097
27098         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
27099         here ...
27100         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
27101         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
27102         gl_UNISTD_H_DEFAULTS.
27103
27104 2008-10-25  Eric Blake  <ebb9@byu.net>
27105
27106         signbit: avoid spurious compiler failure
27107         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
27108         declarations inside function.
27109
27110 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27111             Bruno Haible  <bruno@clisp.org>
27112
27113         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
27114         * modules/random_r (Depends-on): Add stdint.
27115
27116 2008-10-24  Bruno Haible  <bruno@clisp.org>
27117
27118         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
27119         Eggert.
27120         * modules/strerror (License): Likewise.
27121
27122 2008-10-24  Jim Meyering  <meyering@redhat.com>
27123
27124         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
27125         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
27126
27127 2008-10-24  Eric Blake  <ebb9@byu.net>
27128
27129         getgroups: fix compilation when getgroups is available
27130         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
27131         but with <config.h> override of getgroups disabled.
27132
27133 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27134
27135         * doc/gnulib.texi (Header files): Add note about C++ problems.
27136         Explained by Bruno Haible <bruno@clisp.org>.
27137
27138 2008-10-23  Bruno Haible  <bruno@clisp.org>
27139
27140         Define a dummy SA_NODEFER macro on Interix.
27141         * lib/signal.in.h (SA_NODEFER): Define fallback.
27142         Reported by Aleksey Cheusov <cheusov@tut.by> via
27143         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
27144
27145 2008-10-23  Bruno Haible  <bruno@clisp.org>
27146
27147         * modules/freadahead (License): Change to LGPLv2+.
27148         Suggested by Simon Josefsson.
27149
27150 2008-10-23  Jim Meyering  <meyering@redhat.com>
27151
27152         random_r: new module
27153         * modules/random_r: New file.
27154         * m4/random_r.m4: New file.
27155         * lib/random_r.c: New file, from glibc.
27156         * modules/random_r-tests: New file.
27157         * tests/test-random_r.c: New file.
27158         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
27159          Declare.
27160         (RAND_MAX): Define.
27161         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
27162         * modules/stdlib: Substitute them, too.
27163         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
27164         * doc/glibc-functions/initstate_r.texi: Mention the new module.
27165         * doc/glibc-functions/random_r.texi: Likewise.
27166         * doc/glibc-functions/setstate_r.texi: Likewise.
27167         * doc/glibc-functions/srandom_r.texi: Likewise.
27168         * config/srclist.txt: Mention it.
27169
27170 2008-10-23  David Lutterkort  <lutter@redhat.com>
27171
27172         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
27173         link requirement
27174
27175 2008-10-23  Jim Meyering  <meyering@redhat.com>
27176
27177         selinux-h: mark parameters of stub functions as intentionally unused
27178         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
27179         * lib/se-context.in.h: Likewise.
27180
27181 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27182
27183         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
27184
27185 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27186
27187         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
27188
27189 2008-10-22  Eric Blake  <ebb9@byu.net>
27190
27191         glthread/thread: avoid compiler warning
27192         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
27193         Add unreachable abort to silence compiler.
27194
27195 2008-10-22  Eric Blake  <ebb9@byu.net>
27196
27197         netdb: also supply struct addrinfo for cygwin 1.5.x
27198         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
27199         older cygwin.
27200         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
27201         cygwin.
27202         * doc/posix-headers/netdb.texi (netdb.h): Document this.
27203
27204 2008-10-22  Bruno Haible  <bruno@clisp.org>
27205
27206         * users.txt: Update entry about pspp.
27207
27208 2008-10-21  Bruno Haible  <bruno@clisp.org>
27209
27210         Simplification.
27211         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
27212         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
27213
27214         Simplification.
27215         * lib/ioctl.c (ioctl): Don't undefine.
27216         * lib/socket.c (socket): Don't undefine.
27217
27218         Remove unused module indicator macros.
27219         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
27220         GNULIB_$1 as a C macro.
27221
27222         * doc/posix-functions/close.texi: Undo last change.
27223         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
27224         Windows platforms.
27225
27226 2008-10-21  Bruno Haible  <bruno@clisp.org>
27227
27228         Add gethostname() declaration to <unistd.h>.
27229         * lib/unistd.in.h (gethostname): New declaration.
27230         * lib/gethostname.c: Include <unistd.h>.
27231         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
27232         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
27233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
27234         and HAVE_GETHOSTNAME.
27235         * modules/gethostname (Depends-on): Add unistd.
27236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27237         (Include): Specify <unistd.h>.
27238         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
27239         HAVE_GETHOSTNAME.
27240         * tests/test-gethostname.c: Include <unistd.h> first.
27241
27242 2008-10-21  Bruno Haible  <bruno@clisp.org>
27243
27244         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
27245         * modules/select-tests (Depends-on): Likewise.
27246         Reported by Simon Josefsson.
27247
27248 2008-10-21  Simon Josefsson  <simon@josefsson.org>
27249
27250         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
27251         * lib/accept.c: New file, based on winsock.c.
27252         * lib/bind.c: New file, based on winsock.c.
27253         * lib/connect.c: New file, based on winsock.c.
27254         * lib/getpeername.c: New file, based on winsock.c.
27255         * lib/getsockname.c: New file, based on winsock.c.
27256         * lib/getsockopt.c: New file, based on winsock.c.
27257         * lib/ioctl.c: New file, based on winsock.c.
27258         * lib/listen.c: New file, based on winsock.c.
27259         * lib/recv.c: New file, based on winsock.c.
27260         * lib/recvfrom.c: New file, based on winsock.c.
27261         * lib/send.c: New file, based on winsock.c.
27262         * lib/sendto.c: New file, based on winsock.c.
27263         * lib/setsockopt.c: New file, based on winsock.c.
27264         * lib/shutdown.c: New file, based on winsock.c.
27265         * lib/socket.c: New file, based on winsock.c.
27266         * lib/w32sock.h: New file, based on winsock.c.
27267         * lib/winsock.c: Remove file.
27268         * modules/accept: Likewise.
27269         * modules/bind: Likewise.
27270         * modules/connect: Likewise.
27271         * modules/getpeername: Likewise.
27272         * modules/getsockname: Likewise.
27273         * modules/getsockopt: Likewise.
27274         * modules/ioctl: Likewise.
27275         * modules/listen: Likewise.
27276         * modules/recv: Likewise.
27277         * modules/recvfrom: Likewise.
27278         * modules/send: Likewise.
27279         * modules/sendto: Likewise.
27280         * modules/setsockopt: Likewise.
27281         * modules/shutdown: Likewise.
27282         * modules/socket: Use socket.c instead of winsock.c.
27283         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
27284         * doc/posix-functions/accept.texi: Doc fix.
27285         * doc/posix-functions/bind.texi: Doc fix.
27286         * doc/posix-functions/close.texi: Doc fix.
27287         * doc/posix-functions/connect.texi: Doc fix.
27288         * doc/posix-functions/getpeername.texi: Doc fix.
27289         * doc/posix-functions/getsockname.texi: Doc fix.
27290         * doc/posix-functions/getsockopt.texi: Doc fix.
27291         * doc/posix-functions/ioctl.texi: Doc fix.
27292         * doc/posix-functions/listen.texi: Doc fix.
27293         * doc/posix-functions/recv.texi: Doc fix.
27294         * doc/posix-functions/recvfrom.texi: Doc fix.
27295         * doc/posix-functions/send.texi: Doc fix.
27296         * doc/posix-functions/sendto.texi: Doc fix.
27297         * doc/posix-functions/setsockopt.texi: Doc fix.
27298         * doc/posix-functions/shutdown.texi: Doc fix.
27299         * doc/posix-functions/socket.texi: Doc fix.
27300
27301 2008-10-20  Bruno Haible  <bruno@clisp.org>
27302
27303         Take into account the role of SIGABRT_COMPAT on Windows 2008.
27304         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
27305         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
27306         as an alias for SIGABRT.
27307         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
27308         (sigaction): Map it to SIGABRT.
27309         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
27310
27311 2008-10-20  Bruno Haible  <bruno@clisp.org>
27312
27313         * lib/fts.c: Don't include lstat.h.
27314         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
27315
27316         Move the lstat() declaration to <sys/stat.h>.
27317         * lib/lstat.h: Remove file.
27318         * lib/sys_stat.in.h: Add special invocation convention.
27319         (lstat): New declaration.
27320         * lib/lstat.c (orig_lstat): New function.
27321         (rpl_lstat): Use orig_lstat instead of lstat.
27322         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
27323         AC_C_INLINE. Set REPLACE_LSTAT.
27324         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
27325         and REPLACE_LSTAT.
27326         * modules/lstat (Files): Remove lib/lstat.h.
27327         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27328         (Include): Specify <sys/stat.h> instead of lstat.h.
27329         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
27330         REPLACE_LSTAT.
27331         * NEWS: Mention the change.
27332
27333 2008-10-20  Bruno Haible  <bruno@clisp.org>
27334
27335         * modules/posix_spawn-tests: New file.
27336         * tests/test-posix_spawn3.c: New file.
27337
27338 2008-10-20  Bruno Haible  <bruno@clisp.org>
27339
27340         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
27341         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27342         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
27343         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27344         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
27345
27346 2008-10-20  Bruno Haible  <bruno@clisp.org>
27347
27348         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
27349         of posix_spawn on AIX 5.3.
27350
27351 2008-10-20  Bruno Haible  <bruno@clisp.org>
27352
27353         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
27354
27355 2008-10-20  Bruno Haible  <bruno@clisp.org>
27356
27357         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
27358         of AC_LANG_PROGRAM.
27359
27360 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27361
27362         * lib/netdb.in.h: Don't define GNU specific constants until they
27363         are supported or needed.  Reported by Bruno Haible
27364         <bruno@clisp.org>.
27365
27366 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27367
27368         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
27369
27370 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27371
27372         * lib/getaddrinfo.h: Remove file.
27373         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
27374         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
27375         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
27376         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
27377         * modules/netdb: Substitute GNULIB_GETADDRINFO.
27378         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
27379         * tests/test-getaddrinfo.c: Likewise.
27380         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
27381         * NEWS: Mention change.
27382
27383 2008-10-19  Bruno Haible  <bruno@clisp.org>
27384
27385         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
27386
27387 2008-10-19  Bruno Haible  <bruno@clisp.org>
27388
27389         * lib/wait-process.c: Include simply <sys/wait.h>.
27390         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
27391         WIFSTOPPED): Remove fallback definitions.
27392         * modules/wait-process (Depends-on): Add sys_wait.
27393
27394         New module 'sys_wait'.
27395         * modules/sys_wait: New file.
27396         * lib/sys_wait.in.h: New file, partially copied from
27397         lib/wait-process.c.
27398         * m4/sys_wait_h.m4: New file.
27399         * doc/posix-headers/sys_wait.texi: Mention the new module.
27400
27401 2008-10-19  Bruno Haible  <bruno@clisp.org>
27402
27403         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
27404
27405 2008-10-19  Bruno Haible  <bruno@clisp.org>
27406
27407         Assume that waitpid() fills an 'int' status, not a 'union wait'.
27408         * lib/wait-process.c (WAIT_T): Remove type.
27409         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
27410         (wait_subprocess): Update.
27411
27412 2008-10-19  Bruno Haible  <bruno@clisp.org>
27413
27414         New module 'atoll'.
27415         * modules/atoll: New file.
27416         * lib/stdlib.in.h (atoll): New declaration.
27417         * lib/atoll.c: New file, from glibc with modifications.
27418         * m4/atoll.m4: New file.
27419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
27420         HAVE_ATOLL.
27421         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
27422         * doc/posix-functions/atoll.texi: Mention the new module.
27423
27424 2008-10-19  Bruno Haible  <bruno@clisp.org>
27425
27426         Add strtoull() declaration to <stdlib.h>.
27427         * lib/stdlib.in.h (strtoull): New declaration.
27428         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27429         Set HAVE_STRTOULL.
27430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
27431         HAVE_STRTOULL.
27432         * modules/strtoull (Depends-on): Add stdlib.
27433         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27434         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
27435         HAVE_STRTOULL.
27436
27437 2008-10-19  Bruno Haible  <bruno@clisp.org>
27438
27439         Add strtoll() declaration to <stdlib.h>.
27440         * lib/stdlib.in.h (strtoll): New declaration.
27441         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27442         Set HAVE_STRTOLL.
27443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
27444         HAVE_STRTOLL.
27445         * modules/strtoll (Depends-on): Add stdlib.
27446         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27447         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
27448
27449 2008-10-19  Bruno Haible  <bruno@clisp.org>
27450
27451         * modules/bcopy (Depends-on): Add strings.
27452         (Include): Specify <strings.h>.
27453
27454 2008-10-19  Bruno Haible  <bruno@clisp.org>
27455
27456         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
27457
27458 2008-10-19  Bruno Haible  <bruno@clisp.org>
27459
27460         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
27461         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
27462         mingw.
27463
27464 2008-10-19  Bruno Haible  <bruno@clisp.org>
27465
27466         * lib/atanl.c: Don't include isnanl.h.
27467         * lib/cosl.c: Likewise.
27468         * lib/ldexpl.c: Likewise.
27469         * lib/logl.c: Likewise.
27470         * lib/sinl.c: Likewise.
27471         * lib/sqrtl.c: Likewise.
27472         * lib/tanl.c: Likewise.
27473
27474         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
27475         * lib/isnanf.h: Remove file.
27476         * lib/isnand.h: Remove file.
27477         * lib/isnanl.h: Remove file.
27478         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
27479         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
27480         macros.
27481         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
27482         HAVE_ISNANF, don't define it as a C macro.
27483         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
27484         HAVE_ISNAND, don't define it as a C macro.
27485         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
27486         HAVE_ISNANL, don't define it as a C macro.
27487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
27488         HAVE_ISNAN[FDL].
27489         * modules/isnanf (Files): Remove lib/isnanf.h.
27490         (Depends-on): Add math.
27491         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27492         (Include): Specify <math.h> instead of isnanf.h.
27493         * modules/isnand (Files): Remove lib/isnand.h.
27494         (Depends-on): Add math.
27495         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27496         (Include): Specify <math.h> instead of isnand.h.
27497         * modules/isnanl (Files): Remove lib/isnanl.h.
27498         (Depends-on): Add math.
27499         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27500         (Include): Specify <math.h> instead of isnanl.h.
27501         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
27502         HAVE_ISNAN[FDL].
27503         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
27504         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
27505         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
27506         * NEWS: Mention the change.
27507
27508 2008-10-18  Bruno Haible  <bruno@clisp.org>
27509
27510         Add getusershell(), setusershell(), endusershell() declarations to
27511         <unistd.h>.
27512         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
27513         declarations.
27514         * lib/getusershell.c: Include unistd.h.
27515         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
27516         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27517         HAVE_GETUSERSHELL.
27518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
27519         and HAVE_GETUSERSHELL.
27520         * modules/getusershell (Depends-on): Add unistd, extensions.
27521         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27522         (Include): Specify <unistd.h>.
27523         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
27524         HAVE_GETUSERSHELL.
27525
27526 2008-10-18  Bruno Haible  <bruno@clisp.org>
27527
27528         Add a getloadavg() declaration to <stdlib.h>.
27529         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
27530         getloadavg declaration.
27531         (getloadavg): New declaration.
27532         * lib/getloadavg.c: Include <stdlib.h> first.
27533         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
27534         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
27535         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
27536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
27537         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27538         * modules/getloadavg (Depends-on): Add stdlib, extensions.
27539         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27540         (Include): Specify <stdlib.h>.
27541         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
27542         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
27543
27544 2008-10-18  Bruno Haible  <bruno@clisp.org>
27545
27546         * lib/dirchownmod.c: Don't include lchmod.h.
27547
27548         Move the lchmod() declaration to <sys/stat.h>.
27549         * lib/lchmod.h: Remove file.
27550         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
27551         (lchmod): New declaration, moved here from lib/lchown.h.
27552         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
27553         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
27554         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
27555         and HAVE_LCHMOD.
27556         * modules/lchmod (Files): Remove lib/lchmod.h.
27557         (Depends-on): Add sys_stat, extensions.
27558         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27559         (Include): Specify <sys/stat.h> instead of lchmod.h.
27560         * modules/sys_stat (Depends-on): Add link-warning.
27561         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
27562         definition of GL_LINK_WARNING.
27563         * NEWS: Mention the change.
27564
27565 2008-10-18  Bruno Haible  <bruno@clisp.org>
27566
27567         * lib/fchdir.c: Don't include dirfd.h.
27568         * lib/fts.c: Likewise.
27569         * lib/getcwd.c: Likewise.
27570         * lib/glob.c: Likewise.
27571
27572         Move the dirfd() declaration to <dirent.h>.
27573         * lib/dirfd.h: Remove file.
27574         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
27575         (dirfd): New declaration.
27576         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
27577         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
27578         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
27579         HAVE_DECL_DIRFD.
27580         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
27581         HAVE_DECL_DIRFD.
27582         * modules/dirfd (Files): Remove lib/dirfd.h.
27583         (Depends-on): Add dirent, extensions.
27584         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
27585         (Include): Specify <dirent.h> instead of dirfd.h.
27586         * modules/dirent (Depends-on): Add link-warning.
27587         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
27588         definition of GL_LINK_WARNING.
27589         * NEWS: Mention the change.
27590
27591 2008-10-18  Bruno Haible  <bruno@clisp.org>
27592
27593         Move the euidaccess() declaration to <unistd.h>.
27594         * lib/euidaccess.h: Remove file.
27595         * lib/unistd.in.h (euidaccess): New declaration.
27596         * lib/euidaccess.c: Don't include euidaccess.h.
27597         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
27598         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
27599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
27600         and HAVE_EUIDACCESS.
27601         * modules/euidaccess (Files): Remove lib/euidaccess.h.
27602         (Depends-on): Add unistd.
27603         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27604         (Include): Specify <unistd.h> instead of euidaccess.h.
27605         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
27606         HAVE_EUIDACCESS.
27607         * NEWS: Mention the change.
27608
27609 2008-10-18  Bruno Haible  <bruno@clisp.org>
27610
27611         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
27612
27613         Move the getdomainname() declaration to <unistd.h>.
27614         * lib/getdomainname.h: Remove file.
27615         * lib/unistd.in.h (getdomainname): New declaration.
27616         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
27617         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27618         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27619         HAVE_GETDOMAINNAME.
27620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27621         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
27622         * modules/getdomainname (Files): Remove lib/getdomainname.h.
27623         (Depends-on): Add unistd, extensions.
27624         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27625         (Includes): Specify <unistd.h> instead of getdomainname.h.
27626         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
27627         HAVE_GETDOMAINNAME.
27628         * NEWS: Mention the change.
27629
27630 2008-10-18  Bruno Haible  <bruno@clisp.org>
27631
27632         * modules/dirent: New file.
27633         * m4/dirent_h.m4: New file.
27634         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
27635         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
27636         * modules/fchdir (Files): Remove lib/dirent.in.h.
27637         (Depends-on): Add dirent.
27638         (Makefile.am): Move rules to modules/dirent.
27639         * doc/posix-headers/dirent.texi: Mention the new module.
27640
27641 2008-10-18  Bruno Haible  <bruno@clisp.org>
27642
27643         Avoid -Wunused-parameter warnings in public gnulib header files.
27644         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
27645         macro.
27646         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
27647
27648 2008-10-18  Bruno Haible  <bruno@clisp.org>
27649
27650         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
27651         * doc/glibc-functions/error.texi: Mention the module 'error'.
27652         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
27653         * doc/glibc-functions/getdomainname.texi: Mention the module
27654         'getdomainname'.
27655         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
27656         * doc/glibc-functions/getpagesize.texi: Mention the module
27657         'getpagesize'.
27658         * doc/glibc-functions/getusershell.texi: Mention the module
27659         'getusershell'.
27660         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
27661         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
27662         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
27663         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
27664         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
27665         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
27666         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
27667         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
27668         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
27669         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
27670         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
27671         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
27672         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
27673         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
27674
27675 2008-10-17  Bruno Haible  <bruno@clisp.org>
27676
27677         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
27678         HP-UX and IRIX, use -0.0L.
27679         * tests/test-ceill.c (minus_zero): Likewise.
27680         * tests/test-floorl.c (minus_zero): Likewise.
27681         * tests/test-frexpl.c (minus_zero): Likewise.
27682         * tests/test-isnan.c (minus_zerol): Likewise.
27683         * tests/test-isnanl.h (minus_zero): Likewise.
27684         * tests/test-ldexpl.c (minus_zero): Likewise.
27685         * tests/test-roundl.c (minus_zero): Likewise.
27686         * tests/test-signbit.c (minus_zerol): Likewise.
27687         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27688         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27689         * tests/test-truncl.c (minus_zero): Likewise.
27690         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27691         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27692         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
27693         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27694
27695 2008-10-17  Bruno Haible  <bruno@clisp.org>
27696
27697         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
27698         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
27699         that it gets activated only for gcc >= 3.0.
27700         * lib/dirent.in.h: Likewise.
27701         * lib/errno.in.h: Likewise.
27702         * lib/fcntl.in.h: Likewise.
27703         * lib/float.in.h: Likewise.
27704         * lib/iconv.in.h: Likewise.
27705         * lib/inttypes.in.h: Likewise.
27706         * lib/locale.in.h: Likewise.
27707         * lib/math.in.h: Likewise.
27708         * lib/netdb.in.h: Likewise.
27709         * lib/netinet_in.in.h: Likewise.
27710         * lib/search.in.h: Likewise.
27711         * lib/signal.in.h: Likewise.
27712         * lib/spawn.in.h: Likewise.
27713         * lib/stdarg.in.h: Likewise.
27714         * lib/stdint.in.h: Likewise.
27715         * lib/stdio.in.h: Likewise.
27716         * lib/stdlib.in.h: Likewise.
27717         * lib/string.in.h: Likewise.
27718         * lib/strings.in.h: Likewise.
27719         * lib/sys_file.in.h: Likewise.
27720         * lib/sys_ioctl.in.h: Likewise.
27721         * lib/sys_select.in.h: Likewise.
27722         * lib/sys_socket.in.h: Likewise.
27723         * lib/sys_stat.in.h: Likewise.
27724         * lib/sys_time.in.h: Likewise.
27725         * lib/sysexits.in.h: Likewise.
27726         * lib/time.in.h: Likewise.
27727         * lib/unistd.in.h: Likewise.
27728         * lib/wchar.in.h: Likewise.
27729         * lib/wctype.in.h: Likewise.
27730         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27731
27732 2008-10-17  Jim Meyering  <meyering@redhat.com>
27733
27734         ignore-value: don't depend on inline module
27735         * modules/ignore-value (Depends-on): Remove 'inline'.
27736         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
27737         Suggestion from Bruno Haible.
27738
27739 2008-10-17  Bruno Haible  <bruno@clisp.org>
27740
27741         New implementation of condition variables for Win32.
27742         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
27743         (gl_linked_waitqueue_t): New type.
27744         (gl_cond_t): Use it.
27745         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
27746         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
27747         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
27748         (glthread_cond_init_func, glthread_cond_wait_func,
27749         glthread_cond_timedwait_func, glthread_cond_signal_func,
27750         glthread_cond_broadcast_func, glthread_cond_destroy_func):
27751         Reimplemented on the basis of gl_linked_waitqueue_t.
27752         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
27753         gl_waitqueue_t.
27754         (gl_rwlock_t): Update.
27755         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
27756
27757 2008-10-17  Simon Josefsson  <simon@josefsson.org>
27758
27759         * modules/recvfrom (Depends-on): Add dependency on getpeername.
27760         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27761
27762 2008-10-17  Jim Meyering  <meyering@redhat.com>
27763
27764         ignore-value: new module
27765         * modules/ignore-value: New file.
27766         * lib/ignore-value.h: New file.
27767         * MODULES.html.sh (Compiler warning management): New section,
27768         just for this module.  More to come.
27769
27770 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27771
27772         open-safer.c: avoid 'signed and unsigned in conditional...' warning
27773         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
27774         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
27775
27776 2008-10-16  Jim Meyering  <meyering@redhat.com>
27777
27778         openat-die.c: avoid 'no previous prototype' warning
27779         * lib/openat-die.c: Include "openat.h".
27780         Reported by Reuben Thomas <rrt@sc3d.org>.
27781
27782 2008-10-16  Simon Josefsson  <simon@josefsson.org>
27783
27784         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
27785         * lib/netdb.in.h: Fix typo.
27786         Reported by Bruno Haible  <bruno@clisp.org>
27787
27788         * lib/netdb.in.h: Include sys/socket.h for platforms without
27789         netdb.h, to get structures like hostent on MinGW.
27790         * modules/netdb (Depends-on): Add sys_socket.
27791
27792 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27793
27794         * modules/netdb, modules/netdb-tests: New file.
27795         * m4/netdb_h.m4: New file.
27796         * lib/netdb.in.h: Add, currently just an empty file pending
27797         definitions.
27798         * tests/test-netdb.c: New file.
27799         * doc/posix-headers/netdb.texi: Mention that we replace it if
27800         needed.
27801         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27802         netdb.
27803
27804 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27805
27806         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
27807         with code.
27808
27809 2008-10-13  Bruno Haible  <bruno@clisp.org>
27810
27811         * lib/glthread/cond.c (glthread_cond_wait_func,
27812         glthread_cond_timedwait_func): Add a comment.
27813
27814 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27815
27816         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
27817         * tests/test-select.c: Likewise,
27818
27819 2008-10-13  Bruno Haible  <bruno@clisp.org>
27820
27821         * lib/glthread/cond.c (glthread_cond_wait_func,
27822         glthread_cond_timedwait_func): Fix variable name.
27823         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27824
27825 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
27826
27827         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
27828         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
27829         struct sockaddr.sa_len.
27830         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
27831
27832 2008-10-13  Simon Josefsson  <simon@josefsson.org>
27833
27834         * build-aux/pmccabe2html: Add css and css_url parameters.
27835
27836 2008-10-12  Bruno Haible  <bruno@clisp.org>
27837
27838         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
27839         calling aclx_get.
27840         Reported by Rainer Tammer <tammer@tammer.net>.
27841
27842 2008-10-12  Bruno Haible  <bruno@clisp.org>
27843
27844         Use msvcrt aware primitives for creation/termination of Win32 threads.
27845         * lib/glthread/thread.c: Include <process.h>.
27846         (glthread_create_func): Use _beginthreadex instead of CreateThread.
27847         (wrapper_func): Update signature.
27848         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
27849
27850 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27851             Bruno Haible  <bruno@clisp.org>
27852
27853         Provide a Win32 implementation of the 'cond' module.
27854         * lib/glthread/cond.h [USE_WIN32]: New implementation.
27855         * lib/glthread/cond.c (glthread_cond_init_func,
27856         glthread_cond_wait_func, glthread_cond_timedwait_func,
27857         glthread_cond_signal_func, glthread_cond_broadcast_func,
27858         glthread_cond_destroy_func) [USE_WIN32]: New functions.
27859         * modules/cond (Dependencies): Add gettimeofday.
27860
27861 2008-10-11  Bruno Haible  <bruno@clisp.org>
27862
27863         Make sleep work on older versions of mingw.
27864         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
27865         only whether it exists.
27866         * doc/posix-functions/sleep.texi: Mention the problem with older
27867         versions of mingw.
27868
27869 2008-10-11  Bruno Haible  <bruno@clisp.org>
27870
27871         New module 'shutdown'.
27872         * modules/shutdown: New file.
27873         * lib/sys_socket.in.h (shutdown): New declaration.
27874         * lib/winsock.c (shutdown): New function.
27875         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27876         GNULIB_SHUTDOWN.
27877         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
27878         * doc/posix-functions/shutdown.texi: Document the new module.
27879
27880 2008-10-11  Jim Meyering  <meyering@redhat.com>
27881
27882         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
27883
27884 2008-10-11  Bruno Haible  <bruno@clisp.org>
27885
27886         New module 'fclose'.
27887         * modules/fclose: New file.
27888         * lib/stdio.in.h (fclose): New declaration.
27889         * lib/fclose.c: New file.
27890         * m4/fclose.m4: New file.
27891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
27892         REPLACE_FCLOSE.
27893         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
27894         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
27895         REPLACE_FCLOSE.
27896         * modules/close (Depends-on): fclose.
27897         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
27898
27899 2008-10-11  Bruno Haible  <bruno@clisp.org>
27900
27901         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
27902         set errno and don't call _close.
27903
27904 2008-10-10  Bruno Haible  <bruno@clisp.org>
27905
27906         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
27907         ACL, not afterwards. Fixes test failure on Cygwin.
27908
27909 2008-10-09  Ben Pfaff  <blp@gnu.org>
27910
27911         * build-aux/announce-gen: Fix gnulib version related part of usage
27912         message.  Die with a useful error message if no tarballs are
27913         found.
27914
27915 2008-10-10  Jim Meyering  <meyering@redhat.com>
27916
27917         bootstrap: use git's --depth=N option only if it's supported
27918         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
27919         recognize the --depth option.  Reported by Pádraig Brady.
27920
27921 2008-10-09  Bruno Haible  <bruno@clisp.org>
27922
27923         New module 'ioctl'.
27924         * modules/ioctl: New file.
27925         * lib/sys_socket.in.h (ioctl): Remove declaration.
27926         * lib/winsock.c: Include <sys/ioctl.h>.
27927         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
27928         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27929         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
27930         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
27931         * doc/posix-functions/ioctl.texi: Mention the new module.
27932
27933 2008-10-09  Bruno Haible  <bruno@clisp.org>
27934
27935         New module 'sys_ioctl'.
27936         * lib/sys_ioctl.in.h: New file.
27937         * m4/sys_ioctl_h.m4: New file.
27938         * modules/sys_ioctl: New file.
27939         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
27940
27941 2008-10-09  Bruno Haible  <bruno@clisp.org>
27942
27943         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
27944         * lib/winsock.c: Include <stdarg.h>.
27945         (rpl_ioctl): Change to second argument 'int' and then varargs.
27946
27947 2008-10-09  Bruno Haible  <bruno@clisp.org>
27948
27949         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
27950         when the sys_socket module is present and the system has <winsock2.h>.
27951
27952 2008-10-09  Bruno Haible  <bruno@clisp.org>
27953
27954         * doc/posix-functions/close.texi: Mention module 'close' instead of
27955         module 'sys_socket'.
27956
27957 2008-10-09  Bruno Haible  <bruno@clisp.org>
27958
27959         * doc/glibc-headers/sys_ioctl.texi: New file.
27960         * doc/gnulib.texi: Include it.
27961
27962 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27963             Bruno Haible  <bruno@clisp.org>
27964
27965         Combine the two replacements of 'close'.
27966         * lib/sys_socket.in.h (close): Define to a reminder to include
27967         <unistd.h>.
27968         (_gl_close_fd_maybe_socket): New declaration.
27969         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
27970         * lib/winsock.c (close): Remove undefinition.
27971         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
27972         needed for the gnulib module 'close'.
27973         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
27974         define to an error symbol or to a warning, if suitable.
27975         * lib/close.c: Include <sys/socket.h>.
27976         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
27977         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
27978         UNISTD_H_HAVE_WINSOCK2_H.
27979         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
27980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27981         UNISTD_H_HAVE_WINSOCK2_H.
27982         * modules/sys_socket (Files): Add m4/unistd_h.m4.
27983         (configure.ac): Set a module indicator.
27984         (Makefile.am): Substitute GNULIB_CLOSE.
27985         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
27986         * modules/poll-tests (Depends-on): Add close.
27987         * modules/select-tests (Depends-on): Likewise.
27988
27989 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27990             Bruno Haible  <bruno@clisp.org>
27991
27992         New module 'close'.
27993         * modules/close: New file.
27994         * lib/unistd.in.h (close): Move declaration out of the
27995         FCHDIR_REPLACEMENT scope.
27996         (_gl_unregister_fd): New declaration.
27997         * lib/close.c: New file.
27998         * lib/fchdir.c (rpl_close): Remove function.
27999         * m4/close.m4: New file.
28000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28001         close.
28002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
28003         REPLACE_CLOSE.
28004         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
28005         REPLACE_CLOSE.
28006         * modules/fchdir (Depends-on): Add close.
28007
28008 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28009             Bruno Haible  <bruno@clisp.org>
28010
28011         * lib/fcntl.in.h (open): Simplify conditionals.
28012         (_gl_register_fd): New declaration.
28013         * lib/fchdir.c (rpl_open): Remove function.
28014         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
28015         also.
28016         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
28017         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28018         open.
28019
28020 2008-10-09  Jim Meyering  <meyering@redhat.com>
28021
28022         GNUmakefile: use the more name-space-friendly "_version"
28023         * top/GNUmakefile (_dummy): Update.
28024         (_version): Rename from "version".
28025
28026 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28027             Bruno Haible  <bruno@clisp.org>
28028
28029         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
28030         rpl_close.
28031         (_gl_register_fd): New function, extracted from rpl_open.
28032         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
28033         (rpl_open, rpl_opendir): Use _gl_register_fd.
28034
28035 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28036
28037         Fix organization of 'open' replacement.
28038         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
28039         (gl_FUNC_OPEN): Use it.
28040         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
28041
28042 2008-10-08  Bruno Haible  <bruno@clisp.org>
28043
28044         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
28045
28046 2008-10-08  Simon Josefsson  <simon@josefsson.org>
28047
28048         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
28049         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
28050         listen).
28051
28052 2008-10-08  Eric Blake  <ebb9@byu.net>
28053
28054         GNUmakefile: add 'make version' target
28055         * top/GNUmakefile (_curr-ver): Split version update rules...
28056         (version): ...into a target.
28057
28058 2008-10-07  Bruno Haible  <bruno@clisp.org>
28059
28060         Use a more portable replacement expression for -0.0L.
28061         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
28062         instead of -0.0L. Fix m4 quotation.
28063
28064         * tests/test-signbit.c: Include <float.h>.
28065         (minus_zero): New variable.
28066         (test_signbitl): Use minus_zero instead of -zero.
28067         * modules/signbit-tests (Depends-on): Add float.
28068
28069         * tests/test-ceill.c: Include <float.h>.
28070         (zero): Remove variable.
28071         (minus_zero): New variable.
28072         (main): Use minus_zero instead of -zero.
28073         * modules/ceill-tests (Depends-on): Add float.
28074
28075         * tests/test-floorl.c: Include <float.h>.
28076         (zero): Remove variable.
28077         (minus_zero): New variable.
28078         (main): Use minus_zero instead of -zero.
28079         * modules/floorl-tests (Depends-on): Add float.
28080
28081         * tests/test-roundl.c: Include <float.h>.
28082         (zero): Remove variable.
28083         (minus_zero): New variable.
28084         (main): Use minus_zero instead of -zero.
28085         * modules/roundl-tests (Depends-on): Add float.
28086
28087         * tests/test-truncl.c: Include <float.h>.
28088         (zero): Remove variable.
28089         (minus_zero): New variable.
28090         (main): Use minus_zero instead of -zero.
28091         * modules/truncl-tests (Depends-on): Add float.
28092
28093         * tests/test-frexpl.c (zero): Remove variable.
28094         (minus_zero): New variable.
28095         (main): Use minus_zero instead of -zero.
28096         * modules/frexpl-tests (Depends-on): Add float.
28097
28098         * tests/test-isnan.c (zerol): Remove variable.
28099         (minus_zerol): New variable.
28100         (test_long_double): Use minus_zerol instead of -zerol.
28101         * modules/isnan-tests (Depends-on): Add float.
28102
28103         * tests/test-isnanl.h (zero): Remove variable.
28104         (minus_zero): New variable.
28105         (main): Use minus_zero instead of -zero.
28106         * modules/isnanl-nolibm-tests (Depends-on): Add float.
28107         * modules/isnanl-tests (Depends-on): Add float.
28108
28109         * tests/test-ldexpl.c (zero): Remove variable.
28110         (minus_zero): New variable.
28111         (main): Use minus_zero instead of -zero.
28112         * modules/ldexpl-tests (Depends-on): Add float.
28113
28114         * tests/test-snprintf-posix.h (zerol): Remove variable.
28115         (minus_zerol): New variable.
28116         (test_function): Use minus_zerol instead of -zerol.
28117         * modules/snprintf-posix-tests (Depends-on): Add float.
28118         * modules/vsnprintf-posix-tests (Depends-on): Add float.
28119
28120         * tests/test-sprintf-posix.h (zerol): Remove variable.
28121         (minus_zerol): New variable.
28122         (test_function): Use minus_zerol instead of -zerol.
28123         * modules/sprintf-posix-tests (Depends-on): Add float.
28124         * modules/vsprintf-posix-tests (Depends-on): Add float.
28125
28126         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
28127         (minus_zerol): New variable.
28128         (test_function): Use minus_zerol instead of -zerol.
28129         * modules/vasnprintf-posix-tests (Depends-on): Add float.
28130
28131         * tests/test-vasprintf-posix.c (zerol): Remove variable.
28132         (minus_zerol): New variable.
28133         (test_function): Use minus_zerol instead of -zerol.
28134         * modules/vasprintf-posix-tests (Depends-on): Add float.
28135
28136 2008-10-07  Simon Josefsson  <simon@josefsson.org>
28137
28138         * MODULES.html.sh (Support for building documentation): Mention
28139         pmccabe2html.  Sort entries.
28140
28141         Add pmccabe2html module, from gnupdf.
28142         * build-aux/pmccabe.css: New file.
28143         * build-aux/pmccabe2html: New file.
28144         * m4/pmccabe2html.m4: New file.
28145         * modules/pmccabe2html: New file.
28146
28147 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
28148
28149         flock: new module
28150         * MODULES.html.sh: Add to list of modules.
28151         * lib/flock.c: flock implementation for Windows and Unix systems
28152         which have fcntl.
28153         * doc/glibc-functions/flock.texi: Update documentation.
28154         * lib/sys_file.in.h: <sys/file.h> header file.
28155         * m4/flock.m4: M4 macros.
28156         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
28157         * modules/flock: flock module.
28158         * modules/flock-tests: flock tests module.
28159         * modules/sys_file: sys/file.h module.
28160         * tests/test-flock.c: test suite for flock.
28161
28162 2008-10-06  Jim Meyering  <meyering@redhat.com>
28163
28164         bootstrap: check for LT_INIT more portably still ;-)
28165         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
28166         Spotted by Bruno Haible.
28167
28168 2008-10-06  Eric Blake  <ebb9@byu.net>
28169
28170         test-signbit: avoid tripping Irix cc bug on -0.0L
28171         * tests/test-signbit.c (minus_zerol): Delete, and replace with
28172         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
28173         entire testsuite consistent and avoids an Irix 6.2 bug.
28174
28175 2008-10-05  Bruno Haible  <bruno@clisp.org>
28176             Jim Meyering  <jim@meyering.net>
28177
28178         Add an option for ignoring EPIPE during close_stdout.
28179         * lib/closeout.h: Include <stdbool.h>.
28180         (close_stdout_set_ignore_EPIPE): New declaration.
28181         * lib/closeout.c: Include <stdbool.h>.
28182         (ignore_EPIPE): New variable.
28183         (close_stdout_set_ignore_EPIPE): New function.
28184         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
28185         * lib/close-stream.c (close_stream): Mention the possible EPIPE
28186         failure.
28187         * modules/closeout (Depends-on): Add stdbool.
28188
28189 2008-10-05  Bruno Haible  <bruno@clisp.org>
28190
28191         * modules/accept: New file.
28192         * modules/bind: New file.
28193         * modules/connect: New file.
28194         * modules/getpeername: New file.
28195         * modules/getsockname: New file.
28196         * modules/getsockopt: New file.
28197         * modules/listen: New file.
28198         * modules/recv: New file.
28199         * modules/recvfrom: New file.
28200         * modules/send: New file.
28201         * modules/sendto: New file.
28202         * modules/setsockopt: New file.
28203         * modules/socket: New file.
28204         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
28205         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28206         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
28207         the particular module is requested. Add a link warning when the
28208         particular module is not requested.
28209         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
28210         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
28211         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
28212         the particular module is requested.
28213         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
28214         gl_SYS_SOCKET_H_DEFAULTS): New macros.
28215         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
28216         * modules/sys_socket (Depends-on): Add link-warning.
28217         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
28218         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
28219         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
28220         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
28221         GL_LINK_WARNING.
28222         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
28223         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
28224         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
28225         * doc/posix-functions/getpeername.texi: Mention the new module
28226         'getpeername'.
28227         * doc/posix-functions/getsockname.texi: Mention the new module
28228         'getsockname'.
28229         * doc/posix-functions/getsockopt.texi: Mention the new module
28230         'getsockopt'.
28231         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
28232         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
28233         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
28234         * doc/posix-functions/send.texi: Mention the new module 'send'.
28235         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
28236         * doc/posix-functions/setsockopt.texi: Mention the new module
28237         'setsockopt'.
28238         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
28239         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
28240         listen, connect, accept.
28241         * modules/select-tests (Depends-on): Likewise.
28242
28243 2008-10-05  Bruno Haible  <bruno@clisp.org>
28244
28245         * lib/winsock.c (strerror): Remove unused #undef.
28246         (rpl_close): Remove unused local variable.
28247
28248         * modules/sys_socket (Depends-on); Add errno.
28249
28250 2008-10-05  Bruno Haible  <bruno@clisp.org>
28251
28252         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
28253         (select): Add a link warning when the 'select' module is not used.
28254         * modules/sys_select (Depends-on): Add link-warning.
28255         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
28256         Suggested by Paolo Bonzini.
28257
28258 2008-10-05  Jim Meyering  <meyering@redhat.com>
28259
28260         bootstrap: check for LT_INIT more portably
28261         * build-aux/bootstrap: Avoid using grep -E, since it's not
28262         portable enough.  Suggestion from Bruno Haible.
28263
28264 2008-10-05  Bruno Haible  <bruno@clisp.org>
28265
28266         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
28267         as being fixed by gnulib.
28268
28269 2008-10-05  Bruno Haible  <bruno@clisp.org>
28270
28271         * modules/select-tests: New file, mostly copied from
28272         modules/sys_select-tests.
28273         * tests/test-select.c: New file, mostly copied from
28274         tests/test-sys_select.c.
28275         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
28276         * modules/sys_select-tests (Depends-on): Remove all dependencies.
28277         (Makefile.am): Remove test_sys_select_LDADD.
28278
28279         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
28280         to an undefined symbol, for an error message.
28281         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
28282         (gl_SYS_SELECT_H_DEFAULTS): New macro.
28283         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
28284         winsock-select.c here.
28285         * modules/sys_select (Files): Remove lib/winsock-select.c.
28286         (Depends-on): Remove alloca.
28287         (Makefile.am): Substitute GNULIB_SELECT.
28288         * modules/select: New file.
28289         * doc/posix-functions/select.texi: Update.
28290
28291 2008-10-05  Bruno Haible  <bruno@clisp.org>
28292
28293         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
28294         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
28295         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
28296         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
28297         getdtablesize.
28298         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
28299         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
28300
28301 2008-10-05  Bruno Haible  <bruno@clisp.org>
28302
28303         * modules/getdtablesize-tests: New file.
28304         * tests/test-getdtablesize.c: New file.
28305
28306         New module 'getdtablesize'.
28307         * lib/unistd.in.h (getdtablesize): New declaration.
28308         * lib/getdtablesize.c: New file.
28309         * m4/getdtablesize.m4: New file.
28310         * modules/getdtablesize: New file.
28311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28312         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
28313         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
28314         HAVE_GETDTABLESIZE.
28315         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
28316
28317 2008-10-05  Bruno Haible  <bruno@clisp.org>
28318
28319         * modules/sched (Makefile.am): Fix typo.
28320         Reported by Simon Josefsson.
28321
28322 2008-10-05  Jim Meyering  <meyering@redhat.com>
28323
28324         bootstrap: check for LT_INIT, too
28325         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
28326         are deprecated.  Suggestion from Ralf Wildenhues.
28327
28328 2008-10-05  Bruno Haible  <bruno@clisp.org>
28329
28330         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
28331         overriding them by ours.
28332         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
28333
28334 2008-10-05  Jim Meyering  <meyering@redhat.com>
28335
28336         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
28337         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
28338         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
28339
28340 2008-10-04  Bruno Haible  <bruno@clisp.org>
28341
28342         * modules/dup2 (License): Change to LGPLv2+.
28343         * modules/sleep (License): Likewise.
28344         * modules/perror (License): Likewise.
28345         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
28346         Blake.
28347         * modules/signal (License): Likewise.
28348         * modules/sigprocmask (License): Likewise.
28349         * modules/raise (License): Change to LGPLv2+, with approval by Jim
28350         Meyering.
28351
28352 2008-10-04  Bruno Haible  <bruno@clisp.org>
28353
28354         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
28355         Reported by Rainer Tammer <tammer@tammer.net>.
28356
28357 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
28358             Bruno Haible  <bruno@clisp.org>
28359
28360         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
28361         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
28362         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
28363
28364 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
28365
28366         filevercmp: new module
28367         * lib/filevercmp.h: New function filevercmp comparing version strings.
28368         * lib/filevercmp.c: Implementation of filevercmp function.
28369         * modules/filevercmp: Module metadata.
28370         * tests/test-filevercmp.c: Unit test for new module.
28371         * modules/filevercmp-tests: Unit test metadata.
28372         * MODULES.html.sh: Add filevercmp module.
28373
28374 2008-10-03  Bruno Haible  <bruno@clisp.org>
28375
28376         * lib/c-ctype.h: Add comment.
28377         Reported by Jim Meyering.
28378
28379 2008-10-02  Bruno Haible  <bruno@clisp.org>
28380
28381         * modules/posix_spawn-internal (Depends-on): Add 'open'.
28382
28383 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28384
28385         * build-aux/bootstrap: Allow renaming bootstrap, and change the
28386         name of bootstrap.conf accordingly.
28387
28388 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28389
28390         * build-aux/bootstrap: Install git-merge-changelog configuration
28391         items into .gitconfig if needed.
28392
28393 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28394
28395         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
28396         git repository, and initialize/update it accordingly.
28397
28398 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
28399
28400         * modules/fsync-tests: New file.
28401         * tests/test-fsync.c: New file.
28402
28403         New module 'fsync'.
28404         * lib/fsync.c: New file.
28405         * m4/fsync.m4: New file.
28406         * modules/fsync: New file.
28407         * lib/unistd.in.h (fsync): New declaration.
28408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
28409         GNULIB_FSYNC and HAVE_FSYNC.
28410         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
28411         * MODULES.html.sh (posix_functions): Add fsync.
28412         * doc/posix-functions/fsync.texi: Mention the new module.
28413
28414 2008-10-02  Jim Meyering  <meyering@redhat.com>
28415
28416         fts.c: sync with similar code from coreutils' remove.c
28417         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
28418         Guard also with "#if defined __linux__", since for now at least,
28419         this code is Linux-kernel-specific.
28420
28421 2008-10-02  Jim Meyering  <meyering@redhat.com>
28422
28423         fts: bug fixes
28424         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
28425         Include <sys/vfs.h>, not <sys/statfs.h>.
28426
28427         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
28428         Include <sys/vfs.h>, not <sys/statfs.h>.
28429
28430 2008-10-01  Bruno Haible  <bruno@clisp.org>
28431
28432         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
28433         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
28434         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
28435         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
28436         * doc/posix-functions/posix_spawnp.texi: Likewise.
28437         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
28438         whether posix_spawn actually works.
28439         * m4/pipe.m4 (gl_PIPE): Likewise.
28440         * modules/execute (Files): Add m4/posix_spawn.m4.
28441         * modules/pipe (Files): Add m4/posix_spawn.m4.
28442         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
28443
28444 2008-10-01  Jim Meyering  <meyering@redhat.com>
28445
28446         remove trailing spaces
28447         * NEWS: Likewise.
28448         * lib/poll.c (poll): Likewise.
28449         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
28450         * lib/winsock.c (rpl_close): Likewise.
28451         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
28452         * modules/yield: Likewise.
28453         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
28454         * tests/test-sys_select.c (connect_to_socket): Likewise.
28455
28456         fts.c: adjust a new interface to be more generally useful
28457         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
28458         (fts_build): Adjust caller.
28459
28460 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28461
28462         * modules/cond-tests: New file.
28463         * tests/test-cond.c: New file.
28464
28465 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28466             Bruno Haible  <bruno@clisp.org>
28467
28468         * modules/cond (Dependencies): Add errno, time.
28469         * lib/glthread/cond.h: Include <time.h>.
28470         (gl_cond_define, gl_cond_define_initialized): Use the same definition
28471         across platforms.
28472
28473 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28474             Bruno Haible  <bruno@clisp.org>
28475
28476         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
28477
28478 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28479             Bruno Haible  <bruno@clisp.org>
28480
28481         * modules/tls-tests (Depends-on): Add thread, yield.
28482         (configure.ac): Remove all checks.
28483         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
28484         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28485         gl_thread_self): Remove definitions. Include glthread/thread.h and
28486         glthread/yield.h instead.
28487         (test_tls): Pass an additional NULL argument to gl_thread_join.
28488
28489 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28490             Bruno Haible  <bruno@clisp.org>
28491
28492         * modules/lock-tests (Depends-on): Add thread, yield.
28493         (configure.ac): Remove all checks.
28494         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
28495         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28496         gl_thread_self): Remove definitions. Include glthread/thread.h and
28497         glthread/yield.h instead.
28498         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
28499         additional NULL argument to gl_thread_join.
28500
28501 2008-09-30  Bruno Haible  <bruno@clisp.org>
28502
28503         Fix the Win32 implementation of the 'thread' module.
28504         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
28505         pointer type.
28506         (gl_thread_self): Invoke gl_thread_self_func.
28507         (gl_thread_self_func): New declaration.
28508         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
28509         (do_init_self_key, init_self_key): New functions.
28510         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
28511         Remove some fields.
28512         (running_threads, running_lock): Remove variables.
28513         (get_current_thread_handle): New function.
28514         (gl_thread_self_func, wrapper_func, glthread_create_func,
28515         glthread_join_func, gl_thread_exit_func): Largely rewritten and
28516         simplified.
28517
28518 2008-09-30  Bruno Haible  <bruno@clisp.org>
28519
28520         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
28521         files.
28522
28523 2008-09-30  Jim Meyering  <meyering@redhat.com>
28524
28525         fts.m4: correct the test for statfs.f_type
28526         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
28527         when checking for statfs.f_type.
28528
28529 2008-09-15  Simon Josefsson  <simon@josefsson.org>
28530
28531         tests: avoid some compiler warnings
28532         * tests/test-memchr.c (main): Pass NULL indirectly.
28533         * tests/test-getdate.c (main): Remove unused variable 'ret'.
28534
28535 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
28536
28537         getdate.y: disallow countable dayshifts like "4 yesterday ago"
28538         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
28539         exactly specified dayshifts.
28540         (dayshift): New rule.
28541         (rel): Add dayshift.
28542         (relative_time_table) [tomorrow, yesterday, today, now]:
28543         Use tDAY_SHIFT in place of tDAY_UNIT.
28544         * tests/test-getdate.c: Add tests for now-disallowed countable
28545         dayshifts, e.g., "4 yesterday ago".
28546
28547 2008-09-29  Bruno Haible  <bruno@clisp.org>
28548
28549         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
28550         * tests/test-posix_spawn1.in.sh: Renamed from
28551         tests/test-posix_spawn.in.sh.
28552         * tests/test-posix_spawn2.c: New file.
28553         * tests/test-posix_spawn2.in.sh: New file.
28554         * modules/posix_spawnp-tests (Files): Update.
28555         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
28556
28557 2008-09-29  Bruno Haible  <bruno@clisp.org>
28558
28559         Propagate effects of putenv/setenv/unsetenv to child processes.
28560         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
28561         * lib/pipe.c (create_pipe): Likewise.
28562
28563 2008-09-29  Bruno Haible  <bruno@clisp.org>
28564
28565         Enable use of shell scripts as executables in mingw.
28566         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
28567         run the program as a shell script.
28568         * lib/pipe.c (create_pipe): Likewise.
28569         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
28570         resulting array.
28571
28572 2008-09-29  Eric Blake  <ebb9@byu.net>
28573
28574         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
28575
28576 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
28577
28578         * doc/posix-functions/accept.texi: Update mingw problems.
28579         * doc/posix-functions/bind.texi: Update mingw problems.
28580         * doc/posix-functions/close.texi: Update mingw problems.
28581         * doc/posix-functions/connect.texi: Update mingw problems.
28582         * doc/posix-functions/getpeername.texi: Update mingw problems.
28583         * doc/posix-functions/getsockname.texi: Update mingw problems.
28584         * doc/posix-functions/getsockopt.texi: Update mingw problems.
28585         * doc/posix-functions/ioctl.texi: Update mingw problems.
28586         * doc/posix-functions/listen.texi: Update mingw problems.
28587         * doc/posix-functions/recv.texi: Update mingw problems.
28588         * doc/posix-functions/recvfrom.texi: Update mingw problems.
28589         * doc/posix-functions/select.texi: Update mingw problems.
28590         * doc/posix-functions/send.texi: Update mingw problems.
28591         * doc/posix-functions/sendto.texi: Update mingw problems.
28592         * doc/posix-functions/setsockopt.texi: Update mingw problems.
28593         * doc/posix-functions/socket.texi: Update mingw problems.
28594
28595 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
28596             Bruno Haible  <bruno@clisp.org>
28597
28598         * lib/sys_select.in.h: Include sys/time.h.
28599         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
28600         * modules/sys_select: Depend on sys_time.
28601         * tests/test-sys_select.c: Test that sys/select.h defines struct
28602         timeval fully.
28603
28604 2008-09-29  Bruno Haible  <bruno@clisp.org>
28605
28606         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
28607         * lib/sys_select.in.h: Likewise.
28608
28609 2008-09-29  Bruno Haible  <bruno@clisp.org>
28610
28611         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
28612
28613 2008-09-29  Bruno Haible  <bruno@clisp.org>
28614
28615         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
28616         Set LIBSOCKET instead of augmenting LIBS.
28617         * modules/sockets (Link): New section.
28618         * modules/sockets-tests (test_sockets_LDADD): New variable.
28619         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
28620         * modules/poll-tests (test_poll_LDADD): New variable.
28621         * NEWS: Document the change.
28622
28623 2008-09-29  Bruno Haible  <bruno@clisp.org>
28624
28625         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
28626         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
28627         ARPA_INET_H directly.
28628         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28629
28630 2008-09-28  Bruno Haible  <bruno@clisp.org>
28631
28632         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
28633         from gl_HEADER_SYS_SOCKET.
28634         (gl_HEADER_SYS_SOCKET): Invoke it.
28635         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28636
28637 2008-09-28  Bruno Haible  <bruno@clisp.org>
28638
28639         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
28640         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
28641         Needed on OSF/1 4.0.
28642
28643 2008-09-28  Bruno Haible  <bruno@clisp.org>
28644
28645         Override open more carefully.
28646         * lib/open.c (orig_open): New function.
28647         (rpl_open): Use orig_open instead of open.
28648         * lib/fcntl.in.h: Add special invocation convention.
28649         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
28650         (gl_FUNC_OPEN): Invoke it.
28651
28652         Override freopen more carefully.
28653         * lib/freopen.c (orig_freopen): New function.
28654         (rpl_freopen): Use orig_freopen instead of freopen.
28655         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
28656         (gl_FUNC_FREOPEN): Invoke it.
28657
28658         Override fopen more carefully.
28659         * lib/fopen.c (orig_fopen): New function.
28660         (rpl_fopen): Use orig_fopen instead of fopen.
28661         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
28662         (gl_FUNC_FOPEN): Invoke it.
28663         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
28664
28665 2008-09-28  Bruno Haible  <bruno@clisp.org>
28666
28667         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
28668         SIGPIPE.
28669
28670 2008-09-28  Bruno Haible  <bruno@clisp.org>
28671
28672         * tests/test-sigaction.c (handler, main): Disable the check whether
28673         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
28674         glibc systems with LinuxThreads.
28675
28676 2008-09-28  Bruno Haible  <bruno@clisp.org>
28677
28678         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
28679
28680         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
28681         with AIX xlc.
28682         * lib/fcntl.in.h (open): Likewise.
28683         Reported by Rainer Tammer <tammer@tammer.net>.
28684
28685 2008-09-28  Bruno Haible  <bruno@clisp.org>
28686
28687         * modules/posix_spawnp-tests: New file.
28688         * tests/test-posix_spawn.c: New file.
28689         * tests/test-posix_spawn.in.sh: New file.
28690
28691         New module 'posix_spawnp'.
28692         * modules/posix_spawnp: New file.
28693         * lib/spawnp.c: New file, from GNU libc with modifications.
28694         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
28695
28696         New module 'posix_spawn'.
28697         * modules/posix_spawn: New file.
28698         * lib/spawn.c: New file, from GNU libc with modifications.
28699         * doc/posix-functions/posix_spawn.texi: Mention the new module.
28700
28701         New module 'posix_spawnattr_destroy'.
28702         * modules/posix_spawnattr_destroy: New file.
28703         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
28704         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
28705         module.
28706
28707         New module 'posix_spawnattr_setsigmask'.
28708         * modules/posix_spawnattr_setsigmask: New file.
28709         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
28710         modifications.
28711         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
28712         new module.
28713
28714         New module 'posix_spawnattr_getsigmask'.
28715         * modules/posix_spawnattr_getsigmask: New file.
28716         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
28717         modifications.
28718         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
28719         new module.
28720
28721         New module 'posix_spawnattr_setsigdefault'.
28722         * modules/posix_spawnattr_setsigdefault: New file.
28723         * lib/spawnattr_setdefault.c: New file, from GNU libc with
28724         modifications.
28725         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
28726         new module.
28727
28728         New module 'posix_spawnattr_getsigdefault'.
28729         * modules/posix_spawnattr_getsigdefault: New file.
28730         * lib/spawnattr_getdefault.c: New file, from GNU libc with
28731         modifications.
28732         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
28733         new module.
28734
28735         New module 'posix_spawnattr_setschedpolicy'.
28736         * modules/posix_spawnattr_setschedpolicy: New file.
28737         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
28738         modifications.
28739         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
28740         new module.
28741
28742         New module 'posix_spawnattr_getschedpolicy'.
28743         * modules/posix_spawnattr_getschedpolicy: New file.
28744         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
28745         modifications.
28746         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
28747         new module.
28748
28749         New module 'posix_spawnattr_setschedparam'.
28750         * modules/posix_spawnattr_setschedparam: New file.
28751         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
28752         modifications.
28753         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
28754         new module.
28755
28756         New module 'posix_spawnattr_getschedparam'.
28757         * modules/posix_spawnattr_getschedparam: New file.
28758         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
28759         modifications.
28760         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
28761         new module.
28762
28763         New module 'posix_spawnattr_setpgroup'.
28764         * modules/posix_spawnattr_setpgroup: New file.
28765         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
28766         modifications.
28767         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
28768         module.
28769
28770         New module 'posix_spawnattr_getpgroup'.
28771         * modules/posix_spawnattr_getpgroup: New file.
28772         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
28773         modifications.
28774         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
28775         module.
28776
28777         New module 'posix_spawnattr_setflags'.
28778         * modules/posix_spawnattr_setflags: New file.
28779         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
28780         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
28781         module.
28782
28783         New module 'posix_spawnattr_getflags'.
28784         * modules/posix_spawnattr_getflags: New file.
28785         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
28786         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
28787         module.
28788
28789         New module 'posix_spawnattr_init'.
28790         * modules/posix_spawnattr_init: New file.
28791         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
28792         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
28793         module.
28794
28795         New module 'posix_spawn_file_actions_destroy'.
28796         * modules/posix_spawn_file_actions_destroy: New file.
28797         * lib/spawn_faction_destroy.c: New file, from GNU libc with
28798         modifications.
28799         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
28800         the new module.
28801
28802         New module 'posix_spawn_file_actions_addopen'.
28803         * modules/posix_spawn_file_actions_addopen: New file.
28804         * lib/spawn_faction_addopen.c: New file, from GNU libc with
28805         modifications.
28806         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
28807         the new module.
28808
28809         New module 'posix_spawn_file_actions_adddup2'.
28810         * modules/posix_spawn_file_actions_adddup2: New file.
28811         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
28812         modifications.
28813         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
28814         the new module.
28815
28816         New module 'posix_spawn_file_actions_addclose'.
28817         * modules/posix_spawn_file_actions_addclose: New file.
28818         * lib/spawn_faction_addclose.c: New file, from GNU libc with
28819         modifications.
28820         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28821         the new module.
28822
28823         New module 'posix_spawn_file_actions_init'.
28824         * modules/posix_spawn_file_actions_init: New file.
28825         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
28826         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
28827         new module.
28828
28829         New module 'posix_spawn-internal'.
28830         * modules/posix_spawn-internal: New file.
28831         * lib/spawn_int.h: New file, from GNU libc with modifications.
28832         * lib/spawni.c: New file, from GNU libc with modifications.
28833         * m4/posix_spawn.m4: New file.
28834
28835         New module 'spawn'.
28836         * modules/spawn: New file.
28837         * lib/spawn.in.h: New file, from GNU libc with modifications.
28838         * m4/spawn_h.m4: New file.
28839         * doc/posix-headers/spawn.texi: Mention the new module.
28840
28841 2008-09-28  Bruno Haible  <bruno@clisp.org>
28842
28843         * modules/sched-tests: New file.
28844         * tests/test-sched.c: New file.
28845
28846         New module 'sched'.
28847         * modules/sched: New file.
28848         * lib/sched.in.h: New file.
28849         * m4/sched_h.m4: New file.
28850         * doc/posix-headers/sched.texi: Mention the new module.
28851
28852 2008-09-27  Eric Blake  <ebb9@byu.net>
28853
28854         Fix previous patch, and tweak references to $0.
28855         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
28856         (func_version, func_gnulib_dir): Don't call this program
28857         gnulib-tool.
28858         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
28859         with using $0 in function.
28860         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
28861         (func_fatal_error): Reuse the name the user invoked us with.
28862
28863 2008-09-27  Bruno Haible  <bruno@clisp.org>
28864
28865         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
28866         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
28867         (gl_ICONV_H): Not here.
28868         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28869         instead of assigning ICONV_H directly.
28870
28871         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
28872         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
28873         WCHAR_H directly.
28874
28875 2008-09-27  Bruno Haible  <bruno@clisp.org>
28876
28877         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
28878         * modules/arpa_inet (Depends-on): Add link-warning.
28879         (Makefile.am): Insert the definition of GL_LINK-WARNING.
28880         * modules/unistd (Makefile.am): Likewise.
28881
28882 2008-09-26  Bruno Haible  <bruno@clisp.org>
28883
28884         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
28885         variables.
28886         (func_version): Essentially copied from gnulib-tool.
28887         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
28888         func_readlink): Copied from gnulib-tool.
28889
28890 2008-09-26  Bruno Haible  <bruno@clisp.org>
28891
28892         * gnulib-tool (func_version): Change directory to $gnulib_dir before
28893         invoking git-version-gen.
28894
28895 2008-09-26  Bruno Haible  <bruno@clisp.org>
28896
28897         * posix-modules: Update to directory names changed on 2008-01-19.
28898         Remove commas in output before splitting into words. No more need to
28899         avoid 'ftruncate' since 2007-02-19.
28900
28901 2008-09-26  Bruno Haible  <bruno@clisp.org>
28902
28903         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
28904
28905 2008-09-26  Bruno Haible  <bruno@clisp.org>
28906
28907         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
28908         * modules/fwriteerror (Depends-on): Add errno.
28909
28910 2008-09-26  Bruno Haible  <bruno@clisp.org>
28911
28912         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
28913         * tests/test-vc-list-files-cvs.sh: Likewise.
28914
28915 2008-09-26  Bruno Haible  <bruno@clisp.org>
28916
28917         * doc/posix-headers/sys_resource.texi: Reorder items.
28918
28919 2008-09-26  Jim Meyering  <meyering@redhat.com>
28920
28921         fts: tweak inode comparison function
28922         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
28923         inode numbers, as documented.
28924
28925         fts: sort dirent entries on inode number before traversing
28926         This avoids a quadratic, seek-related performance penalty when
28927         operating on a directory containing many entries (measurable at 10k;
28928         3.5 hours at 2 million entries with a cold cache) on certain types
28929         of file systems, including ext3 and ext4, but not tmpfs.
28930         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
28931         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
28932         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
28933         (fs_handles_readdir_ordered_dirents_efficiently): New function.
28934         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
28935         (fts_build): Set the stat.st_ino member from D_INO.
28936         If it is likely to be useful, sort dirent entries on inode number.
28937
28938         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
28939         and the struct statfs.f_type member.
28940         * modules/fts (Depends-on): Add d-ino.
28941
28942 2008-09-26  Bruno Haible  <bruno@clisp.org>
28943
28944         * modules/sigpipe-die (Depends-on): Add sigpipe.
28945
28946         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
28947         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
28948         and GNULIB_STDIO_H_SIGPIPE are set.
28949         * lib/stdio-write.c: New file.
28950         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
28951         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28952         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28953         REPLACE_STDIO_WRITE_FUNCS.
28954         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
28955         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28956         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28957         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28958         * modules/stdio (Files): Add lib/stdio-write.c.
28959         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
28960         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28961         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28962         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28963         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
28964         REPLACE_FPRINTF_POSIX.
28965         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
28966         REPLACE_PRINTF_POSIX.
28967         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
28968         REPLACE_VFPRINTF_POSIX.
28969         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
28970         REPLACE_VPRINTF_POSIX.
28971         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
28972         SIGPIPE issue.
28973         * doc/posix-functions/fputc.texi: Likewise.
28974         * doc/posix-functions/fputs.texi: Likewise.
28975         * doc/posix-functions/fwrite.texi: Likewise.
28976         * doc/posix-functions/printf.texi: Likewise.
28977         * doc/posix-functions/putc.texi: Likewise.
28978         * doc/posix-functions/putchar.texi: Likewise.
28979         * doc/posix-functions/puts.texi: Likewise.
28980         * doc/posix-functions/vfprintf.texi: Likewise.
28981         * doc/posix-functions/vprintf.texi: Likewise.
28982
28983         * modules/safe-write (Depends-on): Add write.
28984
28985         * modules/sigpipe-tests: New file.
28986         * tests/test-sigpipe.c: New file.
28987         * tests/test-sigpipe.sh: New file.
28988
28989         * modules/write: New file.
28990         * lib/unistd.in.h: Include <sys/types.h>.
28991         (write): New declaration.
28992         * lib/write.c: New file.
28993         * m4/write.m4: New file.
28994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28995         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
28996         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
28997         GNULIB_WRITE, REPLACE_WRITE.
28998         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
28999         and the SIGPIPE issue.
29000
29001         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
29002         (raise): New declaration.
29003         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
29004         (ext_signal): New function.
29005         (rpl_raise): New function.
29006         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29007         GNULIB_SIGNAL_H_SIGPIPE.
29008         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
29009         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
29010
29011         * modules/sigpipe: New file.
29012         * m4/sigpipe.m4: New file.
29013
29014 2008-09-25  Derek Price  <derek@ximbiot.com>
29015             Bruno Haible  <bruno@clisp.org>
29016
29017         * gnulib-tool (func_import): Report all license incompatibilities, not
29018         just the first one.
29019
29020 2008-09-25  Bruno Haible  <bruno@clisp.org>
29021
29022         * gnulib-tool (func_import): When computing the edits, consider not
29023         only the Makefile.ams that exist but also those that will be generated.
29024
29025 2008-09-25  Simon Josefsson  <simon@josefsson.org>
29026
29027         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
29028         fixes gnulib-tool --test warning about duplicate dependency.
29029
29030 2008-09-25  Bruno Haible  <bruno@clisp.org>
29031
29032         * gnulib-tool: Don't ask the user to perform edits in the generated
29033         Makefile.ams.
29034         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
29035         apply to the Makefile.am being generated.
29036         (func_emit_tests_Makefile_am): Execute edits that apply to the
29037         Makefile.am being generated.
29038         (func_import): Setup list of Makefile.am edits before emitting the
29039         Makefile.ams, not at the end.
29040         (func_create_testdir): Update.
29041         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29042
29043 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29044
29045         * gnulib-tool (func_import): Store the --tests-base option in the
29046         comment in gnulib-cache.m4.
29047
29048 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
29049
29050         * NEWS: Document increased portability that sys_select now provides.
29051
29052         * lib/sys_select.in.h: Install select wrapper.
29053         * lib/sys_socket.in.h: Use more descriptive name when there is no
29054         select wrapper.
29055         * lib/winsock-select.c: New.
29056         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
29057         Require gl_HEADER_SYS_SOCKET.
29058         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
29059         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
29060         * tests/test-sys_select.c: Add functional tests.
29061
29062 2008-09-24  Eric Blake  <ebb9@byu.net>
29063
29064         open, fopen: close fd leak in last patch
29065         * lib/open.c (rpl_open): Close fd before returning error.
29066         * lib/fopen.c (rpl_fopen): Close fd before returning error.
29067         * doc/posix-functions/open.texi (open): Document that Irix also
29068         has the bug.
29069         * doc/posix-functions/fopen.texi (fopen): Likewise.
29070         Reported by Paolo Bonzini.
29071
29072 2008-09-24  Bruno Haible  <bruno@clisp.org>
29073
29074         Ensure that a filename ending in a slash cannot be used to access a
29075         non-directory.
29076         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
29077         to check whether it's really a directory.
29078         * lib/fopen.c: Include fcntl.h, unistd.h.
29079         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
29080         and fdopen().
29081         * modules/fopen (Depends-on): Add unistd.
29082         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
29083         * tests/test-fopen.c (main): Likewise.
29084         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
29085         * doc/posix-functions/fopen.texi: Likewise.
29086         Reported by Eric Blake.
29087
29088 2008-09-23  Eric Blake  <ebb9@byu.net>
29089
29090         c-stack: avoid compiler optimizations when provoking overflow
29091         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
29092         recursion harder to optimize, to ensure a stack overflow occurs.
29093         * tests/test-c-stack.c (recurse): Likewise.
29094         Borrowed from libsigsegv.
29095
29096         c-stack: work around Irix sigaltstack bug
29097         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
29098         whether sigaltstack uses wrong end of stack_t (copied in part from
29099         libsigsegv).
29100         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
29101         Irix bug, without requiring an over-allocation.
29102         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
29103         bug.
29104
29105         fopen: document mingw bug on directories
29106         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
29107         not allowing a stream visiting a directory, even though reading
29108         from such a stream is not portable.
29109
29110 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29111
29112         * lib/poll.c: Rewrite.
29113         * modules/poll: Depend on alloca.
29114
29115 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29116
29117         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
29118         instead define prototypes for a full set of wrappers.  Ensure
29119         that Cygwin does not use the compatibility code, which is only
29120         for MinGW.
29121         * lib/winsock.c: New.
29122         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
29123         * modules/sys_socket: Add lib/winsock.c.
29124
29125         * modules/poll-tests: Add errno and perror.
29126         * tests/test-poll.c: Use ioctl, not ioctlsocket.
29127
29128 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29129
29130         * tests/test-poll.c: Downgrade minimum needed Winsock version.
29131
29132 2008-09-23  Bruno Haible  <bruno@clisp.org>
29133
29134         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
29135         * doc/glibc-functions/*: Likewise.
29136
29137 2008-09-23  Simon Josefsson  <simon@josefsson.org>
29138
29139         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
29140         success.
29141
29142 2008-09-22  Eric Blake  <ebb9@byu.net>
29143             Bruno Haible  <bruno@clisp.org>
29144
29145         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
29146         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
29147         supply %A but mishandle pseudo-NaN.
29148         Reported by Simon Josefsson.
29149
29150 2008-09-21  Bruno Haible  <bruno@clisp.org>
29151
29152         * tests/test-lock.c (main): Tweak skip message.
29153         * tests/test-tls.c (main): Likewise.
29154
29155 2008-09-21  Bruno Haible  <bruno@clisp.org>
29156
29157         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
29158         whether 'struct sigaction' has sa_sigaction here...
29159         (gl_PREREQ_SIG_HANDLER_H): ... not here.
29160         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
29161
29162 2008-09-21  Bruno Haible  <bruno@clisp.org>
29163
29164         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
29165         section.
29166         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
29167         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
29168         the new section.
29169         (Support for obsolete systems lacking POSIX:2001): New section.
29170         (String handling <string.h>): Move strdup to the new section.
29171         Suggested by Simon Josefsson and Paolo Bonzini.
29172
29173 2008-09-21  Bruno Haible  <bruno@clisp.org>
29174
29175         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
29176         exponents in %e and %g results on 'long double'. Needed for mingw's
29177         improved *printf functions.
29178         * tests/test-vasprintf-posix.c (test_function): Likewise.
29179         * tests/test-snprintf-posix.h (test_function): Likewise.
29180         * tests/test-sprintf-posix.h (test_function): Likewise.
29181         Reported by Eric Blake.
29182
29183 2008-09-21  Bruno Haible  <bruno@clisp.org>
29184
29185         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
29186         * tests/test-sprintf-posix.h (test_function): Likewise.
29187
29188 2008-09-21  Bruno Haible  <bruno@clisp.org>
29189
29190         * modules/getpass (Depends-on): Add strdup-posix.
29191
29192         New module 'strdup-posix'.
29193         * modules/strdup-posix: New file.
29194         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
29195         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
29196         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29197         REPLACE_STRDUP.
29198         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
29199         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
29200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29201         strdup-posix.
29202
29203         * modules/strdup (Depends-on): Remove malloc-posix.
29204
29205 2008-09-20  Bruno Haible  <bruno@clisp.org>
29206
29207         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
29208         Wildenhues.
29209
29210 2008-09-20  Bruno Haible  <bruno@clisp.org>
29211
29212         Ensure that wint_t gets defined on IRIX 5.3.
29213         * lib/wchar.in.h (wint_t): Define if not defined by the system.
29214         * lib/wctype.in.h (wint_t): Likewise.
29215         (__wctype_wint_t): Remove type.
29216         (isw*): Use wint_t instead of __wctype_wint_t.
29217         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
29218         * modules/wchar (Files): Add m4/wint_t.m4.
29219         (Makefile.am): Substitute HAVE_WINT_T.
29220         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
29221         * tests/test-wctype.c: Check that wint_t is defined.
29222         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
29223         * doc/posix-headers/wctype.texi: Likewise.
29224         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29225
29226 2008-09-18  Bruno Haible  <bruno@clisp.org>
29227
29228         * gnulib-tool (func_exit): Update comment.
29229
29230 2008-09-18  Simon Josefsson  <simon@josefsson.org>
29231
29232         * modules/getaddrinfo (Depends-on): Remove strdup, this module
29233         assumes strdup exists and does not depend on strdup to return
29234         ENOMEM on out of memory conditions.
29235
29236 2008-09-18  Bruno Haible  <bruno@clisp.org>
29237
29238         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
29239         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
29240         digits for the exponent.
29241
29242 2008-09-18  Jim Meyering  <meyering@redhat.com>
29243             Bruno Haible  <bruno@clisp.org>
29244
29245         * lib/vasnprintf.c (decimal_point_char): Define also if
29246         NEED_PRINTF_INFINITE_LONG_DOUBLE.
29247
29248 2008-09-16  Bruno Haible  <bruno@clisp.org>
29249         and Eric Blake  <ebb9@byu.net>
29250
29251         vasnprintf: support Irix 5.3
29252         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
29253         that mishandle long double infinity.
29254         Reported by Tom G. Christensen.
29255
29256 2008-09-16  Bruno Haible  <bruno@clisp.org>
29257
29258         * doc/glibc-functions/scandir.texi: Mention the function is missing on
29259         Solaris 9.
29260         * doc/glibc-functions/alphasort.texi: Likewise.
29261         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
29262
29263 2008-09-16  Jim Meyering  <meyering@redhat.com>
29264
29265         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
29266         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
29267         a umask modification leak out of a subshell.  Otherwise, the
29268         opensolaris /bin/sh would be accepted and thus cause unwarranted
29269         failures in the coreutils test suite.
29270
29271 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
29272
29273         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
29274         to succeed.
29275
29276 2008-09-16  Jim Meyering  <meyering@redhat.com>
29277
29278         avoid spurious test failure when library is built without ACL support
29279         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
29280         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
29281         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
29282         * tests/test-copy-acl.sh: Likewise.
29283
29284 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29285
29286         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
29287         based on character occurrence counts.
29288
29289 2008-09-15  Eric Blake  <ebb9@byu.net>
29290
29291         tests: avoid some compiler warnings
29292         * tests/test-memchr.c (main): Pass NULL indirectly.
29293         * tests/test-closein.c (main): Avoid unused variable.
29294
29295 2008-09-15  Bruno Haible  <bruno@clisp.org>
29296
29297         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
29298         are missing on OpenBSD 4.0 individually.
29299         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29300
29301 2008-09-15  Bruno Haible  <bruno@clisp.org>
29302
29303         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
29304         * doc/posix-functions/strerror.texi: Mention also Cygwin.
29305         * doc/posix-functions/perror.texi: Likewise.
29306         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
29307         is missing.
29308         Reported by Eric Blake.
29309
29310         * lib/errno.in.h: Use replacement values >= 2000.
29311         Reported by Eric Blake.
29312
29313 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29314
29315         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
29316         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
29317         limit.
29318         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
29319         compareseq was aborted.
29320
29321 2008-09-14  Bruno Haible  <bruno@clisp.org>
29322
29323         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
29324         yvec_edit_count.
29325         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
29326         (fstrcmp_bounded): Simplify result computation accordingly.
29327
29328 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29329
29330         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
29331         (fstrcmp): Define in terms of fstrcmp_bounded.
29332         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
29333         lower_bound argument.
29334         Return quickly if the result is certainly < lower_bound.
29335         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
29336
29337 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29338
29339         * lib/diffseq.h (EARLY_ABORT): New macro.
29340         (compareseq): Change return type to bool. Return true when EARLY_ABORT
29341         evaluates to true.
29342
29343 2008-09-14  Bruno Haible  <bruno@clisp.org>
29344
29345         * modules/perror-tests: New file.
29346         * tests/test-perror.sh: New file.
29347         * tests/test-perror.c: New file.
29348
29349         New module 'perror'.
29350         * lib/stdio.in.h (perror): New declaration.
29351         * lib/perror.c: New file.
29352         * m4/perror.m4: New file.
29353         * modules/perror: New file.
29354         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
29355         * doc/posix-functions/perror.texi: Mention the perror module.
29356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
29357         REPLACE_PERROR.
29358         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
29359         REPLACE_PERROR.
29360
29361 2008-09-14  Bruno Haible  <bruno@clisp.org>
29362
29363         * modules/stdio (Makefile.am): Reorder to match the order in
29364         lib/stdio.in.h.
29365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29366
29367 2008-09-13  Bruno Haible  <bruno@clisp.org>
29368
29369         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
29370
29371 2008-09-13  Bruno Haible  <bruno@clisp.org>
29372
29373         Extend strerror to cover the added errno values.
29374         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
29375         (rpl_strerror): Provide error messages for the added errno values and
29376         for the WSA* values.
29377         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
29378         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
29379         strerror.
29380         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
29381         * modules/strerror (Depends-on): Add errno.
29382         * doc/posix-functions/strerror.texi: Document the change.
29383         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
29384         and EOVERFLOW.
29385
29386 2008-09-13  Bruno Haible  <bruno@clisp.org>
29387
29388         * modules/EOVERFLOW: Remove file.
29389         * m4/eoverflow.m4: Remove file.
29390         * modules/EOVERFLOW-tests: Remove file.
29391         * tests/test-EOVERFLOW.c: Remove file.
29392         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
29393         * modules/ftell (Depends-on): Likewise.
29394         * modules/getdelim (Depends-on): Likewise.
29395         * modules/getugroups (Depends-on): Likewise.
29396         * modules/poll (Depends-on): Likewise.
29397         * modules/snprintf (Depends-on): Likewise.
29398         * modules/sprintf-posix (Depends-on): Likewise.
29399         * modules/vasnprintf (Depends-on): Likewise.
29400         * modules/vasprintf (Depends-on): Likewise.
29401         * modules/vfprintf-posix (Depends-on): Likewise.
29402         * modules/vsnprintf (Depends-on): Likewise.
29403         * modules/vsprintf-posix (Depends-on): Likewise.
29404         * modules/xvasprintf (Depends-on): Likewise.
29405         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29406         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
29407         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
29408         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
29409         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29410         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
29411         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
29412         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
29413         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29414         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
29415         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
29416         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
29417         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29418         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
29419         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
29420         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
29421         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29422         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
29423         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
29424         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
29425         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29426         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
29427         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
29428         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
29429         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
29430         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29431         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
29432         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
29433         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
29434         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
29435         * MODULES.html.sh: Remove EOVERFLOW.
29436         * NEWS: Mention the change.
29437
29438 2008-09-13  Bruno Haible  <bruno@clisp.org>
29439
29440         * modules/errno-tests: New file.
29441         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
29442
29443         * lib/errno.in.h: New file.
29444         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
29445         * modules/errno: New file.
29446         * doc/posix-headers/errno.texi: Update documentation.
29447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
29448
29449 2008-09-13  Bruno Haible  <bruno@clisp.org>
29450
29451         * tests/test-poll.c: Use #if for native Windows, rather than testing
29452         __MSVCRT__.
29453
29454 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29455             Bruno Haible  <bruno@clisp.org>
29456
29457         * lib/glob.c: Don't include <pwd.h> on native Windows.
29458         (WINDOWS32): New macro.
29459         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
29460
29461 2008-09-13  Bruno Haible  <bruno@clisp.org>
29462
29463         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
29464         (ETIMEDOUT): Remove macro.
29465         (glthread_cond_timedwait_multithreaded): New declaration.
29466         (glthread_cond_timedwait): Use it.
29467         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
29468         (glthread_cond_timedwait_multithreaded): New function.
29469
29470 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29471
29472         * modules/poll-tests: Do not check for io.h.
29473         * tests/test-poll.c: Check for __MSVCRT__ instead.
29474
29475 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29476
29477         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
29478         * modules/poll-tests: Add inet_pton, stdbool, sockets.
29479         * tests/test-poll.c: Use them.  Use _pipe on Windows.
29480
29481 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29482
29483         * modules/poll-tests: New.
29484         * tests/test-poll.c: New.
29485
29486 2008-09-12  Eric Blake  <ebb9@byu.net>
29487
29488         frexp: test for NetBSD failure on -0.0
29489         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
29490         not all, bugs from NetBSD 3.0 have been fixed.
29491         * doc/posix-functions/frexp.texi (frexp): Document bug.
29492         Reported by Thomas Klausner.
29493
29494         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
29495         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
29496         literal -0.0.
29497         Reported by Jonathan C. Patschke <jp@centtech.com>.
29498
29499 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29500
29501         * lib/glthread/cond.h: Use dummy implementation also if
29502         USE_WIN32_THREADS.
29503
29504 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29505
29506         * modules/fnmatch-posix (License): Change to LGPLv2+.
29507         * modules/fnmatch-gnu (License): Likewise.
29508
29509 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29510
29511         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
29512
29513 2008-09-11  Jim Meyering  <meyering@redhat.com>
29514
29515         * users.txt: Add gtk-vnc.
29516
29517 2008-09-08  Simon Josefsson  <simon@josefsson.org>
29518
29519         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
29520         rotate amounts.
29521
29522         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
29523         required for 16-bit and 8-bit rotates.
29524         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
29525         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
29526         UINT8_MAX instead of hard-coded constants.
29527         Suggested by Paul Eggert.
29528
29529 2008-09-07  Bruno Haible  <bruno@clisp.org>
29530
29531         * tests/test-striconveh.c (main): Check behaviour when converting from
29532         UTF-7.
29533
29534         Make striconveh work better with stateful encodings.
29535         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
29536         that iconv does not increment the inptr when returning -1/EINVAL.
29537
29538 2008-09-07  Bruno Haible  <bruno@clisp.org>
29539
29540         * build-aux/config.rpath: Update according to libtool-2.2.6.
29541         * build-aux/config.libpath: Likewise.
29542
29543 2008-09-06  Bruno Haible  <bruno@clisp.org>
29544
29545         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
29546         * lib/freadptr.c (freadptr): Likewise.
29547         * lib/freadseek.c (freadptrinc): Likewise.
29548         Reported by Simon Josefsson.
29549
29550 2008-09-06  Bruno Haible  <bruno@clisp.org>
29551
29552         * modules/freadptr (License): Change to LGPLv2+.
29553         * modules/freadseek (License): Likewise.
29554         Suggested by Eric Blake.
29555
29556         * modules/memchr2 (License): Change to LGPLv2+.
29557         Approved by Eric Blake.
29558
29559 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29560             Bruno Haible  <bruno@clisp.org>
29561
29562         Make gnulib-tool work with native 'sed' on AIX.
29563         * gnulib-tool (sed_noop): New variable.
29564         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
29565         func_add_or_update, func_create_testdir): Use it to initialize sed
29566         script variables.
29567         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29568
29569 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
29570             Bruno Haible  <bruno@clisp.org>
29571
29572         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
29573         also works after #include directives.
29574
29575 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
29576
29577         getdate.y: reject an out-of-range timezone value
29578         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
29579         the range [-24...+24].  When specified with only one or two digits,
29580         * tests/test-getdate.c: Tests for the fix.
29581         * doc/getdate.texi: Document this change.
29582
29583 2008-09-03  Bruno Haible  <bruno@clisp.org>
29584
29585         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
29586
29587 2008-09-02  Simon Josefsson  <simon@josefsson.org>
29588
29589         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
29590         <bruce.korb@gmail.com> with ideas from Ben Pfaff
29591         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
29592         Blake <ebb9@byu.net>.
29593
29594         * tests/test-bitrotate.c: Add more test vectors.
29595
29596 2008-09-02  Eric Blake  <ebb9@byu.net>
29597
29598         vasnprintf-posix: handle large precision via %.*d
29599         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
29600         when handling it ourselves.
29601         * tests/test-vasnprintf-posix.c (test_function): Add test.
29602         * tests/test-snprintf-posix.h (test_function): Likewise.
29603         * tests/test-sprintf-posix.h (test_function): Likewise.
29604         * tests/test-vasprintf-posix.c (test_function): Likewise.
29605         Reported by Alain Guibert.
29606
29607 2008-09-01  Eric Blake  <ebb9@byu.net>
29608
29609         c-stack: make configure-time check more robust
29610         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
29611         successful sigaction call.
29612         Reported by Tom G. Christensen.
29613
29614 2008-09-01  Bruno Haible  <bruno@clisp.org>
29615
29616         New module 'findprog-lgpl'.
29617         * modules/findprog-lgpl: New file.
29618         * lib/findprog-lgpl.c: New file.
29619         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
29620         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
29621         to decide whether to use strdup or xstrdup, concatenated_filename or
29622         xconcatenated_filename.
29623
29624 2008-09-01  Bruno Haible  <bruno@clisp.org>
29625
29626         Split module 'concat-filename' into 'concat-filename' (LGPL) and
29627         'xconcat-filename' (GPL).
29628         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
29629         (License): Change to LGPLv2+.
29630         * modules/xconcat-filename: New file.
29631         * lib/concat-filename.h (concatenated_filename): Change specification.
29632         (xconcatenated_filename): New declaration.
29633         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
29634         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
29635         memory situations.
29636         * lib/xconcat-filename.c: New file.
29637         * NEWS: Mention the change.
29638         * lib/findprog.c: Include concat-filename.h, not filename.h.
29639         (find_in_path): Use xconcatenated_filename instead of
29640         concatenated_filename.
29641         * lib/javacomp.c: Include concat-filename.h, not filename.h.
29642         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
29643         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
29644         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
29645         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
29646         instead of concatenated_filename.
29647         * lib/javaexec.c: Include concat-filename.h, not filename.h.
29648         (execute_java_class): Use xconcatenated_filename instead of
29649         concatenated_filename.
29650         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
29651         * modules/javacomp (Depends-on): Likewise.
29652         * modules/javaexec (Depends-on): Likewise.
29653
29654 2008-09-01  Bruno Haible  <bruno@clisp.org>
29655
29656         Split module 'filename' into 'filename' and 'concat-filename'.
29657         * modules/filename: Keep only lib/filename.h.
29658         (License): Change to LGPLv2+.
29659         * modules/concat-filename: New file, extracted from modules/filename.
29660         * lib/filename.h (concatenated_filename): Remove declaration.
29661         * lib/concat-filename.h: New file, extracted from lib/filename.h.
29662         * lib/concat-filename.c: Include concat-filename.h.
29663         * NEWS: Mention the change.
29664
29665 2008-09-01  Simon Josefsson  <simon@josefsson.org>
29666
29667         * lib/bitrotate.h (rotl8, rotr8): Add.
29668
29669         * modules/bitrotate (configure.ac): Need
29670         AC_REQUIRE([AC_C_INLINE]).
29671         (Description): Mention stdint.h.  Reported by Bruno Haible
29672         <bruno@clisp.org>.
29673
29674         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
29675         Paolo Bonzini <bonzini@gnu.org>.
29676
29677 2008-08-31  Bruno Haible  <bruno@clisp.org>
29678
29679         Assume Solaris specific bi-arch conventions on Solaris systems.
29680         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
29681         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
29682         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
29683         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
29684         like acl_libdirstem.
29685         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
29686         acl_libdirstem.
29687         * NEWS: Mention the change.
29688         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
29689
29690 2008-08-31  Jim Meyering  <meyering@redhat.com>
29691
29692         * lib/strftime.h: Add comments describing the two added arguments.
29693
29694         remove duplicate #include directives
29695         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
29696         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
29697
29698 2008-08-31  Bruno Haible  <bruno@clisp.org>
29699
29700         New module 'sigpipe-die'.
29701         * modules/sigpipe-die: New file.
29702         * lib/sigpipe-die.h: New file.
29703         * lib/sigpipe-die.c: New file.
29704         * MODULES.html.sh (Signal handling): Add sigpipe-die.
29705
29706 2008-08-31  Bruno Haible  <bruno@clisp.org>
29707
29708         Don't override previously installed signal handlers.
29709         * lib/fatal-signal.c (saved_sigactions): New variable.
29710         (uninstall_handlers): Reset the signal to the saved handler, not
29711         to SIG_DFL (except when ignored).
29712         (install_handlers): Save the previous handlers.
29713
29714 2008-08-30  Bruno Haible  <bruno@clisp.org>
29715
29716         * gnulib-tool (func_reset_sigpipe): New function.
29717         (func_get_automake_snippet, func_modules_transitive_closure,
29718         func_import): Invoke it before a join command that reads from stdin,
29719         to avoid "echo: write error: Broken pipe" error messages on stderr.
29720         Reported by Sam Steingold <sds@gnu.org>.
29721
29722 2008-08-30  Bruno Haible  <bruno@clisp.org>
29723
29724         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
29725         Code copied from m4/open.m4.
29726         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
29727         access and the filename ends in a slash. Code copied from lib/open.c.
29728         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
29729         * tests/test-fopen.c (main): Check against bug with trailing slash.
29730
29731 2008-08-29  Bruno Haible  <bruno@clisp.org>
29732
29733         Avoid some "gcc -pedantic" warnings.
29734         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
29735         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
29736         * lib/dirent.in.h: Likewise.
29737         * lib/fcntl.in.h: Likewise.
29738         * lib/float.in.h: Likewise.
29739         * lib/iconv.in.h: Likewise.
29740         * lib/inttypes.in.h: Likewise.
29741         * lib/locale.in.h: Likewise.
29742         * lib/math.in.h: Likewise.
29743         * lib/netinet_in.in.h: Likewise.
29744         * lib/search.in.h: Likewise.
29745         * lib/signal.in.h: Likewise.
29746         * lib/stdarg.in.h: Likewise.
29747         * lib/stdint.in.h: Likewise.
29748         * lib/stdio.in.h: Likewise.
29749         * lib/stdlib.in.h: Likewise.
29750         * lib/string.in.h: Likewise.
29751         * lib/strings.in.h: Likewise.
29752         * lib/sys_select.in.h: Likewise.
29753         * lib/sys_socket.in.h: Likewise.
29754         * lib/sys_stat.in.h: Likewise.
29755         * lib/sys_time.in.h: Likewise.
29756         * lib/sysexits.in.h: Likewise.
29757         * lib/time.in.h: Likewise.
29758         * lib/unistd.in.h: Likewise.
29759         * lib/wchar.in.h: Likewise.
29760         * lib/wctype.in.h: Likewise.
29761         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
29762         * modules/fchdir (Makefile.am): Likewise.
29763         * modules/fcntl (Makefile.am): Likewise.
29764         * modules/float (Makefile.am): Likewise.
29765         * modules/iconv_open (Makefile.am): Likewise.
29766         * modules/inttypes (Makefile.am): Likewise.
29767         * modules/locale (Makefile.am): Likewise.
29768         * modules/math (Makefile.am): Likewise.
29769         * modules/netinet_in (Makefile.am): Likewise.
29770         * modules/search (Makefile.am): Likewise.
29771         * modules/signal (Makefile.am): Likewise.
29772         * modules/stdarg (Makefile.am): Likewise.
29773         * modules/stdint (Makefile.am): Likewise.
29774         * modules/stdio (Makefile.am): Likewise.
29775         * modules/stdlib (Makefile.am): Likewise.
29776         * modules/string (Makefile.am): Likewise.
29777         * modules/strings (Makefile.am): Likewise.
29778         * modules/sys_select (Makefile.am): Likewise.
29779         * modules/sys_socket (Makefile.am): Likewise.
29780         * modules/sys_stat (Makefile.am): Likewise.
29781         * modules/sys_time (Makefile.am): Likewise.
29782         * modules/sysexits (Makefile.am): Likewise.
29783         * modules/time (Makefile.am): Likewise.
29784         * modules/unistd (Makefile.am): Likewise.
29785         * modules/wchar (Makefile.am): Likewise.
29786         * modules/wctype (Makefile.am): Likewise.
29787         Reported by Reuben Thomas <rrt@sc3d.org>.
29788
29789 2008-08-29  Bruno Haible  <bruno@clisp.org>
29790
29791         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
29792         any more.
29793
29794 2008-08-29  Simon Josefsson  <simon@josefsson.org>
29795
29796         * MODULES.html.sh (Misc): Add bitrotate.
29797
29798         * modules/bitrotate: New file.
29799
29800         * lib/bitrotate.h: New file.
29801
29802         * modules/bitrotate-tests: New file.
29803
29804         * tests/test-bitrotate.c: New file.
29805
29806         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
29807         on the bitrotate module.
29808
29809         * lib/arctwo.c: Use new bitrotate module.
29810
29811 2008-08-29  Jim Meyering  <meyering@redhat.com>
29812
29813         bootstrap: merge changes from coreutils
29814         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
29815         of copied files.  Remove a kludge, now that this is fixed.
29816         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
29817         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
29818         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
29819
29820 2008-08-29  Bruno Haible  <bruno@clisp.org>
29821
29822         * MODULES.html.sh: Remove --cvs-urls option.
29823
29824 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
29825
29826         maint.mk: adjust to file name change
29827         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
29828
29829 2008-08-28  Jim Meyering  <meyering@redhat.com>
29830
29831         * modules/getndelim2 (License): Relicense to LGPLv2+.
29832         Approved by Richard Stallman for the version of 1995, and by
29833         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
29834
29835 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
29836
29837         * lib/getdelim.c (flockfile, funlockfile): Make all of them
29838         dummy if one is not available.  Do not touch them if
29839         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
29840         (getc_maybe_unlocked): New.
29841         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
29842
29843 2008-08-26  Eric Blake  <ebb9@byu.net>
29844
29845         doc/INSTALL: resync from autoconf
29846         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
29847         (INSTALL_PRELUDE): Delete; this is done more efficiently by
29848         moving...
29849         * install.texi [!autoconf]: ...here.  Resync from autoconf.
29850         * INSTALL: Regenerate.
29851         * INSTALL.ISO: New file.
29852         * INSTALL.UTF-8: Likewise.
29853
29854 2008-08-26  Jim Meyering  <meyering@redhat.com>
29855
29856         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
29857         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
29858         these definitions conditional, so that they may be overridden, too.
29859
29860 2008-08-26  Bruno Haible  <bruno@clisp.org>
29861
29862         Generate INSTALL file variants with prettier quotes.
29863         * doc/Makefile (INSTALL_PRELUDE): New macro.
29864         (INSTALL): Use it.
29865         (INSTALL.ISO, INSTALL.UTF-8): New rules.
29866
29867 2008-08-26  Bruno Haible  <bruno@clisp.org>
29868
29869         Run makeinfo in an English locale.
29870         * doc/Makefile (MAKEINFO): New variable.
29871
29872 2008-08-26  Bruno Haible  <bruno@clisp.org>
29873
29874         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
29875         Suggested by Eric Blake.
29876
29877 2008-08-25  Bruno Haible  <bruno@clisp.org>
29878
29879         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
29880
29881 2008-08-25  Eric Blake  <ebb9@byu.net>
29882
29883         c-stack: test that stack overflow can be caught
29884         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
29885         that platform allows handling stack overflow; at least OS/2 EMX
29886         has sigaltstack, but crashes before transferring control to
29887         handler on stack overflow.
29888         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
29889         check for HAVE_STACK_OVERFLOW_HANDLING.
29890         Reported by Elbert Pol.
29891
29892 2008-08-25  Bruno Haible  <bruno@clisp.org>
29893
29894         * doc/posix-functions/strftime.texi: Fix description of strftime
29895         module.
29896
29897 2008-08-24  Bruno Haible  <bruno@clisp.org>
29898
29899         * tests/uniwidth/test-uc_width2.c: New file.
29900         * tests/uniwidth/test-uc_width2.sh: New file.
29901         * modules/uniwidth/width-tests (Files): Add the new files.
29902         (TESTS): Add uniwidth/test-uc_width2.sh.
29903         (TESTS_ENVIRONMENT): New variable.
29904         (check_PROGRAMS): Add test-uc_width2.
29905         (test_uc_width2_SOURCES): New variable.
29906
29907         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
29908         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
29909         not 0x00AB.
29910         Reported by Alexander V. Lukyanov <lav@netis.ru>.
29911
29912 2008-08-22  Eric Blake  <ebb9@byu.net>
29913
29914         test-lock, test-tls: mention why a test is skipped
29915         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
29916         skipped.
29917         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
29918
29919         count-one-bits: relax license
29920         * modules/count-one-bits (License): Relicense to LGPLv2+.
29921         Suggested by Ludovic Courtès, approved by Ben Pfaff.
29922
29923 2008-08-22  Andreas Schwab  <schwab@suse.de>
29924
29925         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29926         Remove spurious space in assignment.
29927
29928 2008-08-21  Simon Josefsson  <simon@josefsson.org>
29929
29930         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
29931         Paul Eggert <eggert@CS.UCLA.EDU>.
29932
29933 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
29934
29935         * modules/gettext: Add m4/threadlib.m4.
29936
29937 2008-08-19  Eric Blake  <ebb9@byu.net>
29938
29939         test-c-stack: fix compilation failure on FreeBSD 5.0
29940         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
29941         headers before <sys/resource.h>.
29942         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
29943         the bug.
29944         Reported by Nelson H. F. Beebe.
29945
29946         strverscmp: migrate from "strverscmp.h" to <string.h>
29947         * modules/string (Makefile.am): Add new hooks.
29948         * modules/strverscmp (Files): Remove strverscmp.h.
29949         (Depends-on): Add string.
29950         (configure.ac): Add indicator.
29951         (Include): Mention new header.
29952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
29953         defaults.
29954         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
29955         results.
29956         * lib/strverscmp.h: Delete.
29957         * lib/string.in.h (strverscmp): Provide declaration, when needed.
29958         * tests/test-strverscmp.c (includes): Adjust client.
29959         * lib/check-version.c (includes): Likewise.
29960         * NEWS: Document the change.
29961
29962         strverscmp: add unit test
29963         * modules/strverscmp-tests: New file.
29964         * tests/test-strverscmp.c: Likewise.
29965
29966 2008-08-19  Simon Josefsson  <simon@josefsson.org>
29967
29968         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
29969         regarding Windows crypto stuff, from Mono.
29970
29971 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
29972
29973         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
29974         if present, for intel RND.  Return error on failures.
29975
29976 2008-08-18  Ben Pfaff  <blp@gnu.org>
29977
29978         gitlog-to-changelog: give better diagnostic for failed pipe-open
29979         * build-aux/gitlog-to-changelog: Improve error message: suggest
29980         that the version of Git may be too old.
29981
29982 2008-08-18  Simon Josefsson  <simon@josefsson.org>
29983
29984         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
29985         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
29986
29987 2008-08-18  Bruno Haible  <bruno@clisp.org>
29988
29989         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
29990         pthread_in_use().
29991
29992 2008-08-18  Bruno Haible  <bruno@clisp.org>
29993
29994         * lib/glthread/threadlib.c: Include <pthread.h>.
29995
29996 2008-08-18  Bruno Haible  <bruno@clisp.org>
29997
29998         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
29999         glthread_recursive_lock_* macros.
30000         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
30001         Fix syntax error.
30002
30003 2008-08-18  Bruno Haible  <bruno@clisp.org>
30004
30005         * lib/glthread/thread.c: Avoid forcing a context switch right after
30006         thread creation.
30007
30008 2008-08-17  Bruno Haible  <bruno@clisp.org>
30009
30010         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
30011         * lib/glthread/thread.h: Provide Win32 specific implementation.
30012         * modules/thread (Files): Add lib/glthread/thread.c.
30013         (Depends-on): Add lock.
30014         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
30015
30016 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30017
30018         New module 'yield'.
30019         * modules/yield: New file.
30020         * lib/glthread/yield.h: New file.
30021         * m4/yield.m4: New file.
30022         * MODULES.html.sh (Multithreading): Add yield.
30023
30024 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30025
30026         New module 'thread'.
30027         * modules/thread: New file.
30028         * lib/glthread/thread.h: New file.
30029         * m4/thread.m4: New file.
30030         * MODULES.html.sh (Multithreading): Add thread.
30031
30032 2008-08-17  Bruno Haible  <bruno@clisp.org>
30033
30034         * lib/glthread/lock.h: Include <stdlib.h> always.
30035         * lib/glthread/tls.h: Likewise.
30036         * lib/glthread/cond.h: Likewise.
30037
30038 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30039
30040         New module 'cond'.
30041         * modules/cond: New file.
30042         * lib/glthread/cond.h: New file.
30043         * lib/glthread/cond.c: New file.
30044         * m4/cond.m4: New file.
30045         * MODULES.html.sh (Multithreading): Add cond.
30046
30047 2008-08-16  Eric Blake  <ebb9@byu.net>
30048
30049         c-stack: fix regression on Irix 5.3 from 2008-06-21
30050         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
30051         sa_sigaction...
30052         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
30053         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
30054         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
30055         * modules/signal (Makefile.am): Use the value.
30056         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
30057         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
30058         * doc/posix-headers/signal.texi (signal.h): Document this
30059         portability issue.
30060         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
30061         Reported by Tom G. Christensen.
30062
30063 2008-08-17  Bruno Haible  <bruno@clisp.org>
30064
30065         New module 'threadlib'.
30066         * modules/threadlib: New file.
30067         * lib/glthread/threadlib.c: New file, extracted from
30068         lib/glthread/lock.c.
30069         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
30070         functions.
30071         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
30072         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
30073         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
30074         macros.
30075         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
30076         (gl_DISABLE_THREADS): Remove macro.
30077         * modules/lock (Files): Remove build-aux/config.rpath.
30078         (Depends-on): Remove havelib. Add threadlib.
30079         (configure.ac-early): Remove section.
30080         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
30081         * modules/tls (Depends-on): Remove lock. Add threadlib.
30082         (Link): New section, copied from threadlib.
30083         * MODULES.html.sh (Multithreading): Add threadlib.
30084
30085 2008-08-14  Bruno Haible  <bruno@clisp.org>
30086
30087         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
30088         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
30089         glthread_rwlock_unlock, glthread_rwlock_destroy,
30090         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
30091         glthread_recursive_lock_destroy): Define as macros always.
30092         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
30093         glthread_lock_lock.
30094         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
30095         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
30096         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
30097         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
30098         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
30099         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
30100         (glthread_recursive_lock_lock_func): Renamed from
30101         glthread_recursive_lock_lock.
30102         (glthread_recursive_lock_unlock_func): Renamed from
30103         glthread_recursive_lock_unlock.
30104         (glthread_recursive_lock_destroy_func): Renamed from
30105         glthread_recursive_lock_destroy.
30106
30107 2008-08-14  Bruno Haible  <bruno@clisp.org>
30108
30109         * lib/glthread/lock.h: Renamed from lib/lock.h.
30110         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
30111         * lib/glthread/tls.h: Renamed from lib/tls.h.
30112         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
30113         * lib/fstrcmp.c: Update includes.
30114         * lib/strsignal.c: Update includes.
30115         * modules/lock (Files, Makefile.am): Update.
30116         (Include): Change to "glthread/lock.h".
30117         * modules/tls (Files, Makefile.am): Update.
30118         (Include): Change to "glthread/tls.h".
30119         * tests/test-lock.c: Update includes.
30120         * tests/test-tls.c: Update includes.
30121         * NEWS: Mention the renamed header files.
30122
30123 2008-08-11  Jim Meyering  <meyering@redhat.com>
30124
30125         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
30126
30127 2008-08-11  Eric Blake  <ebb9@byu.net>
30128
30129         test-c-stack: avoid C99-ism
30130         * tests/test-c-stack.c (main): Fix whitespace, move declaration
30131         before statement.
30132         Reported by Alain Guibert.
30133
30134 2008-08-10  Jim Meyering  <meyering@redhat.com>
30135
30136         ensure that return value of uinttostr et al are not ignored
30137         * lib/inttostr.h (__GNUC_PREREQ): Define.
30138         (__attribute_warn_unused_result__): Define.
30139         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
30140
30141 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
30142
30143         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
30144         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
30145
30146 2008-08-07  Jim Meyering  <meyering@redhat.com>
30147
30148         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
30149
30150         * modules/mkstemp (License): Relicense under LGPLv2+.
30151         * modules/tempname (License): Likewise.
30152
30153 2008-08-06  Bruno Haible  <bruno@clisp.org>
30154
30155         * lib/poll.c (poll): Further micro-optimization.
30156
30157 2008-08-06  Jim Meyering  <meyering@redhat.com>
30158
30159         inet_pton.c: use locale-independent tolower
30160         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
30161         (inet_pton6): Use c_tolower rather than tolower.
30162         * modules/inet_pton (Depends-on): Add c-ctype.
30163
30164 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
30165
30166         * lib/poll.c (poll): Avoid division when timeout is 0, cache
30167         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
30168
30169 2008-08-06  Jim Meyering  <meyering@redhat.com>
30170
30171         * modules/inet_pton (License): Relicense under LGPLv2+.
30172
30173 2008-08-03  Bruno Haible  <bruno@clisp.org>
30174
30175         Additional non-aborting API for lock and tls.
30176         * lib/lock.h: Include <errno.h>.
30177         (glthread_lock_init): New macro/function.
30178         (gl_lock_init): Define as wrapper around glthread_lock_init.
30179         (glthread_lock_lock): New macro/function.
30180         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
30181         (glthread_lock_unlock): New macro/function.
30182         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
30183         (glthread_lock_destroy): New macro/function.
30184         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
30185         (glthread_rwlock_init): New macro/function.
30186         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
30187         (glthread_rwlock_rdlock): New macro/function.
30188         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
30189         (glthread_rwlock_wrlock): New macro/function.
30190         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
30191         (glthread_rwlock_unlock): New macro/function.
30192         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
30193         (glthread_rwlock_destroy): New macro/function.
30194         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
30195         (glthread_recursive_lock_init): New macro/function.
30196         (gl_recursive_lock_init): Define as wrapper around
30197         glthread_recursive_lock_init.
30198         (glthread_recursive_lock_lock): New macro/function.
30199         (gl_recursive_lock_lock): Define as wrapper around
30200         glthread_recursive_lock_lock.
30201         (glthread_recursive_lock_unlock): New macro/function.
30202         (gl_recursive_lock_unlock): Define as wrapper around
30203         glthread_recursive_lock_unlock.
30204         (glthread_recursive_lock_destroy): New macro/function.
30205         (gl_recursive_lock_destroy): Define as wrapper around
30206         glthread_recursive_lock_destroy.
30207         (glthread_once): New macro/function.
30208         (gl_once): Define as wrapper around glthread_once.
30209         Update function declarations.
30210         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
30211         glthread_rwlock_init. Return error code.
30212         (glthread_rwlock_rdlock_multithreaded): Renamed from
30213         glthread_rwlock_rdlock. Return error code.
30214         (glthread_rwlock_wrlock_multithreaded): Renamed from
30215         glthread_rwlock_wrlock. Return error code.
30216         (glthread_rwlock_unlock_multithreaded): Renamed from
30217         glthread_rwlock_unlock. Return error code.
30218         (glthread_rwlock_destroy_multithreaded): Renamed from
30219         glthread_rwlock_destroy. Return error code.
30220         (glthread_recursive_lock_init_multithreaded): Renamed from
30221         glthread_recursive_lock_init. Return error code.
30222         (glthread_recursive_lock_lock_multithreaded): Renamed from
30223         glthread_recursive_lock_lock. Return error code.
30224         (glthread_recursive_lock_unlock_multithreaded): Renamed from
30225         glthread_recursive_lock_unlock. Return error code.
30226         (glthread_recursive_lock_destroy_multithreaded): Renamed from
30227         glthread_recursive_lock_destroy. Return error code.
30228         (glthread_once_call): Make static.
30229         (glthread_once_multithreaded): Renamed from glthread_once.
30230         * lib/tls.h: Include <errno.h>.
30231         (glthread_tls_key_init): New macro/function.
30232         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
30233         (glthread_tls_set): New macro/function.
30234         (gl_tls_set): Define as wrapper around glthread_tls_set.
30235         (glthread_tls_key_destroy): New macro/function.
30236         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
30237         Update function declarations.
30238         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
30239         glthread_tls_get.
30240         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30241
30242 2008-08-04  Eric Blake  <ebb9@byu.net>
30243
30244         gnumakefile: use space, not TAB, outside of targets
30245         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
30246
30247 2008-08-02  Jim Meyering  <meyering@redhat.com>
30248
30249         getdate.y: avoid locale-dependent date parsing failure
30250         In Turkish locales, getdate would fail to recognize keywords
30251         containing a lowercase "i".  The solution is not to rely on
30252         locale-sensitive case-conversion.
30253         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
30254         (lookup_word): Use c_toupper in place of toupper.
30255         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
30256         Reported by Vefa Bicakci <bicave@superonline.com> in
30257         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
30258         * modules/getdate (Depends-on): Add c-ctype.
30259
30260 2008-08-02  Bruno Haible  <bruno@clisp.org>
30261
30262         * gnulib-tool (func_import): When updating or creating a .gitignore
30263         file, prepend each added line with a slash, and ignore leading slashes
30264         from the existing lines.
30265         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
30266
30267 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30268
30269         Portability fix for GNU make 3.79.1.
30270         * top/GNUmakefile: Avoid 'else COND', which older GNU make
30271         versions do not understand.
30272
30273 2008-08-01  Bruno Haible  <bruno@clisp.org>
30274
30275         Work around bug of HP-UX 10.20 cc with -0.0 literal.
30276         * tests/test-isnanf.h (zero): New variable.
30277         (main): Avoid literal -0.0f.
30278         * tests/test-isnand.h (zero): New variable.
30279         (main): Avoid literal -0.0.
30280         * tests/test-isnanl.h (zero): New variable.
30281         (main): Avoid literal -0.0L.
30282         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
30283         (test_float, test_double, test_long_double): Avoid literals -0.0f,
30284         -0.0, -0.0L.
30285         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
30286         (test_signbitd): Avoid literal -0.0.
30287         (test_signbitl): Avoid literal -0.0L.
30288         * tests/test-ceilf1.c (zero): New variable.
30289         (main): Avoid literal -0.0f.
30290         * tests/test-ceill.c (zero): New variable.
30291         (main): Avoid literal -0.0L.
30292         * tests/test-floorf1.c (zero): New variable.
30293         (main): Avoid literal -0.0f.
30294         * tests/test-floorl.c (zero): New variable.
30295         (main): Avoid literal -0.0L.
30296         * tests/test-roundf1.c (zero): New variable.
30297         (main): Avoid literal -0.0f.
30298         * tests/test-round1.c (zero): New variable.
30299         (main): Avoid literal -0.0.
30300         * tests/test-roundl.c (zero): New variable.
30301         (main): Avoid literal -0.0L.
30302         * tests/test-truncf1.c (zero): New variable.
30303         (main): Avoid literal -0.0f.
30304         * tests/test-trunc1.c (zero): New variable.
30305         (main): Avoid literal -0.0.
30306         * tests/test-truncl.c (zero): New variable.
30307         (main): Avoid literal -0.0L.
30308         * tests/test-frexp.c (zero): New variable.
30309         (main): Avoid literal -0.0.
30310         * tests/test-frexpl.c (zero): New variable.
30311         (main): Avoid literal -0.0L.
30312         * tests/test-ldexpl.c (zero): New variable.
30313         (main): Avoid literal -0.0L.
30314         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30315         (zerod, zerol): New variables.
30316         (test_function): Avoid literals -0.0, -0.0L.
30317         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30318         (zerod, zerol): New variables.
30319         (test_function): Avoid literals -0.0, -0.0L.
30320         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30321         (zerod, zerol): New variables.
30322         (test_function): Avoid literals -0.0, -0.0L.
30323         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30324         (zerod, zerol): New variables.
30325         (test_function): Avoid literals -0.0, -0.0L.
30326         * tests/test-strtod.c (zero): New variable.
30327         (main): Avoid literal -0.0.
30328         Reported by Jonathan C. Patschke <jp@centtech.com>.
30329
30330 2008-07-31  Jim Meyering  <meyering@redhat.com>
30331
30332         sha256.h: correct definition of SHA224_DIGEST_SIZE
30333         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
30334         Reported by Paulie Pena IV <paulie4@gmail.com>.
30335         Define as 224 / 8, rather than as a literal.
30336         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
30337         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
30338         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
30339
30340 2008-07-31  Bruno Haible  <bruno@clisp.org>
30341
30342         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
30343         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
30344         Reported by Jonathan Patschke <jp@centtech.com>.
30345
30346 2008-07-31  Bruno Haible  <bruno@clisp.org>
30347
30348         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
30349         Reported by Paolo Bonzini <bonzini@gnu.org>.
30350
30351 2008-07-30  Eric Blake  <ebb9@byu.net>
30352
30353         test-strtod: allow compilation without -lm
30354         * tests/test-strtod.c (main): Avoid link dependence on fabs.
30355         Reported by Dennis Clarke <blastwave@gmail.com>.
30356
30357 2008-07-28  Jim Meyering  <meyering@redhat.com>
30358
30359         bootstrap: work also when there are no .po files in po/
30360         * build-aux/bootstrap (update_po_files): Complete the change
30361         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
30362
30363 2008-07-27  Jim Meyering  <meyering@redhat.com>
30364
30365         * users.txt: Add zile.
30366
30367 2008-07-26  Ben Pfaff  <blp@gnu.org>
30368
30369         Add missing dependencies on new m4/exponent[fdl].m4 files.
30370         * modules/isnanf-nolibm: Add m4/exponentf.m4.
30371         * modules/isnand-nolibm: Add m4/exponentd.m4.
30372         * modules/isnanl-nolibm: Add m4/exponentl.m4.
30373         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
30374         m4/isnan[fdl].m4, because the macros actually used moved.
30375         Reported by Jim Meyering.
30376
30377 2008-07-14  Ben Pfaff  <blp@gnu.org>
30378
30379         Add isinf module.
30380         * lib/isinf.c: New file.
30381         * lib/math.in.h: Define isinf macro if we have decided to replace
30382         it.
30383         * m4/isinf.m4: New file.
30384         * m4/math_h.m4: Initialize and substitute variables for isinf
30385         module.
30386         * modules/isinf: New file.
30387         * modules/isinf-tests: New file.
30388         * modules/math: Add substitutions for new module.
30389         * tests/test-isinf.c: New file.
30390         * doc/posix-functions/isinf.texi: Mention new module.
30391         * MODULES.html.sh: Mention new module.
30392
30393 2008-07-14  Ben Pfaff  <blp@gnu.org>
30394
30395         Factor out some macros for use by additional modules.
30396         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
30397         exponentf.m4.
30398         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
30399         exponentd.m4.
30400         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
30401         file exponentl.m4.
30402         * m4/exponentf.m4: New file.
30403         * m4/exponentd.m4: New file.
30404         * m4/exponentl.m4: New file.
30405         * modules/isnanf: Use new file m4/exponentf.m4.
30406         * modules/isnand: Use new file m4/exponentd.m4.
30407         * modules/isnanl: Use new file m4/exponentl.m4.
30408
30409 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
30410
30411         mktime.c: normalize tp->tm_isdst value to -1/0/1.
30412         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
30413         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
30414         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
30415
30416         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
30417         readlink on platforms without PATH_MAX.
30418
30419 2008-07-21  Eric Blake  <ebb9@byu.net>
30420
30421         Warn, not fail, on stale version.
30422         * top/GNUmakefile (_curr-ver): Tone down previous patch.
30423
30424         Don't allow installation with stale devel version number.
30425         * top/GNUmakefile (_is-install-target): New macro.
30426         (_curr-ver): Forbid installation with stale version number.
30427
30428 2008-07-20  Bruno Haible  <bruno@clisp.org>
30429
30430         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
30431         TESTS_ENVIRONMENT.
30432         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
30433
30434 2008-07-20  Bruno Haible  <bruno@clisp.org>
30435
30436         * lib/c-stack.h (c_stack_action): Add documentation.
30437         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
30438
30439 2008-07-20  Bruno Haible  <bruno@clisp.org>
30440
30441         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
30442         * modules/readlink (License): Likewise.
30443
30444 2008-07-17  Eric Blake  <ebb9@byu.net>
30445
30446         * modules/c-stack (Link): Fix typo.
30447
30448         Make c-stack use libsigsegv, when available.
30449         * modules/c-stack (Depends-on): Add libsigsegv.
30450         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
30451         needed.
30452         * lib/c-stack.c (SIGSTKSZ): Define fallback.
30453         (segv_handler, overflow_handler, c_stack_action)
30454         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
30455         implementation when libsigsegv is available, but only when using
30456         the library is necessary.
30457         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
30458         comment, explaining why XSI check fails on Linux.
30459         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
30460         * tests/test-c-stack2.sh: Tweak skip message.
30461         * NEWS: Document new link-time requirements.
30462
30463 2008-07-16  Eric Blake  <ebb9@byu.net>
30464
30465         c-stack: Expose false positives when not using libsigsegv.
30466         * modules/c-stack-tests (Files): Expand test.
30467         * tests/test-c-stack.c (main): Add means to conditionally trigger
30468         non-overflow SIGSEGV.
30469         * tests/test-c-stack2.sh: New file.
30470
30471 2008-07-14  Bruno Haible  <bruno@clisp.org>
30472
30473         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
30474         Reported by Eric Blake.
30475
30476 2008-07-14  Sam Steingold  <sds@gnu.org>
30477             Bruno Haible  <bruno@clisp.org>
30478
30479         New module libsigsegv.
30480         * modules/libsigsegv: New file.
30481         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
30482         modifications.
30483         * MODULES.html.sh (Signal handling): New section.
30484
30485 2008-07-14  Bruno Haible  <bruno@clisp.org>
30486
30487         * modules/unictype/ctype-* (Description): Add the word "function".
30488         Improves the resulting doc in MODULES.html.
30489
30490 2008-07-12  Ben Pfaff  <blp@gnu.org>
30491
30492         Add longlong module.
30493         * modules/longlong: New file.
30494
30495 2008-07-12  Bruno Haible  <bruno@clisp.org>
30496
30497         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
30498         to empty.
30499
30500 2008-07-10  Ben Pfaff  <blp@gnu.org>
30501
30502         Add isnan module.
30503         * doc/posix-functions/isnan.texi: Mention new module.
30504         * lib/math.in.h: Define isnan macro if we have decided to replace
30505         it.
30506         * m4/isnan.m4: New file.
30507         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
30508         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
30509         also.
30510         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
30511         redundancy.
30512         * m4/math_h.m4: Initialize and substitute variables for isnan
30513         module.
30514         * modules/isnan: New file.
30515         * modules/isnan-tests: New file.
30516         * modules/math: Add substitutions for new module.
30517         * tests/test-isnan.c: New file.
30518         * MODULES.html.sh: Mention new module.
30519
30520 2008-07-10  Ben Pfaff  <blp@gnu.org>
30521
30522         Add isnanf module.
30523         * lib/isnanf.m4: New file.
30524         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
30525         (gl_HAVE_ISNANF_IN_LIBM): New macro.
30526         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
30527         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
30528         * modules/isnanf: New file.
30529         * modules/isnanf-tests: New file.
30530         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
30531         files.
30532         * tests/test-isnanf-nolibm.c: factored most of its contents into
30533         new file tests/test-isnanf.h.
30534         * tests/test-isnanf.h: New file.
30535         * tests/test-isnanf.c: New file.
30536         * MODULES.html.sh: Mention new module.
30537         * doc/glibc-functions/isnanf.texi: Mention new module.
30538
30539 2008-07-10  Ben Pfaff  <blp@gnu.org>
30540
30541         Add isnand module.
30542         * lib/isnand.h: New file.
30543         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
30544         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
30545         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
30546         functionality also.
30547         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
30548         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
30549         (gl_HAVE_ISNAND_IN_LIBM): New macro.
30550         * modules/isnand: New file.
30551         * modules/isnand-tests: New file.
30552         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
30553         files.
30554         * tests/test-isnand-nolibm.c: factored most of its contents into
30555         new file tests/test-isnand.h.
30556         * tests/test-isnand.h: New file.
30557         * tests/test-isnand.c: New file.
30558         * MODULES.html.sh: Mention new module.
30559
30560 2008-07-10  Ben Pfaff  <blp@gnu.org>
30561
30562         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
30563         * lib/isnand.h: Rename lib/isnand-nolibm.h.
30564         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
30565         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
30566         * modules/isnanf-nolibm: Update references to renamed files.
30567         * modules/isnand-nolibm: Likewise.
30568         * modules/isnanf-nolibm-tests: Likewise.
30569         * modules/isnand-nolibm-tests: Likewise.
30570         * lib/frexp.c: Likewise.
30571         * lib/isfinite.c: Likewise.
30572         * lib/signbitd.c: Likewise.
30573         * lib/signbitf.c: Likewise.
30574         * lib/vasnprintf.c: Likewise.
30575         * tests/test-ceilf1.c: Likewise.
30576         * tests/test-ceilf2.c: Likewise.
30577         * tests/test-floorf1.c: Likewise.
30578         * tests/test-floorf2.c: Likewise.
30579         * tests/test-frexp.c: Likewise.
30580         * tests/test-round1.c: Likewise.
30581         * tests/test-round2.c: Likewise.
30582         * tests/test-roundf1.c: Likewise.
30583         * tests/test-strtod.c: Likewise.
30584         * tests/test-trunc1.c: Likewise.
30585         * tests/test-trunc2.c: Likewise.
30586         * tests/test-truncf1.c: Likewise.
30587         * tests/test-truncf2.c: Likewise.
30588         * NEWS: Mention the renamed header files.
30589
30590 2008-07-11  Jim Meyering  <meyering@redhat.com>
30591
30592         vc-list-files: make the last-resort awk code more portable
30593         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
30594         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
30595         does not support it.
30596
30597 2008-07-10  Eric Blake  <ebb9@byu.net>
30598
30599         Work with tar's bootstrap.
30600         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
30601         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
30602         an m4 comment.
30603
30604 2008-07-09  Jim Meyering  <meyering@redhat.com>
30605
30606         posix-shell.m4: fix typo that made this test malfunction
30607         * m4/posix-shell.m4: Remove capitalization in variable name.
30608
30609 2008-07-08  Bruno Haible  <bruno@clisp.org>
30610
30611         * m4/onceonly.m4: Update comments.
30612         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30613
30614 2008-07-04  Jim Meyering  <meyering@redhat.com>
30615
30616         * users.txt: Add vc-dwim.
30617         (bison, coreutils): Use the gitweb URL.
30618
30619 2008-07-03  Jim Meyering  <meyering@redhat.com>
30620
30621         * users.txt: Add libffcall.  From Sam Steingold.
30622
30623 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
30624
30625         getdate.y: do not ignore TZ with relative day, month or year offset
30626         * lib/getdate.y (get_date): Move the tz-handling block to follow the
30627         relative-date-handling, since otherwise, the latter would clobber the
30628         sole output (an updated Start value) of the tz-handling block.
30629         * tests/test-getdate.c: Tests for the fix
30630
30631 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30632
30633         Recognize 'foo_LIBRARIES += libgnu.a'.
30634         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
30635         makefile snippet has already specified an installation location,
30636         also using '+='.
30637
30638 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
30639
30640         getdate.y: factor out common actions
30641         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
30642         Use them in place of open-coded actions.
30643
30644 2008-07-01  Simon Josefsson  <simon@josefsson.org>
30645
30646         Add self-test for getdate module.
30647         * modules/getdate-tests: New file.
30648         * tests/test-getdate.c: New file.
30649
30650 2008-06-29  Bruno Haible  <bruno@clisp.org>
30651
30652         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
30653         .gitignore.
30654         Reported by Sylvain Beucler <beuc@beuc.net>.
30655
30656 2008-06-29  Bruno Haible  <bruno@clisp.org>
30657
30658         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
30659         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
30660
30661 2008-06-29  Bruno Haible  <bruno@clisp.org>
30662
30663         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
30664         EXTRA_DIST.
30665         Reported by Sylvain Beucler <beuc@beuc.net>.
30666
30667 2008-06-26  Jim Meyering  <meyering@redhat.com>
30668
30669         make several modules depend on the "open" module
30670         This provides slightly increased consistency when opening-for-write
30671         the name of a non-directory spelled with a trailing slash.
30672         * modules/chdir-safer: Likewise.
30673         * modules/chown: Likewise.
30674         * modules/clean-temp: Likewise.
30675         * modules/copy-file: Likewise.
30676         * modules/fchdir: Likewise.
30677         * modules/fcntl-safer: Likewise.
30678         * modules/pipe: Likewise.
30679         * modules/utime: Likewise.
30680         Prompted by Eric Blake and Bruno Haible.
30681
30682 2008-06-24  Andreas Schwab  <schwab@suse.de>
30683
30684         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
30685         literals can be used as initializers for global variables.
30686
30687 2008-06-23  Eric Blake  <ebb9@byu.net>
30688
30689         Make gnulib-cache.m4 easier to diff.
30690         * gnulib-tool (func_import): Allow newlines when reading cached
30691         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
30692
30693 2008-06-23  Bruno Haible  <bruno@clisp.org>
30694
30695         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
30696         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
30697         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
30698         m4/signalblocking.m4.
30699         (gl_PREREQ_SIGACTION): Don't invoke it.
30700         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
30701         gl_PREREQ_SIG_HANDLER_H.
30702         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30703         Don't check for sigaction here.
30704
30705 2008-06-23  Bruno Haible  <bruno@clisp.org>
30706
30707         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
30708         (install_handlers): Don't set the SA_RESETHAND flag.
30709
30710 2008-06-23  Bruno Haible  <bruno@clisp.org>
30711
30712         * m4/sigaction.m4: Comment fixes.
30713         * lib/signal.in.h: Likewise.
30714
30715 2008-06-23  Eric Blake  <ebb9@byu.net>
30716
30717         Fix typo.
30718         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
30719
30720         Avoid SA_ namespace.
30721         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
30722         Reported by Ralf Wildenhues.
30723
30724         Avoid test failure due to SA_RESTORER.
30725         * tests/test-sigaction.c (SA_MASK): New macro.
30726         (main): Avoid failing due to extension flags being set.
30727         Reported by Jim Meyering.
30728
30729         Revert use of sig-handler.h in sigprocmask.c.
30730         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
30731         it requires the existence of struct sigaction.
30732         * lib/sigprocmask.c (handler_t): Restore typedef.
30733         (rpl_signal, old_handlers): Use local type.
30734
30735 2008-06-22  Bruno Haible  <bruno@clisp.org>
30736
30737         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
30738         conditionally.
30739         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30740
30741 2008-06-22  Bruno Haible  <bruno@clisp.org>
30742
30743         * doc/posix-functions/siginterrupt.texi: Move note.
30744
30745         * lib/signal.in.h (SA_RESTART): New macro.
30746         * lib/sigaction.c: Update comment.
30747
30748         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
30749
30750         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
30751         (gl_PREREQ_SIGPROCMASK): Invoke it.
30752         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
30753
30754         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
30755
30756         * lib/sigprocmask.c: Update a comment.
30757
30758 2008-06-21  Eric Blake  <ebb9@byu.net>
30759
30760         Use sigaction module rather than signal().
30761         * modules/c-stack (Depends-on): Add sigaction.
30762         * modules/fatal-signal (Depends-on): Likewise.
30763         * modules/nanosleep (Depends-on): Likewise.
30764         * modules/sigprocmask (Files): Add sig-handler.h.
30765         * modules/sigaction (Files): Likewise.
30766         * lib/sig-handler.h (get_handler): New file, suggested by Paul
30767         Eggert.
30768         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
30769         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
30770         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
30771         (init_fatal_signals): Likewise.
30772         * lib/nanosleep.c (rpl_nanosleep): Likewise.
30773         (siginterrupt): Delete fallback.
30774         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
30775         instead.
30776         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
30777         siginterrupt.
30778
30779         New module sigaction, for mingw.
30780         * modules/sigaction: New module...
30781         * modules/sigaction-tests: ...and its test.
30782         * m4/sigaction.m4: New file.
30783         * lib/sigaction.c: Likewise.
30784         * tests/test-sigaction.c: Likewise.
30785         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
30786         * modules/signal (Makefile.am): Likewise.
30787         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
30788         needed.
30789         * doc/posix-headers/signal.texi (signal.h): Mention provided
30790         types.
30791         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
30792         that sigaction is preferable.
30793         * doc/posix-functions/sigaction.texi (sigaction): Mention new
30794         module.
30795         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30796         sigaction.
30797
30798         Improve robustness of sigprocmask by overriding signal.
30799         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
30800         is in use.
30801         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
30802         (SIGKILL, SIGSTOP): Provide fallbacks.
30803         (rpl_signal): Implement.
30804         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
30805         signal can be called inside handlers.
30806
30807         Fix nanosleep module on mingw.
30808         * modules/nanosleep (Depends-on): Add sys_select.
30809         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
30810
30811         Fix licensing of sigprocmask.
30812         * modules/raise (License): Relicense as LGPL.
30813
30814 2008-06-21  Bruno Haible  <bruno@clisp.org>
30815
30816         * lib/propername.c (proper_name_utf8): Don't use the transliterated
30817         result if it contains question marks.
30818         Reported by Michael Geng <linux@michaelgeng.de>.
30819
30820 2008-06-19  Bruno Haible  <bruno@clisp.org>
30821
30822         Fix CVS-ism.
30823         * doc/gnulib.texi: Include updated-stamp.texi.
30824         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
30825         (updated-stamp.texi): New rule.
30826         (gnulib.info): Depend on it.
30827         * doc/.gitignore: Add updated-stamp.texi.
30828         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
30829
30830 2008-06-19  Bruno Haible  <bruno@clisp.org>
30831
30832         * doc/Makefile (gnulib.info): Update and simplify dependencies.
30833         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30834
30835 2008-06-19  Eric Blake  <ebb9@byu.net>
30836
30837         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
30838         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
30839         Reported by Stepan Kasal.
30840
30841 2008-06-18  Bruno Haible  <bruno@clisp.org>
30842
30843         * lib/fatal-signal.c (init_fatal_signals): Add comment.
30844         Reported by Eric Blake.
30845
30846 2008-06-18  Eric Blake  <ebb9@byu.net>
30847
30848         Work around cygwin 1.5.25 strsignal bug.
30849         * tests/test-strsignal.c: Allow for const char *.
30850         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
30851
30852 2008-06-18  Simon Josefsson  <simon@josefsson.org>
30853
30854         * users.txt: Update URL to article and add author/date
30855         information.
30856
30857 2008-06-17  Bruno Haible  <bruno@clisp.org>
30858
30859         New macro gl_DISABLE_THREADS.
30860         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
30861         if the user did not pass --enable-threads or --disable-threads option.
30862         (gl_DISABLE_THREADS): New macro.
30863         Reported by Eric Blake <ebb9@byu.net>.
30864
30865 2008-06-17  Bruno Haible  <bruno@clisp.org>
30866
30867         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
30868         when the macro ignores it.
30869         Based on a patch by Eric Blake <ebb9@byu.net>.
30870
30871 2008-06-17  Bruno Haible  <bruno@clisp.org>
30872
30873         * modules/tls (License): Change to LGPLv2+.
30874         Reported by Eric Blake.
30875
30876 2008-06-17  Eric Blake  <ebb9@byu.net>
30877
30878         Simplify c-stack prerequisites.
30879         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
30880         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
30881         no longer requires <ucontext.h> to exist.  Optimize setrlimit
30882         check.
30883         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
30884         <sys/resource.h>.
30885
30886         Move c-stack test into testsuite.
30887         * modules/c-stack-tests: New file.
30888         * lib/c-stack.c [DEBUG]: Move test program...
30889         * tests/test-c-stack.c: ...into this new file.  Skip rather than
30890         fail test if sigaltstack is lacking.
30891         * tests/test-c-stack.sh: New driver file.
30892
30893 2008-06-16  Eric Blake  <ebb9@byu.net>
30894
30895         Use raise module consistently.
30896         * modules/fatal-signal (Depends-on): Add raise.
30897         * modules/sigprocmask (Depends-on): Likewise.
30898         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
30899         * lib/sigprocmask.c (sigprocmask): Likewise.
30900         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30901         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
30902
30903         Fix compliance bug in sigpending.
30904         * lib/sigprocmask.c (sigpending): Return pending array via
30905         parameter, not return value.
30906
30907 2008-06-14  Eric Blake  <ebb9@byu.net>
30908
30909         Improve obstack-printf test code.
30910         * tests/test-obstack-printf.c (test_function): Fix comment, and
30911         simplify usage of obstack_* in macros.  Add a test for coverage.
30912         Reported by Bruno Haible.
30913
30914 2008-06-14  Bruno Haible  <bruno@clisp.org>
30915
30916         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
30917         array size as a constant, not as a const variable.
30918         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
30919         AC_USE_SYSTEM_EXTENSIONS.
30920         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30921         Test whether the obstack_printf function actually exists.
30922         * modules/obstack-printf (Depends-on): Add extensions.
30923         (Include): Remove obstack.h.
30924         * modules/obstack-printf-posix (Depends-on): Add extensions.
30925         (Include): Remove obstack.h.
30926
30927 2008-06-13  Eric Blake  <ebb9@byu.net>
30928
30929         Add obstack-printf and obstack-printf-posix modules.
30930         * modules/obstack-printf: New file.
30931         * modules/obstack-printf-posix: Likewise.
30932         * MODULES.html.sh (Misc): Mention them.
30933         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30934         Likewise.
30935         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30936         Likewise.
30937         * modules/stdio (Makefile.am): Accomodate new modules.
30938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30939         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
30940         Declare.
30941         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
30942         functions.
30943         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
30944         (gl_REPLACE_OBSTACK_PRINTF): New macros
30945         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
30946         * tests/test-obstack-printf.c: New file.
30947         * modules/obstack-printf-tests: Likewise.
30948         * modules/obstack-printf-posix-tests: Likewise.
30949
30950 2008-06-11  Bruno Haible  <bruno@clisp.org>
30951
30952         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
30953         * lib/open.c: Include errno.h.
30954         (open): Fail when attempting to write to a file that has a trailing
30955         slash.
30956         * tests/test-open.c (main): Test against trailing slash bug.
30957         * doc/posix-functions/open.texi: Mention the trailing slash bug.
30958
30959 2008-06-10  Bruno Haible  <bruno@clisp.org>
30960
30961         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
30962         for $? to work inside the trap command, with various /bin/sh-s.
30963         * tests/test-vc-list-files-cvs.sh: Likewise.
30964
30965 2008-06-10  Bruno Haible  <bruno@clisp.org>
30966
30967         * lib/acl-internal.h: Don't include gettext.h here.
30968         * lib/set-mode-acl.c: Include gettext.h here.
30969         * lib/copy-acl.c: Likewise.
30970
30971 2008-06-10  Bruno Haible  <bruno@clisp.org>
30972
30973         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
30974         * lib/wait-process.c (wait_subprocess): Likewise.
30975         * lib/execute.h (execute): Add termsigp argument.
30976         * lib/execute.c (execute): Likewise.
30977         * lib/csharpcomp.c (compile_csharp_using_pnet,
30978         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
30979         * lib/csharpexec.c (execute_csharp_using_pnet,
30980         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
30981         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
30982         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
30983         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
30984         is_jikes_present): Update.
30985         * lib/javaexec.c (execute_java_class): Update.
30986         * lib/javaversion.c (execute_and_read_line): Update.
30987         * NEWS: Document the changes.
30988         Reported by Eric Blake.
30989
30990 2008-06-10  Eric Blake  <ebb9@byu.net>
30991
30992         Add missing include.
30993         * tests/test-strstr.c (includes): Add <signal.h>.
30994         * tests/test-strcasestr.c (includes): Likewise.
30995         * tests/test-memmem.c (includes): Likewise.
30996
30997 2008-06-10  Bruno Haible  <bruno@clisp.org>
30998
30999         * lib/wait-process.c (wait_subprocess): Add an assertion.
31000
31001 2008-06-10  Bruno Haible  <bruno@clisp.org>
31002
31003         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
31004
31005 2008-06-10  Bruno Haible  <bruno@clisp.org>
31006
31007         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
31008         using alarm().
31009         * tests/test-strcasestr.c (main): Likewise.
31010         * tests/test-strstr.c (main): Likewise.
31011
31012 2008-06-09  Bruno Haible  <bruno@clisp.org>
31013
31014         Work around the Solaris 10 ACE ACLs ABI change.
31015         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
31016         declare if ACL_NO_TRIVIAL is present.
31017         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
31018         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
31019         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
31020         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
31021         define if ACL_NO_TRIVIAL is present.
31022         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
31023         and use the current ABI.
31024         (file_has_acl): Use same #if condition as elsewhere.
31025         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
31026         in use, and use the current ABI.
31027         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
31028         Reported by Jim Meyering.
31029
31030 2008-06-09  Eric Blake  <ebb9@byu.net>
31031
31032         Work around environments that (stupidly) ignore SIGALRM.
31033         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
31034         before using alarm().
31035         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31036         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31037         Reported by Ian Beckwith <ianb@erislabs.net>.
31038
31039         Produce autobuild blurb earlier in log.
31040         * modules/autobuild (configure.ac-early): Move AB_INIT here.
31041
31042 2008-06-09  Jim Meyering  <meyering@redhat.com>
31043         and Ondřej Vašík  <ovasik@redhat.com>
31044
31045         utimens.c: correct kernel bug work-around
31046         Ondřej Vašík found that the invalid return value of 280 indicates
31047         failure, not success, and the kernel bug we're trying to work
31048         around affects not just the utimensat call, but also the fallback
31049         futimens call.
31050         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
31051         not success.
31052         [HAVE_FUTIMENS]: Use the same work-around, here.
31053
31054 2008-06-09  Jim Meyering  <meyering@redhat.com>
31055
31056         add more guards around definition of ACE_-related code
31057         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
31058         ALLOW and ACE_OWNER are also defined.
31059
31060 2008-06-08  Bruno Haible  <bruno@clisp.org>
31061
31062         * lib/acl-internal.h: Add me as co-author.
31063         * lib/file-has-acl.c: Likewise.
31064         * lib/set-mode-acl.c: Likewise.
31065         * lib/copy-acl.c: Likewise.
31066
31067 2008-06-08  Bruno Haible  <bruno@clisp.org>
31068
31069         Add support for AIX ACLs.
31070         * lib/acl-internal.h (acl_nontrivial): New declaration.
31071         * lib/file-has-acl.c (acl_nontrivial): New function.
31072         (file_has_acl): Add implementation using AIX 4 ACL API.
31073         * lib/set-mode-acl.c (qset_acl): Likewise.
31074         * lib/copy-acl.c (qcopy_acl): Likewise.
31075
31076 2008-06-08  Bruno Haible  <bruno@clisp.org>
31077
31078         Add support for HP-UX ACLs.
31079         * lib/acl-internal.h (acl_nontrivial): New declaration.
31080         * lib/file-has-acl.c (acl_nontrivial): New function.
31081         (file_has_acl): Add implementation using HP-UX 11 ACL API.
31082         * lib/set-mode-acl.c (qset_acl): Likewise.
31083         * lib/copy-acl.c (qcopy_acl): Likewise.
31084
31085 2008-06-08  Bruno Haible  <bruno@clisp.org>
31086
31087         Add support for Cygwin ACLs.
31088         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
31089         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
31090         the chmod_or_fchmod call.
31091         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
31092
31093 2008-06-08  Bruno Haible  <bruno@clisp.org>
31094
31095         Fix bug with setuid modes in Solaris 10+ code.
31096         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
31097         succeeded, when the mode contains some special bits.
31098
31099 2008-06-08  Bruno Haible  <bruno@clisp.org>
31100
31101         Add support for Solaris 7..10 ACLs.
31102         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
31103         declarations.
31104         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
31105         functions.
31106         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
31107         * lib/set-mode-acl.c (qset_acl): Likewise.
31108         * lib/copy-acl.c (qcopy_acl): Likewise.
31109
31110 2008-06-08  Bruno Haible  <bruno@clisp.org>
31111
31112         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
31113         declaration.
31114         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
31115         (acl_access_nontrivial): Remove MacOS X case.
31116         (file_has_acl): Use acl_extended_nontrivial.
31117         * lib/copy-acl.c (qcopy_acl): Likewise.
31118
31119 2008-06-08  Bruno Haible  <bruno@clisp.org>
31120
31121         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
31122
31123 2008-06-08  Jim Meyering  <meyering@redhat.com>
31124
31125         * modules/acl (Maintainer): Add Bruno Haible.
31126
31127 2008-06-07  Bruno Haible  <bruno@clisp.org>
31128
31129         Improve support for Tru64 ACLs.
31130         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
31131         ACL on OSF/1.
31132
31133 2008-06-07  Bruno Haible  <bruno@clisp.org>
31134
31135         Add support for MacOS X ACLs.
31136         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
31137         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
31138         * lib/set-mode-acl.c (qset_acl): Likewise.
31139         * lib/copy-acl.c (qcopy_acl): Likewise.
31140
31141 2008-06-07  Bruno Haible  <bruno@clisp.org>
31142
31143         Fix memory leak introduced on 2008-05-22.
31144         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
31145         use.
31146
31147 2008-06-07  Bruno Haible  <bruno@clisp.org>
31148
31149         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
31150         to construct an empty ACL.
31151
31152 2008-06-07  Bruno Haible  <bruno@clisp.org>
31153
31154         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
31155         precisely.
31156         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
31157
31158 2008-06-07  Bruno Haible  <bruno@clisp.org>
31159
31160         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
31161         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
31162
31163 2008-06-07  Bruno Haible  <bruno@clisp.org>
31164
31165         * doc/posix-functions/_setjmp.texi: Explain the use of this function
31166         regardless of POSIX.
31167         * doc/posix-functions/_longjmp.texi: Likewise.
31168         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
31169         SystemV platform in this case.
31170
31171 2008-06-06  Eric Blake  <ebb9@byu.net>
31172
31173         Document abort() bugs.
31174         * doc/posix-functions/abort.texi (abort): Mention anomalies.
31175
31176         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
31177         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
31178         sigsetjmp.
31179         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
31180         siglongjmp, but only as a macro.
31181         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
31182         is obsolete.
31183         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
31184
31185         Tweak documentation to cover cygwin argz bugs.
31186         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
31187         argz bug fix; no code change needed since no cygwin releases
31188         occurred between the last fix and the bug being tested.
31189         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
31190         module and recently fixed cygwin bugs.
31191         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
31192         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
31193         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
31194         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
31195         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
31196         Likewise.
31197         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
31198         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
31199         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
31200         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
31201         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
31202         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
31203         Likewise.
31204
31205         Avoid gcc warning on cygwin.
31206         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
31207         !ACL_NO_TRIVIAL]: Avoid unused variable.
31208
31209 2008-06-05  Eric Blake  <ebb9@byu.net>
31210
31211         Be tolerant of UNKNOWN version in gnulib-tool test dir.
31212         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
31213         git-version-gen fails to come up with a version.
31214         Reported by Simon Josefsson.
31215
31216 2008-06-05  Jim Meyering  <meyering@redhat.com>
31217             Paul Eggert  <eggert@cs.ucla.edu>
31218
31219         utimens.c: work around a probable Linux kernel bug
31220         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
31221         appears to be a kernel bug that causes utimensat to return 280
31222         instead of 0, indicating success.
31223
31224 2008-06-04  Bruno Haible  <bruno@clisp.org>
31225
31226         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
31227         2008-06-01 commit.
31228
31229 2008-06-04  Bruno Haible  <bruno@clisp.org>
31230
31231         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
31232         * lib/file-has-acl.c (acl_access_nontrivial): New function.
31233         (file_has_acl): Use it. Save errno afterwards.
31234         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
31235
31236 2008-06-03  Bruno Haible  <bruno@clisp.org>
31237
31238         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
31239         draft code. Simplify #ifs.
31240         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
31241         Put Solaris code after POSIX-draft code. Fix comments regarding
31242         Solaris 10, HP-UX. Mention Cygwin.
31243         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
31244
31245 2008-06-03  Eric Blake  <ebb9@byu.net>
31246
31247         Provide fallback for older kernels.
31248         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
31249         Provide runtime fallback if kernel lacks support.
31250         Reported by Mike Frysinger.
31251
31252 2008-06-02  Bruno Haible  <bruno@clisp.org>
31253
31254         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
31255         it exists.
31256
31257 2008-06-02  Bruno Haible  <bruno@clisp.org>
31258
31259         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
31260         * lib/copy-acl.c (qcopy_acl): Update comment.
31261
31262 2008-06-02  Bruno Haible  <bruno@clisp.org>
31263
31264         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
31265         like ACL APIs.
31266
31267 2008-06-02  Bruno Haible  <bruno@clisp.org>
31268
31269         * tests/test-file-has-acl.sh: Use different code for Cygwin.
31270         * tests/test-set-mode-acl.sh: Likewise.
31271         * tests/test-copy-acl.sh: Likewise.
31272         * tests/test-copy-file.sh: Likewise.
31273
31274 2008-06-02  Bruno Haible  <bruno@clisp.org>
31275
31276         * tests/test-file-has-acl.sh: Remove unused code.
31277
31278 2008-06-01  Bruno Haible  <bruno@clisp.org>
31279
31280         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
31281         (copy_acl): Just a wrapper around qcopy_acl that emits the error
31282         messages.
31283         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
31284
31285 2008-06-01  Bruno Haible  <bruno@clisp.org>
31286
31287         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
31288         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
31289         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
31290         APIs.
31291         * modules/acl-tests (configure.ac): Remove tests now contained in
31292         m4/acl.m4.
31293
31294 2008-06-02  Jim Meyering  <meyering@redhat.com>
31295
31296         announce-gen: use a better key-server host name
31297         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
31298         it may be more consistently reliable.  Suggested by Werner Koch
31299         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
31300
31301 2008-06-01  Bruno Haible  <bruno@clisp.org>
31302
31303         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
31304         Reported by Voroskoi Andras <voroskoi@gmail.com>.
31305
31306 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
31307
31308         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
31309
31310 2008-06-01  Bruno Haible  <bruno@clisp.org>
31311
31312         New ACL tests.
31313         * tests/test-file-has-acl.sh: New file.
31314         * tests/test-file-has-acl.c: New file.
31315         * tests/test-set-mode-acl.sh: New file.
31316         * tests/test-set-mode-acl.c: New file.
31317         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
31318         * tests/test-copy-acl.c: New file.
31319         * modules/acl-tests: New file, based on modules/copy-file-tests.
31320         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
31321         (Depends-on): Add acl-tests.
31322         (configure.ac): Remove checks.
31323         (Makefile.am): Don't create test-sameacls program here any more.
31324
31325 2008-06-01  Bruno Haible  <bruno@clisp.org>
31326
31327         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
31328         * tests/test-sameacls.c: Include progname.h.
31329         (main): Invoke set_program_name. Portability fixes for MacOS X,
31330         Solaris, HP-UX.
31331
31332 2008-06-01  Bruno Haible  <bruno@clisp.org>
31333
31334         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
31335         function.
31336         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
31337
31338 2008-06-01  Bruno Haible  <bruno@clisp.org>
31339
31340         * modules/rpmatch (Depends-on): Add strdup.
31341
31342 2008-06-01  Bruno Haible  <bruno@clisp.org>
31343
31344         * lib/pipe.c: Include unistd-safer.h.
31345         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
31346         * modules/pipe (Depends-on): Add unistd-safer.
31347
31348 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31349
31350         * modules/autobuild (configure.ac): Call AB_INIT.
31351
31352 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31353
31354         * tests/test-getaddrinfo.c: Don't print debug messages by default.
31355         Suggested by Bruno Haible <bruno@clisp.org>.
31356
31357 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31358
31359         * tests/test-base64.c: Cast size_t to unsigned long when invoking
31360         printf.  Use %lu instead of %d.  Reported by Bruno Haible
31361         <bruno@clisp.org>.
31362
31363 2008-05-29  Eric Blake  <ebb9@byu.net>
31364
31365         Prefer new POSIX 200x interfaces over futimesat.
31366         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
31367         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
31368         when available.
31369         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
31370
31371 2008-05-28  Bruno Haible  <bruno@clisp.org>
31372
31373         * modules/stpcpy (License): Change to LGPLv2+.
31374         Requested by David Lutterkort <dlutter@redhat.com>.
31375
31376 2008-05-27  Bruno Haible  <bruno@clisp.org>
31377
31378         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
31379         current mingw.
31380         Reported by Jose E. Marchesi <jemarch@gnu.org>.
31381
31382 2008-05-27  Bruno Haible  <bruno@clisp.org>
31383
31384         * modules/iconv_open (Link): New section, from module 'iconv'.
31385         * modules/striconv (Link): Likewise.
31386         * modules/striconveh (Link): Likewise.
31387         * modules/xstriconv (Link): Likewise.
31388         * modules/unicodeio (Link): Likewise.
31389         * modules/propername (Link): Likewise.
31390         Reported by Jim Meyering.
31391
31392 2008-05-26  Jim Meyering  <meyering@redhat.com>
31393
31394         sha256: do not artificially restrict buffer length to be < 2^32
31395         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
31396         uint32_t to size_t.
31397         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
31398         to match.
31399
31400         avoid unaligned access errors, e.g., on sparc
31401         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
31402         direct access through a possibly-unaligned uint64* pointer.
31403         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
31404         direct access through a possibly-unaligned uint32* pointer.
31405         Prompted by this patch from Tom "spot" Callaway:
31406         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
31407
31408         sha512.c: fix typo in comment
31409         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
31410
31411 2008-05-25  Bruno Haible  <bruno@clisp.org>
31412
31413         * lib/set-mode-acl.c: Renamed from lib/acl.c.
31414         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
31415         (Makefile.am): Update lib_SOURCES.
31416
31417 2008-05-25  Bruno Haible  <bruno@clisp.org>
31418
31419         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
31420
31421 2008-05-25  Jim Meyering  <meyering@redhat.com>
31422
31423         useless-if-before-free: freed expr may have white-space differences
31424         * build-aux/useless-if-before-free: Recognize cases in which the
31425         freed expression differs from the tested one in embedded white
31426         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
31427         $1 was used, so we can't make any regexp shy.  Improved tests now
31428         detect this.
31429
31430         useless-if-before-free: accept white space in the expression.
31431         * build-aux/useless-if-before-free: For now, any white space
31432         in the expression must be identical in the free argument.
31433
31434         useless-if-before-free: efficiency tweak
31435         * build-aux/useless-if-before-free: Make the expression-matching
31436         regexp "shy".
31437         Make the *outer* regexp shy, not the expr-matching one.
31438
31439         update code-in-comment to accept cast of free arg
31440         * build-aux/useless-if-before-free: Update regexp.
31441
31442 2008-05-25  Bruno Haible  <bruno@clisp.org>
31443
31444         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
31445         * modules/copy-file-tests (Files, Makefile.am): Update.
31446         * tests/test-copy-file.c (func_test_copy): Update.
31447
31448 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
31449
31450         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
31451
31452 2008-05-23  Bruno Haible  <bruno@clisp.org>
31453
31454         Improve support for ACLs on OSF/1.
31455         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
31456         Remove fallback for unknown flavors of ACLs.
31457
31458 2008-05-22  Bruno Haible  <bruno@clisp.org>
31459
31460         Add support for ACLs on OSF/1.
31461         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
31462         replacements.
31463         (acl_free_text): New macro fallback.
31464         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
31465         acl_free.
31466         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
31467         acl_free_text function. Require AC_C_INLINE.
31468
31469 2008-05-22  Bruno Haible  <bruno@clisp.org>
31470
31471         Make copy_acl work on MacOS X 10.5.
31472         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
31473         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
31474         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
31475         If MODE_INSIDE_ACL, don't assume that every system has the same text
31476         representation for ACLs as FreeBSD.
31477         * lib/copy-acl.c (copy_acl): Add support for platforms with
31478         !MODE_INSIDE_ACL.
31479         * lib/file-has-acl.c (file_has_acl): Likewise.
31480         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
31481         FreeBSD, MacOS X, or IRIX, respectively.
31482
31483 2008-05-22  Bruno Haible  <bruno@clisp.org>
31484
31485         * lib/acl.h: Don't include <sys/acl.h>.
31486         (GETACLCNT): Move fallback to lib/acl-internal.h.
31487         * lib/acl-internal.h: Include <sys/acl.h> here.
31488         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
31489
31490 2008-05-22  Bruno Haible  <bruno@clisp.org>
31491
31492         Split off copy_acl function to separate file.
31493         * lib/copy-acl.c: New file, extracted from lib/acl.c.
31494         * lib/acl.c (copy_acl): Moved function to separate file.
31495         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
31496         * modules/acl (Files): Add lib/copy-acl.c.
31497         (Makefiles.am): Augment lib_SOURCES.
31498
31499 2008-05-22  Bruno Haible  <bruno@clisp.org>
31500
31501         * modules/copy-file-tests: New file.
31502         * tests/test-copy-file.sh: New file.
31503         * tests/test-copy-file.c: New file.
31504         * tests/test-copy-file-sameacls.c: New file.
31505
31506 2008-05-22  Eric Blake  <ebb9@byu.net>
31507
31508         Avoid gcc warning.
31509         * tests/test-memcmp.c (main): Pass NULL indirectly.
31510
31511 2008-05-21  Bruno Haible  <bruno@clisp.org>
31512
31513         Add reference doc about ACLs.
31514         * doc/acl-resources.txt: New file.
31515         * doc/acl-cygwin.txt: New file.
31516
31517 2008-05-21  Bruno Haible  <bruno@clisp.org>
31518
31519         Avoid one more warning from gcc.
31520         * lib/vasnprintf.c (IF_LINT): Update comments.
31521         (VASNPRINTF): Use it also for the 'prefix' array initializer.
31522
31523 2008-05-21  Jim Meyering  <meyering@redhat.com>
31524
31525         avoid a warning from gcc
31526         * lib/vasnprintf.c (IF_LINT): Define.
31527         (scale10_round_decimal_long_double):
31528         Use it to avoid a "may be used uninitialized" warning.
31529         (scale10_round_decimal_double): Likewise.
31530
31531 2008-05-21  Simon Josefsson  <simon@josefsson.org>
31532
31533         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
31534         declared.
31535
31536 2008-05-20  Bruno Haible  <bruno@clisp.org>
31537
31538         * tests/test-memcmp.c (main): Test also the sign of the result. Test
31539         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
31540
31541 2008-05-20  Simon Josefsson  <simon@josefsson.org>
31542
31543         * modules/memcmp-tests: New file.
31544         * tests/test-memcmp.c: New file.
31545
31546 2008-05-19  Bruno Haible  <bruno@clisp.org>
31547
31548         * modules/propername (Notice, configure.ac): Put quoted "..." into
31549         --keyword option.
31550         * lib/propername.h: Update comments accordingly.
31551         Reported by Eric Blake.
31552
31553 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
31554
31555         * modules/getpass-gnu (Depends-on): Add fseeko.
31556
31557 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31558
31559         * modules/base64-tests: New file.
31560
31561 2008-05-19  Bo Borgerson <gigabo@gmail.com>
31562
31563         * lib/base64.c (base64_decode_ctx): If a decode context structure
31564         was passed in use it to ignore newlines.  If a context structure
31565         was _not_ passed in, continue to treat newlines as garbage (this
31566         is the historical behavior).  Formerly base64_decode.
31567         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31568         takes a decode context structure.
31569         * lib/base64.h (base64_decode): Macro for four-argument calls.
31570         (base64_decode_alloc): Likewise.
31571         * lib/base64.c (base64_decode_ctx): If a decode context structure
31572         was passed in use it to ignore newlines.  If a context structure
31573         was _not_ passed in, continue to treat newlines as garbage (this
31574         is the historical behavior).  Formerly base64_decode.
31575         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
31576         takes a decode context structure.
31577         * lib/base64.h (base64_decode): Macro for four-argument calls.
31578         (base64_decode_alloc): Likewise.
31579
31580 2008-05-19  Jim Meyering  <meyering@redhat.com>
31581
31582         avoid a warning from gcc
31583         * lib/trim.c (IF_LINT): Define.
31584         (trim2): Use it to avoid a "may be used uninitialized" warning.
31585
31586         Fix doc typo.
31587         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
31588
31589 2008-05-19  Bruno Haible  <bruno@clisp.org>
31590
31591         * doc/glibc-functions/getpass.texi: Document limits of other
31592         implementations.
31593
31594 2008-05-19  Simon Josefsson  <simon@josefsson.org>
31595             Bruno Haible <bruno@clisp.org>
31596
31597         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
31598
31599 2008-05-18  Bruno Haible  <bruno@clisp.org>
31600
31601         * modules/propername: New file, from GNU gettext.
31602         * lib/propername.h: New file, from GNU gettext.
31603         * lib/propername.c: New file, from GNU gettext.
31604         * MODULES.html.sh (Internationalization functions): Add propername.
31605
31606 2008-05-16  Jim Meyering  <meyering@redhat.com>
31607             Bruno Haible  <bruno@clisp.org>
31608
31609         Avoid some warnings from "gcc -Wshadow".
31610         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
31611
31612 2008-05-15  Eric Blake  <ebb9@byu.net>
31613
31614         Extend previous patch to cygwin 1.7.0.
31615         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
31616         fast implementation in cygwin >= 1.7.0.
31617         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31618         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31619
31620 2008-05-15  Bruno Haible  <bruno@clisp.org>
31621
31622         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
31623         implementation in glibc >= 2.9.
31624         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31625         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31626
31627 2008-05-15  Bruno Haible  <bruno@clisp.org>
31628
31629         * MODULES.html.sh (Internationalization functions): Remove linebreak.
31630         (Unicode string functions): Add unilbrk/*.
31631         Reported by Karl Berry.
31632
31633 2008-05-15  Eric Blake  <ebb9@byu.net>
31634
31635         Fix violation of <stdbool.h> replacement in regex.
31636         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
31637         * lib/regexec.c (re_search_internal): Likewise.
31638         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
31639
31640 2008-05-15  Jim Meyering  <meyering@redhat.com>
31641
31642         avoid distracting test output when git or cvs is not found
31643         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
31644         * tests/test-vc-list-files-git.sh: Likewise.
31645
31646 2008-05-15  Eric Blake  <ebb9@byu.net>
31647
31648         Glibc finally accepted the memmem speedup code, bugzilla #5514.
31649         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
31650         glibc version.
31651         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31652         * doc/posix-functions/strstr.texi (strstr): Likewise.
31653         * lib/str-two-way.h (MAX): Sychronize with glibc.
31654
31655 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
31656
31657         * lib/regcomp.c (optimize_utf8): Add a note on why we test
31658         opr.ctx_type.
31659         (calc_first): Initialize constraint field.
31660         (duplicate_node_closure): Use it instead of special casing ANCHORS.
31661         Fix grammar.
31662         (duplicate_node): Merge constraint field for all node types.
31663         (calc_eclosure_iter): Look at constraint field for all node types.
31664         * lib/regex_internal.c (create_cd_newstate): Don't look at
31665         opr.ctx_type.
31666
31667 2008-05-14  Bruno Haible  <bruno@clisp.org>
31668
31669         Help GCC to do better code generation.
31670         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
31671         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
31672         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
31673         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
31674         Declare with attribute 'malloc' if supported.
31675
31676 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
31677
31678         use "echo STR|wc -c" rather than unportable "expr length STR"
31679         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
31680         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
31681
31682 2008-05-14  Jim Meyering  <meyering@redhat.com>
31683
31684         use dd ibs=$n count=1 ... rather than less-portable head -c$n
31685         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
31686         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
31687         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
31688         via Collin Lasse.
31689
31690 2008-05-14  Eric Blake  <ebb9@byu.net>
31691
31692         Avoid quadratic growth in gl_LIBSOURCES.
31693         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
31694         Suggested by Bruno Haible.
31695
31696         Test xmemdup0.
31697         * modules/xmemdup0-tests: New file.
31698         * tests/test-xmemdup0.c: Likewise.
31699
31700 2008-05-13  Eric Blake  <ebb9@byu.net>
31701
31702         Split xmemdup0 into its own module.
31703         * modules/xmemdup0: New file.
31704         * lib/xmemdup0.h: Likewise.
31705         * lib/xmemdup0.c: Likewise.
31706         * MODULES.html.sh (Memory management functions): Add xmemdup0.
31707         * lib/xalloc.h (xmemdup0): Remove.
31708         * lib/xmalloc.c (xmemdup0): Likewise.
31709
31710 2008-05-13  Eric Blake  <ebb9@byu.net>
31711             Bruno Haible  <bruno@clisp.org>
31712
31713         Reduce number of forks required during autoconf.
31714         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
31715         and gl_LIBSOURCES_DIR.
31716         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
31717         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
31718         m4_syscmd per file.
31719         <m4_foreach_w>: Move...
31720         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
31721
31722 2008-05-13  Eric Blake  <ebb9@byu.net>
31723
31724         * gnulib-tool: Fix various comment typos.
31725
31726 2008-05-12  Bruno Haible  <bruno@clisp.org>
31727
31728         Tailor the linebreaking algorithm.
31729         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
31730
31731 2008-05-12  Bruno Haible  <bruno@clisp.org>
31732
31733         Update to Unicode 5.0.0.
31734         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31735         LBP_JV, LBP_JT. Redistribute values.
31736         (unilbrk_table): Change size.
31737         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
31738         Unicode TR#14 rev. 22.
31739         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31740         LBP_JV, LBP_JT. Redistribute values.
31741         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
31742         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
31743         Update.
31744         * lib/unilbrk/lbrkprop1.h: Regenerated.
31745         * lib/unilbrk/lbrkprop2.h: Regenerated.
31746         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
31747         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
31748         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
31749         Likewise.
31750         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
31751         Likewise.
31752         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
31753         result.
31754         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
31755         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
31756         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
31757         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
31758         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
31759         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
31760
31761 2008-05-11  Bruno Haible  <bruno@clisp.org>
31762
31763         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
31764
31765 2008-05-11  Bruno Haible  <bruno@clisp.org>
31766
31767         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
31768         * modules/unilbrk/gen-lbrk: New file.
31769
31770 2008-05-11  Bruno Haible  <bruno@clisp.org>
31771
31772         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
31773         * m4/sha512.m4 (gl_SHA512): Likewise.
31774
31775 2008-05-11  Jim Meyering  <meyering@redhat.com>
31776
31777         New modules: crypto/sha256, crypto/sha512 (from coreutils)
31778         * modules/crypto/sha256: New file.
31779         * modules/crypto/sha512: Likewise.
31780         * lib/sha256.c: Likewise.
31781         * lib/sha256.h: Likewise.
31782         * lib/sha512.c: Likewise.
31783         * lib/sha512.h: Likewise.
31784         * lib/u64.h: Likewise.
31785         * m4/sha256.m4: Likewise.
31786         * m4/sha512.m4: Likewise.
31787         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
31788
31789 2008-05-10  Bruno Haible  <bruno@clisp.org>
31790
31791         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
31792         (Input/Output <stdio.h>): Add xprintf.
31793         (Signal handling <signal.h>): Add strsignal.
31794         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
31795         (Core language properties): Add func.
31796         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
31797         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
31798         strings.
31799         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
31800         (Input/output): New section.
31801         (File system functions): Add openat-die, stat-macros.
31802         (Networking functions): Add sockets.
31803         (Unicode string functions): Add unictype/*.
31804         (Support for building libraries and executables): Add gperf.
31805         (Support for building documentation): Add agpl-3.0.
31806         (Misc): Add nocrash.
31807
31808 2008-05-10  Bruno Haible  <bruno@clisp.org>
31809
31810         * modules/unictype/gen-ctype: New file.
31811
31812 2008-05-10  Jim Meyering  <meyering@redhat.com>
31813
31814         Make chdir-safer.c more efficient on a system with no symlinks.
31815         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
31816         also if ELOOP is zero.  Suggested by Bruno Haible.
31817
31818         Make chdir-safer.c slightly safer.
31819         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
31820         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
31821
31822         Avoid compile failure on systems without ELOOP (like mingw).
31823         * lib/chdir-safer.c (ELOOP): Define if not already defined.
31824         Reported by Bruno Haible.
31825
31826 2008-05-10  Bruno Haible  <bruno@clisp.org>
31827
31828         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
31829         (is_utf8_encoding): Use a case-insensitive comparison.
31830         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
31831         streq.
31832
31833 2008-05-10  Bruno Haible  <bruno@clisp.org>
31834
31835         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
31836         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
31837         * lib/unilbrk/ulc-common.h (iconv_string_length,
31838         iconv_string_keeping_offsets): Remove declarations.
31839         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
31840         Don't include <iconv.h>, streq.h, xsize.h.
31841         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
31842         conversion.
31843         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
31844         <iconv.h>, streq.h, xsize.h.
31845         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
31846         conversion.
31847         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
31848         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
31849         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
31850         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
31851
31852 2008-05-10  Bruno Haible  <bruno@clisp.org>
31853
31854         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
31855         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
31856
31857         * modules/unilbrk/u32-width-linebreaks-tests: New file.
31858         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
31859
31860         * modules/unilbrk/u16-width-linebreaks-tests: New file.
31861         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
31862
31863         * modules/unilbrk/u8-width-linebreaks-tests: New file.
31864         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
31865
31866         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
31867         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
31868
31869         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
31870         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
31871
31872         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
31873         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
31874
31875         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
31876         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
31877
31878 2008-05-10  Bruno Haible  <bruno@clisp.org>
31879
31880         Split up 'linebreak' module.
31881         * lib/unilbrk.h: New file, based on lib/linebreak.h.
31882         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
31883         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
31884         modifications.
31885         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
31886         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
31887         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
31888         lib/linebreak.c.
31889         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
31890         lib/linebreak.c.
31891         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
31892         lib/linebreak.c.
31893         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
31894         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
31895         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
31896         lib/linebreak.c.
31897         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
31898         lib/linebreak.c.
31899         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
31900         lib/linebreak.c.
31901         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
31902         lib/linebreak.c.
31903         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
31904         lib/linebreak.c.
31905         * modules/unilbrk/base: New file.
31906         * modules/unilbrk/tables: New file.
31907         * modules/unilbrk/u8-possible-linebreaks: New file.
31908         * modules/unilbrk/u16-possible-linebreaks: New file.
31909         * modules/unilbrk/u32-possible-linebreaks: New file.
31910         * modules/unilbrk/ulc-common: New file.
31911         * modules/unilbrk/ulc-possible-linebreaks: New file.
31912         * modules/unilbrk/u8-width-linebreaks: New file.
31913         * modules/unilbrk/u16-width-linebreaks: New file.
31914         * modules/unilbrk/u32-width-linebreaks: New file.
31915         * modules/unilbrk/ulc-width-linebreaks: New file.
31916         * lib/linebreak.h: Remove file.
31917         * lib/linebreak.c: Remove file.
31918         * m4/linebreak.m4: Remove file.
31919         * modules/linebreak: Remove file.
31920         * NEWS: Mention the changes.
31921
31922 2008-05-09  Eric Blake  <ebb9@byu.net>
31923
31924         Add xmemdup0.
31925         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
31926         implementation.
31927         * lib/xmalloc.c (xmemdup0): New C implementation.
31928
31929 2008-05-08  Bruno Haible  <bruno@clisp.org>
31930
31931         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
31932
31933 2008-05-07  Eric Blake  <ebb9@byu.net>
31934
31935         Support cross-compilation of <wctype.h>.
31936         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
31937         AC_CACHE_CHECK.
31938
31939 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
31940
31941         * build-aux/vc-list-files: Add support for bzr.
31942
31943 2008-05-03  Jim Meyering  <meyering@redhat.com>
31944
31945         avoid failed assertion with tight malloc
31946         * tests/test-getndelim2.c: Correct an off-by-one assertion.
31947
31948 2008-05-03  Simon Josefsson  <simon@josefsson.org>
31949
31950         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
31951         are needed from arpa/inet.h.
31952         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
31953         Reported by Bruno Haible.
31954
31955 2008-05-02  Jim Meyering  <meyering@redhat.com>
31956
31957         avoid compilation error on FreeBSD 6
31958         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
31959
31960 2008-05-01  Jim Meyering  <meyering@redhat.com>
31961
31962         useless-if-before-free: correct --help's exit status description
31963         * build-aux/useless-if-before-free (usage): Like grep, exit 0
31964         for one or more matches, etc.  Reported by Bruno Haible.
31965
31966         vc-list-files: make the stand-alone gnulib test work
31967         * modules/vc-list-files-tests (configure.ac):
31968         Define and AC_SUBST abs_aux_dir.
31969         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
31970         $(abs_top_srcdir) to each script and having each of them
31971         duplicate the work of setting PATH, set PATH here, using
31972         the new variable, abs_aux_dir instead.
31973         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
31974         * tests/test-vc-list-files-git.sh: Likewise.
31975         Reported by Bruno Haible.
31976
31977 2008-05-01  Bruno Haible  <bruno@clisp.org>
31978
31979         * lib/getndelim2.c (getndelim2): Fix newsize computation during
31980         reallocation. Rename 'done' to 'found_delimiter'.
31981
31982 2008-05-01  Jim Meyering  <meyering@redhat.com>
31983
31984         vc-list-files: accommodate /bin/sh like the one from Solaris 10
31985         * build-aux/vc-list-files: Use `...`, not $(...).
31986
31987 2008-04-30  Jim Meyering  <meyering@redhat.com>
31988
31989         add tests for vc-list-files
31990         * modules/vc-list-files-tests: New module.
31991         * tests/test-vc-list-files-cvs.sh: New file.
31992         * tests/test-vc-list-files-git.sh: New file.
31993
31994         avoid a warning from gcc
31995         * lib/getndelim2.c (IF_LINT): Define.
31996         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
31997
31998         vc-list-files: work properly with build-aux/cvsu, too
31999         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
32000         to all cvs-based clauses.
32001
32002         vc-list-files: work properly in the CVS+awk case, too
32003         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
32004
32005         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
32006         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
32007         take more than one file argument, so .  Add quotes, just in case $dir
32008         ever contains a shell meta-character.  Prompted by Soren Hansen in
32009         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
32010
32011 2008-04-29  Eric Blake  <ebb9@byu.net>
32012
32013         Optimize getndelim2 to use block operations when possible.
32014         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
32015         freadseek, and memchr2.
32016         * lib/getndelim2.c (getndelim2): Use them for block reads.
32017
32018 2008-04-29  Bruno Haible  <bruno@clisp.org>
32019
32020         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
32021         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32022         * modules/inet_ntop (Depends-on): Add extensions.
32023         * modules/inet_pton (Depends-on): Likewise.
32024         Reported by Simon Josefsson.
32025
32026 2008-04-29  Jim Meyering  <meyering@redhat.com>
32027
32028         When the is more than one match in a block, match all of them.
32029         * build-aux/useless-if-before-free: Iterate through each block
32030         until there are no more matches.
32031
32032         Fix broken useless-if-before-free script.
32033         * build-aux/useless-if-before-free: Fix typo: missing "?" after
32034         the expression to match cast of argument to free-like function.
32035
32036 2008-04-29  Eric Blake  <ebb9@byu.net>
32037
32038         Use new header.
32039         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
32040
32041 2008-04-29  Jim Meyering  <meyering@redhat.com>
32042
32043         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
32044         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
32045         by gnulib to exist and to declare e.g., inet_ntop.
32046         Don't include "inet_ntop.h", now removed.
32047
32048         * m4/arpa_inet_h.m4: Remove trailing blanks.
32049
32050 2008-04-29  Eric Blake  <ebb9@byu.net>
32051
32052         Silence valgrind on safe reads beyond potential array bounds.
32053         * lib/rawmemchr.valgrind: New file.
32054         * lib/strchrnul.valgrind: Likewise.
32055         * modules/rawmemchr (Files): Distribute new file.
32056         * modules/strchrnul (Files): Likewise.
32057         Suggested by Bruno Haible.
32058
32059 2008-04-29  Bruno Haible  <bruno@clisp.org>
32060
32061         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
32062         (inet_ntop, inet_pton): Change portability warning's wording.
32063         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
32064         Invoke gl_CHECK_NEXT_HEADERS.
32065         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
32066         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
32067         set ARPA_INET_H.
32068         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32069         * modules/arpa_inet (Description): No longer only for systems that
32070         lack it.
32071         (Depends-on): Add include_next.
32072         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
32073         HAVE_ARPA_INET_H.
32074
32075 2008-04-29  Jim Meyering  <meyering@redhat.com>
32076
32077         * modules/mkdir (License): Re-license as LGPLv2+.
32078
32079 2008-04-29  Bruno Haible  <bruno@clisp.org>
32080
32081         * modules/rawmemchr (Maintainer): Set to Eric.
32082         * modules/strchrnul (Maintainer): Likewise.
32083
32084 2008-04-29  Simon Josefsson  <simon@josefsson.org>
32085
32086         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
32087         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
32088
32089         * modules/arpa_inet (arpa/inet.h): Use them.
32090
32091 2008-04-28  Eric Blake  <ebb9@byu.net>
32092
32093         Test getndelim2.
32094         * modules/getndelim2-tests: New file.
32095         * tests/test-getndelim2.c: Likewise.
32096         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
32097         stream.
32098         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
32099
32100         * MODULES.html.sh: Document new module.
32101
32102 2008-04-20  Bruno Haible  <bruno@clisp.org>
32103
32104         * lib/c-stack.c (die): Use raise.
32105         * modules/c-stack (Depends-on): Add raise.
32106
32107 2008-04-28  Bruno Haible  <bruno@clisp.org>
32108
32109         Expect rpmatch to be declared.
32110         * lib/yesno.c (rpmatch): Remove declaration.
32111
32112         Declare rpmatch.
32113         * lib/stdlib.in.h (rpmatch): New declaration.
32114         * lib/rpmatch.c: Include <stdlib.h> first.
32115         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
32116         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
32117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
32118         HAVE_RPMATCH.
32119         * modules/rpmatch (Depends-on): Add stdlib, extensions.
32120         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32121         (Include): Set to <stdlib.h>.
32122         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
32123         HAVE_RPMATCH.
32124         * NEWS: Document the change.
32125
32126 2008-04-28  Bruno Haible  <bruno@clisp.org>
32127
32128         Change rpmatch to use nl_langinfo when appropriate.
32129         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
32130         (N_): New macro.
32131         (localized_pattern): New function/macro.
32132         (try): Remove match, nomatch arguments. Copy the pattern into safe
32133         memory before caching it.
32134         (rpmatch): Use localized_pattern. Add translator comments.
32135         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
32136         Suggested by Eric Blake.
32137         * modules/rpmatch (Depends-on): Add stdbool.
32138
32139 2008-04-28  Eric Blake  <ebb9@byu.net>
32140
32141         Add rawmemchr module, matching glibc.
32142         * modules/string (Makefile.am): New indicator.
32143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
32144         * lib/string.in.h (rawmemchr): Declare when appropriate.
32145         * modules/rawmemchr: New file.
32146         * m4/rawmemchr.m4: Likewise.
32147         * lib/rawmemchr.c: Likewise.
32148         * modules/rawmemchr-tests: Likewise.
32149         * tests/test-rawmemchr.c: Likewise.
32150         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
32151         module.
32152         * modules/strchrnul (Depends-on): Add rawmemchr.
32153         * lib/strchrnul.c (strchrnul): Optimize a corner case.
32154
32155         Whitespace cleanup.
32156         * tests/test-strchrnul.c: Reindent.
32157         * lib/strchrnul.c: Likewise.
32158
32159         Optimize and test strchrnul.
32160         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
32161         * modules/strchrnul-tests: New file.
32162         * tests/test-strchrnul.c: Likewise.
32163
32164         Remove intprops dependency.
32165         * modules/memchr (Depends-on): Remove intprops.
32166         * modules/memrchr (Depends-on): Likewise.
32167         * modules/memchr2 (Depends-on): Likewise.
32168         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
32169         * lib/memrchr.c (__memrchr): Likewise.
32170         * lib/memrchr2.c (memchr2): Likewise.
32171         Reported by Simon Josefsson.
32172
32173 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32174
32175         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
32176         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32177
32178 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32179
32180         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
32181
32182         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
32183
32184         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
32185
32186         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
32187         declarations.
32188         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
32189
32190         * m4/inet_pton.m4: Don't check for header files.
32191
32192         * m4/inet_ntop.m4: Don't check for header files.
32193
32194 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32195
32196         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
32197         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
32198         trigger for cygwin).
32199         Reported by Bruno Haible  <bruno@clisp.org>.
32200
32201 2008-04-28  Bruno Haible  <bruno@clisp.org>
32202
32203         * doc/posix-functions/strdup.texi: Mention mingw problem.
32204
32205 2008-04-27  Bruno Haible  <bruno@clisp.org>
32206
32207         * modules/stat-time-tests (Depends-on): Add sleep.
32208         * tests/test-stat-time.c (force_unlink): New function.
32209         (cleanup): Use it.
32210         (test_mtime): Remove the ctime related tests.
32211         (test_ctime): New function, containing the ctime related tests.
32212         (main): Call test_ctime, except on native Windows platforms.
32213
32214 2008-04-27  Bruno Haible  <bruno@clisp.org>
32215
32216         * lib/rpmatch.c (rpmatch): Add some comments.
32217         Reported by James Youngman <jay@gnu.org>.
32218
32219 2008-04-27  Bruno Haible  <bruno@clisp.org>
32220
32221         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
32222         quiet NaNs.
32223
32224 2008-04-27  Bruno Haible  <bruno@clisp.org>
32225
32226         Make test-yesno.sh work on mingw.
32227         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
32228         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
32229         (main): Set stdin to binary mode.
32230         * modules/yesno-tests (Depends-on): Add binary-io.
32231
32232 2008-04-27  Bruno Haible  <bruno@clisp.org>
32233
32234         Fix 'isfinite' on x86, x86_64, ia64 platforms.
32235         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
32236         argument that lie outside the IEEE 854 domain.
32237         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
32238         (gl_ISFINITE): Use it.
32239         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
32240
32241 2008-04-27  Bruno Haible  <bruno@clisp.org>
32242
32243         Allow local renaming in config.h.
32244         * lib/memrchr.c (memrchr): Don't undefine outside libc.
32245
32246 2008-04-27  Bruno Haible  <bruno@clisp.org>
32247
32248         * lib/memchr.c (__memchr): Change type of 'i'.
32249         * lib/memchr2.c (memchr2): Likewise.
32250
32251 2008-04-26  Eric Blake  <ebb9@byu.net>
32252         and Bruno Haible  <bruno@clisp.org>
32253
32254         Optimize and test memrchr.
32255         * modules/memrchr (Depends-on): Add intprops.
32256         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
32257         * modules/memrchr-tests: New file.
32258         * tests/test-memrchr.c: New file.
32259
32260 2008-04-26  Bruno Haible  <bruno@clisp.org>
32261
32262         Add tentative support for DragonFly BSD.
32263         * lib/stdio-impl.h: Add macros for DragonFly BSD.
32264         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
32265         fp.
32266         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32267         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
32268         * lib/fpurge.c (fpurge): Likewise.
32269         * lib/freadable.c (freaadable): Likewise.
32270         * lib/freadahead.c (freadahead): Likewise.
32271         * lib/freading.c (freading): Likewise.
32272         * lib/freadptr.c (freadptr): Likewise.
32273         * lib/freadseek.c (freadptrinc): Likewise.
32274         * lib/fseeko.c (fseeko): Likewise.
32275         * lib/fseterr.c (fseterr): Likewise.
32276         * lib/fwritable.c (fwritable): Likewise.
32277         * lib/fwriting.c (fwriting): Likewise.
32278
32279 2008-04-26  Bruno Haible  <bruno@clisp.org>
32280
32281         * lib/stdio-impl.h: New file.
32282         * lib/fbufmode.c: Include stdio-impl.h.
32283         (fbufmode): Use fp_, remove redundant #defines.
32284         * lib/fflush.c: Include stdio-impl.h.
32285         (clear_ungetc_buffer): Remove redundant #defines.
32286         * lib/fpurge.c: Include stdio-impl.h.
32287         (fpurge): Remove redundant #defines.
32288         * lib/freadable.c: Include stdio-impl.h.
32289         (freadable): Remove redundant #defines.
32290         * lib/freadahead.c: Include stdio-impl.h.
32291         (freadahead): Remove redundant #defines.
32292         * lib/freading.c: Include stdio-impl.h.
32293         (freading): Remove redundant #defines.
32294         * lib/freadptr.c: Include stdio-impl.h.
32295         (freadptr): Remove redundant #defines.
32296         * lib/freadseek.c: Include stdio-impl.h.
32297         (freadptrinc): Remove redundant #defines.
32298         * lib/fseeko.c: Include stdio-impl.h.
32299         (rpl_fseeko): Remove redundant #defines.
32300         * lib/fseterr.c: Include stdio-impl.h.
32301         (fseterr): Remove redundant #defines.
32302         * lib/fwritable.c: Include stdio-impl.h.
32303         (fwritable: Remove redundant #defines.
32304         * lib/fwriting.c: Include stdio-impl.h.
32305         (fwriting): Remove redundant #defines.
32306         * modules/fbufmode (Files): Add lib/stdio-impl.h.
32307         * modules/fflush (Files): Likewise.
32308         * modules/fpurge (Files): Likewise.
32309         * modules/freadable (Files): Likewise.
32310         * modules/freadahead (Files): Likewise.
32311         * modules/freading (Files): Likewise.
32312         * modules/freadptr (Files): Likewise.
32313         * modules/freadseek (Files): Likewise.
32314         * modules/fseeko (Files): Likewise.
32315         * modules/fseterr (Files): Likewise.
32316         * modules/fwritable (Files): Likewise.
32317         * modules/fwriting (Files): Likewise.
32318
32319 2008-04-26  Bruno Haible  <bruno@clisp.org>
32320
32321         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32322         restore_seek_optimization, update_fpos_cache): New functions, extracted
32323         from rpl_fflush.
32324         (rpl_fflush): Use them.
32325         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
32326         (gl_REPLACE_FFLUSH): Use it.
32327
32328 2008-04-26  Bruno Haible  <bruno@clisp.org>
32329
32330         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
32331         on Solaris.
32332         * tests/test-xstrtoimax.sh: Likewise.
32333         * tests/test-xstrtoumax.sh: Likewise.
32334         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32335
32336 2008-04-26  Bruno Haible  <bruno@clisp.org>
32337
32338         * modules/memchr-tests: New file.
32339         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
32340
32341 2008-04-26  Eric Blake  <ebb9@byu.net>
32342             Bruno Haible  <bruno@clisp.org>
32343
32344         * lib/memchr.c: Include intprops.h.
32345         (__memchr): Optimize parallel detection of matching bytes. Rename local
32346         variables. Add explanatory comments.
32347
32348 2008-04-26  Bruno Haible  <bruno@clisp.org>
32349
32350         Fix module 'memchr', broken since 2000-10-28.
32351         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
32352
32353 2008-04-26  Bruno Haible  <bruno@clisp.org>
32354
32355         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
32356         comments.
32357
32358 2008-04-25  Eric Blake  <ebb9@byu.net>
32359
32360         Use native fstatat on cygwin 1.7.0.
32361         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
32362         first.
32363
32364 2008-04-23  Eric Blake  <ebb9@byu.net>
32365
32366         Improve memchr2 performance.
32367         * lib/memchr2.c (memchr2): Further optimize parallel detection of
32368         NUL bytes.
32369         * modules/memchr2 (Depends-on): Use intprops.h.
32370
32371 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32372
32373         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
32374         an inline function instead of a CPP macro.  Patch by Ben Pfaff
32375         <blp@cs.stanford.edu>.
32376
32377 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32378
32379         * lib/arpa_inet.in.h: New file.
32380
32381         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
32382         (Makefile.am): Sed in substitute header file.
32383
32384         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
32385         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
32386
32387         * modules/inet_ntop (configure.ac): Use
32388         gl_ARPA_INET_MODULE_INDICATOR.
32389
32390         * modules/inet_pton (configure.ac): Use
32391         gl_ARPA_INET_MODULE_INDICATOR.
32392
32393 2008-04-22  Jim Meyering  <meyering@redhat.com>
32394
32395         * modules/verify (License): Re-license as LGPLv2+.
32396
32397 2008-04-22  Simon Josefsson  <simon@josefsson.org>
32398
32399         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
32400         parameter to void* as per POSIX standard (MinGW uses char*).
32401
32402 2008-04-21  Bruno Haible  <bruno@clisp.org>
32403
32404         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
32405         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
32406         Define to replacements if REPLACE_ISWCNTRL is 1.
32407         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
32408         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
32409         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
32410         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
32411         what it fixes.
32412         * doc/posix-functions/iswalpha.texi: Likewise.
32413         * doc/posix-functions/iswblank.texi: Likewise.
32414         * doc/posix-functions/iswcntrl.texi: Likewise.
32415         * doc/posix-functions/iswdigit.texi: Likewise.
32416         * doc/posix-functions/iswgraph.texi: Likewise.
32417         * doc/posix-functions/iswlower.texi: Likewise.
32418         * doc/posix-functions/iswprint.texi: Likewise.
32419         * doc/posix-functions/iswpunct.texi: Likewise.
32420         * doc/posix-functions/iswspace.texi: Likewise.
32421         * doc/posix-functions/iswupper.texi: Likewise.
32422         * doc/posix-functions/iswxdigit.texi: Likewise.
32423         Reported by Alain Guibert.
32424
32425 2008-04-21  Bruno Haible  <bruno@clisp.org>
32426
32427         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
32428         Patch by Alain Guibert.
32429
32430 2008-04-21  Bruno Haible  <bruno@clisp.org>
32431
32432         Fix test failures on mingw.
32433         * tests/test-xstrtol.c (print_no_progname): New function.
32434         (main): Install it in error_print_progname hook.
32435         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
32436         * tests/test-xstrtoimax.sh: Likewise.
32437         * tests/test-xstrtoumax.sh: Likewise.
32438
32439 2008-04-21  Bruno Haible  <bruno@clisp.org>
32440
32441         Fix test failure on mingw.
32442         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
32443
32444 2008-04-21  Bruno Haible  <bruno@clisp.org>
32445
32446         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
32447         Actually assign a value.
32448
32449 2008-04-20  Bruno Haible  <bruno@clisp.org>
32450
32451         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
32452         take 2.
32453         * lib/canonicalize.c (canonicalize_file_name): Elide if the
32454         'canonicalize-lgpl' module is also used.
32455         * lib/canonicalize-lgpl.c: Undo last change.
32456         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
32457
32458 2008-04-20  Bruno Haible  <bruno@clisp.org>
32459
32460         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
32461         config.h. Provide _mkdir based fallback for mingw.
32462         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
32463         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
32464         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
32465         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
32466         rather than defining mkdir in config.h.
32467         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
32468         (gl_SYS_STAT_H_DEFAULTS): New macro.
32469         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
32470         HAVE_IO_H any more.
32471         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
32472         HAVE_DECL_MKDIR and HAVE_IO_H.
32473
32474 2008-04-20  Bruno Haible  <bruno@clisp.org>
32475
32476         * lib/isapipe.c: Port to native Windows platforms.
32477
32478 2008-04-20  Bruno Haible  <bruno@clisp.org>
32479
32480         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
32481
32482 2008-04-21  Eric Blake  <ebb9@byu.net>
32483
32484         Work around preprocessors that don't handle UINTMAX_MAX.
32485         * lib/memchr2.c (memchr2): Avoid embedded #if.
32486         Reported by Alain Guibert, fix suggested by Bruno Haible.
32487
32488 2008-04-21  Simon Josefsson  <simon@josefsson.org>
32489
32490         * doc/posix-functions/strftime.texi (strftime): Explain better
32491         Windows incompatibility.  Suggested by Micah Cowan
32492         <micah@cowan.name>.
32493
32494 2008-04-20  Bruno Haible  <bruno@clisp.org>
32495
32496         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
32497         unistr/u8-mblen.
32498
32499 2008-04-20  Bruno Haible  <bruno@clisp.org>
32500
32501         Fix test failure on platforms with non-GNU iconv.
32502         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
32503         (U_TO_U8): Use it, rather than u16_to_u8.
32504         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
32505         units at the end of the input string.
32506         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
32507
32508 2008-04-20  Bruno Haible  <bruno@clisp.org>
32509
32510         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
32511         when the resulting length is 0.
32512         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
32513
32514 2008-04-20  Bruno Haible  <bruno@clisp.org>
32515
32516         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
32517         works.
32518         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
32519
32520 2008-04-20  Bruno Haible  <bruno@clisp.org>
32521
32522         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
32523         * modules/tsearch-tests (configure.ac): Test for initstate function.
32524
32525 2008-04-20  Bruno Haible  <bruno@clisp.org>
32526
32527         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
32528         for nlink_t if missing.
32529         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
32530
32531 2008-04-19  Bruno Haible  <bruno@clisp.org>
32532
32533         Work around snprintf bug on Linux libc5.
32534         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
32535         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32536         gl_SNPRINTF_SIZE1.
32537         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32538         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
32539         that test failed.
32540         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
32541         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
32542         * modules/snprintf (Files): Add m4/printf.m4.
32543         * modules/vsnprintf (Files): Likewise.
32544         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
32545         * doc/posix-functions/vsnprintf.texi: Likewise.
32546
32547 2008-04-19  Bruno Haible  <bruno@clisp.org>
32548
32549         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
32550         from 0.0058 to less than 10^-7.
32551
32552 2008-04-19  Bruno Haible  <bruno@clisp.org>
32553
32554         Fix rounding when a precision is given.
32555         * lib/vasnprintf.c (is_borderline): New function.
32556         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
32557         9...9x.
32558         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
32559         %e, %g.
32560         * tests/test-vasprintf-posix.c (test_function): Likewise.
32561         * tests/test-snprintf-posix.h (test_function): Likewise.
32562         * tests/test-sprintf-posix.h (test_function): Likewise.
32563         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
32564         * tests/test-printf-posix.h (test_function): Likewise.
32565         * tests/test-printf-posix.output: Update.
32566         Reported by John Darrington <john@darrington.wattle.id.au> via
32567         Ben Pfaff <blp@cs.stanford.edu>.
32568
32569 2008-04-18  Simon Josefsson  <simon@josefsson.org>
32570
32571         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
32572         Suggested by Bruno Haible <bruno@clisp.org>.
32573
32574 2008-04-17  Bruno Haible  <bruno@clisp.org>
32575
32576         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
32577         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
32578         implementation.
32579         Patch by Bruce Merry <bmerry@gmail.com>.
32580
32581 2008-04-17  Simon Josefsson  <simon@josefsson.org>
32582
32583         * doc/posix-functions/strftime.texi (strftime): Mention that %e
32584         doesn't work under Windows.
32585
32586 2008-04-16  Bruno Haible  <bruno@clisp.org>
32587
32588         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
32589         New macros.
32590         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
32591         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
32592         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
32593         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
32594         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
32595         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
32596         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
32597         macros.
32598         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
32599         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
32600         Northern Sotho, Uighur.
32601
32602 2008-04-16  Bruno Haible  <bruno@clisp.org>
32603
32604         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
32605         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
32606         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
32607         Reported by Daniel Bergström <daniel@octocode.com>.
32608
32609 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
32610             Bruno Haible  <bruno@clisp.org>
32611
32612         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
32613         function.
32614         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
32615         New functions, mostly extracted from gl_locale_name_default.
32616         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
32617
32618 2008-04-16  Eric Blake  <ebb9@byu.net>
32619
32620         Adjust strtod detection to catch glibc 2.7 bug.
32621         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
32622         Reported by John Gatewood Ham.
32623
32624 2008-04-16  Bruno Haible  <bruno@clisp.org>
32625
32626         Add tentative support for Linux libc5.
32627         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
32628         * lib/fpurge.c (fpurge): Likewise.
32629         * lib/freadable.c (freadable): Likewise.
32630         * lib/freadahead.c (freadahead): Likewise.
32631         * lib/freading.c (freading): Likewise.
32632         * lib/freadptr.c (freadptr): Likewise.
32633         * lib/freadseek.c (freadptrinc): Likewise.
32634         * lib/fseeko.c (rpl_fseeko): Likewise.
32635         * lib/fseterr.c (fseterr): Likewise.
32636         * lib/fwritable.c (fwritable): Likewise.
32637         * lib/fwriting.c (fwriting): Likewise.
32638         Reported by Alain Guibert <alguibert+bts@free.fr>.
32639
32640 2008-04-15  Bruno Haible  <bruno@clisp.org>
32641
32642         * modules/mathl (configure.ac): Define module indicator.
32643
32644 2008-04-15  Bruno Haible  <bruno@clisp.org>
32645
32646         * lib/logl.c (logl): Remove unused variables.
32647
32648 2008-04-15  Bruno Haible  <bruno@clisp.org>
32649
32650         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
32651         fails.
32652
32653 2008-04-15  Bruno Haible  <bruno@clisp.org>
32654
32655         * lib/trim.c (trim2): Fix argument of isspace() macro.
32656
32657 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
32658
32659         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
32660         to 0.
32661         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
32662
32663 2008-04-14  Bruno Haible  <bruno@clisp.org>
32664
32665         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
32666         AC_LANG_PROGRAM argument.
32667         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
32668         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
32669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32670         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32671         * m4/math_h.m4 (gl_MATH_H): Likewise.
32672         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
32673         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32674         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32675         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
32676         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32677         * m4/regex.m4 (gl_REGEX): Likewise.
32678         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
32679         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
32680         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32681         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
32682         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32683         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32684         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32685         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32686
32687 2008-04-14  Jim Meyering  <meyering@redhat.com>
32688
32689         test-strtod: fix typos: s/abs/fabs/
32690         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
32691
32692 2008-04-13  Bruno Haible  <bruno@clisp.org>
32693
32694         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
32695         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
32696         module is also used and while not building the reloc-wrapper.
32697
32698 2008-04-13  Bruno Haible  <bruno@clisp.org>
32699
32700         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
32701
32702 2008-04-13  Bruno Haible  <bruno@clisp.org>
32703
32704         Fix AIX compilation failure introduced on 2008-04-02.
32705         * tests/test-frexp.c (exp): Undefine before redefining.
32706         * tests/test-frexpl.c (exp): Likewise.
32707
32708 2008-04-13  Bruno Haible  <bruno@clisp.org>
32709
32710         Work around a HP-UX stdio bug.
32711         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
32712         * tests/test-ftello.c (main): Likewise.
32713         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
32714         * doc/posix-functions/ftello.texi: Likewise.
32715
32716 2008-04-13  Bruno Haible  <bruno@clisp.org>
32717
32718         Make test-signbit pass on HP-UX/hppa.
32719         * tests/test-signbit.c (minus_zerol): New variable.
32720         (test_signbitl): Use it.
32721
32722 2008-04-13  Bruno Haible  <bruno@clisp.org>
32723
32724         Make truncl work on OSF/1 4.0.
32725         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
32726         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32727         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
32729         HAVE_DECL_TRUNCL.
32730         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
32731         HAVE_DECL_TRUNCL.
32732         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
32733
32734 2008-04-13  Bruno Haible  <bruno@clisp.org>
32735
32736         * lib/unictype.h: Remove trailing comma from enumeration definitions.
32737
32738 2008-04-13  Bruno Haible  <bruno@clisp.org>
32739
32740         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
32741         expression, so as to avoid HP-UX 11 cc compiler bug.
32742
32743 2008-04-13  Bruno Haible  <bruno@clisp.org>
32744
32745         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
32746
32747 2008-04-13  Bruno Haible  <bruno@clisp.org>
32748
32749         * lib/git-merge-changelog.c: Remove empty declaration outside of
32750         functions.
32751
32752 2008-04-13  Bruno Haible  <bruno@clisp.org>
32753
32754         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
32755
32756 2008-04-13  Bruno Haible  <bruno@clisp.org>
32757
32758         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
32759         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
32760         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
32761         also if it exists but lacks definitions of the SHUT_* macros.
32762         * modules/sys_socket (Description): Update.
32763         Reported by Elbert Pol <e.pol@chello.nl>.
32764
32765 2008-04-13  Bruno Haible  <bruno@clisp.org>
32766
32767         * lib/localcharset.c (OS2): Don't redefine if already defined.
32768         Reported by Elbert Pol <e.pol@chello.nl>.
32769
32770 2008-04-13  Bruno Haible  <bruno@clisp.org>
32771
32772         * lib/binary-io.h [__EMX__]: Include <io.h>.
32773         Reported by Elbert Pol <e.pol@chello.nl>.
32774
32775 2008-04-12  Bruno Haible  <bruno@clisp.org>
32776
32777         * lib/fpucw.h: Enable the definitions also for x86_64.
32778         Needed for NetBSD/x86_64.
32779         Reported by Thomas Klausner <tk@giga.or.at>.
32780
32781 2008-04-12  Bruno Haible  <bruno@clisp.org>
32782
32783         * tests/test-strtod.c: Include isnand.h.
32784         (main): Use isnand instead of isnan.
32785         Reported by Jim Meyering.
32786
32787 2008-04-12  Bruno Haible  <bruno@clisp.org>
32788
32789         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
32790         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32791
32792 2008-04-12  Jim Meyering  <meyering@redhat.com>
32793
32794         * m4/math_h.m4 (gl_MATH_H): Fix typos.
32795
32796 2008-04-12  Bruno Haible  <bruno@clisp.org>
32797
32798         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
32799         Reported by Elbert Pol <e.pol@chello.nl>.
32800
32801 2008-04-12  Eric Blake  <ebb9@byu.net>
32802
32803         Work around Solaris 10 math.h bug.
32804         * m4/math_h.m4 (gl_MATH_H): Check for bug.
32805         (gl_MATH_H_DEFAULTS): Set up default.
32806         * modules/math (Makefile.am): Replace new indicators.
32807         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
32808         * tests/test-math.c (main): Test this.
32809         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
32810         * doc/posix-headers/math.texi (math.h): Mention bug.
32811         Reported by Nelson H. F. Beebe and Jim Meyering.
32812
32813 2008-04-11  Bruno Haible  <bruno@clisp.org>
32814
32815         Adapt to future versions of Apple GCC.
32816         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
32817         Reported by Peter O'Gorman <peter@pogma.com>.
32818
32819 2008-04-11  Bruno Haible  <bruno@clisp.org>
32820
32821         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
32822
32823 2008-04-11  Bruno Haible  <bruno@clisp.org>
32824
32825         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
32826
32827         * modules/getaddrinfo-tests (Makefile.am): Define
32828         test_getaddrinfo_LDADD.
32829
32830 2008-04-11  Bruno Haible  <bruno@clisp.org>
32831
32832         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
32833         (init): Fix syntax error.
32834         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
32835         is declared.
32836
32837 2008-04-11  Bruno Haible  <bruno@clisp.org>
32838
32839         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
32840         * modules/glob (Depends-on): Add stdbool.
32841
32842 2008-04-11  Bruno Haible  <bruno@clisp.org>
32843
32844         * lib/trim.c: Include <string.h>.
32845
32846 2008-04-11  Eric Blake  <ebb9@byu.net>
32847
32848         Avoid compile failure on OS/2.
32849         * lib/regex_internal.h (internal_function): Disable optimization
32850         on OS/2 (__EMX__), where it caused compiler error.
32851         Reported by Elbert Pol.
32852
32853 2008-04-11  Bruno Haible  <bruno@clisp.org>
32854
32855         Flush the standard error stream before aborting. Needed on mingw.
32856         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
32857         * tests/test-array_list.c (ASSERT): Likewise.
32858         * tests/test-array_oset.c (ASSERT): Likewise.
32859         * tests/test-avltree_list.c (ASSERT): Likewise.
32860         * tests/test-avltree_oset.c (ASSERT): Likewise.
32861         * tests/test-avltreehash_list.c (ASSERT): Likewise.
32862         * tests/test-binary-io.c (ASSERT): Likewise.
32863         * tests/test-byteswap.c (ASSERT): Likewise.
32864         * tests/test-c-ctype.c (ASSERT): Likewise.
32865         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
32866         * tests/test-c-strcasestr.c (ASSERT): Likewise.
32867         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
32868         * tests/test-c-strstr.c (ASSERT): Likewise.
32869         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
32870         * tests/test-canonicalize.c (ASSERT): Likewise.
32871         * tests/test-carray_list.c (ASSERT): Likewise.
32872         * tests/test-ceilf1.c (ASSERT): Likewise.
32873         * tests/test-ceilf2.c (ASSERT): Likewise.
32874         * tests/test-ceill.c (ASSERT): Likewise.
32875         * tests/test-count-one-bits.c (ASSERT): Likewise.
32876         * tests/test-fbufmode.c (ASSERT): Likewise.
32877         * tests/test-fflush2.c (ASSERT): Likewise.
32878         * tests/test-floorf1.c (ASSERT): Likewise.
32879         * tests/test-floorf2.c (ASSERT): Likewise.
32880         * tests/test-floorl.c (ASSERT): Likewise.
32881         * tests/test-fopen.c (ASSERT): Likewise.
32882         * tests/test-fpending.c (ASSERT): Likewise.
32883         * tests/test-fprintf-posix.c (ASSERT): Likewise.
32884         * tests/test-fpurge.c (ASSERT): Likewise.
32885         * tests/test-freadable.c (ASSERT): Likewise.
32886         * tests/test-freadahead.c (ASSERT): Likewise.
32887         * tests/test-freading.c (ASSERT): Likewise.
32888         * tests/test-freadptr.c (ASSERT): Likewise.
32889         * tests/test-freadptr2.c (ASSERT): Likewise.
32890         * tests/test-freadseek.c (ASSERT): Likewise.
32891         * tests/test-freopen.c (ASSERT): Likewise.
32892         * tests/test-frexp.c (ASSERT): Likewise.
32893         * tests/test-frexpl.c (ASSERT): Likewise.
32894         * tests/test-fseek.c (ASSERT): Likewise.
32895         * tests/test-fseeko.c (ASSERT): Likewise.
32896         * tests/test-fstrcmp.c (ASSERT): Likewise.
32897         * tests/test-ftell.c (ASSERT): Likewise.
32898         * tests/test-ftello.c (ASSERT): Likewise.
32899         * tests/test-func.c (ASSERT): Likewise.
32900         * tests/test-fwritable.c (ASSERT): Likewise.
32901         * tests/test-fwriting.c (ASSERT): Likewise.
32902         * tests/test-getdelim.c (ASSERT): Likewise.
32903         * tests/test-getline.c (ASSERT): Likewise.
32904         * tests/test-i-ring.c (ASSERT): Likewise.
32905         * tests/test-iconv-utf.c (ASSERT): Likewise.
32906         * tests/test-iconv.c (ASSERT): Likewise.
32907         * tests/test-isfinite.c (ASSERT): Likewise.
32908         * tests/test-isnand.c (ASSERT): Likewise.
32909         * tests/test-isnanf.c (ASSERT): Likewise.
32910         * tests/test-isnanl.h (ASSERT): Likewise.
32911         * tests/test-ldexpl.c (ASSERT): Likewise.
32912         * tests/test-linked_list.c (ASSERT): Likewise.
32913         * tests/test-linkedhash_list.c (ASSERT): Likewise.
32914         * tests/test-localename.c (ASSERT): Likewise.
32915         * tests/test-lseek.c (ASSERT): Likewise.
32916         * tests/test-mbscasecmp.c (ASSERT): Likewise.
32917         * tests/test-mbscasestr1.c (ASSERT): Likewise.
32918         * tests/test-mbscasestr2.c (ASSERT): Likewise.
32919         * tests/test-mbscasestr3.c (ASSERT): Likewise.
32920         * tests/test-mbscasestr4.c (ASSERT): Likewise.
32921         * tests/test-mbschr.c (ASSERT): Likewise.
32922         * tests/test-mbscspn.c (ASSERT): Likewise.
32923         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
32924         * tests/test-mbspbrk.c (ASSERT): Likewise.
32925         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
32926         * tests/test-mbsrchr.c (ASSERT): Likewise.
32927         * tests/test-mbsspn.c (ASSERT): Likewise.
32928         * tests/test-mbsstr1.c (ASSERT): Likewise.
32929         * tests/test-mbsstr2.c (ASSERT): Likewise.
32930         * tests/test-mbsstr3.c (ASSERT): Likewise.
32931         * tests/test-memchr2.c (ASSERT): Likewise.
32932         * tests/test-memmem.c (ASSERT): Likewise.
32933         * tests/test-open.c (ASSERT): Likewise.
32934         * tests/test-printf-frexp.c (ASSERT): Likewise.
32935         * tests/test-printf-frexpl.c (ASSERT): Likewise.
32936         * tests/test-printf-posix.c (ASSERT): Likewise.
32937         * tests/test-quotearg.c (ASSERT): Likewise.
32938         * tests/test-rbtree_list.c (ASSERT): Likewise.
32939         * tests/test-rbtree_oset.c (ASSERT): Likewise.
32940         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
32941         * tests/test-round1.c (ASSERT): Likewise.
32942         * tests/test-roundf1.c (ASSERT): Likewise.
32943         * tests/test-roundl.c (ASSERT): Likewise.
32944         * tests/test-signbit.c (ASSERT): Likewise.
32945         * tests/test-sleep.c (ASSERT): Likewise.
32946         * tests/test-snprintf-posix.c (ASSERT): Likewise.
32947         * tests/test-snprintf.c (ASSERT): Likewise.
32948         * tests/test-sprintf-posix.c (ASSERT): Likewise.
32949         * tests/test-stat-time.c (ASSERT): Likewise.
32950         * tests/test-strcasestr.c (ASSERT): Likewise.
32951         * tests/test-strerror.c (ASSERT): Likewise.
32952         * tests/test-striconv.c (ASSERT): Likewise.
32953         * tests/test-striconveh.c (ASSERT): Likewise.
32954         * tests/test-striconveha.c (ASSERT): Likewise.
32955         * tests/test-strsignal.c (ASSERT): Likewise.
32956         * tests/test-strstr.c (ASSERT): Likewise.
32957         * tests/test-strtod.c (ASSERT): Likewise.
32958         * tests/test-trunc1.c (ASSERT): Likewise.
32959         * tests/test-trunc2.c (ASSERT): Likewise.
32960         * tests/test-truncf1.c (ASSERT): Likewise.
32961         * tests/test-truncf2.c (ASSERT): Likewise.
32962         * tests/test-truncl.c (ASSERT): Likewise.
32963         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
32964         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
32965         * tests/test-vasnprintf.c (ASSERT): Likewise.
32966         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
32967         * tests/test-vasprintf.c (ASSERT): Likewise.
32968         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
32969         * tests/test-vprintf-posix.c (ASSERT): Likewise.
32970         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
32971         * tests/test-vsnprintf.c (ASSERT): Likewise.
32972         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
32973         * tests/test-wcwidth.c (ASSERT): Likewise.
32974         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
32975         * tests/test-xprintf-posix.c (ASSERT): Likewise.
32976         * tests/test-xvasprintf.c (ASSERT): Likewise.
32977         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
32978         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
32979         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
32980         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
32981         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
32982         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
32983         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
32984         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
32985         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
32986         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
32987         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
32988         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
32989         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
32990         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
32991         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
32992         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
32993         * tests/unictype/test-block_list.c (ASSERT): Likewise.
32994         * tests/unictype/test-block_of.c (ASSERT): Likewise.
32995         * tests/unictype/test-block_test.c (ASSERT): Likewise.
32996         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
32997         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
32998         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
32999         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
33000         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
33001         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
33002         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
33003         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
33004         * tests/unictype/test-combining.c (ASSERT): Likewise.
33005         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
33006         * tests/unictype/test-digit.c (ASSERT): Likewise.
33007         * tests/unictype/test-mirror.c (ASSERT): Likewise.
33008         * tests/unictype/test-numeric.c (ASSERT): Likewise.
33009         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
33010         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
33011         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
33012         * tests/unictype/test-scripts.c (ASSERT): Likewise.
33013         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
33014         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
33015         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
33016         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
33017         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
33018         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
33019         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
33020         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
33021         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
33022         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
33023         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
33024         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
33025         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
33026         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
33027         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
33028         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
33029         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
33030         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
33031         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
33032         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
33033         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
33034         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
33035         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
33036         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
33037         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
33038         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
33039         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
33040         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
33041         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
33042         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
33043         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
33044         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
33045         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
33046         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
33047         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
33048         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
33049         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
33050         Reported by Eric Blake.
33051
33052 2008-04-11  Bruno Haible  <bruno@clisp.org>
33053
33054         * lib/wchar.in.h: Tweak comment.
33055
33056 2008-04-11  Bruno Haible  <bruno@clisp.org>
33057
33058         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
33059         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
33060         gl_COMMON.
33061         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
33062
33063 2008-04-11  Bruno Haible  <bruno@clisp.org>
33064
33065         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
33066
33067 2008-04-11  Simon Josefsson  <simon@josefsson.org>
33068
33069         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
33070         of attempting to use non-existing /dev/*random.  Based on patch
33071         from Adam Strzelecki <ono@java.pl> in
33072         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
33073
33074 2008-04-08  Bruno Haible  <bruno@clisp.org>
33075
33076         Add tentative support for emx+gcc.
33077         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
33078         * lib/fpurge.c (fpurge): Likewise.
33079         * lib/freadable.c (freadable): Likewise.
33080         * lib/freadahead.c (freadahead): Likewise.
33081         * lib/freading.c (freading): Likewise.
33082         * lib/freadptr.c (freadptr): Likewise.
33083         * lib/freadseek.c (freadptrinc): Likewise.
33084         * lib/fseeko.c (rpl_fseeko): Likewise.
33085         * lib/fseterr.c (fseterr): Likewise.
33086         * lib/fwritable.c (fwritable): Likewise.
33087         * lib/fwriting.c (fwriting): Likewise.
33088         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
33089
33090 2008-04-09  Eric Blake  <ebb9@byu.net>
33091
33092         Avoid some autoconf warnings.
33093         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
33094         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
33095         * m4/afs.m4 (gl_AFS): Likewise.
33096         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
33097         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
33098         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33099         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
33100         (gl_INTEGER_TYPE_SUFFIX): Likewise.
33101         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
33102         (AC_CHECK_DECLS_ONCE): Likewise.
33103         Rename file...
33104         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
33105         gnulib-tool requires autoconf 2.59 or better.
33106         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
33107
33108 2008-04-08  Eric Blake  <ebb9@byu.net>
33109
33110         Use 'git describe --match' if present (added in git 1.5.5).
33111         * build-aux/git-version-gen: Limit result to tags that match 'v*'
33112         if possible.
33113
33114 2008-04-08  Bruno Haible  <bruno@clisp.org>
33115
33116         Add tentative support for OpenServer.
33117         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
33118         _ptr, _cnt.
33119         * lib/fpurge.c (fpurge): Likewise.
33120         * lib/freadable.c (freadable): Likewise.
33121         * lib/freadahead.c (freadahead): Likewise.
33122         * lib/freading.c (freading): Likewise.
33123         * lib/freadptr.c (freadptr): Likewise.
33124         * lib/freadseek.c (freadptrinc): Likewise.
33125         * lib/fseeko.c (rpl_fseeko): Likewise.
33126         * lib/fseterr.c (fseterr): Likewise.
33127         * lib/fwritable.c (fwritable): Likewise.
33128         * lib/fwriting.c (fwriting): Likewise.
33129         Reported by Roger Cornelius <rac@tenzing.org> and
33130         Brian K. White <brian@aljex.com>.
33131
33132 2008-04-06  Jim Meyering  <meyering@redhat.com>
33133
33134         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
33135
33136 2008-04-06  Bruno Haible  <bruno@clisp.org>
33137
33138         Avoid possible error with non-ASCII bytes in UTF-8 locales.
33139         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
33140         * tests/test-printf-posix.sh: Likewise.
33141         * tests/test-vfprintf-posix.sh: Likewise.
33142         * tests/test-vprintf-posix.sh: Likewise.
33143         * tests/test-xprintf-posix.sh: Likewise.
33144
33145 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33146
33147         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
33148         hide error from 'ls', needed on OS/2.
33149         Report by Elbert Pol <elbert.pol@gmail.com>.
33150
33151 2008-04-04  Eric Blake  <ebb9@byu.net>
33152
33153         Make test-fseeko.c failures meaningful.
33154         * tests/test-fseeko.c: Print line number on failure.
33155         * tests/test-fseek.c: Likewise.
33156         Reported by Nelson H. F. Beebe.
33157
33158         Improve strtod bug detection check.
33159         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
33160         required for Solaris 10.
33161         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
33162
33163 2008-04-04  Bruno Haible  <bruno@clisp.org>
33164
33165         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
33166         by m4/setenv.m4.
33167
33168 2008-04-03  Eric Blake  <ebb9@byu.net>
33169
33170         Ensure sane .version contents.
33171         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
33172         version string.
33173         * build-aux/git-version-gen: Improve documentation.
33174
33175         Make GNU make output nicer.
33176         * top/GNUmakefile [!_have-Makefile]: Add dependency on
33177         MAKECMDGOALS to enforce message for all command line targets.  Set
33178         srcdir for use in maint.mk.
33179
33180         Another maintainer tweak.
33181         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
33182         a target that regenerates version.
33183
33184 2008-04-03  Jim Meyering  <meyering@redhat.com>
33185
33186         vc-list-files: don't cause coreutils "make po-check" failure
33187         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
33188
33189 2008-04-03  Eric Blake  <ebb9@byu.net>
33190
33191         Allow VPATH usage of vc-list-files.
33192         * build-aux/vc-list-files (scriptversion): Add timestamp.
33193         (options): Add --help, --version, -C.
33194         (CVS): Support installed cvsu.
33195
33196 2008-04-02  Bruno Haible  <bruno@clisp.org>
33197
33198         Avoid some "statement with no effect" warnings from gcc.
33199         * tests/test-wctype.c (main): Explicitly ignore unused values.
33200         Reported by Jim Meyering.
33201
33202 2008-04-02  Jim Meyering  <meyering@redhat.com>
33203
33204         Avoid some warnings from "gcc -Wshadow".
33205         * tests/test-frexp.c (exp): Define to a different identifier.
33206         * tests/test-frexpl.c (exp): Likewise.
33207
33208 2008-04-03  Jim Meyering  <meyering@redhat.com>
33209
33210         bootstrap: remove dangling *.[ch] symlinks from lib
33211         * build-aux/bootstrap [dangling symlink removal]: Move find's
33212         -depth option to precede all others, to avoid a warning.
33213         Remove *.[ch] files too, and from "$source_base" (usually lib/).
33214
33215 2008-04-02  Bruno Haible  <bruno@clisp.org>
33216
33217         Avoid some warnings from "gcc -Wshadow".
33218         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
33219         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
33220         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
33221         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
33222         Reported by Jim Meyering.
33223
33224 2008-04-01  Bruno Haible  <bruno@clisp.org>
33225
33226         Fix test to work on IRIX 6.5 with cc.
33227         * tests/test-math.c (numeric_equal): New function.
33228         (main): Use it.
33229
33230 2008-04-01  Bruno Haible  <bruno@clisp.org>
33231
33232         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
33233
33234 2008-04-01  Bruno Haible  <bruno@clisp.org>
33235
33236         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
33237         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33238         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
33239         (Depends-on): Remove math.
33240
33241         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
33242         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33243         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
33244         (Depends-on): Remove math.
33245
33246         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
33247         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33248         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
33249         (Depends-on): Remove math.
33250         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
33251         (Depends-on): Remove math.
33252
33253         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
33254         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33255         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
33256         (Depends-on): Remove math.
33257         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
33258         (Depends-on): Remove math.
33259
33260         * tests/test-round1.c: Include nan.h.
33261         (main): Use NaNd instead of NAN.
33262         * modules/round-tests (Files): Add tests/nan.h.
33263
33264         * tests/test-trunc1.c: Include nan.h.
33265         (main): Use NaNd instead of NAN.
33266         * modules/trunc-tests (Files): Add tests/nan.h.
33267
33268         * tests/test-roundf1.c: Include nan.h.
33269         (main): Use NaNf instead of NAN.
33270         * modules/roundf-tests (Files): Add tests/nan.h.
33271
33272         * tests/test-truncf1.c: Include nan.h.
33273         (main): Use NaNf instead of NAN.
33274         * modules/truncf-tests (Files): Add tests/nan.h.
33275
33276         * tests/test-ceilf1.c: Include nan.h.
33277         (main): Use NaNf instead of NAN.
33278         * modules/ceilf-tests (Files): Add tests/nan.h.
33279
33280         * tests/test-floorf1.c: Include nan.h.
33281         (main): Use NaNf instead of NAN.
33282         * modules/floorf-tests (Files): Add tests/nan.h.
33283
33284         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
33285         (main): Use NaNf instead of NAN.
33286         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
33287
33288         * tests/test-isnand.c: Include nan.h instead of <math.h>.
33289         (main): Use NaNd instead of NAN.
33290         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
33291
33292         * tests/test-frexp.c: Include nan.h.
33293         (main): Use NaNd instead of NAN.
33294         * modules/frexp-tests (Files): Add tests/nan.h.
33295
33296         * lib/isnan.c: Don't include <math.h>.
33297         (FUNC): Don't use NAN macro.
33298         * modules/isnand-nolibm (Depends-on): Remove math.
33299         * modules/isnanf-nolibm (Depends-on): Remove math.
33300         * modules/isnanl (Depends-on): Remove math.
33301         * modules/isnanl-nolibm (Depends-on): Remove math.
33302
33303         * tests/nan.h: New file.
33304
33305 2008-04-01  Eric Blake  <ebb9@byu.net>
33306
33307         Fix typos.
33308         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
33309         values to be the right type.
33310
33311         For now, cater to gnulib strtod inaccuracies.
33312         * tests/test-strtod.c (main): Allow 1-ulp error on expected
33313         fractional results.  While not as nice from a QoI perspective, it
33314         is a quicker patch than correctly implementing decimal to binary
33315         rounding.
33316
33317 2008-03-31  Eric Blake  <ebb9@byu.net>
33318
33319         Guarantee a definition of NAN.
33320         * lib/math.in.h (NAN): Define if missing.
33321         * tests/test-math.c (main): Test it.
33322         * doc/posix-headers/math.texi (math.h): Document this.
33323         * lib/isnan.c (rpl_isnand): Use it.
33324         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
33325         * tests/test-floorf1.c (NaN): Likewise.
33326         * tests/test-frexp.c (NaN): Likewise.
33327         * tests/test-isnand.c (NaN): Likewise.
33328         * tests/test-isnanf.c (NaN): Likewise.
33329         * tests/test-round1.c (NaN): Likewise.
33330         * tests/test-roundf1.c (NaN): Likewise.
33331         * tests/test-snprintf-posix.h (NaN): Likewise.
33332         * tests/test-sprintf-posix.h (NaN): Likewise.
33333         * tests/test-trunc1.c (NaN): Likewise.
33334         * tests/test-truncf1.c (NaN): Likewise.
33335         * tests/test-vasnprintf-posix.c (NaN): Likewise.
33336         * tests/test-vasprintf-posix.c (NaN): Likewise.
33337         * modules/isnand-nolibm (Depends-on): Add math.
33338         * modules/isnanf-nolibm (Depends-on): Likewise.
33339         * modules/isnanl (Depends-on): Likewise.
33340         * modules/isnanl-nolibm (Depends-on): Likewise.
33341         * modules/snprintf-posix-tests (Depends-on): Likewise.
33342         * modules/sprintf-posix-tests (Depends-on): Likewise.
33343         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
33344         * modules/vsprintf-posix-tests (Depends-on): Likewise.
33345         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
33346         * modules/vasprintf-posix-tests (Depends-on): Likewise.
33347
33348 2008-03-31  Bruno Haible  <bruno@clisp.org>
33349
33350         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
33351         * doc/posix-functions/strtod.texi: Likewise.
33352
33353 2008-03-31  Bruno Haible  <bruno@clisp.org>
33354
33355         * tests/test-strtod.c (main): Don't use C99 syntax.
33356
33357 2008-03-31  Bruno Haible  <bruno@clisp.org>
33358
33359         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
33360         Reported by Eric Blake.
33361
33362 2008-03-31  Jim Meyering  <meyering@redhat.com>
33363
33364         Don't compare actual signbit return values.
33365         * tests/test-strtod.c (main): Rather, compare only their
33366         zero/non-zero nature.
33367
33368 2008-03-31  Eric Blake  <ebb9@byu.net>
33369
33370         More strtod documentation.
33371         * doc/posix-functions/strtod.texi (strtod): Interpret more test
33372         failures as distinct bugs.
33373
33374 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33375
33376         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
33377         Problem reported by Erik Benada in
33378         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
33379
33380 2008-03-30  Bruno Haible  <bruno@clisp.org>
33381
33382         * tests/test-strtod.c: Add comments about which assertion fails on which
33383         platform.
33384         * doc/posix-functions/strtod.texi: Add info about many more platforms.
33385
33386 2008-03-30  Eric Blake  <ebb9@byu.net>
33387
33388         Test signbit behavior on zeros.
33389         * tests/test-signbit.c (test_signbitf): Add tests for zero.
33390         (test_signbitd, test_signbitl): Likewise.
33391
33392         More strtod touchups.
33393         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
33394         sign of negative underflow, for now.  Use .5, not .1.
33395         * doc/posix-functions/strtod.texi (strtod): Mention these
33396         limitations.
33397         Reported by Jim Meyering.
33398
33399 2008-03-30  Bruno Haible  <bruno@clisp.org>
33400
33401         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
33402         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
33403
33404 2008-03-30  Bruno Haible  <bruno@clisp.org>
33405
33406         Avoid failure when attempting to return empty iconv results on some
33407         platforms.
33408         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
33409         allocation, don't report ENOMEM when the resulting string is empty.
33410
33411 2008-03-30  Bruno Haible  <bruno@clisp.org>
33412
33413         Fix buffer overrun.
33414         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
33415         Don't consider the width for tmp_length. Check count against tmp_length
33416         before doing the padding. Ensure enough allocation during padding.
33417
33418 2008-03-30  Eric Blake  <ebb9@byu.net>
33419
33420         strtod touchups.
33421         * lib/strtod.c (strtod): Avoid compiler warnings.
33422         Reported by Jim Meyering.
33423
33424 2008-03-30  Bruno Haible  <bruno@clisp.org>
33425
33426         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
33427         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
33428         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
33429         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
33430         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
33431         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
33432         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
33433         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
33434
33435         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
33436         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
33437         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
33438         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
33439         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
33440         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
33441         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
33442         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
33443
33444         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
33445         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
33446         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
33447         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
33448         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
33449         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
33450         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
33451         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
33452
33453         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
33454         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
33455
33456         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
33457         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
33458
33459         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
33460         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
33461
33462         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
33463         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
33464         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
33465
33466         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
33467         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
33468         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
33469
33470         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
33471         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
33472         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
33473
33474         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
33475         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
33476         * modules/vasprintf (Depends-on): Add EOVERFLOW.
33477
33478         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
33479         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
33480         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
33481         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
33482         (Depends-on): Add EOVERFLOW.
33483         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
33484         (Depends-on): Add EOVERFLOW.
33485         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33486         (Depends-on): Add EOVERFLOW.
33487         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33488         (Depends-on): Add EOVERFLOW.
33489         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33490         (Depends-on): Add EOVERFLOW.
33491         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33492         (Depends-on): Add EOVERFLOW.
33493         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33494         (Depends-on): Add EOVERFLOW.
33495         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33496         (Depends-on): Add EOVERFLOW.
33497
33498         * lib/sprintf.c (EOVERFLOW): Remove fallback.
33499         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
33500         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
33501
33502         * lib/snprintf.c (EOVERFLOW): Remove fallback.
33503         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
33504         * modules/snprintf (Depends-on): Add EOVERFLOW.
33505
33506         * lib/poll.c (EOVERFLOW): Remove fallback.
33507         * modules/poll (Depends-on): Add EOVERFLOW.
33508
33509         * lib/getugroups.c (EOVERFLOW): Remove fallback.
33510         * modules/getugroups (Depends-on): Add EOVERFLOW.
33511
33512         * lib/getdelim.c (EOVERFLOW): Remove fallback.
33513         * modules/getdelim (Depends-on): Add EOVERFLOW.
33514
33515         * lib/ftell.c (EOVERFLOW): Remove fallback.
33516         * modules/ftell (Depends-on): Add EOVERFLOW.
33517
33518         * lib/fprintf.c (EOVERFLOW): Remove fallback.
33519         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
33520         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
33521
33522         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
33523
33524         * modules/EOVERFLOW-tests: New file.
33525         * tests/test-EOVERFLOW.c: New file.
33526
33527         * modules/EOVERFLOW: New file.
33528         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
33529
33530 2008-03-30  Bruno Haible  <bruno@clisp.org>
33531
33532         Fix bug introduced on 2007-06-10.
33533         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
33534         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
33535
33536 2008-03-30  Bruno Haible  <bruno@clisp.org>
33537
33538         Improve freadseek's efficiency after ungetc.
33539         * lib/freadseek.c: Include freadahead.h.
33540         (freadptrinc): New function, extracted from freadseek.
33541         (freadseek): Use it in a loop. Use freadahead to determine the number
33542         of loop iterations.
33543         * modules/freadseek (Depends-on): Add freadahead.
33544         (configure.ac): Require AC_C_INLINE.
33545
33546 2008-03-30  Bruno Haible  <bruno@clisp.org>
33547
33548         * lib/freadseek.c (freadseek): Don't ignore the return value of
33549         freadptr.
33550
33551 2008-03-29  Eric Blake  <ebb9@byu.net>
33552
33553         Add hex float support.
33554         * modules/strtod (Depends-on): Add c-ctype.
33555         (Link): Mention POW_LIB.
33556         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
33557         whitespace between 'e' and exponent.
33558         * tests/test-strtod.c (main): Enable hex float tests.
33559         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
33560         now provides.
33561
33562         Document various strtod bugs, with some fixes.
33563         * doc/posix-functions/strtod.texi (strtod): Document bugs with
33564         "-0x", "inf", "nan", and hex constants.
33565         * doc/posix-functions/atof.texi (atof): Likewise.
33566         * modules/stdlib (Makefile.am): Support strtod.
33567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
33568         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
33569         detect additional strtod bugs.
33570         * lib/stdlib.in.h (rpl_strtod): Add declarations.
33571         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
33572         bool where appropriate.  Parse 'inf' and 'nan'.
33573         * tests/test-strtod.c: New file.
33574         * modules/strtod (Depends-on): Add stdbool, stdlib.
33575         (configure.ac): Turn on module indicator.
33576         * modules/strtod-tests: New module.
33577
33578 2008-03-29  Eric Blake  <ebb9@byu.net>
33579
33580         Fix ftell on mingw.
33581         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
33582         * modules/ftell-tests (Depends-on): Add binary-io.
33583         * modules/ftello-tests (Depends-on): Likewise.
33584         * tests/test-ftell.c (main): Enhance test to cover behavior after
33585         ungetc.  Enforce binary mode.
33586         * tests/test-ftello.c (main): Likewise.
33587
33588         Pass test-freadseek on cygwin.
33589         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
33590         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
33591         ungetc buffer.
33592
33593         * tests/test-fflush2.c (main): Fix typo.
33594
33595 2008-03-29  Bruno Haible  <bruno@clisp.org>
33596
33597         * tests/test-fflush2.c (main): Temporarily disable the contents of
33598         this test.
33599         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
33600         Reported by Eric Blake.
33601
33602 2008-03-28  Simon Josefsson  <simon@josefsson.org>
33603
33604         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
33605         (GC_SHA224_DIGEST_SIZE): Add.
33606
33607         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
33608         (gc_hash_digest_length): Likewise.
33609         (gc_hash_buffer): Likewise.
33610
33611 2008-03-25  Bruno Haible  <bruno@clisp.org>
33612
33613         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
33614         detail which gettext release to use.
33615         Reported by Simon Josefsson.
33616
33617 2008-03-26  Jim Meyering  <meyering@redhat.com>
33618
33619         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
33620         * modules/gnumakefile (clean-GNUmakefile): Also, use
33621         test ... && ... || : syntax rather than if-then ... fi.
33622
33623         gnumakefile: Don't double-quote-expand $(VPATH) value.
33624         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
33625
33626 2008-03-24  Eric Blake  <ebb9@byu.net>
33627
33628         Alter GNUmakefile to install into top directory.
33629         * modules/maintainer-makefile: Split, and add dependency...
33630         * modules/gnumakefile: to this new module.
33631         * build-aux/GNUmakefile: Move...
33632         * top/GNUmakefile: ...here.
33633         * build-aux/maint.mk: Move...
33634         * top/maint.mk: ...here.
33635         * MODULES.html.sh (Support for maintaining...): Document new
33636         module.
33637
33638 2008-03-23  Bruno Haible  <bruno@clisp.org>
33639
33640         * gnulib-tool: New options --vc-files, --no-vc-files.
33641         (func_usage): Document them.
33642         (vc_files): New variable.
33643         (func_import): Consider vc_files.
33644         (func_create_testdir): Set vc_files to empty.
33645         Suggested by Jim Meyering and Karl Berry.
33646
33647 2008-03-23  Bruno Haible  <bruno@clisp.org>
33648
33649         Fix regex compilation error on HP-UX 11.
33650         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
33651         * modules/regex (Files): Add m4/mbstate_t.m4.
33652         Reported by Ton Voon <ton.voon@altinity.com>.
33653
33654 2008-03-23  Bruno Haible  <bruno@clisp.org>
33655
33656         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
33657
33658 2008-03-23  Eric Blake  <ebb9@byu.net>
33659             Bruno Haible  <bruno@clisp.org>
33660
33661         Install files from top/ in the destination directory.
33662         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
33663         augmentation also for the files from top/.
33664         (func_import, func_create_testdir): Rewrite file names:
33665         top/filename -> filename.
33666
33667 2008-03-23  Bruno Haible  <bruno@clisp.org>
33668
33669         Tweak "gnulib --version" output.
33670         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
33671
33672 2008-03-23  Bruno Haible  <bruno@clisp.org>
33673
33674         Tweak "gnulib --version" output.
33675         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
33676         rather than contents of ChangeLog, when possible.
33677
33678 2008-03-21  Eric Blake  <ebb9@byu.net>
33679
33680         More --version tweaks.
33681         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
33682         date of last ChangeLog entry.
33683
33684 2008-03-21  Jim Meyering  <meyering@redhat.com>
33685
33686         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
33687
33688 2008-03-20  Eric Blake  <ebb9@byu.net>
33689
33690         VPATH fix.
33691         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
33692
33693 2008-03-20  Simon Josefsson  <simon@josefsson.org>
33694
33695         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
33696         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
33697
33698 2008-03-20  Eric Blake  <ebb9@byu.net>
33699
33700         Sync GNUmakefile with coreutils.
33701         * build-aux/GNUmakefile (have-Makefile): Rename...
33702         (_have-Makefile): ...to this, for namespace consideration.
33703         (GNUmakefile.cfg): Include, if present.
33704         (_autoreconf): Define a default.
33705         (_is-dist-target): New rule for rebuilds to pick up intra-release
33706         version.
33707         (maint-cfg.mk): Rename...
33708         (cfg.mk): ...to this.
33709
33710 2008-03-18  Jim Meyering  <meyering@redhat.com>
33711
33712         New script and module: mktempd
33713         * MODULES.html.sh (maint+release support): Add mktempd.
33714         * build-aux/mktempd: New file.
33715         * modules/mktempd: New file.
33716
33717 2008-03-15  Jim Meyering  <meyering@redhat.com>
33718
33719         Undo last change.
33720         * lib/sha1.c, lib/md5.c: 63 != ~63.
33721         Reported by Andreas Schwab.
33722
33723         sha1.c, md5.c: Hoist a redundant expression.
33724         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
33725         "ctx->buflen" only once, before calling *_process_block.
33726         * lib/md5.c (md5_process_bytes): Likewise.
33727
33728 2008-03-14  Eric Blake  <ebb9@byu.net>
33729
33730         Bump copyright year in files generated by gnulib-tool.
33731         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
33732         gnulib-tool, rather than hard-coding it.
33733
33734         Fix 'gnulib-tool --version' output to work with git.
33735         * gnulib-tool (func_gnulib_dir): New function, extracted from...
33736         (startup): ...here.
33737         (func_version): Use it to invoke git-version-gen, rather than
33738         relying on CVS keyword expansion.  Modernize wording.
33739         (cvsdatestamp, last_checkin_date, version): Kill unused
33740         variables.
33741
33742 2008-03-12  Jim Meyering  <meyering@redhat.com>
33743
33744         Recognize optional cast of the argument to free.
33745         * build-aux/useless-if-before-free: Update regexps.
33746
33747         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
33748
33749 2008-03-11  Bruno Haible  <bruno@clisp.org>
33750
33751         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
33752         by a single package.
33753         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
33754         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
33755         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
33756         Reported by Sam Steingold <sds@gnu.org>.
33757
33758 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33759
33760         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
33761         repositories.
33762
33763 2008-03-11  Bruno Haible  <bruno@clisp.org>
33764
33765         Avoid conflicts between local macro definitions.
33766         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33767         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
33768
33769 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
33770             Bruno Haible  <bruno@clisp.org>
33771
33772         Make va_copy work with some version of xlc on AIX 5.1.
33773         * lib/stdarg.in.h: New file.
33774         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
33775         On AIX, use a <stdarg.h> file substitute.
33776         * modules/stdarg (Files): Add lib/stdarg.in.h.
33777         (Depends-on): Add include_next.
33778         (Makefile.am): Build a stdarg.h substitute if requested.
33779         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
33780
33781 2008-03-10  Bruno Haible  <bruno@clisp.org>
33782
33783         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
33784         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33785         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33786
33787 2008-03-10  Bruno Haible  <bruno@clisp.org>
33788
33789         * modules/stdlib (Depends-on): Add include_next, remove
33790         absolute-header.
33791
33792 2008-03-09  Bruno Haible  <bruno@clisp.org>
33793
33794         * lib/freadahead.h (freadahead): Document more precisely.
33795         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
33796         the sum of both buffer sizes.
33797         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
33798         * NEWS: Document the change.
33799
33800 2008-03-09  Bruno Haible  <bruno@clisp.org>
33801
33802         Extend freadptr to return also the buffer size.
33803         * lib/freadptr.h (freadptr): Add sizep argument.
33804         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
33805         (freadptr): Add sizep argument. Determine buffer size like freadahead
33806         does.
33807         * tests/test-freadptr.c: Don't include freadahead.h.
33808         (main): Adapt for new calling convention of freadptr.
33809         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
33810         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
33811         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
33812         tests/test-freadptr2.sh.
33813         (Depends): Remove freadahead.
33814         (TESTS): Add test-freadptr2.sh.
33815         (check_PROGRAMS): Add test-freadptr2.
33816
33817 2008-03-09  Bruno Haible  <bruno@clisp.org>
33818
33819         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
33820         Report and solution by Simon Josefsson.
33821
33822 2008-03-06  Bruno Haible  <bruno@clisp.org>
33823
33824         Make fflush after ungetc work on BSD platforms.
33825         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
33826         * tests/test-fflush2.c: New file.
33827         * tests/test-fflush2.sh: New file.
33828         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
33829         tests/test-fflush2.c.
33830         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
33831         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
33832
33833 2008-03-06  Eric Blake  <ebb9@byu.net>
33834
33835         Likewise for ftello.
33836         * modules/ftello (Dependencies): Add extensions.
33837         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
33838
33839 2008-03-06  Bruno Haible  <bruno@clisp.org>
33840
33841         * modules/fseeko (Dependencies): Add extensions.
33842         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
33843         Needed on glibc systems.
33844
33845 2008-03-06  Bruno Haible  <bruno@clisp.org>
33846
33847         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
33848         email address.
33849         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33850
33851 2008-03-06  Bruno Haible  <bruno@clisp.org>
33852
33853         * users.txt: Add libgnupdf.
33854
33855 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33856
33857         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
33858         (Header File Substitutes, Function Substitutes,
33859         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
33860         (Build robot for gnulib): Fix typo.
33861
33862 2008-03-06  Bruno Haible  <bruno@clisp.org>
33863
33864         * doc/gnulib-tool.texi (VCS Issues): Small updates.
33865         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33866
33867 2008-03-06  Bruno Haible  <bruno@clisp.org>
33868
33869         * doc/func.texi: New file, extracted from doc/gnulib.texi.
33870         * doc/gnulib.texi: Include it.
33871
33872 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33873
33874         * modules/func (License): Change license to unlimited; there was
33875         no LGPL parts in the module anyway.
33876
33877 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33878
33879         * modules/__func__: Renamed to modules/func.
33880         * modules/__func__-tests: Renamed to modules/func-tests.
33881         * tests/test-__func__.c: Renamed to tests/test-func.c.
33882         * m4/__func__.m4: Renamed to m4/func.m4.
33883         * doc/gnulib.texi (__func__): Section renamed to func.
33884         Suggested by Eric Blake <ebb9@byu.net>.
33885
33886 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33887
33888         * doc/gnulib.texi (__func__): Use C99 terminology when talking
33889         about __func__.  Make example self-contained.  Suggested by Eric
33890         Blake <ebb9@byu.net>.
33891
33892         * tests/test-__func__.c (main): Avoid extraneous () around __func.
33893         Suggested by Eric Blake <ebb9@byu.net>.
33894
33895 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33896
33897         * modules/__func__: New file.
33898         * modules/__func__-tests: New file.
33899         * tests/test-__func__.c: New file.
33900         * m4/__func__.m4: New file.
33901         * doc/gnulib.texi (__func__): Document __func__ module.
33902
33903 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33904
33905         * modules/byteswap (License): Re-license as LGPLv2+.
33906
33907 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33908
33909         * doc/Makefile: Add pdf target.
33910
33911 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33912
33913         * modules/inline (License): Use 'unlimited', since there are only
33914         *.m4 files in this module.
33915
33916 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33917             Bruno Haible  <bruno@clisp.org>
33918
33919         Add support for HP C 7.1 on OpenVMS 8.3.
33920         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
33921
33922 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33923
33924         Update VMS specifics.
33925         * lib/getopt.c [VMS]: Remove include of unixlib.h.
33926
33927 2008-03-02  Jim Meyering  <meyering@redhat.com>
33928
33929         Remove the last dependency on the "free" module.
33930         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
33931         Reported by Bob Proulx.
33932
33933         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
33934
33935         Remove useless "if" tests before free.  Deprecate "free" module.
33936         * doc/posix-functions/free.texi: Mention that this
33937         module is no longer useful.
33938         * modules/free (Notice): Say this module is obsolete.
33939         * modules/readutmp (Depends-on): Remove free.
33940         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
33941         * lib/putenv.c (putenv): Likewise.
33942         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
33943         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
33944         * tests/test-c-strcasestr.c (main): Likewise.
33945         * tests/test-c-strstr.c (main): Likewise.
33946         * tests/test-mbscasestr1.c (main): Likewise.
33947         * tests/test-mbscasestr2.c (main): Likewise.
33948         * tests/test-mbsstr1.c (main): Likewise.
33949         * tests/test-mbsstr2.c (main): Likewise.
33950         * tests/test-memmem.c (main): Likewise.
33951         * tests/test-strcasestr.c (main): Likewise.
33952         * tests/test-striconv.c (main): Likewise.
33953         * tests/test-striconveh.c (main): Likewise.
33954         * tests/test-striconveha.c (main): Likewise.
33955         * tests/test-strstr.c (main): Likewise.
33956
33957         * build-aux/git-version-gen: Adjust a comment and the Usage string.
33958
33959         bootstrap: sync from coreutils again
33960         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
33961
33962 2008-03-01  Jim Meyering  <meyering@redhat.com>
33963
33964         bootstrap: sync from coreutils
33965         * build-aux/bootstrap (update_po_files): Copy a .po file into place
33966         also when the target doesn't exist.
33967
33968 2008-03-01  Eric Blake  <ebb9@byu.net>
33969
33970         Fix bugs in last patch.
33971         * lib/memchr2.c (memchr2): Fix typo.
33972         * tests/test-memchr2.c: Test previous bug, and don't use GNU
33973         extension.
33974         Reported by Bruce Korb.
33975
33976         New module 'memchr2'.
33977         * modules/memchr2: New file.
33978         * modules/memchr2-tests: Likewise.
33979         * lib/memchr2.h: Likewise.
33980         * lib/memchr2.c: Likewise, based on memchr.c.
33981         * tests/test-memchr2.c: New test.
33982         * MODULES.html.sh (String handling): Add memchr2.
33983
33984 2008-02-29  Bruno Haible  <bruno@clisp.org>
33985
33986         * modules/freadseek-tests: New file.
33987         * tests/test-freadseek.sh: New file.
33988         * tests/test-freadseek.c: New file.
33989
33990         New module 'freadseek'.
33991         * modules/freadseek: New file.
33992         * lib/freadseek.h: New file.
33993         * lib/freadseek.c: New file.
33994         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
33995
33996 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33997
33998         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
33999         wydawca.
34000
34001         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
34002         program_invocation_name and program_invocation_short_name are
34003         present.
34004
34005 2008-02-28  Bruno Haible  <bruno@clisp.org>
34006
34007         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
34008         * tests/test-freadptr.sh: Also test non-seekable stdin.
34009
34010 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
34011
34012         * build-aux/bootstrap (source_base, m4_base)
34013         (doc_base, tests_base): New variables.
34014         (gnulib_tool_options): Do not hardcode base directories, use
34015         the above variables instead.
34016
34017 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
34018
34019         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
34020
34021 2008-02-28  Bruno Haible  <bruno@clisp.org>
34022
34023         * modules/freadptr-tests: New file.
34024         * tests/test-freadptr.sh: New file.
34025         * tests/test-freadptr.c: New file.
34026
34027         New module 'freadptr'.
34028         * modules/freadptr: New file.
34029         * lib/freadptr.h: New file.
34030         * lib/freadptr.c: New file.
34031         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
34032
34033 2008-02-26  Karl Berry  <karl@freefriends.org>
34034
34035         Sync from Libtool:
34036         * libltdl/argz.c (argz_add, argz_count): New functions.
34037         * libltdl/argz.in.h: Declare them.
34038         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
34039
34040 2008-02-22  Bruno Haible  <bruno@clisp.org>
34041
34042         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
34043         is a pointer type.  Needed for HP-UX 10.
34044         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
34045         * doc/posix-functions/gmtime_r.texi: Likewise.
34046         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34047
34048 2008-02-24  Bruno Haible  <bruno@clisp.org>
34049
34050         * modules/environ-tests: New file.
34051         * tests/test-environ.c: New file.
34052
34053         New module 'environ'.
34054         * modules/environ: New file.
34055         * lib/unistd.in.h (environ): New declaration.
34056         * m4/environ.m4: New file.
34057         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
34058         after use.
34059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
34060         HAVE_DECL_ENVIRON.
34061         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
34062         HAVE_DECL_ENVIRON.
34063         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
34064         wrong claim that 'environ' is missing on some systems.
34065         * modules/execute (Depends-on): Add environ.
34066         * lib/execute.c (environ): Remove fallback declaration.
34067         * modules/pipe (Depends-on): Add environ.
34068         * lib/pipe.c (environ): Remove fallback declaration.
34069         * modules/setenv (Depends-on): Add environ.
34070         * lib/setenv.c (environ): Remove fallback declaration.
34071         * modules/unsetenv (Depends-on): Add environ.
34072         * lib/unsetenv.c (environ): Remove fallback declaration.
34073         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
34074         m4/environ.m4.
34075         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
34076         (gl_PREREQ_UNSETENV): Likewise.
34077
34078 2008-02-24  Bruno Haible  <bruno@clisp.org>
34079
34080         * doc/posix-functions/environ.texi: Document the MacOS X problem.
34081
34082 2008-02-20  Bob Proulx  <bob@proulx.com>
34083
34084         Enable use of older two part flavor 'git describe'.
34085         * build-aux/git-version-gen: If using the older two part flavor of
34086         git version then recreate the third part now present in the
34087         newer three part flavor of git describe.
34088
34089 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
34090
34091         * lib/fts.c (fts_build): Typo correction to comment.
34092
34093 2008-02-17  Bruno Haible  <bruno@clisp.org>
34094
34095         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
34096         generating no-op conflicts.
34097
34098 2008-02-17  Bruno Haible  <bruno@clisp.org>
34099
34100         Speed up by 10%.
34101         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
34102         result_entries, rather than an index-based loop.
34103
34104 2008-02-17  Bruno Haible  <bruno@clisp.org>
34105
34106         Speed up by 25%.
34107         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
34108         'hashcode_cached'.
34109         (entry_create): New function.
34110         (entry_hashcode): Use the cached hashcode if possible.
34111         (read_changelog_file, try_split_merged_entry): Use entry_create.
34112
34113 2008-02-17  Bruno Haible  <bruno@clisp.org>
34114
34115         Speed up from O(n^2) to O(n) for long ChangeLog files.
34116         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
34117         (read_changelog_file): Change implementation of entries_reversed list
34118         to rbtreehash.
34119         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
34120
34121 2008-02-17  Bruno Haible  <bruno@clisp.org>
34122
34123         New option --split-merged-entry.
34124         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
34125         (find_paragraph_end, try_split_merged_entry): New functions.
34126         (long_options): Add option --split-merged-entry.
34127         (usage): Document option --split-merged-entry.
34128         (main): Implement option --split-merged-entry.
34129         Reported by Eric Blake.
34130
34131 2008-02-17  Bruno Haible  <bruno@clisp.org>
34132
34133         * lib/git-merge-changelog.c: Include c-strstr.h.
34134         (main): Support the "git pull --rebase" situation.
34135         * modules/git-merge-changelog (Depends-on): Add c-strstr.
34136         Reported by Eric Blake.
34137
34138 2008-02-16  Eric Blake  <ebb9@byu.net>
34139
34140         Avoid doubling \ in common case of "c-maybe" quoting style.
34141         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
34142         eliding outer quotes.
34143         * lib/quotearg.h: Document this.
34144         * tests/test-quotearg.c (result_strings, inputs, results_g)
34145         (flag_results, locale_results): Test it by adding a new string to
34146         each test group.
34147         (compare_strings): Test new string.
34148
34149 2008-02-13  Eric Blake  <ebb9@byu.net>
34150
34151         Avoid trigraph quoting in default output.
34152         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
34153         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
34154         unless explicitly requested.
34155         * tests/test-quotearg.c (flag_results, main): Add additional tests.
34156
34157 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
34158
34159         Don't rely on signed integer overflowing to negative value.
34160         * lib/getugroups.c (getugroups): Include <limits.h>.
34161         Instead, compare against INT_MAX, and increment only if the test passes.
34162
34163 2008-02-13  Jim Meyering  <meyering@redhat.com>
34164         and Eric Blake  <ebb9@byu.net>
34165
34166         Avoid shadowing warning and compile errors on Linux.
34167         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
34168         forwarding macros on Linux.
34169         (dcgettext): Define a stub, for Linux.
34170         (results_g, main): Avoid warnings.
34171
34172 2008-02-12  Eric Blake  <ebb9@byu.net>
34173
34174         Silence warning in last patch.
34175         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
34176
34177         Quotearg part 4: add tests, fix c-maybe colon quoting.
34178         * lib/quotearg.h: Improve documentation.
34179         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
34180         escapes when adding outer quotes.  When quoting trigraphs, use
34181         valid C notation.  When quoting NUL, omit extra characters if next
34182         character is not digit.  Alter prototype.
34183         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
34184         callers.
34185         * modules/quotearg-tests: New module.
34186         * tests/test-quotearg.c: New test.
34187
34188 2008-02-07  Eric Blake  <ebb9@byu.net>
34189
34190         Quotearg part 3: add flag to control outer quote elision.
34191         * lib/quotearg.h (c_maybe_quoting_style): New style.
34192         (enum quoting_flags): Better documentation of flags.
34193         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
34194         c-maybe style.
34195         (quotearg_buffer_restyled): Handle new flag to elide outer
34196         quotes.
34197
34198         Quotearg part 2: add flag that can control NUL elision.
34199         * lib/quotearg.h (set_quoting_flags): New prototype.
34200         * lib/quotearg.c (struct quoting_options): Add flag field.
34201         (set_quoting_flags): New function.
34202         (quotearg_buffer_restyled): Add flags parameter.
34203         (quotearg_alloc_mem): Set the flag if length cannot be returned.
34204         (quotearg_n_options): Set the flag, since length cannot be
34205         returned.
34206         (quoting_options_from_style): Default flags correctly.
34207
34208         Quotearg part 1: more wrappers, restore quotearg_char state.
34209         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
34210         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
34211         (quotearg_colon_mem): New wrappers.
34212         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
34213         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
34214         functions.
34215         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
34216         (quotearg_colon_mem): New functions.
34217
34218 2008-02-11  Bruno Haible  <bruno@clisp.org>
34219
34220         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
34221         library in the current directory: it does not work with parallel make.
34222         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34223
34224 2008-02-11  Bruno Haible  <bruno@clisp.org>
34225
34226         * .gitattributes: New file.
34227
34228 2008-02-11  Jim Meyering  <meyering@redhat.com>
34229
34230         useless-if-before-free: Fix reversed exit values.
34231         * build-aux/useless-if-before-free: Use correct values
34232         for EXIT_MATCH and EXIT_NO_MATCH.
34233
34234         * build-aux/useless-if-before-free: Close stdout carefully.
34235
34236 2008-02-10  Bruno Haible  <bruno@clisp.org>
34237
34238         New module 'git-merge-changelog'.
34239         * modules/git-merge-changelog: New file.
34240         * lib/git-merge-changelog.c: New file.
34241
34242 2008-02-10  Jim Meyering  <meyering@redhat.com>
34243
34244         useless-if-before-free: New option: --list (-l).
34245
34246         useless-if-before-free: Don't exit immediately upon open failure.
34247         * build-aux/useless-if-before-free: Exit 2 for errors.
34248         Upon failure to open a file, don't exit immediately.
34249         Rather, just warn and continue with any remaining files.
34250
34251 2008-02-10  Bruno Haible  <bruno@clisp.org>
34252
34253         New abstract list operation 'node_set_value'.
34254         * lib/gl_list.h (gl_list_node_set_value): New function.
34255         (struct gl_list_implementation): New field node_set_value.
34256         * lib/gl_list.c (gl_list_node_set_value): New function.
34257         * lib/gl_array_list.c (gl_array_node_set_value): New function.
34258         (gl_array_list_implementation): Update.
34259         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
34260         (gl_carray_list_implementation): Update.
34261         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
34262         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
34263         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
34264         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
34265         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
34266         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
34267         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
34268         Update.
34269         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
34270         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
34271         (gl_sublist_list_implementation): Update.
34272
34273 2008-02-10  Bruno Haible  <bruno@clisp.org>
34274
34275         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
34276         Needed when ELEMENT is #defined to 'some_type *'.
34277
34278 2008-02-10  Jim Meyering  <meyering@redhat.com>
34279
34280         New script and module: useless-if-before-free
34281         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
34282         * build-aux/useless-if-before-free: New file.
34283         * modules/useless-if-before-free: New file.
34284
34285         * build-aux/gitlog-to-changelog: Use committer date, not author date.
34286
34287         xstrtol_error: Fix typo.
34288         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
34289         s/exit_failure/exit_status/.
34290
34291 2008-02-09  Jim Meyering  <meyering@redhat.com>
34292
34293         New script and module: gitlog-to-changelog
34294         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
34295         * modules/gitlog-to-changelog: New file.
34296         * build-aux/gitlog-to-changelog: New file.
34297
34298 2008-02-08  Jim Meyering  <meyering@redhat.com>
34299
34300         Avoid two "parameter unused" warnings.
34301         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
34302         Mark "st" as used.
34303
34304         Use "git COMMAND", not "git-COMMAND".
34305         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
34306         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
34307         * build-aux/git-version-gen: Use "git status", not "git-status".
34308
34309 2008-02-07  Bruno Haible  <bruno@clisp.org>
34310
34311         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
34312         Avoids a crash on Windows Vista.
34313         Reported by Adam Strzelecki <ono@java.pl> via
34314         Simon Josefsson <simon@josefsson.org>.
34315
34316 2008-02-06  Bruno Haible  <bruno@clisp.org>
34317
34318         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
34319         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
34320         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
34321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
34322         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34323         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34324         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
34325         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
34326         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34327         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34328         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34329         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34330         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34331         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34332         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34333         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
34334         left-adjust flag.
34335         * tests/test-snprintf-posix.h (test_function): Likewise.
34336         * tests/test-sprintf-posix.h (test_function): Likewise.
34337         * tests/test-vasprintf-posix.c (test_function): Likewise.
34338         * doc/posix-functions/fprintf.texi: Update.
34339         * doc/posix-functions/printf.texi: Update.
34340         * doc/posix-functions/snprintf.texi: Update.
34341         * doc/posix-functions/sprintf.texi: Update.
34342         * doc/posix-functions/vfprintf.texi: Update.
34343         * doc/posix-functions/vprintf.texi: Update.
34344         * doc/posix-functions/vsnprintf.texi: Update.
34345         * doc/posix-functions/vsprintf.texi: Update.
34346         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34347
34348 2008-02-06  Bruno Haible  <bruno@clisp.org>
34349
34350         Fix bug introduced on 2008-01-26.
34351         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
34352
34353 2008-02-06  Bruno Haible  <bruno@clisp.org>
34354
34355         Fix bug introduced on 2007-06-10.
34356         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
34357         !NEED_PRINTF_FLAG_ZERO.
34358
34359 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
34360
34361         getloadavg: use libperfstat on AIX5
34362         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
34363
34364 2008-02-03  Bruno Haible  <bruno@clisp.org>
34365
34366         * lib/diffseq.h: Add comments about required #includes.
34367         Reported by Michael Biggs <gnulib@doubleplum.net>.
34368
34369 2008-02-01  Bruno Haible  <bruno@clisp.org>
34370
34371         * users.txt: Add gnuit.
34372
34373 2008-01-31  Bruno Haible  <bruno@clisp.org>
34374
34375         * lib/md4.c (set_uint32): Mark as inline.
34376         * lib/md5.c (set_uint32): Likewise.
34377         * lib/sha1.c (set_uint32): Likewise.
34378         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
34379         * m4/md5.m4 (gl_MD5): Likewise.
34380         * m4/sha1.m4 (gl_SHA1): Likewise.
34381
34382 2008-01-31  Jim Meyering  <meyering@redhat.com>
34383
34384         Use "sizeof VAR", rather than a literal "4".
34385         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
34386         * lib/md4.c (md4_read_ctx): Likewise.
34387         * lib/sha1.c (sha1_read_ctx): Likewise.
34388
34389 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34390
34391         * tests/test-sha1.c: New file, based on test-md5.c.
34392
34393         * modules/crypto/sha1-tests: New file.
34394
34395 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34396
34397         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
34398
34399 2008-01-31  Jim Meyering  <meyering@redhat.com>
34400
34401         Prefer "sizeof v" over the equivalent "4".
34402         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
34403         * lib/md5.c (set_uint32): Likewise.
34404         * lib/sha1.c (set_uint32): Likewise.
34405
34406 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34407
34408         * lib/sha1.c (set_uint32): Mark function as static.
34409
34410 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34411
34412         md2: clarify comments to say that alignment is not required.
34413         * lib/md2.h: Remove warning about alignment in comment.
34414         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
34415         never been required.
34416
34417 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34418
34419         md4: adapt alignment constraint fix from sha1.
34420         * lib/md4.c (set_uint32): New function, from sha1.c
34421         (md4_read_ctx): Use it.
34422         (md4_finish_ctx): Doc fix.
34423         * lib/md4.h: Doc fix.
34424
34425 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34426
34427         md5: adapt alignment constraint fix from sha1.
34428         * lib/md5.c (set_uint32): New function, from sha1.c
34429         (md5_read_ctx): Use it.
34430         (md5_finish_ctx): Doc fix.
34431         * lib/md5.h: Doc fix.
34432
34433 2008-01-30  Peter Palfrader  <weasel@debian.org>
34434
34435         sha1: remove the result buffer alignment constraint
34436         * lib/sha1.c (set_uint32): New function.
34437         (sha1_read_ctx): Rewrite to remove the result buffer alignment
34438         constraint.
34439         (sha1_finish_ctx): Remove comment warning about alignment constraint.
34440         * lib/sha1.h: Likewise.
34441
34442 2008-01-30  Andreas Schwab  <schwab@suse.de>
34443             Bruno Haible  <bruno@clisp.org>
34444
34445         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
34446         correct definition of LDBL_MIN_EXP.
34447
34448 2008-01-30  Karl Berry  <karl@gnu.org>
34449
34450         * config/srclist-update: try to preserve x bit on updates.
34451         * config/srclistvars.sh: update for karl.
34452
34453 2008-01-29  Jim Meyering  <meyering@redhat.com>
34454
34455         vasnprintf.c: Avoid warning about unused label
34456         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
34457         "overflow" label definition and associated code with the
34458         same cpp condition that guards the sole use of that label.
34459
34460 2008-01-26  Bruno Haible  <bruno@clisp.org>
34461
34462         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
34463         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
34464         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
34465         * lib/isnanl-nolibm.h (isnanl): Likewise.
34466         Reported by Paul Eggert <eggert@cs.ucla.edu>.
34467
34468 2008-01-26  Bruno Haible  <bruno@clisp.org>
34469
34470         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
34471         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
34472
34473 2008-01-26  Bruno Haible  <bruno@clisp.org>
34474
34475         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
34476         GCC >= 4.0 built-in.
34477         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
34478
34479 2008-01-26  Bruno Haible  <bruno@clisp.org>
34480
34481         Rename isnan, applicable to 'double' only, to isnand.
34482         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
34483         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
34484         (configure.ac): Update.
34485         (Include): Replace "isnan.h" with "isnand.h".
34486         * m4/isnand.m4: Renamed from m4/isnan.m4.
34487         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
34488         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
34489         instead of isnan.c.
34490         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
34491         instead of HAVE_ISNAN_IN_LIBC.
34492         (isnand): Renamed from isnan.
34493         * lib/isnand.c: New file.
34494         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
34495         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
34496         (Makefile.am): Update.
34497         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
34498         Include isnand.h instead of isnan.h.
34499         (main): Test isnand instead of isnan.
34500         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
34501         isnan-nolibm.
34502         * modules/frexp (Depends-on): Likewise.
34503         * modules/frexp-tests (Depends-on): Likewise.
34504         * modules/frexp-nolibm (Depends-on): Likewise.
34505         * modules/frexp-nolibm-tests (Depends-on): Likewise.
34506         * modules/isfinite (Depends-on): Likewise.
34507         * modules/round-tests (Depends-on): Likewise.
34508         * modules/signbit (Depends-on): Likewise.
34509         * modules/signbit-tests (Depends-on): Likewise.
34510         * modules/snprintf-posix (Depends-on): Likewise.
34511         * modules/sprintf-posix (Depends-on): Likewise.
34512         * modules/trunc-tests (Depends-on): Likewise.
34513         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34514         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34515         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34516         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34517         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34518         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34519         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34520         * modules/vasnprintf-posix (Depends-on): Likewise.
34521         * modules/vasprintf-posix (Depends-on): Likewise.
34522         * modules/vfprintf-posix (Depends-on): Likewise.
34523         * modules/vsnprintf-posix (Depends-on): Likewise.
34524         * modules/vsprintf-posix (Depends-on): Likewise.
34525         * lib/frexp.c: Include isnand.h instead of isnan.h.
34526         (ISNAN): Set to isnand instead of isnan.
34527         * lib/isfinite.c: Include isnand.h instead of isnan.h.
34528         (gl_isfinited): Use isnand instead of isnan.
34529         * lib/signbitd.c: Include isnand.h instead of isnan.h.
34530         (gl_signbitd): Use isnand instead of isnan.
34531         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
34532         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
34533         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
34534         (main): Use isnand instead of isnan.
34535         * tests/test-round1.c: Include isnand.h.
34536         (main): Use isnand instead of isnan.
34537         * tests/test-round2.c: Include isnand.h instead of isnan.h.
34538         (ISNAN): Set to isnand instead of isnan.
34539         * tests/test-trunc1.c: Include isnand.h.
34540         (main): Use isnand instead of isnan.
34541         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
34542         (equal): Use isnand instead of isnan.
34543         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
34544         isnand-nolibm.
34545         * NEWS: Mention the change.
34546
34547 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
34548             Bruno Haible  <bruno@clisp.org>
34549
34550         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
34551         the GCC builtins for signbits are present and set
34552         REPLACE_SIGNBIT_USING_GCC if so.
34553         * lib/math.in.h (signbit): Define using GCC builtins if
34554         REPLACE_SIGNBIT_USING_GCC is set.
34555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
34556         REPLACE_SIGNBIT_USING_GCC.
34557         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
34558
34559 2008-01-25  Jim Meyering  <meyering@redhat.com>
34560
34561         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
34562         * lib/poll.c: Include <config.h>, not "config.h".
34563         * tests/test-getaddrinfo.c: Likewise.
34564
34565 2008-01-25  Simon Josefsson  <simon@josefsson.org>
34566
34567         * modules/sockets-tests: New file.
34568
34569 2008-01-24  Simon Josefsson  <simon@josefsson.org>
34570
34571         * modules/sockets: New module, can be used to call WSA_Startup and
34572         WSA_Cleanup when needed.
34573
34574         * lib/sockets.h, lib/sockets.c: New files.
34575
34576         * m4/sockets.m4: New file.
34577
34578         * tests/test-sockets.c: New file.
34579
34580 2008-01-19  Bruno Haible  <bruno@clisp.org>
34581
34582         * doc/posix-headers: Renamed from doc/headers.
34583         * doc/posix-functions: Renamed from doc/functions.
34584         * doc/gnulib.texi: Update.
34585
34586 2008-01-19  Bruno Haible  <bruno@clisp.org>
34587
34588         * doc/glibc-functions/strcasestr.texi: Include contents of
34589         doc/functions/strcasestr.texi, fixing the list of platforms.
34590         * doc/functions/strcasestr.texi: Remove file.
34591
34592 2008-01-19  Bruno Haible  <bruno@clisp.org>
34593
34594         * doc/glibc-functions/memmem.texi: Include contents of
34595         doc/functions/memmem.texi.
34596         * doc/functions/memmem.texi: Remove file.
34597
34598 2008-01-18  Bruno Haible  <bruno@clisp.org>
34599
34600         * doc/glibc-functions/*.texi: New files.
34601         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
34602         to use the new files.
34603
34604 2008-01-17  Bruno Haible  <bruno@clisp.org>
34605
34606         * tests/test-gethostname.c (main): Fix printf statement.
34607
34608 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34609
34610         * modules/gethostname-tests: New file.
34611
34612         * tests/test-gethostname.c: New file.
34613
34614 2008-01-17  Simon Josefsson  <simon@josefsson.org>
34615
34616         * lib/gethostname.c: Include string.h unconditionally, strncpy is
34617         used by the UNAME case.  Reported by Bruno Haible
34618         <bruno@clisp.org>.
34619
34620 2008-01-17  Eric Blake  <ebb9@byu.net>
34621
34622         Convert c-strcasestr to be more efficient.
34623         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
34624         (Depends-on): Add c-strcase, remove malloca, strnlen.
34625         * tests/test-c-strcasestr.c (main): Enhance test.
34626         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
34627
34628 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
34629
34630         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
34631         Use it in creating po/Makevars.
34632
34633 2008-01-15  Simon Josefsson  <simon@josefsson.org>
34634
34635         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
34636         Applications that requires it should initialize libgcrypt
34637         manually.
34638
34639 2008-01-16  Simon Josefsson  <simon@josefsson.org>
34640
34641         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
34642
34643 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
34644
34645         Fix problem with getdate on mingw32 reported by Simon Josefsson
34646         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
34647         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
34648         tzname", when deciding whether to declare tzname.
34649         * lib/strftime.c (tzname): Likewise.
34650
34651 2008-01-15  Bruno Haible  <bruno@clisp.org>
34652
34653         Work around a MacOS X 10.5 bug in frexpl().
34654         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
34655         * doc/functions/frexpl.texi: Document the bug.
34656         Reported by Elias Pipping <pipping@gentoo.org>.
34657
34658 2008-01-14  Eric Blake  <ebb9@byu.net>
34659
34660         Touch up previous patch.
34661         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
34662         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
34663
34664         Convert strcasestr module to use Two-Way algorithm.
34665         * modules/strcasestr-simple: New module, based on the old
34666         strcasestr, but with Two-Way rather than KMP.
34667         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
34668         * lib/string.in.h (rpl_strcasestr): Declare.
34669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
34670         performance.
34671         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
34672         * modules/string (Makefile.am): Support strcasestr.
34673         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34674         * modules/strcasestr-tests (Depends-on): Check for alarm.
34675         * tests/test-strcasestr.c: Augment test.
34676         * lib/str-two-way.h: Clean up stray macro.
34677         * NEWS: Document new module.
34678         * MODULES.html.sh (string handling): Likewise.
34679         * doc/functions/strcasestr.texi: New file.
34680         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
34681         here, since it is not a POSIX function.
34682
34683 2008-01-14  Colin Watson  <cjwatson@debian.org>
34684             Bruno Haible  <bruno@clisp.org>
34685
34686         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
34687         works fine; if not, set REPLACE_STRSIGNAL.
34688         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
34689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34690         REPLACE_STRSIGNAL.
34691         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
34692         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
34693         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
34694
34695 2008-01-14  Bruno Haible  <bruno@clisp.org>
34696
34697         * modules/strsignal (Include): Change to <string.h>.
34698
34699 2008-01-14  Colin Watson  <cjwatson@debian.org>
34700
34701         * modules/argp (Notice): Add a notice recommending to change
34702         XGETTEXT_OPTIONS.
34703         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
34704
34705 2008-01-13  Colin Watson  <cjwatson@debian.org>
34706
34707         * modules/strsignal-tests: New file.
34708         * tests/test-strsignal.c: New file.
34709
34710         * lib/strsignal.c: New file, from glibc with modifications.
34711         * lib/siglist.h: New file, from glibc with modifications.
34712         * lib/string.in.h (strsignal): New declaration.
34713         * m4/strsignal.m4: New file.
34714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34715         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
34716         * modules/strsignal: New file.
34717         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
34718         HAVE_DECL_STRSIGNAL.
34719
34720 2008-01-13  Bruno Haible  <bruno@clisp.org>
34721
34722         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
34723         locale encoding is not ASCII. Needed for OpenBSD 4.0.
34724         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34725         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34726
34727 2008-01-13  Bruno Haible  <bruno@clisp.org>
34728
34729         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
34730         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
34731         * lib/argp.h (__attribute__): Likewise.
34732         * lib/c-stack.c (__attribute__): Likewise.
34733         * lib/error.h (__attribute__): Likewise.
34734         * lib/fts.c (__attribute__): Likewise.
34735         * lib/openat.h (__attribute__): Likewise.
34736         * lib/stdio.in.h (__attribute__): Likewise.
34737         * lib/string.in.h (__attribute__): Likewise.
34738         * lib/utimens.c (__attribute__): Likewise.
34739         * lib/vasnprintf.h (__attribute__): Likewise.
34740         * lib/xalloc.h (__attribute__): Likewise.
34741         * lib/xprintf.h (__attribute__): Likewise.
34742         * lib/xstrtol.h (__attribute__): Likewise.
34743         * lib/xvasprintf.h (__attribute__): Likewise.
34744
34745 2008-01-12  Bruno Haible  <bruno@clisp.org>
34746
34747         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
34748         * doc/glibc-headers/a.out.texi: New file.
34749         * doc/glibc-headers/aliases.texi: New file.
34750         * doc/glibc-headers/alloca.texi: New file.
34751         * doc/glibc-headers/ar.texi: New file.
34752         * doc/glibc-headers/argp.texi: New file.
34753         * doc/glibc-headers/argz.texi: New file.
34754         * doc/glibc-headers/byteswap.texi: New file.
34755         * doc/glibc-headers/crypt.texi: New file.
34756         * doc/glibc-headers/endian.texi: New file.
34757         * doc/glibc-headers/envz.texi: New file.
34758         * doc/glibc-headers/err.texi: New file.
34759         * doc/glibc-headers/error.texi: New file.
34760         * doc/glibc-headers/execinfo.texi: New file.
34761         * doc/glibc-headers/fpu_control.texi: New file.
34762         * doc/glibc-headers/fstab.texi: New file.
34763         * doc/glibc-headers/fts.texi: New file.
34764         * doc/glibc-headers/getopt.texi: New file.
34765         * doc/glibc-headers/ieee754.texi: New file.
34766         * doc/glibc-headers/ifaddrs.texi: New file.
34767         * doc/glibc-headers/libintl.texi: New file.
34768         * doc/glibc-headers/mcheck.texi: New file.
34769         * doc/glibc-headers/mntent.texi: New file.
34770         * doc/glibc-headers/obstack.texi: New file.
34771         * doc/glibc-headers/paths.texi: New file.
34772         * doc/glibc-headers/printf.texi: New file.
34773         * doc/glibc-headers/pty.texi: New file.
34774         * doc/glibc-headers/resolv.texi: New file.
34775         * doc/glibc-headers/shadow.texi: New file.
34776         * doc/glibc-headers/sysexits.texi: New file.
34777         * doc/glibc-headers/ttyent.texi: New file.
34778
34779 2008-01-12  Jim Meyering  <meyering@redhat.com>
34780
34781         announce-gen: emit Gnulib's git-based version string.
34782         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
34783         New option --gnulib-version=V, where V is expected to be
34784         the output of running git describe in the gnulib directory.
34785         (get_tool_versions): Request feedback on xdelta.  I suspect it's
34786         not useful, and plan to stop publishing an xdelta file with each
34787         coreutils release.
34788
34789         * build-aux/announce-gen: Also check for lzma-compressed files.
34790
34791 2008-01-11  Bruno Haible  <bruno@clisp.org>
34792
34793         * tests/test-memmem.c (main): Increase maximum allowed time.
34794         * tests/test-strstr.c (main): Likewise.
34795
34796 2008-01-11  Bruno Haible  <bruno@clisp.org>
34797
34798         * doc/functions/memmem.texi: Add more precisions about platforms.
34799         * doc/functions/strstr.texi: Likewise.
34800
34801 2008-01-10  Eric Blake  <ebb9@byu.net>
34802
34803         * m4/strstr.m4: Delete cruft from copy-n-paste.
34804         Reported by Bruno Haible.
34805
34806 2008-01-10  Bruno Haible  <bruno@clisp.org>
34807
34808         Make c-strstr rely on strstr.
34809         * lib/c-strstr.c: Don't include str-kmp.h.
34810         (c_strstr): Define in terms of strstr.
34811         * modules/c-strstr (Files): Remove lib/str-kmp.h.
34812         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
34813
34814 2008-01-10  Bruno Haible  <bruno@clisp.org>
34815
34816         * doc/gnulib.texi (String Functions in C Locale): New section.
34817         * doc/c-ctype.texi: New file.
34818         * doc/c-strcase.texi: New file.
34819         * doc/c-strcaseeq.texi: New file.
34820         * doc/c-strcasestr.texi: New file.
34821         * doc/c-strstr.texi: New file.
34822         * doc/c-strtod.texi: New file.
34823         * doc/c-strtold.texi: New file.
34824
34825 2008-01-10  Eric Blake  <ebb9@byu.net>
34826
34827         * lib/relocatable.h: Fix a comment.
34828
34829 2008-01-10  Eric Blake  <ebb9@byu.net>
34830
34831         Share two-way algorithm.
34832         * lib/str-two-way.h: New file, merged from...
34833         * lib/memmem.c: ...here...
34834         * lib/strstr.c: ...and here.
34835         * modules/memmem (Files): Use it.
34836         * modules/strstr (Files): Likewise.
34837
34838         Avoid quadratic strstr implementations.
34839         * lib/strstr.c: New file.
34840         * m4/strstr.m4: Likewise.
34841         * modules/strstr: Likewise.
34842         * modules/strstr-tests: Likewise.
34843         * tests/test-strstr.c: Likewise.
34844         * lib/string.in.h (rpl_strstr): Declare.
34845         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
34846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
34847         * modules/string (Makefile.am): Likewise.
34848         * MODULES.html.sh (string handling): Mention new module.
34849         * doc/functions/strstr.texi (strstr): Document the bug.
34850
34851 2008-01-10  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/relocatable.h (relocate): State whether result is freshly
34854         allocated or not.
34855         * lib/relocatable.c (relocate): Return a freshly allocated string
34856         instead of a pointer to a privately held string.
34857         Reported by Sylvain Beucler <beuc@gnu.org>.
34858
34859 2008-01-10  Colin Watson  <cjwatson@debian.org>
34860
34861         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
34862         s/S_ISNLK/S_ISLNK/.
34863
34864 2008-01-09  Bruno Haible  <bruno@clisp.org>
34865
34866         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
34867         and other files.
34868         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
34869         if it's only a guess.
34870         * modules/memmem: Simplify by depending on memmem-simple.
34871
34872 2008-01-09  Bruno Haible  <bruno@clisp.org>
34873
34874         Work around OpenBSD 4.0 tdelete() bug.
34875         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
34876         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
34877         macros and don't redefine the enum values.
34878         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
34879         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
34880         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
34881
34882 2008-01-09  Bruno Haible  <bruno@clisp.org>
34883
34884         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
34885         (main): Don't perform the tests if setlocale did not install a UTF-8
34886         locale. Needed on OpenBSD 4.0.
34887         * modules/wcwidth-tests (Depends-on): Add localcharset.
34888
34889 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34890
34891         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
34892         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
34893         * NEWS: announce this.
34894         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
34895
34896 2008-01-09  Simon Josefsson  <simon@josefsson.org>
34897         and Eric Blake  <ebb9@byu.net>
34898
34899         Add memmem-simple module.
34900         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
34901         (gl_FUNC_MEMMEM): Separate performance from presence checks.
34902         * modules/memmem-simple: New file.
34903         * modules/memmem (Description): Tweak.
34904         * MODULES.html.sh (string handling): Mention new module.
34905         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
34906         addressed by memmem-simple.
34907         * NEWS: Document the difference.
34908
34909 2008-01-09  Eric Blake  <ebb9@byu.net>
34910
34911         Give gcc some memmem optimization hints.
34912         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
34913         (strcasestr): Declare as pure.
34914         * modules/memmem (Maintainer): Claim my implementation.
34915
34916 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34917
34918         Support AIX 6.1 and higher.
34919         * build-aux/config.libpath: Likewise.
34920         * build-aux/config.rpath: Likewise.
34921
34922 2008-01-08  Jim Meyering  <meyering@redhat.com>
34923             Bruno Haible  <bruno@clisp.org>
34924
34925         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
34926         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
34927         Reported by Peter Fales in
34928         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
34929
34930 2008-01-08  Bruno Haible  <bruno@clisp.org>
34931
34932         * modules/unictype/category-of (Depends-on): Add
34933         unictype/category-none.
34934         * modules/unictype/category-and-tests (Depends-on): Add
34935         unictype/category-{L,N,Lu,Nd}.
34936         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
34937         * modules/unictype/category-or-tests (Depends-on): Add
34938         unictype/category-{L,N}.
34939         * modules/unictype/category-name-tests (Depends-on): Add
34940         unictype/category-{Z,Nl}.
34941         Reported by Simon Josefsson.
34942
34943 2008-01-08  Bruno Haible  <bruno@clisp.org>
34944
34945         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
34946         convention better.
34947         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
34948         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
34949         Reported by Peter Miller <millerp@canb.auug.org.au>.
34950
34951 2008-01-08  Eric Blake  <ebb9@byu.net>
34952
34953         Rewrite memmem to guarantee linear complexity without malloc.
34954         * lib/memmem.c (memmem): Use Two-Way rather than
34955         Knuth-Morris-Pratt, to allow O(1) space usage.
34956         (critical_factorization, two_way_short_needle)
34957         (two_way_long_needle): New functions.
34958         (knuth_morris_pratt): Delete.
34959         * modules/memmem (Depends-on): No longer need malloca or stdbool.
34960         Add stdint.
34961         * tests/test-memmem.c (main): Add tests for periodic needle and
34962         sublinear performance.
34963         * doc/functions/memmem.texi (memmem): Document other deficiencies
34964         in cygwin and older glibc.
34965
34966 2008-01-08  Bruno Haible  <bruno@clisp.org>
34967
34968         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
34969         augmentation.
34970
34971 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
34972
34973         Add a configure time option: --disable-acl.
34974         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
34975         AC_ARG_ENABLE(acl).
34976
34977 2008-01-06  Simon Josefsson  <simon@josefsson.org>
34978
34979         * tests/test-localename.c: Don't include obsolete "setenv.h".
34980
34981         * modules/localename-tests (Depends-on): Need unsetenv.
34982
34983 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34984
34985         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
34986
34987 2008-01-06  Colin Watson  <cjwatson@debian.org>
34988
34989         * users.txt: Add man-db.
34990
34991 2008-01-07  Bruno Haible  <bruno@clisp.org>
34992
34993         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
34994         previous section name.
34995
34996 2008-01-07  Bruno Haible  <bruno@clisp.org>
34997
34998         * lib/progname.c (set_program_name): Don't strip off a leading
34999         "lt-" prefix outside a .libs directory.
35000         Suggested by Paul Eggert.
35001
35002 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
35003             Bruno Haible  <bruno@clisp.org>
35004
35005         Improve memory cleanup in 'relocatable' module.
35006         * lib/relocatable.h (compute_curr_prefix): Change return type to
35007         'char *'.
35008         * lib/relocatable.c (compute_curr_prefix): Change return type to
35009         'char *'. Free curr_installdir after use.
35010         (relocate): Free curr_prefix_better after use.
35011         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
35012
35013 2008-01-01  Bruno Haible  <bruno@clisp.org>
35014
35015         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
35016         failure on older glibc systems.
35017         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35018
35019 2008-01-05  Eric Blake  <ebb9@byu.net>
35020
35021         Avoid quadratic system memmem.
35022         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
35023         Reported by Ralf Wildenhues.
35024
35025         Fix memmem test for mingw.
35026         * modules/memmem-tests (configure.ac): Check for alarm.
35027         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
35028         it.
35029         * doc/functions/memmem.texi: New file.
35030         * doc/gnulib.texi (Function Substitutes): Add memmem.
35031         Reported by Bruno Haible.
35032
35033 2008-01-04  Bruno Haible  <bruno@clisp.org>
35034
35035         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
35036         Require gl_HEADER_STRINGS_H_DEFAULTS, not
35037         gl_HEADER_STRING_H_DEFAULTS.
35038
35039 2008-01-04  Eric Blake  <ebb9@byu.net>
35040
35041         Shorten duration of memmem test.
35042         * tests/test-memmem.c (main): Use alarm to declare failure if test
35043         is taking too long.
35044         Reported by Ralf Wildenhues.
35045
35046 2007-12-21  Simon Josefsson  <simon@josefsson.org>
35047
35048         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
35049         string, needed by strerror.
35050
35051 2008-01-03  Colin Watson  <cjwatson@debian.org>
35052             Bruno Haible  <bruno@clisp.org>
35053
35054         * doc/gnulib-tool.texi (Localization): New section.
35055
35056 2008-01-02  Bruno Haible  <bruno@clisp.org>
35057
35058         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
35059         variables to 'unsigned char *' type.
35060         Reported by Paul Eggert.
35061
35062 2008-01-02  Jim Meyering  <jim@meyering.net>
35063
35064         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
35065
35066 2007-12-31  Jim Meyering  <jim@meyering.net>
35067
35068         Avoid use of private FTS type name.
35069         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
35070
35071 2007-12-30  Karl Berry  <karl@gnu.org>
35072
35073         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
35074         work around defect in Texinfo and/or the standalone Info browser.
35075
35076 2007-12-30  Bruno Haible  <bruno@clisp.org>
35077
35078         Unify 5 copies of the KMP code.
35079         * lib/str-kmp.h: New file.
35080         * lib/c-strcasestr.c: Include str-kmp.h.
35081         (knuth_morris_pratt): Remove function.
35082         (c_strcasestr): Update.
35083         * lib/c-strstr.c: Include str-kmp.h.
35084         (knuth_morris_pratt): Remove function.
35085         (c_strcasestr): Update.
35086         * lib/mbscasestr.c: Include str-kmp.h.
35087         (knuth_morris_pratt_unibyte): Remove function.
35088         * lib/mbsstr.c: Include str-kmp.h.
35089         (knuth_morris_pratt_unibyte): Remove function.
35090         * lib/strcasestr.c: Include str-kmp.h.
35091         (knuth_morris_pratt): Remove function.
35092         (strcasestr): Update.
35093         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
35094         * modules/c-strstr (Files): Likewise.
35095         * modules/mbscasestr (Files): Likewise.
35096         * modules/mbsstr (Files): Likewise.
35097         * modules/strcasestr (Files): Likewise.
35098         Suggested by Paul Eggert.
35099
35100 2007-12-30  Bruno Haible  <bruno@clisp.org>
35101
35102         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
35103         defined.
35104
35105 2007-12-30  Bruno Haible  <bruno@clisp.org>
35106
35107         * lib/xmalloca.h: Include xalloc.h.
35108         (xnmalloca): New macro.
35109
35110 2007-12-30  Bruno Haible  <bruno@clisp.org>
35111
35112         * lib/malloca.h (nmalloca): New macro.
35113         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
35114         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
35115         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
35116         knuth_morris_pratt_multibyte): Likewise.
35117         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
35118         knuth_morris_pratt_multibyte): Likewise.
35119         * lib/memmem.c (knuth_morris_pratt): Likewise.
35120         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
35121
35122 2007-12-25  Bruno Haible  <bruno@clisp.org>
35123
35124         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
35125         * lib/glob.c: Don't include openat.h.
35126         (link_exists2_p): Add back the code that deals with the
35127         !GLOB_ALTDIRFUNC case.
35128         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
35129         let it do the filename concatenation.
35130         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
35131         * modules/glob (Depends-on): Remove openat.
35132
35133 2007-12-31  Bruno Haible  <bruno@clisp.org>
35134
35135         * modules/dirfd (License): Change to LGPLv2+.
35136         Approved by Jim Meyering.
35137
35138 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35139
35140         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
35141         when multiplying M by sizeof (size_t).
35142
35143 2007-12-10  Martin Lambers  <marlam@marlam.de>
35144
35145         Override getpagesize on mingw.
35146         * lib/getpagesize.c: New file.
35147         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
35148         * modules/getpagesize (Files): Add lib/getpagesize.c.
35149         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
35150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35151         REPLACE_GETPAGESIZE.
35152         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
35153
35154 2007-12-25  Bruno Haible  <bruno@clisp.org>
35155
35156         * modules/localcharset (Notice): New field.
35157         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
35158         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
35159
35160 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
35161             Bruno Haible  <bruno@clisp.org>
35162
35163         Avoid using the syntax symbol() in formatted documentation.
35164         * MODULES.html.sh (func_module): When replacing symbol() with a
35165         hyperlink, remove the parentheses. Show an error if some remain.
35166         Recognize and render the '...' syntax.
35167         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
35168         Rework. Add paragraph about GCC's inlining.
35169         * doc/alloca.texi: Likewise.
35170         * doc/error.texi: Remove parentheses from symbol reference.
35171         * doc/gnulib-intro.texi: Likewise.
35172         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
35173         * modules/fnmatch (Description): Reword to say "the ... function".
35174         * modules/full-read (Description): Likewise.
35175         * modules/full-write (Description): Likewise.
35176         * modules/safe-read (Description): Likewise.
35177         * modules/safe-write (Description): Likewise.
35178         * modules/strchrnul (Description): Likewise.
35179         * modules/trim (Description): Likewise.
35180         * modules/error (Description): Remove parentheses from symbol
35181         references.
35182         * modules/verror (Description): Likewise.
35183         Reported by Karl Berry.
35184
35185 2007-12-25  Bruno Haible  <bruno@clisp.org>
35186
35187         Fixup after 2007-10-16 commit.
35188         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
35189
35190 2007-12-24  Bruno Haible  <bruno@clisp.org>
35191
35192         Make --enable-relocatable work with DESTDIR.
35193         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
35194         to compute installdir from destprog.
35195         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
35196         also set the RELOC_DESTDIR variable.
35197         Reported by Левашев Иван <octagram@bluebottle.com>.
35198
35199 2007-12-24  Bruno Haible  <bruno@clisp.org>
35200
35201         Fix link error due to xalloc_die().
35202         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
35203         of xreadlink.
35204         * lib/relocwrapper.c: Update comments.
35205         * build-aux/install-reloc: Remove xreadlink.c from file list.
35206         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
35207         xreadlink.c.
35208         Reported by Левашев Иван <octagram@bluebottle.com>.
35209
35210 2007-12-24  Bruno Haible  <bruno@clisp.org>
35211
35212         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
35213         * lib/setenv.h: Remove file.
35214         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
35215         lib/setenv.h.
35216         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
35217         (Depends-on): Add stdlib.
35218         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
35219         gl_FUNC_UNSETENV.
35220         (Include): Replace setenv.h with <stdlib.h>.
35221         * modules/unsetenv: New file.
35222         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
35223         * lib/unsetenv.c: Include <stdlib.h> first.
35224         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
35225         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
35226         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
35227         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
35228         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
35229         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
35231         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35232         * doc/functions/unsetenv.texi: Update.
35233         * modules/xsetenv (Depends-on): Add unsetenv.
35234         * modules/getdate (Depends-on): Likewise.
35235         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
35236         * lib/xsetenv.c: Don't include setenv.h.
35237         * lib/getdate.y: Likewise.
35238         * lib/relocwrapper.c: Likewise.
35239         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
35240         (Depends-on): Add stdlib.
35241         * NEWS: Mention the changes.
35242         Reported by Левашев Иван <octagram@bluebottle.com>.
35243
35244 2007-12-23  Bruno Haible  <bruno@clisp.org>
35245
35246         * lib/memmem.c (memmem): Use lowercase variable names. Tab
35247         indentation.
35248
35249 2007-12-23  Bruno Haible  <bruno@clisp.org>
35250
35251         * lib/c-strcasestr.c: Add more comments.
35252         * lib/c-strstr.c: Likewise.
35253         * lib/mbscasestr.c: Likewise.
35254         * lib/mbsstr.c: Likewise.
35255         * lib/strcasestr.c: Likewise.
35256         * lib/memmem.c: Likewise.
35257
35258 2007-12-23  Bruno Haible  <bruno@clisp.org>
35259
35260         * tests/test-memmem.c: Include <string.h> first.
35261
35262 2007-12-22  Bruno Haible  <bruno@clisp.org>
35263
35264         * gnulib-tool (func_create_testdir): Change $auxdir while generating
35265         the contents of $testsbase.
35266         Reported by Ralf Wildenhues.
35267
35268 2007-12-22  Bruno Haible  <bruno@clisp.org>
35269
35270         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
35271         two variables local_ldadd_before, local_ldadd_last.
35272
35273 2007-12-20  Eric Blake  <ebb9@byu.net>
35274
35275         Work around circular library issue when cross-compiling.
35276         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
35277         that progname.o does not need to pull in rpl_memcmp.
35278
35279 2007-12-19  Eric Blake  <ebb9@byu.net>
35280
35281         Fix memmem to avoid O(n^2) worst-case complexity.
35282         * lib/memmem.c (knuth_morris_pratt): New function.
35283         (memmem): Use it if first few naive iterations fail.
35284         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
35285         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
35286         * modules/memchr (License): Likewise.
35287         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
35288         malloca.
35289         * tests/test-memmem.c: Rewrite, borrowing ideas from
35290         test-mbsstr1.c; the old version wouldn't even compile!
35291         * modules/memmem-tests: New file.
35292         * lib/string.in.h (rpl_memmem): Add declaration.
35293         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
35294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
35295         REPLACE_MEMMEM.
35296
35297 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35298
35299         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
35300         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
35301         before any system include files, and undef after them all.  This
35302         should fix a problem on VMS reported by John E. Malmberg in
35303         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
35304
35305 2007-12-17  Eric Blake  <ebb9@byu.net>
35306
35307         Revert addition of verify, for BSD/OS.
35308         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
35309         can't handle large files, for the sake of obsolete platforms.
35310         * modules/fseeko (Depends-on): Remove verify.
35311         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
35312         * doc/functions/ftello.texi (ftello): Likewise.
35313         * doc/functions/fgetpos.texi (fgetpos): Likewise.
35314         Reported by Larry Jones.
35315
35316 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
35317
35318         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
35319         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
35320
35321 2007-12-17  Jim Meyering  <meyering@redhat.com>
35322
35323         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
35324         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
35325         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
35326         * modules/getcwd (Depends-on): Add openat.
35327         Reported by Petr Salinger.
35328
35329 2007-12-17  Bruno Haible  <bruno@clisp.org>
35330
35331         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
35332         avoid a segmentation fault of the configure test on x86_64 systems.
35333
35334 2007-12-15  Jim Meyering  <meyering@redhat.com>
35335
35336         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
35337
35338 2007-12-13  Eric Blake  <ebb9@byu.net>
35339
35340         Another fseek test.
35341         * tests/test-fseek.c (main): Also test ungetc handling.
35342         * tests/test-fseeko.c (main): Likewise.
35343         * modules/fseeko (Depends-on): Add verify.
35344         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
35345         large.
35346         Reported by Larry Jones.
35347
35348         Fix fseeko on mingw.
35349         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
35350         seek.
35351
35352         Beef up fseek tests.
35353         * tests/test-fseek.c (main): Also test eof handling.
35354         * tests/test-fseeko.c (main): Likewise.
35355         Reported by Larry Jones.
35356
35357 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
35358
35359         Fix fseeko on BSD-based platforms.
35360         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
35361         successful seek.
35362
35363 2007-12-12  Eric Blake  <ebb9@byu.net>
35364
35365         Allow circular dependency of separate libtests.a
35366         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
35367         when use_libtests.
35368
35369 2007-12-11  Eric Blake  <ebb9@byu.net>
35370
35371         Fix bug with -0.0L in previous patch.
35372         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
35373         * tests/test-isnan.c (main): Also test on zeroes.
35374         * tests/test-isnanf.c (main): Likewise.
35375         * tests/test-isnanl.h (main): Likewise.
35376
35377         Detect pseudo-denormals on x86 even when cross-compiling.
35378         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
35379         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
35380         invalid bit patterns that happen to satisfy ==.
35381
35382         Avoid link failures with separate libtests.a.
35383         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
35384         last, to satisfy circular dependencies.
35385
35386 2007-12-11  Eric Blake  <ebb9@byu.net>
35387         and Bruno Haible  <bruno@clisp.org>
35388
35389         Fix OpenBSD 4.0 <float.h> handling of long double.
35390         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
35391         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
35392         * doc/headers/float.texi (float.h): Document OpenBSD bug.
35393
35394 2007-12-11  Jim Meyering  <meyering@redhat.com>
35395
35396         * users.txt: Add libvirt.
35397
35398         Support versions of autoconf prior to 2.59c.
35399         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
35400         if it is not already defined.
35401
35402 2007-12-09  Bruno Haible  <bruno@clisp.org>
35403
35404         Let 'gnulib-tool --import' collect sources needed for the tests in
35405         tests/ rather than in lib/.
35406         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
35407         argument. If true, add rules to generate libtests.a, and put libtests.a
35408         into $(LDADD). Consider source files in subdirectories and set
35409         uses_subdirs.
35410         (func_emit_initmacro_start, func_emit_initmacro_end,
35411         func_emit_initmacro_done): Pass all arguments explicitly.
35412         (func_import): Determine two module lists main_modules,
35413         testsrelated_modules. Determine use_libtests. Determine two variables
35414         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
35415         instead of just sed_transform_lib_file. Determine two variables
35416         main_files and testsrelated_files. Compute 'files' as the union of
35417         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
35418         func_add_or_update. In the generated gnulib-comp.m4, collect the
35419         object files for tests/ in different variables than those for lib/.
35420         Substitute LIBTESTS_LIBDEPS.
35421         (func_create_testdir): Combine the uses_subdirs results from
35422         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
35423
35424 2007-12-09  Bruno Haible  <bruno@clisp.org>
35425
35426         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
35427         the build-aux directory.
35428
35429 2007-12-09  Bruno Haible  <bruno@clisp.org>
35430
35431         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
35432         introduced on 2006-09-09.
35433
35434 2007-12-07  Jim Meyering  <meyering@redhat.com>
35435
35436         Let these macros work also with autoconf-2.59.
35437         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
35438         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
35439         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35440
35441 2007-12-06  Jim Meyering  <meyering@redhat.com>
35442
35443         Avoid a configure-time syntax error in gl_FUNC_ACL.
35444         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
35445         function in each branch, before testing the cache variable.
35446
35447 2007-12-04  Eric Blake  <ebb9@byu.net>
35448
35449         Make scripts executable.
35450         * build-aux/config.guess: Add execute permissions.
35451         * build-aux/config.sub: Likewise.
35452         * build-aux/gendocs.sh: Likewise.
35453
35454         Fix frexp on mingw.
35455         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
35456         cross-compiling.
35457         * doc/functions/frexp.texi (frexp): Document the bug.
35458
35459         Make cygwin fseeko check more reliable.
35460         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
35461         version numbers, rather than unrelated feature check.
35462         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
35463         * doc/functions/ftello.texi (ftello): Likewise.
35464         Reported by Bruno Haible.
35465
35466         * m4/strerror.m4: Bump version number.
35467
35468 2007-12-03  Bruno Haible  <bruno@clisp.org>
35469
35470         * doc/functions/mprotect.texi: Mention the mingw problem.
35471
35472 2007-12-03  Eric Blake  <ebb9@byu.net>
35473
35474         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
35475         REPLACE_STRERROR is initialized before this macro.
35476
35477 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
35478
35479         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
35480         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
35481         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
35482         put -lsec in even for programs other than 'ls'.  This fixes a problem
35483         for gettext reported by Bruno Haible in
35484         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
35485         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
35486         Add support for Solaris 10.  This isn't efficient, but should get the
35487         job done for now.
35488
35489 2007-12-03  James Youngman  <jay@gnu.org>
35490
35491         * doc/regexprops-generic.texi: change "an close-group" to "a
35492         close-group" and "illegal" to "not allowed".
35493
35494 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35495
35496         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
35497         pr_byname.h. Needed for the rare case when the maintainer has done
35498         "make maintainer-clean" in the source directory and then attempts a
35499         build outside the source directory.
35500         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
35501         scripts_byname.h.
35502
35503 2007-12-02  Martin Lambers <marlam@marlam.de>
35504             Bruno Haible  <bruno@clisp.org>
35505
35506         * lib/getpagesize.h: Remove file.
35507         * lib/unistd.in.h: Include declaration of getpagesize here.
35508         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
35509         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
35510         HAVE_SYS_PARAM_H.
35511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
35512         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35513         * modules/getpagesize (Files): Remove lib/getpagesize.h.
35514         (Depends-on): Add unistd.
35515         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35516         (Include): Use <unistd.h> instead of getpagesize.h.
35517         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
35518         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35519         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
35520         gl_GETPAGESIZE invocation, already handled by module dependency.
35521         * lib/pagealign_alloc.c: Don't include getpagesize.h.
35522
35523 2007-12-02  Bruno Haible  <bruno@clisp.org>
35524
35525         * modules/strings-tests: New file.
35526         * tests/test-strings.c: New file.
35527
35528         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
35529         * lib/strings.in.h: New file.
35530         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
35531         * m4/strings_h.m4: New file.
35532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
35533         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
35534         * modules/strings: New file.
35535         * modules/string (Makefile.am): Update.
35536         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
35537         Reported by Karl Berry.
35538
35539 2007-12-01  Eric Blake  <ebb9@byu.net>
35540
35541         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
35542         accomodate fix in cygwin 1.5.25.
35543
35544 2007-12-01  Jim Meyering  <meyering@redhat.com>
35545
35546         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
35547         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
35548         that would inhibit utf8-optimization of a regexp containing line-
35549         or buffer-anchors, e.g., `^', `$'.
35550
35551 2007-11-30  Bruno Haible  <bruno@clisp.org>
35552
35553         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
35554         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
35555         glthread_recursive_lock_init.
35556         * lib/lock.c (glthread_recursive_lock_init)
35557         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
35558         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35559
35560 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
35561
35562         New function qset_acl, like set_acl but with syscall semantics.
35563         * lib/acl.h (qset_acl): New decl.
35564         * lib/acl.c (qset_acl): New function.
35565         (set_acl): Use new function.  Use more-consistent diagnostics.
35566
35567 2007-11-28  Jim Meyering  <meyering@redhat.com>
35568
35569         * modules/physmem (License): Change from GPL to LGPLv2+.
35570
35571 2007-11-26  Bruno Haible  <bruno@clisp.org>
35572
35573         * lib/vasnprintf.c (decode_long_double): Don't abort if the
35574         'long double' type has excess precision.
35575         Reported by Jim Meyering in
35576         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
35577
35578 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35579
35580         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
35581         Sync from <http://gnu.org/licenses>.
35582         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
35583         with license text from same location.
35584         * doc/maintain.texi, doc/standards.texi:  Sync from
35585         <http://savannah.gnu.org/projects/gnustandards>.
35586
35587 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
35588         and Jim Meyering  <meyering@redhat.com>
35589
35590         Adjust getdate' grammar to accept a slightly more regular language.
35591         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
35592         Before, the former was rejected.
35593         * lib/getdate.y (digits_to_date_time): New function, factored
35594         out of ...
35595         (number): ...here.  Just call digits_to_date_time.
35596         (hybrid): New non-terminal to handle an <unsigned number,
35597         signed relative offset> sequence consistently.
35598
35599 2007-11-18  Jim Meyering  <meyering@redhat.com>
35600
35601         Pull my changes from coreutils:
35602         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
35603         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
35604         use of $gnulib_tool_option_extras, so that it's separated from the
35605         preceding argument.
35606
35607         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
35608         * build-aux/bootstrap (cp_mark_as_generated): Create any required
35609         parent destination directories before copying a file into place.
35610
35611 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
35612
35613         bootstrap: work also with 4-argument variant of AC_INIT
35614         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
35615
35616 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
35617
35618         Port test-getaddrinfo to Solaris.
35619         Problem reported by Bruno Haible in
35620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
35621         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
35622         explanation of setting 'hints'.
35623         Don't reject an implementation merely because it returns EAI_SERVICE.
35624         (EAI_SERVICE): Define to 0 if not defined.
35625
35626 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
35627
35628         The license of gnu-make and posix-shell is now "GPLed build tool".
35629         * modules/gnu-make (License): Likewise.
35630         * modules/posix-shell (License): Likewise.
35631
35632         New module posix-shell, for determining a POSIX shell
35633         or perhaps something that is close enough to a POSIX shell.
35634         * m4/posix-shell.m4: New file.
35635         * modules/posix-shell: New file.
35636
35637         * MODULES.html.sh: Mention new module.
35638
35639         New module gnu-make, for determining whether we're using GNU Make.
35640         * m4/gnu-make.m4: New file.
35641         * modules/gnu-make: New file.
35642         * MODULES.html.sh: Mention new module.
35643
35644 2007-11-14  Jim Meyering  <meyering@redhat.com>
35645
35646         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
35647         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
35648         use this macro to create a function _definition_.
35649         Remove useless "#undef ARGMATCH_DIE".
35650
35651 2007-11-14  Bruno Haible  <bruno@clisp.org>
35652
35653         * lib/config.charset: Update for OpenBSD 4.1.
35654         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
35655
35656 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
35657
35658         Document 64-bit #if problems in stdint.texi.
35659         * doc/headers/stdint.texi (stdint.h): Mention problems with
35660         64-bit-#if, and how to work around them.
35661
35662         Don't insist on 'long long int' support in the preprocessor.  It
35663         breaks too many things.  For example, PRIdMAX still uses a 'long
35664         long int' format with the latest Sun compiler, even though
35665         HAVE_LONG_LONG_INT isn't defined due to that compiler's
35666         preprocessor problem.  This causes the latest coreutils to dump
35667         core on Solaris 10 sparc with the Sun C compiler.
35668         Instead, fix the 2007-10-16 problem in a different way, by evaluating
35669         the troublesome expressions at configure-time, not at #if-time.
35670         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
35671         preprocessor.
35672         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
35673         compile-time C checks, done at 'configure'-time.
35674         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
35675         * modules/inttypes (Makefile): Substitute the new symbols that
35676         gl_INTTYPES_H now generates.
35677         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
35678
35679 2007-11-12  Bruno Haible  <bruno@clisp.org>
35680
35681         Tests for Unicode character classification functions.
35682
35683         * modules/unictype/bidicategory-byname-tests: New file.
35684         * modules/unictype/bidicategory-name-tests: New file.
35685         * modules/unictype/bidicategory-of-tests: New file.
35686         * modules/unictype/bidicategory-test-tests: New file.
35687         * modules/unictype/block-list-tests: New file.
35688         * modules/unictype/block-of-tests: New file.
35689         * modules/unictype/block-test-tests: New file.
35690         * modules/unictype/category-C-tests: New file.
35691         * modules/unictype/category-Cc-tests: New file.
35692         * modules/unictype/category-Cf-tests: New file.
35693         * modules/unictype/category-Cn-tests: New file.
35694         * modules/unictype/category-Co-tests: New file.
35695         * modules/unictype/category-Cs-tests: New file.
35696         * modules/unictype/category-L-tests: New file.
35697         * modules/unictype/category-Ll-tests: New file.
35698         * modules/unictype/category-Lm-tests: New file.
35699         * modules/unictype/category-Lo-tests: New file.
35700         * modules/unictype/category-Lt-tests: New file.
35701         * modules/unictype/category-Lu-tests: New file.
35702         * modules/unictype/category-M-tests: New file.
35703         * modules/unictype/category-Mc-tests: New file.
35704         * modules/unictype/category-Me-tests: New file.
35705         * modules/unictype/category-Mn-tests: New file.
35706         * modules/unictype/category-N-tests: New file.
35707         * modules/unictype/category-Nd-tests: New file.
35708         * modules/unictype/category-Nl-tests: New file.
35709         * modules/unictype/category-No-tests: New file.
35710         * modules/unictype/category-P-tests: New file.
35711         * modules/unictype/category-Pc-tests: New file.
35712         * modules/unictype/category-Pd-tests: New file.
35713         * modules/unictype/category-Pe-tests: New file.
35714         * modules/unictype/category-Pf-tests: New file.
35715         * modules/unictype/category-Pi-tests: New file.
35716         * modules/unictype/category-Po-tests: New file.
35717         * modules/unictype/category-Ps-tests: New file.
35718         * modules/unictype/category-S-tests: New file.
35719         * modules/unictype/category-Sc-tests: New file.
35720         * modules/unictype/category-Sk-tests: New file.
35721         * modules/unictype/category-Sm-tests: New file.
35722         * modules/unictype/category-So-tests: New file.
35723         * modules/unictype/category-Z-tests: New file.
35724         * modules/unictype/category-Zl-tests: New file.
35725         * modules/unictype/category-Zp-tests: New file.
35726         * modules/unictype/category-Zs-tests: New file.
35727         * modules/unictype/category-and-not-tests: New file.
35728         * modules/unictype/category-and-tests: New file.
35729         * modules/unictype/category-byname-tests: New file.
35730         * modules/unictype/category-name-tests: New file.
35731         * modules/unictype/category-none-tests: New file.
35732         * modules/unictype/category-of-tests: New file.
35733         * modules/unictype/category-or-tests: New file.
35734         * modules/unictype/category-test-withtable-tests: New file.
35735         * modules/unictype/combining-class-tests: New file.
35736         * modules/unictype/ctype-alnum-tests: New file.
35737         * modules/unictype/ctype-alpha-tests: New file.
35738         * modules/unictype/ctype-blank-tests: New file.
35739         * modules/unictype/ctype-cntrl-tests: New file.
35740         * modules/unictype/ctype-digit-tests: New file.
35741         * modules/unictype/ctype-graph-tests: New file.
35742         * modules/unictype/ctype-lower-tests: New file.
35743         * modules/unictype/ctype-print-tests: New file.
35744         * modules/unictype/ctype-punct-tests: New file.
35745         * modules/unictype/ctype-space-tests: New file.
35746         * modules/unictype/ctype-upper-tests: New file.
35747         * modules/unictype/ctype-xdigit-tests: New file.
35748         * modules/unictype/decimal-digit-tests: New file.
35749         * modules/unictype/digit-tests: New file.
35750         * modules/unictype/mirror-tests: New file.
35751         * modules/unictype/numeric-tests: New file.
35752         * modules/unictype/property-alphabetic-tests: New file.
35753         * modules/unictype/property-ascii-hex-digit-tests: New file.
35754         * modules/unictype/property-bidi-arabic-digit-tests: New file.
35755         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
35756         * modules/unictype/property-bidi-block-separator-tests: New file.
35757         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
35758         * modules/unictype/property-bidi-common-separator-tests: New file.
35759         * modules/unictype/property-bidi-control-tests: New file.
35760         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
35761         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
35762         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
35763         * modules/unictype/property-bidi-european-digit-tests: New file.
35764         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
35765         * modules/unictype/property-bidi-left-to-right-tests: New file.
35766         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
35767         * modules/unictype/property-bidi-other-neutral-tests: New file.
35768         * modules/unictype/property-bidi-pdf-tests: New file.
35769         * modules/unictype/property-bidi-segment-separator-tests: New file.
35770         * modules/unictype/property-bidi-whitespace-tests: New file.
35771         * modules/unictype/property-byname-tests: New file.
35772         * modules/unictype/property-combining-tests: New file.
35773         * modules/unictype/property-composite-tests: New file.
35774         * modules/unictype/property-currency-symbol-tests: New file.
35775         * modules/unictype/property-dash-tests: New file.
35776         * modules/unictype/property-decimal-digit-tests: New file.
35777         * modules/unictype/property-default-ignorable-code-point-tests: New file.
35778         * modules/unictype/property-deprecated-tests: New file.
35779         * modules/unictype/property-diacritic-tests: New file.
35780         * modules/unictype/property-extender-tests: New file.
35781         * modules/unictype/property-format-control-tests: New file.
35782         * modules/unictype/property-grapheme-base-tests: New file.
35783         * modules/unictype/property-grapheme-extend-tests: New file.
35784         * modules/unictype/property-grapheme-link-tests: New file.
35785         * modules/unictype/property-hex-digit-tests: New file.
35786         * modules/unictype/property-hyphen-tests: New file.
35787         * modules/unictype/property-id-continue-tests: New file.
35788         * modules/unictype/property-id-start-tests: New file.
35789         * modules/unictype/property-ideographic-tests: New file.
35790         * modules/unictype/property-ids-binary-operator-tests: New file.
35791         * modules/unictype/property-ids-trinary-operator-tests: New file.
35792         * modules/unictype/property-ignorable-control-tests: New file.
35793         * modules/unictype/property-iso-control-tests: New file.
35794         * modules/unictype/property-join-control-tests: New file.
35795         * modules/unictype/property-left-of-pair-tests: New file.
35796         * modules/unictype/property-line-separator-tests: New file.
35797         * modules/unictype/property-logical-order-exception-tests: New file.
35798         * modules/unictype/property-lowercase-tests: New file.
35799         * modules/unictype/property-math-tests: New file.
35800         * modules/unictype/property-non-break-tests: New file.
35801         * modules/unictype/property-not-a-character-tests: New file.
35802         * modules/unictype/property-numeric-tests: New file.
35803         * modules/unictype/property-other-alphabetic-tests: New file.
35804         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
35805         * modules/unictype/property-other-grapheme-extend-tests: New file.
35806         * modules/unictype/property-other-id-continue-tests: New file.
35807         * modules/unictype/property-other-id-start-tests: New file.
35808         * modules/unictype/property-other-lowercase-tests: New file.
35809         * modules/unictype/property-other-math-tests: New file.
35810         * modules/unictype/property-other-uppercase-tests: New file.
35811         * modules/unictype/property-paired-punctuation-tests: New file.
35812         * modules/unictype/property-paragraph-separator-tests: New file.
35813         * modules/unictype/property-pattern-syntax-tests: New file.
35814         * modules/unictype/property-pattern-white-space-tests: New file.
35815         * modules/unictype/property-private-use-tests: New file.
35816         * modules/unictype/property-punctuation-tests: New file.
35817         * modules/unictype/property-quotation-mark-tests: New file.
35818         * modules/unictype/property-radical-tests: New file.
35819         * modules/unictype/property-sentence-terminal-tests: New file.
35820         * modules/unictype/property-soft-dotted-tests: New file.
35821         * modules/unictype/property-space-tests: New file.
35822         * modules/unictype/property-terminal-punctuation-tests: New file.
35823         * modules/unictype/property-test-tests: New file.
35824         * modules/unictype/property-titlecase-tests: New file.
35825         * modules/unictype/property-unassigned-code-value-tests: New file.
35826         * modules/unictype/property-unified-ideograph-tests: New file.
35827         * modules/unictype/property-uppercase-tests: New file.
35828         * modules/unictype/property-variation-selector-tests: New file.
35829         * modules/unictype/property-white-space-tests: New file.
35830         * modules/unictype/property-xid-continue-tests: New file.
35831         * modules/unictype/property-xid-start-tests: New file.
35832         * modules/unictype/property-zero-width-tests: New file.
35833         * modules/unictype/scripts-tests: New file.
35834         * modules/unictype/syntax-c-ident-tests: New file.
35835         * modules/unictype/syntax-c-whitespace-tests: New file.
35836         * modules/unictype/syntax-java-ident-tests: New file.
35837         * modules/unictype/syntax-java-whitespace-tests: New file.
35838         * tests/unictype/test-bidi_byname.c: New file.
35839         * tests/unictype/test-bidi_name.c: New file.
35840         * tests/unictype/test-bidi_of.c: New file.
35841         * tests/unictype/test-bidi_test.c: New file.
35842         * tests/unictype/test-block_list.c: New file.
35843         * tests/unictype/test-block_of.c: New file.
35844         * tests/unictype/test-block_test.c: New file.
35845         * tests/unictype/test-categ_and.c: New file.
35846         * tests/unictype/test-categ_and_not.c: New file.
35847         * tests/unictype/test-categ_byname.c: New file.
35848         * tests/unictype/test-categ_name.c: New file.
35849         * tests/unictype/test-categ_none.c: New file.
35850         * tests/unictype/test-categ_of.c: New file.
35851         * tests/unictype/test-categ_or.c: New file.
35852         * tests/unictype/test-categ_test_withtable.c: New file.
35853         * tests/unictype/test-combining.c: New file.
35854         * tests/unictype/test-decdigit.c: New file.
35855         * tests/unictype/test-digit.c: New file.
35856         * tests/unictype/test-mirror.c: New file.
35857         * tests/unictype/test-numeric.c: New file.
35858         * tests/unictype/test-pr_byname.c: New file.
35859         * tests/unictype/test-pr_test.c: New file.
35860         * tests/unictype/test-predicate-part1.h: New file.
35861         * tests/unictype/test-predicate-part2.h: New file.
35862         * tests/unictype/test-scripts.c: New file.
35863         * tests/unictype/test-sy_c_ident.c: New file.
35864         * tests/unictype/test-sy_java_ident.c: New file.
35865
35866         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
35867         for Unicode 5.0.0.
35868         * tests/unictype/test-categ_Cc.c: Likewise.
35869         * tests/unictype/test-categ_Cf.c: Likewise.
35870         * tests/unictype/test-categ_Cn.c: Likewise.
35871         * tests/unictype/test-categ_Co.c: Likewise.
35872         * tests/unictype/test-categ_Cs.c: Likewise.
35873         * tests/unictype/test-categ_L.c: Likewise.
35874         * tests/unictype/test-categ_Ll.c: Likewise.
35875         * tests/unictype/test-categ_Lm.c: Likewise.
35876         * tests/unictype/test-categ_Lo.c: Likewise.
35877         * tests/unictype/test-categ_Lt.c: Likewise.
35878         * tests/unictype/test-categ_Lu.c: Likewise.
35879         * tests/unictype/test-categ_M.c: Likewise.
35880         * tests/unictype/test-categ_Mc.c: Likewise.
35881         * tests/unictype/test-categ_Me.c: Likewise.
35882         * tests/unictype/test-categ_Mn.c: Likewise.
35883         * tests/unictype/test-categ_N.c: Likewise.
35884         * tests/unictype/test-categ_Nd.c: Likewise.
35885         * tests/unictype/test-categ_Nl.c: Likewise.
35886         * tests/unictype/test-categ_No.c: Likewise.
35887         * tests/unictype/test-categ_P.c: Likewise.
35888         * tests/unictype/test-categ_Pc.c: Likewise.
35889         * tests/unictype/test-categ_Pd.c: Likewise.
35890         * tests/unictype/test-categ_Pe.c: Likewise.
35891         * tests/unictype/test-categ_Pf.c: Likewise.
35892         * tests/unictype/test-categ_Pi.c: Likewise.
35893         * tests/unictype/test-categ_Po.c: Likewise.
35894         * tests/unictype/test-categ_Ps.c: Likewise.
35895         * tests/unictype/test-categ_S.c: Likewise.
35896         * tests/unictype/test-categ_Sc.c: Likewise.
35897         * tests/unictype/test-categ_Sk.c: Likewise.
35898         * tests/unictype/test-categ_Sm.c: Likewise.
35899         * tests/unictype/test-categ_So.c: Likewise.
35900         * tests/unictype/test-categ_Z.c: Likewise.
35901         * tests/unictype/test-categ_Zl.c: Likewise.
35902         * tests/unictype/test-categ_Zp.c: Likewise.
35903         * tests/unictype/test-categ_Zs.c: Likewise.
35904         * tests/unictype/test-ctype_alnum.c: Likewise.
35905         * tests/unictype/test-ctype_alpha.c: Likewise.
35906         * tests/unictype/test-ctype_blank.c: Likewise.
35907         * tests/unictype/test-ctype_cntrl.c: Likewise.
35908         * tests/unictype/test-ctype_digit.c: Likewise.
35909         * tests/unictype/test-ctype_graph.c: Likewise.
35910         * tests/unictype/test-ctype_lower.c: Likewise.
35911         * tests/unictype/test-ctype_print.c: Likewise.
35912         * tests/unictype/test-ctype_punct.c: Likewise.
35913         * tests/unictype/test-ctype_space.c: Likewise.
35914         * tests/unictype/test-ctype_upper.c: Likewise.
35915         * tests/unictype/test-ctype_xdigit.c: Likewise.
35916         * tests/unictype/test-decdigit.h: Likewise.
35917         * tests/unictype/test-digit.h: Likewise.
35918         * tests/unictype/test-numeric.h: Likewise.
35919         * tests/unictype/test-pr_alphabetic.c: Likewise.
35920         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
35921         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35922         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
35923         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
35924         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
35925         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
35926         * tests/unictype/test-pr_bidi_control.c: Likewise.
35927         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
35928         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
35929         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35930         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
35931         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35932         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35933         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35934         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35935         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
35936         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
35937         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
35938         * tests/unictype/test-pr_combining.c: Likewise.
35939         * tests/unictype/test-pr_composite.c: Likewise.
35940         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35941         * tests/unictype/test-pr_dash.c: Likewise.
35942         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35943         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
35944         * tests/unictype/test-pr_deprecated.c: Likewise.
35945         * tests/unictype/test-pr_diacritic.c: Likewise.
35946         * tests/unictype/test-pr_extender.c: Likewise.
35947         * tests/unictype/test-pr_format_control.c: Likewise.
35948         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35949         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35950         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35951         * tests/unictype/test-pr_hex_digit.c: Likewise.
35952         * tests/unictype/test-pr_hyphen.c: Likewise.
35953         * tests/unictype/test-pr_id_continue.c: Likewise.
35954         * tests/unictype/test-pr_id_start.c: Likewise.
35955         * tests/unictype/test-pr_ideographic.c: Likewise.
35956         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
35957         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
35958         * tests/unictype/test-pr_ignorable_control.c: Likewise.
35959         * tests/unictype/test-pr_iso_control.c: Likewise.
35960         * tests/unictype/test-pr_join_control.c: Likewise.
35961         * tests/unictype/test-pr_left_of_pair.c: Likewise.
35962         * tests/unictype/test-pr_line_separator.c: Likewise.
35963         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
35964         * tests/unictype/test-pr_lowercase.c: Likewise.
35965         * tests/unictype/test-pr_math.c: Likewise.
35966         * tests/unictype/test-pr_non_break.c: Likewise.
35967         * tests/unictype/test-pr_not_a_character.c: Likewise.
35968         * tests/unictype/test-pr_numeric.c: Likewise.
35969         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35970         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
35971         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
35972         * tests/unictype/test-pr_other_id_continue.c: Likewise.
35973         * tests/unictype/test-pr_other_id_start.c: Likewise.
35974         * tests/unictype/test-pr_other_lowercase.c: Likewise.
35975         * tests/unictype/test-pr_other_math.c: Likewise.
35976         * tests/unictype/test-pr_other_uppercase.c: Likewise.
35977         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
35978         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
35979         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
35980         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
35981         * tests/unictype/test-pr_private_use.c: Likewise.
35982         * tests/unictype/test-pr_punctuation.c: Likewise.
35983         * tests/unictype/test-pr_quotation_mark.c: Likewise.
35984         * tests/unictype/test-pr_radical.c: Likewise.
35985         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35986         * tests/unictype/test-pr_soft_dotted.c: Likewise.
35987         * tests/unictype/test-pr_space.c: Likewise.
35988         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35989         * tests/unictype/test-pr_titlecase.c: Likewise.
35990         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35991         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35992         * tests/unictype/test-pr_uppercase.c: Likewise.
35993         * tests/unictype/test-pr_variation_selector.c: Likewise.
35994         * tests/unictype/test-pr_white_space.c: Likewise.
35995         * tests/unictype/test-pr_xid_continue.c: Likewise.
35996         * tests/unictype/test-pr_xid_start.c: Likewise.
35997         * tests/unictype/test-pr_zero_width.c: Likewise.
35998         * tests/unictype/test-sy_c_whitespace.c: Likewise.
35999         * tests/unictype/test-sy_java_whitespace.c: Likewise.
36000
36001 2007-11-12  Bruno Haible  <bruno@clisp.org>
36002
36003         Unicode character classification functions.
36004         * lib/unictype.h: New file.
36005         * modules/unictype/base: New file.
36006         * modules/unictype/category-L: New file.
36007         * modules/unictype/category-Lu: New file.
36008         * modules/unictype/category-Ll: New file.
36009         * modules/unictype/category-Lt: New file.
36010         * modules/unictype/category-Lm: New file.
36011         * modules/unictype/category-Lo: New file.
36012         * modules/unictype/category-M: New file.
36013         * modules/unictype/category-Mn: New file.
36014         * modules/unictype/category-Mc: New file.
36015         * modules/unictype/category-Me: New file.
36016         * modules/unictype/category-N: New file.
36017         * modules/unictype/category-Nd: New file.
36018         * modules/unictype/category-Nl: New file.
36019         * modules/unictype/category-No: New file.
36020         * modules/unictype/category-P: New file.
36021         * modules/unictype/category-Pc: New file.
36022         * modules/unictype/category-Pd: New file.
36023         * modules/unictype/category-Ps: New file.
36024         * modules/unictype/category-Pe: New file.
36025         * modules/unictype/category-Pi: New file.
36026         * modules/unictype/category-Pf: New file.
36027         * modules/unictype/category-Po: New file.
36028         * modules/unictype/category-S: New file.
36029         * modules/unictype/category-Sm: New file.
36030         * modules/unictype/category-Sc: New file.
36031         * modules/unictype/category-Sk: New file.
36032         * modules/unictype/category-So: New file.
36033         * modules/unictype/category-Z: New file.
36034         * modules/unictype/category-Zs: New file.
36035         * modules/unictype/category-Zl: New file.
36036         * modules/unictype/category-Zp: New file.
36037         * modules/unictype/category-C: New file.
36038         * modules/unictype/category-Cc: New file.
36039         * modules/unictype/category-Cf: New file.
36040         * modules/unictype/category-Cs: New file.
36041         * modules/unictype/category-Co: New file.
36042         * modules/unictype/category-Cn: New file.
36043         * modules/unictype/category-or: New file.
36044         * modules/unictype/category-of: New file.
36045         * modules/unictype/category-test: New file.
36046         * modules/unictype/category-test-withtable: New file.
36047         * modules/unictype/category-byname: New file.
36048         * modules/unictype/category-none: New file.
36049         * modules/unictype/category-and: New file.
36050         * modules/unictype/category-and-not: New file.
36051         * modules/unictype/category-name: New file.
36052         * modules/unictype/combining-class: New file.
36053         * modules/unictype/category-all: New file.
36054         * modules/unictype/bidicategory-all: New file.
36055         * modules/unictype/bidicategory-byname: New file.
36056         * modules/unictype/bidicategory-name: New file.
36057         * modules/unictype/bidicategory-of: New file.
36058         * modules/unictype/bidicategory-test: New file.
36059         * modules/unictype/decimal-digit: New file.
36060         * modules/unictype/digit: New file.
36061         * modules/unictype/numeric: New file.
36062         * modules/unictype/mirror: New file.
36063         * modules/unictype/property-white-space: New file.
36064         * modules/unictype/property-alphabetic: New file.
36065         * modules/unictype/property-other-alphabetic: New file.
36066         * modules/unictype/property-not-a-character: New file.
36067         * modules/unictype/property-default-ignorable-code-point: New file.
36068         * modules/unictype/property-other-default-ignorable-code-point: New
36069         file.
36070         * modules/unictype/property-deprecated: New file.
36071         * modules/unictype/property-logical-order-exception: New file.
36072         * modules/unictype/property-variation-selector: New file.
36073         * modules/unictype/property-private-use: New file.
36074         * modules/unictype/property-unassigned-code-value: New file.
36075         * modules/unictype/property-uppercase: New file.
36076         * modules/unictype/property-other-uppercase: New file.
36077         * modules/unictype/property-lowercase: New file.
36078         * modules/unictype/property-other-lowercase: New file.
36079         * modules/unictype/property-titlecase: New file.
36080         * modules/unictype/property-soft-dotted: New file.
36081         * modules/unictype/property-id-start: New file.
36082         * modules/unictype/property-other-id-start: New file.
36083         * modules/unictype/property-id-continue: New file.
36084         * modules/unictype/property-other-id-continue: New file.
36085         * modules/unictype/property-xid-start: New file.
36086         * modules/unictype/property-xid-continue: New file.
36087         * modules/unictype/property-pattern-white-space: New file.
36088         * modules/unictype/property-pattern-syntax: New file.
36089         * modules/unictype/property-join-control: New file.
36090         * modules/unictype/property-grapheme-base: New file.
36091         * modules/unictype/property-grapheme-extend: New file.
36092         * modules/unictype/property-other-grapheme-extend: New file.
36093         * modules/unictype/property-grapheme-link: New file.
36094         * modules/unictype/property-bidi-control: New file.
36095         * modules/unictype/property-bidi-left-to-right: New file.
36096         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
36097         * modules/unictype/property-bidi-arabic-right-to-left: New file.
36098         * modules/unictype/property-bidi-european-digit: New file.
36099         * modules/unictype/property-bidi-eur-num-separator: New file.
36100         * modules/unictype/property-bidi-eur-num-terminator: New file.
36101         * modules/unictype/property-bidi-arabic-digit: New file.
36102         * modules/unictype/property-bidi-common-separator: New file.
36103         * modules/unictype/property-bidi-block-separator: New file.
36104         * modules/unictype/property-bidi-segment-separator: New file.
36105         * modules/unictype/property-bidi-whitespace: New file.
36106         * modules/unictype/property-bidi-non-spacing-mark: New file.
36107         * modules/unictype/property-bidi-boundary-neutral: New file.
36108         * modules/unictype/property-bidi-pdf: New file.
36109         * modules/unictype/property-bidi-embedding-or-override: New file.
36110         * modules/unictype/property-bidi-other-neutral: New file.
36111         * modules/unictype/property-hex-digit: New file.
36112         * modules/unictype/property-ascii-hex-digit: New file.
36113         * modules/unictype/property-ideographic: New file.
36114         * modules/unictype/property-unified-ideograph: New file.
36115         * modules/unictype/property-radical: New file.
36116         * modules/unictype/property-ids-binary-operator: New file.
36117         * modules/unictype/property-ids-trinary-operator: New file.
36118         * modules/unictype/property-zero-width: New file.
36119         * modules/unictype/property-space: New file.
36120         * modules/unictype/property-non-break: New file.
36121         * modules/unictype/property-iso-control: New file.
36122         * modules/unictype/property-format-control: New file.
36123         * modules/unictype/property-dash: New file.
36124         * modules/unictype/property-hyphen: New file.
36125         * modules/unictype/property-punctuation: New file.
36126         * modules/unictype/property-line-separator: New file.
36127         * modules/unictype/property-paragraph-separator: New file.
36128         * modules/unictype/property-quotation-mark: New file.
36129         * modules/unictype/property-sentence-terminal: New file.
36130         * modules/unictype/property-terminal-punctuation: New file.
36131         * modules/unictype/property-currency-symbol: New file.
36132         * modules/unictype/property-math: New file.
36133         * modules/unictype/property-other-math: New file.
36134         * modules/unictype/property-paired-punctuation: New file.
36135         * modules/unictype/property-left-of-pair: New file.
36136         * modules/unictype/property-combining: New file.
36137         * modules/unictype/property-composite: New file.
36138         * modules/unictype/property-decimal-digit: New file.
36139         * modules/unictype/property-numeric: New file.
36140         * modules/unictype/property-diacritic: New file.
36141         * modules/unictype/property-extender: New file.
36142         * modules/unictype/property-ignorable-control: New file.
36143         * modules/unictype/property-test: New file.
36144         * modules/unictype/property-byname: New file.
36145         * modules/unictype/property-all: New file.
36146         * modules/unictype/scripts: New file.
36147         * modules/unictype/scripts-all: New file.
36148         * modules/unictype/block-of: New file.
36149         * modules/unictype/block-test: New file.
36150         * modules/unictype/block-list: New file.
36151         * modules/unictype/block-all: New file.
36152         * modules/unictype/syntax-c-whitespace: New file.
36153         * modules/unictype/syntax-java-whitespace: New file.
36154         * modules/unictype/syntax-c-ident: New file.
36155         * modules/unictype/syntax-java-ident: New file.
36156         * modules/unictype/ctype-alnum: New file.
36157         * modules/unictype/ctype-alpha: New file.
36158         * modules/unictype/ctype-cntrl: New file.
36159         * modules/unictype/ctype-digit: New file.
36160         * modules/unictype/ctype-graph: New file.
36161         * modules/unictype/ctype-lower: New file.
36162         * modules/unictype/ctype-print: New file.
36163         * modules/unictype/ctype-punct: New file.
36164         * modules/unictype/ctype-space: New file.
36165         * modules/unictype/ctype-upper: New file.
36166         * modules/unictype/ctype-xdigit: New file.
36167         * modules/unictype/ctype-blank: New file.
36168         * lib/unictype/bidi_byname.c: New file.
36169         * lib/unictype/bidi_name.c: New file.
36170         * lib/unictype/bidi_of.c: New file.
36171         * lib/unictype/bidi_test.c: New file.
36172         * lib/unictype/bitmap.h: New file.
36173         * lib/unictype/block_test.c: New file.
36174         * lib/unictype/blocks.c: New file.
36175         * lib/unictype/categ_C.c: New file.
36176         * lib/unictype/categ_Cc.c: New file.
36177         * lib/unictype/categ_Cf.c: New file.
36178         * lib/unictype/categ_Cn.c: New file.
36179         * lib/unictype/categ_Co.c: New file.
36180         * lib/unictype/categ_Cs.c: New file.
36181         * lib/unictype/categ_L.c: New file.
36182         * lib/unictype/categ_Ll.c: New file.
36183         * lib/unictype/categ_Lm.c: New file.
36184         * lib/unictype/categ_Lo.c: New file.
36185         * lib/unictype/categ_Lt.c: New file.
36186         * lib/unictype/categ_Lu.c: New file.
36187         * lib/unictype/categ_M.c: New file.
36188         * lib/unictype/categ_Mc.c: New file.
36189         * lib/unictype/categ_Me.c: New file.
36190         * lib/unictype/categ_Mn.c: New file.
36191         * lib/unictype/categ_N.c: New file.
36192         * lib/unictype/categ_Nd.c: New file.
36193         * lib/unictype/categ_Nl.c: New file.
36194         * lib/unictype/categ_No.c: New file.
36195         * lib/unictype/categ_P.c: New file.
36196         * lib/unictype/categ_Pc.c: New file.
36197         * lib/unictype/categ_Pd.c: New file.
36198         * lib/unictype/categ_Pe.c: New file.
36199         * lib/unictype/categ_Pf.c: New file.
36200         * lib/unictype/categ_Pi.c: New file.
36201         * lib/unictype/categ_Po.c: New file.
36202         * lib/unictype/categ_Ps.c: New file.
36203         * lib/unictype/categ_S.c: New file.
36204         * lib/unictype/categ_Sc.c: New file.
36205         * lib/unictype/categ_Sk.c: New file.
36206         * lib/unictype/categ_Sm.c: New file.
36207         * lib/unictype/categ_So.c: New file.
36208         * lib/unictype/categ_Z.c: New file.
36209         * lib/unictype/categ_Zl.c: New file.
36210         * lib/unictype/categ_Zp.c: New file.
36211         * lib/unictype/categ_Zs.c: New file.
36212         * lib/unictype/categ_and.c: New file.
36213         * lib/unictype/categ_and_not.c: New file.
36214         * lib/unictype/categ_byname.c: New file.
36215         * lib/unictype/categ_name.c: New file.
36216         * lib/unictype/categ_none.c: New file.
36217         * lib/unictype/categ_of.c: New file.
36218         * lib/unictype/categ_or.c: New file.
36219         * lib/unictype/categ_test.c: New file.
36220         * lib/unictype/combining.c: New file.
36221         * lib/unictype/ctype_alnum.c: New file.
36222         * lib/unictype/ctype_alpha.c: New file.
36223         * lib/unictype/ctype_blank.c: New file.
36224         * lib/unictype/ctype_cntrl.c: New file.
36225         * lib/unictype/ctype_digit.c: New file.
36226         * lib/unictype/ctype_graph.c: New file.
36227         * lib/unictype/ctype_lower.c: New file.
36228         * lib/unictype/ctype_print.c: New file.
36229         * lib/unictype/ctype_punct.c: New file.
36230         * lib/unictype/ctype_space.c: New file.
36231         * lib/unictype/ctype_upper.c: New file.
36232         * lib/unictype/ctype_xdigit.c: New file.
36233         * lib/unictype/decdigit.c: New file.
36234         * lib/unictype/digit.c: New file.
36235         * lib/unictype/identsyntaxmap.h: New file.
36236         * lib/unictype/mirror.c: New file.
36237         * lib/unictype/numeric.c: New file.
36238         * lib/unictype/pr_alphabetic.c: New file.
36239         * lib/unictype/pr_ascii_hex_digit.c: New file.
36240         * lib/unictype/pr_bidi_arabic_digit.c: New file.
36241         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
36242         * lib/unictype/pr_bidi_block_separator.c: New file.
36243         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
36244         * lib/unictype/pr_bidi_common_separator.c: New file.
36245         * lib/unictype/pr_bidi_control.c: New file.
36246         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
36247         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
36248         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
36249         * lib/unictype/pr_bidi_european_digit.c: New file.
36250         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
36251         * lib/unictype/pr_bidi_left_to_right.c: New file.
36252         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
36253         * lib/unictype/pr_bidi_other_neutral.c: New file.
36254         * lib/unictype/pr_bidi_pdf.c: New file.
36255         * lib/unictype/pr_bidi_segment_separator.c: New file.
36256         * lib/unictype/pr_bidi_whitespace.c: New file.
36257         * lib/unictype/pr_byname.c: New file.
36258         * lib/unictype/pr_byname.gperf: New file.
36259         * lib/unictype/pr_combining.c: New file.
36260         * lib/unictype/pr_composite.c: New file.
36261         * lib/unictype/pr_currency_symbol.c: New file.
36262         * lib/unictype/pr_dash.c: New file.
36263         * lib/unictype/pr_decimal_digit.c: New file.
36264         * lib/unictype/pr_default_ignorable_code_point.c: New file.
36265         * lib/unictype/pr_deprecated.c: New file.
36266         * lib/unictype/pr_diacritic.c: New file.
36267         * lib/unictype/pr_extender.c: New file.
36268         * lib/unictype/pr_format_control.c: New file.
36269         * lib/unictype/pr_grapheme_base.c: New file.
36270         * lib/unictype/pr_grapheme_extend.c: New file.
36271         * lib/unictype/pr_grapheme_link.c: New file.
36272         * lib/unictype/pr_hex_digit.c: New file.
36273         * lib/unictype/pr_hyphen.c: New file.
36274         * lib/unictype/pr_id_continue.c: New file.
36275         * lib/unictype/pr_id_start.c: New file.
36276         * lib/unictype/pr_ideographic.c: New file.
36277         * lib/unictype/pr_ids_binary_operator.c: New file.
36278         * lib/unictype/pr_ids_trinary_operator.c: New file.
36279         * lib/unictype/pr_ignorable_control.c: New file.
36280         * lib/unictype/pr_iso_control.c: New file.
36281         * lib/unictype/pr_join_control.c: New file.
36282         * lib/unictype/pr_left_of_pair.c: New file.
36283         * lib/unictype/pr_line_separator.c: New file.
36284         * lib/unictype/pr_logical_order_exception.c: New file.
36285         * lib/unictype/pr_lowercase.c: New file.
36286         * lib/unictype/pr_math.c: New file.
36287         * lib/unictype/pr_non_break.c: New file.
36288         * lib/unictype/pr_not_a_character.c: New file.
36289         * lib/unictype/pr_numeric.c: New file.
36290         * lib/unictype/pr_other_alphabetic.c: New file.
36291         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
36292         * lib/unictype/pr_other_grapheme_extend.c: New file.
36293         * lib/unictype/pr_other_id_continue.c: New file.
36294         * lib/unictype/pr_other_id_start.c: New file.
36295         * lib/unictype/pr_other_lowercase.c: New file.
36296         * lib/unictype/pr_other_math.c: New file.
36297         * lib/unictype/pr_other_uppercase.c: New file.
36298         * lib/unictype/pr_paired_punctuation.c: New file.
36299         * lib/unictype/pr_paragraph_separator.c: New file.
36300         * lib/unictype/pr_pattern_syntax.c: New file.
36301         * lib/unictype/pr_pattern_white_space.c: New file.
36302         * lib/unictype/pr_private_use.c: New file.
36303         * lib/unictype/pr_punctuation.c: New file.
36304         * lib/unictype/pr_quotation_mark.c: New file.
36305         * lib/unictype/pr_radical.c: New file.
36306         * lib/unictype/pr_sentence_terminal.c: New file.
36307         * lib/unictype/pr_soft_dotted.c: New file.
36308         * lib/unictype/pr_space.c: New file.
36309         * lib/unictype/pr_terminal_punctuation.c: New file.
36310         * lib/unictype/pr_test.c: New file.
36311         * lib/unictype/pr_titlecase.c: New file.
36312         * lib/unictype/pr_unassigned_code_value.c: New file.
36313         * lib/unictype/pr_unified_ideograph.c: New file.
36314         * lib/unictype/pr_uppercase.c: New file.
36315         * lib/unictype/pr_variation_selector.c: New file.
36316         * lib/unictype/pr_white_space.c: New file.
36317         * lib/unictype/pr_xid_continue.c: New file.
36318         * lib/unictype/pr_xid_start.c: New file.
36319         * lib/unictype/pr_zero_width.c: New file.
36320         * lib/unictype/scripts.c: New file.
36321         * lib/unictype/sy_c_ident.c: New file.
36322         * lib/unictype/sy_c_whitespace.c: New file.
36323         * lib/unictype/sy_java_ident.c: New file.
36324         * lib/unictype/sy_java_whitespace.c: New file.
36325
36326         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
36327         Unicode 5.0.0.
36328         * lib/unictype/blocks.h: Likewise.
36329         * lib/unictype/categ_C.h: Likewise.
36330         * lib/unictype/categ_Cc.h: Likewise.
36331         * lib/unictype/categ_Cf.h: Likewise.
36332         * lib/unictype/categ_Cn.h: Likewise.
36333         * lib/unictype/categ_Co.h: Likewise.
36334         * lib/unictype/categ_Cs.h: Likewise.
36335         * lib/unictype/categ_L.h: Likewise.
36336         * lib/unictype/categ_Ll.h: Likewise.
36337         * lib/unictype/categ_Lm.h: Likewise.
36338         * lib/unictype/categ_Lo.h: Likewise.
36339         * lib/unictype/categ_Lt.h: Likewise.
36340         * lib/unictype/categ_Lu.h: Likewise.
36341         * lib/unictype/categ_M.h: Likewise.
36342         * lib/unictype/categ_Mc.h: Likewise.
36343         * lib/unictype/categ_Me.h: Likewise.
36344         * lib/unictype/categ_Mn.h: Likewise.
36345         * lib/unictype/categ_N.h: Likewise.
36346         * lib/unictype/categ_Nd.h: Likewise.
36347         * lib/unictype/categ_Nl.h: Likewise.
36348         * lib/unictype/categ_No.h: Likewise.
36349         * lib/unictype/categ_P.h: Likewise.
36350         * lib/unictype/categ_Pc.h: Likewise.
36351         * lib/unictype/categ_Pd.h: Likewise.
36352         * lib/unictype/categ_Pe.h: Likewise.
36353         * lib/unictype/categ_Pf.h: Likewise.
36354         * lib/unictype/categ_Pi.h: Likewise.
36355         * lib/unictype/categ_Po.h: Likewise.
36356         * lib/unictype/categ_Ps.h: Likewise.
36357         * lib/unictype/categ_S.h: Likewise.
36358         * lib/unictype/categ_Sc.h: Likewise.
36359         * lib/unictype/categ_Sk.h: Likewise.
36360         * lib/unictype/categ_Sm.h: Likewise.
36361         * lib/unictype/categ_So.h: Likewise.
36362         * lib/unictype/categ_Z.h: Likewise.
36363         * lib/unictype/categ_Zl.h: Likewise.
36364         * lib/unictype/categ_Zp.h: Likewise.
36365         * lib/unictype/categ_Zs.h: Likewise.
36366         * lib/unictype/categ_of.h: Likewise.
36367         * lib/unictype/combining.h: Likewise.
36368         * lib/unictype/ctype_alnum.h: Likewise.
36369         * lib/unictype/ctype_alpha.h: Likewise.
36370         * lib/unictype/ctype_blank.h: Likewise.
36371         * lib/unictype/ctype_cntrl.h: Likewise.
36372         * lib/unictype/ctype_digit.h: Likewise.
36373         * lib/unictype/ctype_graph.h: Likewise.
36374         * lib/unictype/ctype_lower.h: Likewise.
36375         * lib/unictype/ctype_print.h: Likewise.
36376         * lib/unictype/ctype_punct.h: Likewise.
36377         * lib/unictype/ctype_space.h: Likewise.
36378         * lib/unictype/ctype_upper.h: Likewise.
36379         * lib/unictype/ctype_xdigit.h: Likewise.
36380         * lib/unictype/decdigit.h: Likewise.
36381         * lib/unictype/digit.h: Likewise.
36382         * lib/unictype/mirror.h: Likewise.
36383         * lib/unictype/numeric.h: Likewise.
36384         * lib/unictype/pr_alphabetic.h: Likewise.
36385         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
36386         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
36387         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
36388         * lib/unictype/pr_bidi_block_separator.h: Likewise.
36389         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
36390         * lib/unictype/pr_bidi_common_separator.h: Likewise.
36391         * lib/unictype/pr_bidi_control.h: Likewise.
36392         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
36393         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
36394         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
36395         * lib/unictype/pr_bidi_european_digit.h: Likewise.
36396         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
36397         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
36398         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
36399         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
36400         * lib/unictype/pr_bidi_pdf.h: Likewise.
36401         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
36402         * lib/unictype/pr_bidi_whitespace.h: Likewise.
36403         * lib/unictype/pr_combining.h: Likewise.
36404         * lib/unictype/pr_composite.h: Likewise.
36405         * lib/unictype/pr_currency_symbol.h: Likewise.
36406         * lib/unictype/pr_dash.h: Likewise.
36407         * lib/unictype/pr_decimal_digit.h: Likewise.
36408         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
36409         * lib/unictype/pr_deprecated.h: Likewise.
36410         * lib/unictype/pr_diacritic.h: Likewise.
36411         * lib/unictype/pr_extender.h: Likewise.
36412         * lib/unictype/pr_format_control.h: Likewise.
36413         * lib/unictype/pr_grapheme_base.h: Likewise.
36414         * lib/unictype/pr_grapheme_extend.h: Likewise.
36415         * lib/unictype/pr_grapheme_link.h: Likewise.
36416         * lib/unictype/pr_hex_digit.h: Likewise.
36417         * lib/unictype/pr_hyphen.h: Likewise.
36418         * lib/unictype/pr_id_continue.h: Likewise.
36419         * lib/unictype/pr_id_start.h: Likewise.
36420         * lib/unictype/pr_ideographic.h: Likewise.
36421         * lib/unictype/pr_ids_binary_operator.h: Likewise.
36422         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
36423         * lib/unictype/pr_ignorable_control.h: Likewise.
36424         * lib/unictype/pr_iso_control.h: Likewise.
36425         * lib/unictype/pr_join_control.h: Likewise.
36426         * lib/unictype/pr_left_of_pair.h: Likewise.
36427         * lib/unictype/pr_line_separator.h: Likewise.
36428         * lib/unictype/pr_logical_order_exception.h: Likewise.
36429         * lib/unictype/pr_lowercase.h: Likewise.
36430         * lib/unictype/pr_math.h: Likewise.
36431         * lib/unictype/pr_non_break.h: Likewise.
36432         * lib/unictype/pr_not_a_character.h: Likewise.
36433         * lib/unictype/pr_numeric.h: Likewise.
36434         * lib/unictype/pr_other_alphabetic.h: Likewise.
36435         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
36436         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
36437         * lib/unictype/pr_other_id_continue.h: Likewise.
36438         * lib/unictype/pr_other_id_start.h: Likewise.
36439         * lib/unictype/pr_other_lowercase.h: Likewise.
36440         * lib/unictype/pr_other_math.h: Likewise.
36441         * lib/unictype/pr_other_uppercase.h: Likewise.
36442         * lib/unictype/pr_paired_punctuation.h: Likewise.
36443         * lib/unictype/pr_paragraph_separator.h: Likewise.
36444         * lib/unictype/pr_pattern_syntax.h: Likewise.
36445         * lib/unictype/pr_pattern_white_space.h: Likewise.
36446         * lib/unictype/pr_private_use.h: Likewise.
36447         * lib/unictype/pr_punctuation.h: Likewise.
36448         * lib/unictype/pr_quotation_mark.h: Likewise.
36449         * lib/unictype/pr_radical.h: Likewise.
36450         * lib/unictype/pr_sentence_terminal.h: Likewise.
36451         * lib/unictype/pr_soft_dotted.h: Likewise.
36452         * lib/unictype/pr_space.h: Likewise.
36453         * lib/unictype/pr_terminal_punctuation.h: Likewise.
36454         * lib/unictype/pr_titlecase.h: Likewise.
36455         * lib/unictype/pr_unassigned_code_value.h: Likewise.
36456         * lib/unictype/pr_unified_ideograph.h: Likewise.
36457         * lib/unictype/pr_uppercase.h: Likewise.
36458         * lib/unictype/pr_variation_selector.h: Likewise.
36459         * lib/unictype/pr_white_space.h: Likewise.
36460         * lib/unictype/pr_xid_continue.h: Likewise.
36461         * lib/unictype/pr_xid_start.h: Likewise.
36462         * lib/unictype/pr_zero_width.h: Likewise.
36463         * lib/unictype/scripts.h: Likewise.
36464         * lib/unictype/scripts_byname.gperf: Likewise.
36465         * lib/unictype/sy_c_ident.h: Likewise.
36466         * lib/unictype/sy_c_whitespace.h: Likewise.
36467         * lib/unictype/sy_java_ident.h: Likewise.
36468         * lib/unictype/sy_java_whitespace.h: Likewise.
36469
36470         * lib/unictype/Makefile: New file.
36471         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
36472         glibc.
36473         * lib/unictype/3level.h: New file, copied from glibc.
36474         * lib/unictype/3levelbit.h: New file.
36475
36476 2007-11-11  Bruno Haible  <bruno@clisp.org>
36477
36478         * modules/gperf: New file.
36479         * modules/iconv_open (Depends-on): Add it.
36480         (Makefile.am): Remove the GPERF definition.
36481
36482 2007-11-11  Bruno Haible  <bruno@clisp.org>
36483
36484         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
36485         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
36486
36487 2007-11-11  Bruno Haible  <bruno@clisp.org>
36488
36489         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
36490         (usage): Remove function.
36491
36492 2007-11-11  Bruno Haible  <bruno@clisp.org>
36493
36494         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
36495         gl_FUNC_CEILF_LIBS.
36496         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
36497         gl_FUNC_CEIL_LIBS.
36498         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
36499         gl_FUNC_CEILL_LIBS.
36500         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
36501         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
36502         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
36503
36504 2007-11-11  Bruno Haible  <bruno@clisp.org>
36505
36506         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
36507         roundf were declared but do not exist on functions.
36508         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
36509         roundl were declared but do not exist on functions.
36510         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
36511         HAVE_FLOORL_AND_CEILL, respectively.
36512         Needed for Sun C on Solaris 10.
36513
36514 2007-11-11  Bruno Haible  <bruno@clisp.org>
36515
36516         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
36517         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
36518         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
36519         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
36520         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
36521         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
36522         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
36523         HAVE_DECL_ROUNDF.
36524         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
36525         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
36526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
36527         of HAVE_DECL_ROUND*.
36528         * modules/math (Makefile.am): Update.
36529
36530 2007-11-10  Bruno Haible  <bruno@clisp.org>
36531
36532         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
36533         ptrdiff_t as m4/intl.m4.
36534
36535 2007-11-10  Jim Meyering  <meyering@redhat.com>
36536
36537         Avoid link failure for the argmatch test.
36538         * tests/test-argmatch.c (usage): Define function to avoid a link
36539         failure: argmatch_die requires a usage function.
36540
36541 2007-11-09  Bruno Haible  <bruno@clisp.org>
36542
36543         * doc/functions/snprintf.texi: Mention BeOS deficiency.
36544         * doc/functions/vsnprintf.texi: Likewise.
36545         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
36546         with a size argument < 2.
36547
36548 2007-11-09  Bruno Haible  <bruno@clisp.org>
36549
36550         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
36551         buffer. Fixes an inefficiency introduced on 2007-11-03.
36552
36553 2007-11-09  Bruno Haible  <bruno@clisp.org>
36554
36555         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
36556         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
36557
36558 2007-11-08  Jim Meyering  <meyering@redhat.com>
36559
36560         Change cache variable name prefix "jm_" to "gl_" everywhere.
36561         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
36562         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
36563         * m4/uptime.m4: s/gl_/jm_/
36564
36565 2007-11-07  Bruno Haible  <bruno@clisp.org>
36566
36567         Update to GNU gettext 0.17.
36568         * m4/intl.m4: Update to GNU gettext 0.17.
36569         * m4/po.m4: Likewise.
36570         * modules/gettext (Files): Remove m4/ulonglong.m4.
36571         (configure.ac): Require gettext infrastructure from version 0.17.
36572
36573 2007-11-06  Bruno Haible  <bruno@clisp.org>
36574
36575         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
36576         symbolic values are not defined in a public header.
36577         * lib/freadable.c (freadable) [QNX]: Likewise.
36578         * lib/freadahead.c (freadahead) [QNX]: Likewise.
36579         * lib/freading.c (freading) [QNX]: Likewise.
36580         * lib/fseterr.c (fseterr) [QNX]: Likewise.
36581         * lib/fwritable.c (fwritable) [QNX]: Likewise.
36582         * lib/fwriting.c (fwriting) [QNX]: Likewise.
36583         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
36584         Reported by Alain Magloire.
36585
36586         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
36587
36588 2007-11-05  Bruno Haible  <bruno@clisp.org>
36589
36590         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
36591         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
36592         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
36593         Reported by Eric Blake.
36594
36595 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36596             Bruno Haible  <bruno@clisp.org>
36597
36598         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
36599         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
36600         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
36601         (malloc): Undefine also before including <stdlib.h>.
36602         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
36603         Needed on OSF/1 4.0.
36604
36605 2007-11-05  Jim Meyering  <meyering@redhat.com>
36606
36607         git-version-gen: sync from coreutils.
36608         * build-aux/git-version-gen: Add comments.
36609         Change the first '-' to '.' in the snapshot version string,
36610         e.g., 6.9-377-08144 -> 6.9.377-08144
36611         Remove first parameter.
36612         Don't declare a version "-dirty" merely because a time
36613         stamp has changed.
36614
36615 2007-11-04  Bruno Haible  <bruno@clisp.org>
36616
36617         * lib/lock.h: Protect all macro definitions containing an 'if'
36618         statement through a "do { ... } while (0)".
36619         * lib/tls.h: Likewise.
36620
36621 2007-11-04  Bruno Haible  <bruno@clisp.org>
36622
36623         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
36624
36625 2007-11-04  Bruno Haible  <bruno@clisp.org>
36626
36627         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
36628         * modules/fprintf-posix (Depends-on): Add nocrash.
36629         * modules/snprintf-posix (Depends-on): Likewise.
36630         * modules/sprintf-posix (Depends-on): Likewise.
36631         * modules/vasnprintf-posix (Depends-on): Likewise.
36632         * modules/vasprintf-posix (Depends-on): Likewise.
36633         * modules/vfprintf-posix (Depends-on): Likewise.
36634         * modules/vsnprintf-posix (Depends-on): Likewise.
36635         * modules/vsprintf-posix (Depends-on): Likewise.
36636         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36637         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36638         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36639         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36640         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36641         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36642         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36643
36644 2007-11-04  Bruno Haible  <bruno@clisp.org>
36645
36646         * modules/nocrash: New file.
36647         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
36648         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
36649
36650 2007-11-04  Bruno Haible  <bruno@clisp.org>
36651
36652         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
36653         precision handling.
36654         * tests/test-vasprintf-posix.c (test_function): Likewise.
36655         * tests/test-snprintf-posix.h (test_function): Likewise.
36656         * tests/test-sprintf-posix.h (test_function): Likewise.
36657
36658         Fix *printf behaviour for large precisions on mingw and BeOS.
36659         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
36660         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
36661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
36662         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36663         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36664         gl_PRINTF_PRECISION and test its result. Invoke
36665         gl_PREREQ_VASNPRINTF_PRECISION.
36666         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36667         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36668         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36669         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36670         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36671         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36672         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36673         * doc/functions/fprintf.texi: Update.
36674         * doc/functions/printf.texi: Update.
36675         * doc/functions/snprintf.texi: Update.
36676         * doc/functions/sprintf.texi: Update.
36677         * doc/functions/vfprintf.texi: Update.
36678         * doc/functions/vprintf.texi: Update.
36679         * doc/functions/vsnprintf.texi: Update.
36680         * doc/functions/vsprintf.texi: Update.
36681
36682 2007-11-04  Bruno Haible  <bruno@clisp.org>
36683
36684         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
36685
36686 2007-11-04  Bruno Haible  <bruno@clisp.org>
36687
36688         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
36689         Reported by Sylvain Beucler <beuc@gnu.org>.
36690
36691 2007-11-03  Bruno Haible  <bruno@clisp.org>
36692
36693         * tests/test-fprintf-posix2.sh: New file.
36694         * tests/test-fprintf-posix2.c: New file.
36695         * modules/fprintf-posix-tests (Files): Add them.
36696         (TESTS): Add test-fprintf-posix2.sh.
36697         (configure.ac): Check for getrlimit and setrlimit.
36698         (check_PROGRAMS): Add test-fprintf-posix2.
36699
36700         * tests/test-printf-posix2.sh: New file.
36701         * tests/test-printf-posix2.c: New file.
36702         * modules/printf-posix-tests (Files): Add them.
36703         (TESTS): Add test-printf-posix2.sh.
36704         (configure.ac): Check for getrlimit and setrlimit.
36705         (check_PROGRAMS): Add test-printf-posix2.
36706
36707         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
36708         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
36709         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
36710         (decode_double): New function, copied from decode_long_double.
36711         (scale10_round_decimal_decoded): New function, extracted from
36712         scale10_round_decimal_long_double.
36713         (scale10_round_decimal_long_double): Use it.
36714         (scale10_round_decimal_double): New function.
36715         (floorlog10): New function.
36716         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
36717         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
36718         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36719         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36720         gl_PRINTF_ENOMEM and test its result. Invoke
36721         gl_PREREQ_VASNPRINTF_ENOMEM.
36722         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36723         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36724         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36725         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36726         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36727         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36728         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36729         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
36730         * modules/snprintf-posix (Depends-on): Likewise.
36731         * modules/sprintf-posix (Depends-on): Likewise.
36732         * modules/vasnprintf-posix (Depends-on): Likewise.
36733         * modules/vasprintf-posix (Depends-on): Likewise.
36734         * modules/vfprintf-posix (Depends-on): Likewise.
36735         * modules/vsnprintf-posix (Depends-on): Likewise.
36736         * modules/vsprintf-posix (Depends-on): Likewise.
36737         * doc/functions/fprintf.texi: Update.
36738         * doc/functions/printf.texi: Update.
36739         * doc/functions/snprintf.texi: Update.
36740         * doc/functions/sprintf.texi: Update.
36741         * doc/functions/vfprintf.texi: Update.
36742         * doc/functions/vprintf.texi: Update.
36743         * doc/functions/vsnprintf.texi: Update.
36744         * doc/functions/vsprintf.texi: Update.
36745
36746 2007-11-03  Bruno Haible  <bruno@clisp.org>
36747
36748         * modules/frexp-nolibm-tests: New file.
36749
36750         * modules/frexp-nolibm: New file.
36751         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
36752
36753 2007-11-03  Bruno Haible  <bruno@clisp.org>
36754
36755         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
36756         value is C99 compliant.
36757         Needed for OSF/1 5.1.
36758
36759 2007-11-03  Bruno Haible  <bruno@clisp.org>
36760
36761         Fix out-of-memory handling of vasnprintf.
36762         * lib/printf-parse.c: Include <errno.h>.
36763         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
36764         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
36765         is already set.
36766
36767 2007-11-02  Eric Blake  <ebb9@byu.net>
36768
36769         Fix tests on cygwin.
36770         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
36771
36772 2007-11-01  Bruno Haible  <bruno@clisp.org>
36773
36774         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
36775         warning.
36776         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
36777         needed for POSIX compatibility.
36778
36779 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
36780
36781         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
36782         for compatibility with GNU.
36783
36784 2007-11-01  Bruno Haible  <bruno@clisp.org>
36785
36786         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
36787         (putenv): Renamed from rpl_putenv. Change argument type from
36788         'const char *' to 'char *'.
36789         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
36790         of defining putenv in config.h, just set REPLACE_PUTENV.
36791         * modules/putenv (Depends-on): Add stdlib.
36792         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36793         (Include): Use <stdlib.h>.
36794         * lib/stdlib.in.h (putenv): New declaration.
36795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
36796         REPLACE_PUTENV.
36797         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
36798         REPLACE_PUTENV.
36799         Needed for MacOS X 10.5.0.
36800         Reported by Peter O'Gorman <peter@pogma.com>.
36801
36802 2007-11-01  Jim Meyering  <meyering@redhat.com>
36803
36804         Treat an empty date string exactly like "0".
36805         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
36806         if the remaining date string (to be parsed) is empty, use "0".
36807         Reported by Mischa Molhoek and discussed in this thread:
36808         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
36809
36810 2007-10-31  Bruno Haible  <bruno@clisp.org>
36811
36812         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
36813         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
36814         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
36815         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
36816         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
36817         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
36818
36819 2007-10-31  Bruno Haible  <bruno@clisp.org>
36820
36821         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
36822         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
36823         (AC_TYPE_LONG_LONG_INT): Use it.
36824         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
36825         it as well.
36826         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
36827         to m4/longlong.m4.
36828         * modules/stdint (Files): Remove m4/ulonglong.m4.
36829         * modules/strtoull (Files): Use m4/longlong.m4 instead of
36830         m4/ulonglong.m4.
36831         * modules/strtoumax (Files): Likewise.
36832
36833 2007-10-30  Bruno Haible  <bruno@clisp.org>
36834
36835         * modules/xvasprintf-posix: New file.
36836         Suggested by Eric Blake.
36837
36838 2007-10-30  Bruno Haible  <bruno@clisp.org>
36839
36840         * modules/xprintf-posix-tests: New file.
36841         * tests/test-xprintf-posix.sh: New file.
36842         * tests/test-xprintf-posix.c: New file.
36843         * tests/test-xfprintf-posix.c: New file.
36844
36845         * modules/xprintf-posix: New file.
36846
36847 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36848
36849         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
36850         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
36851         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
36852
36853 2007-10-29  Bruno Haible  <bruno@clisp.org>
36854
36855         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
36856         contain the special marker '_cv_'.
36857         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36858         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36859         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36860         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
36861         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36862         Reported by Ralf Wildenhues.
36863
36864 2007-10-29  Bruno Haible  <bruno@clisp.org>
36865
36866         * gnulib-tool (func_import): When --lgpl is not specified, set
36867         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
36868         GPLv3.
36869         Reported by Simon Josefsson.
36870
36871 2007-10-28  Bruno Haible  <bruno@clisp.org>
36872
36873         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
36874         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
36875         HAVE_DECL_ISFINITE.
36876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36877         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
36878         HAVE_DECL_ISFINITE.
36879
36880 2007-10-28  Bruno Haible  <bruno@clisp.org>
36881
36882         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
36883         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
36884
36885 2007-10-28  Bruno Haible  <bruno@clisp.org>
36886
36887         Fix link errors with Sun C 5.0 on Solaris 10.
36888         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
36889         function is declared but not present in the compiler's libm.
36890         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
36891         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
36892         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
36893         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
36894         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
36895         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
36896         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
36897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36898         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
36899         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
36900         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
36901         HAVE_DECL_FLOORL.
36902
36903 2007-10-28  Bruno Haible  <bruno@clisp.org>
36904
36905         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
36906         gl_FUNC_FLOORL. Cache the result.
36907         (gl_FUNC_FLOORL): Use it.
36908         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
36909         gl_FUNC_CEILL. Cache the result.
36910         (gl_FUNC_CEILL): Use it.
36911
36912         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
36913         gl_FUNC_FLOOR. Cache the result.
36914         (gl_FUNC_FLOOR): Use it.
36915         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
36916         gl_FUNC_CEIL. Cache the result.
36917         (gl_FUNC_CEIL): Use it.
36918
36919         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
36920         gl_FUNC_FLOORF. Cache the result.
36921         (gl_FUNC_FLOORF): Use it.
36922         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
36923         gl_FUNC_CEILF. Cache the result.
36924         (gl_FUNC_CEILF): Use it.
36925
36926 2007-10-28  Bruno Haible  <bruno@clisp.org>
36927
36928         * gnulib-tool: Allow specifying the LGPL version number through
36929         --lgpl=2 or --lgpl=3.
36930         (func_usage): Document --lgpl with argument.
36931         Handle --lgpl=... arguments.
36932         (func_import): Recognize also gl_LGPL calls with an argument. When
36933         --lgpl=2 is used and the module's license is just LGPL, report an
36934         error. Set sed_transform_lib_file according to the lgpl variable. In
36935         the generated files, use --lgpl or gl_LGPL invocations with argument,
36936         if necessary.
36937         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
36938         an LGPv2+ license.
36939         * doc/gnulib-tool.texi (Modified imports): Update explanation of
36940         gl_LGPL macro.
36941
36942 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36943             Bruno Haible  <bruno@clisp.org>
36944
36945         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
36946         (u16_uctomb_aux): Likewise.
36947         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
36948         !HAVE_INLINE.
36949         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
36950
36951 2007-10-28  Bruno Haible  <bruno@clisp.org>
36952
36953         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
36954         Invoke AM_GETTEXT_OPTION if it exists.
36955         * modules/vasprintf: Likewise.
36956         * modules/verror: Likewise.
36957         * modules/xprintf: Likewise.
36958         * modules/xvasprintf: Likewise.
36959
36960 2007-10-27  Ben Pfaff  <blp@gnu.org>
36961
36962         * lib/math.in.h: Define isfinite macro and prototypes for
36963         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
36964         implementations.
36965         * m4/math_h.m4: New substitutions for isfinite module.
36966         * lib/isfinite.c: New file.
36967         * m4/isfinite.m4: New file.
36968         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
36969         * modules/isfinite: New file.
36970         * modules/isfinite-tests: New file.
36971         * tests/tests-isfinite.c: New file.
36972         * doc/functions/isfinite.texi: Mention isfinite module.
36973         * MODULES.html.sh: Mention new module.
36974
36975 2007-10-27  Ben Pfaff  <blp@gnu.org>
36976
36977         Ralf Wildenhues reported that Tru64 4.0D declares the round
36978         functions but does not have definitions.
36979         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
36980         cannot be found in any library, set the output variable to
36981         "missing" instead of "".
36982         * m4/round.m4: Also use our substitute if we cannot find round in
36983         any library, even if it is declared.
36984         * m4/roundf.m4: Likewise for roundf.
36985         * m4/roundl.m4: Likewise for roundl.
36986         * lib/math.in.h: Undefine roundf, round, roundl before defining
36987         their replacements, to allow for hypothetical systems where these
36988         may be defined as macros but not available in libraries.
36989
36990 2007-10-27  Bruno Haible  <bruno@clisp.org>
36991
36992         * doc/gnulib.texi: Invoke @firstparagraphindent.
36993         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
36994         changes in gnulib.
36995         (Source changes): New section.
36996
36997 2007-10-26  Bruno Haible  <bruno@clisp.org>
36998
36999         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
37000         borrowed from autoconf.
37001
37002 2007-10-26  Bruno Haible  <bruno@clisp.org>
37003
37004         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
37005         strerror returned the empty string. Needed on HP-UX 11.00.
37006
37007 2007-10-24  Micah Cowan  <micah@cowan.name>
37008
37009         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
37010         * build-aux/bootstrap: Remove support for now-unnecessary option,
37011         --cvs-user, and envvars CVS_USER, CVS_RSH.
37012
37013 2007-10-24  Jim Meyering  <meyering@redhat.com>
37014
37015         Avoid diagnostics from sha1sum when there is no cached checksum.
37016         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
37017         if the po.s1 file hasn't been created yet.
37018
37019         * build-aux/bootstrap: Sync from coreutils:
37020         2007-10-24  Jim Meyering  <meyering@redhat.com>
37021         Get gnulib from the git repository, not from an obsolete cvs one.
37022         * build-aux/bootstrap: Suggestion from Micah Cowan.
37023         2007-10-04  Jim Meyering  <jim@meyering.net>
37024         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
37025         (update_po_files): Work also when there are no .po files in po/.
37026
37027 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37028
37029         * README: Append ".git" to git and cg examples.
37030         Problem reported by Benoit Sigoure.
37031
37032 2007-10-23  Micah Cowan  <micah@cowan.name>
37033
37034         * users.txt: Add wget.
37035
37036 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37037
37038         Fix linking of some unistdio tests on FreeBSD.
37039         * modules/unistdio/u16-vsnprintf-tests
37040         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
37041         * modules/unistdio/u16-vsprintf-tests
37042         (test_u16_vsnprintf1_LDADD): Likewise.
37043         * modules/unistdio/u32-vsnprintf-tests
37044         (test_u32_vsnprintf1_LDADD): Likewise.
37045         * modules/unistdio/u32-vsprintf-tests
37046         (test_u32_vsprintf1_LDADD): Likewise.
37047         * modules/unistdio/u8-vsnprintf-tests
37048         (test_u8_vsnprintf1_LDADD): Likewise.
37049         * modules/unistdio/u8-vsprintf-tests
37050         (test_u8_vsprintf1_LDADD): Likewise.
37051         * modules/unistdio/ulc-vsnprintf-tests
37052         (test_ulc_vsnprintf1_LDADD): Likewise.
37053         * modules/unistdio/ulc-vsprintf-tests
37054         (test_ulc_vsprintf1_LDADD): Likewise.
37055
37056         Fix linking of some uniconv tests on FreeBSD.
37057         * modules/uniconv/u16-conv-from-enc-tests
37058         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
37059         * modules/uniconv/u16-conv-to-enc-tests
37060         (test_u16_conv_to_enc_LDADD): Likewise.
37061         * modules/uniconv/u16-strconv-from-enc-tests
37062         (test_u16_strconv_from_enc_LDADD): Likewise.
37063         * modules/uniconv/u16-strconv-to-enc-tests
37064         (test_u16_strconv_to_enc_LDADD): Likewise.
37065         * modules/uniconv/u32-conv-from-enc-tests
37066         (test_u32_conv_from_enc_LDADD): Likewise.
37067         * modules/uniconv/u32-conv-to-enc-tests
37068         (test_u32_conv_to_enc_LDADD): Likewise.
37069         * modules/uniconv/u32-strconv-from-enc-tests
37070         (test_u32_strconv_from_enc_LDADD): Likewise.
37071         * modules/uniconv/u32-strconv-to-enc-tests
37072         (test_u32_strconv_to_enc_LDADD): Likewise.
37073         * modules/uniconv/u8-conv-from-enc-tests
37074         (test_u8_conv_from_enc_LDADD): Likewise.
37075         * modules/uniconv/u8-conv-to-enc-tests
37076         (test_u8_conv_to_enc_LDADD): Likewise.
37077         * modules/uniconv/u8-strconv-from-enc-tests
37078         (test_u8_strconv_from_enc_LDADD): Likewise.
37079         * modules/uniconv/u8-strconv-to-enc-tests
37080         (test_u8_strconv_to_enc_LDADD): Likewise.
37081
37082 2007-10-22  Bruno Haible  <bruno@clisp.org>
37083
37084         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
37085         size.
37086
37087 2007-10-22  Eric Blake  <ebb9@byu.net>
37088
37089         Tweak x*printf documentation.
37090         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
37091         variable name and comments.
37092         Suggested by Bruno Haible.
37093
37094 2007-10-22  Bruno Haible  <bruno@clisp.org>
37095
37096         * lib/acl.c (copy_acl): Fix file name in comment.
37097
37098 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37099
37100         Fix Tru64 problem with stdbool.h.
37101         * lib/stdbool.in.h (false, true):
37102         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
37103         Don't declare as an enum in this situation; it runs afoul of Tru64.
37104         Problem reported by Steven M. Schweda in
37105         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
37106
37107 2007-10-22  Eric Blake  <ebb9@byu.net>
37108
37109         Also wrap vf?printf.
37110         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
37111         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
37112         (xvprintf, xvfprintf): New functions.
37113
37114 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37115
37116         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
37117         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
37118
37119         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
37120         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
37121
37122 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37123
37124         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
37125         by Bruno Haible.
37126
37127 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37128
37129         * lib/getloadavg.c
37130         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
37131         Undef `sys' after including sys/table.h, for Tru64 4.0D.
37132
37133         * tests/test-i-ring.c: Work for C89.
37134
37135 2007-10-22  Bruno Haible  <bruno@clisp.org>
37136
37137         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
37138         -1u, in preprocessor expression, so that we don't test for the bug
37139         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
37140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
37141
37142 2007-10-22  Eric Blake  <ebb9@byu.net>
37143
37144         * tests/test-yesno.sh: Silence stderr during test.
37145
37146 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37147
37148         * modules/crypto/gc-camellia: New file.
37149
37150         * m4/gc-camellia.m4: New file.
37151
37152         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
37153
37154         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
37155
37156 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37157
37158         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
37159         --help to stdout.  Reported by sms@antinode.org (Steven
37160         M. Schweda).
37161
37162 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37163
37164         * users.txt: Fix link to libksba.
37165
37166 2007-10-21  Ben Pfaff  <blp@gnu.org>
37167
37168         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
37169         round.c roundf implementation that depends on floorf and ceilf to
37170         be tested unconditionally.
37171
37172 2007-10-21  Ben Pfaff  <blp@gnu.org>
37173
37174         * m4/check-libm-func.m4: Removed.
37175         * m4/check-math-lib.m4: New file.
37176         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
37177         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
37178         definition and lack of AC_LIBOBJ([roundf]).
37179         * m4/roundl.m4: Ditto, and similarly for roundl.
37180         * modules/round: Reference new m4 file.
37181         * modules/roundf: Ditto.
37182         * modules/roundl: Ditto.
37183         * tests/test-round2.c (main): Use ROUND instead of round.
37184         Bug report from Bruno Haible.
37185
37186 2007-10-21  Bruno Haible  <bruno@clisp.org>
37187
37188         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
37189         context.
37190
37191 2007-10-21  Bruno Haible  <bruno@clisp.org>
37192
37193         * tests/test-wcwidth.c (main): Allow negative result for some control
37194         characters.
37195
37196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
37197         Needed on OSF/1 5.1.
37198
37199 2007-10-21  Bruno Haible  <bruno@clisp.org>
37200
37201         * tests/test-floorf1.c: Include isnanf.h.
37202         (main): Use isnanf() instead of isnan().
37203         * tests/test-ceilf1.c: Include isnanf.h.
37204         (main): Use isnanf() instead of isnan().
37205         * tests/test-truncf1.c: Include isnanf.h.
37206         (main): Use isnanf() instead of isnan().
37207         * tests/test-roundf1.c: Include isnanf.h.
37208         (main): Use isnanf() instead of isnan().
37209
37210 2007-10-21  Eric Blake  <ebb9@byu.net>
37211
37212         * users.txt: Update URL for m4.
37213
37214 2007-10-21  Bruno Haible  <bruno@clisp.org>
37215
37216         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
37217
37218 2007-10-21  Bruno Haible  <bruno@clisp.org>
37219
37220         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
37221         Git's management files if the CVS files are not present.
37222
37223 2007-10-20  Bruno Haible  <bruno@clisp.org>
37224
37225         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
37226         gcc-3.4.x.
37227
37228 2007-10-20  Ben Pfaff  <blp@gnu.org>
37229
37230         * lib/math.in.h: Declare round, roundf, roundl if we are providing
37231         implementations.
37232         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
37233         * lib/round.c: New file.
37234         * lib/roundf.c: New file.
37235         * lib/roundl.c: New file.
37236         * m4/round.m4: New file.
37237         * m4/roundf.m4: New file.
37238         * m4/roundl.m4: New file.
37239         * m4/check-libm-func-m4: New file.
37240         * modules/math: Replace round, roundf, roundl related @VARS@ in
37241         math.in.h.
37242         * modules/round: New file.
37243         * modules/round-tests: New file.
37244         * modules/roundf: New file.
37245         * modules/roundf-tests: New file.
37246         * modules/roundl: New file.
37247         * modules/roundl-tests: New file.
37248         * tests/test-round1.c: New file.
37249         * tests/test-round2.c: New file.
37250         * tests/test-roundf1.c: New file.
37251         * tests/test-roundf2.c: New file.
37252         * tests/test-roundl.c: New file.
37253         * doc/functions/round.texi: Mention round module.
37254         * doc/functions/roundf.texi: Mention roundf module.
37255         * doc/functions/roundl.texi: Mention roundl module.
37256         * MODULES.html.sh: Mention new modules.
37257         Thanks to Bruno Haible for suggestions.
37258
37259 2007-10-20  Jim Meyering  <meyering@redhat.com>
37260
37261         * lib/xprintf.c: Include <config.h> unconditionally.
37262
37263         Change xprintf's license to GPL.
37264         * modules/xprintf (License): s/LGPL/GPL/, since this module
37265         depends on modules (exit and exitfail) which are GPL.
37266         Suggestion from Bruno Haible.
37267
37268         xprintf fixes.
37269         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
37270         Use a clearer diagnostic.
37271         Patch from Bruno Haible.
37272
37273 2007-10-20  Bruno Haible  <bruno@clisp.org>
37274
37275         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
37276         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
37277         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37278
37279 2007-10-20  Bruno Haible  <bruno@clisp.org>
37280
37281         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
37282         precision in the comparison result > x - 1 or similar.
37283         * tests/test-ceilf2.c (correct_result_p): Likewise.
37284         * tests/test-truncf2.c (correct_result_p): Likewise.
37285         * tests/test-trunc2.c (correct_result_p): Likewise.
37286         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37287
37288 2007-10-20  Bruno Haible  <bruno@clisp.org>
37289
37290         * modules/ceil: New file.
37291         * m4/ceil.m4: New file.
37292         * doc/functions/ceil.texi: Mention the 'ceil' module.
37293
37294 2007-10-20  Bruno Haible  <bruno@clisp.org>
37295
37296         * modules/floor: New file.
37297         * m4/floor.m4: New file.
37298         * doc/functions/floor.texi: Mention the 'floor' module.
37299
37300 2007-10-20  Bruno Haible  <bruno@clisp.org>
37301
37302         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
37303         of %a.
37304         * modules/floorf-tests (Depends-on): Likewise.
37305         * modules/truncf-tests (Depends-on): Likewise.
37306         * modules/trunc-tests (Depends-on): Likewise.
37307         Reported by Ben Pfaff.
37308
37309 2007-10-19  Jim Meyering  <meyering@redhat.com>
37310
37311         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
37312         Don't bother testing specific errno values.  Just test ferror.
37313
37314         New module: xprintf
37315         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
37316
37317 2007-10-19  Bruno Haible  <bruno@clisp.org>
37318
37319         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
37320         syntax.
37321         * modules/javaexec (Makefile.am): Likewise.
37322         * modules/relocatable-prog (Makefile.am): Likewise.
37323         Suggested by Jim Meyering.
37324
37325 2007-10-18  Bruno Haible  <bruno@clisp.org>
37326
37327         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
37328         Reported by Jim Meyering.
37329
37330 2007-10-18  Eric Blake  <ebb9@byu.net>
37331
37332         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
37333
37334 2007-10-18  Bruno Haible  <bruno@clisp.org>
37335
37336         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
37337         the format string into writable memory. Needed in Fortify conditions.
37338
37339 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
37340             Bruno Haible  <bruno@clisp.org>
37341
37342         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
37343         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
37344         * modules/trim (Depends-on): Add mbchar.
37345         (configure.ac): Add gl_FUNC_MBRTOWC.
37346         (Makefile.am): Augment lib_SOURCES.
37347
37348 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
37349
37350         Modify glob.c to use fstatat and dirfd, to simplify it.
37351         Suggested by Eric Blake.
37352         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
37353         Don't include <stdbool.h>; not used.
37354         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
37355         (link_exists_p): Simplify implementation, since we can now assume
37356         dirfd and fstatat.
37357         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
37358
37359 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37360
37361         * gnulib-tool (func_get_dependencies): Fix sed script to
37362         match only tests.
37363
37364 2007-10-17  Bruno Haible  <bruno@clisp.org>
37365
37366         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
37367         allow locale names without encoding suffix.
37368         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37369         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37370
37371 2007-10-16  Bruno Haible  <bruno@clisp.org>
37372
37373         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
37374         * lib/getgroups.c (getgroups): Likewise.
37375         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
37376
37377 2007-10-16  Bruno Haible  <bruno@clisp.org>
37378
37379         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
37380         * modules/malloc-posix (License): Likewise.
37381         * modules/realloc-posix (License): Likewise.
37382         * modules/calloc-posix (License): Likewise.
37383         * modules/intprops (License): Change from GPL to LGPL, with
37384         Paul Eggert's approval.
37385
37386 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37387
37388         Merge glibc changes into lib/glob.c.
37389
37390         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
37391         2007-10-15 04:59:03 UTC.  Here are the changes:
37392
37393         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
37394
37395         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
37396
37397         * lib/glob.c: Add some branch prediction throughout.
37398
37399         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
37400
37401         [BZ #5103]
37402         * lib/glob.c (glob): Recognize patterns starting \/.
37403
37404         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
37405
37406         [BZ #3996]
37407         * lib/glob.c (attribute_hidden): Define if not defined.
37408         (glob): Unescape dirname, filename or username when needed and not
37409         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
37410         is NULL.  Handle unescaped [ in pattern without closing ].
37411         Don't pass GLOB_CHECK down to recursive glob for directories.
37412         (__glob_pattern_type): New function.
37413         (__glob_pattern_p): Implement using __glob_pattern_type.
37414         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
37415         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
37416         Remove unreachable code.
37417
37418         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
37419
37420         * lib/glob.c (glob_in_dir): Add some comments and asserts to
37421         explain why there are no leaks.
37422
37423         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
37424
37425         [BZ #3253]
37426         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
37427         time, rather allocate increasingly bigger arrays of pointers, if
37428         possible with alloca, if too large with malloc.
37429
37430 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37431
37432         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
37433         Problem reported by H.Merijn Brand in
37434         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
37435         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
37436         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
37437
37438 2007-10-15  Bruno Haible  <bruno@clisp.org>
37439
37440         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
37441         with explicit rpl_ prefix.
37442         * lib/fopen.c (fopen): Likewise.
37443         * lib/freopen.c (freopen): Likewise.
37444         * lib/iconv.c (iconv): Likewise.
37445         * lib/iconv_close.c (iconv_close): Likewise.
37446
37447 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37448
37449         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
37450
37451 2007-10-15  Bruno Haible  <bruno@clisp.org>
37452
37453         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
37454         <stddef.h> instead of <stdlib.h> since we only need NULL.
37455         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37456
37457 2007-10-15  Bruno Haible  <bruno@clisp.org>
37458
37459         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
37460         Replace paragraph talking about LIBOBJS.
37461         Reported by Colin Watson <cjwatson@debian.org>.
37462
37463 2007-10-15  Bruno Haible  <bruno@clisp.org>
37464
37465         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
37466         <stdlib.h> before using NULL.
37467
37468 2007-10-15  Simon Josefsson  <simon@josefsson.org>
37469
37470         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
37471         Reported by Albert Chin <china@thewrittenword.com>.
37472
37473 2007-10-14  Bruno Haible  <bruno@clisp.org>
37474
37475         * modules/iconv_open-utf-tests: New file.
37476         * tests/test-iconv-utf.c: New file.
37477
37478         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
37479         * modules/iconv_open-utf: New file.
37480         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
37481         (iconv, iconv_close): New declarations.
37482         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
37483         be defined.
37484         (iconv_open): Add special handling of conversion between UTF-8 and
37485         UTF-{16,32}{BE,LE}.
37486         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
37487         * lib/iconv_close.c: New file.
37488         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
37489         gl_FUNC_ICONV_OPEN.
37490         (gl_FUNC_ICONV_OPEN): Use it.
37491         (gl_FUNC_ICONV_OPEN_UTF): New macro.
37492         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
37493         and REPLACE_ICONV_UTF.
37494         * modules/iconv_open (Depends-on): Add c-strcase.
37495         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
37496         ICONV_CONST.
37497         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
37498
37499 2007-10-13  Albert Chin  <china@thewrittenword.com>
37500             Bruno Haible  <bruno@clisp.org>
37501
37502         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
37503         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
37504
37505 2007-10-13  Bruno Haible  <bruno@clisp.org>
37506
37507         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
37508         defined, use the ISO C99 inline semantics.
37509         * lib/argp.h (ARGP_EI): Likewise.
37510
37511 2007-10-13  Bruno Haible  <bruno@clisp.org>
37512
37513         Handle 'inline' change in gcc 4.3.0.
37514         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
37515         argp_fmtstream_write, argp_fmtstream_set_lmargin,
37516         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
37517         argp_fmtstream_point): Disable 'extern' declaration if the function
37518         definition is going to be provided inline.
37519         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
37520         semantics, not the ISO C99 inline semantics.
37521         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
37522         'extern' declaration if the function definition is going to be provided
37523         inline.
37524         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
37525         the GNU C inline semantics, not the ISO C99 inline semantics. With
37526         GCC 4.2, avoid a warning.
37527
37528 2007-10-13  Bruno Haible  <bruno@clisp.org>
37529
37530         * lib/freading.h (freading): Enable the use of __freading for
37531         glibc >= 2.7.
37532         * lib/freading.c (freading): Likewise.
37533
37534 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37535
37536         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
37537         "warning: C99 inline functions are not supported; using GNU89".
37538
37539 2007-10-12  Bruno Haible  <bruno@clisp.org>
37540
37541         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
37542         of 2.
37543         * tests/test-ceilf2.c: New file.
37544         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
37545
37546         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
37547         * modules/ceilf-tests: Update.
37548
37549 2007-10-12  Bruno Haible  <bruno@clisp.org>
37550
37551         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
37552         of 2.
37553         * tests/test-floorf2.c: New file.
37554         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
37555
37556         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
37557         * modules/floorf-tests: Update.
37558
37559 2007-10-12  Bruno Haible  <bruno@clisp.org>
37560
37561         * tests/test-trunc2.c: New file.
37562         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
37563
37564         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
37565         * modules/trunc-tests: Update.
37566
37567 2007-10-12  Bruno Haible  <bruno@clisp.org>
37568
37569         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
37570         of 2.
37571         * tests/test-truncf2.c: New file.
37572         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
37573
37574         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
37575         * modules/truncf-tests: Update.
37576
37577 2007-10-11  Eric Blake  <ebb9@byu.net>
37578
37579         Don't claim strerror is broken on Interix.
37580         * doc/functions/strerror.texi (strerror): Known broken systems are
37581         now Solaris 8, and not Interix.
37582         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
37583         Interix on cross-compile.
37584         Reported by Martin Koeppe in
37585         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
37586
37587 2007-10-11  Bruno Haible  <bruno@clisp.org>
37588
37589         * modules/i-ring-tests: New file.
37590         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
37591         instead of assert.
37592
37593 2007-10-11  Bruno Haible  <bruno@clisp.org>
37594
37595         * modules/filenamecat-tests: New file.
37596         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
37597         * lib/filenamecat.c: Remove test code.
37598
37599 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
37600
37601         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
37602
37603         * lib/strerror.c: Include <string.h> always, to test interface,
37604         and to remove the need for the dummy.
37605         Include intprops.h to compute width instead of doing it ourselves
37606         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
37607         (strerror): Define it to return NULL if there's no system strerror.
37608         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
37609         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
37610         ancient pre-strerror Unix systems well any more.  Saying "unknown
37611         system error" is enough.
37612         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
37613         simpler strerror.c implementation.
37614         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
37615         Simplify the tests to reflect the simpler strerror implementation.
37616         * modules/strerror (Depends-on): Add intprops.
37617
37618 2007-10-09  Eric Blake  <ebb9@byu.net>
37619
37620         Silence test-fpending.
37621         * modules/fpending-tests (Files): Add wrapper script.
37622         * tests/test-fpending.sh: New file.
37623
37624 2007-10-09  Bruno Haible  <bruno@clisp.org>
37625
37626         * MODULES.html.sh (func_module): Don't create a hyperlink for
37627         function names like 'printf_frexp'.
37628         (Misc): Add crc, memxor.
37629         (Characteristics of floating types): New section.
37630         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
37631         isnanf-nolibm, signbit, trunc, truncf, truncl.
37632         (Enhancements for ISO C 99 functions): New subsection Input/output.
37633         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
37634         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
37635         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
37636         (Compatibility checks for POSIX:2001 functions): Add clock-time.
37637         (Enhancements for POSIX:2001 functions): Add chdir-long.
37638         (File system functions): Add areadlink, chdir-safer, read-file.
37639         Remove cycle-check.
37640         (File system as inode set): New section.
37641         (Date and time): Add gethrxtime.
37642         (Multithreading): Add openmp.
37643         (Internationalization functions): Add localename.
37644         (Unicode string functions): Add unistr/u*-mbsnlen.
37645         (Support for maintaining and releasing projects): Add git-version-gen.
37646         (Lone files): Remove directories.
37647
37648 2007-10-08  Ben Pfaff  <blp@gnu.org>
37649
37650         * lib/xmalloca.h: Fix typo in comment.
37651
37652 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37653
37654         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
37655         when avoiding problems with integer overflow.  Use a portable test
37656         instead.
37657
37658 2007-10-08  Simon Josefsson  <simon@josefsson.org>
37659
37660         * modules/dummy (License): Change to LGPLv2+.
37661         * modules/float (License): Likewise
37662         * modules/realloc (License): Likewise
37663         * modules/stdlib (License): Likewise
37664
37665 2007-10-07  Bruno Haible  <bruno@clisp.org>
37666
37667         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
37668         * floor.c (TWO_MANT_DIG): Likewise.
37669         * ceil.c (TWO_MANT_DIG): Likewise.
37670         Reported by Ben Pfaff.
37671
37672 2007-10-07  Bruno Haible  <bruno@clisp.org>
37673
37674         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
37675         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
37676         * lib/frexp.c (FUNC): Likewise.
37677         * lib/printf-frexp.h (printf_frexp): Likewise.
37678         * lib/printf-frexpl.h (printf_frexpl): Likewise.
37679         * lib/printf-frexp.c (FUNC): Likewise.
37680         Suggested by Jim Meyering.
37681
37682 2007-10-07  Jim Meyering  <meyering@redhat.com>
37683
37684         Make xnanosleep's integer overflow test more robust.
37685         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
37686         so that gcc-4.3.0 doesn't optimize away this test for overflow.
37687
37688 2007-10-07  Bruno Haible  <bruno@clisp.org>
37689
37690         * NEWS: Mention the license change.
37691
37692         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
37693         abbreviations in the modules files.
37694
37695         Change copyright notice from GPLv2+ to GPLv3+.
37696         * README: Change copyright notice.
37697         * MODULES.html.sh: Likewise.
37698         * build-aux/bootstrap.conf: Likewise.
37699         * build-aux/config.libpath: Likewise.
37700         * build-aux/csharpcomp.sh.in: Likewise.
37701         * build-aux/csharpexec.sh.in: Likewise.
37702         * build-aux/install-reloc: Likewise.
37703         * build-aux/javacomp.sh.in: Likewise.
37704         * build-aux/javaexec.sh.in: Likewise.
37705         * build-aux/ldd.sh.in: Likewise.
37706         * build-aux/reloc-ldflags: Likewise.
37707         * build-aux/relocatable.sh.in: Likewise.
37708         * build-aux/x-to-1.in: Likewise.
37709         * check-module: Likewise.
37710         * config/srclistvars.sh: Likewise.
37711         * gnulib-tool: Likewise.
37712         * lib/acl-internal.h: Likewise.
37713         * lib/acl.c: Likewise.
37714         * lib/acl.h: Likewise.
37715         * lib/acl_entries.c: Likewise.
37716         * lib/areadlink-with-size.c: Likewise.
37717         * lib/areadlink.c: Likewise.
37718         * lib/areadlink.h: Likewise.
37719         * lib/argmatch.c: Likewise.
37720         * lib/argmatch.h: Likewise.
37721         * lib/argp-ba.c: Likewise.
37722         * lib/argp-eexst.c: Likewise.
37723         * lib/argp-fmtstream.c: Likewise.
37724         * lib/argp-fmtstream.h: Likewise.
37725         * lib/argp-fs-xinl.c: Likewise.
37726         * lib/argp-help.c: Likewise.
37727         * lib/argp-namefrob.h: Likewise.
37728         * lib/argp-parse.c: Likewise.
37729         * lib/argp-pin.c: Likewise.
37730         * lib/argp-pv.c: Likewise.
37731         * lib/argp-pvh.c: Likewise.
37732         * lib/argp-xinl.c: Likewise.
37733         * lib/argp.h: Likewise.
37734         * lib/at-func.c: Likewise.
37735         * lib/atanl.c: Likewise.
37736         * lib/backupfile.c: Likewise.
37737         * lib/backupfile.h: Likewise.
37738         * lib/basename.c: Likewise.
37739         * lib/binary-io.h: Likewise.
37740         * lib/byteswap.in.h: Likewise.
37741         * lib/c-stack.c: Likewise.
37742         * lib/c-stack.h: Likewise.
37743         * lib/c-strcasestr.c: Likewise.
37744         * lib/c-strcasestr.h: Likewise.
37745         * lib/c-strstr.c: Likewise.
37746         * lib/c-strstr.h: Likewise.
37747         * lib/c-strtod.c: Likewise.
37748         * lib/calloc.c: Likewise.
37749         * lib/canon-host.c: Likewise.
37750         * lib/canon-host.h: Likewise.
37751         * lib/canonicalize-lgpl.c: Likewise.
37752         * lib/canonicalize.c: Likewise.
37753         * lib/canonicalize.h: Likewise.
37754         * lib/ceil.c: Likewise.
37755         * lib/ceilf.c: Likewise.
37756         * lib/ceill.c: Likewise.
37757         * lib/chdir-long.c: Likewise.
37758         * lib/chdir-long.h: Likewise.
37759         * lib/chdir-safer.c: Likewise.
37760         * lib/chdir-safer.h: Likewise.
37761         * lib/chown.c: Likewise.
37762         * lib/classpath.c: Likewise.
37763         * lib/classpath.h: Likewise.
37764         * lib/clean-temp.c: Likewise.
37765         * lib/clean-temp.h: Likewise.
37766         * lib/cloexec.c: Likewise.
37767         * lib/close-stream.c: Likewise.
37768         * lib/closein.c: Likewise.
37769         * lib/closein.h: Likewise.
37770         * lib/closeout.c: Likewise.
37771         * lib/closeout.h: Likewise.
37772         * lib/concat-filename.c: Likewise.
37773         * lib/copy-file.c: Likewise.
37774         * lib/copy-file.h: Likewise.
37775         * lib/count-one-bits.h: Likewise.
37776         * lib/crc.c: Likewise.
37777         * lib/crc.h: Likewise.
37778         * lib/creat-safer.c: Likewise.
37779         * lib/csharpcomp.c: Likewise.
37780         * lib/csharpcomp.h: Likewise.
37781         * lib/csharpexec.c: Likewise.
37782         * lib/csharpexec.h: Likewise.
37783         * lib/cycle-check.c: Likewise.
37784         * lib/cycle-check.h: Likewise.
37785         * lib/diacrit.c: Likewise.
37786         * lib/diacrit.h: Likewise.
37787         * lib/diffseq.h: Likewise.
37788         * lib/dirchownmod.c: Likewise.
37789         * lib/dirent.in.h: Likewise.
37790         * lib/dirfd.c: Likewise.
37791         * lib/dirfd.h: Likewise.
37792         * lib/dirname.c: Likewise.
37793         * lib/dirname.h: Likewise.
37794         * lib/dummy.c: Likewise.
37795         * lib/dup-safer.c: Likewise.
37796         * lib/dup2.c: Likewise.
37797         * lib/eealloc.h: Likewise.
37798         * lib/error.c: Likewise.
37799         * lib/error.h: Likewise.
37800         * lib/euidaccess.c: Likewise.
37801         * lib/exclude.c: Likewise.
37802         * lib/exclude.h: Likewise.
37803         * lib/execute.c: Likewise.
37804         * lib/execute.h: Likewise.
37805         * lib/exitfail.c: Likewise.
37806         * lib/exitfail.h: Likewise.
37807         * lib/expl.c: Likewise.
37808         * lib/fatal-signal.c: Likewise.
37809         * lib/fatal-signal.h: Likewise.
37810         * lib/fbufmode.c: Likewise.
37811         * lib/fbufmode.h: Likewise.
37812         * lib/fchdir.c: Likewise.
37813         * lib/fchmodat.c: Likewise.
37814         * lib/fchownat.c: Likewise.
37815         * lib/fcntl--.h: Likewise.
37816         * lib/fcntl-safer.h: Likewise.
37817         * lib/fcntl.in.h: Likewise.
37818         * lib/fd-safer.c: Likewise.
37819         * lib/fflush.c: Likewise.
37820         * lib/file-has-acl.c: Likewise.
37821         * lib/file-set.c: Likewise.
37822         * lib/file-type.c: Likewise.
37823         * lib/file-type.h: Likewise.
37824         * lib/fileblocks.c: Likewise.
37825         * lib/filemode.c: Likewise.
37826         * lib/filemode.h: Likewise.
37827         * lib/filename.h: Likewise.
37828         * lib/filenamecat.c: Likewise.
37829         * lib/filenamecat.h: Likewise.
37830         * lib/findprog.c: Likewise.
37831         * lib/findprog.h: Likewise.
37832         * lib/float.in.h: Likewise.
37833         * lib/floor.c: Likewise.
37834         * lib/floorf.c: Likewise.
37835         * lib/floorl.c: Likewise.
37836         * lib/fopen-safer.c: Likewise.
37837         * lib/fopen.c: Likewise.
37838         * lib/fpending.c: Likewise.
37839         * lib/fpending.h: Likewise.
37840         * lib/fprintf.c: Likewise.
37841         * lib/fprintftime.h: Likewise.
37842         * lib/fpucw.h: Likewise.
37843         * lib/fpurge.c: Likewise.
37844         * lib/fpurge.h: Likewise.
37845         * lib/freadable.c: Likewise.
37846         * lib/freadable.h: Likewise.
37847         * lib/freadahead.c: Likewise.
37848         * lib/freadahead.h: Likewise.
37849         * lib/freading.c: Likewise.
37850         * lib/freading.h: Likewise.
37851         * lib/free.c: Likewise.
37852         * lib/freopen.c: Likewise.
37853         * lib/frexp.c: Likewise.
37854         * lib/frexpl.c: Likewise.
37855         * lib/fseek.c: Likewise.
37856         * lib/fseterr.c: Likewise.
37857         * lib/fseterr.h: Likewise.
37858         * lib/fstatat.c: Likewise.
37859         * lib/fstrcmp.c: Likewise.
37860         * lib/fstrcmp.h: Likewise.
37861         * lib/fsusage.c: Likewise.
37862         * lib/fsusage.h: Likewise.
37863         * lib/ftell.c: Likewise.
37864         * lib/ftello.c: Likewise.
37865         * lib/fts-cycle.c: Likewise.
37866         * lib/fts.c: Likewise.
37867         * lib/fts_.h: Likewise.
37868         * lib/full-read.c: Likewise.
37869         * lib/full-read.h: Likewise.
37870         * lib/full-write.c: Likewise.
37871         * lib/full-write.h: Likewise.
37872         * lib/fwritable.c: Likewise.
37873         * lib/fwritable.h: Likewise.
37874         * lib/fwriteerror.c: Likewise.
37875         * lib/fwriteerror.h: Likewise.
37876         * lib/fwriting.c: Likewise.
37877         * lib/fwriting.h: Likewise.
37878         * lib/gcd.c: Likewise.
37879         * lib/gcd.h: Likewise.
37880         * lib/getcwd.c: Likewise.
37881         * lib/getdate.h: Likewise.
37882         * lib/getdate.y: Likewise.
37883         * lib/getdomainname.c: Likewise.
37884         * lib/getdomainname.h: Likewise.
37885         * lib/getgroups.c: Likewise.
37886         * lib/gethostname.c: Likewise.
37887         * lib/gethrxtime.c: Likewise.
37888         * lib/gethrxtime.h: Likewise.
37889         * lib/getloadavg.c: Likewise.
37890         * lib/getndelim2.c: Likewise.
37891         * lib/getndelim2.h: Likewise.
37892         * lib/getnline.c: Likewise.
37893         * lib/getnline.h: Likewise.
37894         * lib/getopt.c: Likewise.
37895         * lib/getopt.in.h: Likewise.
37896         * lib/getopt1.c: Likewise.
37897         * lib/getopt_int.h: Likewise.
37898         * lib/getpagesize.h: Likewise.
37899         * lib/getsubopt.c: Likewise.
37900         * lib/gettime.c: Likewise.
37901         * lib/getugroups.c: Likewise.
37902         * lib/getugroups.h: Likewise.
37903         * lib/getusershell.c: Likewise.
37904         * lib/gl_anyavltree_list1.h: Likewise.
37905         * lib/gl_anyavltree_list2.h: Likewise.
37906         * lib/gl_anyhash_list1.h: Likewise.
37907         * lib/gl_anyhash_list2.h: Likewise.
37908         * lib/gl_anylinked_list1.h: Likewise.
37909         * lib/gl_anylinked_list2.h: Likewise.
37910         * lib/gl_anyrbtree_list1.h: Likewise.
37911         * lib/gl_anyrbtree_list2.h: Likewise.
37912         * lib/gl_anytree_list1.h: Likewise.
37913         * lib/gl_anytree_list2.h: Likewise.
37914         * lib/gl_anytree_oset.h: Likewise.
37915         * lib/gl_anytreehash_list1.h: Likewise.
37916         * lib/gl_anytreehash_list2.h: Likewise.
37917         * lib/gl_array_list.c: Likewise.
37918         * lib/gl_array_list.h: Likewise.
37919         * lib/gl_array_oset.c: Likewise.
37920         * lib/gl_array_oset.h: Likewise.
37921         * lib/gl_avltree_list.c: Likewise.
37922         * lib/gl_avltree_list.h: Likewise.
37923         * lib/gl_avltree_oset.c: Likewise.
37924         * lib/gl_avltree_oset.h: Likewise.
37925         * lib/gl_avltreehash_list.c: Likewise.
37926         * lib/gl_avltreehash_list.h: Likewise.
37927         * lib/gl_carray_list.c: Likewise.
37928         * lib/gl_carray_list.h: Likewise.
37929         * lib/gl_linked_list.c: Likewise.
37930         * lib/gl_linked_list.h: Likewise.
37931         * lib/gl_linkedhash_list.c: Likewise.
37932         * lib/gl_linkedhash_list.h: Likewise.
37933         * lib/gl_list.c: Likewise.
37934         * lib/gl_list.h: Likewise.
37935         * lib/gl_oset.c: Likewise.
37936         * lib/gl_oset.h: Likewise.
37937         * lib/gl_rbtree_list.c: Likewise.
37938         * lib/gl_rbtree_list.h: Likewise.
37939         * lib/gl_rbtree_oset.c: Likewise.
37940         * lib/gl_rbtree_oset.h: Likewise.
37941         * lib/gl_rbtreehash_list.c: Likewise.
37942         * lib/gl_rbtreehash_list.h: Likewise.
37943         * lib/gl_sublist.c: Likewise.
37944         * lib/gl_sublist.h: Likewise.
37945         * lib/group-member.c: Likewise.
37946         * lib/group-member.h: Likewise.
37947         * lib/hard-locale.c: Likewise.
37948         * lib/hard-locale.h: Likewise.
37949         * lib/hash-pjw.c: Likewise.
37950         * lib/hash-pjw.h: Likewise.
37951         * lib/hash-triple.c: Likewise.
37952         * lib/hash.c: Likewise.
37953         * lib/hash.h: Likewise.
37954         * lib/human.c: Likewise.
37955         * lib/human.h: Likewise.
37956         * lib/i-ring.c: Likewise.
37957         * lib/i-ring.h: Likewise.
37958         * lib/idcache.c: Likewise.
37959         * lib/imaxabs.c: Likewise.
37960         * lib/imaxdiv.c: Likewise.
37961         * lib/inet_pton.c: Likewise.
37962         * lib/inet_pton.h: Likewise.
37963         * lib/intprops.h: Likewise.
37964         * lib/inttostr.c: Likewise.
37965         * lib/inttostr.h: Likewise.
37966         * lib/inttypes.in.h: Likewise.
37967         * lib/isapipe.c: Likewise.
37968         * lib/isdir.c: Likewise.
37969         * lib/isnan.c: Likewise.
37970         * lib/isnan.h: Likewise.
37971         * lib/isnanf.c: Likewise.
37972         * lib/isnanf.h: Likewise.
37973         * lib/isnanl-nolibm.h: Likewise.
37974         * lib/isnanl.c: Likewise.
37975         * lib/isnanl.h: Likewise.
37976         * lib/javacomp.c: Likewise.
37977         * lib/javacomp.h: Likewise.
37978         * lib/javaexec.c: Likewise.
37979         * lib/javaexec.h: Likewise.
37980         * lib/javaversion.c: Likewise.
37981         * lib/javaversion.h: Likewise.
37982         * lib/javaversion.java: Likewise.
37983         * lib/lbrkprop.h: Likewise.
37984         * lib/lchmod.h: Likewise.
37985         * lib/lchown.c: Likewise.
37986         * lib/ldexpl.c: Likewise.
37987         * lib/linebreak.c: Likewise.
37988         * lib/linebreak.h: Likewise.
37989         * lib/linebuffer.c: Likewise.
37990         * lib/linebuffer.h: Likewise.
37991         * lib/locale.in.h: Likewise.
37992         * lib/logl.c: Likewise.
37993         * lib/long-options.c: Likewise.
37994         * lib/long-options.h: Likewise.
37995         * lib/lstat.c: Likewise.
37996         * lib/lstat.h: Likewise.
37997         * lib/math.in.h: Likewise.
37998         * lib/mbchar.c: Likewise.
37999         * lib/mbchar.h: Likewise.
38000         * lib/mbfile.h: Likewise.
38001         * lib/mbiter.h: Likewise.
38002         * lib/mbscasecmp.c: Likewise.
38003         * lib/mbscasestr.c: Likewise.
38004         * lib/mbschr.c: Likewise.
38005         * lib/mbscspn.c: Likewise.
38006         * lib/mbslen.c: Likewise.
38007         * lib/mbsncasecmp.c: Likewise.
38008         * lib/mbsnlen.c: Likewise.
38009         * lib/mbspbrk.c: Likewise.
38010         * lib/mbspcasecmp.c: Likewise.
38011         * lib/mbsrchr.c: Likewise.
38012         * lib/mbssep.c: Likewise.
38013         * lib/mbsspn.c: Likewise.
38014         * lib/mbsstr.c: Likewise.
38015         * lib/mbstok_r.c: Likewise.
38016         * lib/mbswidth.c: Likewise.
38017         * lib/mbswidth.h: Likewise.
38018         * lib/mbuiter.h: Likewise.
38019         * lib/memcasecmp.c: Likewise.
38020         * lib/memcasecmp.h: Likewise.
38021         * lib/memchr.c: Likewise.
38022         * lib/memcmp.c: Likewise.
38023         * lib/memcoll.c: Likewise.
38024         * lib/memcoll.h: Likewise.
38025         * lib/memcpy.c: Likewise.
38026         * lib/memrchr.c: Likewise.
38027         * lib/mkancesdirs.c: Likewise.
38028         * lib/mkdir-p.c: Likewise.
38029         * lib/mkdir-p.h: Likewise.
38030         * lib/mkdir.c: Likewise.
38031         * lib/mkdirat.c: Likewise.
38032         * lib/mkdtemp.c: Likewise.
38033         * lib/mkstemp-safer.c: Likewise.
38034         * lib/mkstemp.c: Likewise.
38035         * lib/modechange.c: Likewise.
38036         * lib/modechange.h: Likewise.
38037         * lib/mountlist.c: Likewise.
38038         * lib/mountlist.h: Likewise.
38039         * lib/mpsort.c: Likewise.
38040         * lib/nanosleep.c: Likewise.
38041         * lib/obstack.c: Likewise.
38042         * lib/obstack.h: Likewise.
38043         * lib/open-safer.c: Likewise.
38044         * lib/open.c: Likewise.
38045         * lib/openat-die.c: Likewise.
38046         * lib/openat-priv.h: Likewise.
38047         * lib/openat-proc.c: Likewise.
38048         * lib/openat.c: Likewise.
38049         * lib/openat.h: Likewise.
38050         * lib/pagealign_alloc.c: Likewise.
38051         * lib/pagealign_alloc.h: Likewise.
38052         * lib/physmem.c: Likewise.
38053         * lib/physmem.h: Likewise.
38054         * lib/pipe-safer.c: Likewise.
38055         * lib/pipe.c: Likewise.
38056         * lib/pipe.h: Likewise.
38057         * lib/posixtm.c: Likewise.
38058         * lib/posixtm.h: Likewise.
38059         * lib/posixver.c: Likewise.
38060         * lib/printf-frexp.c: Likewise.
38061         * lib/printf-frexp.h: Likewise.
38062         * lib/printf-frexpl.c: Likewise.
38063         * lib/printf-frexpl.h: Likewise.
38064         * lib/printf.c: Likewise.
38065         * lib/progname.c: Likewise.
38066         * lib/progname.h: Likewise.
38067         * lib/progreloc.c: Likewise.
38068         * lib/putenv.c: Likewise.
38069         * lib/quote.c: Likewise.
38070         * lib/quote.h: Likewise.
38071         * lib/quotearg.c: Likewise.
38072         * lib/quotearg.h: Likewise.
38073         * lib/raise.c: Likewise.
38074         * lib/readline.c: Likewise.
38075         * lib/readline.h: Likewise.
38076         * lib/readlink.c: Likewise.
38077         * lib/readtokens.c: Likewise.
38078         * lib/readtokens.h: Likewise.
38079         * lib/readtokens0.c: Likewise.
38080         * lib/readtokens0.h: Likewise.
38081         * lib/readutmp.c: Likewise.
38082         * lib/readutmp.h: Likewise.
38083         * lib/realloc.c: Likewise.
38084         * lib/relocwrapper.c: Likewise.
38085         * lib/rename-dest-slash.c: Likewise.
38086         * lib/rename.c: Likewise.
38087         * lib/rmdir.c: Likewise.
38088         * lib/rpmatch.c: Likewise.
38089         * lib/safe-read.c: Likewise.
38090         * lib/safe-read.h: Likewise.
38091         * lib/safe-write.c: Likewise.
38092         * lib/safe-write.h: Likewise.
38093         * lib/same-inode.h: Likewise.
38094         * lib/same.c: Likewise.
38095         * lib/same.h: Likewise.
38096         * lib/save-cwd.c: Likewise.
38097         * lib/save-cwd.h: Likewise.
38098         * lib/savedir.c: Likewise.
38099         * lib/savedir.h: Likewise.
38100         * lib/savewd.c: Likewise.
38101         * lib/savewd.h: Likewise.
38102         * lib/search.in.h: Likewise.
38103         * lib/setenv.c: Likewise.
38104         * lib/setenv.h: Likewise.
38105         * lib/settime.c: Likewise.
38106         * lib/sh-quote.c: Likewise.
38107         * lib/sh-quote.h: Likewise.
38108         * lib/sig2str.c: Likewise.
38109         * lib/sig2str.h: Likewise.
38110         * lib/signal.in.h: Likewise.
38111         * lib/signbitd.c: Likewise.
38112         * lib/signbitf.c: Likewise.
38113         * lib/signbitl.c: Likewise.
38114         * lib/sigprocmask.c: Likewise.
38115         * lib/sincosl.c: Likewise.
38116         * lib/sleep.c: Likewise.
38117         * lib/sprintf.c: Likewise.
38118         * lib/sqrtl.c: Likewise.
38119         * lib/stat-time.h: Likewise.
38120         * lib/stdio--.h: Likewise.
38121         * lib/stdio-safer.h: Likewise.
38122         * lib/stdlib--.h: Likewise.
38123         * lib/stdlib-safer.h: Likewise.
38124         * lib/stdlib.in.h: Likewise.
38125         * lib/stpcpy.c: Likewise.
38126         * lib/stpncpy.c: Likewise.
38127         * lib/strchrnul.c: Likewise.
38128         * lib/strcspn.c: Likewise.
38129         * lib/strerror.c: Likewise.
38130         * lib/strftime.c: Likewise.
38131         * lib/strftime.h: Likewise.
38132         * lib/striconveh.c: Likewise.
38133         * lib/striconveh.h: Likewise.
38134         * lib/striconveha.c: Likewise.
38135         * lib/striconveha.h: Likewise.
38136         * lib/stripslash.c: Likewise.
38137         * lib/strnlen1.c: Likewise.
38138         * lib/strnlen1.h: Likewise.
38139         * lib/strtod.c: Likewise.
38140         * lib/strtoimax.c: Likewise.
38141         * lib/strtok_r.c: Likewise.
38142         * lib/strtol.c: Likewise.
38143         * lib/strtoll.c: Likewise.
38144         * lib/strtoul.c: Likewise.
38145         * lib/strtoull.c: Likewise.
38146         * lib/sysexits.in.h: Likewise.
38147         * lib/tempname.c: Likewise.
38148         * lib/tempname.h: Likewise.
38149         * lib/timespec.h: Likewise.
38150         * lib/tls.c: Likewise.
38151         * lib/tls.h: Likewise.
38152         * lib/tmpdir.c: Likewise.
38153         * lib/tmpdir.h: Likewise.
38154         * lib/tmpfile-safer.c: Likewise.
38155         * lib/tmpfile.c: Likewise.
38156         * lib/trigl.c: Likewise.
38157         * lib/trigl.h: Likewise.
38158         * lib/trim.c: Likewise.
38159         * lib/trim.h: Likewise.
38160         * lib/trunc.c: Likewise.
38161         * lib/truncf.c: Likewise.
38162         * lib/truncl.c: Likewise.
38163         * lib/tsearch.c: Likewise.
38164         * lib/unicodeio.c: Likewise.
38165         * lib/unicodeio.h: Likewise.
38166         * lib/unistd--.h: Likewise.
38167         * lib/unistd-safer.h: Likewise.
38168         * lib/unistdio/ulc-fprintf.c: Likewise.
38169         * lib/unistdio/ulc-vfprintf.c: Likewise.
38170         * lib/unlinkdir.c: Likewise.
38171         * lib/unlinkdir.h: Likewise.
38172         * lib/unlocked-io.h: Likewise.
38173         * lib/unsetenv.c: Likewise.
38174         * lib/userspec.c: Likewise.
38175         * lib/utime.c: Likewise.
38176         * lib/utimecmp.c: Likewise.
38177         * lib/utimecmp.h: Likewise.
38178         * lib/utimens.c: Likewise.
38179         * lib/verify.h: Likewise.
38180         * lib/verror.c: Likewise.
38181         * lib/verror.h: Likewise.
38182         * lib/version-etc-fsf.c: Likewise.
38183         * lib/version-etc.c: Likewise.
38184         * lib/version-etc.h: Likewise.
38185         * lib/vfprintf.c: Likewise.
38186         * lib/vprintf.c: Likewise.
38187         * lib/vsprintf.c: Likewise.
38188         * lib/w32spawn.h: Likewise.
38189         * lib/wait-process.c: Likewise.
38190         * lib/wait-process.h: Likewise.
38191         * lib/wcwidth.c: Likewise.
38192         * lib/write-any-file.c: Likewise.
38193         * lib/xalloc-die.c: Likewise.
38194         * lib/xalloc.h: Likewise.
38195         * lib/xasprintf.c: Likewise.
38196         * lib/xgetcwd.c: Likewise.
38197         * lib/xgetcwd.h: Likewise.
38198         * lib/xgetdomainname.c: Likewise.
38199         * lib/xgetdomainname.h: Likewise.
38200         * lib/xgethostname.c: Likewise.
38201         * lib/xmalloc.c: Likewise.
38202         * lib/xmalloca.c: Likewise.
38203         * lib/xmalloca.h: Likewise.
38204         * lib/xmemcoll.c: Likewise.
38205         * lib/xnanosleep.c: Likewise.
38206         * lib/xreadlink.c: Likewise.
38207         * lib/xreadlink.h: Likewise.
38208         * lib/xsetenv.c: Likewise.
38209         * lib/xsetenv.h: Likewise.
38210         * lib/xstriconv.c: Likewise.
38211         * lib/xstriconv.h: Likewise.
38212         * lib/xstrndup.c: Likewise.
38213         * lib/xstrndup.h: Likewise.
38214         * lib/xstrtod.c: Likewise.
38215         * lib/xstrtod.h: Likewise.
38216         * lib/xstrtol-error.c: Likewise.
38217         * lib/xstrtol.c: Likewise.
38218         * lib/xstrtol.h: Likewise.
38219         * lib/xtime.h: Likewise.
38220         * lib/xvasprintf.c: Likewise.
38221         * lib/xvasprintf.h: Likewise.
38222         * lib/yesno.c: Likewise.
38223         * lib/yesno.h: Likewise.
38224         * posix-modules: Likewise.
38225         * tests/test-alloca-opt.c: Likewise.
38226         * tests/test-arcfour.c: Likewise.
38227         * tests/test-arctwo.c: Likewise.
38228         * tests/test-argmatch.c: Likewise.
38229         * tests/test-argp-2.sh: Likewise.
38230         * tests/test-argp.c: Likewise.
38231         * tests/test-arpa_inet.c: Likewise.
38232         * tests/test-array_list.c: Likewise.
38233         * tests/test-array_oset.c: Likewise.
38234         * tests/test-atexit.c: Likewise.
38235         * tests/test-avltree_list.c: Likewise.
38236         * tests/test-avltree_oset.c: Likewise.
38237         * tests/test-avltreehash_list.c: Likewise.
38238         * tests/test-base64.c: Likewise.
38239         * tests/test-binary-io.c: Likewise.
38240         * tests/test-byteswap.c: Likewise.
38241         * tests/test-c-ctype.c: Likewise.
38242         * tests/test-c-strcasecmp.c: Likewise.
38243         * tests/test-c-strcasestr.c: Likewise.
38244         * tests/test-c-strncasecmp.c: Likewise.
38245         * tests/test-c-strstr.c: Likewise.
38246         * tests/test-canonicalize-lgpl.c: Likewise.
38247         * tests/test-canonicalize.c: Likewise.
38248         * tests/test-carray_list.c: Likewise.
38249         * tests/test-ceilf.c: Likewise.
38250         * tests/test-ceill.c: Likewise.
38251         * tests/test-count-one-bits.c: Likewise.
38252         * tests/test-crc.c: Likewise.
38253         * tests/test-dirname.c: Likewise.
38254         * tests/test-fbufmode.c: Likewise.
38255         * tests/test-fcntl.c: Likewise.
38256         * tests/test-fflush.c: Likewise.
38257         * tests/test-floorf.c: Likewise.
38258         * tests/test-floorl.c: Likewise.
38259         * tests/test-fopen.c: Likewise.
38260         * tests/test-fprintf-posix.c: Likewise.
38261         * tests/test-fprintf-posix.h: Likewise.
38262         * tests/test-fpurge.c: Likewise.
38263         * tests/test-freadable.c: Likewise.
38264         * tests/test-freadahead.c: Likewise.
38265         * tests/test-freading.c: Likewise.
38266         * tests/test-freopen.c: Likewise.
38267         * tests/test-frexp.c: Likewise.
38268         * tests/test-frexpl.c: Likewise.
38269         * tests/test-fseek.c: Likewise.
38270         * tests/test-fseeko.c: Likewise.
38271         * tests/test-fseterr.c: Likewise.
38272         * tests/test-fstrcmp.c: Likewise.
38273         * tests/test-ftell.c: Likewise.
38274         * tests/test-ftello.c: Likewise.
38275         * tests/test-fwritable.c: Likewise.
38276         * tests/test-fwriting.c: Likewise.
38277         * tests/test-getaddrinfo.c: Likewise.
38278         * tests/test-getpass.c: Likewise.
38279         * tests/test-gettimeofday.c: Likewise.
38280         * tests/test-hmac-md5.c: Likewise.
38281         * tests/test-hmac-sha1.c: Likewise.
38282         * tests/test-iconv.c: Likewise.
38283         * tests/test-iconvme.c: Likewise.
38284         * tests/test-inttypes.c: Likewise.
38285         * tests/test-isnan.c: Likewise.
38286         * tests/test-isnanf.c: Likewise.
38287         * tests/test-isnanl-nolibm.c: Likewise.
38288         * tests/test-isnanl.c: Likewise.
38289         * tests/test-isnanl.h: Likewise.
38290         * tests/test-ldexpl.c: Likewise.
38291         * tests/test-linked_list.c: Likewise.
38292         * tests/test-linkedhash_list.c: Likewise.
38293         * tests/test-locale.c: Likewise.
38294         * tests/test-localename.c: Likewise.
38295         * tests/test-lock.c: Likewise.
38296         * tests/test-lseek.c: Likewise.
38297         * tests/test-malloca.c: Likewise.
38298         * tests/test-math.c: Likewise.
38299         * tests/test-mbscasecmp.c: Likewise.
38300         * tests/test-mbscasestr1.c: Likewise.
38301         * tests/test-mbscasestr2.c: Likewise.
38302         * tests/test-mbscasestr3.c: Likewise.
38303         * tests/test-mbscasestr4.c: Likewise.
38304         * tests/test-mbschr.c: Likewise.
38305         * tests/test-mbscspn.c: Likewise.
38306         * tests/test-mbsncasecmp.c: Likewise.
38307         * tests/test-mbspbrk.c: Likewise.
38308         * tests/test-mbspcasecmp.c: Likewise.
38309         * tests/test-mbsrchr.c: Likewise.
38310         * tests/test-mbsspn.c: Likewise.
38311         * tests/test-mbsstr1.c: Likewise.
38312         * tests/test-mbsstr2.c: Likewise.
38313         * tests/test-mbsstr3.c: Likewise.
38314         * tests/test-md5.c: Likewise.
38315         * tests/test-memmem.c: Likewise.
38316         * tests/test-netinet_in.c: Likewise.
38317         * tests/test-open.c: Likewise.
38318         * tests/test-printf-frexp.c: Likewise.
38319         * tests/test-printf-frexpl.c: Likewise.
38320         * tests/test-printf-posix.c: Likewise.
38321         * tests/test-printf-posix.h: Likewise.
38322         * tests/test-rbtree_list.c: Likewise.
38323         * tests/test-rbtree_oset.c: Likewise.
38324         * tests/test-rbtreehash_list.c: Likewise.
38325         * tests/test-read-file.c: Likewise.
38326         * tests/test-rijndael.c: Likewise.
38327         * tests/test-search.c: Likewise.
38328         * tests/test-signbit.c: Likewise.
38329         * tests/test-sleep.c: Likewise.
38330         * tests/test-snprintf-posix.c: Likewise.
38331         * tests/test-snprintf-posix.h: Likewise.
38332         * tests/test-snprintf.c: Likewise.
38333         * tests/test-sprintf-posix.c: Likewise.
38334         * tests/test-sprintf-posix.h: Likewise.
38335         * tests/test-stat-time.c: Likewise.
38336         * tests/test-stdbool.c: Likewise.
38337         * tests/test-stdint.c: Likewise.
38338         * tests/test-stdio.c: Likewise.
38339         * tests/test-stdlib.c: Likewise.
38340         * tests/test-stpncpy.c: Likewise.
38341         * tests/test-strcasestr.c: Likewise.
38342         * tests/test-striconv.c: Likewise.
38343         * tests/test-striconveh.c: Likewise.
38344         * tests/test-striconveha.c: Likewise.
38345         * tests/test-string.c: Likewise.
38346         * tests/test-sys_select.c: Likewise.
38347         * tests/test-sys_socket.c: Likewise.
38348         * tests/test-sys_stat.c: Likewise.
38349         * tests/test-sys_time.c: Likewise.
38350         * tests/test-sysexits.c: Likewise.
38351         * tests/test-time.c: Likewise.
38352         * tests/test-tls.c: Likewise.
38353         * tests/test-trunc.c: Likewise.
38354         * tests/test-truncf.c: Likewise.
38355         * tests/test-truncl.c: Likewise.
38356         * tests/test-unistd.c: Likewise.
38357         * tests/test-vasnprintf-posix.c: Likewise.
38358         * tests/test-vasnprintf-posix2.c: Likewise.
38359         * tests/test-vasnprintf.c: Likewise.
38360         * tests/test-vasprintf-posix.c: Likewise.
38361         * tests/test-vasprintf.c: Likewise.
38362         * tests/test-verify.c: Likewise.
38363         * tests/test-vfprintf-posix.c: Likewise.
38364         * tests/test-vprintf-posix.c: Likewise.
38365         * tests/test-vsnprintf-posix.c: Likewise.
38366         * tests/test-vsnprintf.c: Likewise.
38367         * tests/test-vsprintf-posix.c: Likewise.
38368         * tests/test-wchar.c: Likewise.
38369         * tests/test-wctype.c: Likewise.
38370         * tests/test-wcwidth.c: Likewise.
38371         * tests/test-xstrtol.c: Likewise.
38372         * tests/test-xvasprintf.c: Likewise.
38373         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38374         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38375         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38376         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38377         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38378         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38379         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38380         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38381         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38382         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38383         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38384         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38385         * tests/uniname/test-uninames.c: Likewise.
38386         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38387         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
38388         * tests/unistdio/test-u16-printf1.h: Likewise.
38389         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38390         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38391         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38392         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38393         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38394         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38395         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38396         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
38397         * tests/unistdio/test-u32-printf1.h: Likewise.
38398         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38399         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38400         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38401         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38402         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38403         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38404         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38405         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
38406         * tests/unistdio/test-u8-printf1.h: Likewise.
38407         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38408         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38409         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38410         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38411         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38412         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38413         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38414         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
38415         * tests/unistdio/test-ulc-printf1.h: Likewise.
38416         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38417         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38418         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38419         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38420         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38421         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38422         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38423         * tests/uniwidth/test-u16-width.c: Likewise.
38424         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38425         * tests/uniwidth/test-u32-width.c: Likewise.
38426         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38427         * tests/uniwidth/test-u8-width.c: Likewise.
38428         * tests/uniwidth/test-uc_width.c: Likewise.
38429         * config/srclist-update: Likewise.
38430         (fixlicense): Update to GPLv3+.
38431
38432         Change copyright notice from LGPLv2.1+ to LGPLv3+.
38433         * tests/test-tsearch.c: Change copyright notice.
38434
38435         Change copyright notice from LGPLv2.0+ to LGPLv3+.
38436         * lib/c-strcaseeq.h: Change copyright notice.
38437         * lib/streq.h: Likewise.
38438         * lib/uniconv.h: Likewise.
38439         * lib/uniconv/u-conv-from-enc.h: Likewise.
38440         * lib/uniconv/u-conv-to-enc.h: Likewise.
38441         * lib/uniconv/u-strconv-from-enc.h: Likewise.
38442         * lib/uniconv/u-strconv-to-enc.h: Likewise.
38443         * lib/uniconv/u16-conv-from-enc.c: Likewise.
38444         * lib/uniconv/u16-conv-to-enc.c: Likewise.
38445         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
38446         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
38447         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
38448         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
38449         * lib/uniconv/u32-conv-from-enc.c: Likewise.
38450         * lib/uniconv/u32-conv-to-enc.c: Likewise.
38451         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
38452         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
38453         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
38454         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
38455         * lib/uniconv/u8-conv-from-enc.c: Likewise.
38456         * lib/uniconv/u8-conv-to-enc.c: Likewise.
38457         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
38458         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
38459         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
38460         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
38461         * lib/uniname.h: Likewise.
38462         * lib/uniname/uniname.c: Likewise.
38463         * lib/unistdio.h: Likewise.
38464         * lib/unistdio/u-asnprintf.h: Likewise.
38465         * lib/unistdio/u-asprintf.h: Likewise.
38466         * lib/unistdio/u-printf-args.c: Likewise.
38467         * lib/unistdio/u-printf-args.h: Likewise.
38468         * lib/unistdio/u-printf-parse.h: Likewise.
38469         * lib/unistdio/u-snprintf.h: Likewise.
38470         * lib/unistdio/u-sprintf.h: Likewise.
38471         * lib/unistdio/u-vasprintf.h: Likewise.
38472         * lib/unistdio/u-vsnprintf.h: Likewise.
38473         * lib/unistdio/u-vsprintf.h: Likewise.
38474         * lib/unistdio/u16-asnprintf.c: Likewise.
38475         * lib/unistdio/u16-asprintf.c: Likewise.
38476         * lib/unistdio/u16-printf-parse.c: Likewise.
38477         * lib/unistdio/u16-snprintf.c: Likewise.
38478         * lib/unistdio/u16-sprintf.c: Likewise.
38479         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
38480         * lib/unistdio/u16-u16-asprintf.c: Likewise.
38481         * lib/unistdio/u16-u16-snprintf.c: Likewise.
38482         * lib/unistdio/u16-u16-sprintf.c: Likewise.
38483         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
38484         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
38485         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
38486         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
38487         * lib/unistdio/u16-vasnprintf.c: Likewise.
38488         * lib/unistdio/u16-vasprintf.c: Likewise.
38489         * lib/unistdio/u16-vsnprintf.c: Likewise.
38490         * lib/unistdio/u16-vsprintf.c: Likewise.
38491         * lib/unistdio/u32-asnprintf.c: Likewise.
38492         * lib/unistdio/u32-asprintf.c: Likewise.
38493         * lib/unistdio/u32-printf-parse.c: Likewise.
38494         * lib/unistdio/u32-snprintf.c: Likewise.
38495         * lib/unistdio/u32-sprintf.c: Likewise.
38496         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
38497         * lib/unistdio/u32-u32-asprintf.c: Likewise.
38498         * lib/unistdio/u32-u32-snprintf.c: Likewise.
38499         * lib/unistdio/u32-u32-sprintf.c: Likewise.
38500         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
38501         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
38502         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
38503         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
38504         * lib/unistdio/u32-vasnprintf.c: Likewise.
38505         * lib/unistdio/u32-vasprintf.c: Likewise.
38506         * lib/unistdio/u32-vsnprintf.c: Likewise.
38507         * lib/unistdio/u32-vsprintf.c: Likewise.
38508         * lib/unistdio/u8-asnprintf.c: Likewise.
38509         * lib/unistdio/u8-asprintf.c: Likewise.
38510         * lib/unistdio/u8-printf-parse.c: Likewise.
38511         * lib/unistdio/u8-snprintf.c: Likewise.
38512         * lib/unistdio/u8-sprintf.c: Likewise.
38513         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
38514         * lib/unistdio/u8-u8-asprintf.c: Likewise.
38515         * lib/unistdio/u8-u8-snprintf.c: Likewise.
38516         * lib/unistdio/u8-u8-sprintf.c: Likewise.
38517         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
38518         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
38519         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
38520         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
38521         * lib/unistdio/u8-vasnprintf.c: Likewise.
38522         * lib/unistdio/u8-vasprintf.c: Likewise.
38523         * lib/unistdio/u8-vsnprintf.c: Likewise.
38524         * lib/unistdio/u8-vsprintf.c: Likewise.
38525         * lib/unistdio/ulc-asnprintf.c: Likewise.
38526         * lib/unistdio/ulc-asprintf.c: Likewise.
38527         * lib/unistdio/ulc-printf-parse.c: Likewise.
38528         * lib/unistdio/ulc-snprintf.c: Likewise.
38529         * lib/unistdio/ulc-sprintf.c: Likewise.
38530         * lib/unistdio/ulc-vasnprintf.c: Likewise.
38531         * lib/unistdio/ulc-vasprintf.c: Likewise.
38532         * lib/unistdio/ulc-vsnprintf.c: Likewise.
38533         * lib/unistdio/ulc-vsprintf.c: Likewise.
38534         * lib/unistr.h: Likewise.
38535         * lib/unistr/u-cpy-alloc.h: Likewise.
38536         * lib/unistr/u-cpy.h: Likewise.
38537         * lib/unistr/u-endswith.h: Likewise.
38538         * lib/unistr/u-move.h: Likewise.
38539         * lib/unistr/u-set.h: Likewise.
38540         * lib/unistr/u-startswith.h: Likewise.
38541         * lib/unistr/u-stpcpy.h: Likewise.
38542         * lib/unistr/u-stpncpy.h: Likewise.
38543         * lib/unistr/u-strcat.h: Likewise.
38544         * lib/unistr/u-strcpy.h: Likewise.
38545         * lib/unistr/u-strcspn.h: Likewise.
38546         * lib/unistr/u-strdup.h: Likewise.
38547         * lib/unistr/u-strlen.h: Likewise.
38548         * lib/unistr/u-strncat.h: Likewise.
38549         * lib/unistr/u-strncpy.h: Likewise.
38550         * lib/unistr/u-strnlen.h: Likewise.
38551         * lib/unistr/u-strpbrk.h: Likewise.
38552         * lib/unistr/u-strspn.h: Likewise.
38553         * lib/unistr/u-strstr.h: Likewise.
38554         * lib/unistr/u-strtok.h: Likewise.
38555         * lib/unistr/u16-check.c: Likewise.
38556         * lib/unistr/u16-chr.c: Likewise.
38557         * lib/unistr/u16-cmp.c: Likewise.
38558         * lib/unistr/u16-cpy-alloc.c: Likewise.
38559         * lib/unistr/u16-cpy.c: Likewise.
38560         * lib/unistr/u16-endswith.c: Likewise.
38561         * lib/unistr/u16-mblen.c: Likewise.
38562         * lib/unistr/u16-mbsnlen.c: Likewise.
38563         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38564         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38565         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38566         * lib/unistr/u16-mbtouc.c: Likewise.
38567         * lib/unistr/u16-mbtoucr.c: Likewise.
38568         * lib/unistr/u16-move.c: Likewise.
38569         * lib/unistr/u16-next.c: Likewise.
38570         * lib/unistr/u16-prev.c: Likewise.
38571         * lib/unistr/u16-set.c: Likewise.
38572         * lib/unistr/u16-startswith.c: Likewise.
38573         * lib/unistr/u16-stpcpy.c: Likewise.
38574         * lib/unistr/u16-stpncpy.c: Likewise.
38575         * lib/unistr/u16-strcat.c: Likewise.
38576         * lib/unistr/u16-strchr.c: Likewise.
38577         * lib/unistr/u16-strcmp.c: Likewise.
38578         * lib/unistr/u16-strcpy.c: Likewise.
38579         * lib/unistr/u16-strcspn.c: Likewise.
38580         * lib/unistr/u16-strdup.c: Likewise.
38581         * lib/unistr/u16-strlen.c: Likewise.
38582         * lib/unistr/u16-strmblen.c: Likewise.
38583         * lib/unistr/u16-strmbtouc.c: Likewise.
38584         * lib/unistr/u16-strncat.c: Likewise.
38585         * lib/unistr/u16-strncmp.c: Likewise.
38586         * lib/unistr/u16-strncpy.c: Likewise.
38587         * lib/unistr/u16-strnlen.c: Likewise.
38588         * lib/unistr/u16-strpbrk.c: Likewise.
38589         * lib/unistr/u16-strrchr.c: Likewise.
38590         * lib/unistr/u16-strspn.c: Likewise.
38591         * lib/unistr/u16-strstr.c: Likewise.
38592         * lib/unistr/u16-strtok.c: Likewise.
38593         * lib/unistr/u16-to-u32.c: Likewise.
38594         * lib/unistr/u16-to-u8.c: Likewise.
38595         * lib/unistr/u16-uctomb-aux.c: Likewise.
38596         * lib/unistr/u16-uctomb.c: Likewise.
38597         * lib/unistr/u32-check.c: Likewise.
38598         * lib/unistr/u32-chr.c: Likewise.
38599         * lib/unistr/u32-cmp.c: Likewise.
38600         * lib/unistr/u32-cpy-alloc.c: Likewise.
38601         * lib/unistr/u32-cpy.c: Likewise.
38602         * lib/unistr/u32-endswith.c: Likewise.
38603         * lib/unistr/u32-mblen.c: Likewise.
38604         * lib/unistr/u32-mbsnlen.c: Likewise.
38605         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38606         * lib/unistr/u32-mbtouc.c: Likewise.
38607         * lib/unistr/u32-mbtoucr.c: Likewise.
38608         * lib/unistr/u32-move.c: Likewise.
38609         * lib/unistr/u32-next.c: Likewise.
38610         * lib/unistr/u32-prev.c: Likewise.
38611         * lib/unistr/u32-set.c: Likewise.
38612         * lib/unistr/u32-startswith.c: Likewise.
38613         * lib/unistr/u32-stpcpy.c: Likewise.
38614         * lib/unistr/u32-stpncpy.c: Likewise.
38615         * lib/unistr/u32-strcat.c: Likewise.
38616         * lib/unistr/u32-strchr.c: Likewise.
38617         * lib/unistr/u32-strcmp.c: Likewise.
38618         * lib/unistr/u32-strcpy.c: Likewise.
38619         * lib/unistr/u32-strcspn.c: Likewise.
38620         * lib/unistr/u32-strdup.c: Likewise.
38621         * lib/unistr/u32-strlen.c: Likewise.
38622         * lib/unistr/u32-strmblen.c: Likewise.
38623         * lib/unistr/u32-strmbtouc.c: Likewise.
38624         * lib/unistr/u32-strncat.c: Likewise.
38625         * lib/unistr/u32-strncmp.c: Likewise.
38626         * lib/unistr/u32-strncpy.c: Likewise.
38627         * lib/unistr/u32-strnlen.c: Likewise.
38628         * lib/unistr/u32-strpbrk.c: Likewise.
38629         * lib/unistr/u32-strrchr.c: Likewise.
38630         * lib/unistr/u32-strspn.c: Likewise.
38631         * lib/unistr/u32-strstr.c: Likewise.
38632         * lib/unistr/u32-strtok.c: Likewise.
38633         * lib/unistr/u32-to-u16.c: Likewise.
38634         * lib/unistr/u32-to-u8.c: Likewise.
38635         * lib/unistr/u32-uctomb.c: Likewise.
38636         * lib/unistr/u8-check.c: Likewise.
38637         * lib/unistr/u8-chr.c: Likewise.
38638         * lib/unistr/u8-cmp.c: Likewise.
38639         * lib/unistr/u8-cpy-alloc.c: Likewise.
38640         * lib/unistr/u8-cpy.c: Likewise.
38641         * lib/unistr/u8-endswith.c: Likewise.
38642         * lib/unistr/u8-mblen.c: Likewise.
38643         * lib/unistr/u8-mbsnlen.c: Likewise.
38644         * lib/unistr/u8-mbtouc-aux.c: Likewise.
38645         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38646         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38647         * lib/unistr/u8-mbtouc.c: Likewise.
38648         * lib/unistr/u8-mbtoucr.c: Likewise.
38649         * lib/unistr/u8-move.c: Likewise.
38650         * lib/unistr/u8-next.c: Likewise.
38651         * lib/unistr/u8-prev.c: Likewise.
38652         * lib/unistr/u8-set.c: Likewise.
38653         * lib/unistr/u8-startswith.c: Likewise.
38654         * lib/unistr/u8-stpcpy.c: Likewise.
38655         * lib/unistr/u8-stpncpy.c: Likewise.
38656         * lib/unistr/u8-strcat.c: Likewise.
38657         * lib/unistr/u8-strchr.c: Likewise.
38658         * lib/unistr/u8-strcmp.c: Likewise.
38659         * lib/unistr/u8-strcpy.c: Likewise.
38660         * lib/unistr/u8-strcspn.c: Likewise.
38661         * lib/unistr/u8-strdup.c: Likewise.
38662         * lib/unistr/u8-strlen.c: Likewise.
38663         * lib/unistr/u8-strmblen.c: Likewise.
38664         * lib/unistr/u8-strmbtouc.c: Likewise.
38665         * lib/unistr/u8-strncat.c: Likewise.
38666         * lib/unistr/u8-strncmp.c: Likewise.
38667         * lib/unistr/u8-strncpy.c: Likewise.
38668         * lib/unistr/u8-strnlen.c: Likewise.
38669         * lib/unistr/u8-strpbrk.c: Likewise.
38670         * lib/unistr/u8-strrchr.c: Likewise.
38671         * lib/unistr/u8-strspn.c: Likewise.
38672         * lib/unistr/u8-strstr.c: Likewise.
38673         * lib/unistr/u8-strtok.c: Likewise.
38674         * lib/unistr/u8-to-u16.c: Likewise.
38675         * lib/unistr/u8-to-u32.c: Likewise.
38676         * lib/unistr/u8-uctomb-aux.c: Likewise.
38677         * lib/unistr/u8-uctomb.c: Likewise.
38678         * lib/unitypes.h: Likewise.
38679         * lib/uniwidth.h: Likewise.
38680         * lib/uniwidth/cjk.h: Likewise.
38681         * lib/uniwidth/u16-strwidth.c: Likewise.
38682         * lib/uniwidth/u16-width.c: Likewise.
38683         * lib/uniwidth/u32-strwidth.c: Likewise.
38684         * lib/uniwidth/u32-width.c: Likewise.
38685         * lib/uniwidth/u8-strwidth.c: Likewise.
38686         * lib/uniwidth/u8-width.c: Likewise.
38687         * lib/uniwidth/width.c: Likewise.
38688
38689 2007-10-07  Bruno Haible  <bruno@clisp.org>
38690
38691         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
38692         The file is still under LGPL (see modules/inttypes).
38693
38694 2007-10-06  Bruno Haible  <bruno@clisp.org>
38695
38696         * modules/trunc (Dependencies): Add 'extensions'.
38697         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
38698         Reported by Ben Pfaff <blp@gnu.org>.
38699
38700 2007-10-06  Bruno Haible  <bruno@clisp.org>
38701
38702         * modules/freopen-tests: New file.
38703         * tests/test-freopen.c: New file.
38704
38705         * modules/fopen-tests: New file.
38706         * tests/test-fopen.c: New file.
38707
38708         * modules/fopen: New file.
38709         * lib/fopen.c: New file.
38710         * m4/fopen.m4: New file.
38711         * modules/freopen: New file.
38712         * lib/freopen.c: New file.
38713         * m4/freopen.m4: New file.
38714         * lib/stdio.in.h (fopen, freopen): New declarations.
38715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
38716         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38717         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
38718         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38719         * doc/functions/fopen.texi: Mention the 'fopen' module.
38720         * doc/functions/freopen.texi: Mention the 'freopen' module.
38721
38722 2007-10-06  Bruno Haible  <bruno@clisp.org>
38723
38724         * modules/open-tests: New file.
38725         * tests/test-open.c: New file.
38726
38727         * modules/open: New file.
38728         * lib/open.c: New file.
38729         * m4/open.m4: New file.
38730         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
38731         lib/open.c does.
38732         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
38733         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
38734         macros.
38735         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
38736         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
38737         REPLACE_OPEN.
38738         * doc/functions/open.texi: Mention the 'open' module.
38739
38740 2007-10-04  Bruno Haible  <bruno@clisp.org>
38741
38742         * modules/ceill-tests: New file.
38743         * tests/test-ceill.c: New file.
38744
38745         * modules/ceill: New file.
38746         * lib/ceill.c: Replace entire file.
38747         * m4/ceill.m4: New file.
38748         * lib/math.in.h (ceill): Replace declaration.
38749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
38750         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
38751         * doc/functions/ceill.texi: Mention the 'ceill' module.
38752         * modules/mathl (Files): Remove lib/ceill.c.
38753         (Depends-on): Add ceill.
38754
38755 2007-10-04  Bruno Haible  <bruno@clisp.org>
38756
38757         * modules/ceilf-tests: New file.
38758         * tests/test-ceilf.c: New file.
38759
38760         * modules/ceilf: New file.
38761         * lib/ceil.c: New file.
38762         * lib/ceilf.c: New file.
38763         * m4/ceilf.m4: New file.
38764         * lib/math.in.h (ceilf): New declaration.
38765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
38766         HAVE_DECL_CEILF.
38767         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
38768         HAVE_DECL_CEILF.
38769         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
38770
38771 2007-10-04  Bruno Haible  <bruno@clisp.org>
38772
38773         * modules/floorl-tests: New file.
38774         * tests/test-floorl.c: New file.
38775
38776         * modules/floorl: New file.
38777         * lib/floorl.c: Replace entire file.
38778         * m4/floorl.m4: New file.
38779         * lib/math.in.h (floorl): Replace declaration.
38780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
38781         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
38782         * doc/functions/floorl.texi: Mention the 'floorl' module.
38783         * modules/mathl (Files): Remove lib/floorl.c.
38784         (Depends-on): Add floorl.
38785
38786 2007-10-04  Bruno Haible  <bruno@clisp.org>
38787
38788         * modules/floorf-tests: New file.
38789         * tests/test-floorf.c: New file.
38790
38791         * modules/floorf: New file.
38792         * lib/floor.c: New file.
38793         * lib/floorf.c: New file.
38794         * m4/floorf.m4: New file.
38795         * lib/math.in.h (floorf): New declaration.
38796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
38797         HAVE_DECL_FLOORF.
38798         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
38799         HAVE_DECL_FLOORF.
38800         * doc/functions/floorf.texi: Mention the 'floorf' module.
38801
38802 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
38803             Bruno Haible  <bruno@clisp.org>
38804
38805         Advertise for the Git server instead of the CVS server.
38806         * doc/gnulib-intro.texi (Steady Development): Mention the Git
38807         repository instead of the CVS one.
38808         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
38809         about all VCS systems generically.
38810         * doc/gnulib.texi (Introduction): Capitalize `Git'.
38811
38812 2007-10-04  Bruno Haible  <bruno@clisp.org>
38813
38814         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
38815         means.
38816         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
38817
38818 2007-10-04  Bruno Haible  <bruno@clisp.org>
38819
38820         * modules/truncl-tests: New file.
38821         * tests/test-truncl.c: New file.
38822
38823         * modules/truncl: New file.
38824         * lib/truncl.c: New file.
38825         * m4/truncl.m4: New file.
38826         * lib/math.in.h (truncl): New declaration.
38827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
38828         HAVE_DECL_TRUNCL.
38829         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
38830         HAVE_DECL_TRUNCL.
38831         * doc/functions/truncl.texi: Mention the 'truncl' module.
38832
38833 2007-10-04  Bruno Haible  <bruno@clisp.org>
38834
38835         * modules/truncf-tests: New file.
38836         * tests/test-truncf.c: New file.
38837
38838         * modules/truncf: New file.
38839         * lib/trunc.c: Make paramerizable through USE_* macros.
38840         * lib/truncf.c: New file.
38841         * m4/truncf.m4: New file.
38842         * lib/math.in.h (truncf): New declaration.
38843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
38844         HAVE_DECL_TRUNCF.
38845         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
38846         HAVE_DECL_TRUNCF.
38847         * doc/functions/truncf.texi: Mention the 'truncf' module.
38848
38849 2007-10-03  Bruno Haible  <bruno@clisp.org>
38850
38851         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38852         augmentation also for tests modules.
38853         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
38854         * modules/atexit-tests (Makefile.am): Likewise.
38855         * modules/binary-io-tests (Makefile.am): Likewise.
38856         * modules/c-strcase-tests (Makefile.am): Likewise.
38857         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
38858         * modules/canonicalize-tests (Makefile.am): Likewise.
38859         * modules/closein-tests (Makefile.am): Likewise.
38860         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38861         * modules/freadahead-tests (Makefile.am): Likewise.
38862         * modules/fseek-tests (Makefile.am): Likewise.
38863         * modules/fseeko-tests (Makefile.am): Likewise.
38864         * modules/ftell-tests (Makefile.am): Likewise.
38865         * modules/ftello-tests (Makefile.am): Likewise.
38866         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
38867         * modules/isnanl-tests (Makefile.am): Likewise.
38868         * modules/lseek-tests (Makefile.am): Likewise.
38869         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38870         * modules/mbscasestr-tests (Makefile.am): Likewise.
38871         * modules/mbschr-tests (Makefile.am): Likewise.
38872         * modules/mbscspn-tests (Makefile.am): Likewise.
38873         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38874         * modules/mbspbrk-tests (Makefile.am): Likewise.
38875         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38876         * modules/mbsrchr-tests (Makefile.am): Likewise.
38877         * modules/mbsspn-tests (Makefile.am): Likewise.
38878         * modules/mbsstr-tests (Makefile.am): Likewise.
38879         * modules/printf-posix-tests (Makefile.am): Likewise.
38880         * modules/snprintf-posix-tests (Makefile.am): Likewise.
38881         * modules/sprintf-posix-tests (Makefile.am): Likewise.
38882         * modules/tsearch-tests (Makefile.am): Likewise.
38883         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38884         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38885         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38886         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38887         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38888         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38889         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38890         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38891         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
38892         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
38893         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38894         * modules/xstrtol-tests (Makefile.am): Likewise.
38895         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38896         * modules/yesno-tests (Makefile.am): Likewise.
38897
38898 2007-10-03  Bruno Haible  <bruno@clisp.org>
38899
38900         * modules/trunc-tests: New file.
38901         * tests/test-trunc.c: New file.
38902
38903         * modules/trunc: New file.
38904         * lib/trunc.c: New file.
38905         * m4/trunc.m4: New file.
38906         * lib/math.in.h (trunc): New declaration.
38907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
38908         HAVE_DECL_TRUNC.
38909         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
38910         HAVE_DECL_TRUNC.
38911         * doc/functions/trunc.texi: Mention the 'trunc' module.
38912
38913 2007-10-03  Bruno Haible  <bruno@clisp.org>
38914
38915         * tests/test-fpending.c: New file, mostly copied
38916         from coreutils/lib/t-fpending.c.
38917         * modules/fpending-tests: New file.
38918
38919 2007-10-03  Bruno Haible  <bruno@clisp.org>
38920
38921         Port the stdio extensions to QNX (untested).
38922         * lib/fseterr.c (fseterr): Add support for QNX.
38923         * lib/fbufmode.c (fbufmode): Likewise.
38924         * lib/freadable.c (freadable): Likewise.
38925         * lib/fwritable.c (fwritable): Likewise.
38926         * lib/freading.c (freading): Likewise.
38927         * lib/fwriting.c (fwriting): Likewise.
38928         * lib/freadahead.c (freadahed): Likewise.
38929         * lib/fpurge.c (fpurge): Likewise.
38930         * lib/fseeko.c (rpl_fseeko): Likewise.
38931
38932 2007-10-03  Bruno Haible  <bruno@clisp.org>
38933             Jim Meyering  <jim@meyering.net>
38934             Eric Blake  <ebb9@byu.net>
38935
38936         * doc/relocatable.texi: Use @command instead of @program.
38937
38938 2007-10-02  Jim Meyering  <jim@meyering.net>
38939
38940         Perform one more "_.h" -> ".in.h" substitution.
38941         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
38942         instead of unistd_.h here, too.
38943
38944 2007-10-01  Bruno Haible  <bruno@clisp.org>
38945
38946         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
38947         Needed for the alloca-opt module.
38948
38949 2007-09-30  Bruno Haible  <bruno@clisp.org>
38950
38951         * lib/alloca.in.h: Renamed from lib/alloca_.h.
38952         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
38953         alloca_.h.
38954         * lib/argz.in.h: Renamed from lib/argz_.h.
38955         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
38956         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
38957         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
38958         byteswap_.h.
38959         * lib/dirent.in.h: Renamed from lib/dirent_.h.
38960         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
38961         dirent_.h.
38962         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
38963         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
38964         fcntl_.h.
38965         * lib/float.in.h: Renamed from lib/float_.h.
38966         * modules/float (Files, Makefile.am): Use float.in.h instead of
38967         float_.h.
38968         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
38969         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
38970         fnmatch_.h.
38971         * lib/getopt.in.h: Renamed from lib/getopt_.h.
38972         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
38973         getopt_.h.
38974         * lib/glob.in.h: Renamed from lib/glob_.h.
38975         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
38976         * lib/iconv.in.h: Renamed from lib/iconv_.h.
38977         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
38978         iconv_.h.
38979         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
38980         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
38981         inttypes_.h.
38982         * lib/locale.in.h: Renamed from lib/locale_.h.
38983         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
38984         locale_.h.
38985         * lib/math.in.h: Renamed from lib/math_.h.
38986         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
38987         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
38988         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
38989         of netinet_in_.h. Add dependency.
38990         * lib/poll.in.h: Renamed from lib/poll_.h.
38991         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
38992         * lib/search.in.h: Renamed from lib/search_.h.
38993         * modules/search (Files, Makefile.am): Use search.in.h instead of
38994         search_.h.
38995         * lib/signal.in.h: Renamed from lib/signal_.h.
38996         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
38997         _signal.h.
38998         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
38999         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
39000         stdbool_.h.
39001         * lib/stdint.in.h: Renamed from lib/stdint_.h.
39002         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
39003         stdint_.h.
39004         * lib/stdio.in.h: Renamed from lib/stdio_.h.
39005         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
39006         stdio_.h.
39007         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
39008         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
39009         stdlib_.h.
39010         * lib/string.in.h: Renamed from lib/string_.h.
39011         * modules/string (Files, Makefile.am): Use string.in.h instead of
39012         string_.h.
39013         * doc/gnulib-tool.texi (Initial import): Update.
39014         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
39015         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
39016         of sys_select_.h. Add dependency.
39017         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
39018         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
39019         of sys_socket_.h.
39020         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
39021         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
39022         sys_stat_.h.
39023         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
39024         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
39025         sys_time_.h.
39026         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
39027         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
39028         sysexits_.h.
39029         * lib/time.in.h: Renamed from lib/time_.h.
39030         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
39031         * lib/unistd.in.h: Renamed from lib/unistd_.h.
39032         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
39033         unistd_.h.
39034         * lib/wchar.in.h: Renamed from lib/wchar_.h.
39035         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
39036         wchar_.h.
39037         * lib/wctype.in.h: Renamed from lib/wctype_.h.
39038         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
39039         wctype_.h.
39040         * build-aux/bootstrap (slurp): Update.
39041         * lib/.cppi-disable: Update.
39042
39043 2007-09-30  Bruno Haible  <bruno@clisp.org>
39044
39045         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
39046         Needed on BeOS.
39047
39048 2007-09-30  Bruno Haible  <bruno@clisp.org>
39049
39050         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
39051
39052 2007-09-29  Bruno Haible  <bruno@clisp.org>
39053
39054         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
39055
39056 2007-09-29  Bruno Haible  <bruno@clisp.org>
39057
39058         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
39059         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
39060         * build-aux/install-reloc: Compile also areadlink.c.
39061         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
39062
39063 2007-09-29  Bruno Haible  <bruno@clisp.org>
39064
39065         * gnulib-tool (func_emit_initmacro_done): Indentation.
39066
39067 2007-09-29  Bruno Haible  <bruno@clisp.org>
39068
39069         * README: Add CVS checkout update instructions.
39070         Info from Bob Proulx <bob@proulx.com>.
39071
39072 2007-09-28  Eric Blake  <ebb9@byu.net>
39073
39074         Provide move-if-change.
39075         * build-aux/move-if-change: New file, based on best practice
39076         rather than any canonical upstream location.
39077
39078 2007-09-28  Jim Meyering  <jim@meyering.net>
39079
39080         Fix canonicalize loop-detection corner case.
39081         Do not attempt to stat the symlink values stored via seen_triple.
39082         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
39083         on linux-2.6.18, (but not 2.6.22).
39084         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
39085         triple_compare.  The former compares dev,ino,filename, while the latter
39086         would actually stat dirname(filename) when dev and ino were equal.
39087         * lib/hash-triple.c: Install <string.h>.
39088         (STREQ): Define.
39089         (triple_compare_ino_str): New function.
39090         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
39091
39092 2007-09-28  Eric Blake  <ebb9@byu.net>
39093
39094         Enforce that AC_REPLACE_FUNCS files exist.
39095         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
39096         override check for typos.
39097
39098         Fix test-closein on Solaris 10.
39099         * tests/test-closein.c (main): Don't assume stdin can be inherited
39100         closed on all systems.
39101         * tests/test-closein.sh: Likewise.
39102         Reported by Piotr Tarnowski.
39103
39104 2007-09-28  Jim Meyering  <jim@meyering.net>
39105
39106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
39107
39108 2007-09-27  Jim Meyering  <jim@meyering.net>
39109
39110         canonicalize: Avoid a false-positive cycle failure.
39111         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
39112         Sort.  Remove cycle-check.
39113         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
39114         not cycle-check.h.
39115         (seen_triple): New function.
39116         (canonicalize_filename_mode): Use it instead of cycle-check.
39117         * tests/test-canonicalize.c: Add a test for this bug.
39118         * tests/test-canonicalize.sh: Set up and run the test.
39119
39120         New module, file-set, from coreutils.
39121         * modules/file-set: Define it.
39122         * lib/file-set.c, lib/file-set.h: Implement.
39123
39124         New module, hash-triple, from coreutils.
39125         * modules/hash-triple: Define it.
39126         * lib/hash-triple.c, lib/hash-triple.h: Implement.
39127
39128 2007-09-25  Eric Blake  <ebb9@byu.net>
39129
39130         Fix strerror on Interix.
39131         * lib/string_.h (strerror): Declare replacement.
39132         * doc/functions/strerror.texi (strerror): Document the Interix
39133         shortcoming.
39134         * modules/string (Makefile.am): Support new hooks.
39135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
39136         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
39137         gl_FUNC_STRERROR_SEPARATE.
39138         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
39139         * lib/strerror.c (rpl_strerror): Provide replacement.
39140         * modules/strerror (Depends-on): Add string.
39141         (configure.ac): Detect use of module.
39142         * tests/test-strerror.c: New file.
39143         * modules/strerror-tests: New test module.
39144         * modules/argp (Depends-on): Add strerror.
39145         * modules/error (Depends-on): Likewise.
39146         Reported by Martin Koeppe.
39147
39148 2007-09-24  Bruno Haible  <bruno@clisp.org>
39149
39150         * README: Update git instructions.
39151
39152 2007-09-24  Eric Blake  <ebb9@byu.net>
39153
39154         Revert fpending breakage from 2007-09-08.
39155         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
39156         __fpending.c.
39157
39158 2007-09-24  Jim Meyering  <jim@meyering.net>
39159
39160         filenamecat.c: Add a test.
39161         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
39162         showing how the function works when DIR is the empty string.
39163
39164 2007-09-21  Simon Josefsson  <simon@josefsson.org>
39165
39166         * tests/test-canonicalize.sh: Turn on executable bit.
39167
39168 2007-09-19  Eric Blake  <ebb9@byu.net>
39169
39170         * README: Update CVS instructions.
39171
39172 2007-09-18  Bruno Haible  <bruno@clisp.org>
39173
39174         * modules/areadlink: New file.
39175         * lib/areadlink.h (areadlink): New declaration.
39176         * lib/areadlink.c: New file, based on lib/xreadlink.c.
39177
39178 2007-09-17  Jim Meyering  <jim@meyering.net>
39179
39180         * lib/savewd.c (ESTALE) [!defined]: Define.
39181         Reported to be required on Interix by Martin Koeppe.
39182
39183 2007-09-17  Bruno Haible  <bruno@clisp.org>
39184
39185         * gnulib-tool (func_version): Use $version.
39186
39187 2007-09-16  Bruno Haible  <bruno@clisp.org>
39188
39189         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
39190         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
39191         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
39192         Reported by Greg Schafer <gschafer@zip.com.au>.
39193
39194 2007-09-15  Bruno Haible  <bruno@clisp.org>
39195
39196         * gnulib-tool (sed): Try a little harder to make bash understand the
39197         alias.
39198         Reported by Bruce Korb <bruce.korb@gmail.com>.
39199
39200 2007-09-13  Eric Blake  <ebb9@byu.net>
39201
39202         * ChangeLog: Remove conflict markers.
39203
39204 2007-09-13  Simon Josefsson  <simon@josefsson.org>
39205
39206         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
39207         Reported by Bruno Haible <bruno@clisp.org>.
39208
39209 2007-09-12  Bruno Haible  <bruno@clisp.org>
39210
39211         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
39212         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
39213         is not defined.
39214
39215 2007-09-12  Eric Blake  <ebb9@byu.net>
39216
39217         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
39218         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
39219         Autoconf definition.
39220         * modules/euidaccess (Depends-on): Add extensions, for
39221         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
39222         * modules/fnmatch (Depends-on): Likewise.
39223         * modules/getaddrinfo (Depends-on): Likewise.
39224         * modules/getdelim (Depends-on): Likewise.
39225         * modules/getline (Depends-on): Likewise.
39226         * modules/getsubopt (Depends-on): Likewise.
39227         * modules/gettext (Depends-on): Likewise.
39228         * modules/group-member (Depends-on): Likewise.
39229         * modules/mbchar (Depends-on): Likewise.
39230         * modules/memmem (Depends-on): Likewise.
39231         * modules/mempcpy (Depends-on): Likewise.
39232         * modules/memrchr (Depends-on): Likewise.
39233         * modules/pagealign_alloc (Depends-on): Likewise.
39234         * modules/readutmp (Depends-on): Likewise.
39235         * modules/stpcpy (Depends-on): Likewise.
39236         * modules/stpncpy (Depends-on): Likewise.
39237         * modules/strchrnul (Depends-on): Likewise.
39238         * modules/strndup (Depends-on): Likewise.
39239         * modules/strsep (Depends-on): Likewise.
39240         * modules/strverscmp (Depends-on): Likewise.
39241         * modules/vasprintf (Depends-on): Likewise.
39242         * modules/wcwidth (Depends-on): Likewise.
39243         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
39244         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
39245         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
39246         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
39247         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39248         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39249         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
39250         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39251         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
39252         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39253         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39254         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39255         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39256         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39257         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
39258         * m4/readutmp.m4 (gl_READUTMP): Likewise.
39259         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39260         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39261         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39262         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39263         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39264         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39265         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39266         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
39267         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
39268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39269         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
39270         so that lock.m4 can be used in gettext without extensions module.
39271
39272 2007-09-11  Bruno Haible  <bruno@clisp.org>
39273
39274         * m4/isc-posix.m4: Remove file.
39275         Suggested by Eric Blake.
39276
39277 2007-09-11  Eric Blake  <ebb9@byu.net>
39278
39279         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
39280
39281 2007-09-10  Bruno Haible  <bruno@clisp.org>
39282
39283         * posix-modules: Fix typo in error message.
39284         Reported by Matt <mkraai@beckman.com>.
39285
39286 2007-09-09  Bruno Haible  <bruno@clisp.org>
39287
39288         * doc/functions/getdelim.texi: Update list of platforms lacking the
39289         function.
39290         * doc/functions/getline.texi: Likewise.
39291
39292 2007-09-09  Jim Meyering  <jim@meyering.net>
39293
39294         * lib/hash.c (hash_initialize): Detect calloc failure.
39295         Reported by Bruno Haible.
39296
39297 2007-09-09  Bruno Haible  <bruno@clisp.org>
39298
39299         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
39300         malloc or realloc fails.
39301
39302 2007-09-09  Bruno Haible  <bruno@clisp.org>
39303
39304         * modules/getcwd (Depends-on): Add malloc-posix.
39305         * modules/glob (Depends-on): Likewise.
39306         * modules/putenv (Depends-on): Likewise.
39307         * modules/strdup (Depends-on): Likewise.
39308         * modules/getdelim (Depends-on): Add realloc-posix.
39309         * modules/read-file (Depends-on): Likewise.
39310
39311 2007-09-09  Bruno Haible  <bruno@clisp.org>
39312
39313         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
39314         (gl_FUNC_MALLOC_POSIX): Require it.
39315         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
39316         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
39317         * modules/realloc (Files): Add m4/malloc.m4.
39318         * modules/calloc (Files): Likewise.
39319
39320 2007-09-09  Bruno Haible  <bruno@clisp.org>
39321
39322         * modules/malloc-posix: New file.
39323         * modules/malloc (Depends-on): Add malloc-posix.
39324         * lib/malloc.c: Include errno.h.
39325         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
39326         and a POSIX-compatible malloc into a single function. Set ENOMEM
39327         when returning NULL.
39328         * m4/malloc.m4: New file.
39329         * doc/functions/malloc.texi: Mention the malloc-posix module.
39330         * lib/stdlib_.h (malloc): New declaration.
39331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39332         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
39333         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
39334         and HAVE_MALLOC_POSIX.
39335
39336 2007-09-09  Bruno Haible  <bruno@clisp.org>
39337
39338         * modules/realloc-posix: New file.
39339         * modules/realloc (Depends-on): Add realloc-posix.
39340         * lib/realloc.c: Include errno.h.
39341         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
39342         and a POSIX-compatible realloc into a single function. Set ENOMEM
39343         when returning NULL.
39344         * m4/realloc.m4: New file.
39345         * doc/functions/realloc.texi: Mention the realloc-posix module.
39346         * lib/stdlib_.h (realloc): New declaration.
39347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39348         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
39349         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
39350         and HAVE_REALLOC_POSIX.
39351
39352 2007-09-09  Bruno Haible  <bruno@clisp.org>
39353
39354         * modules/calloc-posix: New file.
39355         * modules/calloc (Depends-on): Add calloc-posix.
39356         * lib/calloc.c: Include errno.h.
39357         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
39358         and a POSIX-compatible calloc into a single function. Set ENOMEM
39359         when returning NULL.
39360         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
39361         * doc/functions/calloc.texi: Mention the calloc-posix module.
39362         * lib/stdlib_.h (calloc): New declaration.
39363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39364         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
39365         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
39366         and HAVE_CALLOC_POSIX.
39367
39368 2007-09-09  Bruno Haible  <bruno@clisp.org>
39369
39370         Allow for modules to show an arbitrary notice.
39371         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
39372         * gnulib-tool: New option --extract-notice.
39373         (func_usage): Document it.
39374         (sed_extract_prog): Update.
39375         (func_get_notice): New function.
39376         (func_modules_notice): New function.
39377         (func_import, func_create_testdir): Invoke it.
39378         Suggested by Jim Meyering.
39379
39380 2007-09-09  Bruno Haible  <bruno@clisp.org>
39381
39382         * gnulib-tool: New options --verbose, --quiet.
39383         (func_usage): Document them.
39384         (verbose): New variable.
39385         (func_execute_command): New function.
39386         (func_import): Don't show the module list and the file list if
39387         $verbose < 0.
39388         (func_create_testdir): Likewise. Use func_execute_command.
39389         (func_create_megatestdir): Use func_execute_command.
39390
39391 2007-09-08  Bruno Haible  <bruno@clisp.org>
39392
39393         * gnulib-tool (func_import): Prefer rsync over wget when available,
39394         for fetching the PO files.
39395
39396 2007-09-08  Bruno Haible  <bruno@clisp.org>
39397
39398         * posix-modules: New file. Portions copied from gnulib-tool.
39399         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
39400
39401 2007-09-08  Jim Meyering  <jim@meyering.net>
39402
39403         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
39404         * lib/fpending.h: Rename from __fpending.h.
39405         * lib/fpending.c: Rename from __fpending.c.
39406         Include "fpending.h", not "__fpending.h".
39407         * lib/__fpending.h, lib/__fpending.c: Remove files.
39408         * modules/fpending (Files): Reflect new file names.
39409         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
39410
39411 2007-09-08  Bruno Haible  <bruno@clisp.org>
39412
39413         * m4/inttypes-h.m4: Remove stub file.
39414
39415 2007-09-07  Simon Josefsson  <simon@josefsson.org>
39416
39417         * doc/headers/stdint.texi: Discuss #include_next issue.
39418
39419 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39420
39421         * build-aux/bootstrap: Remove obsolete comment about wget --help.
39422
39423 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39424
39425         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
39426         in variable name.
39427
39428 2007-09-03  Jim Meyering  <jim@meyering.net>
39429
39430         New module: git-version-gen.
39431         * modules/git-version-gen: New file.
39432
39433         Import changes from coreutils for bootstrap script.
39434
39435         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
39436
39437         bootstrap: uses rsync to download the .po files
39438         * build-aux/bootstrap (po_download_command_format): New global.
39439         (download_po_files): Use rsync.
39440         (update_po_files): Don't remove .po files after download,
39441         so future rsync runs can take advantage of the copies.
39442
39443         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
39444
39445         Solve the unnecessary-.po-file-regeneration problem once and for all.
39446         * build-aux/bootstrap (download_po_files): New function, renamed from
39447         get_translations.  Now, downloads, but doesn't update LINGUAS.
39448         (update_po_files): New function.
39449
39450         bootstrap: Ignore more.
39451         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
39452         uniwidth to e.g., lib/.gitignore.
39453         (slurp): Handle the sys_stat_.h -> sys mapping, too.
39454
39455         * build-aux/bootstrap: New setting: vc_ignore.
39456         (insert_sorted_if_absent): Create $file if absent.
39457         Adapt to new, possibly empty, list: $vc_ignore.
39458
39459         bootstrap: generate more ignorable names
39460         * build-aux/bootstrap (slurp): When generating ignorable names,
39461         also map .sin to .sed, .gperf to .c, and .y to .c.
39462
39463 2007-09-03  Jim Meyering  <jim@meyering.net>
39464
39465         * build-aux/git-version-gen: New file, from coreutils.  For details, see
39466         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
39467
39468 2007-09-02  Bruno Haible  <bruno@clisp.org>
39469
39470         Fix mis-recognition of 'mcs' on QNX 6.
39471         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
39472         output contains the string "Mono".
39473         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
39474         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
39475
39476 2007-09-01  Bruno Haible  <bruno@clisp.org>
39477
39478         Fix collision between uniwidth/* and linebreak modules.
39479         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
39480         u32_width): Remove declarations.
39481         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
39482         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
39483         streq3, streq2, streq1, streq0): Remove functions.
39484         (STREQ): Remove macro.
39485         (is_cjk_encoding): Remove function.
39486         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
39487         (uc_width, u8_width, u16_width, u32_width): Remove functions.
39488         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
39489         * NEWS: Document the change.
39490
39491 2007-09-01  Bruno Haible  <bruno@clisp.org>
39492
39493         * lib/streq.h: Add double-inclusion guard.
39494
39495 2007-09-01  Karl Berry  <karl@gnu.org>
39496
39497         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
39498
39499 2007-08-28  Jim Meyering  <jim@meyering.net>
39500
39501         Rename mreadlink_with_size to areadlink_with_size.
39502         * NEWS: Document the change.
39503         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
39504         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
39505         * lib/mreadlink.h: Rename this to...
39506         * lib/areadlink.h: ...this.
39507         * modules/mreadlink-with-size: Rename this to...
39508         * modules/areadlink-with-size: ...this.
39509         * lib/canonicalize.c: Reflect the renaming.
39510         * modules/canonicalize: Likewise.
39511
39512 2007-08-26  Bruno Haible  <bruno@clisp.org>
39513
39514         * gnulib-tool (func_import): When deciding which files to remove,
39515         consider also dangling symbolic links.
39516         Reported by Eric Blake.
39517
39518 2007-08-26  Bruno Haible  <bruno@clisp.org>
39519
39520         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
39521
39522 2007-08-23  Simon Josefsson  <simon@josefsson.org>
39523
39524         * lib/readline.c: Don't include getline.h, the prototype is now
39525         found in stdio.h.
39526
39527 2007-08-23  Jim Meyering  <jim@meyering.net>
39528
39529         Getdelim touchup.
39530         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
39531         around the funlockfile call, since funlockfile never sets errno.
39532         Don't set errno upon failed realloc.
39533
39534 2007-08-22  Eric Blake  <ebb9@byu.net>
39535
39536         Getline touchups.
39537         * lib/getdelim.c (getdelim): Revert regression that required *n to
39538         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
39539         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
39540         getdelim, rather than whether implementation is missing.
39541         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
39542         * lib/stdio_.h (getline): Also declare if replacement is
39543         required.
39544         * doc/functions/getdelim.texi: New file.
39545         * doc/functions/getline.texi: Likewise.
39546         * doc/gnulib.texi (Function Substitutes): Add new files.
39547         Reported by Bruno Haible.
39548
39549 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
39550
39551         * users.txt: Add Guile.
39552
39553 2007-08-22  Eric Blake  <ebb9@byu.net>
39554
39555         * tests/test-getdelim.c (main): Use remove, not unlink.
39556         * tests/test-getline.c (main): Likewise.
39557
39558         Move getline and getdelim into stdio.h, per POSIX 200x.
39559         * modules/getline (Files): Remove getline.h.
39560         (Depends-on): Add stdio.
39561         (configure.ac): Add module indicator.
39562         * modules/getdelim (Files): Remove getdelim.h.
39563         (Depends-on): Add stdio.
39564         (configure.ac): Add module indicator.
39565         * modules/stdio (Makefile.am): Work with new indicators.
39566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
39567         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
39568         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39569         * lib/getdelim.h: Delete.
39570         * lib/getline.h: Delete.
39571         * lib/stdio_.h (getdelim, getline): Declare.
39572         * modules/getdelim-tests: New module.
39573         * modules/getline-tests: Likewise.
39574         * tests/test-getdelim.c: New file.
39575         * tests/test-getline.c: Likewise.
39576         * NEWS: Document the change.
39577         * lib/getline.c: Update choice of header.
39578         * lib/csharpcomp.c: Likewise.
39579         * lib/getpass.c: Likewise.
39580         * lib/javacomp.c: Likewise.
39581         * lib/javaversion.c: Likewise.
39582         * lib/yesno.c: Likewise.
39583         * lib/getdelim.c: Likewise.
39584         (getdelim): Set errno on failure, and avoid memory leak.
39585
39586 2007-08-19  Bruno Haible  <bruno@clisp.org>
39587
39588         * modules/closein (Depends-on): Add freadahead.
39589         * lib/closein.c: Include freadahead.h.
39590         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
39591         is zero.
39592
39593 2007-08-19  Bruno Haible  <bruno@clisp.org>
39594
39595         * modules/freadahead-tests: New file.
39596         * tests/test-freadahead.sh: New file.
39597         * tests/test-freadahead.c: New file.
39598
39599         * modules/freadahead: New file.
39600         * lib/freadahead.h: New file.
39601         * lib/freadahead.c: New file.
39602         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
39603         fbufmode, fpurge, freadable, fwritable.
39604
39605 2007-08-19  Eric Blake  <ebb9@byu.net>
39606
39607         Test yesno in combination with closein.
39608         * lib/yesno.c (yesno): Document use of stdin.
39609         * modules/yesno-tests (Files): New module.
39610         * tests/test-yesno.c (main): New file.
39611         * tests/test-yesno.sh: Likewise.
39612
39613 2007-08-19  Bruno Haible  <bruno@clisp.org>
39614
39615         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
39616         * lib/fseeko.c (rpl_fseeko): Likewise.
39617         * lib/fseterr.c (fseterr): Likewise.
39618
39619 2007-08-19  Bruno Haible  <bruno@clisp.org>
39620
39621         * tests/test-lseek.c (main): Disable a test for BeOS.
39622         * doc/functions/lseek.texi: Document the BeOS bug.
39623
39624 2007-08-19  Bruno Haible  <bruno@clisp.org>
39625             Eric Blake  <ebb9@byu.net>
39626
39627         * lib/lseek.c: Include <sys/stat.h>.
39628         (rpl_lseek): Add workaround code also for Unix platforms.
39629         Needed for BeOS.
39630         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
39631         * doc/functions/lseek.texi: Document BeOS definiency.
39632
39633 2007-08-18  Bruno Haible  <bruno@clisp.org>
39634
39635         * modules/fstrcmp-tests: New file.
39636         * tests/test-fstrcmp.c: New file.
39637
39638 2007-08-18  Bruno Haible  <bruno@clisp.org>
39639
39640         * modules/fstrcmp: New file, from GNU gettext with modifications.
39641         * lib/fstrcmp.h: New file, from GNU gettext.
39642         * lib/fstrcmp.c: New file, from GNU gettext.
39643         * MODULES.html.sh (String handling): Add fstrcmp.
39644
39645 2007-08-18  Bruno Haible  <bruno@clisp.org>
39646
39647         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
39648         'bool'.
39649         (diag, compareseq): Remove const from the ctxt argument.
39650         (USE_HEURISTIC): Undefine at the end.
39651
39652 2007-08-18  Jim Meyering  <jim@meyering.net>
39653
39654         New file: lib/idcache.h
39655         * NEWS: Mention the addition.
39656         * modules/idcache (Files): Add lib/idcache.h
39657         * lib/idcache.c: Include "idcache.h".
39658         Don't include <sys/types.h>.
39659         Add a FIXME comment.
39660         Move file-scoped "static" declarations to the top.
39661         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
39662
39663 2007-08-17  Bruno Haible  <bruno@clisp.org>
39664         and Paul Eggert  <eggert@cs.ucla.edu>
39665
39666         * MODULES.html.sh: Add diffseq.
39667         * modules/diffseq: New file.
39668         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
39669         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
39670
39671 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39672
39673         Import changes from coreutils for bootstrap script.
39674
39675         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
39676
39677         * build-aux/bootstrap (slurp): Work even in environments where
39678         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
39679         current code does not slurp files whose names start with ".", and
39680         this looks like it might be a troublesome area.
39681
39682         2007-07-11  Jim Meyering  <jim@meyering.net>
39683
39684         If there's a GPL vN copyright comment, require that N == 3.
39685
39686         2007-07-08  Jim Meyering  <jim@meyering.net>
39687
39688         Run the coreutils-specific code only if tests/Makefile.am.in exists.
39689         * build-aux/bootstrap (mam_template): Move definition out of loop.
39690
39691         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
39692
39693         * build-aux/bootstrap (symlink_to_dir): Rename function from
39694         symlink_to_gnulib.  Add a directory parameter.  Update all
39695         callers.
39696         (cp_mark_as_generated): Also check for -- and link to -- files in
39697         gl/.
39698
39699         2007-07-08  Jim Meyering  <jim@meyering.net>
39700
39701         Adapt to deeper hierarchy in gnulib.
39702         * build-aux/bootstrap (symlink_to_dir): If the destination
39703         directory doesn't exist, create it. This is required at least for
39704         "lib/uniwidth/cjk.h".
39705
39706         2007-05-15  Jim Meyering  <jim@meyering.net>
39707
39708         * build-aux/bootstrap: Now that generated Makefile.am files
39709         are no longer under version control, they must be created at
39710         bootstrap time.
39711
39712 2007-08-14  Ben Pfaff  <blp@gnu.org>
39713
39714         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
39715
39716 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
39717
39718         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
39719         given the changes below.
39720         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
39721         even on hosts that have padding bits beyond the supported 64.
39722
39723 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
39724
39725         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
39726         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
39727         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
39728         depends on it.
39729         (xstrtol_error): Remove.
39730         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
39731         but with a different signature.
39732         (ATTRIBUTE_NORETURN, __attribute__): New macros.
39733         * lib/xstrtol-error.c: Include exitfail.h.
39734         (xstrtol_fatal): New function, with a different signature from the
39735         old xstrtol_error, so that the caller need not worry about passing
39736         in an exit status, or about storage management of the option argument.
39737         (xstrtol_error): Now a static function.  Redo signature to
39738         implement xstrtol_fatal.  Output the correct number of hyphens in
39739         front of the option so that the caller need not worry about
39740         storage management.
39741         (N_): New macro.
39742         (_): Remove; not used now.
39743         * modules/xstrtol: Depend on getopt.
39744         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
39745         of old STRTOL_FATAL_ERROR macro.
39746         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
39747         of test program.
39748         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
39749         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
39750
39751 2007-08-08  Eric Blake  <ebb9@byu.net>
39752
39753         * lib/xstrtol-error.c: Add missing include.
39754
39755         Move xstrtol messages into gnulib domain, when --pobase is used.
39756         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
39757         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
39758         * modules/xstrtol (Files): Distribute new file.
39759         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
39760         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
39761         * tests/test-xstrtol.c: ...into new file.
39762         * tests/test-xstrtoul.c: Also test xstrtoul.
39763         * tests/test-xstrtoimax.c: Also test xstrtoimax.
39764         * tests/test-xstrtoumax.c: Also test xstrtoumax.
39765         * tests/test-xstrtol.sh: Drive the tests.
39766         * tests/test-xstrtoimax.sh: Likewise.
39767         * tests/test-xstrtoumax.sh: Likewise.
39768         * modules/xstrtol-tests: New module.
39769         * modules/xstrtoimax-tests: Likewise.
39770         * modules/xstrtoumax-tests: Likewise.
39771
39772 2007-08-08  Jim Meyering  <jim@meyering.net>
39773
39774         New function: mfile_name_concat.
39775         * lib/filenamecat.c (mfile_name_concat): New function, just like
39776         file_name_concat, but return NULL upon failure rather than exiting
39777         with a diagnostic.
39778         * lib/filenamecat.h: Declare it.
39779
39780 2007-08-07  Bruno Haible  <bruno@clisp.org>
39781
39782         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
39783         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
39784         warning from gcc.
39785         Reported by Eric Blake.
39786
39787 2007-08-07  Simon Josefsson  <simon@josefsson.org>
39788
39789         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
39790         * modules/crypto/arcfour (License): Likewise.
39791         * modules/crypto/des-tests (License): Likewise.
39792         * modules/crypto/gc-arctwo-tests (License): Likewise.
39793         * modules/crypto/gc-des-tests (License): Likewise.
39794         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
39795         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
39796         * modules/crypto/gc-md2-tests (License): Likewise.
39797         * modules/crypto/gc-md4-tests (License): Likewise.
39798         * modules/crypto/gc-md5-tests (License): Likewise.
39799         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
39800         * modules/crypto/gc-rijndael-tests (License): Likewise.
39801         * modules/crypto/gc-sha1-tests (License): Likewise.
39802         * modules/crypto/gc-tests (License): Likewise.
39803         * modules/crypto/hmac-md5 (License): Likewise.
39804         * modules/crypto/hmac-sha1 (License): Likewise.
39805         * modules/crypto/md2-tests (License): Likewise.
39806         * modules/crypto/md4-tests (License): Likewise.
39807         * modules/crypto/md5 (License): Likewise.
39808         * modules/crypto/rijndael (License): Likewise.
39809         * modules/crypto/sha1 (License): Likewise.
39810         * modules/memxor (License): Likewise.
39811
39812 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
39813         and Bruno Haible  <bruno@clisp.org>
39814
39815         * NEWS: Describe interface changes to human, xstrtol.
39816         * lib/human.h: Include <xstrtol.h>.
39817         (human_options): Return enum strtol_error, not int.  Remove
39818         bool arg; take int * instead.
39819         * lib/human.c: Don't include "gettext.h".
39820         (_): Remove; no longer used.
39821         Don't include <xstrtol.h>, since human.h does it.
39822         (human_options): Adjust to abovementioned interface changes.
39823         Do not report error to stderr; that's now the caller's
39824         responsibility.
39825         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
39826         interface change.
39827         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
39828         Str, Argument_type_string.  All uses changed.  Put " argument"
39829         in diagnostics to make them clearer.  Change wording of suffix
39830         message for clarity.
39831         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
39832         Argument_type_string.
39833         (STRTOL_FATAL_WARN): Remove; no longer used.
39834         * modules/human (Depends-on): Remove gettext-h.
39835
39836 2007-08-06  Simon Josefsson  <simon@josefsson.org>
39837
39838         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
39839
39840 2007-07-31  Bruno Haible  <bruno@clisp.org>
39841
39842         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
39843         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
39844         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
39845
39846 2007-07-31  Bruno Haible  <bruno@clisp.org>
39847
39848         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
39849         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
39850
39851 2007-07-30  Bruno Haible  <bruno@clisp.org>
39852
39853         * modules/base64 (License): Use the synonymous term "LGPLv2+".
39854         * modules/c-ctype (License): Likewise.
39855         * modules/c-strcase (License): Likewise.
39856         * modules/check-version (License): Likewise.
39857         * modules/iconv (License): Likewise.
39858         * modules/iconv_open (License): Likewise.
39859         * modules/read-file (License): Likewise.
39860         * modules/striconv (License): Likewise.
39861         * modules/strverscmp (License): Likewise.
39862         * modules/vasprintf (License): Likewise.
39863         * modules/crypto/des (License): Likewise.
39864         * modules/crypto/gc (License): Likewise.
39865         * modules/crypto/gc-arcfour (License): Likewise.
39866         * modules/crypto/gc-arctwo (License): Likewise.
39867         * modules/crypto/gc-des (License): Likewise.
39868         * modules/crypto/gc-hmac-md5 (License): Likewise.
39869         * modules/crypto/gc-hmac-sha1 (License): Likewise.
39870         * modules/crypto/gc-md2 (License): Likewise.
39871         * modules/crypto/gc-md4 (License): Likewise.
39872         * modules/crypto/gc-md5 (License): Likewise.
39873         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
39874         * modules/crypto/gc-random (License): Likewise.
39875         * modules/crypto/gc-rijndael (License): Likewise.
39876         * modules/crypto/gc-sha1 (License): Likewise.
39877         * modules/crypto/md2 (License): Likewise.
39878         * modules/crypto/md4 (License): Likewise.
39879
39880 2007-07-30  Jim Meyering  <jim@meyering.net>
39881
39882         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
39883         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
39884         it has valid stat data.  This bug would cause du not to count the
39885         sizes of inaccessible directories.
39886         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
39887         in <http://bugzilla.redhat.com/250077>.
39888
39889 2007-07-25  Peter O'Gorman  <peter@pogma.com>
39890             Bruno Haible  <bruno@clisp.org>
39891
39892         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
39893         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
39894         #include_next, gives a diagnostic about it, but reports no error in
39895         the exit code.
39896         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39897
39898 2007-07-24  Ben Pfaff  <blp@gnu.org>
39899
39900         Improve name: "count-one-bits" is better than "popcount".
39901         * MODULES.html.sh: Update name.
39902         * lib/popcount.h: Renamed lib/count-one-bits.h.
39903         (popcount): Renamed count_one_bits.
39904         (popcountl): Renamed count_one_bits_l.
39905         (popcountll): Renamed count_one_bits_ll.
39906         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
39907         * modules/popcount: Renamed module/count-one-bits.
39908         * modules/popcount-tests: Renamed module/count-one-bits-tests.
39909         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
39910
39911 2007-07-23  Ben Pfaff  <blp@gnu.org>
39912
39913         * lib/popcount.h (popcount32): Reduce size of constants, to allow
39914         better code generation, and add U to large constants to avoid
39915         warnings, in non-GCC case.
39916         Suggested by Bruno Haible.
39917
39918 2007-07-23  Ben Pfaff  <blp@gnu.org>
39919
39920         * lib/popcount.h: Use verify_true instead of if...abort.
39921         * modules/popcount: Depend on verify module.
39922         Suggested by Jim Meyering.
39923
39924 2007-07-23  Bruno Haible  <bruno@clisp.org>
39925
39926         * gnulib-tool (func_import): Create a .cvsignore file also when the
39927         directory is not yet in CVS but the toplevel directory is. When
39928         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
39929         Reported by Karl Berry.
39930
39931 2007-07-22  Ben Pfaff  <blp@gnu.org>
39932
39933         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
39934         case.
39935         Suggested by Eric Blake.
39936
39937 2007-07-22  Ben Pfaff  <blp@gnu.org>
39938
39939         New module: popcount.
39940         * MODULES.html.sh: Add popcount.
39941         * modules/popcount: New file.
39942         * modules/popcount-tests: New file.
39943         * tests/test-popcount.c: New file.
39944         * lib/popcount.h: New file.
39945         * m4/popcount.m4: New file.
39946
39947 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39948
39949         * build-aux/announce-gen: Update to GPLv3.
39950
39951         * build-aux/config.guess: Update from config.
39952
39953 2007-07-21  Bruno Haible  <bruno@clisp.org>
39954
39955         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
39956         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
39957
39958 2007-07-20  Jim Meyering  <jim@meyering.net>
39959
39960         * check-module: Diagnose a self-dependency.
39961
39962 2007-07-19  Bruno Haible  <bruno@clisp.org>
39963
39964         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
39965         empty.
39966         Reported by Eric Blake.
39967
39968 2007-07-18  Bruno Haible  <bruno@clisp.org>
39969
39970         * gnulib-tool: New options --po-base, --po-domain.
39971         (func_usage): Document them.
39972         (pobase, po_domain): New variables.
39973         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
39974         DEFAULT_TEXT_DOMAIN.
39975         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
39976         (func_import): Consider pobase and po_domain. Create a po/ directory.
39977         (func_create_testdir): Set pobase and po_domain to empty.
39978         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
39979         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
39980
39981 2007-07-18  Bruno Haible  <bruno@clisp.org>
39982
39983         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39984         EXTRA_DIST augmentation for files in build-aux/.
39985
39986 2007-07-16  Bruno Haible  <bruno@clisp.org>
39987
39988         * modules/lseek (License): Use the synonymous term "LGPLv2+".
39989         * modules/getdelim (License): Likewise.
39990
39991 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39992
39993         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
39994         * modules/d-type (License): Likewise.
39995         * modules/extensions (License): Likewise.
39996         * modules/fnmatch (License): Likewise.
39997         * modules/fseeko (License): Likewise.
39998         * modules/getaddrinfo (License): Likewise.
39999         * modules/getline (License): Likewise.
40000         * modules/getlogin_r (License): Likewise.
40001         * modules/getpass (License): Likewise.
40002         * modules/gettimeofday (License): Likewise.
40003         * modules/glob (License): Likewise.
40004         * modules/inet_ntop (License): Likewise.
40005         * modules/malloc (License): Likewise.
40006         * modules/malloca (License): Likewise.
40007         * modules/memmem (License): Likewise.
40008         * modules/mempcpy (License): Likewise.
40009         * modules/memset (License): Likewise.
40010         * modules/minmax (License): Likewise.
40011         * modules/mktime (License): Likewise.
40012         * modules/netinet_in (License): Likewise.
40013         * modules/pathmax (License): Likewise.
40014         * modules/poll (License): Likewise.
40015         * modules/regex (License): Likewise.
40016         * modules/snprintf (License): Likewise.
40017         * modules/stdbool (License): Likewise.
40018         * modules/stdint (License): Likewise.
40019         * modules/stdio (License): Likewise.
40020         * modules/strcase (License): Likewise.
40021         * modules/strcasestr (License): Likewise.
40022         * modules/strdup (License): Likewise.
40023         * modules/string (License): Likewise.
40024         * modules/strndup (License): Likewise.
40025         * modules/strnlen (License): Likewise.
40026         * modules/strpbrk (License): Likewise.
40027         * modules/strptime (License): Likewise.
40028         * modules/strsep (License): Likewise.
40029         * modules/sys_select (License): Likewise.
40030         * modules/sys_socket (License): Likewise.
40031         * modules/sys_stat (License): Likewise.
40032         * modules/sys_time (License): Likewise.
40033         * modules/time (License): Likewise.
40034         * modules/time_r (License): Likewise.
40035         * modules/timegm (License): Likewise.
40036         * modules/unistd (License): Likewise.
40037         * modules/vsnprintf (License): Likewise.
40038         * modules/wctype (License): Likewise.
40039
40040 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40041
40042         * modules/argz (License): LGPLv2+.
40043
40044 2007-07-15  Karl Berry  <karl@gnu.org>
40045
40046         * doc/gnulib.texi: revise node structure per new fdl.texi.
40047
40048 2007-07-14  Bruno Haible  <bruno@clisp.org>
40049
40050         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
40051         the output file.
40052         * lib/uniname/uninames.h: Regenerated.
40053
40054 2007-07-14  Karl Berry  <karl@gnu.org>
40055
40056         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
40057         omitting sectioning and index commands.
40058
40059 2007-07-13  Bruno Haible  <bruno@clisp.org>
40060
40061         New gnulib-tool option --more-symlinks.
40062         * gnulib-tool (func_usage): Document --more-symlinks.
40063         (do_copyrights): New variable.
40064         Recognize option --more-symlinks.
40065         (func_import): Don't add a copyright notice transform to
40066         sed_transform_lib_file if do_copyrights is empty.
40067
40068 2007-07-13  Bruno Haible  <bruno@clisp.org>
40069
40070         * lib/vasnprintf.c (decimal_point_char): Define also if
40071         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
40072         && !NEED_PRINTF_DIRECTIVE_A.
40073         Reported by Clemens Koller <clemens.koller@anagramm.de> via
40074         Gary V. Vaughan <gary@gnu.org>.
40075
40076 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
40077
40078         * lib/inttypes_.h: Undo previous change, since it was fixed
40079         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
40080
40081 2007-07-13  Bruno Haible  <bruno@clisp.org>
40082
40083         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
40084         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
40085
40086 2007-07-13  Jim Meyering  <jim@meyering.net>
40087
40088         df: Don't fail for Tru64's "file-on-file mount".
40089         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
40090         so we fall through and use statfs instead.  Details here:
40091         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
40092         Reported by Albert Chin.
40093
40094 2007-07-13  Bruno Haible  <bruno@clisp.org>
40095
40096         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
40097         * modules/configmake (License): Likewise.
40098         * modules/gettext (License): Likewise.
40099         * modules/gettext-h (License): Likewise.
40100         * modules/include_next (License): Likewise.
40101         * modules/link-warning (License): Likewise.
40102         * modules/localcharset (License): Likewise.
40103         * modules/localename (License): Likewise.
40104         * modules/lock (License): Likewise.
40105         * modules/relocatable-lib-lgpl (License): Likewise.
40106         * modules/size_max (License): Likewise.
40107         * modules/vasnprintf (License): Likewise.
40108         * modules/wchar (License): Likewise.
40109         * modules/xsize (License): Likewise.
40110
40111 2007-07-13  Bruno Haible  <bruno@clisp.org>
40112
40113         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
40114         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
40115
40116 2007-07-12  Bruno Haible  <bruno@clisp.org>
40117
40118         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
40119         in the modules files.
40120
40121 2007-07-11  Karl Berry  <karl@gnu.org>
40122
40123         * MODULES.html.sh (func_module): use
40124          sed -e '\|^'"${includefile}"'$|d'
40125          instead of /.../d, to avoid errors on $includefile's containing /.
40126
40127 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40128
40129         * gnulib-tool (func_import): Avoid duplication of --avoid
40130         statements
40131         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
40132         names to `_' in variable names.
40133
40134 2007-07-10  Eric Blake  <ebb9@byu.net>
40135
40136         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
40137         * NEWS: Document this change.
40138
40139 2007-07-08  Bruno Haible  <bruno@clisp.org>
40140
40141         Update to Unicode 5.0.
40142         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
40143         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
40144         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
40145         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
40146         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
40147         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
40148         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
40149         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
40150         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
40151         U+10A3F, U+1D242..U+1D244.
40152         (nonspacing_table_ind): Update.
40153         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
40154         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
40155
40156 2007-07-08  Bruno Haible  <bruno@clisp.org>
40157
40158         Update to Unicode 5.0.
40159         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
40160         code transform. Extend the name index field of unicode_name_to_code and
40161         unicode_code_to_name from 16 to 24 bits.
40162         * lib/uniname/uniname.c (unicode_character_name,
40163         unicode_name_character): Add the range 0x12xxx to the code transform.
40164         * lib/uniname/uninames.h: Regenerated.
40165         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
40166
40167 2007-07-07  Bruno Haible  <bruno@clisp.org>
40168
40169         * modules/wcwidth-tests: New file.
40170         * tests/test-wcwidth.c: New file.
40171
40172         Work around MacOS X wcwidth() bug.
40173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
40174         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
40175         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
40176         original wcwidth in non-UTF-8 locales.
40177         * modules/wcwidth (Depends-on): Add localcharset, streq,
40178         uniwidth/width.
40179         * doc/functions/wcwidth.texi: Update.
40180
40181 2007-07-07  Bruno Haible  <bruno@clisp.org>
40182
40183         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
40184         (wcwidth): New declaration.
40185         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
40186         macros.
40187         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
40188         here. Prepare for creating <wchar.h> unconditionally.
40189         * modules/wchar (Depends-on): Add link-warning.
40190         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
40191         REPLACE_WCWIDTH, and GL_LINK_WARNING.
40192         * lib/wcwidth.h: Remove file.
40193         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
40194         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
40195         * modules/wcwidth (Files): Remove lib/wcwidth.h.
40196         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
40197         (Include): Replace wcwidth.h with <wchar.h>.
40198         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
40199         * lib/mbchar.h: Don't include wcwidth.h.
40200         * lib/mbswidth.c: Likewise.
40201         * NEWS: Mention the change.
40202
40203 2007-07-07  Bruno Haible  <bruno@clisp.org>
40204
40205         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
40206         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
40207         definition with an external declaration.
40208         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
40209         defined as a function. Remove AC_C_INLINE requirement.
40210         * modules/wcwidth (Files): Add lib/wcwidth.c.
40211         (Makefile.am): Remove redundant statement.
40212
40213 2007-07-07  Bruno Haible  <bruno@clisp.org>
40214
40215         * MODULES.html.sh (Unicode string functions): Add the new modules.
40216
40217         * tests/uniwidth/test-u32-strwidth.c: New file.
40218         * modules/uniwidth/u32-strwidth-tests: New file.
40219
40220         * lib/uniwidth/u32-strwidth.c: New file.
40221         * modules/uniwidth/u32-strwidth: New file.
40222
40223         * tests/uniwidth/test-u16-strwidth.c: New file.
40224         * modules/uniwidth/u16-strwidth-tests: New file.
40225
40226         * lib/uniwidth/u16-strwidth.c: New file.
40227         * modules/uniwidth/u16-strwidth: New file.
40228
40229         * tests/uniwidth/test-u8-strwidth.c: New file.
40230         * modules/uniwidth/u8-strwidth-tests: New file.
40231
40232         * lib/uniwidth/u8-strwidth.c: New file.
40233         * modules/uniwidth/u8-strwidth: New file.
40234
40235         * tests/uniwidth/test-u32-width.c: New file.
40236         * modules/uniwidth/u32-width-tests: New file.
40237
40238         * lib/uniwidth/u32-width.c: New file.
40239         * modules/uniwidth/u32-width: New file.
40240
40241         * tests/uniwidth/test-u16-width.c: New file.
40242         * modules/uniwidth/u16-width-tests: New file.
40243
40244         * lib/uniwidth/u16-width.c: New file.
40245         * modules/uniwidth/u16-width: New file.
40246
40247         * tests/uniwidth/test-u8-width.c: New file.
40248         * modules/uniwidth/u8-width-tests: New file.
40249
40250         * lib/uniwidth/u8-width.c: New file.
40251         * modules/uniwidth/u8-width: New file.
40252
40253         * tests/uniwidth/test-uc_width.c: New file.
40254         * modules/uniwidth/width-tests: New file.
40255
40256         * lib/uniwidth/width.c: New file, from GNU libiconv.
40257         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
40258         * modules/uniwidth/width: New file.
40259
40260         * lib/uniwidth.h: New file, from GNU libiconv.
40261         * modules/uniwidth/base: New file.
40262
40263 2007-07-07  Bruno Haible  <bruno@clisp.org>
40264
40265         * lib/uniname.h: New file, from GNU gettext.
40266         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
40267         * lib/uniname/uninames.h: New file, from GNU gettext.
40268         * lib/uniname/uniname.c: New file, from GNU gettext.
40269         * tests/uniname/test-uninames.sh: New file.
40270         * tests/uniname/test-uninames.c: New file, from GNU gettext.
40271         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
40272         * modules/uniname/base: New file.
40273         * modules/uniname/uniname: New file.
40274         * modules/uniname/uniname-tests: New file.
40275         * MODULES.html.sh (Unicode string functions): Add the new modules.
40276
40277 2007-07-06  Bruno Haible  <bruno@clisp.org>
40278
40279         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
40280
40281 2007-07-06  Bruno Haible  <bruno@clisp.org>
40282
40283         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
40284         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
40285         includes <cygwin/sys_time.h> which includes <sys/select.h> which
40286         include <sys/time.h>.
40287         Reported by Eric Blake.
40288
40289 2007-07-06  Eric Blake  <ebb9@byu.net>
40290
40291         Fix testing canonicalize on cygwin.
40292         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40293         Revert patch from 2007-06-19.
40294         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
40295         canonicalize module is also in use.
40296         * tests/test-canonicalize.c: New file.
40297         * tests/test-canonicalize.sh: Likewise.
40298         * modules/canonicalize-tests: Likewise.
40299
40300 2007-07-06  Jim Meyering  <jim@meyering.net>
40301
40302         * lib/getugroups.c (getugroups): Detect getgrent failure.
40303         Adjust comment to reflect reality: this function may return -1.
40304
40305 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
40306
40307         * build-aux/bootstrap (TP_URL,get_translations): Update to use
40308         the new TP address.
40309         (usage): Fix typo
40310         (gnulib_mk): New variable.
40311
40312 2007-07-05  Jim Meyering  <jim@meyering.net>
40313
40314         Don't let endgrent clobber errno, no matter how improbable.
40315         * lib/getugroups.c (getugroups): Save and restore errno around
40316         endgrent call.
40317
40318         Close the group DB even when failing with 2^31 or more members.
40319         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
40320
40321 2007-07-04  Jim Meyering  <jim@meyering.net>
40322
40323         * lib/getugroups.h: New file.
40324         * lib/getugroups.c: Include "getugroups.h".
40325         Remove uses of "register" keyword.
40326         Move local variable, "cp", down into scope where used.
40327         Give "username" parameter the "const" attribute.
40328         * modules/getugroups (Files): Add lib/getugroups.h
40329
40330 2007-07-04  Karl Berry  <karl@gnu.org>
40331
40332         * MODULES.html.sh (func_all_modules): Complete rename of
40333         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
40334
40335 2007-07-02  Bruno Haible  <bruno@clisp.org>
40336
40337         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
40338         mode, when inttypes.h comes from gnulib.
40339         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40340
40341 2007-07-02  Simon Josefsson  <simon@josefsson.org>
40342
40343         * NEWS: Mention lgpl module name change.
40344
40345         * modules/lgpl-2.1: Renamed from lgpl.
40346
40347         * NEWS: Mention gpl module name change.
40348
40349         * modules/gpl-3.0: New file, based on gpl-2.0.
40350
40351         * modules/gpl-2.0: Renamed from gpl.
40352
40353         * modules/gpl: Fix filename, doc/gpl.texi is now found at
40354         doc/gpl-2.0.texi.
40355
40356 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
40357
40358         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
40359         #define __STDC_LIMIT_MACROS temporarily while including
40360         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
40361         Problem reported by Joel E. Denny in
40362         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
40363
40364 2007-07-01  Bruno Haible  <bruno@clisp.org>
40365
40366         * lib/unistdio.h: New file.
40367         * lib/unistdio/u-asnprintf.h: New file.
40368         * lib/unistdio/u-asprintf.h: New file.
40369         * lib/unistdio/u-printf-args.c: New file.
40370         * lib/unistdio/u-printf-args.h: New file.
40371         * lib/unistdio/u-printf-parse.h: New file.
40372         * lib/unistdio/u-snprintf.h: New file.
40373         * lib/unistdio/u-sprintf.h: New file.
40374         * lib/unistdio/u-vasprintf.h: New file.
40375         * lib/unistdio/u-vsnprintf.h: New file.
40376         * lib/unistdio/u-vsprintf.h: New file.
40377         * lib/unistdio/ulc-asnprintf.c: New file.
40378         * lib/unistdio/ulc-asprintf.c: New file.
40379         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
40380         * lib/unistdio/ulc-printf-parse.c: New file.
40381         * lib/unistdio/ulc-snprintf.c: New file.
40382         * lib/unistdio/ulc-sprintf.c: New file.
40383         * lib/unistdio/ulc-vasnprintf.c: New file.
40384         * lib/unistdio/ulc-vasprintf.c: New file.
40385         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
40386         * lib/unistdio/ulc-vsnprintf.c: New file.
40387         * lib/unistdio/ulc-vsprintf.c: New file.
40388         * lib/unistdio/u8-asnprintf.c: New file.
40389         * lib/unistdio/u8-asprintf.c: New file.
40390         * lib/unistdio/u8-printf-parse.c: New file.
40391         * lib/unistdio/u8-snprintf.c: New file.
40392         * lib/unistdio/u8-sprintf.c: New file.
40393         * lib/unistdio/u8-vasnprintf.c: New file.
40394         * lib/unistdio/u8-vasprintf.c: New file.
40395         * lib/unistdio/u8-vsnprintf.c: New file.
40396         * lib/unistdio/u8-vsprintf.c: New file.
40397         * lib/unistdio/u8-u8-asnprintf.c: New file.
40398         * lib/unistdio/u8-u8-asprintf.c: New file.
40399         * lib/unistdio/u8-u8-snprintf.c: New file.
40400         * lib/unistdio/u8-u8-sprintf.c: New file.
40401         * lib/unistdio/u8-u8-vasnprintf.c: New file.
40402         * lib/unistdio/u8-u8-vasprintf.c: New file.
40403         * lib/unistdio/u8-u8-vsnprintf.c: New file.
40404         * lib/unistdio/u8-u8-vsprintf.c: New file.
40405         * lib/unistdio/u16-asnprintf.c: New file.
40406         * lib/unistdio/u16-asprintf.c: New file.
40407         * lib/unistdio/u16-printf-parse.c: New file.
40408         * lib/unistdio/u16-snprintf.c: New file.
40409         * lib/unistdio/u16-sprintf.c: New file.
40410         * lib/unistdio/u16-vasnprintf.c: New file.
40411         * lib/unistdio/u16-vasprintf.c: New file.
40412         * lib/unistdio/u16-vsnprintf.c: New file.
40413         * lib/unistdio/u16-vsprintf.c: New file.
40414         * lib/unistdio/u16-u16-asnprintf.c: New file.
40415         * lib/unistdio/u16-u16-asprintf.c: New file.
40416         * lib/unistdio/u16-u16-snprintf.c: New file.
40417         * lib/unistdio/u16-u16-sprintf.c: New file.
40418         * lib/unistdio/u16-u16-vasnprintf.c: New file.
40419         * lib/unistdio/u16-u16-vasprintf.c: New file.
40420         * lib/unistdio/u16-u16-vsnprintf.c: New file.
40421         * lib/unistdio/u16-u16-vsprintf.c: New file.
40422         * lib/unistdio/u32-asnprintf.c: New file.
40423         * lib/unistdio/u32-asprintf.c: New file.
40424         * lib/unistdio/u32-printf-parse.c: New file.
40425         * lib/unistdio/u32-snprintf.c: New file.
40426         * lib/unistdio/u32-sprintf.c: New file.
40427         * lib/unistdio/u32-vasnprintf.c: New file.
40428         * lib/unistdio/u32-vasprintf.c: New file.
40429         * lib/unistdio/u32-vsnprintf.c: New file.
40430         * lib/unistdio/u32-vsprintf.c: New file.
40431         * lib/unistdio/u32-u32-asnprintf.c: New file.
40432         * lib/unistdio/u32-u32-asprintf.c: New file.
40433         * lib/unistdio/u32-u32-snprintf.c: New file.
40434         * lib/unistdio/u32-u32-sprintf.c: New file.
40435         * lib/unistdio/u32-u32-vasnprintf.c: New file.
40436         * lib/unistdio/u32-u32-vasprintf.c: New file.
40437         * lib/unistdio/u32-u32-vsnprintf.c: New file.
40438         * lib/unistdio/u32-u32-vsprintf.c: New file.
40439         * tests/unistdio/test-ulc-asnprintf1.c: New file.
40440         * tests/unistdio/test-ulc-asnprintf1.h: New file.
40441         * tests/unistdio/test-ulc-printf1.h: New file.
40442         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
40443         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
40444         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
40445         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
40446         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
40447         * tests/unistdio/test-ulc-vasprintf1.c: New file.
40448         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
40449         * tests/unistdio/test-ulc-vsprintf1.c: New file.
40450         * tests/unistdio/test-u8-asnprintf1.c: New file.
40451         * tests/unistdio/test-u8-asnprintf1.h: New file.
40452         * tests/unistdio/test-u8-printf1.h: New file.
40453         * tests/unistdio/test-u8-vasnprintf1.c: New file.
40454         * tests/unistdio/test-u8-vasnprintf2.c: New file.
40455         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
40456         * tests/unistdio/test-u8-vasnprintf3.c: New file.
40457         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
40458         * tests/unistdio/test-u8-vasprintf1.c: New file.
40459         * tests/unistdio/test-u8-vsnprintf1.c: New file.
40460         * tests/unistdio/test-u8-vsprintf1.c: New file.
40461         * tests/unistdio/test-u16-asnprintf1.c: New file.
40462         * tests/unistdio/test-u16-asnprintf1.h: New file.
40463         * tests/unistdio/test-u16-printf1.h: New file.
40464         * tests/unistdio/test-u16-vasnprintf1.c: New file.
40465         * tests/unistdio/test-u16-vasnprintf2.c: New file.
40466         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
40467         * tests/unistdio/test-u16-vasnprintf3.c: New file.
40468         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
40469         * tests/unistdio/test-u16-vasprintf1.c: New file.
40470         * tests/unistdio/test-u16-vsnprintf1.c: New file.
40471         * tests/unistdio/test-u16-vsprintf1.c: New file.
40472         * tests/unistdio/test-u32-asnprintf1.c: New file.
40473         * tests/unistdio/test-u32-asnprintf1.h: New file.
40474         * tests/unistdio/test-u32-printf1.h: New file.
40475         * tests/unistdio/test-u32-vasnprintf1.c: New file.
40476         * tests/unistdio/test-u32-vasnprintf2.c: New file.
40477         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
40478         * tests/unistdio/test-u32-vasnprintf3.c: New file.
40479         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
40480         * tests/unistdio/test-u32-vasprintf1.c: New file.
40481         * tests/unistdio/test-u32-vsnprintf1.c: New file.
40482         * tests/unistdio/test-u32-vsprintf1.c: New file.
40483         * modules/unistdio/base: New file.
40484         * modules/unistdio/u-printf-args: New file.
40485         * modules/unistdio/ulc-asnprintf: New file.
40486         * modules/unistdio/ulc-asprintf: New file.
40487         * modules/unistdio/ulc-fprintf: New file.
40488         * modules/unistdio/ulc-printf-parse: New file.
40489         * modules/unistdio/ulc-snprintf: New file.
40490         * modules/unistdio/ulc-sprintf: New file.
40491         * modules/unistdio/ulc-vasnprintf: New file.
40492         * modules/unistdio/ulc-vasprintf: New file.
40493         * modules/unistdio/ulc-vfprintf: New file.
40494         * modules/unistdio/ulc-vsnprintf: New file.
40495         * modules/unistdio/ulc-vsprintf: New file.
40496         * modules/unistdio/u8-asnprintf: New file.
40497         * modules/unistdio/u8-asprintf: New file.
40498         * modules/unistdio/u8-printf-parse: New file.
40499         * modules/unistdio/u8-snprintf: New file.
40500         * modules/unistdio/u8-sprintf: New file.
40501         * modules/unistdio/u8-vasnprintf: New file.
40502         * modules/unistdio/u8-vasprintf: New file.
40503         * modules/unistdio/u8-vsnprintf: New file.
40504         * modules/unistdio/u8-vsprintf: New file.
40505         * modules/unistdio/u8-u8-asnprintf: New file.
40506         * modules/unistdio/u8-u8-asprintf: New file.
40507         * modules/unistdio/u8-u8-snprintf: New file.
40508         * modules/unistdio/u8-u8-sprintf: New file.
40509         * modules/unistdio/u8-u8-vasnprintf: New file.
40510         * modules/unistdio/u8-u8-vasprintf: New file.
40511         * modules/unistdio/u8-u8-vsnprintf: New file.
40512         * modules/unistdio/u8-u8-vsprintf: New file.
40513         * modules/unistdio/u16-asnprintf: New file.
40514         * modules/unistdio/u16-asprintf: New file.
40515         * modules/unistdio/u16-printf-parse: New file.
40516         * modules/unistdio/u16-snprintf: New file.
40517         * modules/unistdio/u16-sprintf: New file.
40518         * modules/unistdio/u16-vasnprintf: New file.
40519         * modules/unistdio/u16-vasprintf: New file.
40520         * modules/unistdio/u16-vsnprintf: New file.
40521         * modules/unistdio/u16-vsprintf: New file.
40522         * modules/unistdio/u16-u16-asnprintf: New file.
40523         * modules/unistdio/u16-u16-asprintf: New file.
40524         * modules/unistdio/u16-u16-snprintf: New file.
40525         * modules/unistdio/u16-u16-sprintf: New file.
40526         * modules/unistdio/u16-u16-vasnprintf: New file.
40527         * modules/unistdio/u16-u16-vasprintf: New file.
40528         * modules/unistdio/u16-u16-vsnprintf: New file.
40529         * modules/unistdio/u16-u16-vsprintf: New file.
40530         * modules/unistdio/u32-asnprintf: New file.
40531         * modules/unistdio/u32-asprintf: New file.
40532         * modules/unistdio/u32-printf-parse: New file.
40533         * modules/unistdio/u32-snprintf: New file.
40534         * modules/unistdio/u32-sprintf: New file.
40535         * modules/unistdio/u32-vasnprintf: New file.
40536         * modules/unistdio/u32-vasprintf: New file.
40537         * modules/unistdio/u32-vsnprintf: New file.
40538         * modules/unistdio/u32-vsprintf: New file.
40539         * modules/unistdio/u32-u32-asnprintf: New file.
40540         * modules/unistdio/u32-u32-asprintf: New file.
40541         * modules/unistdio/u32-u32-snprintf: New file.
40542         * modules/unistdio/u32-u32-sprintf: New file.
40543         * modules/unistdio/u32-u32-vasnprintf: New file.
40544         * modules/unistdio/u32-u32-vasprintf: New file.
40545         * modules/unistdio/u32-u32-vsnprintf: New file.
40546         * modules/unistdio/u32-u32-vsprintf: New file.
40547         * modules/unistdio/ulc-asnprintf-tests: New file.
40548         * modules/unistdio/ulc-vasnprintf-tests: New file.
40549         * modules/unistdio/ulc-vasprintf-tests: New file.
40550         * modules/unistdio/ulc-vsnprintf-tests: New file.
40551         * modules/unistdio/ulc-vsprintf-tests: New file.
40552         * modules/unistdio/u8-asnprintf-tests: New file.
40553         * modules/unistdio/u8-vasnprintf-tests: New file.
40554         * modules/unistdio/u8-vasprintf-tests: New file.
40555         * modules/unistdio/u8-vsnprintf-tests: New file.
40556         * modules/unistdio/u8-vsprintf-tests: New file.
40557         * modules/unistdio/u16-asnprintf-tests: New file.
40558         * modules/unistdio/u16-vasnprintf-tests: New file.
40559         * modules/unistdio/u16-vasprintf-tests: New file.
40560         * modules/unistdio/u16-vsnprintf-tests: New file.
40561         * modules/unistdio/u16-vsprintf-tests: New file.
40562         * modules/unistdio/u32-asnprintf-tests: New file.
40563         * modules/unistdio/u32-vasnprintf-tests: New file.
40564         * modules/unistdio/u32-vasprintf-tests: New file.
40565         * modules/unistdio/u32-vsnprintf-tests: New file.
40566         * modules/unistdio/u32-vsprintf-tests: New file.
40567         * MODULES.html.sh (Unicode string functions): Add the new modules.
40568
40569 2007-07-01  Bruno Haible  <bruno@clisp.org>
40570
40571         * lib/sprintf.c (sprintf): Limit the available length estimation,
40572         to avoid address wraparound.
40573         * lib/vsprintf.c (vsprintf): Likewise.
40574         * modules/sprintf-posix (Dependencies): Add stdint.
40575         * modules/vsprintf-posix (Dependencies): Likewise.
40576
40577 2007-07-01  Bruno Haible  <bruno@clisp.org>
40578
40579         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
40580         Windows PATH as well. Conservative double-quoting. Comments.
40581
40582 2007-07-01  Bruno Haible  <bruno@clisp.org>
40583             Eric Blake  <ebb9@byu.net>
40584             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40585
40586         * gnulib-tool (self_abspathname): Fix algorithm to cope with
40587         empty components in $PATH, denoting '.'.
40588
40589 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40590
40591         * gnulib-tool: Fix indentation.
40592         (func_create_megatestdir): Likewise.
40593         Report by Bruno Haible.
40594
40595 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40596
40597         Sync from Automake.
40598         * build-aux/gnupload: Fix shell portability issues with for loops.
40599         Report by Karl Berry.
40600
40601 2007-06-29  Simon Josefsson  <simon@josefsson.org>
40602
40603         * build-aux/maint.mk (POURL): Use translationproject.org.
40604
40605 2007-06-27  Simon Josefsson  <simon@josefsson.org>
40606             Bruno Haible  <bruno@clisp.org>
40607
40608         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
40609         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
40610         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
40611         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
40612         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
40613
40614 2007-06-27  Bruno Haible  <bruno@clisp.org>
40615
40616         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
40617         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
40618
40619 2007-06-26  Karl Berry  <karl@gnu.org>
40620
40621         * MODULES.html.sh: remove xreadlink-with-size.
40622
40623 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40624
40625         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
40626         method that I hope also handles the double-include problem noted
40627         by Bruno Haible in
40628         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
40629
40630 2007-06-23  Bruno Haible  <bruno@clisp.org>
40631
40632         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40633         Don't let the 'mostlyclean' target fail if the last subdirectory could
40634         not be removed.
40635         Reported by Karl Berry.
40636
40637 2007-06-23  Bruno Haible  <bruno@clisp.org>
40638
40639         * gnulib-tool (echo): Add a speedier workaround for ksh.
40640         * tests/test-echo.sh: Likewise.
40641
40642 2007-06-23  Bruno Haible  <bruno@clisp.org>
40643
40644         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
40645         * tests/test-echo.sh: Likewise.
40646
40647 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40648
40649         * gnulib-tool (IFS): Initialize early, so we don't set it to
40650         empty later.
40651         (self_abspathname): Rewrite algorithm to set it, reindent.
40652         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
40653         (func_create_megatestdir): Merge some sed scripts.
40654
40655 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40656
40657         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
40658         exposed by Sun Studio 11 cc on Solaris 8.
40659
40660 2007-06-22  Bruno Haible  <bruno@clisp.org>
40661
40662         * gnulib-tool (echo): Ensure the echo primitive does not interpret
40663         backslashes.
40664         * tests/test-echo.sh: New file.
40665
40666 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40667
40668         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
40669         simplify `sed_replace_build_aux' scripts, they are portable but
40670         echoing them with `echo' is not.
40671         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
40672
40673 2007-06-21  Karl Berry  <karl@gnu.org>
40674
40675         * config/srclist.txt: guess we can't handle the licenses via
40676         srclist at the moment.
40677
40678 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
40679
40680         * MODULES.html.sh: Add include_next.
40681         * modules/include_next: New file.
40682
40683 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
40684
40685         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
40686         INCLUDE_NEXT.
40687         (gl_CHECK_NEXT_HEADERS): New macro.
40688         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
40689         the obsolescent gl_ABSOLUTE_HEADER.
40690         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
40691         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
40692         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40693         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40694         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
40695         * m4/math_h.m4 (gl_MATH_H): Likewise.
40696         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40697         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40698         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
40699         * m4/stdint.m4 (gl_STDINT_H): Likewise.
40700         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
40701         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
40702         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
40703         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40704         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40705         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
40706         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40707         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40708         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
40709         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40710         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40711         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40712         * m4/inttypes.m4 (gl_INTTYPES_H): Define
40713         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
40714         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
40715         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
40716         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
40717         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
40718         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
40719         * lib/float_.h: Likewise.
40720         * lib/inttypes_.h: Likewise.
40721         * lib/math_.h: Likewise.
40722         * lib/search_.h: Likewise.
40723         * lib/signal_.h: Likewise.
40724         * lib/stdint_.h: Likewise.
40725         * lib/stdio_.h: Likewise.
40726         * lib/stdlib_.h: Likewise.
40727         * lib/string_.h: Likewise.
40728         * lib/sys_stat_.h: Likewise.
40729         * lib/sys_time_.h: Likewise.
40730         * lib/time_.h: Likewise.
40731         * lib/unistd_.h: Likewise.
40732         * lib/wchar_.h: Likewise.
40733         * lib/wctype_.h: Likewise.
40734         * lib/dirent_.h: Likewise.
40735         * lib/iconv_.h: Likewise.
40736         * lib/locale_.h: Likewise.
40737         * lib/netinet_in_.h: Likewise.
40738         * lib/sys_select_.h: Likewise.
40739         * lib/sys_socket_.h: Likewise.
40740         * lib/sysexits_.h: Likewise.
40741         * modules/fcntl (Depends-on): Depend on include_next, not
40742         absolute_header.
40743         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
40744         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
40745         * modules/fchdir: Likewise.
40746         * modules/float: Likewise.
40747         * modules/iconv_open: Likewise.
40748         * modules/inttypes: Likewise.
40749         * modules/locale: Likewise.
40750         * modules/math: Likewise.
40751         * modules/netinet_in: Likewise.
40752         * modules/search: Likewise.
40753         * modules/signal: Likewise.
40754         * modules/stdint: Likewise.
40755         * modules/stdio: Likewise.
40756         * modules/stdlib: Likewise.
40757         * modules/string: Likewise.
40758         * modules/sys_select: Likewise.
40759         * modules/sys_socket: Likewise.
40760         * modules/sys_stat: Likewise.
40761         * modules/sys_time: Likewise.
40762         * modules/sysexits: Likewise.
40763         * modules/time: Likewise.
40764         * modules/unistd: Likewise.
40765         * modules/wchar: Likewise.
40766         * modules/wctype: Likewise.
40767         * modules/sys_stat: Change maintainer to "all".
40768         * modules/unistd: Likewise.
40769
40770 2007-06-20  Karl Berry  <karl@gnu.org>
40771
40772         * config/srclist.txt: track www changes in license files.
40773
40774 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
40775
40776         * build-aux/bootstrap: Remove stray dot.
40777         Make sure build_aux settings are honored when linking
40778         gnulib_extra_files.
40779
40780 2007-06-19  Eric Blake  <ebb9@byu.net>
40781
40782         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40783         Allow compilation on cygwin.
40784
40785 2007-06-19  Jim Meyering  <jim@meyering.net>
40786
40787         xreadlink-with-size: Remove module.  No longer used.
40788         Ex-callers now use xreadlink or mreadlink-with-size.
40789         * modules/xreadlink-with-size: Remove module.
40790         * lib/xreadlink-with-size.c: Remove file.
40791         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
40792         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
40793         just before the function definition *is* accurate.
40794
40795         Eliminate one way canonicalize_filename_mode could exit.
40796         * lib/canonicalize.c (canonicalize_filename_mode):
40797         Use mreadlink_with_size, not xreadlink_with_size.
40798
40799 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
40800
40801         Detect porting problems to FreeBSD/arm, which has time_t wider than
40802         long int.  Original problem reported for GNU diff by Xin Li in
40803         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
40804         * modules/getdate (Depends-on): Add intprops, verify.
40805         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
40806         is an integer type no wider than long int.
40807
40808 2007-06-18  Jim Meyering  <jim@meyering.net>
40809
40810         New module: mreadlink-with-size.
40811         * MODULES.html.sh: Add mreadlink-with-size.
40812         * modules/mreadlink-with-size: New module
40813         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
40814         not xreadlink-with-size.
40815         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
40816
40817 2007-06-16  Bruno Haible  <bruno@clisp.org>
40818
40819         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
40820         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
40821         Reported by Gary V. Vaughan <gary@gnu.org>.
40822
40823 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
40824
40825         Revamp lchown so that it lives in unistd.h where it belongs.
40826         * lib/lchown.h: Remove.
40827         * lib/dirchownmod.c: Don't include lib/lchown.h.
40828         * lib/fchownat.c: Likewise.
40829         * lib/openat.c: Likewise.
40830         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
40831         does not follow symlinks.
40832         (EOPNOTSUPP): Define if not defined.
40833         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
40834         is defined to 0.
40835         (lchown): New decl.
40836         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
40837         Do not check for lchown decl.
40838         Set REPLACE_LCHOWN.
40839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
40840         REPLACE_LCHOWN.
40841         * modules/chown: Make it clear it follows symlinks.
40842         * modules/lchown: Make it clear it doesn't follow symlinks.
40843         (Files): Remove lib/lchown.h
40844         (Depends-on): Add unistd.
40845         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
40846         (Include): Include <unistd.h>, not "lchown.h".
40847         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
40848         REPLACE_LCHOWN.
40849
40850 2007-06-15  Jim Meyering  <jim@meyering.net>
40851
40852         Change license (GPL to LGPL) of fsusage and dependents.
40853         * modules/fsusage (License): Change to LGPL.
40854         * modules/full-read (License): Likewise.
40855         * modules/full-write (License): Likewise.
40856         * modules/safe-read (License): Likewise.
40857         * modules/safe-write (License): Likewise.
40858
40859 2007-06-14  Ben Pfaff  <blp@gnu.org>
40860
40861         Missing part of allocsa -> malloca transition.
40862         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
40863         gl_MALLOCA.
40864
40865 2007-06-12  Bruno Haible  <bruno@clisp.org>
40866
40867         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
40868         to ia64, x86_64, i386.
40869         Reported by Eric Blake.
40870
40871 2007-06-12  Bruno Haible  <bruno@clisp.org>
40872
40873         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
40874         cross-compiling to x86_64.
40875
40876 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
40877
40878         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
40879         glitch reported by Ralf Wildenhues in
40880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
40881
40882         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
40883         Vin Shelton.
40884
40885 2007-06-11  Bruno Haible  <bruno@clisp.org>
40886
40887         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
40888         replacement string.
40889         Reported by Eric Blake.
40890
40891 2007-06-10  Bruno Haible  <bruno@clisp.org>
40892
40893         Prepare vasnprintf code for use with Unicode strings.
40894         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
40895         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
40896         TYPE_U32_STRING.
40897         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
40898         a_u32_string variants.
40899         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40900         * lib/printf-args.c: Don't include config.h and the specification
40901         header if PRINTF_FETCHARGS is already defined.
40902         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40903         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
40904         TYPE_U16_STRING, TYPE_U32_STRING.
40905         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
40906         u16_directive, u16_directives, u32_directive, u32_directives): New
40907         types.
40908         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
40909         New declarations.
40910         * lib/printf-parse.c: Don't include config.h and the specification
40911         header if PRINTF_PARSE is already defined. Eliminate the set of
40912         parameters for WIDE_CHAR_VERSION; the user of this file must provide
40913         them now. Include c-ctype.h.
40914         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
40915         directive and CHAR_T_ONLY_ASCII.
40916         * lib/vasnprintf.c: Don't include config.h and the specification header
40917         if VASNPRINTF is already defined.
40918         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
40919         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
40920         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
40921         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
40922         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
40923         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
40924         code accordingly.
40925         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
40926         pad_ourselves also in this case, with the 'c' and 's' directives, and
40927         with a different notion of "width".
40928         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
40929
40930 2007-06-10  Bruno Haible  <bruno@clisp.org>
40931
40932         * modules/unistr/u32-mbsnlen: New file.
40933         * lib/unistr/u32-mbsnlen.c: New file.
40934
40935         * modules/unistr/u16-mbsnlen: New file.
40936         * lib/unistr/u16-mbsnlen.c: New file.
40937
40938         * modules/unistr/u8-mbsnlen: New file.
40939         * lib/unistr/u8-mbsnlen.c: New file.
40940
40941         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
40942         declarations.
40943
40944 2007-06-10  Bruno Haible  <bruno@clisp.org>
40945
40946         * lib/string_.h (mbsnlen): New declaration.
40947         * lib/mbsnlen.c: New file.
40948         * m4/mbsnlen.m4: New file.
40949         * modules/mbsnlen: New file.
40950         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
40951         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
40952         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
40953
40954 2007-06-10  Bruno Haible  <bruno@clisp.org>
40955
40956         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
40957
40958 2007-06-10  Bruno Haible  <bruno@clisp.org>
40959
40960         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
40961         * lib/mbuiter.h: Likewise.
40962
40963 2007-06-10  Bruno Haible  <bruno@clisp.org>
40964
40965         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
40966         declaration.
40967
40968 2007-06-10  Karl Berry  <karl@gnu.org>
40969
40970         * config/srclist.txt: remove gettext entries, Bruno prefers
40971         to update individually.
40972
40973 2007-06-10  Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
40976         'maxlen'. Ensure only length + width bytes are allocated, not
40977         length + 1 + width.
40978
40979 2007-06-09  Bruno Haible  <bruno@clisp.org>
40980
40981         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
40982         (CHAR_T): Remove macro.
40983         (VASNPRINTF): Update.
40984
40985 2007-06-09  Bruno Haible  <bruno@clisp.org>
40986
40987         * MODULES.html.sh (Unicode string functions): Add the new modules.
40988
40989         * modules/uniconv/u32-conv-to-enc: New file.
40990         * lib/uniconv/u32-conv-to-enc.c: New file.
40991         * modules/uniconv/u32-conv-to-enc-tests: New file.
40992         * tests/uniconv/test-u32-conv-to-enc.c: New file.
40993
40994         * modules/uniconv/u16-conv-to-enc: New file.
40995         * lib/uniconv/u16-conv-to-enc.c: New file.
40996         * lib/uniconv/u-conv-to-enc.h: New file.
40997         * modules/uniconv/u16-conv-to-enc-tests: New file.
40998         * tests/uniconv/test-u16-conv-to-enc.c: New file.
40999
41000         * modules/uniconv/u8-conv-to-enc: New file.
41001         * lib/uniconv/u8-conv-to-enc.c: New file.
41002         * modules/uniconv/u8-conv-to-enc-tests: New file.
41003         * tests/uniconv/test-u8-conv-to-enc.c: New file.
41004
41005         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41006         u32_conv_to_encoding): New declarations.
41007
41008 2007-06-09  Bruno Haible  <bruno@clisp.org>
41009
41010         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
41011
41012 2007-06-09  Bruno Haible  <bruno@clisp.org>
41013
41014         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
41015         * modules/malloca: Renamed from modules/allocsa, updated.
41016         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
41017         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
41018         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
41019         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
41020         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
41021         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
41022         * modules/xmalloca: Renamed from modules/xallocsa, updated.
41023         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
41024         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
41025         * modules/c-strcasestr (Depends-on): Update.
41026         * lib/c-strcasestr.c: Update.
41027         * modules/c-strstr (Depends-on): Update.
41028         * lib/c-strstr.c: Update.
41029         * modules/canonicalize-lgpl (Depends-on): Update.
41030         * lib/canonicalize-lgpl.c: Update.
41031         * modules/clean-temp (Depends-on): Update.
41032         * lib/clean-temp.c: Update.
41033         * modules/csharpcomp (Depends-on): Update.
41034         * lib/csharpcomp.c: Update.
41035         * modules/csharpexec (Depends-on): Update.
41036         * lib/csharpexec.c: Update.
41037         * modules/javacomp (Depends-on): Update.
41038         * lib/javacomp.c: Update.
41039         * modules/javaexec (Depends-on): Update.
41040         * lib/javaexec.c: Update.
41041         * modules/mbscasestr (Depends-on): Update.
41042         * lib/mbscasestr.c: Update.
41043         * modules/mbsstr (Depends-on): Update.
41044         * lib/mbsstr.c: Update.
41045         * modules/setenv (Depends-on): Update.
41046         * lib/setenv.c: Update.
41047         * modules/strcasestr (Depends-on): Update.
41048         * lib/strcasestr.c: Update.
41049         * modules/striconveha (Depends-on): Update.
41050         * lib/striconveha.c: Update.
41051         * modules/relocatable-prog-wrapper (Files): Update.
41052         * lib/relocwrapper.c: Update.
41053         * build-aux/install-reloc: Update.
41054         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
41055
41056 2007-06-08  Bruno Haible  <bruno@clisp.org>
41057
41058         Port to uClibc.
41059         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
41060         * lib/fpurge.c (fpurge): Likewise.
41061         * lib/freading.c (freading): Likewise.
41062         * lib/fseeko.c (rpl_fseeko): Likewise.
41063         * lib/fseterr.c (fseterr): Likewise.
41064         * lib/fwriting.c (fwriting): Likewise.
41065         * tests/test-fflush.c (main): Avoid a failure on uClibc.
41066
41067 2007-06-08  Bruno Haible  <bruno@clisp.org>
41068
41069         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
41070         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
41071         * modules/gettext (Files): Add m4/intlmacosx.m4.
41072
41073 2007-06-07  Bruno Haible  <bruno@clisp.org>
41074
41075         * modules/localename-tests: New file.
41076         * tests/test-localename.c: New file.
41077
41078         New module 'localename'.
41079         * lib/localename.h: New file.
41080         * lib/localename.c: New file, from GNU gettext.
41081         * m4/localename.m4: New file.
41082         * modules/localename: New file.
41083
41084 2007-06-07  Bruno Haible  <bruno@clisp.org>
41085
41086         Work around the lack of <wchar.h> on some builds of uClibc.
41087         * doc/headers/wchar.texi: Update.
41088         * lib/wchar_.h: Include <wchar.h> only if it exists.
41089         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
41090         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
41091         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
41092         doesn't exist.
41093         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
41094         * modules/mbfile (Depends-on): Add wchar.
41095         * modules/mbiter (Depends-on): Likewise.
41096         * modules/mbuiter (Depends-on): Likewise.
41097         Reported by Simon Josefsson.
41098
41099 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
41100
41101         Work around problem reported by Steven M. Schweda in
41102         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
41103         Tru64 5.1B with the Compaq compiler environment installed declares
41104         an 'isblank' function but does not define it in the C library.
41105         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
41106         * lib/regex_internal.h (isblank): Likewise.
41107         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
41108         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41109
41110 2007-06-05  Bruno Haible  <bruno@clisp.org>
41111
41112         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
41113         ia64.
41114         * modules/printf-safe: New file.
41115         * modules/fprintf-posix (Depends-on): Add printf-safe.
41116         * modules/printf-posix (Depends-on): Likewise.
41117         * modules/snprintf-posix (Depends-on): Likewise.
41118         * modules/sprintf-posix (Depends-on): Likewise.
41119         * modules/vasnprintf-posix (Depends-on): Likewise.
41120         * modules/vasprintf-posix (Depends-on): Likewise.
41121         * modules/vfprintf-posix (Depends-on): Likewise.
41122         * modules/vprintf-posix (Depends-on): Likewise.
41123         * modules/vsnprintf-posix (Depends-on): Likewise.
41124         * modules/vsprintf-posix (Depends-on): Likewise.
41125         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
41126         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
41127         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
41128         "no" on i386, x86_64, ia64.
41129         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
41130         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41131         on i386, x86_64, ia64.
41132         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
41133         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41134         on i386, x86_64, ia64.
41135         * tests/test-vasnprintf-posix.c: Include float.h.
41136         (LDBL80_WORDS): New macro.
41137         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41138         on i386, x86_64, ia64.
41139         * tests/test-vasprintf-posix.c: Include float.h.
41140         (LDBL80_WORDS): New macro.
41141         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41142         on i386, x86_64, ia64.
41143         * tests/test-snprintf-posix.c: Include float.h.
41144         * tests/test-sprintf-posix.c: Likewise.
41145         * tests/test-vsnprintf-posix.c: Likewise.
41146         * tests/test-vsprintf-posix.c: Likewise.
41147
41148 2007-06-05  Bruno Haible  <bruno@clisp.org>
41149
41150         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
41151         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
41152         non-IEEE numbers on i386, x86_64, ia64.
41153         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
41154         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
41155         * tests/test-isnanl.h: Include float.h.
41156         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
41157
41158 2007-06-05  Bruno Haible  <bruno@clisp.org>
41159
41160         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
41161         also the %a / %A. Handle the %a / %A code before this extra handling.
41162
41163 2007-06-05  Bruno Haible  <bruno@clisp.org>
41164
41165         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
41166         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
41167
41168 2007-06-05  Bruno Haible  <bruno@clisp.org>
41169
41170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
41171         typo in variable name.
41172
41173 2007-06-05  Eric Blake  <ebb9@byu.net>
41174
41175         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
41176         Reported by Simon Josefsson.
41177
41178 2007-06-04  Bruno Haible  <bruno@clisp.org>
41179
41180         Avoid test failures on some PowerPC platforms.
41181         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
41182         Define differently for PowerPC.
41183         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
41184         Reported by Gary V. Vaughan <gary@gnu.org>.
41185
41186 2007-06-02  Bruno Haible  <bruno@clisp.org>
41187
41188         Fix test-stdint failure on FreeBSD/ia64.
41189         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
41190         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
41191         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
41192         * doc/headers/stdint.texi: Update.
41193
41194 2007-06-01  Bruno Haible  <bruno@clisp.org>
41195
41196         * tests/test-binary-io.c (main): Pass a third argument to open().
41197         Reported by Gary V. Vaughan <gary@gnu.org>.
41198
41199 2007-06-01  Bruno Haible  <bruno@clisp.org>
41200
41201         * doc/functions/frexpl.texi: Update for mingw.
41202
41203 2007-06-01  Bruno Haible  <bruno@clisp.org>
41204
41205         * tests/test-lseek.c (main): Disable test of errno for invalid third
41206         argument.
41207         * doc/functions/lseek.texi: Update.
41208         Reported by Gary V. Vaughan <gary@gnu.org>.
41209
41210 2007-05-28  Bruno Haible  <bruno@clisp.org>
41211
41212         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
41213
41214 2007-05-31  Eric Blake  <ebb9@byu.net>
41215
41216         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
41217         cross compiling.
41218
41219 2007-05-30  Eric Blake  <ebb9@byu.net>
41220         and Bruno Haible  <bruno@clisp.org>
41221
41222         Work around mingw test failures exposed by m4-1.4.9b.
41223         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
41224         * tests/test-unistd.c: Disable uid_t and git_t tests for the
41225         moment.
41226
41227 2007-05-30  Bruno Haible  <bruno@clisp.org>
41228
41229         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
41230         assuming that they are closed. Needed on HP-UX 11.
41231
41232 2007-05-29  Bruno Haible  <bruno@clisp.org>
41233
41234         Fix a problem with #include_next.
41235         * lib/dirent_.h: Split the double-inclusion guard.
41236         * lib/fcntl_.h: Likewise.
41237         * lib/float_.h: Likewise.
41238         * lib/iconv_.h: Likewise.
41239         * lib/inttypes_.h: Likewise.
41240         * lib/locale_.h: Likewise.
41241         * lib/math_.h: Likewise.
41242         * lib/netinet_in_.h: Likewise.
41243         * lib/search_.h: Likewise.
41244         * lib/signal_.h: Likewise.
41245         * lib/stdint_.h: Likewise.
41246         * lib/stdio_.h: Likewise.
41247         * lib/stdlib_.h: Likewise.
41248         * lib/string_.h: Likewise.
41249         * lib/sys_select_.h: Likewise.
41250         * lib/sys_socket_.h: Likewise.
41251         * lib/sys_stat_.h: Likewise.
41252         * lib/sys_time_.h: Likewise.
41253         * lib/sysexits_.h: Likewise.
41254         * lib/time_.h: Likewise.
41255         * lib/unistd_.h: Likewise.
41256         * lib/wchar_.h: Likewise.
41257         * lib/wctype_.h: Likewise.
41258
41259 2007-05-29  Bruno Haible  <bruno@clisp.org>
41260
41261         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
41262         for the moment.
41263
41264 2007-05-29  Bruno Haible  <bruno@clisp.org>
41265
41266         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
41267         invocation.
41268         Reported by Eric Blake.
41269
41270 2007-05-29  Bruno Haible  <bruno@clisp.org>
41271
41272         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
41273         compiling case.
41274
41275 2007-05-29  Eric Blake  <ebb9@byu.net>
41276             Bruno Haible  <bruno@clisp.org>
41277
41278         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
41279         cross compiles.
41280
41281 2007-05-28  Eric Blake  <ebb9@byu.net>
41282
41283         * modules/closein-tests (test_closein_LDADD): Support test on
41284         cygwin with libtool.
41285
41286 2007-05-28  Bruno Haible  <bruno@clisp.org>
41287
41288         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
41289         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41290         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41291         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41292         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41293         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41294         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41295         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41296         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41297
41298 2007-05-28  Eric Blake  <ebb9@byu.net>
41299
41300         Unconditionally include <config.h> in unit tests.
41301         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
41302         * tests/test-allocsa.c, tests/test-arcfour.c,
41303         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
41304         tests/test-array_list.c, tests/test-array_oset.c,
41305         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
41306         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
41307         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
41308         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
41309         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
41310         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
41311         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
41312         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
41313         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
41314         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
41315         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
41316         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
41317         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
41318         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
41319         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
41320         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
41321         test-md5.c, test-memmem.c, test-printf-posix.c,
41322         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
41323         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
41324         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
41325         test-strcasestr.c, test-striconv.c, test-striconveh.c,
41326         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
41327         test-vasnprintf-posix2.c, test-vasnprintf.c,
41328         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
41329         test-vfprintf-posix.c, test-vprintf-posix.c,
41330         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
41331         test-xvasprintf.c: Likewise.
41332
41333 2007-05-28  Bruno Haible  <bruno@clisp.org>
41334
41335         * gnulib-tool (func_import): Remember the --with-tests command-line
41336         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
41337         Reported by Eric Blake.
41338
41339 2007-05-28  Bruno Haible  <bruno@clisp.org>
41340
41341         * modules/ftell-tests: New file.
41342         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
41343         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
41344
41345         * lib/ftell.c: New file.
41346         * modules/ftell: New file.
41347         * m4/ftell.m4: New file.
41348         * doc/functions/ftell.texi: Update.
41349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
41350         REPLACE_FTELL.
41351         * lib/stdio_.h (rpl_ftell): New declaration.
41352         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
41353         REPLACE_FTELL.
41354
41355 2007-05-28  Eric Blake  <ebb9@byu.net>
41356
41357         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
41358
41359 2007-05-28  Bruno Haible  <bruno@clisp.org>
41360
41361         * modules/fseek-tests: New file.
41362         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
41363         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
41364
41365         * lib/fseek.c: New file.
41366         * modules/fseek: New file.
41367         * m4/fseek.m4: New file.
41368         * doc/functions/fseek.texi: Update.
41369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
41370         REPLACE_FSEEK.
41371         * lib/stdio_.h (rpl_fseek): New declaration.
41372         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
41373         REPLACE_FSEEK.
41374
41375 2007-05-28  Bruno Haible  <bruno@clisp.org>
41376
41377         * lib/stdio_.h (fflush): More comments.
41378
41379 2007-05-28  Bruno Haible  <bruno@clisp.org>
41380
41381         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
41382         runtime test.
41383
41384 2007-05-28  Eric Blake  <ebb9@byu.net>
41385
41386         Improve lseek module.
41387         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
41388         * lib/unistd_.h (lseek): Scale back link warning message.
41389         * tests/test-lseek.c: Beef up test.
41390         * tests/test-lseek.sh: Exercise more facets of lseek.
41391         Reported by Bruno Haible.
41392
41393 2007-05-28  Bruno Haible  <bruno@clisp.org>
41394
41395         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
41396         to define.
41397
41398 2007-05-27  Bruno Haible  <bruno@clisp.org>
41399
41400         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
41401
41402 2007-05-27  Bruno Haible  <bruno@clisp.org>
41403
41404         * modules/openmp: New file.
41405         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
41406         Noah Misch.
41407
41408 2007-05-26  Bruno Haible  <bruno@clisp.org>
41409
41410         * modules/chdir-long (Depends-on): Add fchdir.
41411         * modules/chdir-safer (Depends-on): Likewise.
41412         * modules/fts (Depends-on): Likewise.
41413         * modules/fts-lgpl (Depends-on): Likewise.
41414         * modules/openat (Depends-on): Likewise.
41415         * modules/savewd (Depends-on): Likewise.
41416
41417 2007-05-24  Eric Blake  <ebb9@byu.net>
41418
41419         Fix lseek on mingw.
41420         * modules/lseek: New module.
41421         * m4/lseek.m4: New file.
41422         * lib/lseek.c: New file.
41423         * modules/lseek-tests: New file.
41424         * tests/test-lseek.c: New file.
41425         * tests/test-lseek.sh: New file.
41426         * MODULES.html.sh: Document lseek module.
41427         * modules/fflush (Depends-on): Add lseek, fseeko.
41428         * modules/fseeko (Depends-on): Likewise.
41429         * modules/ftello (Depends-on): Likewise.
41430         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
41431         broken.
41432         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
41433         broken.
41434         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
41435         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
41436         * lib/ftello.c (rpl_ftello): Likewise.
41437         * tests/test-fseeko.c (main): Test this.
41438         * tests/test-fseeko.sh: Likewise.
41439         * tests/test-ftello.c (main): Likewise.
41440         * tests/test-ftello.sh: Likewise.
41441         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
41442         implies replacing fseek.
41443         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
41444         HAVE_FTELLO.
41445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
41446         * modules/unistd (Makefile.am): Likewise.
41447         * lib/unistd_.h (lseek): Declare a replacement.
41448         * doc/functions/lseek.texi (lseek): Document this fix.
41449         * doc/functions/fseek.texi (fseek): Likewise.
41450         * doc/functions/ftell.texi (ftell): Likewise.
41451
41452 2007-05-24  Bruno Haible  <bruno@clisp.org>
41453
41454         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
41455         in the printed representation of a NaN.
41456         * tests/test-vasprintf-posix.c (test_function): Likewise.
41457         * tests/test-snprintf-posix.h (test_function): Likewise.
41458         * tests/test-sprintf-posix.h (test_function): Likewise.
41459         Reported by Eric Blake.
41460
41461 2007-05-23  Eric Blake  <ebb9@byu.net>
41462
41463         Fix fseeko/ftello on cygwin 1.5.24.
41464         * doc/functions/fseeko.texi (fseeko): Document the fix.
41465         * doc/functions/ftello.texi (ftello): Document the fix.
41466         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
41467         * doc/functions/stdout.text (stdout): New file.
41468         * doc/functions/stderr.text (stderr): New file.
41469         * doc/gnulib.texi (Function Substitutes): Use new files.
41470         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
41471         prior to 1.7.0.
41472         * tests/test-ftello.c (main): Likewise for ftello.
41473         * tests/test-fseeko.sh: New file.
41474         * tests/test-ftello.sh: New file.
41475         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
41476         with seekable stdin.
41477         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
41478         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
41479         (gl_REPLACE_FSEEKO): New macro.
41480         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
41481         * modules/fseeko (Files): Distribute fseeko.c.
41482         * modules/ftello (Files): Distribute ftello.c.
41483         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
41484         mode.
41485         * lib/ftello.c (rpl_ftello): New file.
41486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
41487         fseeko, ftello.
41488         (gl_STDIN_LARGE_OFFSET): New macro.
41489         * modules/stdio (Makefile.am): Perform the replacement.
41490         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
41491
41492 2007-05-23  Bruno Haible  <bruno@clisp.org>
41493
41494         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
41495         GNULIB_POSIXCHECK is defined.
41496
41497 2007-05-21  Bruno Haible  <bruno@clisp.org>
41498
41499         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
41500         Check also the output for NaN arguments. When cross-compiling, guess
41501         no on IRIX.
41502         * lib/vasnprintf.c: Update comments.
41503         * tests/test-vasnprintf-posix.c (strisnan): New function.
41504         (test_function): Use it.
41505         * tests/test-vasprintf-posix.c (strisnan): New function.
41506         (test_function): Use it.
41507         * tests/test-snprintf-posix.h (strisnan): New function.
41508         (test_function): Use it.
41509         * tests/test-sprintf-posix.h (strisnan): New function.
41510         (test_function): Use it.
41511         Reported by Eric Blake.
41512
41513 2007-05-20  Bruno Haible  <bruno@clisp.org>
41514
41515         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
41516         numbers that fails on BeOS.
41517         * doc/functions/frexpl.texi: Update.
41518
41519 2007-05-20  Jim Meyering  <jim@meyering.net>
41520
41521         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
41522         forced upon us by glibc-2.6.
41523
41524 2007-05-20  Bruno Haible  <bruno@clisp.org>
41525
41526         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
41527         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
41528         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
41529         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
41530         NEED_PRINTF_INFINITE.
41531         (is_infinitel): New function.
41532         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
41533         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
41534         gl_PREREQ_VASNPRINTF_INFINITE.
41535         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
41536         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41537         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
41538         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
41539         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
41540         gl_PREREQ_VASNPRINTF_INFINITE.
41541         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41542         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41543         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41545         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41546         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41547         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41548         * doc/functions/fprintf.texi: Update.
41549         * doc/functions/printf.texi: Update.
41550         * doc/functions/snprintf.texi: Update.
41551         * doc/functions/sprintf.texi: Update.
41552         * doc/functions/vfprintf.texi: Update.
41553         * doc/functions/vprintf.texi: Update.
41554         * doc/functions/vsnprintf.texi: Update.
41555         * doc/functions/vsprintf.texi: Update.
41556
41557 2007-05-20  Bruno Haible  <bruno@clisp.org>
41558
41559         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
41560         was not found in libc.
41561         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
41562
41563 2007-05-20  Bruno Haible  <bruno@clisp.org>
41564
41565         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41566         printed as "-nan" instead of "nan".
41567         * tests/test-vasprintf-posix.c (test_function): Likewise.
41568         * tests/test-snprintf-posix.h (test_function): Likewise.
41569         * tests/test-sprintf-posix.h (test_function): Likewise.
41570         Needed for HP-UX 11.
41571
41572 2007-05-20  Jim Meyering  <jim@meyering.net>
41573
41574         Fix buggy test for the fchownat-deref bug.
41575         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
41576         symlink required for the run-test.  Without it, this test would
41577         always declare that fchownat doesn't work, and client code would
41578         unnecessarily use the replacement function with fixed libc.
41579         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
41580         Reported by Greg Schafer.
41581
41582 2007-05-19  Bruno Haible  <bruno@clisp.org>
41583
41584         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
41585         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
41586         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
41587         Needed for IRIX 6.5 and Solaris 2.5.1.
41588
41589 2007-05-19  Bruno Haible  <bruno@clisp.org>
41590
41591         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
41592         (test_function): Skip tests involving -0.0 on platforms where
41593         -0.0 = 0.0.
41594         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
41595         (test_function): Skip tests involving -0.0 on platforms where
41596         -0.0 = 0.0.
41597         * tests/test-snprintf-posix.h (have_minus_zero): New function.
41598         (test_function): Skip tests involving -0.0 on platforms where
41599         -0.0 = 0.0.
41600         * tests/test-sprintf-posix.h (have_minus_zero): New function.
41601         (test_function): Skip tests involving -0.0 on platforms where
41602         -0.0 = 0.0.
41603         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
41604         tests.
41605         * tests/test-printf-posix.h (test_function): Likewise.
41606         * tests/test-printf-posix.output: Remove all -0.0 related results.
41607         Needed for IRIX 6.5.
41608
41609 2007-05-19  Bruno Haible  <bruno@clisp.org>
41610
41611         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
41612         printed as "nan0x7fffffff" instead of "nan".
41613         * tests/test-vasprintf-posix.c (test_function): Likewise.
41614         * tests/test-snprintf-posix.h (test_function): Likewise.
41615         * tests/test-sprintf-posix.h (test_function): Likewise.
41616         * tests/test-fprintf-posix.h (NaN): Remove macro.
41617         (test_function): Remove all NaN related tests.
41618         * tests/test-printf-posix.h (NaN): Remove macro.
41619         (test_function): Remove all NaN related tests.
41620         * tests/test-printf-posix.output: Remove all NaN related results.
41621         Needed for IRIX 6.5.
41622
41623 2007-05-19  Bruno Haible  <bruno@clisp.org>
41624
41625         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
41626         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
41627
41628 2007-05-19  Bruno Haible  <bruno@clisp.org>
41629
41630         * lib/float_.h: New file.
41631         * m4/float_h.m4: New file.
41632         * modules/float: New file.
41633         * modules/isnanl (Dependencies): Add float.
41634         * modules/isnanl-nolibm (Dependencies): Likewise.
41635         * modules/mathl (Dependencies): Likewise.
41636         * modules/printf-frexpl (Dependencies): Likewise.
41637         * modules/signbit (Dependencies): Likewise.
41638         * modules/vasnprintf (Dependencies): Likewise.
41639         * doc/headers/float.texi: Update.
41640
41641 2007-05-19  Jim Meyering  <jim@meyering.net>
41642
41643         * lib/utimens.c (gl_futimens): Rename from futimens,
41644         now that glibc-2.6 declares futimens.
41645         * lib/utimens.h: Likewise.
41646
41647 2007-05-19  Bruno Haible  <bruno@clisp.org>
41648
41649         Avoid test failures on mingw.
41650         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
41651         * tests/test-printf-posix.sh: Likewise.
41652         * tests/test-vfprintf-posix.sh: Likewise.
41653         * tests/test-vprintf-posix.sh: Likewise.
41654
41655 2007-05-19  Bruno Haible  <bruno@clisp.org>
41656
41657         Fix *printf result for NaN, Inf, -0.0 on mingw.
41658         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
41659         * lib/vasnprintf.c: Include math.h and isnan.h.
41660         (is_infinite_or_zero): New function.
41661         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
41662         values in the %f, %F, %e, %E, %g, %G directives.
41663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
41664         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41665         gl_PRINTF_INFINITE and test its result. Invoke
41666         gl_PREREQ_VASNPRINTF_INFINITE.
41667         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41668         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41670         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41671         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41672         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41673         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41674         * doc/functions/fprintf.texi: Update.
41675         * doc/functions/printf.texi: Update.
41676         * doc/functions/snprintf.texi: Update.
41677         * doc/functions/sprintf.texi: Update.
41678         * doc/functions/vfprintf.texi: Update.
41679         * doc/functions/vprintf.texi: Update.
41680         * doc/functions/vsnprintf.texi: Update.
41681         * doc/functions/vsprintf.texi: Update.
41682
41683 2007-05-19  Bruno Haible  <bruno@clisp.org>
41684
41685         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
41686         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
41687         Instead of multiplying with 10^k, set extra_zeroes to k.
41688         (scale10_round_long_double): Remove function.
41689
41690 2007-05-18  Bruno Haible  <bruno@clisp.org>
41691
41692         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
41693         introduced on 2007-05-06.
41694
41695 2007-05-18  Bruno Haible  <bruno@clisp.org>
41696
41697         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
41698         %g directives.
41699         * tests/test-vasprintf-posix.c (test_function): Likewise.
41700         * tests/test-snprintf-posix.h (test_function): Likewise.
41701         * tests/test-sprintf-posix.h (test_function): Likewise.
41702
41703 2007-05-18  Bruno Haible  <bruno@clisp.org>
41704
41705         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
41706         (strmatch): New function.
41707         (test_function): Test the %f directive on numbers of various exponents.
41708         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
41709         (strmatch): New function.
41710         (test_function): Test the %f directive on numbers of various exponents.
41711         * tests/test-snprintf-posix.h (strmatch): New function.
41712         (test_function): Test the %f directive on numbers of various exponents.
41713         * tests/test-sprintf-posix.h (strmatch): New function.
41714         (test_function): Test the %f directive on numbers of various exponents.
41715         * tests/test-snprintf-posix.c (SIZEOF): New macro.
41716         * tests/test-sprintf-posix.c (SIZEOF): New macro.
41717         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
41718         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
41719
41720 2007-05-18  Bruno Haible  <bruno@clisp.org>
41721
41722         Add support for 'long double' number output.
41723         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
41724         * lib/vasnprintf.c: Include math.h and float+.h.
41725         (mp_limb_t): New type.
41726         (GMP_LIMB_BITS): New macro.
41727         (mp_twolimb_t): New type.
41728         (GMP_TWOLIMB_BITS): New macro.
41729         (mpn_t): New type.
41730         (multiply, divide, convert_to_decimal, decode_long_double,
41731         scale10_round_long_double, scale10_round_decimal_long_double,
41732         floorlog10l): New functions.
41733         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
41734         for the %f, %F, %e, %E, %g, %G directives.
41735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
41736         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41737         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
41738         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
41739         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41740         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41741         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41742         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41743         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41744         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41745         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41746         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
41747         * modules/snprintf-posix (Depends-on): Likewise.
41748         * modules/sprintf-posix (Depends-on): Likewise.
41749         * modules/vasnprintf-posix (Depends-on): Likewise.
41750         * modules/vasprintf-posix (Depends-on): Likewise.
41751         * modules/vfprintf-posix (Depends-on): Likewise.
41752         * modules/vsnprintf-posix (Depends-on): Likewise.
41753         * modules/vsprintf-posix (Depends-on): Likewise.
41754         * modules/vasnprintf (Files): Add lib/float+.h.
41755         * doc/functions/fprintf.texi: Update.
41756         * doc/functions/printf.texi: Update.
41757         * doc/functions/snprintf.texi: Update.
41758         * doc/functions/sprintf.texi: Update.
41759         * doc/functions/vfprintf.texi: Update.
41760         * doc/functions/vprintf.texi: Update.
41761         * doc/functions/vsnprintf.texi: Update.
41762         * doc/functions/vsprintf.texi: Update.
41763
41764 2007-05-18  Bruno Haible  <bruno@clisp.org>
41765
41766         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
41767
41768 2007-05-18  Bruno Haible  <bruno@clisp.org>
41769
41770         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
41771         for printing 64-bit integers. Needed for mingw.
41772
41773 2007-05-18  Bruno Haible  <bruno@clisp.org>
41774
41775         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41776         gl_FUNC_FREXPL_WORKS.
41777         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
41778
41779 2007-05-18  Bruno Haible  <bruno@clisp.org>
41780
41781         * modules/frexpl-nolibm-tests: New file.
41782
41783         * modules/frexpl-nolibm: New file.
41784         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
41785
41786 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41787
41788         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
41789         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41790         GCC 4.2, which otherwise issues a lot of warnings.
41791         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
41792         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
41793         Likewise.
41794         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
41795         * modules/iconv_open (iconv.h): Likewise.
41796         * modules/locale (locale.h): Likewise.
41797         * modules/netinet_in (netinet/in.h): Likewise.
41798         * modules/sys_select (sys_select.h): Likewise.
41799         * modules/sys_socket (sys/socket.h): Likewise.
41800         * modules/sys_stat (sys/stat.h): Likewise.
41801         * modules/sysexits (sysexits.h): Likewise.
41802         * modules/unistd (unistd.h): Likewise.
41803
41804 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41805
41806         * modules/closein-tests (Makefile.am): Distribute
41807         `test-closein.sh'.
41808
41809 2007-05-17  Bruno Haible  <bruno@clisp.org>
41810
41811         * tests/test-printf-posix.output: Renamed from
41812         tests/test-fprintf-posix.out.
41813         * modules/fprintf-posix-tests: Update.
41814         * modules/printf-posix-tests: Update.
41815         * modules/vfprintf-posix-tests: Update.
41816         * modules/vprintf-posix-tests: Update.
41817         * tests/test-fprintf-posix.sh: Update.
41818         * tests/test-printf-posix.sh: Update.
41819         * tests/test-vfprintf-posix.sh: Update.
41820         * tests/test-vprintf-posix.sh: Update.
41821         Reported by Ralf Wildenhues.
41822
41823 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41824
41825         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
41826         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41827         GCC 4.2, which otherwise issues a lot of warnings.
41828         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
41829         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
41830         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
41831         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
41832         it should no longer be needed.
41833         * lib/string_.h: Likewise.
41834         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
41835         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
41836         * modules/inttypes (inttypes.h): Likewise.
41837         * modules/math (math.h): Likewise.
41838         * modules/search (search.h): Likewise.
41839         * modules/signal (signal.h): Likewise.
41840         * modules/stdint (stdint.h): Likewise.
41841         * modules/stdio (stdio.h): Likewise.
41842         * modules/stdlib (stdlib.h): Likewise.
41843         * modules/string (string.h): Likewise.
41844         * modules/sys_time (sys/time.h): Likewise.
41845         * modules/time (time.h): Likewise.
41846         * modules/wchar (wchar.h): Likewise.
41847         * modules/wctype (wtype.h): Likewise.
41848
41849 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41850
41851         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
41852
41853 2007-05-13  Bruno Haible  <bruno@clisp.org>
41854
41855         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
41856         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41857         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
41858         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41859         (gl_PREREQ_STRTOK_R): Don't require it here.
41860
41861 2007-05-13  Bruno Haible  <bruno@clisp.org>
41862
41863         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
41864         when used in C++ mode.
41865
41866 2007-05-12  Bruno Haible  <bruno@clisp.org>
41867
41868         * lib/linebuffer.h: Tweak doc.
41869         * lib/linebuffer.c: Likewise.
41870
41871 2007-05-12  James Youngman  <jay@gnu.org>
41872
41873         * lib/linebuffer.c (readlinebuffer_delim): New function,
41874         like readlinebuffer, but use a caller-specified delimiter.
41875         (readlinebuffer): Just call readlinebuffer_delim with '\n'
41876         as the delimiter.
41877         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
41878
41879 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41880
41881         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
41882         * modules/openat (Files): Remove openat-die.c.
41883         (Depends-on): Add openat-die.
41884         * modules/openat-die: New module.
41885
41886 2007-05-06  Bruno Haible  <bruno@clisp.org>
41887
41888         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
41889         Update with info about Cygwin.
41890         * doc/functions/fprintf.texi: Update.
41891         * doc/functions/printf.texi: Update.
41892         * doc/functions/snprintf.texi: Update.
41893         * doc/functions/sprintf.texi: Update.
41894         * doc/functions/vfprintf.texi: Update.
41895         * doc/functions/vprintf.texi: Update.
41896         * doc/functions/vsnprintf.texi: Update.
41897         * doc/functions/vsprintf.texi: Update.
41898         Reported by Eric Blake.
41899
41900 2007-05-06  Bruno Haible  <bruno@clisp.org>
41901
41902         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
41903         padding ourselves for the floating-point directives.
41904         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
41905         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
41906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41907         gl_PRINTF_FLAG_ZERO and test its result. Invoke
41908         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
41909         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41910         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41911         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41912         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41913         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41914         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41915         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41916         * tests/test-snprintf-posix.h (test_function): Also check the width
41917         and some flags in the %f directive.
41918         * tests/test-sprintf-posix.h (test_function): Likewise.
41919         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41920         * tests/test-vasprintf-posix.c (test_function): Likewise.
41921         * doc/functions/fprintf.texi: Update.
41922         * doc/functions/printf.texi: Update.
41923         * doc/functions/snprintf.texi: Update.
41924         * doc/functions/sprintf.texi: Update.
41925         * doc/functions/vfprintf.texi: Update.
41926         * doc/functions/vprintf.texi: Update.
41927         * doc/functions/vsnprintf.texi: Update.
41928         * doc/functions/vsprintf.texi: Update.
41929
41930 2007-05-06  Bruno Haible  <bruno@clisp.org>
41931
41932         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
41933         pass the ' flag character to sprintf or snprintf.
41934         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
41935         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
41936         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41937         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
41938         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
41939         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41940         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41942         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41943         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41944         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41945         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41946         * tests/test-snprintf-posix.h (test_function): Also check the grouping
41947         flag.
41948         * tests/test-sprintf-posix.h (test_function): Likewise.
41949         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41950         * tests/test-vasprintf-posix.c (test_function): Likewise.
41951         * doc/functions/fprintf.texi: Update.
41952         * doc/functions/printf.texi: Update.
41953         * doc/functions/snprintf.texi: Update.
41954         * doc/functions/sprintf.texi: Update.
41955         * doc/functions/vfprintf.texi: Update.
41956         * doc/functions/vprintf.texi: Update.
41957         * doc/functions/vsnprintf.texi: Update.
41958         * doc/functions/vsprintf.texi: Update.
41959
41960 2007-05-01  Bruno Haible  <bruno@clisp.org>
41961
41962         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
41963
41964 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
41965
41966         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
41967         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
41968
41969 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41970
41971         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
41972         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
41973         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
41974
41975 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
41976
41977         * lib/argp-help.c (struct hol_entry): New member `ord'.
41978         (HOL_ENTRY_PTRCMP): Use ord for comparison
41979         (hol_sort): Initialize ord.
41980
41981 2007-05-01  Bruno Haible  <bruno@clisp.org>
41982
41983         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
41984         Reported by Eric Blake.
41985         * doc/gnulib.texi (Function Substitutes): Update.
41986
41987 2007-05-01  Bruno Haible  <bruno@clisp.org>
41988
41989         * doc/functions.texi: Remove file, now redundant through
41990         doc/functions/*.texi.
41991
41992 2007-05-01  Bruno Haible  <bruno@clisp.org>
41993
41994         * modules/argp (Depends-on): Add sleep.
41995
41996 2007-05-01  Bruno Haible  <bruno@clisp.org>
41997
41998         * modules/sleep-tests: New file.
41999         * tests/test-sleep.c: New file.
42000
42001         * modules/sleep: New file.
42002         * lib/sleep.c: New file.
42003         * m4/sleep.m4: New file.
42004         * lib/unistd_.h (sleep): New declaration.
42005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
42006         HAVE_SLEEP.
42007         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
42008         * doc/functions/sleep.texi: Document the sleep module.
42009
42010 2007-05-01  Bruno Haible  <bruno@clisp.org>
42011
42012         * lib/sigprocmask.h: Remove file.
42013         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
42014         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
42015         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
42016         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
42017         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
42018         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
42019         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
42020         HAVE_SIGSET_T as a shell variable.
42021         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
42022         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
42023         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
42024         (Depends-on): Add signal. Remove verify.
42025         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
42026         (Include): Mention <signal.h> instead of sigprocmask.h.
42027         * NEWS: Mention the change.
42028         * lib/fatal-signal.c: Don't include sigprocmask.h.
42029
42030 2007-05-01  Bruno Haible  <bruno@clisp.org>
42031
42032         * modules/signal: New file.
42033         * lib/signal_.h: New file.
42034         * m4/signal_h.m4: New file.
42035
42036 2007-05-01  Bruno Haible  <bruno@clisp.org>
42037
42038         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
42039         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
42040         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
42041         HAVE_WCTYPE_CTMP_BUG into wctype.h.
42042
42043 2007-05-01  Bruno Haible  <bruno@clisp.org>
42044
42045         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
42046         configure time.
42047         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
42048         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
42049         * modules/sys_stat (Makefile.am): Substitute their values into
42050         sys/stat.h.
42051
42052 2007-05-01  Bruno Haible  <bruno@clisp.org>
42053
42054         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
42055         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
42056         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
42057
42058 2007-05-01  Bruno Haible  <bruno@clisp.org>
42059
42060         * doc/header/assert.texi: Undo last change: don't mention the gnulib
42061         'assert' module here.
42062
42063 2007-05-01  Bruno Haible  <bruno@clisp.org>
42064
42065         * doc/functions/*.texi: New files.
42066         * doc/functions/google-ranking.txt: New file.
42067         * doc/gnulib.texi (Function Substitutes): New chapter.
42068         (ctime, inet_ntoa): Remove sections.
42069         * doc/ctime.texi: Remove file.
42070         * doc/inet_ntoa.texi: Remove file.
42071         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
42072         dependencies.
42073         (%.info): New rule, specifying a --reference-limit.
42074
42075 2007-05-01  Bruno Haible  <bruno@clisp.org>
42076
42077         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
42078
42079 2007-05-01  Bruno Haible  <bruno@clisp.org>
42080
42081         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
42082         the portability of 'mkdir' to mingw systems.
42083
42084 2007-05-01  Bruno Haible  <bruno@clisp.org>
42085
42086         * doc/headers/google-ranking.txt: New file.
42087
42088 2007-04-30  Eric Blake  <ebb9@byu.net>
42089
42090         Prefer fseeko to fseek.
42091         * modules/getpass (Depends-on): Add fseeko.
42092         * lib/getpass.c (getpass): Use fseeko, not fseek.
42093
42094 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
42095
42096         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
42097         assumes the sorting is stable, while most qsort implementations
42098         are not.  Use argument addresses to ensure they never compare as
42099         equal.
42100
42101         * tests/test-argp-2.sh (usage-indent test): Fix output
42102         (func_compare): Restore diff options
42103         * tests/test-argp.c: Restore #include "progname.h"
42104
42105 2007-04-29  Bruno Haible  <bruno@clisp.org>
42106
42107         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
42108         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42109         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
42110         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42111         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
42112         (configure.ac): Define CHECK_SNPRINTF_POSIX.
42113         (TESTS, check_PROGRAMS): Add test-snprintf.
42114         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
42115         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
42116         (TESTS, check_PROGRAMS): Add test-vsnprintf.
42117         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
42118         assertions that fail on HP-UX, OSF/1, or IRIX.
42119         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
42120
42121 2007-04-29  Bruno Haible  <bruno@clisp.org>
42122
42123         * MODULES.html.sh (posix_functions): Remove 'contents'.
42124
42125 2007-04-29  Karl Berry  <karl@gnu.org>
42126
42127         * config/srclist.txt (gendocs_template_min): new entry.
42128
42129 2007-04-29  Bruno Haible  <bruno@clisp.org>
42130
42131         Work around fpurge bug on BSD systems.
42132         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
42133         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
42134         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
42135         fpurge to rpl_fpurge if the system already has this function.
42136         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
42137         the case where the system already has this function. Correct invariants
42138         on BSD systems.
42139         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
42140         BSD systems.
42141
42142 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42143
42144         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
42145         proposed by Sven Verdoolaege.
42146
42147         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
42148         options.
42149         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
42150         (usage and help tests): Update
42151
42152 2007-04-29  Bruno Haible  <bruno@clisp.org>
42153
42154         * tests/test-fflush.c (main): Use a file of size 17, not 10.
42155         Print more information in case of failure. Disable a test on BeOS.
42156
42157 2007-04-29  Bruno Haible  <bruno@clisp.org>
42158
42159         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
42160         This helps debugging on systems on which no gdb is available.
42161
42162 2007-04-29  Bruno Haible  <bruno@clisp.org>
42163
42164         * lib/freading.h: Improve comments.
42165         * lib/fwriting.h: Likewise.
42166         * tests/test-freading.c (main): Don't check freading immediately after
42167         repositioning. Needed for glibc.
42168
42169 2007-04-29  Bruno Haible  <bruno@clisp.org>
42170
42171         * lib/freading.c (freading): Trivial simplification.
42172
42173 2007-04-28  Bruno Haible  <bruno@clisp.org>
42174
42175         * tests/test-fwriting.c (main): Also test the interaction between
42176         fflush and fwriting.
42177         * modules/fwriting-tests (Depends-on): Add fflush.
42178
42179         * tests/test-freading.c (main): Also test the interaction between
42180         fflush and freading.
42181         * modules/freading-tests (Depends-on): Add fflush.
42182
42183 2007-04-28  Bruno Haible  <bruno@clisp.org>
42184
42185         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
42186         fseeko and ftello.
42187         Suggested by Eric Blake.
42188
42189 2007-04-28  Jim Meyering  <jim@meyering.net>
42190
42191         Avoid false-negative in gl_STDINT_H's C99 conformance test.
42192         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
42193         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
42194
42195 2007-04-27  Eric Blake  <ebb9@byu.net>
42196
42197         * doc/headers/assert.texi (assert.h): Document assert module use.
42198
42199 2007-04-27  Bruno Haible  <bruno@clisp.org>
42200
42201         * doc/headers/*.texi: New files.
42202         * doc/gnulib.texi (Header File Substitutes): New chapter.
42203         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
42204         dependencies.
42205         (standards.info ,standards.html, standards.dvi): Update dependencies.
42206         (mostlyclean, clean): New targets.
42207
42208 2007-04-27  Bruno Haible  <bruno@clisp.org>
42209
42210         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
42211         * modules/sysexits (Files, Makefile.am): Update.
42212
42213         * lib/sys_socket_.h: Renamed from lib/socket_.h.
42214         * modules/sys_socket (Files, Makefile.am): Update.
42215
42216         * lib/sys_stat_.h: Renamed from lib/stat_.h.
42217         * modules/sys_stat (Files, Makefile.am): Update.
42218
42219 2007-04-27  Eric Blake  <ebb9@byu.net>
42220
42221         * lib/freading.h: Improve comments.
42222         * lib/fwriting.h: Likewise.
42223         * lib/fflush.c: Likewise.
42224
42225         Fix closein for mingw.
42226         * modules/closein-tests: Add tests for closein.
42227         * tests/test-closein.c: New file.
42228         * tests/test-closein.sh: Likewise.
42229         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
42230         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
42231
42232 2007-04-27  Bruno Haible  <bruno@clisp.org>
42233
42234         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
42235         version is < 6.
42236         * lib/math_.h [__DECC]: Likewise.
42237         * lib/stdio_.h [__DECC]: Likewise.
42238         * lib/stdlib_.h [__DECC]: Likewise.
42239         * lib/string_.h [__DECC]: Likewise.
42240         * lib/time_.h [__DECC]: Likewise.
42241         * lib/wchar_.h [__DECC]: Likewise.
42242         * lib/wctype_.h [__DECC]: Likewise.
42243
42244 2007-04-27  Bruno Haible  <bruno@clisp.org>
42245
42246         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
42247
42248 2007-04-27  Bruno Haible  <bruno@clisp.org>
42249
42250         * lib/fflush.c: Add comments.
42251         * modules/fpurge-tests (Depends-on): Add fflush.
42252         * modules/freadable-tests (Depends-on): Likewise.
42253         * modules/fwritable-tests (Depends-on): Likewise.
42254
42255 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
42256
42257         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
42258         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
42259         Report by Bruno Haible <bruno@clisp.org>.
42260
42261 2007-04-26  Eric Blake  <ebb9@byu.net>
42262
42263         Fix fflush on mingw.
42264         * modules/fflush (Depends-on): Add freading.
42265         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
42266         but unread data.
42267
42268 2007-04-26  Eric Blake  <ebb9@byu.net>
42269         and Bruno Haible  <bruno@clisp.org>
42270
42271         Implement freading and fwriting.
42272         * lib/freading.c: New file.
42273         * lib/freading.h: Likewise.
42274         * m4/freading.m4: Likewise.
42275         * modules/freading: Likewise.
42276         * modules/freading-tests: Likewise.
42277         * tests/test-freading.c: Likewise.
42278         * lib/fwriting.c: New file.
42279         * lib/fwriting.h: Likewise.
42280         * m4/fwriting.m4: Likewise.
42281         * modules/fwriting: Likewise.
42282         * modules/fwriting-tests: Likewise.
42283         * tests/test-fwriting.c: Likewise.
42284         * MODULES.html.sh (File stream based Input/Output): Mention them.
42285
42286 2007-04-26  Bruno Haible  <bruno@clisp.org>
42287
42288         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
42289         'long' when we assume it.
42290         Suggested by Eric Blake.
42291
42292 2007-04-26  Bruno Haible  <bruno@clisp.org>
42293
42294         Ensure fseeko, ftello are declared on glibc systems.
42295         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
42296         * modules/fseeko (configure.ac-early): Likewise.
42297         * modules/ftello (configure.ac-early): Likewise.
42298         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
42299         AC_FUNC_FSEEKO for this.
42300         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
42301         (gl_CHECK_FSEEKO): Remove macro.
42302
42303 2007-04-26  Bruno Haible  <bruno@clisp.org>
42304
42305         * tests/test-fflush.c (main): Also check the ftell result after
42306         fflush and fseek/fseeko.
42307         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
42308         file descriptor position cache in the stream.
42309         * lib/fseeko.c (rpl_fseeko): Likewise.
42310
42311 2007-04-26  Bruno Haible  <bruno@clisp.org>
42312
42313         * modules/fflush-tests (Depends-on): Add fseeko.
42314
42315 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
42316             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42317
42318         * lib/argz_.h: ensure error_t definition is obtained in same
42319         mechanism system argz.h would have.
42320         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
42321         argz facilities are known bad.  Err on the side of caution if
42322         cross-compiling.
42323
42324 2007-04-25  Eric Blake  <ebb9@byu.net>
42325
42326         * lib/fpurge.c (includes): Use stdlib.h for free.
42327         * tests/test-fflush.c (main): Also test fflush-fseeko.
42328
42329 2007-04-25  Bruno Haible  <bruno@clisp.org>
42330
42331         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
42332         * lib/fseeko.c: New file.
42333         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
42334         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
42335         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
42336         gl_FUNC_FSEEKO.
42337         (gl_FUNC_FSEEKO): Invoke it.
42338         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
42339         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
42340         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
42341
42342 2007-04-25  Bruno Haible  <bruno@clisp.org>
42343
42344         * modules/fflush (Depends-on): Add ftello.
42345
42346 2007-04-25  Bruno Haible  <bruno@clisp.org>
42347
42348         * modules/ftello-tests: New file.
42349         * tests/test-ftello.c: New file.
42350
42351         * modules/ftello: New file.
42352         * m4/ftello.m4: New file.
42353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
42354         HAVE_FTELLO.
42355         * lib/stdio_.h (ftello): New declaration.
42356         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
42357         HAVE_FTELLO.
42358
42359 2007-04-25  Bruno Haible  <bruno@clisp.org>
42360
42361         * modules/fseeko-tests: New file.
42362         * tests/test-fseeko.c: New file.
42363
42364         * modules/fseeko: New file.
42365         * m4/fseeko.m4: New file.
42366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
42367         HAVE_FSEEKO.
42368         * lib/stdio_.h (fseeko): New declaration.
42369         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
42370         HAVE_FSEEKO.
42371
42372 2007-04-25  Bruno Haible  <bruno@clisp.org>
42373
42374         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
42375
42376 2007-04-25  Bruno Haible  <bruno@clisp.org>
42377
42378         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
42379         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
42380         * tests/test-unistd.c: Likewise.
42381         * tests/test-fcntl.c: Likewise.
42382
42383 2007-04-23  Eric Blake  <ebb9@byu.net>
42384
42385         * lib/fflush.c: Fix missing include.
42386         Reported by Bruno Haible.
42387
42388 2007-04-23  Bruno Haible  <bruno@clisp.org>
42389
42390         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
42391         Reported by Eric Blake.
42392
42393 2007-04-23  Bruno Haible  <bruno@clisp.org>
42394
42395         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
42396
42397 2007-04-23  Bruno Haible  <bruno@clisp.org>
42398
42399         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
42400
42401 2007-04-23  Bruno Haible  <bruno@clisp.org>
42402
42403         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
42404         Needed on HP-UX 11.
42405
42406 2007-04-16  Eric Blake  <ebb9@byu.net>
42407
42408         Make fflush rely on fpurge.
42409         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
42410         open coding all variants.
42411         * modules/fflush (Depends-on): Add fpurge and unistd.
42412         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
42413         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
42414
42415         Fix --with-tests compilation on cygwin.
42416         * modules/argmatch-tests (Makefile.am): List gnulib library first
42417         in LDADD.
42418         * modules/argp-tests (Makefile.am): Likewise.
42419         * modules/array-list-tests (Makefile.am): Likewise.
42420         * modules/array-oset-tests (Makefile.am): Likewise.
42421         * modules/avltree-list-tests (Makefile.am): Likewise.
42422         * modules/avltree-oset-tests (Makefile.am): Likewise.
42423         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42424         * modules/carray-list-tests (Makefile.am): Likewise.
42425         * modules/dirname-tests (Makefile.am): Likewise.
42426         * modules/frexp-tests (Makefile.am): Likewise.
42427         * modules/isnanl-tests (Makefile.am): Likewise.
42428         * modules/linked-list-tests (Makefile.am): Likewise.
42429         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42430         * modules/lock-tests (Makefile.am): Likewise.
42431         * modules/rbtree-list-tests (Makefile.am): Likewise.
42432         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42433         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42434         * modules/tls-tests (Makefile.am): Likewise.
42435         * modules/tsearch-tests (Makefile.am): Likewise.
42436         * modules/xvasprintf-tests (Makefile.am): Likewise.
42437
42438         Fix fpurge for cygwin.
42439         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
42440         value.
42441         * modules/fpurge-tests (Depends-on): Clean up trash.
42442
42443 2007-04-16  Simon Josefsson  <simon@josefsson.org>
42444
42445         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
42446
42447         * m4/autobuild.m4: Re-indent.
42448
42449 2007-04-13  Bruno Haible  <bruno@clisp.org>
42450
42451         * modules/fpurge-tests: New file.
42452         * tests/test-fpurge.c: New file.
42453
42454         * modules/fpurge: New file.
42455         * lib/fpurge.h: New file.
42456         * lib/fpurge.c: New file.
42457         * m4/fpurge.m4: New file.
42458
42459 2007-04-13  Bruno Haible  <bruno@clisp.org>
42460
42461         * modules/fbufmode-tests: New file.
42462         * tests/test-fbufmode.c: New file.
42463
42464         * modules/fbufmode: New file.
42465         * lib/fbufmode.h: New file.
42466         * lib/fbufmode.c: New file.
42467         * m4/fbufmode.m4: New file.
42468
42469 2007-04-13  Bruno Haible  <bruno@clisp.org>
42470
42471         * modules/fwritable-tests: New file.
42472         * tests/test-fwritable.c: New file.
42473
42474         * modules/fwritable: New file.
42475         * lib/fwritable.h: New file.
42476         * lib/fwritable.c: New file.
42477         * m4/fwritable.m4: New file.
42478
42479 2007-04-13  Bruno Haible  <bruno@clisp.org>
42480
42481         * modules/freadable-tests: New file.
42482         * tests/test-freadable.c: New file.
42483
42484         * modules/freadable: New file.
42485         * lib/freadable.h: New file.
42486         * lib/freadable.c: New file.
42487         * m4/freadable.m4: New file.
42488
42489 2007-04-13  Bruno Haible  <bruno@clisp.org>
42490
42491         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
42492         MOSTLYCLEANFILES.
42493
42494 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
42495
42496         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
42497         gzip bootstrap.conf to avoid dragging in i18n machinery.
42498         (gnulib_tool_option): Use it.
42499
42500 2007-04-13  Bruno Haible  <bruno@clisp.org>
42501
42502         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
42503         %F directives.
42504         * tests/test-vasprintf-posix.c (test_function): Likewise.
42505         * tests/test-snprintf-posix.h (test_function): Likewise.
42506         * tests/test-sprintf-posix.h (test_function): Likewise.
42507         * tests/test-fprintf-posix.h (test_function): Likewise.
42508         * tests/test-printf-posix.h (test_function): Likewise.
42509         * tests/test-fprintf-posix.out: Likewise.
42510
42511 2007-04-13  Bruno Haible  <bruno@clisp.org>
42512
42513         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
42514         * modules/tls-tests (configure.ac): Likewise.
42515         Reported by Arto C. Nirkko <anirkko@insel.ch>.
42516
42517 2007-04-13  Bruno Haible  <bruno@clisp.org>
42518
42519         * lib/tls.c (glthread_tls_get): Fix return type.
42520         Patch by Arto C. Nirkko <anirkko@insel.ch>.
42521
42522 2007-04-12  Eric Blake  <ebb9@byu.net>
42523
42524         * modules/gettime (Depends-on): Remove gettime.
42525         Reported by Dmitry V. Levin.
42526
42527 2007-04-12  Bruno Haible  <bruno@clisp.org>
42528
42529         * modules/fflush (Include): Mention <stdio.h>.
42530         * modules/strtoimax (Include): Mention <inttypes.h>.
42531         * modules/strtoumax (Include): Likewise.
42532
42533 2007-04-12  Eric Blake  <ebb9@byu.net>
42534
42535         * .cvsignore: New file.
42536         * .gitignore: Likewise.
42537
42538 2007-04-12  Bruno Haible  <bruno@clisp.org>
42539
42540         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
42541         not before, since $(LDADD) often contains libgnu.a.
42542         * modules/striconv-tests (test_striconv_LDADD): Likewise.
42543         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
42544         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
42545         Needed on Cygwin.
42546
42547 2007-04-12  Eric Blake  <ebb9@byu.net>
42548
42549         Work around glibc's failure to flush stdin on fclose.
42550         * lib/closein.c (close_stdin): Flush stdin before closing.
42551
42552         Work around glibc's failure to reset seekable stdin on exit.
42553         * modules/closein: New module.
42554         * lib/closein.c: New file.
42555         * lib/closein.h: Likewise.
42556         * m4/closein.m4: Likewise.
42557         * MODULES.html.sh (File stream based Input/Output): Document it.
42558
42559 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42560
42561         * gnulib-tool: Rename generated 'autobuild' script to
42562         'do-autobuild' in --create-megatestdir output.
42563
42564         * doc/gnulib.texi (Build robot for gnulib): Fix.
42565
42566 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42567
42568         * modules/sysexits (Depends-on): Add absolute-header.
42569
42570 2007-04-12  Eric Blake  <ebb9@byu.net>
42571
42572         No need to preserve errno on success.
42573         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
42574         Reported by Bruno Haible.
42575
42576 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42577
42578         * MODULES.html.sh (Support for maintaining and releasing
42579         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
42580
42581 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42582
42583         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
42584
42585 2007-04-12  Simon Josefsson  <simon@josefsson.org>
42586
42587         * modules/autobuild: New module.
42588
42589         * m4/autobuild.m4: New file.
42590
42591 2007-04-11  Bruno Haible  <bruno@clisp.org>
42592
42593         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
42594         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
42595         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
42596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
42597         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42598         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42599         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42600         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42601         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42602         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42603         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
42604         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42605         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
42607         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42608         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42609         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
42610         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42611         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42612         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
42613         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42614         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42615         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
42616         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42617         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42618         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
42619         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
42620         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
42621         Reported by Eric Blake.
42622
42623 2007-04-11  Bruno Haible  <bruno@clisp.org>
42624
42625         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
42626
42627 2007-04-10  Bruno Haible  <bruno@clisp.org>
42628
42629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
42630         for NaN and Infinity. Needed on FreeBSD 6.1.
42631         * tests/test-vasnprintf-posix.c (test_function): Undo last change
42632         regarding results for "%010a" of Infinity and NaN.
42633         * tests/test-vasprintf-posix.c (test_function): Likewise.
42634         * tests/test-snprintf-posix.h (test_function): Likewise.
42635         * tests/test-sprintf-posix.h (test_function): Likewise.
42636         * tests/test-fprintf-posix.h (test_function): Likewise.
42637         * tests/test-printf-posix.h (test_function): Likewise.
42638         * tests/test-fprintf-posix.out: Likewise.
42639
42640 2007-04-10  Bruno Haible  <bruno@clisp.org>
42641
42642         * modules/locale-tests: New file.
42643         * tests/test-locale.c: New file.
42644
42645         * modules/locale: New file.
42646         * lib/locale_.h: New file.
42647         * m4/locale_h.m4: New file.
42648
42649 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
42650             Bruno Haible  <bruno@clisp.org>
42651
42652         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
42653         be determined, test for availability of the copysignf, copysign,
42654         copysignl functions.
42655         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
42656         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
42657         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
42658
42659 2007-04-09  Eric Blake  <ebb9@byu.net>
42660
42661         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
42662         * modules/stdio (Makefile.am): Support fflush.
42663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42664         * modules/fflush: New file.
42665         * lib/fflush.c: Likewise.
42666         * m4/fflush.m4: Likewise.
42667         * modules/fflush-tests: New test.
42668         * tests/test-fflush.c: Likewise.
42669         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
42670
42671 2007-04-06  Bruno Haible  <bruno@clisp.org>
42672
42673         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
42674         (VASNPRINTF): Use signbit for faster determination whether to print a
42675         minus sign.
42676         * modules/vasnprintf (Files): Remove lib/float+.h.
42677         * modules/fprintf-posix (Depends-on): Add signbit.
42678         * modules/snprintf-posix (Depends-on): Likewise.
42679         * modules/sprintf-posix (Depends-on): Likewise.
42680         * modules/vasnprintf-posix (Depends-on): Likewise.
42681         * modules/vasprintf-posix (Depends-on): Likewise.
42682         * modules/vfprintf-posix (Depends-on): Likewise.
42683         * modules/vsnprintf-posix (Depends-on): Likewise.
42684         * modules/vsprintf-posix (Depends-on): Likewise.
42685
42686 2007-04-06  Bruno Haible  <bruno@clisp.org>
42687
42688         * tests/test-frexp.c (main): Test also the sign bit of zero results.
42689         * tests/test-frexpl.c (main): Likewise.
42690         * tests/test-ldexpl.c (main): Likewise.
42691         * modules/frexp-tests (Depends-on): Add signbit.
42692         * modules/frexpl-tests (Depdends-on): Likewise.
42693         * modules/ldexpl-tests (Depdends-on): Likewise.
42694
42695 2007-04-06  Bruno Haible  <bruno@clisp.org>
42696
42697         * modules/signbit-tests: New file.
42698         * tests/test-signbit.c: New file.
42699
42700         * modules/signbit: New file.
42701         * lib/signbitf.c: New file.
42702         * lib/signbitd.c: New file.
42703         * lib/signbitl.c: New file.
42704         * m4/signbit.m4: New file.
42705         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
42706         (signbit): New macro.
42707         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
42708         REPLACE_SIGNBIT.
42709         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
42710         REPLACE_FREXPL into math.h.
42711
42712 2007-04-06  Bruno Haible  <bruno@clisp.org>
42713
42714         * modules/isnanf-nolibm-tests: New file.
42715         * tests/test-isnanf.c: New file.
42716
42717         * modules/isnanf-nolibm: New file.
42718         * lib/isnanf.h: New file.
42719         * lib/isnanf.c: New file.
42720         * lib/isnan.c: Consider the USE_FLOAT macro.
42721         * m4/isnanf.m4: New file.
42722
42723 2007-04-06  Bruno Haible  <bruno@clisp.org>
42724
42725         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
42726         (Link): New section.
42727
42728         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
42729
42730 2007-04-06  Bruno Haible  <bruno@clisp.org>
42731
42732         Assume the 'long double' type.
42733         * m4/longdouble.m4: Remove file.
42734         * config/srclist.txt: Don't mention longdouble.m4.
42735         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
42736         * lib/float+.h: Likewise.
42737         * lib/frexp.c: Likewise.
42738         * lib/printf-args.h: Likewise.
42739         * lib/printf-args.c: Likewise.
42740         * lib/printf-frexp.c: Likewise.
42741         * lib/printf-parse.c: Likewise.
42742         * lib/vasnprintf.c: Likewise.
42743         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
42744         * m4/intl.m4: Likewise.
42745         * m4/isnanl.m4: Likewise.
42746         * m4/printf.m4: Likewise.
42747         * m4/printf-frexpl.m4: Likewise.
42748         * m4/vasnprintf.m4: Likewise.
42749         * modules/allocsa (Files): Remove m4/longdouble.m4.
42750         * modules/gettext (Files): Likewise.
42751         * modules/relocatable-prog-wrapper (Files): Likewise.
42752         * modules/vasnprintf (Files): Likewise.
42753         * modules/isnanl (Files): Likewise.
42754         (Include): Simplify.
42755         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
42756         (Include): Simplify.
42757         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
42758         (Include): Simplify.
42759         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
42760         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42761         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
42762         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42763         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42764         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42765         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
42766         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42767         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42768         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42769         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
42770         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42771         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
42772         * tests/test-isnanl.c: Likewise.
42773         * tests/test-snprintf-posix.h: Likewise.
42774         * tests/test-sprintf-posix.h: Likewise.
42775         * tests/test-vasnprintf-posix.c: Likewise.
42776         * tests/test-vasnprintf-posix2.c: Likewise.
42777         * tests/test-vasprintf-posix.c: Likewise.
42778
42779 2007-04-06  Bruno Haible  <bruno@clisp.org>
42780
42781         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
42782         * lib/math_.h [__DECC]: Include the overridden include file through
42783         #include_next, outside the double-inclusion guard.
42784         * lib/stdio_.h [__DECC]: Likewise.
42785         * lib/stdlib_.h [__DECC]: Likewise.
42786         * lib/string_.h [__DECC]: Likewise.
42787         * lib/time_.h [__DECC]: Likewise.
42788         * lib/wchar_.h [__DECC]: Likewise.
42789         * lib/wctype_.h [__DECC]: Likewise.
42790         * lib/inttypes_.h [__DECC]: Likewise.
42791         Reported by Albert Chin <china@thewrittenword.com> in
42792         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
42793
42794 2007-04-04  Eric Blake  <ebb9@byu.net>
42795
42796         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
42797         1.5.x.
42798
42799 2007-04-04  Bruno Haible  <bruno@clisp.org>
42800
42801         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
42802         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
42803
42804 2007-04-04  Bruno Haible  <bruno@clisp.org>
42805
42806         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
42807         results for "%010a" of Infinity and NaN.
42808         * tests/test-vasprintf-posix.c (test_function): Likewise.
42809         * tests/test-snprintf-posix.h (test_function): Likewise.
42810         * tests/test-sprintf-posix.h (test_function): Likewise.
42811         * tests/test-fprintf-posix.h (test_function): Remove these tests.
42812         * tests/test-printf-posix.h (test_function): Likewise.
42813         * tests/test-fprintf-posix.out: Update.
42814         Needed for FreeBSD 6.1.
42815
42816 2007-04-04  Bruno Haible  <bruno@clisp.org>
42817
42818         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
42819         directly used by the gnulib modules nor by gnulib-tool.
42820
42821 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
42822
42823         * DEPENDENCIES: Give overall description of version dependency
42824         desirability.  Use more-typical names for apps.
42825         Add shell, coreutils, diffutils, grep, tar, gzip.
42826
42827 2007-04-04  Simon Josefsson  <simon@josefsson.org>
42828
42829         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
42830
42831 2007-04-04  Karl Berry  <karl@gnu.org>
42832
42833         * MODULES.html.sh (func_module): missing '.
42834
42835 2007-04-03  Bruno Haible  <bruno@clisp.org>
42836
42837         * modules/argmatch-tests (Makefile.am): New variable
42838         test_argmatch_LDADD.
42839         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
42840         * modules/array-list-tests (Makefile.am): New variable
42841         test_array_list_LDADD.
42842         * modules/array-oset-tests (Makefile.am): New variable
42843         test_array_oset_LDADD.
42844         * modules/avltree-list-tests (Makefile.am): New variable
42845         test_avltree_list_LDADD.
42846         * modules/avltree-oset-tests (Makefile.am): New variable
42847         test_avltree_oset_LDADD.
42848         * modules/avltreehash-list-tests (Makefile.am): New variable
42849         test_avltreehash_list_LDADD.
42850         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
42851         test_canonicalize_lgpl_LDADD.
42852         * modules/carray-list-tests (Makefile.am): New variable
42853         test_carray_list_LDADD.
42854         * modules/dirname-tests (Makefile.am): New variable
42855         test_dirname_LDADD.
42856         * modules/linked-list-tests (Makefile.am): New variable
42857         test_linked_list_LDADD.
42858         * modules/linkedhash-list-tests (Makefile.am): New variable
42859         test_linkedhash_list_LDADD.
42860         * modules/rbtree-list-tests (Makefile.am): New variable
42861         test_rbtree_list_LDADD.
42862         * modules/rbtree-oset-tests (Makefile.am): New variable
42863         test_rbtree_oset_LDADD.
42864         * modules/rbtreehash-list-tests (Makefile.am): New variable
42865         test_rbtreehash_list_LDADD.
42866         * modules/xvasprintf-tests (Makefile.am): New variable
42867         test_xvasprintf_LDADD.
42868         Reported by Eric Blake.
42869
42870 2007-04-03  Eric Blake  <ebb9@byu.net>
42871
42872         * DEPENDENCIES: Weaken m4 requirements.
42873
42874 2007-04-03  Bruno Haible  <bruno@clisp.org>
42875
42876         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
42877         * modules/isnanl-tests (configure.ac): Likewise.
42878
42879 2007-04-03  Ben Pfaff  <blp@gnu.org>
42880
42881         * modules/iconv_open: Add $(srcdir)/ to source directory
42882         references in Makefile fragments that call gperf, to fix VPATH
42883         builds.
42884
42885 2007-04-03  Bruno Haible  <bruno@clisp.org>
42886
42887         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
42888         * lib/ldexpl.c: Undo last change.
42889
42890 2007-04-03  Bruno Haible  <bruno@clisp.org>
42891
42892         * modules/printf-frexpl (Depends-on): Undo last change.
42893         (Files): Add m4/ldexpl.m4.
42894
42895 2007-04-03  Bruno Haible  <bruno@clisp.org>
42896
42897         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
42898         * modules/isnanl (Link): New section.
42899
42900         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
42901         * modules/frexp (Link): New section.
42902
42903         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
42904         * modules/frexpl (Link): New section.
42905
42906         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
42907         * modules/ldexpl (Link): New section.
42908
42909 2007-04-03  Bruno Haible  <bruno@clisp.org>
42910
42911         * modules/TEMPLATE-EXTENDED: New file.
42912         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
42913
42914 2007-04-03  Bruno Haible  <bruno@clisp.org>
42915
42916         * DEPENDENCIES: New file.
42917         Suggested by Simon Josefsson.
42918
42919 2007-04-03  Bruno Haible  <bruno@clisp.org>
42920
42921         * doc/gnulib.texi: Escape @.
42922
42923 2007-04-03  James Youngman  <jay@gnu.org>
42924         and Paul Eggert  <eggert@cs.ucla.edu>
42925
42926         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
42927         birthtime on all systems that have birthtime, not just those which
42928         use st_birthtimensec rather than st_birthtim.  Putting zero in
42929         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
42930         that the birth time is not available for files on an NFS mount.
42931
42932 2007-04-03  Simon Josefsson  <simon@josefsson.org>
42933
42934         * modules/memxor: Move back from crypto/, suggested by Bruno.
42935         * modules/crypto/hmac-sha1: Fix memxor dependency.
42936
42937         * modules/crypto/gc: Moved from ../.
42938
42939 2007-04-02  Eric Blake  <ebb9@byu.net>
42940
42941         * lib/ldexpl.c (includes): Avoid libm.
42942
42943         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
42944
42945 2007-04-02  Bruno Haible  <bruno@clisp.org>
42946
42947         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
42948         on IRIX.
42949
42950 2007-04-02  Bruno Haible  <bruno@clisp.org>
42951
42952         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
42953         x86 or x86_64 platforms running MacOS X.
42954         Reported by Ryan Schmidt <@ryandesign.com>.
42955
42956 2007-04-02  Bruno Haible  <bruno@clisp.org>
42957
42958         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
42959         i386.
42960
42961 2007-04-01  Simon Josefsson  <simon@josefsson.org>
42962
42963         * modules/crypto/arcfour: Moved from ../.
42964         * modules/crypto/arcfour-tests: Moved from ../.
42965         * modules/crypto/arctwo: Moved from ../.
42966         * modules/crypto/arctwo-tests: Moved from ../.
42967         * modules/crypto/des: Moved from ../.
42968         * modules/crypto/des-tests: Moved from ../.
42969         * modules/crypto/gc-arcfour: Moved from ../.
42970         * modules/crypto/gc-arcfour-tests: Moved from ../.
42971         * modules/crypto/gc-arctwo: Moved from ../.
42972         * modules/crypto/gc-arctwo-tests: Moved from ../.
42973         * modules/crypto/gc-des: Moved from ../.
42974         * modules/crypto/gc-des-tests: Moved from ../.
42975         * modules/crypto/gc-hmac-md5: Moved from ../.
42976         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
42977         * modules/crypto/gc-hmac-sha1: Moved from ../.
42978         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
42979         * modules/crypto/gc-md2: Moved from ../.
42980         * modules/crypto/gc-md2-tests: Moved from ../.
42981         * modules/crypto/gc-md4: Moved from ../.
42982         * modules/crypto/gc-md4-tests: Moved from ../.
42983         * modules/crypto/gc-md5: Moved from ../.
42984         * modules/crypto/gc-md5-tests: Moved from ../.
42985         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
42986         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
42987         * modules/crypto/gc-random: Moved from ../.
42988         * modules/crypto/gc-rijndael: Moved from ../.
42989         * modules/crypto/gc-rijndael-tests: Moved from ../.
42990         * modules/crypto/gc-sha1: Moved from ../.
42991         * modules/crypto/gc-sha1-tests: Moved from ../.
42992         * modules/crypto/gc-tests: Moved from ../.
42993         * modules/crypto/hmac-md5: Moved from ../.
42994         * modules/crypto/hmac-md5-tests: Moved from ../.
42995         * modules/crypto/hmac-sha1: Moved from ../.
42996         * modules/crypto/hmac-sha1-tests: Moved from ../.
42997         * modules/crypto/md2: Moved from ../.
42998         * modules/crypto/md2-tests: Moved from ../.
42999         * modules/crypto/md4: Moved from ../.
43000         * modules/crypto/md4-tests: Moved from ../.
43001         * modules/crypto/md5: Moved from ../.
43002         * modules/crypto/md5-tests: Moved from ../.
43003         * modules/crypto/memxor: Moved from ../.
43004         * modules/crypto/rijndael: Moved from ../.
43005         * modules/crypto/rijndael-tests: Moved from ../.
43006         * modules/crypto/sha1: Moved from ../.
43007
43008 2007-03-30  James Youngman  <jay@gnu.org>
43009
43010         * tests/test-stat-time.c (prepare_test): use chmod() rather than
43011         rename() to change the ctime of a file (because ctime is unaffected
43012         by rename on jfs2 on AIX 5.1).
43013         (main): Start by doing cleanup, in case a previous run failed leaving
43014         test files behind.
43015
43016 2007-03-31  Bruno Haible  <bruno@clisp.org>
43017
43018         Support old proprietary implementations of iconv.
43019         * modules/iconv_open: New file.
43020         * lib/iconv_.h: New file.
43021         * m4/iconv_h.m4: New file.
43022         * lib/iconv_open.c: New file.
43023         * lib/iconv_open-aix.gperf: New file.
43024         * lib/iconv_open-hpux.gperf: New file.
43025         * lib/iconv_open-irix.gperf: New file.
43026         * lib/iconv_open-osf.gperf: New file.
43027         * m4/iconv_open.m4: New file.
43028         * modules/linebreak (Depends-on): Add iconv_open.
43029         * modules/striconv (Depends-on): Likewise.
43030         * modules/striconveh (Depends-on): Likewise.
43031         * modules/unicodeio (Depends-on): Likewise.
43032         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
43033         (iconv_t)(-1).
43034         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
43035         conversion if cd is (iconv_t)(-1).
43036         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
43037         is not possible.
43038
43039 2007-03-31  Bruno Haible  <bruno@clisp.org>
43040
43041         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43042         work on Solaris either. Protect also second use of "autodetect_jp".
43043
43044 2007-03-31  Bruno Haible  <bruno@clisp.org>
43045
43046         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
43047         the function is not present.
43048
43049 2007-03-31  Bruno Haible  <bruno@clisp.org>
43050
43051         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
43052         the function is not present.
43053
43054 2007-03-31  Bruno Haible  <bruno@clisp.org>
43055
43056         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
43057         a bug in HP-UX iconv_open().
43058
43059 2007-03-31  Bruno Haible  <bruno@clisp.org>
43060
43061         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
43062         (Mathematics <math.h>): New section, add fpieee.
43063         (Input/output <stdio.h>): Add fseterr.
43064         (Mathematics <math.h>): New section, add printf-frexp.
43065         (Container data structures): Add sublist.
43066         (Core language properties): Add fpucw, inline.
43067         (Functions for greatest-width integer types <inttypes.h>): Add
43068         imaxabs, imaxdiv, inttypes.
43069         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
43070         isnanl-nolibm, ldexp.
43071         (Mathematics <math.h>): New section, add printf-frexpl.
43072         (Support for systems lacking POSIX:2001): Add fprintf-posix,
43073         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
43074         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
43075         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
43076         (Unicode string functions): Add unistr/u*-mbtoucr.
43077         (Java): Add javacomp-script, javaexec-script.
43078         (C#): Add csharpcomp-script, csharpexec-script.
43079         (Support for building libraries and executables): Add havelib,
43080         relocatable-*.
43081         (Support for maintaining and releasing projects): Renamed from
43082         'Support for maintaining and release projects'. Add announce-gen.
43083
43084 2007-03-31  Bruno Haible  <bruno@clisp.org>
43085
43086         * README: Talk primarily about git.
43087         (git and CVS): Renamed from CVS.
43088         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
43089         gnulib is available through git.
43090         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
43091
43092 2007-03-30  Bruno Haible  <bruno@clisp.org>
43093
43094         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
43095         * lib/poll_.h: Likewise.
43096         * lib/stat_.h: Likewise.
43097         * lib/sys_time_.h: Likewise.
43098         * lib/sysexit_.h: Likewise.
43099         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
43100         * lib/stdbool_.h: Likewise.
43101         * lib/byteswap_.h: Add double-inclusion guard.
43102
43103 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
43104
43105         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
43106
43107 2007-03-30  Karl Berry  <karl@gnu.org>
43108
43109         * config/srclist-update: double space after USA in the license
43110         substitution, since that's how it's usually (?) written.
43111
43112 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43113
43114         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
43115         reported by Bruno Haible.
43116
43117 2007-03-29  Bruno Haible  <bruno@clisp.org>
43118
43119         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
43120         a bug in AIX iconv().
43121
43122 2007-03-29  Bruno Haible  <bruno@clisp.org>
43123
43124         * modules/ldexpl-tests: New file.
43125         * tests/test-ldexpl.c: New file.
43126
43127 2007-03-29  Bruno Haible  <bruno@clisp.org>
43128
43129         * lib/ldexpl.c: Include fpucw.h.
43130         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
43131         multiplication.
43132         * modules/ldexpl (Depends-on): Add fpucw.
43133
43134 2007-03-29  Bruno Haible  <bruno@clisp.org>
43135
43136         * modules/ldexpl: New file.
43137         * m4/ldexpl.m4: New file.
43138         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
43139         set.
43140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
43141         REPLACE_LDEXPL.
43142         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
43143         REPLACE_LDEXPL.
43144         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
43145         gl_FUNC_LDEXPL_WORKS.
43146         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
43147         * modules/mathl (Files): Remove lib/ldexpl.c.
43148         (Depends-on): Add ldexpl.
43149
43150 2007-03-29  Bruno Haible  <bruno@clisp.org>
43151
43152         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
43153
43154 2007-03-29  Bruno Haible  <bruno@clisp.org>
43155
43156         * tests/test-striconveh.c (main): Don't assume that a direct conversion
43157         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
43158         and possibly also HP-UX.
43159         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43160         work on AIX, IRIX, HP-UX, OSF/1.
43161         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43162         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43163         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43164         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43165         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
43166         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43167
43168 2007-03-29  Bruno Haible  <bruno@clisp.org>
43169
43170         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
43171
43172 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43173
43174         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
43175         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
43176
43177 2007-03-29  Eric Blake  <ebb9@byu.net>
43178
43179         * lib/acl-internal.h: Remove redundant include.
43180         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
43181         Cygwin when a file is locked.
43182
43183 2007-03-29  Bruno Haible  <bruno@clisp.org>
43184
43185         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
43186         file.
43187         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
43188
43189 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43190
43191         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
43192         try to remove a parent directory if the child couldn't be removed
43193         (except for the first rmdir, which could fail because the child
43194         doesn't exist).  Problem reported by Jeff Blaine in
43195         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
43196
43197 2007-03-28  Bruno Haible  <bruno@clisp.org>
43198
43199         * lib/striconveh.c (utf8conv_carefully): New function.
43200         (mem_cd_iconveh_internal): Invoke it.
43201
43202 2007-03-28  Bruno Haible  <bruno@clisp.org>
43203
43204         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
43205         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
43206         input.
43207         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
43208         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
43209         unistr/u8-uctomb.
43210
43211 2007-03-28  Bruno Haible  <bruno@clisp.org>
43212
43213         * modules/unistr/u8-mbtoucr: New file.
43214         * lib/unistr/u8-mbtoucr.c: New file.
43215         * modules/unistr/u16-mbtoucr: New file.
43216         * lib/unistr/u16-mbtoucr.c: New file.
43217         * modules/unistr/u16-mbtoucr: New file.
43218         * lib/unistr/u16-mbtoucr.c: New file.
43219         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
43220
43221 2007-03-27  Simon Josefsson  <simon@josefsson.org>
43222             Bruno Haible  <bruno@clisp.org>
43223
43224         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
43225         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
43226         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
43227
43228         * m4/stdio_h.m4: Add stubs for vasprintf too.
43229
43230         * modules/stdio: Support vasprintf in sed command.
43231
43232         * modules/vasprintf: Depend on stdio for prototypes.  Remove
43233         vasprintf.h.  Add stdio module indicator.
43234
43235         * lib/stdio_.h: Declare asprintf and vasprintf, based on
43236         vasprintf.h.
43237
43238         * lib/vasprintf.h: File removed.
43239
43240         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
43241         * lib/vasprintf.c: Ditto.
43242         * lib/xvasprintf.c: Ditto.
43243         * tests/test-vasprintf-posix.c: Ditto.
43244         * tests/test-vasprintf.c: Ditto.
43245
43246 2007-03-27  Bruno Haible  <bruno@clisp.org>
43247
43248         Make vasnprintf multithread-safe.
43249         * lib/vasnprintf.c (decimal_point_char): New function.
43250         (VASNPRINTF): Use it.
43251         Suggested by Simon Josefsson.
43252
43253 2007-03-27  Eric Blake  <ebb9@byu.net>
43254
43255         Support sub-second birthtime on cygwin.
43256         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
43257         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
43258         (get_stat_birthtime): Also work with st_birthtim.
43259
43260 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
43261
43262         * lib/stat-time.h (USE_BIRTHTIME): Remove.
43263         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
43264         (get_stat_birthtime_ns): Do not try to use "spare" fields.
43265         (get_stat_birthtime_ns): Simplify compile-time tests.
43266         (get_stat_birthtime): Change the API to look like
43267         get_stat_mtime etc., except return a negative tv_nsec on error.
43268         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
43269         Don't check for "spare" fields.
43270         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
43271         or for struct stat.st_birthtime, as these tests aren't used.
43272         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
43273
43274 2007-03-27  Bruno Haible  <bruno@clisp.org>
43275
43276         * lib/stat-time.h: Include <sys/stat.h>.
43277
43278 2007-03-27  James Youngman  <jay@gnu.org>
43279
43280         * lib/stat-time.h (get_stat_birthtime): New function for
43281           retrieving st_birthtime as provided by UFS2 (hence *BSD).
43282         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
43283           and its variants.
43284         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
43285         * modules/stat-time-test: New file.
43286         * tests/test-stat-time.c: New test, devised by Bruno Haible.
43287
43288 2007-03-26  Bruno Haible  <bruno@clisp.org>
43289
43290         Better support of signalling NaNs.
43291         * lib/atanl.c: Include isnanl.h.
43292         (atanl): Perform test for NaN at the beginning of the function and
43293         through a call to isnanl.
43294         * lib/cosl.c: Include isnanl.h.
43295         (cosl): Perform test for NaN at the beginning of the function and
43296         through a call to isnanl.
43297         * lib/ldexpl.c: Include isnanl.h.
43298         (ldexpl): Perform test for NaN through a call to isnanl.
43299         * lib/logl.c: Include isnanl.h.
43300         (logl): Perform test for NaN at the beginning of the function and
43301         through a call to isnanl.
43302         * lib/sinl.c: Include isnanl.h.
43303         (sinl): Perform test for NaN at the beginning of the function and
43304         through a call to isnanl.
43305         * lib/sqrtl.c: Include isnanl.h.
43306         (sqrtl): Perform test for NaN at the beginning of the function and
43307         through a call to isnanl.
43308         * lib/tanl.c: Include isnanl.h.
43309         (tanl): Perform test for NaN at the beginning of the function and
43310         through a call to isnanl.
43311         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
43312         * modules/mathl (Depends-on): Add isnanl.
43313
43314 2007-03-26  Eric Blake  <ebb9@byu.net>
43315
43316         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
43317         regression in logic sense of previous patch.
43318
43319 2007-03-26  Bruno Haible  <bruno@clisp.org>
43320
43321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
43322         unportable shell command "if ! ...".
43323         Reported by Ralf Wildenhues.
43324
43325 2007-03-25  Bruno Haible  <bruno@clisp.org>
43326
43327         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
43328         <sysexits.h> file, and only add EX_CONFIG.
43329         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
43330         absolute file name and whether it is sufficient. Substitute also
43331         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
43332         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
43333         ABSOLUTE_SYSEXITS_H into sysexits.h.
43334
43335 2007-03-25  Bruno Haible  <bruno@clisp.org>
43336
43337         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
43338         hints is NULL.
43339
43340 2007-03-25  Bruno Haible  <bruno@clisp.org>
43341
43342         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
43343         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
43344
43345 2007-03-25  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/vasnprintf.c: Include langinfo.h.
43348         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
43349         multithread-safe.
43350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
43351         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
43352         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43353         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43354         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43355         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43356         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43357         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
43358         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43359         Reported by Simon Josefsson.
43360
43361 2007-03-25  Bruno Haible  <bruno@clisp.org>
43362
43363         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
43364         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
43365         * modules/vasnprintf (Depends-on): Add stdint.
43366
43367 2007-03-25  Bruno Haible  <bruno@clisp.org>
43368
43369         * modules/fpieee: New file.
43370         * m4/fpieee.m4: New file.
43371         * modules/isnan-nolibm (Depends-on): Add fpieee.
43372         * modules/isnanl-nolibm (Depends-on): Add fpieee.
43373         * modules/isnanl (Depends-on): Add fpieee.
43374
43375 2007-03-25  Bruno Haible  <bruno@clisp.org>
43376
43377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
43378
43379 2007-03-25  Bruno Haible  <bruno@clisp.org>
43380
43381         Avoid test failures on IRIX 6.5.
43382         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
43383         (main): Use it.
43384         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
43385         macros.
43386         (main): Use them.
43387
43388 2007-03-25  Bruno Haible  <bruno@clisp.org>
43389
43390         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
43391         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
43392         exists but doesn't work.
43393         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
43394         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
43395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
43396         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
43397
43398 2007-03-25  Bruno Haible  <bruno@clisp.org>
43399
43400         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
43401         returns inf. Needed on IRIX 6.5.
43402
43403 2007-03-25  Bruno Haible  <bruno@clisp.org>
43404
43405         * tests/test-frexpl.c: Include isnanl-nolibm.h.
43406         (main): Use isnanl instead of x != x idiom.
43407         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
43408
43409         * tests/test-frexp.c: Include isnan.h.
43410         (main): Use isnan instead of x != x idiom.
43411         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
43412
43413 2007-03-25  Bruno Haible  <bruno@clisp.org>
43414
43415         * tests/test-frexp.c (NaN): New function/macro.
43416         (main): Use it instead of 0.0 / 0.0.
43417         * tests/test-isnan.c (NaN): New function/macro.
43418         (main): Use it instead of 0.0 / 0.0.
43419         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
43420         (test_function): Use it instead of 0.0 / 0.0.
43421         * tests/test-vasprintf-posix.c (NaN): New function/macro.
43422         (test_function): Use it instead of 0.0 / 0.0.
43423         * tests/test-snprintf-posix.h (NaN): New function/macro.
43424         (test_function): Use it instead of 0.0 / 0.0.
43425         * tests/test-sprintf-posix.h (NaN): New function/macro.
43426         (test_function): Use it instead of 0.0 / 0.0.
43427         * tests/test-fprintf-posix.h (NaN): New function/macro.
43428         (test_function): Use it instead of 0.0 / 0.0.
43429         * tests/test-printf-posix.h (NaN): New function/macro.
43430         (test_function): Use it instead of 0.0 / 0.0.
43431
43432         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
43433
43434 2007-03-25  Bruno Haible  <bruno@clisp.org>
43435
43436         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
43437
43438 2007-03-25  Bruno Haible  <bruno@clisp.org>
43439
43440         * lib/regexec.c (merge_state_with_log): Make static.
43441
43442 2007-03-25  Bruno Haible  <bruno@clisp.org>
43443
43444         * lib/trigl.c (kernel_rem_pio2): Make static.
43445
43446 2007-03-25  Bruno Haible  <bruno@clisp.org>
43447
43448         * lib/sincosl.c (sincosl_table): Make static.
43449
43450 2007-03-25  Bruno Haible  <bruno@clisp.org>
43451
43452         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
43453         if the compiler does not support C99.
43454
43455 2007-03-25  Bruno Haible  <bruno@clisp.org>
43456
43457         * modules/time (Makefile.am): Ensure all rule action lines start with a
43458         tab.
43459
43460 2007-03-24  Bruno Haible  <bruno@clisp.org>
43461
43462         * modules/tsearch-tests: New file.
43463         * tests/test-tsearch.sh: New file.
43464         * tests/test-tsearch.c: New file, mostly copied from glibc.
43465
43466         * modules/search-tests: New file.
43467         * tests/test-search.c: New file.
43468
43469         * modules/search: New file.
43470         * lib/search_.h: New file, incorporating lib/tsearch.h.
43471         * m4/search_h.m4: New file.
43472         * lib/tsearch.h: Remove file.
43473         * lib/tsearch.c: Include search.h instead of tsearch.h.
43474         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
43475         HAVE_TSEARCH.
43476         * modules/tsearch (Files): Remove lib/tsearch.h.
43477         (Depends-on): Add search.
43478         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
43479         (Include): Change tsearch.h into search.h.
43480
43481 2007-03-24  Bruno Haible  <bruno@clisp.org>
43482
43483         * modules/fpucw: New file.
43484         * lib/fpucw.h: New file.
43485         * lib/frexp.c: Include fpucw.h.
43486         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43487         (FUNC): Use them.
43488         * lib/printf-frexp.c: Include fpucw.h.
43489         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43490         (FUNC): Use them.
43491         * lib/vasnprintf.c: Include fpucw.h.
43492         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
43493         'long double' calculations.
43494         * tests/test-frexpl.c: Include fpucw.h.
43495         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43496         * tests/test-printf-frexpl.c: Include fpucw.h.
43497         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43498         * modules/frexpl (Depends-on): Add fpucw.
43499         * modules/printf-frexpl (Depends-on): Likewise.
43500         * modules/fprintf-posix (Depends-on): Likewise.
43501         * modules/snprintf-posix (Depends-on): Likewise.
43502         * modules/sprintf-posix (Depends-on): Likewise.
43503         * modules/vasnprintf-posix (Depends-on): Likewise.
43504         * modules/vasprintf-posix (Depends-on): Likewise.
43505         * modules/vfprintf-posix (Depends-on): Likewise.
43506         * modules/vsnprintf-posix (Depends-on): Likewise.
43507         * modules/vsprintf-posix (Depends-on): Likewise.
43508         * modules/frexpl-tests (Depends-on): Likewise.
43509         * modules/printf-frexpl-tests (Depends-on): Likewise.
43510
43511 2007-03-24  Bruno Haible  <bruno@clisp.org>
43512
43513         * lib/float+.h: New file.
43514         * lib/isnan.c: Include float+.h.
43515         (SIZE): New macro.
43516         (FUNC): Compare only SIZE bytes of the value.
43517         * lib/vasnprintf.c: Include float+.h.
43518         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
43519         SIZEOF_LDBL or SIZEOF_DBL bytes.
43520         * modules/isnan-nolibm (Files): Add lib/float+.h.
43521         * modules/isnanl-nolibm (Files): Add lib/float+.h.
43522         * modules/isnanl (Files): Add lib/float+.h.
43523         * modules/vasnprintf (Files): Add lib/float+.h.
43524
43525 2007-03-24  Bruno Haible  <bruno@clisp.org>
43526
43527         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
43528         include isnanl-nolibm.h.
43529
43530 2007-03-24  Bruno Haible  <bruno@clisp.org>
43531
43532         * tests/test-read-file.c (main): Don't produce spurious output for
43533         expected situations. Make the test fail if it encountered unexpected
43534         results.
43535
43536 2007-03-24  Bruno Haible  <bruno@clisp.org>
43537
43538         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
43539         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
43540
43541 2007-03-24  Bruno Haible  <bruno@clisp.org>
43542
43543         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
43544
43545 2007-03-24  Bruno Haible  <bruno@clisp.org>
43546
43547         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
43548         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
43549
43550         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
43551         * modules/utf8-ucs4: Turn into a symbolic link to module
43552         unistr/u8-mbtouc.
43553
43554         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
43555         utf8-ucs4-unsafe.
43556         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
43557         unistr/u8-mbtouc-unsafe.
43558
43559         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
43560         * modules/utf16-ucs4: Turn into a symbolic link to module
43561         unistr/u16-mbtouc.
43562
43563         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
43564         utf16-ucs4-unsafe.
43565         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
43566         unistr/u16-mbtouc-unsafe.
43567
43568         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
43569         * modules/ucs4-utf8: Turn into a symbolic link to module
43570         unistr/u8-ubtomb.
43571
43572         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
43573         * modules/ucs4-utf16: Turn into a symbolic link to module
43574         unistr/u16-ubtomb.
43575
43576 2007-03-24  Bruno Haible  <bruno@clisp.org>
43577
43578         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
43579         Enable the function only if HAVE_INLINE.
43580         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
43581         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43582         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
43583         Enable the function only if HAVE_INLINE.
43584         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
43585         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
43586         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
43587         Enable the function only if HAVE_INLINE.
43588         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
43589         Enable the function only if HAVE_INLINE.
43590         * modules/utf8-ucs4: Update.
43591         * modules/utf8-ucs4-unsafe: Update.
43592         * modules/utf16-ucs4: Update.
43593         * modules/utf16-ucs4-unsafe: Update.
43594         * modules/ucs4-utf8: Update.
43595         * modules/ucs4-utf16: Update.
43596
43597 2007-03-24  Bruno Haible  <bruno@clisp.org>
43598
43599         * lib/utf8-ucs4.h: Remove file.
43600         * lib/utf8-ucs4-unsafe.h: Remove file.
43601         * lib/utf16-ucs4.h: Remove file.
43602         * lib/utf16-ucs4-unsafe.h: Remove file.
43603         * lib/ucs4-utf8.h: Remove file.
43604         * lib/ucs4-utf16.h: Remove file.
43605         * lib/unistr.h: Include their previous contents.
43606         * m4/utf-ucs4.m4: Remove file.
43607         * m4/ucs4-utf.m4: Remove file.
43608         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
43609         (Depends-on): Add unistr/base.
43610         (configure.ac): Remove gl_UTF_UCS4.
43611         (Makefile.am): Update.
43612         (Include): Change to unistr.h.
43613         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
43614         (Depends-on): Add unistr/base.
43615         (configure.ac): Remove gl_UTF_UCS4.
43616         (Makefile.am): Update.
43617         (Include): Change to unistr.h.
43618         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
43619         (Depends-on): Add unistr/base.
43620         (configure.ac): Remove gl_UTF_UCS4.
43621         (Makefile.am): Update.
43622         (Include): Change to unistr.h.
43623         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
43624         (Depends-on): Add unistr/base.
43625         (configure.ac): Remove gl_UTF_UCS4.
43626         (Makefile.am): Update.
43627         (Include): Change to unistr.h.
43628         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
43629         (Depends-on): Add unistr/base.
43630         (configure.ac): Remove gl_UCS4_UTF.
43631         (Makefile.am): Update.
43632         (Include): Change to unistr.h.
43633         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
43634         (Depends-on): Add unistr/base.
43635         (configure.ac): Remove gl_UCS4_UTF.
43636         (Makefile.am): Update.
43637         (Include): Change to unistr.h.
43638         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
43639         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
43640         utf8-ucs4-unsafe.h.
43641         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
43642         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
43643         utf16-ucs4-unsafe.h.
43644         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
43645         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
43646         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
43647         * lib/unistr/u8-strchr.c: Likewise.
43648         * lib/unistr/u8-strrchr.c: Likewise.
43649         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
43650         * lib/unistr/u16-strchr.c: Likewise.
43651         * lib/unistr/u16-strrchr.c: Likewise.
43652         * lib/striconveh.c: Update.
43653         * lib/linebreak.c: Update.
43654
43655 2007-03-24  Bruno Haible  <bruno@clisp.org>
43656
43657         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
43658         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
43659
43660 2007-03-22  Bruno Haible  <bruno@clisp.org>
43661
43662         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
43663
43664 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
43665
43666         * MODULES.html.sh (File system functions): New module write-any-file.
43667         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
43668         * m4/write-any-file.m4: New files.
43669
43670 2007-03-23  Eric Blake  <ebb9@byu.net>
43671
43672         * gnulib-tool: Rearrange space-tab sequences, since some editors
43673         like to eat them.
43674
43675 2007-03-23  Eric Blake  <ebb9@byu.net>
43676
43677         * lib/version-etc.c (version_etc_va): Update license wording to
43678         be more concise.  Recommended by Richard Stallman.
43679
43680 2007-03-22  Bruno Haible  <bruno@clisp.org>
43681
43682         * lib/poll.c (MSG_PEEK): New fallback definition.
43683
43684 2007-03-22  Bruno Haible  <bruno@clisp.org>
43685
43686         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
43687         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
43688         (main): Update.
43689         Fixes a compilation error on BeOS.
43690
43691 2007-03-22  Bruno Haible  <bruno@clisp.org>
43692
43693         * modules/frexpl-tests: New file.
43694         * tests/test-frexpl.c: New file.
43695
43696         * modules/frexpl: New file.
43697         * m4/frexpl.m4: New file.
43698         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
43699         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
43700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
43701         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
43702         (Depends-on): Add frexpl. Remove isnanl-nolibm.
43703         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
43704
43705 2007-03-22  Bruno Haible  <bruno@clisp.org>
43706
43707         * lib/frexpl.c: Share code with lib/frexp.c.
43708         * modules/mathl (Files): Add lib/frexp.c.
43709         (Depends-on): Add isnanl-nolibm.
43710
43711 2007-03-22  Bruno Haible  <bruno@clisp.org>
43712
43713         * modules/printf-frexp (Files): Add m4/frexp.m4.
43714         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
43715         only if the found frexp function actually works.
43716
43717 2007-03-22  Bruno Haible  <bruno@clisp.org>
43718
43719         * lib/frexp.c: Remove older implementation that uses divisions.
43720
43721 2007-03-21  Bruno Haible  <bruno@clisp.org>
43722
43723         * modules/frexp-tests: New file.
43724         * tests/test-frexp.c: New file.
43725
43726         * modules/frexp: New file.
43727         * lib/frexp.c: New file.
43728         * m4/frexp.m4: New file.
43729         * lib/math_.h (frexp): New declaration.
43730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
43731         REPLACE_FREXP.
43732         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
43733
43734 2007-03-21  Bruno Haible  <bruno@clisp.org>
43735
43736         * modules/isnanl-tests: New file.
43737         * tests/test-isnanl.c: New file.
43738
43739         * modules/isnanl: New file.
43740         * lib/isnanl.h: New file.
43741         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
43742         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
43743         gl_FUNC_ISNANL_WORKS.
43744         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
43745         New macros.
43746
43747 2007-03-21  Bruno Haible  <bruno@clisp.org>
43748
43749         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
43750         lib/isnanl.h.
43751         (Include): Update.
43752         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
43753         * lib/vasnprintf.c: Update.
43754         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
43755         tests/test-isnanl.h, remove tests/test-isnanl.c.
43756         (Makefile.am): Update.
43757         * tests/test-isnanl-nolibm.c: New file.
43758         * tests/test-isnanl.h: New file.
43759         * tests/test-isnanl.c: Remove file.
43760
43761 2007-03-21  Jim Meyering  <jim@meyering.net>
43762
43763         When trying to open ".", treat ESTALE like EACCES.
43764         * lib/savewd.c (savewd_save): Resort to forking not just upon
43765         failure with EACCES, but also when errno is ESTALE.
43766
43767 2007-03-20  Bruno Haible  <bruno@clisp.org>
43768
43769         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
43770         Needed on AIX 5.1. Reported by Matthew Woehlke.
43771
43772 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43773
43774         Suggestions by Bruno Haible:
43775         * lib/acl-internal.h: Include "gettext.h" rather than rolling
43776         our own.
43777         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
43778         * modules/acl (Depends-on): Add gettext.
43779
43780 2007-03-19  Bruno Haible  <bruno@clisp.org>
43781
43782         * modules/iconvme: Remove file.
43783         * lib/iconvme.h: Remove file.
43784         * lib/iconvme.c: Remove file.
43785         * m4/iconvme.m4: Remove file.
43786
43787 2007-03-19  Bruno Haible  <bruno@clisp.org>
43788
43789         * doc/relocatable-maint.texi: Break long shell script line.
43790         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43791
43792 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43793
43794         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
43795         handle file_has_acl.
43796         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
43797         * lib/acl.c: Move header inclusions and related macro defns into
43798         lib/acl-internal.h.
43799         (S_ISLNK): Remove defn, since that's now done for us.
43800         (file_has_acl): Move to lib/file-has-acl.c.
43801         Call acl_trivial if available.  This is the crucial part of the fix.
43802         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
43803         shared within the library.  Rewrite a bit, partly to make it compatible
43804         with the GNU coding style.
43805         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
43806         Remove unnecessary double-quotes.
43807         Don't test for acl_to_text; the build will catch that.
43808         Replace acl_entries if it doesn't exist and it is needed.
43809         Check for -lsec and acl_trivial (as used on Solaris 10).
43810         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
43811         lib/file-has-acl.c.
43812         (Depends-on): Add sys_stat, for S_ISLNK.
43813
43814 2007-03-19  Ben Pfaff  <blp@gnu.org>
43815
43816         * doc/gnulib.texi: Fix typos.
43817         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43818
43819 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43820
43821         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
43822         If size is zero here, buf must be zero.
43823
43824 2007-03-19  Simon Josefsson  <simon@josefsson.org>
43825
43826         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
43827         <bruno@clisp.org>.
43828
43829 2007-03-18  Bruno Haible  <bruno@clisp.org>
43830
43831         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
43832         Suggested by Eric Blake.
43833
43834 2007-03-18  Ben Pfaff  <blp@gnu.org>
43835
43836         * doc/relocatable.texi: Recommend using as prefix a directory
43837         that does not exist and will never be created.  Based on
43838         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
43839         and others.
43840
43841 2007-03-17  Bruno Haible  <bruno@clisp.org>
43842
43843         * lib/fchownat.c: Include lchown.h.
43844
43845 2007-03-17  Bruno Haible  <bruno@clisp.org>
43846
43847         Fix endless loop when the given allocated size was > INT_MAX.
43848         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
43849         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
43850         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
43851         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
43852         * lib/sprintf.c (sprintf): Likewise.
43853
43854 2007-03-17  Bruno Haible  <bruno@clisp.org>
43855
43856         * tests/test-argp-2.sh (func_compare): Output a context diff.
43857
43858 2007-03-17  Bruno Haible  <bruno@clisp.org>
43859
43860         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
43861         locale's decimal-point character.
43862
43863 2007-03-17  Bruno Haible  <bruno@clisp.org>
43864
43865         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
43866         before comparing it. Needed because on some platforms (e.g. x86) a
43867         'long double' occupies less bytes than sizeof (long double).
43868
43869 2007-03-17  Bruno Haible  <bruno@clisp.org>
43870
43871         * tests/test-crc.c (main): Make printf statements 64-bit clean.
43872         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
43873         * tests/test-getaddrinfo.c (simple): Likewise.
43874         * tests/test-read-file.c (main): Likewise.
43875
43876 2007-03-17  Bruno Haible  <bruno@clisp.org>
43877
43878         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
43879
43880 2007-03-17  Bruno Haible  <bruno@clisp.org>
43881
43882         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
43883         unused variable.
43884
43885 2007-03-17  Bruno Haible  <bruno@clisp.org>
43886
43887         * tests/test-c-strcasecmp.c: Include c-strcase.h.
43888         * tests/test-c-strncasecmp.c: Likewise.
43889
43890 2007-03-17  Bruno Haible  <bruno@clisp.org>
43891
43892         * modules/stdlib (Depends-on): Add unistd.
43893         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
43894         Needed for MacOS X 10.3.
43895
43896 2007-03-17  Bruno Haible  <bruno@clisp.org>
43897
43898         * lib/unistr/u-strdup.h: Include <stdlib.h>.
43899
43900 2007-03-17  Bruno Haible  <bruno@clisp.org>
43901
43902         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
43903
43904 2007-03-17  Bruno Haible  <bruno@clisp.org>
43905
43906         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
43907         to reflect files copied from gnulib (with or without modifications).
43908         Suggested by Jim Meyering.
43909
43910 2007-03-17  Eric Blake  <ebb9@byu.net>
43911
43912         * NEWS: Document stdlib change from 2007-02-18.
43913
43914 2007-03-17  Jim Meyering  <jim@meyering.net>
43915
43916         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
43917         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
43918         someone uses a name containing shell meta-characters.
43919         Reported by Alfred M. Szmidt.
43920
43921         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
43922
43923 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43924
43925         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
43926         and copy gettext configuration files only if configure.ac contains
43927         a use of AM_GNU_GETTEXT_VERSION.
43928
43929 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43930
43931         * build-aux/bootstrap (gnulib_name): New variable.
43932         (gnulib_tool_options): Use it.
43933
43934 2007-03-13  Simon Josefsson  <simon@josefsson.org>
43935
43936         * tests/test-des.c: Use new namespace.
43937
43938 2007-03-15  Bruno Haible  <bruno@clisp.org>
43939
43940         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
43941         Reported by James Youngman <jay@gnu.org>.
43942
43943 2007-03-15  Bruno Haible  <bruno@clisp.org>
43944
43945         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
43946         declared prototype. Needed with cc on OSF/1 5.1.
43947
43948 2007-03-15  Bruno Haible  <bruno@clisp.org>
43949
43950         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
43951         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
43952         (struct gl_list_implementation): Add dispose_fn argument to the
43953         'create_empty', 'create' methods.
43954         (struct gl_list_impl_base): Add field 'dispose_fn'.
43955         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
43956         argument.
43957         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
43958         dispose_fn argument.
43959         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
43960         dispose_fn on the dropped values.
43961         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
43962         dispose_fn argument.
43963         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
43964         dropped values.
43965         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
43966         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43967         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
43968         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43969         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
43970         argument.
43971         (gl_tree_list_free): Call dispose_fn on the dropped values.
43972         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
43973         the dropped values.
43974         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
43975         Add dispose_fn argument.
43976         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
43977         Call dispose_fn on the dropped values.
43978         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
43979         Add dispose_fn argument.
43980         (gl_sublist_create): Initialize the 'dispose_fn' field.
43981         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
43982         * tests/test-array_list.c (main): Update.
43983         * tests/test-carray_list.c (main): Update.
43984         * tests/test-avltree_list.c (main): Update.
43985         * tests/test-rbtree_list.c (main): Update.
43986         * tests/test-avltreehash_list.c (main): Update.
43987         * tests/test-rbtreehash_list.c (main): Update.
43988         * tests/test-linked_list.c (main): Update.
43989         * tests/test-linkedhash_list.c (main): Update.
43990         * tests/test-array_oset.c (main): Update.
43991
43992 2007-03-15  Bruno Haible  <bruno@clisp.org>
43993
43994         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
43995         (gl_oset_create_empty): Add dispose_fn argument.
43996         (struct gl_oset_implementation): Add dispose_fn argument to
43997         'create_empty' method.
43998         (struct gl_oset_impl_base): Add dispose_fn field.
43999         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
44000         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
44001         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
44002         values.
44003         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
44004         (gl_tree_oset_free): Call dispose_fn on the dropped values.
44005         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44006         dropped value.
44007         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44008         dropped value.
44009         * tests/test-array_oset.c (main): Update.
44010         * tests/test-avltree_oset.c (main): Update.
44011         * tests/test-rbtree_oset.c (main): Update.
44012         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
44013
44014 2007-03-13  Bruno Haible  <bruno@clisp.org>
44015
44016         * tests/test-stdbool.c (i): Update after last patch.
44017
44018 2007-03-12  Bruno Haible  <bruno@clisp.org>
44019
44020         * lib/quotearg.c: Include <wctype.h> early, before the definition of
44021         the iswprint macro. Needed on Solaris 2.5.1.
44022
44023 2007-03-12  Bruno Haible  <bruno@clisp.org>
44024
44025         * tests/test-printf-frexp.c (main): Declare x as volatile.
44026
44027 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44028
44029         * doc/gnulib.texi (Build robot for gnulib): New section.
44030
44031 2007-03-12  Jim Meyering  <jim@meyering.net>
44032
44033         * build-aux/bootstrap: New file.
44034         * build-aux/bootstrap.conf: New file, from coreutils.
44035
44036 2007-03-11  Bruno Haible  <bruno@clisp.org>
44037
44038         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
44039
44040 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44041
44042         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
44043         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
44044         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
44045
44046 2007-03-11  Bruno Haible  <bruno@clisp.org>
44047
44048         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
44049         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
44050
44051 2007-03-11  Bruno Haible  <bruno@clisp.org>
44052
44053         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
44054         formula. Needed for SunPRO C 5.0.
44055
44056 2007-03-11  Bruno Haible  <bruno@clisp.org>
44057
44058         * modules/long-options (Depends-on): Add getopt.
44059
44060 2007-03-11  Bruno Haible  <bruno@clisp.org>
44061
44062         * modules/modechange (Depends-on): Add stdbool.
44063
44064 2007-03-11  Bruno Haible  <bruno@clisp.org>
44065
44066         * modules/i-ring (Depends-on): Add stdbool.
44067
44068 2007-03-11  Bruno Haible  <bruno@clisp.org>
44069
44070         * modules/gc-des (Depends-on): Add stdbool.
44071
44072 2007-03-11  Bruno Haible  <bruno@clisp.org>
44073
44074         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
44075
44076 2007-03-11  Bruno Haible  <bruno@clisp.org>
44077
44078         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
44079
44080 2007-03-11  Bruno Haible  <bruno@clisp.org>
44081
44082         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
44083
44084 2007-03-11  Bruno Haible  <bruno@clisp.org>
44085
44086         * lib/vasnprintf.c (sprintf): Undefine.
44087
44088 2007-03-11  Bruno Haible  <bruno@clisp.org>
44089
44090         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
44091         initializers in SunPRO C and Compaq C compilers.
44092
44093 2007-03-11  Bruno Haible  <bruno@clisp.org>
44094
44095         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
44096         decrementing code ANSI C compliant.
44097
44098 2007-03-11  Bruno Haible  <bruno@clisp.org>
44099
44100         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
44101         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
44102
44103 2007-03-11  Bruno Haible  <bruno@clisp.org>
44104
44105         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
44106         <stdbool.h> substitute doesn't pass.
44107
44108 2007-03-11  Bruno Haible  <bruno@clisp.org>
44109
44110         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
44111
44112 2007-03-11  Bruno Haible  <bruno@clisp.org>
44113
44114         * gnulib-tool (func_create_megatestdir): Create also an autobuild
44115         script, for submission to autobuild.josefsson.org.
44116
44117 2007-03-10  Bruno Haible  <bruno@clisp.org>
44118
44119         * modules/canonicalize-lgpl-tests: New file.
44120         * tests/test-canonicalize-lgpl.sh: New file.
44121         * tests/test-canonicalize-lgpl.c: New file.
44122
44123         * modules/c-strcase-tests: New file.
44124         * tests/test-c-strcase.sh: New file.
44125         * tests/test-c-strcasecmp.c: New file.
44126         * tests/test-c-strncasecmp.c: New file.
44127
44128         * modules/atexit-tests: New file.
44129         * tests/test-atexit.sh: New file.
44130         * tests/test-atexit.c: New file.
44131
44132 2007-03-10  Bruno Haible  <bruno@clisp.org>
44133
44134         * tests/test-binary-io.sh: Use temporary filenames that are not so
44135         likely to clash with those of other tests (in a parallel make).
44136         * tests/test-binary-io.c: Likewise.
44137
44138 2007-03-10  Bruno Haible  <bruno@clisp.org>
44139
44140         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
44141         fallback; use #error instead.
44142         Suggested by Simon Josefsson.
44143
44144 2007-03-10  Bruno Haible  <bruno@clisp.org>
44145
44146         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
44147         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
44148         first and the last.
44149
44150 2007-03-10  Bruno Haible  <bruno@clisp.org>
44151
44152         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
44153
44154 2007-03-10  Bruno Haible  <bruno@clisp.org>
44155
44156         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
44157         "make distcheck".
44158         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
44159         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
44160         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
44161
44162 2007-03-10  Bruno Haible  <bruno@clisp.org>
44163
44164         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
44165         variable.
44166         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
44167         variable.
44168
44169 2007-03-09  Eric Blake  <ebb9@byu.net>
44170         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
44171
44172         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
44173         types are not being provided by gnulib.
44174         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
44175         types are supported.
44176
44177 2007-03-10  Bruno Haible  <bruno@clisp.org>
44178
44179         * lib/stdio_.h (__attribute__): New macro.
44180         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
44181         vsprintf): Specify __attribute__ __format__ for GCC.
44182         Suggested by Eric Blake.
44183
44184 2007-03-09  Bruno Haible  <bruno@clisp.org>
44185
44186         * modules/printf-posix-tests: New file.
44187         * tests/test-printf-posix.sh: New file.
44188         * tests/test-printf-posix.c: New file.
44189
44190         * modules/printf-posix: New file.
44191         * lib/printf.c: New file.
44192         * m4/printf-posix-rpl.m4: New file.
44193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
44194         REPLACE_PRINTF.
44195         * lib/stdio_.h (printf): New declaration.
44196         (format, __format__, ____printf____, ____scanf____, ____strftime____,
44197         ____strfmon____): New macros.
44198         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
44199         REPLACE_PRINTF.
44200
44201 2007-03-09  Bruno Haible  <bruno@clisp.org>
44202
44203         * tests/test-vasnprintf-posix2.sh: New file.
44204         * tests/test-vasnprintf-posix2.c: New file.
44205         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
44206         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44207         (Makefile.am): Activate test-vasnprintf-posix2.sh.
44208
44209         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
44210         a locale dependent decimal point, rather than always '.'.
44211
44212 2007-03-09  Eric Blake  <ebb9@byu.net>
44213
44214         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
44215         spite of platforms like Tandem/NSK that define it to -1.
44216
44217 2007-03-08  Bruno Haible  <bruno@clisp.org>
44218
44219         * modules/vprintf-posix-tests: New file.
44220         * tests/test-vprintf-posix.sh: New file.
44221         * tests/test-vprintf-posix.c: New file.
44222         * tests/test-printf-posix.h: New file.
44223
44224         * modules/vprintf-posix: New file.
44225         * lib/vprintf.c: New file.
44226         * m4/vprintf-posix.m4: New file.
44227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
44228         REPLACE_VPRINTF.
44229         * lib/stdio_.h (vprintf): New declaration.
44230         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
44231         REPLACE_VPRINTF.
44232
44233 2007-03-08  Bruno Haible  <bruno@clisp.org>
44234
44235         * modules/fprintf-posix-tests: New file.
44236         * tests/test-fprintf-posix.sh: New file.
44237         * tests/test-fprintf-posix.c: New file.
44238
44239         * modules/fprintf-posix: New file.
44240         * lib/fprintf.c: New file.
44241         * m4/fprintf-posix.m4: New file.
44242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
44243         REPLACE_FPRINTF.
44244         * lib/stdio_.h (fprintf): New declaration.
44245         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
44246         REPLACE_FPRINTF.
44247
44248 2007-03-08  Bruno Haible  <bruno@clisp.org>
44249
44250         * modules/vfprintf-posix-tests: New file.
44251         * tests/test-vfprintf-posix.sh: New file.
44252         * tests/test-vfprintf-posix.c: New file.
44253         * tests/test-fprintf-posix.h: New file.
44254         * tests/test-fprintf-posix.out: New file.
44255
44256         * modules/vfprintf-posix: New file.
44257         * lib/vfprintf.c: New file.
44258         * m4/vfprintf-posix.m4: New file.
44259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
44260         REPLACE_VFPRINTF.
44261         * lib/stdio_.h (vfprintf): New declaration.
44262         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
44263         REPLACE_VFPRINTF.
44264
44265 2007-03-08  Bruno Haible  <bruno@clisp.org>
44266
44267         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
44268
44269 2007-03-08  Bruno Haible  <bruno@clisp.org>
44270
44271         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
44272         instead of 'expr' invocations.
44273         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44274         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44275         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44276         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44277         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44278         Suggested by Paul Eggert.
44279
44280 2007-03-08  Bruno Haible  <bruno@clisp.org>
44281
44282         * modules/fseterr-tests: New file.
44283         * tests/test-fseterr.c: New file.
44284
44285         * modules/fseterr: New file.
44286         * lib/fseterr.h: New file.
44287         * lib/fseterr.c: New file.
44288
44289 2007-03-08  Bruno Haible  <bruno@clisp.org>
44290
44291         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
44292         * lib/getopt_.h: Likewise.
44293         * lib/mbswidth.h: Likewise.
44294         * lib/setenv.h: Likewise.
44295         * lib/vasnprintf.h: Likewise.
44296         * lib/vasprintf.h: Likewise.
44297         * lib/verror.h: Likewise.
44298         * lib/xsetenv.h: Likewise.
44299         * lib/xvasprintf.h: Likewise.
44300
44301 2007-03-08  Jim Meyering  <jim@meyering.net>
44302
44303         * users.txt: Add parted.
44304
44305         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
44306
44307 2007-03-07  Bruno Haible  <bruno@clisp.org>
44308
44309         * m4/printf.m4: Make the shell script snippets copy&pastable.
44310
44311 2007-03-02  Bruno Haible  <bruno@clisp.org>
44312
44313         * lib/netinet_in_.h: New file.
44314         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
44315         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
44316         * modules/netinet_in (Files): Add lib/netinet_in_.h.
44317         (Depends-on): Add absolute-header.
44318         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
44319         into netinet/in.h.
44320
44321 2007-03-03  Bruno Haible  <bruno@clisp.org>
44322
44323         * lib/sys_select_.h: New file.
44324         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
44325         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
44326         * modules/sys_select (Files): Add lib/sys_select_.h.
44327         (Depends-on): Add absolute-header.
44328         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
44329         into sys/select.h.
44330
44331 2007-03-02  Bruno Haible  <bruno@clisp.org>
44332
44333         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
44334         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
44335         values.
44336         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
44337         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
44338         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
44339         * modules/sys_socket (Depends-on): Add absolute-header.
44340         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
44341         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
44342         (Include): Remove requirement of inclusion of <sys/types.h>.
44343
44344 2007-03-02  Bruno Haible  <bruno@clisp.org>
44345
44346         * lib/byteswap_.h (bswap_32): Fix formula.
44347
44348 2007-03-06  Bruno Haible  <bruno@clisp.org>
44349
44350         * modules/sprintf-posix-tests: New file.
44351         * tests/test-sprintf-posix.c: New file.
44352
44353         * modules/sprintf-posix: New file.
44354         * lib/sprintf.c: New file.
44355         * m4/sprintf-posix.m4: New file.
44356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
44357         REPLACE_SPRINTF.
44358         * lib/stdio_.h (sprintf): New declaration.
44359         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
44360         REPLACE_SPRINTF.
44361
44362 2007-03-06  Bruno Haible  <bruno@clisp.org>
44363
44364         * modules/vsprintf-posix-tests: New file.
44365         * tests/test-vsprintf-posix.c: New file.
44366         * tests/test-sprintf-posix.h: New file.
44367
44368         * modules/vsprintf-posix: New file.
44369         * lib/vsprintf.c: New file.
44370         * m4/vsprintf-posix.m4: New file.
44371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
44372         REPLACE_VSPRINTF.
44373         * lib/stdio_.h (vsprintf): New declaration.
44374         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
44375         REPLACE_VSPRINTF.
44376
44377 2007-03-06  Bruno Haible  <bruno@clisp.org>
44378
44379         * modules/vsnprintf (Depend-on): Remove minmax.
44380
44381 2007-03-06  Bruno Haible  <bruno@clisp.org>
44382
44383         * modules/snprintf-posix-tests: New file.
44384         * tests/test-snprintf-posix.c: New file.
44385
44386         * modules/snprintf-posix: New file.
44387         * m4/snprintf-posix.m4: New file.
44388         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
44389         gl_FUNC_SNPRINTF.
44390         (gl_FUNC_SNPRINTF): Invoke it.
44391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
44392         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
44393         is set.
44394         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
44395
44396 2007-03-06  Bruno Haible  <bruno@clisp.org>
44397
44398         * modules/vsnprintf-posix-tests: New file.
44399         * tests/test-vsnprintf-posix.c: New file.
44400         * tests/test-snprintf-posix.h: New file.
44401
44402         * modules/vsnprintf-posix: New file.
44403         * m4/vsnprintf-posix.m4: New file.
44404         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
44405         gl_FUNC_VSNPRINTF.
44406         (gl_FUNC_VSNPRINTF): Invoke it.
44407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
44408         * lib/stdio_.h (vsnprintf): Define as a replacement if
44409         REPLACE_VSNPRINTF is set.
44410         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
44411
44412 2007-03-06  Bruno Haible  <bruno@clisp.org>
44413
44414         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
44415         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
44416
44417 2007-03-06  Bruno Haible  <bruno@clisp.org>
44418
44419         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
44420         (asinl): Declare also if HAVE_DECL_ASINL is set.
44421         (atanl): Declare also if HAVE_DECL_ATANL is set.
44422         (ceill): Declare also if HAVE_DECL_CEILL is set.
44423         (cosl): Declare also if HAVE_DECL_COSL is set.
44424         (expl): Declare also if HAVE_DECL_EXPL is set.
44425         (floorl): Declare also if HAVE_DECL_FLOORL is set.
44426         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
44427         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
44428         (logl): Declare also if HAVE_DECL_LOGL is set.
44429         (sinl): Declare also if HAVE_DECL_SINL is set.
44430         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
44431         (tanl): Declare also if HAVE_DECL_TANL is set.
44432         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
44433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
44434         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
44435         declaration of frexpl, ldexpl.
44436         * modules/printf-frexpl (Depends-on): Add math.
44437         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
44438
44439 2007-03-05  Bruno Haible  <bruno@clisp.org>
44440
44441         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
44442         frexpl and ldexpl are declared.
44443         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
44444
44445 2007-03-05  Bruno Haible  <bruno@clisp.org>
44446
44447         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
44448         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
44449
44450 2007-03-05  Bruno Haible  <bruno@clisp.org>
44451
44452         * lib/stdio_.h: Include <stddef.h>.
44453
44454 2007-03-05  Bruno Haible  <bruno@clisp.org>
44455
44456         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
44457
44458 2007-03-05  Bruno Haible  <bruno@clisp.org>
44459
44460         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
44461         NetBSD 4, from Ralf Wildenhues.
44462
44463 2007-03-04  Bruno Haible  <bruno@clisp.org>
44464
44465         * lib/vasprintf.h: Update #if logic for the case when the functions
44466         exist but are overridden.
44467
44468 2007-03-04  Bruno Haible  <bruno@clisp.org>
44469
44470         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
44471         implementations: glibc-2.4 and MacOS X 10.3.
44472         * tests/test-vasnprintf-posix.c (test_function): Test also the case
44473         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
44474         * tests/test-vasprintf-posix.c (test_function): Likewise.
44475
44476 2007-03-04  Bruno Haible  <bruno@clisp.org>
44477
44478         * modules/vasprintf-posix-tests: New file.
44479         * tests/test-vasprintf-posix.c: New file.
44480
44481         * modules/vasprintf-posix: New file.
44482         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
44483         defined.
44484         * m4/vasprintf-posix.m4: New file.
44485         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
44486         gl_FUNC_VASPRINTF.
44487         (gl_FUNC_VASPRINTF): Invoke it.
44488         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
44489         here.
44490         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
44491
44492 2007-03-04  Bruno Haible  <bruno@clisp.org>
44493
44494         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
44495         REPLACE_GETTIMEOFDAY.
44496         * modules/sys_time (Makefile.am): Likewise.
44497         * m4/sys_time_h.m4: Likewise.
44498         * m4/gettimeofday.m4: Likewise.
44499
44500 2007-03-04  Bruno Haible  <bruno@clisp.org>
44501
44502         * modules/vasnprintf-posix-tests: New file.
44503         * tests/test-vasnprintf-posix.c: New file.
44504
44505         * modules/vasnprintf-posix: New file.
44506         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
44507         printf-frexpl.h.
44508         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
44509         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
44510         REPLACE_VASNPRINTF is defined.
44511         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
44512         gl_FUNC_VASNPRINTF.
44513         (gl_FUNC_VASNPRINTF): Invoke it.
44514         * m4/vasnprintf-posix.m4: New file.
44515         * m4/printf.m4: New file.
44516
44517 2007-03-04  Bruno Haible  <bruno@clisp.org>
44518
44519         Compile progreloc.c only if --enable-relocatable is specified.
44520         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
44521         if --enable-relocatable was specified.
44522         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
44523         lib_SOURCES.
44524
44525 2007-03-04  Jim Meyering  <jim@meyering.net>
44526
44527         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
44528         Use it consistently, rather than enumerating errno constants.
44529
44530 2007-03-04  Bruno Haible  <bruno@clisp.org>
44531
44532         * modules/xvasprintf-tests: New file.
44533         * tests/test-xvasprintf.c: New file.
44534
44535         * modules/vasprintf-tests: New file.
44536         * tests/test-vasprintf.c: New file.
44537
44538         * modules/vasnprintf-tests: New file.
44539         * tests/test-vasnprintf.c: New file.
44540
44541         * modules/vsnprintf-tests: New file.
44542         * tests/test-vsnprintf.c: New file.
44543
44544         * modules/snprintf-tests: New file.
44545         * tests/test-snprintf.c: New file.
44546
44547 2007-03-04  Bruno Haible  <bruno@clisp.org>
44548
44549         Compile relocatable.c only if --enable-relocatable is specified.
44550         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
44551         gl_RELOCATABLE_LIBRARY.
44552         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
44553         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
44554         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
44555         gl_RELOCATABLE_LIBRARY.
44556         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
44557         (Makefile.am): Remove lib_SOURCES.
44558         * modules/relocatable-lib-lgpl (configure.ac): Invoke
44559         gl_RELOCATABLE_LIBRARY.
44560         (Makefile.am): Remove lib_SOURCES.
44561         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
44562         always.
44563         * modules/relocatable-prog-wrapper (configure.ac): Invoke
44564         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
44565
44566 2007-03-04  Bruno Haible  <bruno@clisp.org>
44567
44568         * modules/argmatch-tests: New file.
44569         * tests/test-argmatch.c: New file.
44570
44571         * tests/test-allocsa.c (main): Halve the number of loop runs.
44572
44573         * modules/alloca-opt-tests: New file.
44574         * tests/test-alloca-opt.c: New file.
44575
44576 2007-03-04  Jim Meyering  <jim@meyering.net>
44577
44578         Work around difference between Linux ACLs and Solaris 10 ZFS.
44579         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
44580         for EINVAL.
44581
44582 2007-03-03  Bruno Haible  <bruno@clisp.org>
44583
44584         * modules/relocatable-prog (Depends-on): Add back progreloc's
44585         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
44586
44587 2007-03-03  Bruno Haible  <bruno@clisp.org>
44588
44589         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
44590         * modules/relocatable-lib: New file.
44591
44592 2007-03-03  Bruno Haible  <bruno@clisp.org>
44593
44594         * modules/relocatable-prog: Renamed from modules/relocatable.
44595         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
44596
44597 2007-03-03  Bruno Haible  <bruno@clisp.org>
44598
44599         * modules/relocatable-script (Files): Add doc/relocatable.texi,
44600         m4/relocatable-lib.m4.
44601         (Depends-on): Remove 'relocatable'.
44602         (configure.ac): Add gl_RELOCATABLE_NOP.
44603
44604 2007-03-03  Bruno Haible  <bruno@clisp.org>
44605
44606         * modules/relocatable-prog-wrapper: New file.
44607         * modules/relocatable (Depends-on): Add it. Remove all other
44608         dependencies except progname.
44609         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
44610
44611         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
44612         (gl_FUNC_STRERROR): Nop.
44613         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
44614
44615         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
44616         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
44617
44618         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
44619         (gl_FUNC_READLINK): Update.
44620
44621         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
44622
44623 2007-03-03  Bruno Haible  <bruno@clisp.org>
44624
44625         * lib/xreadlink.c: Include <unistd.h> unconditionally.
44626         * modules/xreadlink (Depends-on): Add unistd.
44627         * modules/xreadlink-with-size (Depends-on): Likewise.
44628
44629 2007-03-03  Bruno Haible  <bruno@clisp.org>
44630
44631         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
44632         extracted from gt_FUNC_SETENV.
44633         (gt_FUNC_SETENV): Remove macro.
44634         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
44635         remove gt_FUNC_SETENV.
44636
44637 2007-03-03  Bruno Haible  <bruno@clisp.org>
44638
44639         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
44640         ENABLE_RELOCATABLE here.
44641         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
44642
44643 2007-03-03  Bruno Haible  <bruno@clisp.org>
44644
44645         * modules/rbtreehash-list-tests (Depends-on): Add progname.
44646         * tests/test-rbtreehash_list.c: Include progname.h.
44647         (main): Call set_program_name.
44648
44649         * modules/rbtree-oset-tests (Depends-on): Add progname.
44650         * tests/test-rbtree_oset.c: Include progname.h.
44651         (main): Call set_program_name.
44652
44653         * modules/rbtree-list-tests (Depends-on): Add progname.
44654         * tests/test-rbtree_list.c: Include progname.h.
44655         (main): Call set_program_name.
44656
44657         * modules/linked-list-tests (Depends-on): Add progname.
44658         * tests/test-linked_list.c: Include progname.h.
44659         (main): Call set_program_name.
44660
44661 2007-03-03  Bruno Haible  <bruno@clisp.org>
44662
44663         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
44664         All uses of __restrict changed to _Restrict_.
44665         * lib/glob_.h (__restrict): Remove macro.
44666
44667 2007-03-02  Bruno Haible  <bruno@clisp.org>
44668
44669         * modules/gettext (configure.ac): Require gettext infrastructure
44670         from version 0.16.1.
44671
44672 2007-03-02  Bruno Haible  <bruno@clisp.org>
44673
44674         * modules/linkedhash-list-tests (Depends-on): Add progname.
44675         * tests/test-linkedhash_list.c: Include progname.h.
44676         (main): Call set_program_name.
44677
44678         * modules/carray-list-tests (Depends-on): Add progname.
44679         * tests/test-carray_list.c: Include progname.h.
44680         (main): Call set_program_name.
44681
44682         * modules/avltreehash-list-tests (Depends-on): Add progname.
44683         * tests/test-avltreehash_list.c: Include progname.h.
44684         (main): Call set_program_name.
44685
44686         * modules/avltree-oset-tests (Depends-on): Add progname.
44687         * tests/test-avltree_oset.c: Include progname.h.
44688         (main): Call set_program_name.
44689
44690         * modules/avltree-list-tests (Depends-on): Add progname.
44691         * tests/test-avltree_list.c: Include progname.h.
44692         (main): Call set_program_name.
44693
44694         * modules/array-oset-tests (Depends-on): Add progname.
44695         * tests/test-array_oset.c: Include progname.h.
44696         (main): Call set_program_name.
44697
44698         * modules/array-list-tests (Depends-on): Add progname.
44699         * tests/test-array_list.c: Include progname.h.
44700         (main): Call set_program_name.
44701
44702         * modules/argp-tests (Depends-on): Add progname.
44703         * tests/test-argp.c: Include argp.h first. Include progname.h.
44704         (main): Call set_program_name.
44705
44706 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
44707
44708         * doc/gnulib-tool.texi (Initial import): Reword description of
44709         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
44710         limited effect even if defined after the first system include.
44711
44712 2007-03-01  Bruno Haible  <bruno@clisp.org>
44713
44714         * build-aux/config.libpath: Update to libtool-1.5.22.
44715         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44716
44717 2007-03-01  Bruno Haible  <bruno@clisp.org>
44718
44719         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
44720         foo_CFLAGS.
44721         Reported by Ralf Wildenhues.
44722
44723 2007-03-01  Bruno Haible  <bruno@clisp.org>
44724
44725         * build-aux/install-reloc: Remove object files left over by some
44726         compilers.
44727         Reported by Ralf Wildenhues.
44728
44729 2007-03-01  Bruno Haible  <bruno@clisp.org>
44730
44731         * build-aux/install-reloc: Break long lines.
44732
44733 2007-03-01  Bruno Haible  <bruno@clisp.org>
44734
44735         * doc/relocatable.texi: Document that it may not work on OpenBSD.
44736         Reported by Ralf Wildenhues.
44737
44738 2007-03-01  Bruno Haible  <bruno@clisp.org>
44739
44740         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
44741         include ordering constraints.
44742
44743 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44744
44745         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
44746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
44747         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
44748         as another example.
44749         * lib/time_.h: Fix misspelling.
44750         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44751         Require gl_HEADER_TIME_H_DEFAULTS.
44752         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
44753         * m4/time_r.m4 (gl_TIME_R): Likewise.
44754         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
44755
44756 2007-03-01  Bruno Haible  <bruno@clisp.org>
44757
44758         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
44759         * m4/utimens.m4 (gl_UTIMENS): Likewise.
44760
44761 2007-03-01  Jim Meyering  <jim@meyering.net>
44762
44763         * modules/xreadlink (Maintainer): Add my name.
44764         * modules/xreadlink-with-size (Depends-on): Alphabetize.
44765
44766 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
44767             Bruno Haible  <bruno@clisp.org>
44768
44769         * build-aux/install-reloc: Compile also c-ctype.c.
44770         * build-aux/relocatable.sh.in: New file.
44771         * doc/relocatable.texi: New file.
44772         * doc/relocatable-maint.texi: New file.
44773         * doc/gnulib.texi: Include relocatable-maint.texi.
44774         * lib/progreloc.c: Include unistd.h unconditionally.
44775         * lib/relocwrapper.c: Include unistd.h unconditionally.
44776         Include c-ctype.h.
44777         (add_dotbin): Use c_tolower.
44778         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
44779         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
44780         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
44781         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
44782         to m4/relocatable-lib.m4.
44783         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
44784         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
44785         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
44786         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
44787         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
44788         * modules/relocatable: New file.
44789         * modules/relocatable-lib: New file.
44790         * modules/relocatable-script: New file.
44791
44792 2007-02-28  Bruno Haible  <bruno@clisp.org>
44793
44794         Import --enable-relocatable infrastructure.
44795         * build-aux/config.libpath: New file, from GNU gettext.
44796         * build-aux/install-reloc: New file, from GNU gettext.
44797         * build-aux/reloc-ldflags: New file, from GNU gettext.
44798         * lib/relocatable.h: New file, from GNU gettext.
44799         * lib/relocatable.c: New file, from GNU gettext.
44800         * lib/relocwrapper.c: New file, from GNU gettext.
44801         * m4/relocatable.m4: New file, from GNU gettext.
44802
44803 2007-02-28  Bruno Haible  <bruno@clisp.org>
44804
44805         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
44806
44807         * modules/xreadlink: New file, from GNU gettext with modifications.
44808         * lib/xreadlink.c: New file, from GNU gettext.
44809         * lib/xreadlink.h: Add comments.
44810         (xreadlink): New declaration.
44811
44812         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
44813         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
44814         lib/xreadlink-with-size.c.
44815         (configure.ac): Remove gl_XREADLINK invocation.
44816         (Makefile.am): Augment lib_SOURCES.
44817         * m4/xreadlink.m4: Remove file.
44818         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
44819         (xreadlink_with_size): Renamed from xreadink.
44820         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
44821         * modules/canonicalize (Depends-on): Replace xreadlink with
44822         xreadlink-with-size.
44823         * lib/canonicalize.c (canonicalize_filename_mode): Update.
44824
44825 2007-02-25  Jim Meyering  <jim@meyering.net>
44826
44827         * build-aux/announce-gen: When complaining about excess arguments,
44828         list them.
44829
44830 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44831
44832         * README: Document signed integer overflow situation more
44833         accurately.
44834
44835 2007-02-25  Bruno Haible  <bruno@clisp.org>
44836
44837         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
44838         'a' or 'A' conversion.
44839
44840 2007-02-25  Bruno Haible  <bruno@clisp.org>
44841
44842         * modules/filename: Renamed from modules/pathname.
44843         (Files): Replace lib/pathname.h with lib/filename.h. Replace
44844         lib/concatpath.c with lib/concat-filename.c.
44845         (Makefile.am): Update.
44846         (Include): Replace pathname.h with filename.h.
44847         * lib/filename.h: Renamed from lib/pathname.h.
44848         (concatenated_filename): Renamed from concatenated_pathname.
44849         * lib/concat-filename.c: Renamed from lib/concatpath.c.
44850         (concatenated_filename): Renamed from concatenated_pathname.
44851         * lib/findprog.c: Include filename.h instead of pathname.h.
44852         (find_in_path): Update.
44853         * lib/javacomp.c: Include filename.h instead of pathname.h.
44854         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44855         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44856         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44857         is_oldgcj_14_13_usable, is_javac_usable): Update.
44858         * lib/javaexec.c: Include filename.h instead of pathname.h.
44859         (execute_java_class): Update.
44860         * modules/findprog: Update.
44861         * modules/javacomp: Update.
44862         * modules/javaexec: Update.
44863         * MODULES.html.sh (File system functions): Add 'filename', remove
44864         'pathname'.
44865
44866 2007-02-25  Bruno Haible  <bruno@clisp.org>
44867
44868         * modules/printf-frexpl-tests: New file.
44869         * tests/test-printf-frexpl.c: New file.
44870
44871         * modules/printf-frexpl: New file.
44872         * lib/printf-frexpl.h: New file.
44873         * lib/printf-frexpl.c: New file.
44874         * m4/printf-frexpl.m4: New file.
44875
44876 2007-02-25  Bruno Haible  <bruno@clisp.org>
44877
44878         * modules/printf-frexp-tests: New file.
44879         * tests/test-printf-frexp.c: New file.
44880
44881         * modules/printf-frexp: New file.
44882         * lib/printf-frexp.h: New file.
44883         * lib/printf-frexp.c: New file.
44884         * m4/printf-frexp.m4: New file.
44885
44886 2007-02-25  Bruno Haible  <bruno@clisp.org>
44887
44888         Assume automake >= 1.10 for the tests.
44889         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
44890         * modules/arctwo-tests: Likewise.
44891         * modules/argp-tests: Likewise.
44892         * modules/avltree-list-tests: Likewise.
44893         * modules/avltree-oset-tests: Likewise.
44894         * modules/avltreehash-list-tests: Likewise.
44895         * modules/carray-list-tests: Likewise.
44896         * modules/crc-tests: Likewise.
44897         * modules/des-tests: Likewise.
44898         * modules/gc-arcfour-tests: Likewise.
44899         * modules/gc-arctwo-tests: Likewise.
44900         * modules/gc-des-tests: Likewise.
44901         * modules/gc-hmac-md5-tests: Likewise.
44902         * modules/gc-hmac-sha1-tests: Likewise.
44903         * modules/gc-md2-tests: Likewise.
44904         * modules/gc-md4-tests: Likewise.
44905         * modules/gc-md5-tests: Likewise.
44906         * modules/gc-pbkdf2-sha1-tests: Likewise.
44907         * modules/gc-rijndael-tests: Likewise.
44908         * modules/gc-sha1-tests: Likewise.
44909         * modules/gc-tests: Likewise.
44910         * modules/getaddrinfo-tests: Likewise.
44911         * modules/hmac-md5-tests: Likewise.
44912         * modules/hmac-sha1-tests: Likewise.
44913         * modules/linked-list-tests: Likewise.
44914         * modules/linkedhash-list-tests: Likewise.
44915         * modules/lock-tests: Likewise.
44916         * modules/md2-tests: Likewise.
44917         * modules/md4-tests: Likewise.
44918         * modules/md5-tests: Likewise.
44919         * modules/rbtree-list-tests: Likewise.
44920         * modules/rbtree-oset-tests: Likewise.
44921         * modules/rbtreehash-list-tests: Likewise.
44922         * modules/read-file-tests: Likewise.
44923         * modules/rijndael-tests: Likewise.
44924         * modules/stdint-tests: Likewise.
44925         * modules/tls-tests: Likewise.
44926
44927 2007-02-24  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
44930         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
44931         function; instead check whether isnan with a double argument links.
44932         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
44933         function; instead check whether isnan with a 'long double' argument
44934         links.
44935         Reported by Eric Blake <ebb9@byu.net>.
44936
44937 2007-02-24  Bruno Haible  <bruno@clisp.org>
44938
44939         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
44940         defined.
44941         * lib/isnanl.c: Remove all code. Just include isnan.c.
44942         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
44943
44944 2007-02-25  Jim Meyering  <jim@meyering.net>
44945
44946         Avoid conflicting types for 'unsetenv' on FreeBSD.
44947         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
44948         conflicting with FreeBSD's (5.0 and 6.1) function declaration
44949         in stdlib.h.
44950
44951 2007-02-24  Bruno Haible  <bruno@clisp.org>
44952
44953         * modules/isnanl-nolibm-tests: New file.
44954         * tests/test-isnanl.c: New file.
44955
44956         * modules/isnanl-nolibm: New file.
44957         * lib/isnanl.h: New file.
44958         * lib/isnanl.c: New file.
44959         * m4/isnanl.m4: New file.
44960
44961 2007-02-24  Bruno Haible  <bruno@clisp.org>
44962
44963         * modules/isnan-nolibm-tests: New file.
44964         * tests/test-isnan.c: New file.
44965
44966         * modules/isnan-nolibm: New file.
44967         * lib/isnan.h: New file.
44968         * lib/isnan.c: New file.
44969         * m4/isnan.m4: New file.
44970
44971 2007-02-24  Bruno Haible  <bruno@clisp.org>
44972
44973         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
44974         assume that an exponent fits in 20 bits.
44975
44976 2007-02-24  Jim Meyering  <jim@meyering.net>
44977
44978         * m4/regex.m4: Update the description of the configure-time option,
44979         --without-included-regex, to state accurately what the defaults are,
44980         and perhaps to give people an idea why using this option is risky.
44981
44982 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44983
44984         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
44985         loops on small arguments.  This attempts to avoid the problem
44986         Bruno Haible reported for AIX 4.3.2 in
44987         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
44988
44989 2007-02-23  Bruno Haible  <bruno@clisp.org>
44990
44991         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
44992         Needed for help2man.
44993
44994 2007-02-23  Karl Berry  <karl@gnu.org>
44995
44996         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
44997         exists, foo.h should be cvs-ignored, not committed.
44998
44999 2007-02-23  Eric Blake  <ebb9@byu.net>
45000
45001         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
45002         * lib/stat-time.h (includes): Likewise.
45003         * lib/utimecmp.c (includes): Likewise.
45004         * lib/utimens.h (includes): Likewise.
45005         * lib/getdate.y (includes): Also include "timespec.h" for use
45006         internal to the module.
45007         * modules/utimens (Depends-on): Revert yesterday's patch.
45008         * modules/nanosleep (Depends-on): Add missing dependency.
45009
45010 2007-02-22  Bruno Haible  <bruno@clisp.org>
45011
45012         * lib/glob.c: Don't include getlogin_r.h.
45013
45014 2007-02-22  Jim Meyering  <jim@meyering.net>
45015
45016         * modules/utimens (Depends-on): Add timespec, required for
45017         utimens.h's inclusion of timespec.h.
45018
45019 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
45020
45021         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
45022         long unreadable paths in GNU/Linux.  Problem reported by Andreas
45023         Schwab in
45024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
45025         I'll try to think of a better way to fix the Solaris problem.
45026
45027         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
45028         like glibc; on Solaris 10, it fails with errno == EINVAL.
45029         POSIX says the behavior is unspecified if the first argument is NULL,
45030         so play it safe and never pass NULL to the system getcwd.
45031
45032 2007-02-21  Jim Meyering  <jim@meyering.net>
45033
45034         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
45035         of gettimeofday.  It would conflict with the one now always
45036         provided via sys_time_.h.  Reported by Matthew Woehlke, as
45037         an IRIX 6.5 build failure.
45038
45039 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45040
45041         Minor fixups to port to Solaris 10 with Sun C 5.8.
45042         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
45043         * modules/getcwd (Depends-on): Add dirfd.
45044         * lib/putenv.c (putenv): #undef it.
45045         (rpl_putenv): New decl.
45046         (malloc, free): Include <stdlib.h> rather than prototyping separately.
45047
45048 2007-02-20  Bruno Haible  <bruno@clisp.org>
45049
45050         * modules/stdio-tests: New file.
45051         * tests/test-stdio.c: New file.
45052
45053         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
45054         (Depends-on): Add stdio.
45055         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45056         (Include): Use <stdio.h> instead of vsnprintf.h.
45057         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45058         HAVE_DECL_VSNPRINTF.
45059         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
45060
45061         * modules/snprintf (Files): Remove lib/snprintf.h.
45062         (Depends-on): Add stdio.
45063         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45064         (Include): Use <stdio.h> instead of snprintf.h.
45065         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45066         HAVE_DECL_SNPRINTF.
45067         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
45068         * lib/getaddrinfo.c: Likewise.
45069
45070         * modules/stdio: New file.
45071         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
45072         * lib/snprintf.h: Remove file.
45073         * lib/vsnprintf.h: Remove file.
45074         * lib/.cppi-disable: Remove snprintf.h.
45075         * m4/stdio_h.m4: New file.
45076         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
45077
45078 2007-02-20  Jim Meyering  <jim@meyering.net>
45079
45080         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
45081         used by e.g., mingw.  From Bruno Haible.
45082
45083 2007-02-19  Bruno Haible  <bruno@clisp.org>
45084
45085         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
45086         warnings.
45087         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45088
45089 2007-02-19  Bruno Haible  <bruno@clisp.org>
45090
45091         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
45092         from mingw users.
45093
45094 2007-02-19  Bruno Haible  <bruno@clisp.org>
45095
45096         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
45097         warnings.
45098         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
45099
45100 2007-02-19  Jim Meyering  <jim@meyering.net>
45101
45102         Don't use FD after a successful "fdopendir (fd)".
45103         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
45104         Reset it by calling dirfd on the just-obtained DIR*.
45105
45106         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
45107         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
45108
45109 2007-02-18  Bruno Haible  <bruno@clisp.org>
45110
45111         * lib/readlink.c: Include <unistd.h>.
45112         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
45113         HAVE_READLINK.
45114         * modules/readlink (Depends-on): Add unistd.
45115         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45116         (Include): Add <unistd.h>.
45117
45118         * lib/getlogin_r.h: Remove file.
45119         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
45120         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
45121         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
45122         HAVE_DECL_GETLOGIN_R.
45123         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
45124         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45125         (Include): Use <unistd.h> instead of getlogin_r.h.
45126
45127         * lib/getcwd.h: Remove file.
45128         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
45129         * lib/xgetcwd.c: Likewise.
45130         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
45131         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
45132         * modules/getcwd (Files): Remove lib/getcwd.h.
45133         (Depends-on): Add unistd.
45134         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45135         (Include): Use <unistd.h> instad of getcwd.h.
45136
45137         * lib/ftruncate.c: Include <unistd.h> first.
45138         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
45139         Set HAVE_FTRUNCATE.
45140         * modules/ftruncate (Depends-on): Add unistd.
45141         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45142
45143         * lib/fchdir.c: Include <unistd.h> first.
45144         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
45145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
45146         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
45147         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45148         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
45149
45150         * lib/dup2.c: Include <unistd.h> first.
45151         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
45152         HAVE_DUP2.
45153         * modules/dup2 (Depends-on): Add unistd.
45154         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45155
45156         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
45157         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
45158         REPLACE_CHOWN. Don't define chown as a macro here.
45159         * modules/chown (Depends-on): Add unistd.
45160         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45161
45162         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
45163         Add definition for GL_LINK_WARNING.
45164         (chown, dup2): New declarations.
45165         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
45166         link warning.
45167         (ftruncate): New declaration.
45168         (getcwd): New declaration, taken from old getcwd.h.
45169         (getlogin_r): New declaration, taken from old getlogin_r.h.
45170         (readlink): New declaration.
45171         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
45172         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
45173         (gl_PREREQ_UNISTD): Remove macro.
45174         (gl_UNISTD_MODULE_INDICATOR): New macro.
45175         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
45176         many new variables. Don't set UNISTD_H.
45177         * modules/unistd (Description): Change.
45178         (Depends-on): Add link-warning.
45179         (configure.ac): Update.
45180         (Makefile.am): Create unistd.h always. Substitute many new variables
45181         into it.
45182
45183 2007-02-18  Bruno Haible  <bruno@clisp.org>
45184
45185         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
45186         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
45187         HAVE_GETSUBOPT.
45188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
45189         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
45190         * lib/getsubopt.h: Remove file.
45191         * modules/getsubopt (Files): Remove lib/getsubopt.h.
45192         (Depends-on): Add stdlib.
45193         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45194         (Includes): Use <stdlib.h> instead of getsubopt.h.
45195         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
45196         Set HAVE_GETSUBOPT.
45197         * lib/getsubopt.c: Don't include getsubopt.h.
45198
45199 2007-02-18  Bruno Haible  <bruno@clisp.org>
45200
45201         * modules/fchdir (Depends-on): Add dup2.
45202
45203 2007-02-18  Bruno Haible  <bruno@clisp.org>
45204
45205         * lib/stdlib_.h: Handle glibc's special invocation convention
45206         specially.
45207
45208 2007-02-18  Bruno Haible  <bruno@clisp.org>
45209
45210         * modules/stdlib-tests: New file.
45211         * tests/test-stdlib.c: New file.
45212
45213         * modules/mkstemp (Files): Remove lib/mkstemp.h.
45214         (Depends-on): Add stdlib.
45215         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45216         (Includes): Use <stdlib.h> instead of mkstemp.h.
45217         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45218         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
45219         * lib/mkstemp.c: Don't include mkstemp.h.
45220         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
45221         * lib/stdlib--.h: Don't include mkstemp.h.
45222
45223         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
45224         (Depends-on): Add stdlib.
45225         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45226         (Includes): Use <stdlib.h> instead of mkdtemp.h.
45227         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45228         HAVE_MKDTEMP.
45229         * lib/mkdtemp.c: Don't include mkdtemp.h.
45230         * lib/clean-temp.c: Don't include mkdtemp.h.
45231
45232         * modules/exit (Files): Remove lib/exit.h.
45233         (Depends-on): Add stdlib.
45234         (Makefile.am): Remove lib_SOURCES.
45235         (Include): Use <stdlib.h> instead of exit.h.
45236         * lib/argmatch.c: Don't include exit.h.
45237         * lib/execute.c: Likewise.
45238         * lib/pagealign_alloc.c: Likewise.
45239         * lib/pipe.c: Likewise.
45240         * lib/wait-process.c: Likewise.
45241         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
45242         * lib/exitfail.c: Likewise.
45243         * lib/savewd.c: Likewise.
45244         * lib/xsetenv.c: Likewise.
45245
45246         * modules/stdlib: New file.
45247         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
45248         and extra comments about mkstemp().
45249         * lib/exit.h: Remove file.
45250         * lib/mkdtemp.h: Remove file.
45251         * lib/mkstemp.h: Remove file.
45252         * m4/stdlib_h.m4: New file.
45253         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
45254
45255 2007-02-18  Bruno Haible  <bruno@clisp.org>
45256
45257         * modules/math-tests: New file.
45258         * tests/test-math.c: New file.
45259
45260         * modules/math: New file.
45261         * modules/mathl (Files): Remove lib/mathl.h.
45262         (Depends-on): Add math.
45263         (Makefile.am): Don't mention mathl.h.
45264         (Include): Use <math.h> instead of mathl.h.
45265         * lib/math_.h: New file.
45266         * lib/mathl.h: Remove file.
45267         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
45268         mathl.h.
45269         * lib/asinl.c: Likewise.
45270         * lib/atanl.c: Likewise.
45271         * lib/ceill.c: Likewise.
45272         * lib/cosl.c: Likewise.
45273         * lib/expl.c: Likewise.
45274         * lib/floorl.c: Likewise.
45275         * lib/frexpl.c: Likewise.
45276         * lib/ldexpl.c: Likewise.
45277         * lib/logl.c: Likewise.
45278         * lib/sincosl.c: Likewise.
45279         * lib/sinl.c: Likewise.
45280         * lib/sqrtl.c: Likewise.
45281         * lib/tanl.c: Likewise.
45282         * lib/trigl.c: Likewise.
45283         * m4/math_h.m4: New file.
45284         * MODULES.html.sh (Mathematics): Add math.
45285
45286 2007-02-17  Bruno Haible  <bruno@clisp.org>
45287
45288         * modules/wctype-tests: New file.
45289         * tests/test-wctype.c: New file.
45290
45291         * modules/wchar-tests: New file.
45292         * tests/test-wchar.c: New file.
45293
45294         * modules/unistd-tests: New file.
45295         * tests/test-unistd.c: New file.
45296
45297         * modules/time-tests: New file.
45298         * tests/test-time.c: New file.
45299
45300         * modules/sysexits-tests: New file.
45301         * tests/test-sysexits.c: New file.
45302
45303         * modules/sys_time-tests: New file.
45304         * tests/test-sys_time.c: New file.
45305
45306         * modules/sys_stat-tests: New file.
45307         * tests/test-sys_stat.c: New file.
45308
45309         * modules/sys_socket-tests: New file.
45310         * tests/test-sys_socket.c: New file.
45311
45312         * modules/sys_select-tests: New file.
45313         * tests/test-sys_select.c: New file.
45314
45315         * modules/string-tests: New file.
45316         * tests/test-string.c: New file.
45317
45318         * modules/stdbool-tests: New file.
45319         * tests/test-stdbool.c: New file.
45320
45321         * modules/netinet_in-tests: New file.
45322         * tests/test-netinet_in.c: New file.
45323
45324         * modules/inttypes-tests: New file.
45325         * tests/test-inttypes.c: New file.
45326
45327         * modules/fcntl-tests: New file.
45328         * tests/test-fcntl.c: New file.
45329
45330         * modules/byteswap-tests: New file.
45331         * tests/test-byteswap.c: New file.
45332
45333         * modules/arpa_inet-tests: New file.
45334         * tests/test-arpa_inet.c: New file.
45335
45336 2007-02-17  Bruno Haible  <bruno@clisp.org>
45337
45338         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
45339         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
45340         if the corresponding module is not enabled. Emit link warnings if
45341         the function is used nevertheless.
45342         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
45343         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
45344         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
45345         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
45346         * modules/inttypes (Depends-on): Add link-warning.
45347         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45348         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
45349         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
45350         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
45351         * modules/imaxdiv (configure.ac): Likewise.
45352         * modules/strtoimax (configure.ac): Likewise.
45353         * modules/strtoumax (configure.ac): Likewise.
45354
45355 2007-02-17  Bruno Haible  <bruno@clisp.org>
45356
45357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
45358         gl_STRING_MODULE_INDICATOR_DEFAULTS.
45359         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
45360         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
45361
45362 2007-02-17  Bruno Haible  <bruno@clisp.org>
45363
45364         * modules/link-warning: New file.
45365         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
45366         * lib/string_.h (GL_LINK_WARNING): Remove definition.
45367         * modules/string (Depends-on): Add link-warning.
45368         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45369         string.h.
45370         * MODULES.html.sh (Support for building libraries and executables): Add
45371         link-warning.
45372
45373 2007-02-17  Bruno Haible  <bruno@clisp.org>
45374
45375         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
45376         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
45377         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
45378         long lines.
45379
45380 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
45381             Bruno Haible  <bruno@clisp.org>
45382
45383         * modules/tmpfile: New file.
45384         * lib/tmpfile.c: New file.
45385         * m4/tmpfile.m4: New file.
45386         * MODULES.html.sh (func_all_modules): New section "Input/output".
45387
45388 2007-02-15  Bruno Haible  <bruno@clisp.org>
45389
45390         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
45391         (supports_delete_on_close): New function.
45392         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
45393
45394 2007-02-14  Bruno Haible  <bruno@clisp.org>
45395
45396         * modules/mbspcasecmp-tests: New file.
45397         * tests/test-mbspcasecmp.sh: New file.
45398         * tests/test-mbspcasecmp.c: New file.
45399
45400         New module mbspcasecmp.
45401         * modules/mbspcasecmp: New file.
45402         * lib/mbspcasecmp.c: New file.
45403         * lib/string_.h (strncasecmp): Change warning message.
45404         (mbspcasecmp): New declaration.
45405         * m4/mbspcasecmp.m4: New file.
45406         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45407         GNULIB_MBSPCASECMP.
45408         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
45409         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
45410
45411 2007-02-14  Bruno Haible  <bruno@clisp.org>
45412
45413         * modules/mbsncasecmp-tests: New file.
45414         * tests/test-mbsncasecmp.sh: New file.
45415         * tests/test-mbsncasecmp.c: New file.
45416
45417         New module mbsncasecmp.
45418         * modules/mbsncasecmp: New file.
45419         * lib/mbsncasecmp.c: New file.
45420         * lib/string_.h (mbsncasecmp): New declaration.
45421         * m4/mbsncasecmp.m4: New file.
45422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45423         GNULIB_MBSNCASECMP.
45424         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
45425         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
45426
45427 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45428
45429         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
45430         Verify that it doesn't overlap with our flags.
45431         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
45432         do not have the desired effect in multibyte locales; instead, use
45433         mbscasecmp.
45434         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
45435         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
45436         we don't require GNU fnmatch ourselves (if our users require it, they
45437         should do so explicitly).
45438
45439         Fix regex code so it doesn't rely on strcasecmp.
45440         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
45441         Otherwise, include gnulib's langinfo.h.
45442         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
45443         undesirable behavior in non-C locales.  Instead, rely on localecharset.
45444         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
45445         * modules/regex (FILES): Remove m4/codeset.m4.
45446         (Depends-on): Add localcharset.  Remove strcase.
45447
45448 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45449
45450         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
45451         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
45452
45453 2007-02-13  Bruno Haible  <bruno@clisp.org>
45454
45455         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
45456         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45457
45458 2007-02-12  Bruno Haible  <bruno@clisp.org>
45459
45460         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45461         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
45462         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
45463         time warning rather than a link error.
45464
45465 2007-02-12  Bruno Haible  <bruno@clisp.org>
45466
45467         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
45468         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45469         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45470
45471 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
45472
45473         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
45474         args, not 2.
45475
45476 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
45477
45478         New module 'time', so that apps can include <time.h> as per
45479         POSIX and GNU instead of separate include files like time_r.h
45480         and timegm.h.  This implementation tries out a simpler approach
45481         for replacing decls in standard include files (as compared to
45482         the string module), somewhat as an experiment.
45483
45484         * config/srclist.txt: Comment out mktime.c for now.
45485         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
45486         since it doesn't apply any more.  Use generic wording instead.
45487         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
45488         'time'.
45489         * lib/time_.h, m4/time_h.m4, modules/time: New files.
45490         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
45491         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
45492         Don't include <sys/types.h>; no longer needed since we assume C89.
45493         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
45494         * lib/strftime.c: Likewise.
45495         * lib/time_r.c: Likewise.
45496         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
45497         * lib/nanosleep.c: Include <time.h> first, to check interface.
45498         * lib/strptime.c: Likewise.
45499         * lib/time_r.c: Likewise.
45500         * lib/timegm.c: Likewise.
45501         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
45502         needed.
45503         * lib/timegm.c: Don't include timegm.h; no longer needed.
45504         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
45505         time.h now handles any problems in that area.
45506         (struct timespec, nanosleep): Remove; time.h now arranges for these.
45507         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
45508         that time.h defines struct timespec.
45509         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
45510         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
45511         handles that.
45512         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
45513         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
45514         needed.  Set REPLACE_LOCALTIME.
45515         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
45516         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
45517         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
45518         nanosleep; time_h.m4 now does that.  Don't require
45519         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
45520         module handles this now.
45521         * modules/getdate (Depends-on): Remove timespec.  Add time.
45522         * modules/nanosleep (Depends-on): Likewise.
45523         * modules/stat-time (Depends-on): Likewise.
45524         * modules/nanosleep (Include): Include time.h, not timespec.h.
45525         * modules/strptime (Files): Remove lib/strptime.h.
45526         (Depends-on): Add extensions, time.
45527         (Include): Include time.h, not strptime.h.
45528         * modules/time_r (Files): Remove lib/time_r.h.
45529         (Depends-on): Add time.
45530         (Include): Include time.h, not time_r.h.
45531         * modules/timegm: Likewise.
45532         * modules/timespec (Description): Now does timespec-related decls
45533         of our own, instead of struct timespec itself.
45534         (Depends-on): Add time; remove extensions.
45535         (Maintainer): Add self.
45536         * modules/utimecmp (Depends-on): Add time; remove timespec.
45537         * modules/utimens (Depends-on): Likewise.
45538         * modules/xnanosleep (Depends-on): Likewise.
45539
45540 2007-02-11  Bruno Haible  <bruno@clisp.org>
45541
45542         * lib/c-strstr.c: Include allocsa.h.
45543         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45544         * lib/c-strcasestr.c: Include allocsa.h.
45545         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45546         * lib/strcasestr.c: Include allocsa.h.
45547         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
45548         * lib/mbsstr.c: Include allocsa.h.
45549         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45550         allocsa/freesa instead of malloc/free.
45551         * lib/mbscasestr.c: Include allocsa.h.
45552         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
45553         allocsa/freesa instead of malloc/free.
45554         * modules/c-strstr (Depends-on): Add allocsa.
45555         * modules/c-strcasestr (Depends-on): Likewise.
45556         * modules/strcasestr (Depends-on): Likewise.
45557         * modules/mbsstr (Depends-on): Likewise.
45558         * modules/mbscasestr (Depends-on): Likewise.
45559
45560 2007-02-11  Bruno Haible  <bruno@clisp.org>
45561
45562         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
45563
45564         * modules/mbsspn-tests: New file.
45565         * tests/test-mbsspn.sh: New file.
45566         * tests/test-mbsspn.c: New file.
45567
45568 2007-02-11  Bruno Haible  <bruno@clisp.org>
45569
45570         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
45571
45572         * modules/mbspbrk-tests: New file.
45573         * tests/test-mbspbrk.sh: New file.
45574         * tests/test-mbspbrk.c: New file.
45575
45576 2007-02-11  Bruno Haible  <bruno@clisp.org>
45577
45578         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
45579         unneeded cast.
45580
45581         * modules/mbscspn-tests: New file.
45582         * tests/test-mbscspn.sh: New file.
45583         * tests/test-mbscspn.c: New file.
45584
45585 2007-02-11  Bruno Haible  <bruno@clisp.org>
45586
45587         * modules/mbscasecmp-tests: New file.
45588         * tests/test-mbscasecmp.sh: New file.
45589         * tests/test-mbscasecmp.c: New file.
45590
45591 2007-02-11  Bruno Haible  <bruno@clisp.org>
45592
45593         Ensure O(n) worst-case complexity of mbscasestr.
45594         * lib/mbscasestr.c: Include stdbool.h.
45595         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45596         functions.
45597         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
45598         the bookkeeping indicates that it's worth it.
45599         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
45600
45601         * modules/mbscasestr-tests: New file.
45602         * tests/test-mbscasestr1.c: New file.
45603         * tests/test-mbscasestr2.sh: New file.
45604         * tests/test-mbscasestr2.c: New file.
45605         * tests/test-mbscasestr3.sh: New file.
45606         * tests/test-mbscasestr3.c: New file.
45607         * tests/test-mbscasestr4.sh: New file.
45608         * tests/test-mbscasestr4.c: New file.
45609         * m4/locale-tr.m4: New file.
45610
45611 2007-02-11  Bruno Haible  <bruno@clisp.org>
45612
45613         Ensure O(n) worst-case complexity of mbsstr.
45614         * lib/mbsstr.c: Include stdbool.h.
45615         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
45616         functions.
45617         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
45618         bookkeeping indicates that it's worth it.
45619         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
45620
45621         * modules/mbsstr-tests: New file.
45622         * tests/test-mbsstr1.c: New file.
45623         * tests/test-mbsstr2.sh: New file.
45624         * tests/test-mbsstr2.c: New file.
45625         * tests/test-mbsstr3.sh: New file.
45626         * tests/test-mbsstr3.c: New file.
45627         * m4/locale-fr.m4: New file.
45628
45629 2007-02-11  Bruno Haible  <bruno@clisp.org>
45630
45631         * lib/mbsrchr.c (mbsrchr): Fix bug.
45632
45633         * modules/mbsrchr-tests: New file.
45634         * tests/test-mbsrchr.sh: New file.
45635         * tests/test-mbsrchr.c: New file.
45636
45637 2007-02-11  Bruno Haible  <bruno@clisp.org>
45638
45639         * lib/mbschr.c (mbschr): Fix bug.
45640
45641         * modules/mbschr-tests: New file.
45642         * tests/test-mbschr.sh: New file.
45643         * tests/test-mbschr.c: New file.
45644         * m4/locale-zh.m4: New file.
45645
45646 2007-02-11  Bruno Haible  <bruno@clisp.org>
45647
45648         Support for copying multibyte string iterators.
45649         * lib/mbiter.h: Include <string.h>.
45650         (mbiter_multi_copy): New function.
45651         (mbi_copy): New macro.
45652         * lib/mbuiter.h: Include <string.h>.
45653         (mbuiter_multi_copy): New function.
45654         (mbui_copy): New macro.
45655
45656 2007-02-11  Bruno Haible  <bruno@clisp.org>
45657
45658         New module mbslen.
45659         * modules/mbslen: New file.
45660         * lib/mbslen.c: New file.
45661         * lib/string_.h (mbslen): New declaration.
45662         * m4/mbslen.m4: New file.
45663         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45664         GNULIB_MBSLEN.
45665         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
45666         * MODULES.html.sh (Internationalization functions): Add mbslen.
45667
45668 2007-02-11  Bruno Haible  <bruno@clisp.org>
45669
45670         Ensure O(n) worst-case complexity of strcasestr substitute.
45671         * lib/strcasestr.c: Include stdbool.h.
45672         (knuth_morris_pratt): New function.
45673         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45674         bookkeeping indicates that it's worth it.
45675         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
45676
45677         * modules/strcasestr-tests: New file.
45678         * tests/test-strcasestr.c: New file.
45679
45680 2007-02-11  Bruno Haible  <bruno@clisp.org>
45681
45682         Ensure O(n) worst-case complexity of c_strcasestr.
45683         * lib/c-strcasestr.c: Include stdbool.h, string.h.
45684         (knuth_morris_pratt): New function.
45685         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
45686         the bookkeeping indicates that it's worth it.
45687         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
45688
45689         * modules/c-strcasestr-tests: New file.
45690         * tests/test-c-strcasestr.c: New file.
45691
45692 2007-02-11  Bruno Haible  <bruno@clisp.org>
45693
45694         Ensure O(n) worst-case complexity of c_strstr.
45695         * lib/c-strstr.c: Include stdbool.h, string.h.
45696         (knuth_morris_pratt): New function.
45697         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45698         bookkeeping indicates that it's worth it.
45699         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
45700
45701         * lib/c-strstr.c: Complete rewrite for maintainability.
45702
45703         * modules/c-strstr-tests: New file.
45704         * tests/test-c-strstr.c: New file.
45705
45706 2007-02-11  Bruno Haible  <bruno@clisp.org>
45707
45708         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
45709         5.2.1 and earlier, whereby \055 was treated just like the range
45710         delimiter '-'.
45711         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45712
45713 2007-02-08  Bruno Haible  <bruno@clisp.org>
45714
45715         * modules/regex (Depends-on): Add stdbool.
45716         Reported by Dalibor Topic <robilad@kaffe.org>.
45717
45718 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45719
45720         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
45721         Prefer returning from main to exiting from it.
45722         Remove unnecessary parens after sizeof.
45723
45724 2007-02-05  Bruno Haible  <bruno@clisp.org>
45725
45726         New module mbssep.
45727         * modules/mbssep: New file.
45728         * lib/mbssep.c: New file.
45729         * lib/string_.h (strsep): Add a conditional link warning.
45730         (mbssep): New declaration.
45731         * m4/mbssep.m4: New file.
45732         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45733         GNULIB_MBSSEP.
45734         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
45735         * MODULES.html.sh (Internationalization functions): Add mbssep.
45736
45737 2007-02-05  Bruno Haible  <bruno@clisp.org>
45738
45739         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
45740         Optimize search in case of 1 delimiter.
45741
45742 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45743
45744         * lib/acl.h: Include sys/types.h before sys/acl.h.
45745
45746 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45747
45748         Merge upstream fix for glibc bugzilla #3957:
45749
45750         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
45751
45752         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
45753         bit for RE_HAT_LISTS_NOT_NEWLINE.
45754         (build_charclass_op): Remove bogus comment.
45755
45756 2007-02-05  Simon Josefsson  <simon@josefsson.org>
45757
45758         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
45759
45760 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45761
45762         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
45763         * lib/memmem.c [!defined _LIBC]: Include config.h.
45764
45765 2007-02-04  Bruno Haible  <bruno@clisp.org>
45766
45767         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
45768         warning message.
45769
45770 2007-02-04  Bruno Haible  <bruno@clisp.org>
45771
45772         New module mbstok_r.
45773         * modules/mbstok_r: New file.
45774         * lib/mbstok_r.c: New file.
45775         * lib/string_.h (strtok_r): Change argument names to match the
45776         comments. Add a conditional link warning.
45777         (mbstok_r): New declaration.
45778         * m4/mbstok_r.m4: New file.
45779         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45780         GNULIB_MBSTOK_R.
45781         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
45782         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
45783
45784 2007-02-04  Bruno Haible  <bruno@clisp.org>
45785
45786         New module mbsspn.
45787         * modules/mbsspn: New file.
45788         * lib/mbsspn.c: New file.
45789         * lib/string_.h (strspn): Add a conditional link warning.
45790         (mbsspn): New declaration.
45791         * m4/mbsspn.m4: New file.
45792         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45793         GNULIB_MBSSPN.
45794         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
45795         * MODULES.html.sh (Internationalization functions): Add mbsspn.
45796
45797 2007-02-04  Bruno Haible  <bruno@clisp.org>
45798
45799         New module mbspbrk.
45800         * modules/mbspbrk: New file.
45801         * lib/mbspbrk.c: New file.
45802         * lib/string_.h (strpbrk): Add a conditional link warning.
45803         (mbspbrk): New declaration.
45804         * m4/mbspbrk.m4: New file.
45805         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45806         GNULIB_MBSPBRK.
45807         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
45808         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
45809
45810 2007-02-04  Bruno Haible  <bruno@clisp.org>
45811
45812         New module mbscspn.
45813         * modules/mbscspn: New file.
45814         * lib/mbscspn.c: New file.
45815         * lib/string_.h (strcspn): Add a conditional link warning.
45816         (mbscspn): New declaration.
45817         * m4/mbscspn.m4: New file.
45818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45819         GNULIB_MBSCSPN.
45820         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
45821         * MODULES.html.sh (Internationalization functions): Add mbscspn.
45822
45823 2007-02-04  Bruno Haible  <bruno@clisp.org>
45824
45825         New module mbscasestr, reduced goal of strcasestr.
45826         * modules/mbscasestr: New file.
45827         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
45828         (mbscasestr): Renamed from strcasestr.
45829         * lib/strcasestr.c: Don't include mbuiter.h.
45830         (strcasestr): Remove support for multibyte locales.
45831         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
45832         Change the conditional link warning.
45833         (mbscasestr): New declaration.
45834         * m4/mbscasestr.m4: New file.
45835         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
45836         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
45837         REPLACE_STRCASESTR.
45838         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
45839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45840         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45841         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
45842         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
45843         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45844         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
45845         (Depends-on): Remove mbuiter.
45846         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
45847
45848 2007-02-04  Bruno Haible  <bruno@clisp.org>
45849
45850         Simplify handling of strncasecmp.
45851         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
45852         the conditional link warning.
45853         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45854         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
45855         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
45856         * modules/strcase (configure.ac): Don't invoke
45857         gl_STRING_MODULE_INDICATOR.
45858         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
45859
45860 2007-02-04  Bruno Haible  <bruno@clisp.org>
45861
45862         New module mbscasecmp, reduced goal of strcasecmp.
45863         * modules/mbscasecmp: New file.
45864         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
45865         (mbscasecmp): Renamed from strcasecmp.
45866         * lib/strcasecmp.c: Don't include mbuiter.h.
45867         (strcasecmp): Remove support for multibyte locales.
45868         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
45869         Change the conditional link warning.
45870         (mbscasecmp): New declaration.
45871         * m4/mbscasecmp.m4: New file.
45872         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
45873         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
45874         REPLACE_STRCASECMP.
45875         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
45876         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45877         GNULIB_MBSCASECMP.
45878         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
45879         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
45880         * modules/strcase (Files): Remove m4/mbrtowc.m4.
45881         (Depends-on): Remove mbuiter.
45882         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
45883
45884 2007-02-04  Bruno Haible  <bruno@clisp.org>
45885
45886         New module mbsstr. Remove module strstr.
45887         * modules/mbsstr: New file.
45888         * modules/strstr: Remove file.
45889         * lib/mbsstr.c: Renamed from lib/strstr.c.
45890         (mbsstr): Renamed from strstr.
45891         * lib/string_.h (strstr): Remove declaration. Change the conditional
45892         link warning.
45893         (mbsstr): New declaration.
45894         * m4/mbsstr.m4: New file.
45895         * m4/strstr.m4: Remove file.
45896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
45897         REPLACE_STRSTR.
45898         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
45899         Don't initialize GNULIB_STRSTR.
45900         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
45901         substitute GNULIB_STRSTR and REPLACE_STRSTR.
45902         * MODULES.html.sh (Internationalization functions): Add mbsstr.
45903         (Support for systems lacking ANSI C 89): Remove strstr.
45904
45905 2007-02-04  Bruno Haible  <bruno@clisp.org>
45906
45907         New module mbsrchr.
45908         * modules/mbsrchr: New file.
45909         * lib/mbsrchr.c: New file.
45910         * lib/string_.h (strrchr): Add a conditional link warning.
45911         (mbsrchr): New declaration.
45912         * m4/mbsrchr.m4: New file.
45913         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45914         GNULIB_MBSRCHR.
45915         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
45916         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
45917
45918 2007-02-04  Bruno Haible  <bruno@clisp.org>
45919
45920         New module mbschr.
45921         * modules/mbschr: New file.
45922         * lib/mbschr.c: New file.
45923         * lib/string_.h (strchr): Add a conditional link warning.
45924         (mbschr): New declaration.
45925         * m4/mbschr.m4: New file.
45926         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45927         GNULIB_MBSCHR.
45928         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
45929         * MODULES.html.sh (Internationalization functions): Add mbschr.
45930
45931 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45932
45933         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
45934
45935         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
45936
45937 2007-02-04  Bruno Haible  <bruno@clisp.org>
45938
45939         New module description section 'configure.ac-early'.
45940         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
45941         (func_get_autoconf_early_snippet): New function.
45942         (func_import, func_create_testdir): Use it. Remove special cases for
45943         modules 'extensions' and 'lock'.
45944         * modules/extensions (configure.ac-early): Require
45945         gl_USE_SYSTEM_EXTENSIONS.
45946         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
45947
45948 2007-02-04  Bruno Haible  <bruno@clisp.org>
45949
45950         Make use of gcj-4.3's -fsource and -ftarget option.
45951         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
45952         and if so try the options -fsource and -ftarget.
45953         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
45954         source_version, ftarget_option, target_version arguments.
45955         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
45956         (is_envjavac_oldgcj_14_14_usable): Renamed from
45957         is_envjavac_gcj_14_14_usable.
45958         (is_envjavac_oldgcj_14_13_usable): Renamed from
45959         is_envjavac_gcj_14_13_usable.
45960         (is_gcj_present): Update.
45961         (is_gcj_43, is_gcj43_usable): New functions.
45962         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
45963         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
45964         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
45965         try the options -fsource and -ftarget.
45966
45967 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45968
45969         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
45970         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
45971         larger value.
45972
45973 2007-02-03  Jim Meyering  <jim@meyering.net>
45974
45975         Give tools a better chance to allocate space for very large buffers.
45976         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
45977
45978         Make pwd and readlink work also when run with an unreadable parent dir
45979         on systems with openat support.
45980         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
45981         provided getcwd function, even when we have openat support.
45982         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
45983
45984 2007-02-02  Bruno Haible  <bruno@clisp.org>
45985
45986         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45987         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
45988         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
45989         portability problems if one of these functions is only used on specific
45990         platforms.
45991         Reported by Paul Eggert.
45992
45993 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
45994
45995         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
45996         is causing more trouble than it's curing.
45997         * lib/regex_internal.h (__mempcpy): Remove.
45998         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
45999         (and make the code a tad smaller to boot).
46000         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
46001
46002 2007-02-02  Jim Meyering  <jim@meyering.net>
46003
46004         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
46005         section, not in the Makefile.am: one.
46006
46007 2007-02-02  Eric Blake  <ebb9@byu.net>
46008
46009         * lib/strchrnul.c: Always include config.h first.
46010
46011         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
46012         gnulib strstr is not necessary here.
46013
46014 2007-02-02  Simon Josefsson  <simon@josefsson.org>
46015
46016         * m4/socklen.m4: Fix typo.
46017
46018 2007-02-02  Eric Blake  <ebb9@byu.net>
46019
46020         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
46021         * modules/netinet_in (Makefile.am): Likewise.
46022
46023 2007-02-01  Bruno Haible  <bruno@clisp.org>
46024
46025         * lib/string_.h (GL_LINK_WARNING): New macro.
46026         (strcasecmp, strstr, strcasestr): If provided by the system,
46027         conditionally define as a macro that leads to a warning instead of to
46028         an error.
46029         (strncasecmp): Conditionally define as a macro that leads to a warning.
46030
46031 2007-02-01  Karl Berry  <karl@gnu.org>
46032
46033         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
46034
46035 2007-02-01  Bruno Haible  <bruno@clisp.org>
46036
46037         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
46038         renamings.
46039
46040 2007-02-01  Eric Blake  <ebb9@byu.net>
46041
46042         * modules/regex (Depends-on): Revert dependence on mempcpy.
46043         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
46044         module's definition of mempcpy.
46045         Reported by Paul Eggert.
46046
46047 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
46048
46049         * lib/string_.h: If the gnulib module XYZ is not present, undefine
46050         the symbol XYZ before redefining it.  This fixes a problem with
46051         programs that don't use XYZ, when compiled on systems that define
46052         XYZ to something else.
46053
46054 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
46055
46056         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
46057         occurs when "mkdir -m foo" creates a setgid directory that is (1)
46058         writeable to group or other and (2) is intended to have a special
46059         mode bit that is set or cleared.  In such a case, the directory
46060         should be neither group- nor other-writeable until the special
46061         mode bits are right.
46062
46063 2007-01-31  Eric Blake  <ebb9@byu.net>
46064
46065         * modules/mountlist (Depends-on): Add strstr.
46066
46067         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
46068         bug.
46069         * modules/string (Makefile.am): Remove redundant replacement.
46070         * modules/regex (Depends-on): Add mempcpy.
46071
46072 2007-01-31  Bruno Haible  <bruno@clisp.org>
46073
46074         New module description field 'Link'.
46075         * gnulib-tool (func_usage): Document --extract-link-directive.
46076         (sed_extract_prog): Recognize 'Link' directive.
46077         (func_get_link_directive): New function.
46078         (func_import): Show summary of link directives.
46079         Handle --extract-link-directive option.
46080         * modules/acl (Link): New section.
46081         * modules/clock-time (Link): New section.
46082         * modules/euidaccess (Link): New section.
46083         * modules/gettext (Link): New section.
46084         * modules/iconv (Link): New section.
46085         * modules/lock (Link): New section.
46086         * modules/nanosleep (Link): New section.
46087         * modules/readline (Link): New section.
46088
46089 2007-01-27  Bruno Haible  <bruno@clisp.org>
46090
46091         Enforce the use of gnulib modules for unportable <string.h> functions.
46092         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
46093         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
46094         (gl_HEADER_STRING_H_BODY): Require it.
46095         * lib/string_.h: If the gnulib module XYZ is not present, redefine
46096         the symbol XYZ to one that gives a link error.
46097         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
46098         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
46099         * modules/mempcpy (configure.ac): Likewise.
46100         * modules/memrchr (configure.ac): Likewise.
46101         * modules/stpcpy (configure.ac): Likewise.
46102         * modules/stpncpy (configure.ac): Likewise.
46103         * modules/strcase (configure.ac): Likewise.
46104         * modules/strcasestr (configure.ac): Likewise.
46105         * modules/strchrnul (configure.ac): Likewise.
46106         * modules/strdup (configure.ac): Likewise.
46107         * modules/strndup (configure.ac): Likewise.
46108         * modules/strnlen (configure.ac): Likewise.
46109         * modules/strpbrk (configure.ac): Likewise.
46110         * modules/strsep (configure.ac): Likewise.
46111         * modules/strstr (configure.ac): Likewise.
46112         * modules/strtok_r (configure.ac): Likewise.
46113
46114 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
46115
46116         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
46117
46118 2007-01-30  Jim Meyering  <jim@meyering.net>
46119
46120         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
46121
46122 2007-01-29  Bruno Haible  <bruno@clisp.org>
46123
46124         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
46125         * lib/execute.c: Likewise.
46126         * lib/pipe.c: Likewise.
46127         * lib/printf-args.h: Likewise.
46128         * lib/printf-args.c: Likewise.
46129         * lib/printf-parse.c: Likewise.
46130         * lib/vasnprintf.c: Likewise.
46131
46132 2007-01-29  Eric Blake  <ebb9@byu.net>
46133
46134         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
46135         declaration.
46136
46137 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
46138
46139         * lib/strptime.h (strptime): Use 'restrict' for args where
46140         POSIX requires this.
46141         * lib/strptime.c (strptime): Likewise.
46142         Change license notice from LGPL to GPL, since gnulib-tool will
46143         change this as needed.
46144         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
46145         defined.
46146         Include "strptime.h" first, to check interface.
46147         Do not #undef _LIBC and _NL_CURRENT.
46148         Do not include <stdlib.h>; no longer needed.
46149         Include "time_r.h" and declare ptime_locale_status
46150         only if _LIBC is not defined.
46151         (__P): Remove unused macro.
46152         (match_string): Bring back glibc version, but use it only if _LIBC
46153         is defined.
46154         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
46155         Remove unnecessary assertion and abort() call.
46156         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
46157         * m4/strptime.m4: Fix serial number comment.
46158         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
46159         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
46160         (Depends-on): Add time_r.
46161
46162 2007-01-29  Bruno Haible  <bruno@clisp.org>
46163
46164         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46165         strptime.
46166         * modules/strptime (Depends-on): Add stdbool.
46167         * lib/strptime.h: Include <time.h> always. Add comments.
46168
46169 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46170
46171         * modules/strptime: New file.
46172         * lib/strptime.h: New file.
46173         * lib/strptime.c: New file.
46174         * m4/strptime.m4: New file.
46175
46176 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
46177
46178         * MODULES.html.sh: New module mpsort.
46179         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
46180
46181         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
46182         a circularity problem with HP-UX ia64 reported by Bob Proulx in
46183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
46184         All uses changed.
46185         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
46186         All uses changed.
46187         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
46188         to _Restrict_.
46189         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
46190         the parameter matches the prototype.
46191
46192 2007-01-28  Jim Meyering  <jim@meyering.net>
46193
46194         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
46195         sys/time.h here, reverting that part of the previous patch:
46196         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
46197
46198 2007-01-28  Bruno Haible  <bruno@clisp.org>
46199
46200         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
46201         value of $(SYS_TIME_H).
46202         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
46203         remove it conditionally, too. [added by Jim Meyering]
46204         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
46205         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46206         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
46207         GETTIMEOFDAY_REPLACEMENT to 1.
46208
46209 2007-01-28  Bruno Haible  <bruno@clisp.org>
46210
46211         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
46212         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
46213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
46214         Set UNISTD_H instead of UNISTD_H2.
46215         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
46216
46217 2007-01-28  Bruno Haible  <bruno@clisp.org>
46218
46219         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
46220         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
46221
46222 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46223
46224         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
46225         (func_create_testdir): Ensure C locale for `grep' and `tr'
46226         character ranges.
46227         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
46228         ACLOCAL_AMFLAGS parsing state machine.
46229
46230 2007-01-27  Bruno Haible  <bruno@clisp.org>
46231
46232         * modules/unistr/base: Update.
46233
46234 2007-01-27  Bruno Haible  <bruno@clisp.org>
46235
46236         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
46237         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
46238         * modules/unistr/u32-mbtouc-unsafe: Renamed from
46239         modules/unistr/u32-mbtouc.
46240         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
46241         * lib/unistr.h: Update.
46242         * lib/linebreak.c: Update.
46243         * modules/unistr/u32-mbtouc: Renamed from
46244         modules/unistr/u32-mbtouc-safe.
46245         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
46246         * lib/unistr.h: Update.
46247         * lib/unistr/u32-to-u8.c: Update.
46248         * lib/unistr/u32-to-u16.c: Update.
46249
46250 2007-01-27  Bruno Haible  <bruno@clisp.org>
46251
46252         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
46253         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
46254         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
46255         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
46256         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
46257         * modules/unistr/u16-mbtouc-unsafe: Renamed from
46258         modules/unistr/u16-mbtouc.
46259         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
46260         * lib/unistr.h: Update.
46261         * lib/linebreak.c: Update.
46262         * modules/linebreak: Update.
46263         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
46264         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
46265         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
46266         * modules/unistr/u16-mbtouc: Renamed from
46267         modules/unistr/u16-mbtouc-safe.
46268         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
46269         * lib/unistr.h: Update.
46270         * lib/unistr/u16-to-u8.c: Update.
46271         * modules/unistr/u16-to-u8: Update.
46272         * lib/unistr/u16-to-u32.c: Update.
46273         * modules/unistr/u16-to-u32: Update.
46274
46275 2007-01-27  Bruno Haible  <bruno@clisp.org>
46276
46277         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
46278         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
46279         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
46280         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
46281         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
46282         * modules/unistr/u8-mbtouc-unsafe: Renamed from
46283         modules/unistr/u8-mbtouc.
46284         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
46285         * lib/unistr.h: Update.
46286         * lib/striconveh.c: Update.
46287         * modules/striconveh: Update.
46288         * lib/linebreak.c: Update.
46289         * modules/linebreak: Update.
46290         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
46291         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
46292         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
46293         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
46294         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
46295         * lib/unistr.h: Update.
46296         * lib/striconveh.c: Update.
46297         * modules/striconveh: Update.
46298         * lib/unistr/u8-to-u16.c: Update.
46299         * modules/unistr/u8-to-u16: Update.
46300         * lib/unistr/u8-to-u32.c: Update.
46301         * modules/unistr/u8-to-u32: Update.
46302
46303 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46304
46305         Sync from Libtool.
46306         * lib/argz.c: Do not include strings.h nor memory.h, include
46307         string.h unconditionally.  Patch by Simon Josefsson.
46308
46309 2007-01-27  Bruno Haible  <bruno@clisp.org>
46310
46311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
46312         from gl_HEADER_STRING_H_BODY.
46313         (gl_HEADER_STRING_H_BODY): Require it.
46314         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
46315         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46316         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46317         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46318         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46319         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
46320         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46321         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46322         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
46323         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46324         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46325         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
46326         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46327         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46328         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46329
46330 2007-01-27  Bruno Haible  <bruno@clisp.org>
46331
46332         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
46333         check_PROGRAMS into noinst_PROGRAMS.
46334         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
46335         check_PROGRAMS in this case.
46336         (func_import): Set for_test to false.
46337         (func_create_testdir): Set for_test to true.
46338
46339 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46340             Bruno Haible  <bruno@clisp.org>
46341
46342         * modules/strcasestr (Files): Remove lib/strcasestr.h.
46343         (Depends-on): Add string.
46344         (Includes): Use <string.h> instead of strcasestr.h.
46345         * modules/string (Makefile.am): Also substitute the value of
46346         REPLACE_STRCASESTR.
46347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
46348         assume strcasestr is declared in <string.h> not <strings.h>. Also
46349         set REPLACE_STRCASESTR.
46350         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
46351         REPLACE_STRCASESTR.
46352         * lib/strcasestr.h: Remove file.
46353         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
46354         * lib/string_.h (strcasestr): New declaration.
46355
46356 2007-01-27  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/string_.h: Use 'extern'.
46359
46360 2007-01-27  Jim Meyering  <jim@meyering.net>
46361
46362         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
46363         of set-but-not-used local, "q".
46364
46365         * lib/mempcpy.c: Include <config.h> before <string.h>.
46366         This fixes a compilation error on HP-UX, due to the system's
46367         "restrict"-using mempcpy prototype.
46368
46369 2007-01-26  Bruno Haible  <bruno@clisp.org>
46370
46371         Small optimization.
46372         * lib/javacomp.c: Include c-strstr.h.
46373          (is_envjavac_gcj): Use c_strstr instead of strstr.
46374         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
46375
46376 2007-01-26  Bruno Haible  <bruno@clisp.org>
46377
46378         * MODULES.html.sh (Unicode string functions): Add the new modules.
46379
46380         * modules/uniconv/u32-strconv-to-locale: New file.
46381         * lib/uniconv/u32-strconv-to-locale.c: New file.
46382
46383         * modules/uniconv/u16-strconv-to-locale: New file.
46384         * lib/uniconv/u16-strconv-to-locale.c: New file.
46385
46386         * modules/uniconv/u8-strconv-to-locale: New file.
46387         * lib/uniconv/u8-strconv-to-locale.c: New file.
46388
46389         * modules/uniconv/u32-strconv-from-locale: New file.
46390         * lib/uniconv/u32-strconv-from-locale.c: New file.
46391
46392         * modules/uniconv/u16-strconv-from-locale: New file.
46393         * lib/uniconv/u16-strconv-from-locale.c: New file.
46394
46395         * modules/uniconv/u8-strconv-from-locale: New file.
46396         * lib/uniconv/u8-strconv-from-locale.c: New file.
46397
46398         * modules/uniconv/u32-strconv-to-enc: New file.
46399         * lib/uniconv/u32-strconv-to-enc.c: New file.
46400         * modules/uniconv/u32-strconv-to-enc-tests: New file.
46401         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
46402
46403         * modules/uniconv/u16-strconv-to-enc: New file.
46404         * lib/uniconv/u16-strconv-to-enc.c: New file.
46405         * lib/uniconv/u-strconv-to-enc.h: New file.
46406         * modules/uniconv/u16-strconv-to-enc-tests: New file.
46407         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
46408
46409         * modules/uniconv/u8-strconv-to-enc: New file.
46410         * lib/uniconv/u8-strconv-to-enc.c: New file.
46411         * modules/uniconv/u8-strconv-to-enc-tests: New file.
46412         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
46413
46414         * modules/uniconv/u32-strconv-from-enc: New file.
46415         * lib/uniconv/u32-strconv-from-enc.c: New file.
46416         * modules/uniconv/u32-strconv-from-enc-tests: New file.
46417         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
46418
46419         * modules/uniconv/u16-strconv-from-enc: New file.
46420         * lib/uniconv/u16-strconv-from-enc.c: New file.
46421         * modules/uniconv/u16-strconv-from-enc-tests: New file.
46422         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
46423
46424         * modules/uniconv/u8-strconv-from-enc: New file.
46425         * lib/uniconv/u8-strconv-from-enc.c: New file.
46426         * lib/uniconv/u-strconv-from-enc.h: New file.
46427         * modules/uniconv/u8-strconv-from-enc-tests: New file.
46428         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
46429
46430         * modules/uniconv/u32-conv-from-enc: New file.
46431         * lib/uniconv/u32-conv-from-enc.c: New file.
46432         * modules/uniconv/u32-conv-from-enc-tests: New file.
46433         * tests/uniconv/test-u32-conv-from-enc.c: New file.
46434
46435         * modules/uniconv/u16-conv-from-enc: New file.
46436         * lib/uniconv/u16-conv-from-enc.c: New file.
46437         * lib/uniconv/u-conv-from-enc.h: New file.
46438         * modules/uniconv/u16-conv-from-enc-tests: New file.
46439         * tests/uniconv/test-u16-conv-from-enc.c: New file.
46440
46441         * modules/uniconv/u8-conv-from-enc: New file.
46442         * lib/uniconv/u8-conv-from-enc.c: New file.
46443         * modules/uniconv/u8-conv-from-enc-tests: New file.
46444         * tests/uniconv/test-u8-conv-from-enc.c: New file.
46445
46446         * modules/uniconv/base: New file.
46447         * lib/uniconv.h: New file.
46448
46449 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46450
46451         * doc/gnulib-tool.texi (Initial import): Update to match current
46452         behavior with strdup module.
46453         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
46454         * lib/memmem.h: Remove; all uses removed.  This is now done
46455         by <string.h>.
46456         * lib/mempcpy.h: Likewise.
46457         * lib/memrchr.h: Likewise.
46458         * lib/stpcpy.h: Likewise.
46459         * lib/stpncpy.h: Likewise.
46460         * lib/strcase.h: Likewise.
46461         * lib/strchrnul.h: Likewise.
46462         * lib/strdup.h: Likewise.
46463         * lib/strndup.h: Likewise.
46464         * lib/strnlen.h: Likewise.
46465         * lib/strpbrk.h: Likewise.
46466         * lib/strsep.h: Likewise.
46467         * lib/strstr.h: Likewise.
46468         * lib/strtok_r.h: Likewise.
46469         * lib/string_.h: New file.
46470         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
46471         Rely on <string.h> instead.
46472         * lib/canon-host.c: Likewise.
46473         * lib/chdir-long.c: Likewise.
46474         * lib/concatpath.c: Likewise.
46475         * lib/exclude.c: Likewise.
46476         * lib/fchdir.c: Likewise.
46477         * lib/getaddrinfo.c: Likewise.
46478         * lib/getcwd.c: Likewise.
46479         * lib/getsubopt.c: Likewise.
46480         * lib/glob.c: Likewise.
46481         * lib/hard-locale.c: Likewise.
46482         * lib/iconvme.c: Likewise.
46483         * lib/javacomp.c: Likewise.
46484         * lib/mempcpy.c: Likewise.
46485         * lib/memrchr.c: Likewise.
46486         * lib/regex_internal.h: Likewise.
46487         * lib/stpncpy.c: Likewise.
46488         * lib/strcasecmp.c: Likewise.
46489         * lib/strchrnul.c: Likewise.
46490         * lib/strdup.c: Likewise.
46491         * lib/striconv.c: Likewise.
46492         * lib/striconveh.c: Likewise.
46493         * lib/striconveha.c: Likewise.
46494         * lib/strncasecmp.c: Likewise.
46495         * lib/strndup.c: Likewise.
46496         * lib/strnlen.c: Likewise.
46497         * lib/strsep.c: Likewise.
46498         * lib/strstr.c: Likewise.
46499         * lib/strtok_r.c: Likewise.
46500         * lib/userspec.c: Likewise.
46501         * lib/w32spawn.h: Likewise.
46502         * lib/xstrndup.c: Likewise.
46503         * lib/mountlist.c (strstr): Remove decl.
46504         * m4/string_h.m4: New file.
46505         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
46506         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
46507         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
46508         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
46509         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
46510         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
46511         Set REPLACE_STRCASECMP if necessary.
46512         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
46513         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
46514         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
46515         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
46516         HAVE_DECL_STRDUP if necessary.
46517         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
46518         since gl_FUNC_STRNDUP does that now.
46519         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
46520         Check for decl here...
46521         (gl_PREREQ_STRNLEN): ... not here.
46522         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
46523         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
46524         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
46525         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
46526         necessary.
46527         * modules/string: New file.
46528         * modules/memmem (Files): Remove special-purpose include file.
46529         (Depends-on): Add string.
46530         (Include): Include <string.h>, not the removed file.
46531         * modules/mempcpy: Likewise.
46532         * modules/memrchr: Likewise.
46533         * modules/stpcpy: Likewise.
46534         * modules/stpncpy: Likewise.
46535         * modules/strcase: Likewise.
46536         * modules/strchrnul: Likewise.
46537         * modules/strdup: Likewise.
46538         * modules/strndup: Likewise.
46539         * modules/strnlen: Likewise.
46540         * modules/strpbrk: Likewise.
46541         * modules/strsep: Likewise.
46542         * modules/strstr: Likewise.
46543         * modules/strtok_r: Likewise.
46544         * tests/test-dirname.c: Don't include "strdup.h", since
46545         <string.h> now suffices.
46546         * tests/test-memmem.c: Don't include "memmem.h", since
46547         <string.h> now suffices.
46548
46549 2007-01-25  Bruno Haible  <bruno@clisp.org>
46550
46551         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
46552         *resultp is 0.
46553
46554         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
46555         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
46556         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
46557         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
46558
46559         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
46560         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
46561         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
46562         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
46563         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
46564         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
46565
46566 2007-01-24  Bruno Haible  <bruno@clisp.org>
46567
46568         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
46569         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
46570         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
46571         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
46572         gl_FUNC_FTS_CORE.
46573         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
46574         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
46575         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
46576         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
46577         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
46578         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
46579         gl_FUNC_FCHOWNAT.
46580         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
46581         gl_FUNC_STRFTIME.
46582         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
46583         Reported by Ralf Wildenhues.
46584
46585 2007-01-24  Bruno Haible  <bruno@clisp.org>
46586
46587         Drop AC_REQUIRE calls that are redundant with the module dependencies.
46588         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
46589         gl_GETADDRINFO.
46590         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
46591         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
46592         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
46593
46594 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
46595
46596         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
46597         Don't use 'exit'; just return from 'main'.
46598         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
46599
46600         * lib/fnmatch_.h: Readjust white space and comments to match
46601         glibc, to avoid spurious diffs.
46602
46603 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46604
46605         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
46606         2004-12-01 change by Jakub Jelinek, since this code won't compile
46607         if !LIBC.  Problem reported by Bob Proulx.
46608
46609 2007-01-23  Bruno Haible  <bruno@clisp.org>
46610
46611         * lib/striconveh.c: Include c-strcaseeq.h.
46612         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
46613         * modules/striconveh (Depends-on): Add c-strcaseeq.
46614
46615 2007-01-23  Bruno Haible  <bruno@clisp.org>
46616
46617         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
46618
46619         * modules/c-strcaseeq: New file.
46620         * lib/c-strcaseeq.h: New file.
46621
46622         * modules/streq: New file.
46623         * lib/streq.h: New file.
46624
46625 2007-01-23  Bruno Haible  <bruno@clisp.org>
46626
46627         * modules/striconveha-tests: New file.
46628         * tests/test-striconveha.c: New file.
46629
46630         * lib/striconveha.h: Include <stdbool.h>.
46631         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
46632         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
46633         (mem_iconveha_notranslit): Renamed from mem_iconveha.
46634         (mem_iconveha): New function.
46635         (str_iconveha_notranslit): Renamed from str_iconveha.
46636         (str_iconveha): New function.
46637         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
46638         c-strcase.
46639
46640 2007-01-23  Bruno Haible  <bruno@clisp.org>
46641
46642         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
46643         encodings without forgiving before trying any encoding with handler.
46644         (str_iconveha): Try all encodings without forgiving before trying any
46645         encoding with handler.
46646
46647 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46648
46649         Import the following changes from libc.
46650
46651         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46652
46653         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
46654
46655         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
46656
46657         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
46658         normal_bracket label.
46659
46660         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
46661
46662         [BZ #361]
46663         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
46664         to normal_bracket after fetching the next character.
46665
46666 2007-01-22  Bruno Haible  <bruno@clisp.org>
46667
46668         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
46669         argument.
46670         * lib/striconveh.c (iconv_carefully_1): New function.
46671         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
46672         argument.
46673         (str_cd_iconveh): Update.
46674         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
46675         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
46676         * tests/test-striconveh.c (MAGIC): New macro.
46677         (new_offsets): New function.
46678         (main): Test call with and without offsets.
46679
46680 2007-01-22  Bruno Haible  <bruno@clisp.org>
46681
46682         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
46683         * modules/sys_select (Makefile.am): Likewise.
46684         * modules/sys_socket (Makefile.am): Likewise.
46685         * modules/sys_time (Makefile.am): Likewise.
46686
46687 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46688
46689         * modules/gettimeofday (License): Change from GPL to LGPL, since
46690         gettimeofday is a library function.
46691
46692 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46693
46694         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
46695
46696 2007-01-21  Bruno Haible  <bruno@clisp.org>
46697
46698         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
46699
46700 2007-01-21  Bruno Haible  <bruno@clisp.org>
46701
46702         * modules/striconveha: New file.
46703         * lib/striconveha.h: New file.
46704         * lib/striconveha.c: New file.
46705         * MODULES.html.sh (Internationalization functions): Add striconveha.
46706         * lib/striconv.c (str_iconv): Optimize the case of an empty input
46707         string.
46708         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
46709
46710 2007-01-21  Bruno Haible  <bruno@clisp.org>
46711
46712         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
46713         * lib/striconveh.c (str_iconveh): Likewise.
46714
46715 2007-01-21  Bruno Haible  <bruno@clisp.org>
46716
46717         * lib/striconveh.h (mem_iconveh): New declaration.
46718         * lib/striconveh.c (mem_iconveh): New function.
46719         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
46720
46721 2007-01-21  Bruno Haible  <bruno@clisp.org>
46722
46723         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
46724
46725         * lib/striconveh.h (mem_cd_iconveh): Change specification.
46726         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
46727         original result buffer.
46728         (str_cd_iconveh): Update.
46729         * tests/test-striconveh.c (main): Update.
46730
46731         * lib/striconv.h (mem_cd_iconv): Change specification.
46732         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
46733         result buffer.
46734         (str_cd_iconv): Update.
46735         * tests/test-striconv.c (main): Update.
46736
46737 2007-01-21  Bruno Haible  <bruno@clisp.org>
46738
46739         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
46740
46741 2007-01-20  Jim Meyering  <jim@meyering.net>
46742
46743         * lib/userspec.c (parse_with_separator): If a user or group string
46744         starts with "+", skip the corresponding name-to-ID look-up, since
46745         such a look-up must fail: user and group names may not include "+".
46746
46747 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
46748
46749         * lib/poll.c: Include sys/time.h and time.h unconditionally,
46750         since we now assume the sys_time module.
46751         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
46752         check for sys/time.h; no longer needed.
46753         * modules/poll (Depends-on): Depend on sys_time.
46754
46755 2007-01-18  Bruno Haible  <bruno@clisp.org>
46756
46757         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
46758         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46759
46760         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
46761         gettimeofday.
46762
46763         * tests/test-gettimeofday.c: Include <time.h>.
46764         (dummy): Remove variable.
46765
46766         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
46767         gl_HEADER_SYS_TIME_H.
46768         (gl_HEADER_SYS_TIME_H): New macro.
46769
46770         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
46771         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46772         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
46773         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
46774         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46775         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
46776         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
46777         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46778         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
46779         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
46780         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46781
46782         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
46783         last change; it caused a compilation error when cross-compiling to
46784         Cygwin.
46785
46786 2007-01-18  Jim Meyering  <jim@meyering.net>
46787
46788         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
46789         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
46790         than the race-prone "test -d sys || mkdir sys".
46791         (configure.ac): Use AC_PROG_MKDIR_P.
46792         * modules/sys_select: Likewise.
46793         * modules/sys_socket: Likewise.
46794         * modules/sys_time: Likewise.
46795
46796 2007-01-18  Eric Blake  <ebb9@byu.net>
46797
46798         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
46799         replace gettimeofday.
46800         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
46801         name, to avoid infinite recursion.
46802
46803 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
46804
46805         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
46806         module sys_time.
46807         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
46808         assume timespec.h defines struct timeval.
46809         * lib/settime.c: Likewise.
46810         * lib/utimens.c: Likewise.
46811         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
46812         since we now assume the gettimeofday module.
46813         * lib/tempname.c (__gen_tempname): Likewise.
46814         * lib/gettimeofday.h: Remove.
46815         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
46816         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
46817         Include <time.h>, for 'time()'.
46818         (localtime_buffer_addr): Also use this workaround if
46819         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
46820         to simplify the uses.  All uses changed.
46821         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
46822         that #undef is inside {}, and 'const' follows type name consistently.
46823         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
46824         (gettimeofday): Do not use the maximum possible value for
46825         tv->tv_usec, since that might break usages other than ls.c.
46826         Instead, we'll leave ls.c alone.  This undoes today's patch
46827         by Bruno.  Add a compile-time warning for 1s-clock resolution;
46828         we've never observed the problem but might as well keep the
46829         canary.
46830         * lib/nanosleep.c: Include timespec.h first, for interface check.
46831         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
46832         now assume the sys_time module.
46833         * lib/tempname.c: Likewise.
46834         * lib/timespec.h: Likewise.
46835         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
46836         needed.
46837         * lib/strftime.c: Likewise.
46838         * lib/timespec.h: Likewise.
46839         * lib/posixtm.c: Include posixtm.h first, for interface check.
46840         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
46841         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
46842         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
46843         * lib/sys_time_.h: New file.
46844         * lib/timespec.h (struct timespec): Use long int, not long.
46845         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46846         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
46847         Remove obsolescent call to AC_HEADER_TIME.
46848         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46850         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46851         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
46852         Likewise.
46853         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
46854         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
46855         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
46856         into the sys_time module.  Check for gettimeofday just once.
46857         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
46858         for gettimeofday signature to just check the signature.  Merely
46859         compile it, since linking doesn't test signature.  Improve test for
46860         whether gettimeofday.o is actually needed.
46861         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
46862         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
46863         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
46864         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46865         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
46866         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
46867         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
46868         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
46869         than worrying about sys/time.h.
46870         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46871         Don't bother worrying about TIME_WITH_SYS_TIME.
46872         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46873         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
46874         * m4/sys_time_h.m4: New file.
46875         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
46876         Don't include sys/time.h.  Return from main rather than exiting.
46877         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
46878         all uses changed.
46879         * modules/gethrxtime (Depends-on): Add sys_time.
46880         * modules/gettime (Depends-on): Likewise.
46881         * modules/gettimeofday (Depends-on): Likewise.
46882         * modules/nanosleep (Depends-on): Likewise.
46883         * modules/settime (Depends-on): Likewise.
46884         * modules/tempname (Depends-on): Likewise.
46885         * modules/utimens (Depends-on): Likewise.
46886         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
46887         (Include:) Change back to <sys/time.h>.
46888         (Maintainer:) Add self.
46889         * modules/sys_time: New file.
46890         * modules/tempname (Depends-on): Add gettimeofday.
46891         * tests/test-gettimeofday.c: Include <sys/time.h>
46892         rather than gettimeofday.h.
46893
46894 2007-01-17  Bruno Haible  <bruno@clisp.org>
46895
46896         * gnulib-tool (func_get_license): Revert last patch. Instead, let
46897         the license default to GPL.
46898         (func_create_testdir): Don't complain if a module is LGPL and its
46899         tests module depends on GPLed modules.
46900
46901 2007-01-17  Bruno Haible  <bruno@clisp.org>
46902
46903         * lib/gettimeofday.c (gettimeofday): Add code for the case
46904         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
46905         maximum possible value for tv->tv_usec, rather than the minimum one.
46906
46907 2005-10-08  Martin Lambers  <marlam@marlam.de>
46908 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46909 2007-01-16  Bruno Haible  <bruno@clisp.org>
46910
46911         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
46912         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
46913         gl_FUNC_GETTIMEOFDAY.
46914         (Include): Add gettimeofday.h.
46915         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
46916         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
46917         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
46918         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
46919         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
46920         * lib/gettimeofday.h: New file.
46921         * lib/gettimeofday.c: Include <sys/timeb.h>.
46922         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
46923         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46924         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
46925         fall back on time().
46926
46927         * tests/test-gettimeofday.c: New file.
46928         * modules/gettimeofday-tests: New file.
46929
46930 2007-01-16  Eric Blake  <ebb9@byu.net>
46931
46932         * modules/fnmatch (Depends-on): Depend on wchar.
46933         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
46934         * m4/fnmatch.m4: Likewise.
46935         * modules/mbchar (Makefile.am): Assume <wchar.h>.
46936         * m4/mbchar.m4: Likewise.
46937         * modules/mbswidth (Depends-on): Depend on wchar.
46938         * lib/mbswidth.c: Assume <wchar.h>.
46939         * m4/mbswidth.m4: Likewise.
46940         * modules/quotearg (Depends-on): Depend on wchar.
46941         * lib/quotearg.c: Assume <wchar.h>.
46942         * m4/quotearg.m4: Likewise.
46943         * modules/regex (Depends-on): Depend on wchar.
46944         * lib/regex_internal.h: Assume <wchar.h>.
46945         * m4/regex.m4: Likewise.
46946         * modules/stdint (Depends-on): Depend on wchar.
46947         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
46948         * m4/stdint.m4: Likewise.
46949         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
46950         * modules/strftime (Depends-on): Depend on wchar.
46951         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
46952         * modules/strtol (Depends-on): Depend on wchar.
46953         * lib/strtol.c: Assume <wchar.h>.
46954         * modules/wcwidth (Depends-on): Depend on wchar.
46955         * lib/wcwidth.h: Assume <wchar.h>.
46956         * m4/wcwidth.m4: Likewise.
46957
46958 2007-01-16  Bruno Haible  <bruno@clisp.org>
46959
46960         * modules/csharpexec-script: New, created from...
46961         * modules/csharpexec: ... this.
46962
46963 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46964
46965         * modules/javaexec-script: New, created from...
46966         * modules/javaexec: ... this.
46967
46968 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46969
46970         * modules/poll (Dependencies): Add sys_select.
46971
46972 2007-01-15  Jim Meyering  <jim@meyering.net>
46973
46974         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
46975         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
46976         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
46977         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
46978
46979 2007-01-15  Bruno Haible  <bruno@clisp.org>
46980
46981         * modules/striconveh: New file.
46982         * lib/striconveh.h: New file.
46983         * lib/striconveh.c: New file.
46984         * MODULES.html.sh (Internationalization functions): Add striconveh.
46985
46986         * modules/striconveh-tests: New file.
46987         * tests/test-striconveh.c: New file.
46988
46989 2007-01-15  Bruno Haible  <bruno@clisp.org>
46990
46991         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
46992         not from GNU libiconv or GNU libc.
46993
46994 2007-01-15  Bruno Haible  <bruno@clisp.org>
46995
46996         * doc/gnulib-intro.texi (Copyright): Explain the different license
46997         terms for module descriptions, autoconf macros, tests, documentation.
46998
46999 2007-01-14  Bruno Haible  <bruno@clisp.org>
47000
47001         * modules/striconv-tests: New file.
47002         * tests/test-striconv.c: New file.
47003
47004 2007-01-14  Bruno Haible  <bruno@clisp.org>
47005
47006         * modules/iconv-tests: New file.
47007         * tests/test-iconv.c: New file.
47008
47009 2007-01-14  Bruno Haible  <bruno@clisp.org>
47010
47011         * gnulib-tool (func_get_license): For test modules, use the license of
47012         the main module.
47013
47014 2007-01-14  Bruno Haible  <bruno@clisp.org>
47015
47016         * modules/iconv (Include): Clarify that <iconv.h> can only be included
47017         if iconv is found to exist.
47018
47019 2007-01-14  Bruno Haible  <bruno@clisp.org>
47020
47021         * modules/c-ctype-tests: New file.
47022         * tests/test-c-ctype.c: New file.
47023
47024 2007-01-14  Bruno Haible  <bruno@clisp.org>
47025
47026         * modules/binary-io-tests: New file.
47027         * tests/test-binary-io.sh: New file.
47028         * tests/test-binary-io.c: New file.
47029
47030 2007-01-14  Bruno Haible  <bruno@clisp.org>
47031
47032         * modules/array-oset-tests: New file.
47033         * tests/test-array_oset.c: New file.
47034
47035 2007-01-14  Bruno Haible  <bruno@clisp.org>
47036
47037         * modules/array-list-tests: New file.
47038         * tests/test-array_list.c: New file.
47039
47040 2007-01-14  Bruno Haible  <bruno@clisp.org>
47041
47042         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
47043         and make.
47044         Reported by Simon Josefsson in
47045         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
47046
47047 2007-01-14  Bruno Haible  <bruno@clisp.org>
47048
47049         * modules/allocsa-tests: New file.
47050         * tests/test-allocsa.c: New file.
47051
47052 2007-01-14  Bruno Haible  <bruno@clisp.org>
47053
47054         * modules/fchdir (Depends-on): Add absolute-header.
47055         * modules/unistd (Depends-on): Likewise.
47056
47057 2006-12-30  Bruno Haible  <bruno@clisp.org>
47058
47059         * modules/fchdir: New file.
47060         * modules/unistd (Files): Add lib/unistd_.h.
47061         (Makefile.am): Generate unistd.h from unistd_.h.
47062         * lib/fchdir.c: New file.
47063         * lib/dirent_.h: New file.
47064         * lib/unistd_.h: New file.
47065         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
47066         * m4/fchdir.m4: New file.
47067         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
47068         (gl_HEADER_UNISTD): Invoke it.
47069         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
47070         function.
47071         * lib/backupfile.c (opendir, closedir): Undefine.
47072         * lib/chown.c (open, close): Undefine.
47073         * lib/clean-temp.c (open, close): Undefine.
47074         * lib/copy-file.c (open, close): Undefine.
47075         * lib/execute.c (open, close): Undefine.
47076         * lib/fsusage.c (open, close): Undefine.
47077         * lib/gc-gnulib.c (open, close): Undefine.
47078         * lib/getcwd.c (opendir, closedir): Undefine.
47079         * lib/glob.c (opendir, closedir): Undefine.
47080         * lib/javacomp.c (open, close): Undefine.
47081         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
47082         * lib/openat-proc.c (open, close): Undefine.
47083         * lib/pagealign_alloc.c (open, close): Undefine.
47084         * lib/pipe.c (open, close): Undefine.
47085         * lib/progreloc.c (open, close): Undefine.
47086         * lib/savedir.c (opendir, closedir): Undefine.
47087         * lib/utime.c (open, close): Undefine.
47088         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
47089
47090 2007-01-10  Bruno Haible  <bruno@clisp.org>
47091
47092         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
47093
47094 2007-01-12  Eric Blake  <ebb9@byu.net>
47095
47096         Provide a robust <wchar.h>.  Further simplifications are now
47097         possible in other modules, but not included here.
47098         * modules/wchar: New module.
47099         * m4/wchar.m4: New file.
47100         * lib/wchar_.h: Likewise.
47101         * modules/mbchar (Depends-on): Depend on wchar, as the first use
47102         of the new module.
47103         * MODULES.html.sh (Extended multibyte and wide character utilities):
47104         New section.
47105
47106 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
47107
47108         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
47109         to a reasonable default for memory allocation.
47110         (xreadlink): Don't allocate a huge buffer, to work around a buggy
47111         file system that reports garbage st_size values for symlinks.
47112         Problem reported by Liyang Hu.
47113
47114 2007-01-11  Simon Josefsson  <simon@josefsson.org>
47115
47116         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
47117         Emacs .#* auto-save files).
47118
47119 2007-01-11  Bruno Haible  <bruno@clisp.org>
47120
47121         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
47122         directory.
47123
47124 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47125
47126         Use @...@ consistently in lib/wctype_.h.
47127         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
47128         on it being set to 1 or 0.
47129         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
47130         go back to AC_SUBSTing it.
47131         * modules/wctype (Makefile.am): Undo previous change.
47132
47133 2007-01-10  Eric Blake  <ebb9@byu.net>
47134
47135         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
47136         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
47137         * modules/wctype (Makefile.am): Likewise.
47138         Reported by Chris McGuire.
47139
47140 2007-01-10  Jim Meyering  <jim@meyering.net>
47141
47142         fts.c: a small readability/maintainability improvement
47143         * lib/fts.c (fts_read): Make this code slightly more readable and
47144         maintainable by hoisting the "sp->fts_cur = p" assignments to
47145         immediately follow the statements that set P.  Derived from
47146         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
47147
47148 2007-01-10  Eric Blake  <ebb9@byu.net>
47149
47150         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
47151         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
47152         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47153         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47154         Reported by Chris McGuire.
47155
47156 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47157
47158         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
47159         in sed script.
47160
47161 2007-01-09  Bruno Haible  <bruno@clisp.org>
47162
47163         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
47164         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
47165         variables.
47166         (func_module): Use them.
47167
47168 2007-01-09  Bruno Haible  <bruno@clisp.org>
47169
47170         * modules/unistr/base: New file.
47171         * lib/unistr.h: New file.
47172
47173         * modules/unistr/u8-to-u16: New file.
47174         * lib/unistr/u8-to-u16.c: New file.
47175
47176         * modules/unistr/u8-to-u32: New file.
47177         * lib/unistr/u8-to-u32.c: New file.
47178
47179         * modules/unistr/u16-to-u8: New file.
47180         * lib/unistr/u16-to-u8.c: New file.
47181
47182         * modules/unistr/u16-to-u32: New file.
47183         * lib/unistr/u16-to-u32.c: New file.
47184
47185         * modules/unistr/u32-to-u8: New file.
47186         * lib/unistr/u32-to-u8.c: New file.
47187
47188         * modules/unistr/u32-to-u16: New file.
47189         * lib/unistr/u32-to-u16.c: New file.
47190
47191         * modules/unistr/u8-check: New file.
47192         * modules/unistr/u16-check: New file.
47193         * modules/unistr/u32-check: New file.
47194         * lib/unistr/u8-check.c: New file.
47195         * lib/unistr/u16-check.c: New file.
47196         * lib/unistr/u32-check.c: New file.
47197
47198         * modules/unistr/u8-chr: New file.
47199         * modules/unistr/u16-chr: New file.
47200         * modules/unistr/u32-chr: New file.
47201         * lib/unistr/u8-chr.c: New file.
47202         * lib/unistr/u16-chr.c: New file.
47203         * lib/unistr/u32-chr.c: New file.
47204
47205         * modules/unistr/u8-cmp: New file.
47206         * modules/unistr/u16-cmp: New file.
47207         * modules/unistr/u32-cmp: New file.
47208         * lib/unistr/u8-cmp.c: New file.
47209         * lib/unistr/u16-cmp.c: New file.
47210         * lib/unistr/u32-cmp.c: New file.
47211
47212         * modules/unistr/u8-cpy: New file.
47213         * modules/unistr/u16-cpy: New file.
47214         * modules/unistr/u32-cpy: New file.
47215         * lib/unistr/u8-cpy.c: New file.
47216         * lib/unistr/u16-cpy.c: New file.
47217         * lib/unistr/u32-cpy.c: New file.
47218         * lib/unistr/u-cpy.h: New file.
47219
47220         * modules/unistr/u8-cpy-alloc: New file.
47221         * modules/unistr/u16-cpy-alloc: New file.
47222         * modules/unistr/u32-cpy-alloc: New file.
47223         * lib/unistr/u8-cpy-alloc.c: New file.
47224         * lib/unistr/u16-cpy-alloc.c: New file.
47225         * lib/unistr/u32-cpy-alloc.c: New file.
47226         * lib/unistr/u-cpy-alloc.h: New file.
47227
47228         * modules/unistr/u8-endswith: New file.
47229         * modules/unistr/u16-endswith: New file.
47230         * modules/unistr/u32-endswith: New file.
47231         * lib/unistr/u8-endswith.c: New file.
47232         * lib/unistr/u16-endswith.c: New file.
47233         * lib/unistr/u32-endswith.c: New file.
47234         * lib/unistr/u-endswith.h: New file.
47235
47236         * modules/unistr/u8-mblen: New file.
47237         * modules/unistr/u16-mblen: New file.
47238         * modules/unistr/u32-mblen: New file.
47239         * lib/unistr/u8-mblen.c: New file.
47240         * lib/unistr/u16-mblen.c: New file.
47241         * lib/unistr/u32-mblen.c: New file.
47242
47243         * modules/unistr/u8-mbtouc: New file.
47244         * modules/unistr/u16-mbtouc: New file.
47245         * modules/unistr/u32-mbtouc: New file.
47246         * lib/unistr/u8-mbtouc.c: New file.
47247         * lib/unistr/u16-mbtouc.c: New file.
47248         * lib/unistr/u32-mbtouc.c: New file.
47249
47250         * modules/unistr/u8-mbtouc-safe: New file.
47251         * modules/unistr/u16-mbtouc-safe: New file.
47252         * modules/unistr/u32-mbtouc-safe: New file.
47253         * lib/unistr/u8-mbtouc-safe.c: New file.
47254         * lib/unistr/u16-mbtouc-safe.c: New file.
47255         * lib/unistr/u32-mbtouc-safe.c: New file.
47256
47257         * modules/unistr/u8-move: New file.
47258         * modules/unistr/u16-move: New file.
47259         * modules/unistr/u32-move: New file.
47260         * lib/unistr/u8-move.c: New file.
47261         * lib/unistr/u16-move.c: New file.
47262         * lib/unistr/u32-move.c: New file.
47263         * lib/unistr/u-move.h: New file.
47264
47265         * modules/unistr/u8-next: New file.
47266         * modules/unistr/u16-next: New file.
47267         * modules/unistr/u32-next: New file.
47268         * lib/unistr/u8-next.c: New file.
47269         * lib/unistr/u16-next.c: New file.
47270         * lib/unistr/u32-next.c: New file.
47271
47272         * modules/unistr/u8-prev: New file.
47273         * modules/unistr/u16-prev: New file.
47274         * modules/unistr/u32-prev: New file.
47275         * lib/unistr/u8-prev.c: New file.
47276         * lib/unistr/u16-prev.c: New file.
47277         * lib/unistr/u32-prev.c: New file.
47278
47279         * modules/unistr/u8-set: New file.
47280         * modules/unistr/u16-set: New file.
47281         * modules/unistr/u32-set: New file.
47282         * lib/unistr/u8-set.c: New file.
47283         * lib/unistr/u16-set.c: New file.
47284         * lib/unistr/u32-set.c: New file.
47285         * lib/unistr/u-set.h: New file.
47286
47287         * modules/unistr/u8-startswith: New file.
47288         * modules/unistr/u16-startswith: New file.
47289         * modules/unistr/u32-startswith: New file.
47290         * lib/unistr/u8-startswith.c: New file.
47291         * lib/unistr/u16-startswith.c: New file.
47292         * lib/unistr/u32-startswith.c: New file.
47293         * lib/unistr/u-startswith.h: New file.
47294
47295         * modules/unistr/u8-stpcpy: New file.
47296         * modules/unistr/u16-stpcpy: New file.
47297         * modules/unistr/u32-stpcpy: New file.
47298         * lib/unistr/u8-stpcpy.c: New file.
47299         * lib/unistr/u16-stpcpy.c: New file.
47300         * lib/unistr/u32-stpcpy.c: New file.
47301         * lib/unistr/u-stpcpy.h: New file.
47302
47303         * modules/unistr/u8-stpncpy: New file.
47304         * modules/unistr/u16-stpncpy: New file.
47305         * modules/unistr/u32-stpncpy: New file.
47306         * lib/unistr/u8-stpncpy.c: New file.
47307         * lib/unistr/u16-stpncpy.c: New file.
47308         * lib/unistr/u32-stpncpy.c: New file.
47309         * lib/unistr/u-stpncpy.h: New file.
47310
47311         * modules/unistr/u8-strcat: New file.
47312         * modules/unistr/u16-strcat: New file.
47313         * modules/unistr/u32-strcat: New file.
47314         * lib/unistr/u8-strcat.c: New file.
47315         * lib/unistr/u16-strcat.c: New file.
47316         * lib/unistr/u32-strcat.c: New file.
47317         * lib/unistr/u-strcat.h: New file.
47318
47319         * modules/unistr/u8-strchr: New file.
47320         * modules/unistr/u16-strchr: New file.
47321         * modules/unistr/u32-strchr: New file.
47322         * lib/unistr/u8-strchr.c: New file.
47323         * lib/unistr/u16-strchr.c: New file.
47324         * lib/unistr/u32-strchr.c: New file.
47325
47326         * modules/unistr/u8-strcmp: New file.
47327         * modules/unistr/u16-strcmp: New file.
47328         * modules/unistr/u32-strcmp: New file.
47329         * lib/unistr/u8-strcmp.c: New file.
47330         * lib/unistr/u16-strcmp.c: New file.
47331         * lib/unistr/u32-strcmp.c: New file.
47332
47333         * modules/unistr/u8-strcpy: New file.
47334         * modules/unistr/u16-strcpy: New file.
47335         * modules/unistr/u32-strcpy: New file.
47336         * lib/unistr/u8-strcpy.c: New file.
47337         * lib/unistr/u16-strcpy.c: New file.
47338         * lib/unistr/u32-strcpy.c: New file.
47339         * lib/unistr/u-strcpy.h: New file.
47340
47341         * modules/unistr/u8-strcspn: New file.
47342         * modules/unistr/u16-strcspn: New file.
47343         * modules/unistr/u32-strcspn: New file.
47344         * lib/unistr/u8-strcspn.c: New file.
47345         * lib/unistr/u16-strcspn.c: New file.
47346         * lib/unistr/u32-strcspn.c: New file.
47347         * lib/unistr/u-strcspn.h: New file.
47348
47349         * modules/unistr/u8-strdup: New file.
47350         * modules/unistr/u16-strdup: New file.
47351         * modules/unistr/u32-strdup: New file.
47352         * lib/unistr/u8-strdup.c: New file.
47353         * lib/unistr/u16-strdup.c: New file.
47354         * lib/unistr/u32-strdup.c: New file.
47355         * lib/unistr/u-strdup.h: New file.
47356
47357         * modules/unistr/u8-strlen: New file.
47358         * modules/unistr/u16-strlen: New file.
47359         * modules/unistr/u32-strlen: New file.
47360         * lib/unistr/u8-strlen.c: New file.
47361         * lib/unistr/u16-strlen.c: New file.
47362         * lib/unistr/u32-strlen.c: New file.
47363         * lib/unistr/u-strlen.h: New file.
47364
47365         * modules/unistr/u8-strmblen: New file.
47366         * modules/unistr/u16-strmblen: New file.
47367         * modules/unistr/u32-strmblen: New file.
47368         * lib/unistr/u8-strmblen.c: New file.
47369         * lib/unistr/u16-strmblen.c: New file.
47370         * lib/unistr/u32-strmblen.c: New file.
47371
47372         * modules/unistr/u8-strmbtouc: New file.
47373         * modules/unistr/u16-strmbtouc: New file.
47374         * modules/unistr/u32-strmbtouc: New file.
47375         * lib/unistr/u8-strmbtouc.c: New file.
47376         * lib/unistr/u16-strmbtouc.c: New file.
47377         * lib/unistr/u32-strmbtouc.c: New file.
47378
47379         * modules/unistr/u8-strncat: New file.
47380         * modules/unistr/u16-strncat: New file.
47381         * modules/unistr/u32-strncat: New file.
47382         * lib/unistr/u8-strncat.c: New file.
47383         * lib/unistr/u16-strncat.c: New file.
47384         * lib/unistr/u32-strncat.c: New file.
47385         * lib/unistr/u-strncat.h: New file.
47386
47387         * modules/unistr/u8-strncmp: New file.
47388         * modules/unistr/u16-strncmp: New file.
47389         * modules/unistr/u32-strncmp: New file.
47390         * lib/unistr/u8-strncmp.c: New file.
47391         * lib/unistr/u16-strncmp.c: New file.
47392         * lib/unistr/u32-strncmp.c: New file.
47393
47394         * modules/unistr/u8-strncpy: New file.
47395         * modules/unistr/u16-strncpy: New file.
47396         * modules/unistr/u32-strncpy: New file.
47397         * lib/unistr/u8-strncpy.c: New file.
47398         * lib/unistr/u16-strncpy.c: New file.
47399         * lib/unistr/u32-strncpy.c: New file.
47400         * lib/unistr/u-strncpy.h: New file.
47401
47402         * modules/unistr/u8-strnlen: New file.
47403         * modules/unistr/u16-strnlen: New file.
47404         * modules/unistr/u32-strnlen: New file.
47405         * lib/unistr/u8-strnlen.c: New file.
47406         * lib/unistr/u16-strnlen.c: New file.
47407         * lib/unistr/u32-strnlen.c: New file.
47408         * lib/unistr/u-strnlen.h: New file.
47409
47410         * modules/unistr/u8-strpbrk: New file.
47411         * modules/unistr/u16-strpbrk: New file.
47412         * modules/unistr/u32-strpbrk: New file.
47413         * lib/unistr/u8-strpbrk.c: New file.
47414         * lib/unistr/u16-strpbrk.c: New file.
47415         * lib/unistr/u32-strpbrk.c: New file.
47416         * lib/unistr/u-strpbrk.h: New file.
47417
47418         * modules/unistr/u8-strrchr: New file.
47419         * modules/unistr/u16-strrchr: New file.
47420         * modules/unistr/u32-strrchr: New file.
47421         * lib/unistr/u8-strrchr.c: New file.
47422         * lib/unistr/u16-strrchr.c: New file.
47423         * lib/unistr/u32-strrchr.c: New file.
47424
47425         * modules/unistr/u8-strspn: New file.
47426         * modules/unistr/u16-strspn: New file.
47427         * modules/unistr/u32-strspn: New file.
47428         * lib/unistr/u8-strspn.c: New file.
47429         * lib/unistr/u16-strspn.c: New file.
47430         * lib/unistr/u32-strspn.c: New file.
47431         * lib/unistr/u-strspn.h: New file.
47432
47433         * modules/unistr/u8-strstr: New file.
47434         * modules/unistr/u16-strstr: New file.
47435         * modules/unistr/u32-strstr: New file.
47436         * lib/unistr/u8-strstr.c: New file.
47437         * lib/unistr/u16-strstr.c: New file.
47438         * lib/unistr/u32-strstr.c: New file.
47439         * lib/unistr/u-strstr.h: New file.
47440
47441         * modules/unistr/u8-strtok: New file.
47442         * modules/unistr/u16-strtok: New file.
47443         * modules/unistr/u32-strtok: New file.
47444         * lib/unistr/u8-strtok.c: New file.
47445         * lib/unistr/u16-strtok.c: New file.
47446         * lib/unistr/u32-strtok.c: New file.
47447         * lib/unistr/u-strtok.h: New file.
47448
47449         * modules/unistr/u8-uctomb: New file.
47450         * modules/unistr/u16-uctomb: New file.
47451         * modules/unistr/u32-uctomb: New file.
47452         * lib/unistr/u8-uctomb.c: New file.
47453         * lib/unistr/u16-uctomb.c: New file.
47454         * lib/unistr/u32-uctomb.c: New file.
47455
47456         * MODULES.html.sh (Unicode string functions): Add the new modules.
47457
47458 2007-01-08  Bruno Haible  <bruno@clisp.org>
47459
47460         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
47461         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
47462         subdirectories.
47463
47464 2007-01-08  Karl Berry  <karl@gnu.org>
47465
47466         * doc/error.texi: mention that main() fns must set program_name
47467         when progname is used.
47468
47469 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
47470
47471         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
47472         WCTYPE_H is empty, for the benefit of builds from non-distclean
47473         directories.  Problem reported by Eric Blake in
47474         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
47475
47476 2007-01-08  Bruno Haible  <bruno@clisp.org>
47477
47478         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
47479         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
47480         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
47481         PROVIDE_CANONICALIZE_FILENAME_MODE.
47482         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
47483
47484 2007-01-08  Bruno Haible  <bruno@clisp.org>
47485
47486         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
47487         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
47488         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
47489         * lib/fts.c: Likewise.
47490         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
47491
47492 2006-12-25  Bruno Haible  <bruno@clisp.org>
47493
47494         * modules/utf8-ucs4-safe: New file.
47495         * lib/utf8-ucs4-safe.h: New file.
47496         * lib/unistr/utf8-ucs4-safe.c: New file.
47497
47498         * modules/utf16-ucs4-safe: New file.
47499         * lib/utf16-ucs4-safe.h: New file.
47500         * lib/unistr/utf16-ucs4-safe.c: New file.
47501
47502         * MODULES.html.sh (Unicode string functions): Add the new modules.
47503
47504 2007-01-08  Bruno Haible  <bruno@clisp.org>
47505
47506         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
47507         (Depends-on): Add unitypes.
47508         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47509         (u8_mbtouc_aux): Move out to separate file.
47510         (u8_mbtouc): Use ucs4_t, uint8_t types.
47511         * lib/unistr/utf8-ucs4.c: New file.
47512
47513         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
47514         (Depends-on): Add unitypes.
47515         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47516         (u16_mbtouc_aux): Move out to separate file.
47517         (u16_mbtouc): Use ucs4_t, uint16_t types.
47518         * lib/unistr/utf16-ucs4.c: New file.
47519
47520         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
47521         (Depends-on): Add unitypes.
47522         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
47523         (u8_uctomb_aux): Move out to separate file.
47524         (u8_uctomb): Use ucs4_t, uint8_t types.
47525         * lib/unistr/ucs4-utf8.c: New file.
47526
47527         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
47528         (Depends-on): Add unitypes.
47529         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
47530         (u16_uctomb_aux): Move out to separate file.
47531         (u16_uctomb): Use ucs4_t, uint16_t types.
47532         * lib/unistr/ucs4-utf16.c: New file.
47533
47534 2006-12-25  Bruno Haible  <bruno@clisp.org>
47535
47536         * modules/unitypes: New file.
47537         * lib/unitypes.h: New file.
47538         * MODULES.html.sh (func_all_modules): New section "Unicode string
47539         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
47540         this section. Add unitypes.
47541
47542 2007-01-08  Bruno Haible  <bruno@clisp.org>
47543
47544         Avoid variable names that conflict with those from libtool.
47545         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
47546         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
47547         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
47548         library_names_spec to acl_library_names_spec, hardcode_* to
47549         acl_hardcode_*.
47550         Reported by Ralf Wildenhues.
47551
47552 2007-01-08  Bruno Haible  <bruno@clisp.org>
47553
47554         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
47555         definition.
47556         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
47557         definition.
47558         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
47559         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
47560         definition.
47561         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
47562         definition.
47563         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
47564         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
47565         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
47566         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
47567         definition.
47568         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
47569         definition.
47570         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
47571         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
47572         GC_USE_<algorithm>.
47573         * lib/gc-libgcrypt.c: Likewise.
47574         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
47575         * modules/gc-arctwo (configure.ac): Likewise.
47576         * modules/gc-des (configure.ac): Likewise.
47577         * modules/gc-hmac-md5 (configure.ac): Likewise.
47578         * modules/gc-hmac-sha1 (configure.ac): Likewise.
47579         * modules/gc-md2 (configure.ac): Likewise.
47580         * modules/gc-md4 (configure.ac): Likewise.
47581         * modules/gc-md5 (configure.ac): Likewise.
47582         * modules/gc-random (configure.ac): Likewise.
47583         * modules/gc-rijndael (configure.ac): Likewise.
47584         * modules/gc-sha1 (configure.ac): Likewise.
47585
47586 2007-01-08  Bruno Haible  <bruno@clisp.org>
47587
47588         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
47589         macro definition.
47590         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
47591         definition.
47592         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
47593         definition.
47594         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
47595         * modules/fcntl-safer (configure.ac): Likewise.
47596         * modules/fopen-safer (configure.ac): Likewise.
47597         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
47598         GNULIB_FWRITEERROR macro definition.
47599
47600 2007-01-08  Bruno Haible  <bruno@clisp.org>
47601
47602         * m4/gnulib-common.m4: New file.
47603         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
47604         (func_get_filelist): Add m4/gnulib-common.m4.
47605
47606 2007-01-08  Bruno Haible  <bruno@clisp.org>
47607
47608         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
47609         command.
47610
47611 2007-01-08  Jim Meyering  <jim@meyering.net>
47612
47613         Use a more robust test for a "can't happen" condition.
47614         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
47615         narrowed the st_size value.  Presuming the "can't happen" condition
47616         is true, that narrowing could conceivably convert an invalid st_size
47617         value into a valid one.  Instead, use a change based on Matthew
47618         Woehlke's original patch.
47619
47620         Slight readability improvement: use an assert-like macro
47621         in place of literal "abort ()" uses.
47622         * lib/fts.c (fts_assert): Define.
47623         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
47624         Use this macro instead of a bare 'abort'.
47625
47626 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
47627
47628         Don't worry about using IRIX 5.3's wctype.h broken definitions;
47629         simply work around them.
47630         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
47631         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
47632         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
47633         declaring.
47634         Don't bother to define as macros, since the standard doesn't require it.
47635         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
47636         longer worry about IRIX 5.3.
47637         (HAVE_WCTYPE_CTMP_BUG): Remove.
47638
47639 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47640
47641         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
47642         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
47643         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47644         Problems reported by Georg Schwarz for IRIX 5.3.
47645
47646         * gnulib-tool (autoconf_minversion): Take the maximum version number
47647         found, not the minimum.  Problem reported by James Youngman.
47648
47649 2007-01-03  Karl Berry  <karl@gnu.org>
47650
47651         * doc/error.texi: new file, explaining interaction with progname.
47652         * doc/gnulib.texi: include it.  Update copyright.
47653
47654 2007-01-03  Simon Josefsson  <simon@josefsson.org>
47655
47656         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
47657         AC_CANONICAL_HOST, to improve autobuild outputs.
47658
47659 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
47660             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47661
47662         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
47663         sockets, server sockets, and other file descriptors.  Count errors
47664         to compute the return value.  Reorder the code a bit to be easier
47665         to follow.  Don't set event bits that were not requested (except
47666         POLLERR and POLLHUP).
47667
47668 2007-01-01  Bruno Haible  <bruno@clisp.org>
47669
47670         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
47671
47672 2007-01-03  Jim Meyering  <jim@meyering.net>
47673
47674         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
47675
47676 2007-01-02  Bruno Haible  <bruno@clisp.org>
47677
47678         * modules/settime (Include): Require timespec.h.
47679         * modules/nanosleep (Include): Likewise.
47680
47681 2007-01-01  Bruno Haible  <bruno@clisp.org>
47682
47683         * gnulib-tool (func_emit_copyright_notice): Bump year.
47684         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
47685
47686 2007-01-01  Bruno Haible  <bruno@clisp.org>
47687
47688         Improve support for OpenBSD.
47689         * build-aux/config.rpath (libname_spec): Export.
47690         (library_names_spec): New variable. Export.
47691         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
47692         library_names_spec from the config.rpath output. Locate shared library
47693         through the name pattern in library_names_spec.
47694
47695 2007-01-01  Eric Blake  <ebb9@byu.net>
47696
47697         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
47698
47699 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
47700
47701         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
47702         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
47703         assume the C locale, and avoid an "eval" that could cause trouble.
47704         Problem with SORT reported by Bob Proulx.
47705
47706         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
47707         Define.  Trivial patch from Henning Nielsen Lund, originally
47708         sent to bug-grep@gnu.org today.
47709
47710 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47711
47712         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
47713         struct stat.  Problem reported by Henning Nielsen Lund.
47714         * lib/acl.c: Include acl.h first, to check interface.  Don't
47715         bother to include sys/types.h and sys/stat.h again.
47716
47717 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
47718
47719         Import the following change from libc; problem reported by
47720         Sven Verdoolaege.
47721
47722         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
47723
47724         [BZ #1373]
47725         * lib/argp.h: Remove __NTH for __argp_usage inline function.
47726
47727 2006-12-28  Jim Meyering  <jim@meyering.net>
47728
47729         * build-aux/announce-gen: Do not assume that the package
47730         builds any of tar.gz, tar.bz2, and .xdelta files.
47731         Suggestion from Simon Josefsson.
47732
47733 2006-12-28  Simon Josefsson  <simon@josefsson.org>
47734
47735         * modules/announce-gen: New file.
47736
47737 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
47738
47739         * lib/mbchar.h: Just include <wctype.h>; the wctype module
47740         handles its gotchas now.
47741         * lib/mbswidth.c: Likewise.
47742         * lib/wcwidth.h: Likewise.
47743         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
47744         and iswcntrl; the wctype module does this stuff now.
47745         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47746         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47747         * modules/mbchar (Depends-on): Add wctype.
47748         * modules/mbswidth (Depends-on): Likewise.
47749         * modules/wcwidth (Depends-on): Likewise.
47750
47751 2006-12-27  Eric Blake  <ebb9@byu.net>
47752
47753         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
47754         module uses more than what <wctype.h> is required to provide.
47755
47756 2006-12-26  Eric Blake  <ebb9@byu.net>
47757
47758         * gnulib-tool (sed_extract_prog): Avoid space-tab.
47759
47760 2006-12-26  Eric Blake  <ebb9@byu.net>
47761
47762         * modules/absolute-header: New module.
47763         * modules/fcntl (Depends-on): Depend on it.
47764         * modules/inttypes (Depends-on): Likewise.
47765         * modules/stdint (Depends-on): Likewise.
47766         * modules/sys_stat (Depends-on): Likewise.
47767         * modules/wctype (Depends-on): Likewise.
47768         * MODULES.html.sh (Support for building libraries and
47769         executables): Document it.
47770
47771 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47772
47773         * gnulib-tool (SED): Remove, undoing previous change.
47774         The problem was that it broke coreutils on Solaris, because
47775         "sed --posix" leaked into a makefile.
47776         (sed): New alias, if 'alias' and GNU sed.
47777
47778 2006-12-24  Jim Meyering  <jim@meyering.net>
47779
47780         Work around an fchownat bug in glibc-2.4:
47781         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
47782         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
47783         in spite of the -P option.
47784         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
47785         New macros.
47786         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
47787         * modules/openat (Files): Add lib/fchownat.c.
47788         * lib/openat.c (fchownat): Don't define here.  Move to...
47789         * lib/fchownat.c: ...this new file.
47790
47791 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47792
47793         Fix bug reported by Bruno Haible in
47794         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
47795         where quotearg.c didn't compile on Mac OS X 10.2 because it
47796         lacks <wchar.h> and wint_t.
47797         * lib/wctype_.h (__wctype_wint_t): New type.
47798         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
47799         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
47800         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
47801         Arg is now of type __wctype_wint_t, not wint_t.
47802         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
47803         substitute HAVE_WINT_T.
47804         * modules/wctype (Files): Add m4/wint_t.m4.
47805         (wctype.h): Substitute HAVE_WINT_T.
47806
47807 2006-12-23  Bruno Haible  <bruno@clisp.org>
47808
47809         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
47810
47811 2006-12-23  Bruno Haible  <bruno@clisp.org>
47812
47813         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
47814         S_ISLNK.
47815         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
47816         mingw.
47817
47818 2006-12-22  Bruno Haible  <bruno@clisp.org>
47819
47820         * lib/copy-file.c: Include acl.h.
47821         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
47822         Close the file descriptors only after being done with copy_acl.
47823         * modules/copy-file (Depends-on): Add acl.
47824
47825 2006-12-22  Bruno Haible  <bruno@clisp.org>
47826
47827         * gnulib-tool (SED): New variable.
47828         Use $SED instead of sed everywhere.
47829
47830 2006-12-22  Bruno Haible  <bruno@clisp.org>
47831
47832         * modules/no-c++: New file.
47833         * m4/no-c++.m4: New file.
47834         * MODULES.html.sh (Support for building libraries and executables):
47835         Add no-c++.
47836
47837 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
47838
47839         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47840         Include <limits.h>, and use its INT_MAX to rewrite the
47841         j loop so that it does not overflow 'int'.  Problem reported by
47842         Ralf Wildenhues in
47843         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
47844         Play it safe by shifting left by 1 rather than multiplying by 2,
47845         as GCC is less likely to optimize this away when the value
47846         is signed (when it assumes overflow leads to undefined behavior).
47847         Also, don't assume time_t uses two's complement.
47848
47849 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
47850
47851         * MODULES.html.sh: New module wctype.
47852         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
47853         * lib/fnmatch.c: Don't bother to include <wchar.h> before
47854         <wctype.h>, since the new wctype module should fix this.
47855         * lib/quotearg.c: Include <wctype.h> unconditionally, since
47856         the wctype module should arrange for it.
47857         * lib/regex_internal.h: Likewise.
47858         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
47859         since the wctype module should handle this now.
47860         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
47861         * modules/fnmatch (Depends-on): Add wctype.
47862         * modules/quotearg (Depends-on): Likewise.
47863         * modules/regex (Depends-on): Likewise.
47864
47865 2006-12-19  Bruno Haible  <bruno@clisp.org>
47866
47867         * lib/strdup.h [C++]: Wrap definitions in extern "C".
47868         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
47869
47870 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47871
47872         * modules/savewd (Depends-on): Fix dependency on fcntl.
47873
47874 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47875
47876         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
47877         conforms to C99, rather than relying on the user's environment
47878         setting of STDINT_H.
47879
47880 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47881         and Eric Blake  <ebb9@byu.net>
47882
47883         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
47884         This is more consistent with the other defines here.
47885         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
47886         Port to z/OS.  Problem reported by Paul Gilmartin.
47887         Change local vars to use gl_ prefix rather than ac_.
47888         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
47889         with other defines.
47890         * modules/double-slash-root: New module.
47891         * modules/dirname (Files): Remove m4/double-slash-root.m4.
47892         (Depends-on): Add double-slash-root.
47893         * MODULES.html.sh (File system functions): Mention new module.
47894
47895 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
47896
47897         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
47898         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
47899         This is for the benefit of gzip, which doesn't do i18n.
47900
47901 2006-12-12  Jim Meyering  <jim@meyering.net>
47902
47903         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
47904         Reported by Andreas Schwab <schwab@suse.de>.
47905
47906 2006-12-12  Bruno Haible  <bruno@clisp.org>
47907
47908         Merge these changes.
47909         2006-09-05  Bruno Haible  <bruno@clisp.org>
47910         * lib/iconvme.c (iconv_string): No need to save and restore errno when
47911         iconv_alloc succeeded.
47912         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
47913         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
47914         test for " && dest " at the end - dest is always != NULL there. Call
47915         iconv with 4xNULL arguments initially, to reset the state. Call iconv
47916         with 2xNULL arguments, also to flush the state storage. Handle the
47917         IRIX iconv behaviour. Realloc the final result, to throw away unused
47918         memory.
47919
47920 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
47921
47922         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
47923         and fchmodat unconditionally, since glibc 2.4 has them.
47924         Problem reported by Arkadiusz Miskiewicz.
47925
47926 2006-12-10  Bruno Haible  <bruno@clisp.org>
47927
47928         * gnulib-tool (func_import): Show the include files only for those
47929         modules that are copied and specified.
47930         Reported by Karl Berry.
47931
47932 2006-12-08  Jim Meyering  <jim@meyering.net>
47933
47934         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
47935         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
47936
47937         * build-aux/announce-gen: Add two new options, both optional:
47938         --bootstrap-tools=TOOL_LIST
47939               a comma-separated list of tools, e.g.,
47940               autoconf,automake,bison,gnulib
47941         --gnulib-snapshot-date=DATE
47942               if gnulib is in the bootstrap tool list,
47943               then report this as the snapshot date.
47944               If not specified, use the current date/time.
47945               If you specify a date here, be sure it's UTC.
47946
47947 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47948
47949         * tests/test-argp-2.sh: Fix test to match actual output.
47950         (func_compare): Fix sed script to be portable.
47951
47952 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
47953
47954         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
47955         workaround for this case.  It is not autoconfigured now; offhand
47956         it's hard to see how to autoconfigure it.
47957
47958 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47959
47960         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
47961         a directory that is about to be chowned.  Such a directory's
47962         initial file permissions should permit the owner only and this
47963         should not be changed until after the chown, since the group and
47964         other bits would be incorrect if they granted permission before
47965         the chown.
47966
47967         Fix porting problem for iswctype reported by Georg Schwarz in:
47968         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
47969         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
47970         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
47971         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
47972         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47973
47974 2006-12-03  Jim Meyering  <jim@meyering.net>
47975
47976         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
47977         p->fts_statp may not yet be defined.
47978         (fts_read): Instead, set it in the caller, once p->fts_statp is
47979         sure to be defined, and corresponds to a top-level directory.
47980         This bug made du -x fail.  Here's the coreutils test case:
47981         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
47982         Reported by Mike Frysinger.
47983
47984 2006-12-01  Jim Meyering  <jim@meyering.net>
47985
47986         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
47987         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
47988         Reported by Simon Josefsson.
47989
47990 2006-11-30  Jim Meyering  <jim@meyering.net>
47991
47992         * m4/warning.m4: Use the all-permissive copyright notice
47993         recommended by RMS (rather than LGPL).
47994         * m4/vararrays.m4: Likewise.
47995         * m4/flexmember.m4: Likewise.
47996
47997 2006-11-29  Bruno Haible  <bruno@clisp.org>
47998
47999         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48000         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
48001         using +=.
48002         Reported by Simon Josefsson <simon@josefsson.org>.
48003
48004 2006-11-28  James Youngman <jay@gnu.org>
48005
48006         * README: Advise users that they might find the bug-gnulib@gnu.org
48007         and autotools-announce@gnu.org mailing lists useful.
48008
48009 2006-11-28  Bruno Haible  <bruno@clisp.org>
48010
48011         * m4/ptrdiff_max.m4: Remove file.
48012
48013 2006-11-21  Bruno Haible  <bruno@clisp.org>
48014
48015         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
48016         _AC_COMPUTE_INT.
48017         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48018         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
48019         _AC_COMPUTE_INT.
48020         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48021         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
48022         _AC_COMPUTE_INT.
48023         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48024
48025 2006-11-28  Jim Meyering  <jim@meyering.net>
48026
48027         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
48028         warning from "gcc -Wshadow" about shadowing the builtin.
48029
48030 2006-11-27  Bruno Haible  <bruno@clisp.org>
48031
48032         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
48033         _AC_COMPUTE_INT.
48034         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48035
48036 2006-11-27  Bruno Haible  <bruno@clisp.org>
48037             Paul Eggert  <eggert@cs.ucla.edu>
48038
48039         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
48040
48041 2006-11-26  Bruno Haible  <bruno@clisp.org>
48042
48043         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48044         noinst_LTLIBRARIES.
48045
48046 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
48047             Bruno Haible  <bruno@clisp.org>
48048
48049         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
48050         if compiling with "gcc -ansi".
48051
48052 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
48053
48054         Fix some incompatibilities with gcc -ansi -pedantic.
48055         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
48056         if compiling pedantically with GCC, unless it's C99 or later.
48057         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
48058         it mishandles gcc -ansi -pedantic as well.
48059         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
48060         if gcc -pedantic.
48061         * lib/regexec.c (check_node_accept_bytes): Don't use auto
48062         initializers for struct if -pedantic, unless it's C99 or later.
48063
48064 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
48065
48066         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
48067         Don't close an fd more than once. Identical atimes indicate
48068         success, not failure.
48069
48070 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
48071
48072         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
48073
48074 2006-11-23  Jim Meyering  <jim@meyering.net>
48075
48076         * build-aux/announce-gen: New file.  From coreutils.
48077
48078 2006-11-22  Jim Meyering  <jim@meyering.net>
48079
48080         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
48081         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
48082         (fts_read): Use a temporary to narrow the overused st_size member
48083         before using it in a switch statement.  Reported by Matthew Woehlke.
48084
48085         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
48086         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
48087
48088 2006-11-20  Bruno Haible  <bruno@clisp.org>
48089
48090         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
48091         changequote instead of pairs of brackets.
48092         Reported by Andreas Schwab <schwab@suse.de>.
48093
48094 2006-11-21  Jim Meyering  <jim@meyering.net>
48095
48096         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
48097         so as to remain compatible with older compilers.
48098         Patch from Michael Deutschmann.
48099
48100 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48101
48102         * MODULES.html.sh (File system functions): Add openat.
48103
48104         * lib/openat.h (rpl_fstatat): New macro, if
48105         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
48106         (fstatat): Define to rpl_fstatat under the same conditions,
48107         unless COMPILING_FSTATAT.
48108         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
48109         seems to have the bug.
48110         * lib/fstatat.c: New file.
48111         * modules/openat (Files): Add it.
48112
48113 2006-11-20  Bruno Haible  <bruno@clisp.org>
48114
48115         * Makefile: New file.
48116
48117 2006-11-20  Jim Meyering  <jim@meyering.net>
48118
48119         The beginnings of syntax-related checks for gnulib.
48120         * lib/Makefile: New file.
48121         * lib/t-idcache: New script.  Ensure that the two halves of
48122         idcache.c stay in sync.
48123
48124         * lib/idcache.c: Adjust comments in user- and group- portions to
48125         be more accurate, and to be consistent with one another.
48126
48127 2006-11-20  Jim Meyering  <jim@meyering.net>
48128
48129         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
48130         continue using the flexible array member (thus, this module performs
48131         half as many malloc calls), with the addition that...
48132         (getgroup, getuser): Consistently record a non-match via an empty
48133         "name" string, and map an empty string match to a NULL return value.
48134         * modules/idcache (Depends-on): Re-add flexmember.
48135
48136         * lib/idcache.c (getuser): Remove all uses of the register keyword.
48137         (getuidbyname, getgroup, getgidbyname): Likewise.
48138
48139         Use cleaner syntax: NULL rather than 0.
48140         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
48141
48142 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48143
48144         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
48145         It mishandled the case where the group was missing.
48146         Problem reported by Greg Schafer.
48147         * modules/idcache: Likewise.
48148
48149 2006-11-18  Jim Meyering  <jim@meyering.net>
48150
48151         * check-module (%exempt_header): Add exception for some
48152         conditionally-included headers.
48153
48154         * modules/i-ring (Depends-on): Add verify.
48155         (License): Change to LGPL.
48156
48157 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48158
48159         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
48160         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
48161         and inttostr.h.  Use snprintf rather than uinttostr, so that
48162         LGPLed code doesn't depend on GPLed.
48163
48164 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
48165
48166         * modules/inline (License): Change from GPL to LGPL.
48167
48168 2006-11-17  Jim Meyering  <jim@meyering.net>
48169
48170         * modules/d-type (License): Switch to LGPL.
48171
48172 2006-11-15  Bruno Haible  <bruno@clisp.org>
48173
48174         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
48175
48176 2006-11-15  Eric Blake  <ebb9@byu.net>
48177
48178         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
48179         the module dependency.
48180
48181 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48182             Bruno Haible  <bruno@clisp.org>
48183
48184         * gnulib-tool (func_create_testdir): Add license consistency check.
48185
48186 2006-11-15  Eric Blake  <ebb9@byu.net>
48187
48188         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
48189         random "(cached)" in configure output.
48190
48191 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48192
48193         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
48194         test for conforming inttypes.h is both announced and cached.
48195
48196         * MODULES.html.sh (seen_modules, seen_files): New variables.
48197         (func_module): Rewrite to use a few less gnulib-tool and sed
48198         invocations.  Avoid a couple of quadratic algorithms for ...
48199         (missed_modules, missed_files): ... these, with ...
48200         (func_append, func_tmpdir): ... these new functions, from
48201         gnulib-tool.  Analogously, install traps for cleanup.
48202
48203         * tests/test-gc.c (main): Remove unused variables.
48204         * tests/test-read-file.c: Include stdlib.h, for 'free'.
48205
48206 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
48207
48208         * modules/inttostr (License): Change to LGPL.
48209
48210 2006-11-14  Eric Blake  <ebb9@byu.net>
48211
48212         * modules/tempname (License): Change to LGPL.
48213
48214 2006-11-14  Eric Blake  <ebb9@byu.net>
48215
48216         * doc/functions.texi (Function Portability): *printf functions on
48217         Cygwin now understand all POSIX size specifiers.
48218
48219 2006-11-14  Bruno Haible  <bruno@clisp.org>
48220
48221         * modules/c-ctype (License): Change to LGPL.
48222
48223 2006-11-12  Bruno Haible  <bruno@clisp.org>
48224
48225         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48226         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
48227         for GNOME libraries, for which the include files are installed in
48228         subdirectories of $prefix/include.
48229
48230 2006-11-12  Bruno Haible  <bruno@clisp.org>
48231
48232         * m4/lib-link.m4: Require at least autoconf-2.54.
48233         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
48234         name to underscores for the --with option.
48235
48236 2006-11-13  Bruno Haible  <bruno@clisp.org>
48237
48238         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
48239         the tests directory.
48240         Reported by Ralf Wildenhues.
48241
48242 2006-11-13  Bruno Haible  <bruno@clisp.org>
48243
48244         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
48245         (func_emit_initmacro_end): Undo the override here.
48246         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
48247         Works around the famous automake error in coreutils.
48248
48249 2006-11-13  Eric Blake  <ebb9@byu.net>
48250
48251         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
48252         element, not its node.
48253
48254 2006-11-12  Bruno Haible  <bruno@clisp.org>
48255
48256         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
48257         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
48258
48259 2006-11-12  Bruno Haible  <bruno@clisp.org>
48260
48261         * gnulib-tool: New option --local-symlink.
48262         (func_usage): Document it.
48263         (lsymbolic): New variable.
48264         (func_import, func_create_testdir): If --symlink was not specified,
48265         test whether --local-symlink was specified and the file comes from
48266         the local_gnulib_dir.
48267
48268 2006-11-12  Bruno Haible  <bruno@clisp.org>
48269
48270         * gnulib-tool (func_ln): New function.
48271         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
48272
48273 2006-11-12  Bruno Haible  <bruno@clisp.org>
48274
48275         Finish support for source files in subdirectories.
48276         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
48277         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
48278         AUTOMAKE_OPTIONS.
48279         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
48280
48281 2006-11-12  Bruno Haible  <bruno@clisp.org>
48282
48283         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48284         EXTRA_lib_SOURCES augmentation.
48285         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
48286
48287 2006-11-12  Jim Meyering  <jim@meyering.net>
48288
48289         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
48290         file descriptors.  This also averts a failure on systems with
48291         native openat support when a traversed directory lacks "x" access.
48292         * lib/fts_.h: Include "i-ring.h"
48293         (struct FTS) [fts_fd_ring]: New member.
48294         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
48295         (FCHDIR): Add parentheses.
48296         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
48297         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
48298         When descending, rather than simply closing the previous
48299         fts_cwd_fd value, push that file descriptor onto the ring.
48300         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
48301         (fts_open): Initialize the new fd_ring member.
48302         (fts_close): Clear the ring.
48303         (fts_safe_changedir): When possible, use our new fd_ring to skip
48304         the diropen and fstat and dev/ino comparison that would normally
48305         accompany a virtual `chdir ("..")'.
48306
48307         * modules/fts (Depends-on): Add i-ring.
48308         * modules/i-ring: New module.
48309         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
48310         * m4/i-ring.m4: New file.
48311
48312 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48313
48314         * gnulib-tool (func_create_testdir): Fix replacement of
48315         `build-aux' in configure.ac.  Run autotools in gltests
48316         subdirectory.
48317         (func_create_testdir, func_create_megatestdir, test): There is
48318         no need for '--force' in most autotool invocations in a new
48319         tree.  Actually fail the whole test if any of the tools, or the
48320         configure or make stages fail.
48321
48322         Sync from Automake.
48323         * build-aux/gnupload: Revert last change.  Add pointer to upload
48324         instructions of the GNU Maintenance Instructions.
48325         Suggestion by Karl Berry.
48326
48327 2006-11-10  Jim Meyering  <jim@meyering.net>
48328
48329         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
48330
48331 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48332
48333         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
48334         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
48335         (bind_textdomain_codeset) [! ENABLE_NLS]:
48336         Evaluate all the arguments.  That way, callers get compatible behavior
48337         if the arguments have side effects.  Also, it avoids some GCC
48338         diagnostics in some cases; Joel E. Denny reported problems when Bison
48339         was configured with --enable-gcc-warnigs.
48340
48341 2006-11-10  Jim Meyering  <jim@meyering.net>
48342
48343         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
48344         relevant options in CFLAGS (like -O, -fno-inline) are taken into
48345         account.
48346
48347 2006-11-10  Jim Meyering  <jim@meyering.net>
48348
48349         * modules/inline: New file/module.
48350         * modules/xalloc (Files): Remove m4/inline.m4.
48351         (Depends-on): Add inline, instead.
48352         * modules/oset: Likewise.
48353         * modules/list: Likewise.
48354
48355 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48356
48357         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
48358         Problem reported by Matthew Woehlke.
48359
48360 2006-11-09  Bruno Haible  <bruno@clisp.org>
48361
48362         * lib/tempname.c (gen_tempname): Remove variant that invokes
48363         __gen_tempname.
48364         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
48365         __gen_tempname.
48366
48367 2006-11-08  Bruno Haible  <bruno@clisp.org>
48368
48369         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
48370         to 'yes' instead of 'cross-compiling'.
48371
48372 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
48373
48374         * lib/quotearg.h (quotearg_free): New decl.
48375         * lib/quotearg.c (quotearg_free): New function.
48376         (slot0, nslots, slotvec0, slotvec):
48377         Now file-scope so that quotearg_free can get at them.
48378
48379 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48380
48381         Sync from Automake.
48382         * build-aux/gnupload: Add missing 'gnu' to example URL.
48383         Report by Karl Berry.
48384
48385 2006-11-08  Bruno Haible  <bruno@clisp.org>
48386
48387         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
48388         Suggested by Paul Eggert.
48389
48390 2006-11-08  Jim Meyering  <jim@meyering.net>
48391
48392         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
48393         It's already included if !_LIBC.
48394         (fts_safe_changedir): Add a comment.
48395
48396 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48397
48398         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
48399         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
48400         Matthew Woehlke.
48401
48402         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
48403         definitions up, to avoid colliding with change below.
48404         (static_inline) [HAVE_INLINE]: New macro.
48405         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
48406         Provide extern decls when !HAVE_INLINE.  Do not define unless
48407         static_inline is defined, either by us or by xmalloc.c.  Use
48408         static_inline rather than static inline.
48409         (XCALLOC): Optimize sizeof(T) = 1 case.
48410         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
48411
48412 2006-11-07  Bruno Haible  <bruno@clisp.org>
48413
48414         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
48415         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
48416         AC_C_INLINE.
48417         * modules/xalloc (Files): Add m4/inline.m4.
48418
48419 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48420
48421         * README: Fix typo.
48422         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
48423         (Miscellanous Notes): ...from this.
48424
48425 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48426
48427         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
48428         Mention that offsetof should be used instead of sizeof.
48429         From Bruno Haible.
48430
48431 2006-11-07  Bruno Haible  <bruno@clisp.org>
48432
48433         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
48434
48435 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
48436
48437         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48438         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
48439         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48440         (gl_tree_add_before, gl_tree_add_after):
48441         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
48442         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
48443         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
48444         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
48445         (gl_linked_add_after, gl_linked_add_at): Likewise.
48446         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
48447         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48448         (gl_tree_add_before, gl_tree_add_after): Likewise.
48449         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
48450         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
48451         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
48452
48453 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48454
48455         * lib/gl_oset.h: Use C comment style, not C++ comment style.
48456
48457 2006-11-06  Bruno Haible  <bruno@clisp.org>
48458
48459         * m4/inline.m4: New file.
48460         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
48461         * modules/list (Files): Add m4/inline.m4.
48462         * modules/oset (Files): Likewise.
48463
48464 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
48465
48466         * lib/idcache.c: Include <stddef.h>, for offsetof.
48467         (struct userid.name): Change from char * to a flexible array member.
48468         All uses changed.
48469         * modules/idcache (Depends-on): Add flexmember.
48470
48471         * MODULES.html.sh (Core language properties): New module flexmember.
48472         * modules/flexmember, m4/flexmember.m4: New files.
48473
48474         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
48475         inline functions that are identical with the old xnmalloc_inline,
48476         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
48477         that we can avoid some unnecessary integer multiplications and
48478         divisions in the common case where the element size is known at
48479         compile time.
48480         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
48481         needed.
48482         (xnboundedmalloc): Remove.
48483         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
48484         arguments, for consistency with rest of this header.
48485         (xcharalloc): Rewrite using XNMALLOC.
48486         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
48487         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
48488         versions have been moved to lib/xalloc.h and renamed to be the
48489         non-*_inline versions.
48490         (xmalloc, xrealloc): Implement without reference to the xnmalloc
48491         and xnrealloc functions, since those functions are now inline and
48492         now call us.
48493         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
48494         renaming described above.
48495         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
48496         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
48497         captures the dependency in AC_C_INLINE.
48498
48499         New module canonicalize-lgpl, proposed by Charles Wilson in
48500         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
48501         with a few small changes afterwards.
48502         * MODULES.html.sh (File system functions): New module
48503         canonicalize-lgpl.
48504         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
48505         and canonicalize_file_name.
48506         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
48507         * modules/canonicalize-lgpl: New files.
48508
48509 2006-11-05  Bruno Haible  <bruno@clisp.org>
48510
48511         * gnulib-tool (func_import, func_create_testdir): Create directories
48512         also for files in subdirectories of lib/.
48513
48514 2006-11-05  Bruno Haible  <bruno@clisp.org>
48515
48516         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
48517         ANSI C compliant.
48518
48519 2006-11-03  Bruno Haible  <bruno@clisp.org>
48520
48521         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48522         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
48523         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
48524         (xnboundedmalloc): New inline function.
48525         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
48526         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
48527         xmalloc.
48528         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
48529         xmalloc.
48530         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
48531         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
48532         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
48533         xmalloc.
48534         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
48535         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
48536         xmalloc.
48537         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
48538         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48539         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
48540         xmalloc.
48541         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
48542         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
48543         gl_tree_add_after): Use XMALLOC instead of xmalloc.
48544         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
48545         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
48546         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
48547         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
48548
48549 2006-11-03  Bruno Haible  <bruno@clisp.org>
48550
48551         * lib/c-ctype.h [C++]: Define functions without name mangling.
48552         * lib/fwriteerror.h [C++]: Likewise.
48553         * lib/gcd.h [C++]: Likewise.
48554         * lib/linebreak.h [C++]: Likewise.
48555
48556 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
48557
48558         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
48559         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
48560         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
48561         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
48562         Check for functions and headers just once.
48563         Check for declaration of canonicalize_file_name.
48564         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
48565
48566 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48567
48568         * gnulib-tool (func_import): Fix typo in actioncmd.
48569
48570 2006-11-02  Bruno Haible  <bruno@clisp.org>
48571
48572         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
48573         newline sequence in the Makefile.am snippet as a space, like "make"
48574         does.
48575         Reported by Roger Persson <perrog@gmail.com>.
48576
48577 2006-11-01  Bruno Haible  <bruno@clisp.org>
48578
48579         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
48580         already declared in <string.h>.
48581         * lib/strcase.h (strncasecmp): Don't declare it if yes.
48582
48583 2006-11-01  Bruno Haible  <bruno@clisp.org>
48584
48585         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
48586         * lib/strcase.h: Include <string.h>.
48587         (strcasecmp): Define to rpl_strcasecmp here.
48588
48589 2006-11-01  Bruno Haible  <bruno@clisp.org>
48590
48591         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
48592
48593 2006-11-01  Eric Blake  <ebb9@byu.net>
48594
48595         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
48596
48597         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
48598
48599 2006-10-29  Bruno Haible  <bruno@clisp.org>
48600
48601         Make it compile in C++ mode.
48602         * lib/full-write.c (full_rw): Add a cast.
48603
48604 2006-11-01  Bruno Haible  <bruno@clisp.org>
48605
48606         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
48607         be POSIX compliant.
48608         Reported by Roger Persson <perrog@gmail.com>.
48609
48610 2006-11-01  Eric Blake  <ebb9@byu.net>
48611
48612         * lib/getopt_.h: Fix comments.
48613
48614 2006-10-31  Eric Blake  <ebb9@byu.net>
48615
48616         * modules/tmpdir (Depends-on): Add sys_stat.
48617         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
48618         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
48619         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
48620         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
48621         tempname.
48622
48623 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
48624
48625         Avoid some C++ diagnostics reported by Bruno Haible.
48626         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
48627         xmalloc.
48628         (quotearg_alloc): Use xcharalloc rather than xmalloc.
48629         (struct slotvec): Move to top level.
48630         (quotearg_n_options): Rewrite to avoid xmalloc.
48631         * lib/xalloc.h (xcharalloc): New function.
48632         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
48633         [defined __cplusplus]: Add function template that provides result
48634         type propagation.  This part of the change is from Bruno Haible.
48635
48636 2006-10-29  Bruno Haible  <bruno@clisp.org>
48637
48638         Make it compile in C++ mode.
48639         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
48640         * lib/strnlen1.c (strnlen1): Cast memchr result.
48641         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
48642         * lib/clean-temp.c (string_equals, string_hash): Add casts.
48643         (create_temp_dir): Rename local variable 'template'.
48644         (compile_csharp_using_sscli): Add cast.
48645         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
48646         * lib/findprog.c (find_in_path): Likewise.
48647         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
48648         * lib/wait-process.c (register_slave_subprocess): Likewise.
48649
48650 2006-10-22  Bruno Haible  <bruno@clisp.org>
48651
48652         * modules/tsearch: New file.
48653         * lib/tsearch.h: New file.
48654         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
48655         * m4/tsearch.m4: New file.
48656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
48657
48658 2006-10-29  Eric Blake  <ebb9@byu.net>
48659
48660         * lib/arcfour.c: Assume config.h.
48661         * lib/arctwo.c: Likewise.
48662         * lib/base64.c: Likewise.
48663         * lib/check-version.c: Likewise.
48664         * lib/crc.c: Likewise.
48665         * lib/des.c: Likewise.
48666         * lib/gc-gnulib.c: Likewise.
48667         * lib/gc-libgcrypt.c: Likewise.
48668         * lib/gc-pbkdf2-sha1.c: Likewise.
48669         * lib/getaddrinfo.c: Likewise.
48670         * lib/getdelim.c: Likewise.
48671         * lib/getline.c: Likewise.
48672         * lib/hmac-md5.c: Likewise.
48673         * lib/hmac-sha1.c: Likewise.
48674         * lib/iconvme.c: Likewise.
48675         * lib/md2.c: Likewise.
48676         * lib/md4.c: Likewise.
48677         * lib/memxor.c: Likewise.
48678         * lib/read-file.c: Likewise.
48679         * lib/readline.c: Likewise.
48680         * lib/rijndael-alg-fst.c: Likewise.
48681         * lib/rijndael-api-fst.c: Likewise.
48682         * lib/xgetdomainname.c: Likewise.
48683
48684 2006-10-28  Eric Blake  <ebb9@byu.net>
48685
48686         * lib/xstrndup.c: Assume config.h.
48687
48688 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48689
48690         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
48691         stat-macros.h is now for our own macros, whereas stat_h is for
48692         macros in the <sys/stat.h> name space.
48693         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
48694         (STAT_MACROS_H): Remove.
48695         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
48696         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
48697         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
48698         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
48699         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
48700         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
48701         Move these macros to ...
48702         * lib/stat_.h: here.  Don't include stat-macros.h.
48703         * lib/canonicalize.c: Don't include stat-macros.h.
48704         * lib/chown.c: Likewise.
48705         * lib/euidaccess.c: Likewise.
48706         * lib/file-type.c: Likewise.
48707         * lib/filemode.c: Likewise.
48708         * lib/glob.c: Likewise.
48709         * lib/isapipe.c: Likewise.
48710         * lib/lchown.c: Likewise.
48711         * lib/lstat.c: Likewise.
48712         * lib/mkdir-p.c: Likewise.
48713         * lib/rmdir.c: Likewise.
48714         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
48715         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
48716         unless mkdir isn't declared, to speed up 'configure'.
48717         Always create sys/stat.h, since it's unlikely any real sys/stat.h
48718         would define all the S_* symbols.
48719         * modules/canonicalize (Depends-on):
48720         Depend on sys_stat, not stat-macros.
48721         * modules/chown: Likewise.
48722         * modules/euidaccess: Likewise.
48723         * modules/filemode: Likewise.
48724         * modules/file-type: Likewise.
48725         * modules/glob: Likewise.
48726         * modules/isapipe: Likewise.
48727         * modules/lchown: Likewise.
48728         * modules/lstat: Likewise.
48729         * modules/mkancesdirs: Likewise.
48730         * modules/rmdir: Likewise.
48731         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
48732         * modules/modechange: Likewise.
48733         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
48734         (configure.ac): Remove gl_STAT_MACROS.
48735         * modules/sys_stat (Depends-on): Remove stat-macros.
48736
48737 2006-10-27  Bruno Haible  <bruno@clisp.org>
48738
48739         * m4/signed.m4: Remove file.
48740         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
48741         invocation.
48742         * modules/vasnprintf (Files): Remove m4/signed.m4.
48743
48744 2006-10-27  Bruno Haible  <bruno@clisp.org>
48745
48746         Update to GNU gettext 0.16.
48747         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
48748         m4/inttypes-h.m4, m4/signed.m4.
48749         * m4/gettext.m4: Update to GNU gettext 0.16.
48750         * m4/intl.m4: New file, from GNU gettext.
48751         * m4/intldir.m4: New file, from GNU gettext.
48752         * config/srclist.txt: Update
48753
48754 2006-10-27  Eric Blake  <ebb9@byu.net>
48755
48756         * MODULES.html.sh: Document tempname.
48757         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
48758         dependencies.
48759         (Files): Move lib/tempname.c...
48760         * modules/tempname: ...to this new module.
48761         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
48762         (gl_PREREQ_TEMPNAME): Move...
48763         * m4/tempname.m4: ...to this new file.
48764         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
48765         * modules/sys_stat (Depends-on): Add stat-macros.
48766         * lib/stat_.h (includes): Pick up stat macros.
48767         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
48768         if stat macros are broken.
48769         * lib/tempname.c (includes): No need to include "stat-macros.h".
48770         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
48771         (direxists, __path_search) [!_LIBC]: Don't compile these in
48772         gnulib; the tmpdir module covers that.
48773         * lib/tempname.h: New file.
48774
48775 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
48776
48777         * COPYING: Explain how gnulib-tool converts licence headers.
48778         Almost all wording by Eric Blake.
48779
48780 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
48781
48782         * lib/mbchar.h (is_basic_table): Make read-only.
48783         * lib/mbchar.c (is_basic_table): Likewise.
48784         Reported by John Darrington.
48785
48786 2006-10-25  Bruno Haible  <bruno@clisp.org>
48787
48788         * lib/progname.h (set_program_name): Undefine before defining.
48789
48790 2006-10-25  Bruno Haible  <bruno@clisp.org>
48791
48792         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
48793         false for non-gcc C++ compilers.
48794         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48795
48796 2006-10-24  Bruno Haible  <bruno@clisp.org>
48797
48798         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
48799         iconv implementations like Irix iconv.
48800
48801 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48802
48803         * modules/vararrays: New file.
48804         * m4/vararrays.m4: New file, taken from diffutils.
48805         * MODULES.html.sh: New module vararrays.
48806
48807 2006-10-24  Karl Berry  <karl@gnu.org>
48808
48809         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
48810         Don't call GNU Unix.
48811
48812 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48813
48814         * users.txt: Add Libtool.
48815
48816         Sync from Libtool:
48817
48818         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48819
48820         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
48821         to gnulib's policy of including config.h unconditionally.
48822
48823 2006-10-24  Bruno Haible  <bruno@clisp.org>
48824
48825         * modules/wcwidth (Files): Add m4/wint_t.m4.
48826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
48827         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
48828
48829 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48830
48831         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
48832         to pacify GCC with some -W flags enabled.  Problem reported by
48833         Bruno Haible.
48834
48835 2006-10-24  Jim Meyering  <jim@meyering.net>
48836
48837         * MODULES.html.sh: Remove uinttostr.  It's not a module.
48838         Reported by Karl Berry.
48839
48840 2006-10-23  Bruno Haible  <bruno@clisp.org>
48841
48842         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
48843
48844 2006-10-24  Bruno Haible  <bruno@clisp.org>
48845
48846         * lib/gl_list.h: Use C comment style, not C++ comment style.
48847
48848 2006-10-23  Eric Blake  <ebb9@byu.net>
48849
48850         * lib/getaddrinfo.c (includes): Add missing include.
48851
48852 2006-10-23  Bruno Haible  <bruno@clisp.org>
48853             Paul Eggert  <eggert@cs.ucla.edu>
48854
48855         Ability to rename obstack_free.
48856         * lib/obstack.h (__obstack_free): New macro. Declare instead of
48857         obstack_free.
48858         (obstack_free): Invoke the __obstack_free macro.
48859         * lib/obstack.c (obstack_free): Use __obstack_free macro.
48860
48861 2006-10-23  Bruno Haible  <bruno@clisp.org>
48862             Paul Eggert  <eggert@cs.ucla.edu>
48863
48864         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
48865         __argc, __argv from the declaration. (They are defined as macros on
48866         mingw.)
48867
48868 2006-10-22  Bruno Haible  <bruno@clisp.org>
48869
48870         * doc/gnulib-intro.texi: New file.
48871         * doc/gnulib.texi: Include it.
48872
48873 2006-10-21  Bruno Haible  <bruno@clisp.org>
48874
48875         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
48876         "Introduction", "Miscellanous Notes", "Particular Modules".
48877
48878 2006-10-21  Bruno Haible  <bruno@clisp.org>
48879
48880         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48881         Change mostlyclean-local rule to avoid sh syntax error from bash
48882         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
48883
48884 2006-10-23  Jim Meyering  <jim@meyering.net>
48885
48886         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
48887         in place of snprintf.
48888
48889         * modules/inttostr (Files): Add lib/uinttostr.c.
48890         * lib/uinttostr.c (inttostr): New file/function.
48891         * lib/inttostr.h (uinttostr): Declare.
48892         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
48893         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48894         Add uinttostr.
48895         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
48896
48897 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48898
48899         * lib/canonicalize.c (ELOOP): Define if not already defined.
48900         Problem reported by Bruno Haible in
48901         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
48902
48903 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48904
48905         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
48906         Problem reported by Perry Smith and Ville Laurikari.
48907
48908         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
48909         uses.
48910
48911 2006-10-19  Bruno Haible  <bruno@clisp.org>
48912
48913         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
48914         for mingw.
48915
48916 2006-10-19  Bruno Haible  <bruno@clisp.org>
48917
48918         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
48919         Needed for mingw.
48920
48921 2006-10-19  Bruno Haible  <bruno@clisp.org>
48922
48923         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
48924
48925 2006-10-19  Bruno Haible  <bruno@clisp.org>
48926
48927         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
48928         it.
48929
48930 2006-10-19  Bruno Haible  <bruno@clisp.org>
48931
48932         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
48933         invocation.
48934
48935 2006-10-19  Bruno Haible  <bruno@clisp.org>
48936
48937         * gnulib-tool (func_create_testdir): Don't include ftruncate and
48938         mountlist by default.
48939
48940 2006-10-16  Bruno Haible  <bruno@clisp.org>
48941
48942         * lib/c-strstr.c: Include c-strstr.h.
48943
48944 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48945
48946         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
48947         in a slash.
48948
48949 2006-10-18  Bruno Haible  <bruno@clisp.org>
48950
48951         * lib/lock.h [C++]: Wrap definitions in extern "C".
48952
48953 2006-10-18  Bruno Haible  <bruno@clisp.org>
48954
48955         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
48956         gl_LIBOBJS list.
48957
48958 2006-10-18  Bruno Haible  <bruno@clisp.org>
48959
48960         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
48961
48962 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
48963
48964         * lib/xstrtol.h: Include gettext.h.
48965         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
48966         Problem reported by Eric Blake.
48967         * modules/xstrtol (Depends-on): Add gettext-h.
48968
48969 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
48970
48971         * lib/strftime.c (advance): New macro.
48972         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
48973         incomplete type, so you can't add 0 to it.  Problem and patch
48974         reported by Eelco Dolstra for dietlibc.
48975
48976 2006-10-18  Jim Meyering  <jim@meyering.net>
48977
48978         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
48979         type for a local, and rename it: s/up/user_proc/.
48980
48981 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48982
48983         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
48984         READ_UTMP_USER_PROCESS.
48985         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
48986
48987 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48988
48989         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
48990         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
48991
48992 2006-10-17  Eric Blake  <ebb9@byu.net>
48993
48994         * lib/sigprocmask.c (sigprocmask): Fix typo.
48995
48996         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
48997
48998         * modules/clean-temp (Makefile.am): Don't add to make output...
48999         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
49000         config.h.
49001
49002 2006-10-17  Bruno Haible  <bruno@clisp.org>
49003
49004         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
49005         differently if DEFAULT_TEXT_DOMAIN is set.
49006
49007 2006-10-16  Bruno Haible  <bruno@clisp.org>
49008
49009         * lib/clean-temp.c: Include fwriteerror.h.
49010
49011 2006-10-16  Bruno Haible  <bruno@clisp.org>
49012
49013         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
49014
49015 2006-10-16  Bruno Haible  <bruno@clisp.org>
49016
49017         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
49018         * lib/sigprocmask.h: Include <sys/types.h>.
49019         (sigset_t): Use the system's definition if present.
49020
49021 2006-10-17  Eric Blake  <ebb9@byu.net>
49022
49023         * lib/xvasprintf.c (includes): Assume config.h.
49024         * lib/xasprintf.c (includes): Likewise.
49025
49026 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49027
49028         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
49029         at least as wide as intmax_t.
49030
49031 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
49032
49033         (Imported from Automake.)
49034         * build-aux/gnupload: Update to version 1.1 of directive file.
49035
49036 2006-10-16  Eric Blake  <ebb9@byu.net>
49037
49038         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
49039         match Automake 1.10a.
49040
49041 2006-10-14  Bruno Haible  <bruno@clisp.org>
49042
49043         * modules/sigprocmask: New file.
49044         * lib/sigprocmask.h: New file.
49045         * lib/sigprocmask.c: New file.
49046         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
49047         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
49048         request sigprocmask.o.
49049         (gl_PREREQ_SIGPROCMASK): New macro.
49050         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
49051         (Depends-on): Add sigprocmask.
49052         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
49053         gt_SIGNALBLOCKING. Test for 'raise' only once.
49054         * lib/fatal-signal.c: Include sigprocmask.h.
49055         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
49056         unblock_fatal_signals): Define always.
49057         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49058         sigprocmask.
49059
49060 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49061
49062         Sync from Automake.
49063         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
49064         which incorrectly sets the mode of an existing destination
49065         directory.  In some cases the unpatched install-sh could do the
49066         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
49067         system.  We hope this is rare in practice, but it's clearly worth
49068         fixing.  Problem reported by Alex Unleashed in
49069         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
49070         Also, don't bother to check for -m bugs unless we're using -m;
49071         suggested by Stepan Kasal.
49072
49073 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49074
49075         Sync from Automake.
49076         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
49077         `-c' flag, so they appear at the same position as in %FASTDEP%
49078         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
49079         which ignores unknown options only after the first non-option.
49080         Bug report against M4 by Nelson H. F. Beebe.
49081
49082 2006-10-13  Jim Meyering  <jim@meyering.net>
49083
49084         Fix a bug in yesterday's change.
49085         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
49086         p->fts_statp->st_dev would be used uninitialized.
49087         Ensures that we always call fts_stat on the very first entry.
49088         Miklos Szeredi reported that find -xdev stopped working.
49089
49090 2006-10-12  Bruno Haible  <bruno@clisp.org>
49091
49092         * gnulib-tool (func_get_automake_snippet): Append an automatically
49093         computed EXTRA_DIST augmentation.
49094         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
49095         * modules/alloca-opt (Makefile.am): Likewise.
49096         * modules/allocsa (Makefile.am): Likewise.
49097         * modules/arcfour (Makefile.am): Likewise.
49098         * modules/arctwo (Makefile.am): Likewise.
49099         * modules/argmatch (Makefile.am): Likewise.
49100         * modules/argz (Makefile.am): Likewise.
49101         * modules/atexit (Makefile.am): Likewise.
49102         * modules/backupfile (Makefile.am): Likewise.
49103         * modules/byteswap (Makefile.am): Likewise.
49104         * modules/c-strtod (Makefile.am): Likewise.
49105         * modules/c-strtold (Makefile.am): Likewise.
49106         * modules/calloc (Makefile.am): Likewise.
49107         * modules/canon-host (Makefile.am): Likewise.
49108         * modules/canonicalize (Makefile.am): Likewise.
49109         * modules/chdir-long (Makefile.am): Likewise.
49110         * modules/chdir-safer (Makefile.am): Likewise.
49111         * modules/check-version (Makefile.am): Likewise.
49112         * modules/chown (Makefile.am): Likewise.
49113         * modules/cloexec (Makefile.am): Likewise.
49114         * modules/close-stream (Makefile.am): Likewise.
49115         * modules/closeout (Makefile.am): Likewise.
49116         * modules/crc (Makefile.am): Likewise.
49117         * modules/csharpexec (Makefile.am): Likewise.
49118         * modules/cycle-check (Makefile.am): Likewise.
49119         * modules/des (Makefile.am): Likewise.
49120         * modules/dev-ino (Makefile.am): Likewise.
49121         * modules/dirfd (Makefile.am): Likewise.
49122         * modules/dirname (Makefile.am): Likewise.
49123         * modules/dup2 (Makefile.am): Likewise.
49124         * modules/eealloc (Makefile.am): Likewise.
49125         * modules/error (Makefile.am): Likewise.
49126         * modules/euidaccess (Makefile.am): Likewise.
49127         * modules/exclude (Makefile.am): Likewise.
49128         * modules/exitfail (Makefile.am): Likewise.
49129         * modules/fcntl-safer (Makefile.am): Likewise.
49130         * modules/fcntl (Makefile.am): Likewise.
49131         * modules/file-type (Makefile.am): Likewise.
49132         * modules/fileblocks (Makefile.am): Likewise.
49133         * modules/filemode (Makefile.am): Likewise.
49134         * modules/filenamecat (Makefile.am): Likewise.
49135         * modules/fnmatch (Makefile.am): Likewise.
49136         * modules/fopen-safer (Makefile.am): Likewise.
49137         * modules/fpending (Makefile.am): Likewise.
49138         * modules/fprintftime (Makefile.am): Likewise.
49139         * modules/free (Makefile.am): Likewise.
49140         * modules/fsusage (Makefile.am): Likewise.
49141         * modules/ftruncate (Makefile.am): Likewise.
49142         * modules/fts (Makefile.am): Likewise.
49143         * modules/gc-arcfour (Makefile.am): Likewise.
49144         * modules/gc-des (Makefile.am): Likewise.
49145         * modules/gc-hmac-md5 (Makefile.am): Likewise.
49146         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
49147         * modules/gc-md4 (Makefile.am): Likewise.
49148         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49149         * modules/gc-sha1 (Makefile.am): Likewise.
49150         * modules/gc (Makefile.am): Likewise.
49151         * modules/getaddrinfo (Makefile.am): Likewise.
49152         * modules/getcwd (Makefile.am): Likewise.
49153         * modules/getdelim (Makefile.am): Likewise.
49154         * modules/getdomainname (Makefile.am): Likewise.
49155         * modules/getgroups (Makefile.am): Likewise.
49156         * modules/gethostname (Makefile.am): Likewise.
49157         * modules/gethrxtime (Makefile.am): Likewise.
49158         * modules/getline (Makefile.am): Likewise.
49159         * modules/getloadavg (Makefile.am): Likewise.
49160         * modules/getlogin_r (Makefile.am): Likewise.
49161         * modules/getndelim2 (Makefile.am): Likewise.
49162         * modules/getopt (Makefile.am): Likewise.
49163         * modules/getpagesize (Makefile.am): Likewise.
49164         * modules/getpass-gnu (Makefile.am): Likewise.
49165         * modules/getpass (Makefile.am): Likewise.
49166         * modules/getsubopt (Makefile.am): Likewise.
49167         * modules/gettime (Makefile.am): Likewise.
49168         * modules/gettimeofday (Makefile.am): Likewise.
49169         * modules/getugroups (Makefile.am): Likewise.
49170         * modules/getusershell (Makefile.am): Likewise.
49171         * modules/glob (Makefile.am): Likewise.
49172         * modules/group-member (Makefile.am): Likewise.
49173         * modules/hard-locale (Makefile.am): Likewise.
49174         * modules/hash (Makefile.am): Likewise.
49175         * modules/hmac-md5 (Makefile.am): Likewise.
49176         * modules/hmac-sha1 (Makefile.am): Likewise.
49177         * modules/human (Makefile.am): Likewise.
49178         * modules/idcache (Makefile.am): Likewise.
49179         * modules/imaxabs (Makefile.am): Likewise.
49180         * modules/imaxdiv (Makefile.am): Likewise.
49181         * modules/inet_ntop (Makefile.am): Likewise.
49182         * modules/inet_pton (Makefile.am): Likewise.
49183         * modules/intprops (Makefile.am): Likewise.
49184         * modules/inttostr (Makefile.am): Likewise.
49185         * modules/inttypes (Makefile.am): Likewise.
49186         * modules/isapipe (Makefile.am): Likewise.
49187         * modules/javaversion (Makefile.am): Likewise.
49188         * modules/lchmod (Makefile.am): Likewise.
49189         * modules/lchown (Makefile.am): Likewise.
49190         * modules/localcharset (Makefile.am): Likewise.
49191         * modules/long-options (Makefile.am): Likewise.
49192         * modules/lstat (Makefile.am): Likewise.
49193         * modules/malloc (Makefile.am): Likewise.
49194         * modules/mathl (Makefile.am): Likewise.
49195         * modules/mbchar (Makefile.am): Likewise.
49196         * modules/md2 (Makefile.am): Likewise.
49197         * modules/md4 (Makefile.am): Likewise.
49198         * modules/md5 (Makefile.am): Likewise.
49199         * modules/memcasecmp (Makefile.am): Likewise.
49200         * modules/memchr (Makefile.am): Likewise.
49201         * modules/memcmp (Makefile.am): Likewise.
49202         * modules/memcoll (Makefile.am): Likewise.
49203         * modules/memcpy (Makefile.am): Likewise.
49204         * modules/memmem (Makefile.am): Likewise.
49205         * modules/memmove (Makefile.am): Likewise.
49206         * modules/mempcpy (Makefile.am): Likewise.
49207         * modules/memrchr (Makefile.am): Likewise.
49208         * modules/memset (Makefile.am): Likewise.
49209         * modules/memxor (Makefile.am): Likewise.
49210         * modules/mkancesdirs (Makefile.am): Likewise.
49211         * modules/mkdir-p (Makefile.am): Likewise.
49212         * modules/mkdir (Makefile.am): Likewise.
49213         * modules/mkdtemp (Makefile.am): Likewise.
49214         * modules/mkstemp (Makefile.am): Likewise.
49215         * modules/mktime (Makefile.am): Likewise.
49216         * modules/modechange (Makefile.am): Likewise.
49217         * modules/mountlist (Makefile.am): Likewise.
49218         * modules/nanosleep (Makefile.am): Likewise.
49219         * modules/obstack (Makefile.am): Likewise.
49220         * modules/openat (Makefile.am): Likewise.
49221         * modules/pagealign_alloc (Makefile.am): Likewise.
49222         * modules/pathmax (Makefile.am): Likewise.
49223         * modules/physmem (Makefile.am): Likewise.
49224         * modules/poll (Makefile.am): Likewise.
49225         * modules/posixtm (Makefile.am): Likewise.
49226         * modules/posixver (Makefile.am): Likewise.
49227         * modules/putenv (Makefile.am): Likewise.
49228         * modules/quote (Makefile.am): Likewise.
49229         * modules/quotearg (Makefile.am): Likewise.
49230         * modules/raise (Makefile.am): Likewise.
49231         * modules/read-file (Makefile.am): Likewise.
49232         * modules/readline (Makefile.am): Likewise.
49233         * modules/readlink (Makefile.am): Likewise.
49234         * modules/readtokens (Makefile.am): Likewise.
49235         * modules/readutmp (Makefile.am): Likewise.
49236         * modules/realloc (Makefile.am): Likewise.
49237         * modules/regex (Makefile.am): Likewise.
49238         * modules/rename-dest-slash (Makefile.am): Likewise.
49239         * modules/rename (Makefile.am): Likewise.
49240         * modules/rijndael (Makefile.am): Likewise.
49241         * modules/rmdir (Makefile.am): Likewise.
49242         * modules/rpmatch (Makefile.am): Likewise.
49243         * modules/safe-read (Makefile.am): Likewise.
49244         * modules/safe-write (Makefile.am): Likewise.
49245         * modules/same-inode (Makefile.am): Likewise.
49246         * modules/same (Makefile.am): Likewise.
49247         * modules/save-cwd (Makefile.am): Likewise.
49248         * modules/savedir (Makefile.am): Likewise.
49249         * modules/setenv (Makefile.am): Likewise.
49250         * modules/settime (Makefile.am): Likewise.
49251         * modules/sha1 (Makefile.am): Likewise.
49252         * modules/sig2str (Makefile.am): Likewise.
49253         * modules/snprintf (Makefile.am): Likewise.
49254         * modules/stat-macros (Makefile.am): Likewise.
49255         * modules/stat-time (Makefile.am): Likewise.
49256         * modules/stdbool (Makefile.am): Likewise.
49257         * modules/stdint (Makefile.am): Likewise.
49258         * modules/stdlib-safer (Makefile.am): Likewise.
49259         * modules/stpcpy (Makefile.am): Likewise.
49260         * modules/stpncpy (Makefile.am): Likewise.
49261         * modules/strcase (Makefile.am): Likewise.
49262         * modules/strcasestr (Makefile.am): Likewise.
49263         * modules/strchrnul (Makefile.am): Likewise.
49264         * modules/strcspn (Makefile.am): Likewise.
49265         * modules/strdup (Makefile.am): Likewise.
49266         * modules/strerror (Makefile.am): Likewise.
49267         * modules/strftime (Makefile.am): Likewise.
49268         * modules/strndup (Makefile.am): Likewise.
49269         * modules/strnlen (Makefile.am): Likewise.
49270         * modules/strpbrk (Makefile.am): Likewise.
49271         * modules/strsep (Makefile.am): Likewise.
49272         * modules/strstr (Makefile.am): Likewise.
49273         * modules/strtod (Makefile.am): Likewise.
49274         * modules/strtoimax (Makefile.am): Likewise.
49275         * modules/strtok_r (Makefile.am): Likewise.
49276         * modules/strtol (Makefile.am): Likewise.
49277         * modules/strtoll (Makefile.am): Likewise.
49278         * modules/strtoul (Makefile.am): Likewise.
49279         * modules/strtoull (Makefile.am): Likewise.
49280         * modules/strtoumax (Makefile.am): Likewise.
49281         * modules/strverscmp (Makefile.am): Likewise.
49282         * modules/sys_socket (Makefile.am): Likewise.
49283         * modules/sys_stat (Makefile.am): Likewise.
49284         * modules/sysexits (Makefile.am): Likewise.
49285         * modules/time_r (Makefile.am): Likewise.
49286         * modules/timegm (Makefile.am): Likewise.
49287         * modules/timespec (Makefile.am): Likewise.
49288         * modules/tmpfile-safer (Makefile.am): Likewise.
49289         * modules/trim (Makefile.am): Likewise.
49290         * modules/unistd-safer (Makefile.am): Likewise.
49291         * modules/unlinkdir (Makefile.am): Likewise.
49292         * modules/unlocked-io (Makefile.am): Likewise.
49293         * modules/userspec (Makefile.am): Likewise.
49294         * modules/utime (Makefile.am): Likewise.
49295         * modules/utimecmp (Makefile.am): Likewise.
49296         * modules/utimens (Makefile.am): Likewise.
49297         * modules/vasnprintf (Makefile.am): Likewise.
49298         * modules/vasprintf (Makefile.am): Likewise.
49299         * modules/vsnprintf (Makefile.am): Likewise.
49300         * modules/xalloc (Makefile.am): Likewise.
49301         * modules/xgetcwd (Makefile.am): Likewise.
49302         * modules/xnanosleep (Makefile.am): Likewise.
49303         * modules/xreadlink (Makefile.am): Likewise.
49304         * modules/xstrtod (Makefile.am): Likewise.
49305         * modules/xstrtol (Makefile.am): Likewise.
49306         * modules/xstrtold (Makefile.am): Likewise.
49307         * modules/yesno (Makefile.am): Likewise.
49308         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
49309
49310 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49311
49312         * modules/error (Makefile.am): Distribute files through
49313         EXTRA_DIST, not lib_SOURCES.
49314
49315 2006-10-12  Eric Blake  <ebb9@byu.net>
49316
49317         * modules/error (Makefile.am): Distribute files in /lib.
49318         * modules/obstack (Makefile.am): Likewise.
49319
49320 2006-10-12  Bruno Haible  <bruno@clisp.org>
49321
49322         * modules/acl (Makefile.am): Distribute all files in lib/ through
49323         EXTRA_DIST.
49324         * modules/arcfour (Makefile.am): Likewise.
49325         * modules/arctwo (Makefile.am): Likewise.
49326         * modules/argmatch (Makefile.am): Likewise.
49327         * modules/argz (Makefile.am): Likewise.
49328         * modules/atexit (Makefile.am): Likewise.
49329         * modules/backupfile (Makefile.am): Likewise.
49330         * modules/c-strtod (Makefile.am): Likewise.
49331         * modules/c-strtold (Makefile.am): Likewise.
49332         * modules/calloc (Makefile.am): Likewise.
49333         * modules/canon-host (Makefile.am): Likewise.
49334         * modules/canonicalize (Makefile.am): Likewise.
49335         * modules/chdir-long (Makefile.am): Likewise.
49336         * modules/chdir-safer (Makefile.am): Likewise.
49337         * modules/check-version (Makefile.am): Likewise.
49338         * modules/chown (Makefile.am): Likewise.
49339         * modules/cloexec (Makefile.am): Likewise.
49340         * modules/close-stream (Makefile.am): Likewise.
49341         * modules/closeout (Makefile.am): Likewise.
49342         * modules/crc (Makefile.am): Likewise.
49343         * modules/cycle-check (Makefile.am): Likewise.
49344         * modules/des (Makefile.am): Likewise.
49345         * modules/dirfd (Makefile.am): Likewise.
49346         * modules/dirname (Makefile.am): Likewise.
49347         * modules/dup2 (Makefile.am): Likewise.
49348         * modules/euidaccess (Makefile.am): Likewise.
49349         * modules/exclude (Makefile.am): Likewise.
49350         * modules/exitfail (Makefile.am): Likewise.
49351         * modules/fcntl-safer (Makefile.am): Likewise.
49352         * modules/file-type (Makefile.am): Likewise.
49353         * modules/fileblocks (Makefile.am): Likewise.
49354         * modules/filemode (Makefile.am): Likewise.
49355         * modules/filenamecat (Makefile.am): Likewise.
49356         * modules/fnmatch (Makefile.am): Likewise.
49357         * modules/fopen-safer (Makefile.am): Likewise.
49358         * modules/fpending (Makefile.am): Likewise.
49359         * modules/fprintftime (Makefile.am): Likewise.
49360         * modules/free (Makefile.am): Likewise.
49361         * modules/fsusage (Makefile.am): Likewise.
49362         * modules/ftruncate (Makefile.am): Likewise.
49363         * modules/fts (Makefile.am): Likewise.
49364         * modules/gc (Makefile.am): Likewise.
49365         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49366         * modules/getaddrinfo (Makefile.am): Likewise.
49367         * modules/getcwd (Makefile.am): Likewise.
49368         * modules/getdelim (Makefile.am): Likewise.
49369         * modules/getdomainname (Makefile.am): Likewise.
49370         * modules/getgroups (Makefile.am): Likewise.
49371         * modules/gethostname (Makefile.am): Likewise.
49372         * modules/gethrxtime (Makefile.am): Likewise.
49373         * modules/getline (Makefile.am): Likewise.
49374         * modules/getloadavg (Makefile.am): Likewise.
49375         * modules/getlogin_r (Makefile.am): Likewise.
49376         * modules/getopt (Makefile.am): Likewise.
49377         * modules/getpass (Makefile.am): Likewise.
49378         * modules/getpass-gnu (Makefile.am): Likewise.
49379         * modules/getsubopt (Makefile.am): Likewise.
49380         * modules/gettime (Makefile.am): Likewise.
49381         * modules/gettimeofday (Makefile.am): Likewise.
49382         * modules/getugroups (Makefile.am): Likewise.
49383         * modules/getusershell (Makefile.am): Likewise.
49384         * modules/glob (Makefile.am): Likewise.
49385         * modules/group-member (Makefile.am): Likewise.
49386         * modules/hard-locale (Makefile.am): Likewise.
49387         * modules/hash (Makefile.am): Likewise.
49388         * modules/hmac-md5 (Makefile.am): Likewise.
49389         * modules/hmac-sha1 (Makefile.am): Likewise.
49390         * modules/human (Makefile.am): Likewise.
49391         * modules/idcache (Makefile.am): Likewise.
49392         * modules/imaxabs (Makefile.am): Likewise.
49393         * modules/imaxdiv (Makefile.am): Likewise.
49394         * modules/inet_ntop (Makefile.am): Likewise.
49395         * modules/inet_pton (Makefile.am): Likewise.
49396         * modules/inttostr (Makefile.am): Likewise.
49397         * modules/isapipe (Makefile.am): Likewise.
49398         * modules/lchown (Makefile.am): Likewise.
49399         * modules/long-options (Makefile.am): Likewise.
49400         * modules/lstat (Makefile.am): Likewise.
49401         * modules/malloc (Makefile.am): Likewise.
49402         * modules/mathl (Makefile.am): Likewise.
49403         * modules/mbchar (Makefile.am): Likewise.
49404         * modules/md2 (Makefile.am): Likewise.
49405         * modules/md4 (Makefile.am): Likewise.
49406         * modules/md5 (Makefile.am): Likewise.
49407         * modules/memcasecmp (Makefile.am): Likewise.
49408         * modules/memchr (Makefile.am): Likewise.
49409         * modules/memcmp (Makefile.am): Likewise.
49410         * modules/memcoll (Makefile.am): Likewise.
49411         * modules/memcpy (Makefile.am): Likewise.
49412         * modules/memmem (Makefile.am): Likewise.
49413         * modules/memmove (Makefile.am): Likewise.
49414         * modules/mempcpy (Makefile.am): Likewise.
49415         * modules/memrchr (Makefile.am): Likewise.
49416         * modules/memset (Makefile.am): Likewise.
49417         * modules/memxor (Makefile.am): Likewise.
49418         * modules/mkancesdirs (Makefile.am): Likewise.
49419         * modules/mkdir (Makefile.am): Likewise.
49420         * modules/mkdir-p (Makefile.am): Likewise.
49421         * modules/mkdtemp (Makefile.am): Likewise.
49422         * modules/mkstemp (Makefile.am): Likewise.
49423         * modules/mktime (Makefile.am): Likewise.
49424         * modules/modechange (Makefile.am): Likewise.
49425         * modules/mountlist (Makefile.am): Likewise.
49426         * modules/nanosleep (Makefile.am): Likewise.
49427         * modules/openat (Makefile.am): Likewise.
49428         * modules/pagealign_alloc (Makefile.am): Likewise.
49429         * modules/physmem (Makefile.am): Likewise.
49430         * modules/poll (Makefile.am): Likewise.
49431         * modules/posixtm (Makefile.am): Likewise.
49432         * modules/posixver (Makefile.am): Likewise.
49433         * modules/putenv (Makefile.am): Likewise.
49434         * modules/quote (Makefile.am): Likewise.
49435         * modules/quotearg (Makefile.am): Likewise.
49436         * modules/raise (Makefile.am): Likewise.
49437         * modules/read-file (Makefile.am): Likewise.
49438         * modules/readline (Makefile.am): Likewise.
49439         * modules/readlink (Makefile.am): Likewise.
49440         * modules/readtokens (Makefile.am): Likewise.
49441         * modules/readutmp (Makefile.am): Likewise.
49442         * modules/realloc (Makefile.am): Likewise.
49443         * modules/regex (Makefile.am): Likewise.
49444         * modules/rename (Makefile.am): Likewise.
49445         * modules/rename-dest-slash (Makefile.am): Likewise.
49446         * modules/rijndael (Makefile.am): Likewise.
49447         * modules/rmdir (Makefile.am): Likewise.
49448         * modules/rpmatch (Makefile.am): Likewise.
49449         * modules/safe-read (Makefile.am): Likewise.
49450         * modules/safe-write (Makefile.am): Likewise.
49451         * modules/same (Makefile.am): Likewise.
49452         * modules/save-cwd (Makefile.am): Likewise.
49453         * modules/savedir (Makefile.am): Likewise.
49454         * modules/setenv (Makefile.am): Likewise.
49455         * modules/settime (Makefile.am): Likewise.
49456         * modules/sha1 (Makefile.am): Likewise.
49457         * modules/sig2str (Makefile.am): Likewise.
49458         * modules/snprintf (Makefile.am): Likewise.
49459         * modules/stdlib-safer (Makefile.am): Likewise.
49460         * modules/stpcpy (Makefile.am): Likewise.
49461         * modules/stpncpy (Makefile.am): Likewise.
49462         * modules/strcase (Makefile.am): Likewise.
49463         * modules/strcasestr (Makefile.am): Likewise.
49464         * modules/strchrnul (Makefile.am): Likewise.
49465         * modules/strcspn (Makefile.am): Likewise.
49466         * modules/strdup (Makefile.am): Likewise.
49467         * modules/strerror (Makefile.am): Likewise.
49468         * modules/strftime (Makefile.am): Likewise.
49469         * modules/strndup (Makefile.am): Likewise.
49470         * modules/strnlen (Makefile.am): Likewise.
49471         * modules/strpbrk (Makefile.am): Likewise.
49472         * modules/strsep (Makefile.am): Likewise.
49473         * modules/strstr (Makefile.am): Likewise.
49474         * modules/strtod (Makefile.am): Likewise.
49475         * modules/strtoimax (Makefile.am): Likewise.
49476         * modules/strtok_r (Makefile.am): Likewise.
49477         * modules/strtol (Makefile.am): Likewise.
49478         * modules/strtoll (Makefile.am): Likewise.
49479         * modules/strtoul (Makefile.am): Likewise.
49480         * modules/strtoull (Makefile.am): Likewise.
49481         * modules/strtoumax (Makefile.am): Likewise.
49482         * modules/strverscmp (Makefile.am): Likewise.
49483         * modules/time_r (Makefile.am): Likewise.
49484         * modules/timegm (Makefile.am): Likewise.
49485         * modules/tmpfile-safer (Makefile.am): Likewise.
49486         * modules/unistd-safer (Makefile.am): Likewise.
49487         * modules/unlinkdir (Makefile.am): Likewise.
49488         * modules/userspec (Makefile.am): Likewise.
49489         * modules/utime (Makefile.am): Likewise.
49490         * modules/utimecmp (Makefile.am): Likewise.
49491         * modules/utimens (Makefile.am): Likewise.
49492         * modules/vasnprintf (Makefile.am): Likewise.
49493         * modules/vasprintf (Makefile.am): Likewise.
49494         * modules/vsnprintf (Makefile.am): Likewise.
49495         * modules/xalloc (Makefile.am): Likewise.
49496         * modules/xgetcwd (Makefile.am): Likewise.
49497         * modules/xnanosleep (Makefile.am): Likewise.
49498         * modules/xreadlink (Makefile.am): Likewise.
49499         * modules/xstrtod (Makefile.am): Likewise.
49500         * modules/xstrtol (Makefile.am): Likewise.
49501         * modules/xstrtold (Makefile.am): Likewise.
49502         * modules/yesno (Makefile.am): Likewise.
49503
49504 2006-10-12  Jim Meyering  <jim@meyering.net>
49505
49506         * m4/getloadavg.m4: Revert the change below.
49507
49508         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
49509         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
49510         fail with a symlink, which is what coreutils' ./bootstrap now
49511         creates by default.
49512
49513 2006-10-12  Bruno Haible  <bruno@clisp.org>
49514
49515         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
49516         mingw.
49517         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
49518         MSVC and mingw explicitly.
49519
49520 2006-10-11  Simon Josefsson  <jas@extundo.com>
49521             Bruno Haible  <bruno@clisp.org>
49522
49523         Add support for multiple gnulib-tool invocations in the scope of a
49524         single configure.ac file.
49525         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
49526         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
49527         with the same contents as the _LIBADD variable.
49528         (func_emit_initmacro_start, func_emit_initmacro_end,
49529         func_emit_initmacro_done): New functions.
49530         (func_import, func_create_testdir): Invoke them. Allow the identifiers
49531         gl_LIBOBJS and gl_LTLIBOBJS.
49532
49533 2006-10-11  Bruno Haible  <bruno@clisp.org>
49534
49535         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
49536         (func_create_testdir): Don't create po/Makefile.am, don't invoke
49537         autoreconf. Instead, invoke autopoint explicitly but move back the
49538         *.m4 files from gnulib.
49539
49540 2006-10-11  Bruno Haible  <bruno@clisp.org>
49541
49542         * gnulib-tool (func_usage): Make module names after --create-testdir
49543         optional.
49544         (func_create_testdir): If no module was specified, use nearly all
49545         modules.
49546
49547 2006-10-12  Jim Meyering  <jim@meyering.net>
49548
49549         Big performance improvement for fts-based tools that use FTS_NOSTAT.
49550         Avoid spurious inode-mismatch problems on non-POSIX file systems.
49551         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
49552         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
49553         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
49554         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
49555         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
49556         (fts_set_stat_required): New function.
49557         (fts_open): Defer the calls to fts_stat, if possible or requested.
49558         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
49559         into fts_stat itself.
49560         (fts_read): Perform any required (deferred) fts_stat call.
49561         (fts_build): Likewise, for the directory we're about to open and read.
49562         In the readdir loop, carefully decide whether each entry will require
49563         an eventual call to fts_stat, using dirent.d_type info if available.
49564         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
49565         a command line argument into this function.  Update all callers.
49566         Map a return value of FTS_DOT to FTS_D for a command line argument.
49567         * modules/fts (Depends-on): Add d-type.  Alphabetize.
49568         Thanks to Miklos Szeredi for his tenacity and for the initial
49569         bug report about "find" failing on a FUSE-based file system.
49570
49571         * lib/fts.c (fts_open): Use consistent indentation.
49572
49573 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49574
49575         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
49576         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
49577         reported by Jim Meyering.  All uses of cache variables renamed
49578         to match Autoconf's.
49579         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
49580         the other one.
49581
49582         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
49583         Fix misspelling in diagnostic.
49584
49585 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49586
49587         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
49588         defined.  Problem reported by Matthew Woehlke.
49589
49590         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
49591         Add support for Tandem NonStop R series.
49592         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
49593         Use new macro.
49594
49595         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
49596         (has_trailing_slash): Omit size arg; all callers changed.
49597         Omit 'inline', since it doesn't help performance and we'd
49598         need to configure it.
49599         Don't count //, ///, etc. as having a trailing slash.
49600         As a side effect, this removes a C99ism reported by Matthew Woehlke.
49601         (rpl_rename_dest_slash): On failure, use rename's errno rather
49602         than (in some cases) an incorrect or junk errno.
49603         Simplify code by removing need to compute length; this does
49604         cause it to make two passes instead of one over the file name,
49605         but it's worth it.
49606
49607         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
49608         change, since Autoconf's version may no longer be appropriate now
49609         that we are using CVS Autoconf's version.  Add support for Tandem.
49610
49611 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49612             Bruno Haible  <bruno@clisp.org>
49613
49614         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
49615         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
49616         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
49617         gl_AC_TYPE_LONG_LONG.
49618
49619         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
49620         instead of HAVE_LONG_LONG.
49621         * lib/printf-args.c (printf_fetchargs): Likewise.
49622         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
49623         * lib/vasnprintf.c (VASNPRINTF): Likewise.
49624         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
49625         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
49626         gl_AC_TYPE_LONG_LONG.
49627
49628 2006-10-11  Bruno Haible  <bruno@clisp.org>
49629
49630         * m4/longlong.m4: Add comments.
49631         * m4/ulonglong.m4: Likewise.
49632
49633 2006-10-10  Bruno Haible  <bruno@clisp.org>
49634
49635         Make it possible to #define stpcpy, strdup to aliases.
49636         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
49637         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
49638
49639 2006-10-10  Bruno Haible  <bruno@clisp.org>
49640
49641         Make it possible to #define gcd to an alias.
49642         * lib/gcd.c: Include config.h.
49643
49644 2006-10-10  Bruno Haible  <bruno@clisp.org>
49645
49646         Make it possible to #define c_isascii to an alias.
49647         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
49648         defined. Undefine the macros before defining them, to avoid gcc
49649         warnings.
49650         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
49651         define NO_C_CTYPE_MACROS early.
49652
49653 2006-10-10  Bruno Haible  <bruno@clisp.org>
49654
49655         Make it possible to #define set_program_name to an alias.
49656         * lib/progname.c: Don't undefine set_program_name; instead, undefine
49657         ENABLE_RELOCATABLE early.
49658
49659 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49660
49661         Port to Tandem NSK OSS, which has 64-bit signed int but at most
49662         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
49663         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
49664         More generally, don't assume that 64-bit signed int is available
49665         if unsigned int is, and vice versa.
49666         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
49667         unsigned symbols, not on their signed counterparts.
49668         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
49669         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
49670         (UINT64_C, UINTMAX_C):
49671         Likewise.
49672         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
49673         unsigned counterparts.
49674         (Have_long_long, Unsigned): New macros.
49675         (Int): Renamed from INT.
49676         (strtoimax): Use the new macros.
49677         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
49678         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
49679         * modules/inttypes (inttypes.h): Substitute
49680         HAVE_UNSIGNED_LONG_LONG_INT.
49681         * modules/stdint (stdint.h): Likewise.
49682         (Files): Add m4/ulonglong.m4.
49683
49684 2006-10-10  Bruno Haible  <bruno@clisp.org>
49685
49686         Fix a gcc -Wshadow warning.
49687         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
49688         to 'bucket'.
49689         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
49690         gl_linked_indexof_from_to): Likewise.
49691         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
49692         Likewise.
49693         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
49694         Likewise.
49695         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
49696         Reported by Eric Blake.
49697
49698 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
49699
49700         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
49701         for NetBSD.  Problem reported by Bruno Haible.
49702
49703 2006-10-09  Jim Meyering  <jim@meyering.net>
49704
49705         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
49706         Patch from Bruno Haible.
49707
49708 2006-10-09  Jim Meyering  <jim@meyering.net>
49709
49710         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
49711         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
49712         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
49713
49714 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49715
49716         Don't include <config.h> twice; this doesn't work in some cases,
49717         e.g., when config.h has "#define intmax_t long long int" and
49718         we include <config.h>, <inttypes.h>, <config.h> in that order.
49719         Problem reported by Matthew Woehlke in:
49720         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
49721         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
49722         * lib/fts-cycle.c: Don't include config.h.
49723         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
49724         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
49725         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
49726         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
49727         inttypes.h.
49728         * lib/xstrtoumax.c: Likewise.
49729         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
49730         __strtol and the like, so that this module is more like its siblings.
49731         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
49732         Remove; no longer needed now that we assume gnulib inttypes.h.
49733
49734 2006-10-08  Bruno Haible  <bruno@clisp.org>
49735
49736         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
49737         option.
49738
49739 2006-10-07  Jim Meyering  <jim@meyering.net>
49740
49741         * modules/inttypes (inttypes.h): Revert what seems to have been
49742         an inadvertent part of today's change: use "|", not "/" in the
49743         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
49744
49745 2006-10-07  Bruno Haible  <bruno@clisp.org>
49746
49747         * modules/sublist: New file.
49748
49749 2006-10-07  Bruno Haible  <bruno@clisp.org>
49750
49751         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
49752         * modules/argz (argz.h): Likewise.
49753         * modules/arpa_inet (arpa/inet.h): Likewise.
49754         * modules/byteswap (byteswap.h): Likewise.
49755         * modules/configmake (configmake.h): Likewise.
49756         * modules/fcntl (fcntl.h): Likewise.
49757         * modules/fnmatch (fnmatch.h): Likewise.
49758         * modules/getopt (getopt.h): Likewise.
49759         * modules/glob (glob.h): Likewise.
49760         * modules/inttypes (inttypes.h): Likewise.
49761         * modules/netinet_in (netinet/in.h): Likewise.
49762         * modules/poll (poll.h): Likewise.
49763         * modules/stdbool (stdbool.h): Likewise.
49764         * modules/stdint (stdint.h): Likewise.
49765         * modules/sys_select (sys/select.h): Likewise.
49766         * modules/sys_socket (sys/socket.h): Likewise.
49767         * modules/sys_stat (sys/stat.h): Likewise.
49768         * modules/sysexits (sysexits.h): Likewise.
49769         * modules/unistd (unistd.h): Likewise.
49770         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49771         Add a "DO NOT EDIT" comment to the generated file.
49772         (func_import): Likewise for gnulib-comp.m4.
49773
49774 2006-10-07  Bruno Haible  <bruno@clisp.org>
49775
49776         * lib/gl_sublist.h: New file.
49777         * lib/gl_sublist.c: New file.
49778
49779 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49780
49781         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
49782         name (relative to the original working directory) and the file
49783         name component (relative to the temporary working directory).  All
49784         callers changed.
49785         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
49786         * lib/mkdir-p.c (make_dir_parents): Likewise.
49787         * lib/mkdir-p.h (make_dir_parents): Likewise.
49788
49789 2006-10-06  Eric Blake  <ebb9@byu.net>
49790
49791         Define several macros for use by the clean-temp module.
49792         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
49793         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
49794         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
49795
49796         * lib/clean-temp.h (close_stream_temp): New declaration.
49797         * lib/clean-temp.c (includes): Pull in headers according to what
49798         other modules are in use.
49799         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
49800
49801 2006-10-06  Bruno Haible  <bruno@clisp.org>
49802
49803         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
49804         instead of fopen, fwriteerror.
49805
49806 2006-10-06  Bruno Haible  <bruno@clisp.org>
49807
49808         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
49809         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
49810         int.
49811         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
49812         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
49813         Return an error indicator.
49814         Suggested by Eric Blake.
49815
49816 2006-10-06  Bruno Haible  <bruno@clisp.org>
49817
49818         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
49819         Reported by Eric Blake.
49820
49821 2006-10-06  Bruno Haible  <bruno@clisp.org>
49822
49823         * modules/closeout (Description): Mention stderr too.
49824
49825 2006-10-06  Bruno Haible  <bruno@clisp.org>
49826         and Paul Eggert  <eggert@cs.ucla.edu>
49827
49828         * lib/closeout.c (close_stdout): Also close stderr.
49829         * lib/closeout.h: Update comment.
49830
49831 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49832
49833         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
49834         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
49835         * lib/dirchownmod.c: Include lchown.h.
49836         * lib/lchown.c: Don't include files that lchown.h now includes.
49837         Don't declare chown, since lchown.h now does that.
49838         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
49839         (lchown): Define to rpl_chown if lchown is declared but
49840         does not exist.  Declare using a prototype if lchown is not
49841         declared.  Add a copyright notice.
49842         * lib/mkstemp.h: Include <unistd.h>.
49843         * lib/openat.c: Include lchown.h.
49844
49845         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
49846         we now test for that separately.
49847         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
49848         rather than O_NOFOLLOW, when testing whether it's possible to
49849         avoid a race condition reliably.
49850         * lib/savewd.c (savewd_chdir): Likewise.
49851
49852         Remove macros that are no longer needed now that stdint.h is
49853         reliable.
49854         * lib/fsusage.c (UINTMAX_MAX): Remove.
49855         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
49856         * lib/utimecmp.c (SIZE_MAX): Remove.
49857
49858         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
49859
49860         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
49861         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
49862         O_NOATIME works.
49863
49864 2006-10-05  Bruno Haible  <bruno@clisp.org>
49865
49866         * lib/gl_list.h (gl_sortedlist_search_from_to,
49867         gl_sortedlist_indexof_from_to): New declarations.
49868         (gl_list_implementation): New fields sortedlist_search_from_to,
49869         sortedlist_indexof_from_to.
49870         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
49871         inline functions.
49872         * lib/gl_list.c (gl_sortedlist_search_from_to,
49873         gl_sortedlist_indexof_from_to): New functions.
49874         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
49875         function.
49876         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
49877         (gl_array_sortedlist_search_from_to): New function.
49878         (gl_array_list_implementation): Update.
49879         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
49880         function.
49881         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
49882         (gl_carray_sortedlist_search_from_to): New function.
49883         (gl_carray_list_implementation): Update.
49884         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
49885         gl_linked_sortedlist_indexof_from_to): New functions.
49886         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49887         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49888         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
49889         gl_tree_sortedlist_indexof_from_to): New functions.
49890         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49891         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49892         Update.
49893         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49894         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
49895         Update.
49896
49897 2006-10-05  Bruno Haible  <bruno@clisp.org>
49898
49899         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
49900         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
49901         (struct gl_list_implementation): Add fields search_from_to,
49902         indexof_from_to. Remove fields search, indexof.
49903         (gl_list_search): Use the search_from_to method.
49904         (gl_list_search_from, gl_list_search_from_to): New functions.
49905         (gl_list_indexof): Use the indexof_from_to method.
49906         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49907         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
49908         (gl_list_search_from, gl_list_search_from_to): New functions.
49909         (gl_list_indexof): Use the indexof_from_to method.
49910         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49911         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
49912         gl_array_indexof. Add start_index, end_index arguments.
49913         (gl_array_search_from_to): Renamed from gl_array_search. Add
49914         start_index, end_index arguments.
49915         (gl_array_remove, gl_array_list_implementation): Update.
49916         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
49917         gl_carray_indexof. Add start_index, end_index arguments.
49918         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
49919         start_index, end_index arguments.
49920         (gl_carray_remove, gl_carray_list_implementation): Update.
49921         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
49922         gl_linked_search. Add start_index, end_index arguments.
49923         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
49924         start_index, end_index arguments.
49925         (gl_linked_remove): Update.
49926         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49927         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49928         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
49929         field to 'size_t'.
49930         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
49931         gl_tree_search. Add start_index, end_index arguments.
49932         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49933         start_index, end_index arguments.
49934         (gl_tree_remove): Update.
49935         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49936         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49937         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
49938         function.
49939         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
49940         gl_tree_search. Add start_index, end_index arguments.
49941         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49942         start_index, end_index arguments.
49943         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49944         Update.
49945         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49946
49947 2006-10-05  Bruno Haible  <bruno@clisp.org>
49948
49949         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
49950
49951         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
49952         fwriteerror_temp): New declarations.
49953         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
49954         (descriptors): New variable.
49955         (cleanup): First, close the descriptors.
49956         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
49957         fclose_temp, fwriteerror_temp): New functions.
49958
49959 2006-10-04  Jim Meyering  <jim@meyering.net>
49960
49961         * lib/fts.c (fts_open): Tiny comment change.
49962
49963 2006-10-04  Bruno Haible  <bruno@clisp.org>
49964
49965         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
49966         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
49967         gl_LOCK_BODY.
49968         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
49969         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
49970         gl_LOCK_EARLY_BODY.
49971         (gl_LOCK): Require gl_LOCK_BODY.
49972
49973 2006-10-04  Bruno Haible  <bruno@clisp.org>
49974
49975         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
49976         (gl_oset_search_atleast): New declaration.
49977         (struct gl_oset_implementation): Add field 'search_atleast'.
49978         (gl_oset_search_atleast): New inline function.
49979         * lib/gl_oset.c (gl_oset_search_atleast): New function.
49980         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
49981         (gl_array_oset_implementation): Update.
49982         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
49983         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
49984         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
49985
49986 2006-10-04  Bruno Haible  <bruno@clisp.org>
49987
49988         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
49989
49990 2006-10-03  Bruno Haible  <bruno@clisp.org>
49991
49992         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
49993         from gl_avltreehash_list_implementation.
49994
49995 2006-10-03  Bruno Haible  <bruno@clisp.org>
49996
49997         * lib/gl_oset.c (gl_oset_add): Fix return type.
49998
49999 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
50000
50001         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
50002
50003 2006-10-02  Eric Blake  <ebb9@byu.net>
50004
50005         * modules/strnlen (Depends-on): Add extensions.
50006
50007 2006-10-02  Eric Blake  <ebb9@byu.net>
50008
50009         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
50010         definition in 2.60+.
50011
50012 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
50013
50014         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
50015         checks.
50016
50017 2006-10-02  Bruno Haible  <bruno@clisp.org>
50018
50019         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
50020         to the AUTOMAKE_OPTIONS.
50021         Reported by Jim Meyering.
50022
50023 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50024
50025         Work around bug in Solaris 10 /proc file system:
50026         /proc/self/fd/NNN/.. isn't the parent directory of
50027         the directory whose file descriptor is NNN.  This needs to
50028         be worked around at run time, not compile time, since a
50029         program might be built on Solaris 8, where things work, and
50030         run on Solaris 10.
50031         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
50032         to use the following interface instead:
50033         (OPENAT_BUFFER_SIZE): New macro.
50034         (openat_proc_name): New function.
50035         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
50036         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
50037         Likewise.
50038         * lib/openat-proc.c: New file.
50039         * modules/openat (Files): Add lib/openat-proc.c.
50040         (Depends-on): Add same-inode, stdbool.
50041         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
50042
50043 2006-09-29  Bruno Haible  <bruno@clisp.org>
50044
50045         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
50046         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
50047         argument. Set stdout_closed before testing for ferror, not after.
50048         (fwriteerror, fwriteerror_no_ebadf): New functions.
50049
50050 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50051
50052         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
50053
50054 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
50055
50056         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
50057         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
50058
50059 2006-09-28  Jim Meyering  <jim@meyering.net>
50060
50061         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
50062         Include <unistd.h>.
50063
50064 2006-09-28  Bruno Haible  <bruno@clisp.org>
50065
50066         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
50067         * modules/linkedhash-list (Depends-on): Likewise.
50068         * modules/rbtreehash-list (Depends-on): Likewise.
50069
50070 2006-09-28  Bruno Haible  <bruno@clisp.org>
50071
50072         * lib/strndup.h: Simplify the redefinition of strndup.
50073         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
50074         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
50075
50076 2006-09-28  Bruno Haible  <bruno@clisp.org>
50077
50078         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
50079         * lib/gl_linkedhash_list.c: Likewise.
50080         * lib/gl_rbtreehash_list.c: Likewise.
50081
50082 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50083
50084         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
50085         getaddrinfo.
50086
50087         * lib/__fpending.h: Don't include <stdio_ext.h> unless
50088         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
50089         it causes <stdio_ext.h> to cause a compile-time error.
50090         Problem reported by Nelson H. F. Beebe.
50091         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
50092         of HAVE_DECL___PENDING.
50093
50094         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
50095         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
50096         declaration.
50097
50098 2006-09-27  Jim Meyering  <jim@meyering.net>
50099
50100         This file could end up with a definition for a function
50101         named __strndup, rather than rpl_strndup on a system with
50102         incomplete weak_alias support.
50103         * lib/strndup.c (strndup): Rename from __strndup.
50104         Remove #defines that used to map __strndup to strndup.
50105         Don't use K&R prototypes.
50106         Remove LIBC-related code, since this file is not sync'd with glibc.
50107         * lib/strndup.h: Revamp, accordingly.
50108         * m4/strndup.m4: Modernize.
50109
50110 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50111
50112         * modules/savewd (Depends-on): Add 'raise'.
50113         * lib/savewd.c: Include <signal.h>, for 'raise'.
50114
50115 2006-09-26  Jim Meyering  <jim@meyering.net>
50116
50117         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
50118         when we detect Darwin 8.7.0's acl_get_file bug.
50119         Rearrange to perform the new (below) run-test while $LIBS
50120         contains any acl-related library.  Set USE_ACL at the end.
50121         (gl_ACL_GET_FILE): New function.
50122
50123 2006-09-26  Eric Blake  <ebb9@byu.net>
50124
50125         * lib/verror.c: Include <config.h> unconditionally.
50126
50127 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
50128
50129         * modules/clock-time (Maintainer): Add self.
50130         * modules/getlogin_r (Depends-on): Add extensions.
50131
50132 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50133
50134         * modules/clock-time: New module.
50135         * modules/nanosleep (Depends-on): Add clock-time.
50136         * modules/gethrxtime (Depends-on): Likewise.
50137         * modules/gettime (Depends-on): Likewise.
50138         * modules/settime (Depends-on): Likewise.
50139
50140         * modules/fts-lgpl: Depend on openat.
50141         * modules/mkancesdirs: Depend on savewd.
50142         * modules/mkdir-p: Likewise.
50143
50144 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50145
50146         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
50147
50148         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
50149         `gl_have_arbitrary_file_name_length_limit' to
50150         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
50151         actually works between configure runs.
50152
50153 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50154             Bruno Haible  <bruno@clisp.org>
50155
50156         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
50157
50158 2006-09-25  Jim Meyering  <jim@meyering.net>
50159
50160         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
50161         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
50162
50163 2006-09-25  Eric Blake  <ebb9@byu.net>
50164
50165         * gnulib-tool (func_import, func_create_testdir): Fix typos in
50166         exec's in 2006-09-18 patch when shuffling fds.
50167
50168 2006-09-25  Bruno Haible  <bruno@clisp.org>
50169
50170         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
50171         Reported by Jim Meyering.
50172
50173 2006-09-24  Jim Meyering  <jim@meyering.net>
50174
50175         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
50176         compare a pointer against a literal "0".  That caused failures with
50177         at least HP-UX's hpcc.
50178
50179 2006-09-22  Simon Josefsson  <jas@extundo.com>
50180
50181         * modules/gc-sha1:
50182         * modules/gc-md4:
50183         * modules/gc-hmac-sha1:
50184         * modules/gc-hmac-md5:
50185         * modules/gc-des:
50186         * modules/gc-arcfour: Distribute more files.
50187
50188 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50189
50190         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
50191         (gl_linked_iterator_from_to): Initialize struct completely.
50192         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
50193         (gl_tree_iterator_from_to): Likewise
50194         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
50195         * lib/gl_array_list.c [lint] (gl_array_iterator)
50196         (gl_array_iterator_from_to): Likewise.
50197         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
50198         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
50199         (gl_carray_iterator_from_to): Likewise.
50200
50201         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
50202         * lib/md4.c (md4_process_block): Remove unused variable.
50203         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
50204         parentheses for clarity.
50205
50206 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50207
50208         * modules/bison-i18n (Depends-on): Add gettext.
50209
50210 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50211
50212         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
50213         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
50214         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
50215         also add missing comma that caused broken test.
50216         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
50217         stdlib.h, for `abort'.
50218         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
50219         variables.
50220         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
50221         include unistd.h if present, for `rmdir'.
50222         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
50223         variables.
50224         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
50225         in the process include standard headers for prototypes.
50226         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
50227         gets declared on GNU/Linux.
50228         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
50229         unistd.h, for `rmdir'.
50230         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
50231
50232         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
50233         always true.
50234         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
50235
50236         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
50237
50238 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50239
50240         * gnulib-tool (func_version): Create output all at once.  This
50241         may help avoid triggering unnecessary SIGPIPEs, and at any
50242         rate it doesn't hurt.
50243
50244 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50245             Bruno Haible  <bruno@clisp.org>
50246
50247         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
50248         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50249         * m4/signed.m4 (bh_C_SIGNED): Likewise.
50250
50251         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
50252         (gl_FUNC_VASPRINTF): Invoke it.
50253
50254 2006-09-22  Bruno Haible  <bruno@clisp.org>
50255
50256         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
50257         getloadavg.c as first argument.
50258
50259 2006-09-22  Bruno Haible  <bruno@clisp.org>
50260
50261         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
50262         at the beginning of the gl_INIT macro.
50263         * modules/getloadavg (configure.ac): Pass $gl_source_base to
50264         gl_GETLOADAVG.
50265
50266 2006-09-22  Bruno Haible  <bruno@clisp.org>
50267
50268         * gnulib-tool (func_create_megatestdir): Don't include the config-h
50269         module.
50270         Suggested by Ralf Wildenhues.
50271
50272 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50273
50274         Import this patch from libc:
50275
50276         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
50277
50278         * lib/regex_internal.c (re_string_reconstruct): Handle
50279         offset < pstr->valid_raw_len && pstr->offsets_needed case.
50280         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
50281         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
50282         re_string_context_at.
50283
50284         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
50285         now requires it.
50286         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
50287         gl_REGEX now does it for us.
50288         (gl_REGEX): Add test taken from
50289         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
50290
50291         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
50292         Check that large offsets work.  Modernize Autoconf usages.
50293         Prefer "yes" to mean a good thing rather than a bad.
50294         Don't put "#define mkstemp" in config.h, as this might interfere
50295         with standard system headers that "#define mkstemp mkstemp64".
50296
50297         * modules/mkstemp (Depends-on): Add extensions, so that
50298         mkstemp is visible on some platforms.
50299         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
50300         (Include): Change to "mkstemp.h" from <stdlib.h>.
50301         (Files): Add mkstemp.h.
50302
50303         * lib/mkstemp.h: New file, since some standard headers
50304         #define mkstemp.
50305         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
50306         Include "mkstemp.h".
50307         Make the _LIBC code resemble glibc original more,
50308         e.g., use K&R style.
50309         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
50310         (mkstemp): Remove, since mkstemp.h does this for us.
50311         * lib/stdlib--.h: Include mkstemp.h.
50312
50313         Import this patch from libc:
50314
50315         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50316
50317         * lib/tempname.c (__gen_tempname): Change attempts_min
50318         into a macro.  Use preprocessor to decide how to initialize
50319         attempts [Coverity CID 67].
50320
50321 2006-09-20  Bruno Haible  <bruno@clisp.org>
50322
50323         * lib/mkdtemp.c: Import from libc.
50324         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50325                 * sysdeps/posix/tempname.c (__gen_tempname): Change
50326                 attempts_min into a macro.  Use preprocessor to decide how to
50327                 initialize attempts [Coverity CID 67].
50328         2001-11-27  Paul Eggert  <eggert@twinsun.com>
50329                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
50330                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
50331
50332 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50333
50334         * gnulib-tool (func_exit): New function, to allow to pass the
50335         exit status portably through the trap.  Use everywhere.
50336         (--help, --version): Signal a write error.
50337         (trap): catch SIGPIPE, for write errors.
50338         Exit at the end of the trap, with the correct exit status.
50339
50340 2006-09-19  Karl Berry  <karl@gnu.org>
50341
50342         * doc/gnulib.texi: note about the license texinfo files.
50343
50344 2006-09-19  Eric Blake  <ebb9@byu.net>
50345
50346         * gnulib-tool: Avoid space-tab.
50347
50348 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50349
50350         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
50351         that prevented coreutils 6.1 from building.  Problem reported
50352         by Petter Reinholdtsen.
50353
50354 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50355
50356         * gnulib-tool (avoidlist): Fix typo that broke options like
50357         --avoid=lock that are used by coreutils bootstrap.
50358
50359 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
50360
50361         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
50362         more systematically.
50363
50364 2006-09-18  Jim Meyering  <jim@meyering.net>
50365
50366         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
50367
50368 2006-09-18  Bruno Haible  <bruno@clisp.org>
50369
50370         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
50371
50372 2006-09-18  Bruno Haible  <bruno@clisp.org>
50373
50374         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
50375         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
50376         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
50377         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
50378         * m4/gettext.m4: Require autoconf >= 2.52.
50379         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
50380         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
50381         of gl_cv_header_inttypes_h.
50382
50383 2006-09-18  Bruno Haible  <bruno@clisp.org>
50384
50385         * lib/javaversion.c: Include configmake.h.
50386
50387 2006-09-18  Bruno Haible  <bruno@clisp.org>
50388
50389         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
50390         avoid that the while loops be executed in a subshell.
50391
50392 2006-09-18  Bruno Haible  <bruno@clisp.org>
50393
50394         * MODULES.html.sh (func_module): Break long lines.
50395         Suggested by Bruce Korb <bkorb@gnu.org>.
50396
50397 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50398
50399         Speed up by a factor of 1.12.
50400         * gnulib-tool (nl): New variable.
50401         (func_import): Rewrite include directive extraction to only read each
50402         directive once.
50403
50404 2006-09-17  Bruno Haible  <bruno@clisp.org>
50405
50406         * modules/javaversion (Makefile.am): Remove DEFS setting.
50407         (Depends-on): Add configmake, for PKGDATADIR definition.
50408
50409 2006-09-17  Bruno Haible  <bruno@clisp.org>
50410
50411         * gnulib-tool (func_create_testdir): Rewrite all files at once.
50412
50413 2006-09-17  Bruno Haible  <bruno@clisp.org>
50414
50415         * gnulib-tool (func_append): New function, stolen from libtool.m4.
50416         (func_modules_transitive_closure, func_modules_add_dummy,
50417         func_modules_to_filelist, func_import, func_create_testdir,
50418         func_create_megatestdir, ...): Use it wherever possible.
50419         Suggested by Ralf Wildenhues.
50420
50421 2006-09-16  Karl Berry  <karl@gnu.org>
50422
50423         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
50424         to avoid sectioning errors.
50425         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
50426         [ifinfo]: blank line after @center-ed titles.
50427         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
50428         Spell FSF address consistently with others.
50429         (These changes approved by rms.)
50430
50431 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50432
50433         Speed up by a factor of 1.61.
50434         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
50435         already checked module names again.
50436
50437 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50438
50439         Speed up by a factor of 1.13.
50440         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
50441         for new_files, and the input to func_add_or_update.
50442
50443 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50444
50445         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
50446         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
50447
50448 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50449
50450         * modules/mkancesdirs (Depends-on): Add fcntl.
50451         * modules/savewd: New file.
50452         * MODULES.html.sh (File system functions): Add savewd.
50453
50454         * modules/configmake (Makefile.am): Add support for the
50455         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
50456
50457 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50458
50459         * m4/savewd.m4: New file.
50460
50461 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50462
50463         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
50464         (dirchownmod): New arg FD.  All callers changed.
50465         Use FD rather than opening the directory ourself, as opening is
50466         now the caller's responsibility.
50467         * lib/dirchownmod.h: Likewise.
50468         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
50469         hosts that require <sys/types.h> before <sys/stat.h>.  Include
50470         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
50471         (test_dir): Remove.
50472         (mkancesdirs): Return length of prefix of FILE that has already
50473         been made, or -2 if there is a child doing the work.  Redo
50474         algorithm so that it is O(N) rather than O(N**2).  Optimize away
50475         ".", and treat ".." specially since it might stray back into
50476         already-created areas.  Use a subprocess if necessary.  New arg
50477         WD; all users changed.  MAKE_DIR function should now return 1
50478         if it creates a directory that is not readable.  Return -2 if
50479         a child process is spun off.
50480         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
50481         Adjust signature to match code.
50482         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
50483         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
50484         all users changed.
50485         * lib/savewd.c, lib/savewd.h: New files.
50486
50487 2006-09-15  Jim Meyering  <jim@meyering.net>
50488
50489         * modules/rename-dest-slash: New module.
50490         * MODULES.html.sh (posix_compat): Add it here.
50491
50492         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
50493
50494 2006-09-15  Jim Meyering  <jim@meyering.net>
50495
50496         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
50497         file.
50498
50499         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
50500
50501 2006-09-15  Jim Meyering  <jim@meyering.net>
50502
50503         * lib/rename-dest-slash.c (has_trailing_slash): Use
50504         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
50505         (rpl_rename_dest_slash): Perform the cheaper trailing slash
50506         test before testing whether SRC is a directory.
50507         Suggestions from Bruno Haible.
50508
50509         Avoid a warning about an unused variable.
50510         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
50511         into the #ifdef block where it's used.
50512
50513         * lib/rename-dest-slash.c: New file.
50514
50515 2006-09-14  Bruno Haible  <bruno@clisp.org>
50516
50517         * lib/allocsa.c: Include <config.h> unconditionally.
50518         * lib/asnprintf.c: Likewise.
50519         * lib/asprintf.c: Likewise.
50520         * lib/c-strcasecmp.c: Likewise.
50521         * lib/c-strcasestr.c: Likewise.
50522         * lib/c-strncasecmp.c: Likewise.
50523         * lib/c-strstr.c: Likewise.
50524         * lib/classpath.c: Likewise.
50525         * lib/clean-temp.c: Likewise.
50526         * lib/concatpath.c: Likewise.
50527         * lib/copy-file.c: Likewise.
50528         * lib/csharpcomp.c: Likewise.
50529         * lib/csharpexec.c: Likewise.
50530         * lib/execute.c: Likewise.
50531         * lib/fatal-signal.c: Likewise.
50532         * lib/findprog.c: Likewise.
50533         * lib/fwriteerror.c: Likewise.
50534         * lib/gl_array_list.c: Likewise.
50535         * lib/gl_array_oset.c: Likewise.
50536         * lib/gl_avltree_list.c: Likewise.
50537         * lib/gl_avltree_oset.c: Likewise.
50538         * lib/gl_avltreehash_list.c: Likewise.
50539         * lib/gl_carray_list.c: Likewise.
50540         * lib/gl_linked_list.c: Likewise.
50541         * lib/gl_linkedhash_list.c: Likewise.
50542         * lib/gl_list.c: Likewise.
50543         * lib/gl_oset.c: Likewise.
50544         * lib/gl_rbtree_list.c: Likewise.
50545         * lib/gl_rbtree_oset.c: Likewise.
50546         * lib/gl_rbtreehash_list.c: Likewise.
50547         * lib/imaxabs.c: Likewise.
50548         * lib/imaxdiv.c: Likewise.
50549         * lib/javacomp.c: Likewise.
50550         * lib/javaexec.c: Likewise.
50551         * lib/javaversion.c: Likewise.
50552         * lib/linebreak.c: Likewise.
50553         * lib/localcharset.c: Likewise.
50554         * lib/lock.c: Likewise.
50555         * lib/mbchar.c: Likewise.
50556         * lib/mbswidth.c: Likewise.
50557         * lib/mkdtemp.c: Likewise.
50558         * lib/pipe.c: Likewise.
50559         * lib/printf-args.c: Likewise.
50560         * lib/printf-parse.c: Likewise.
50561         * lib/progname.c: Likewise.
50562         * lib/progreloc.c: Likewise.
50563         * lib/readlink.c: Likewise.
50564         * lib/sh-quote.c: Likewise.
50565         * lib/stpcpy.c: Likewise.
50566         * lib/stpncpy.c: Likewise.
50567         * lib/strcasecmp.c: Likewise.
50568         * lib/strcasestr.c: Likewise.
50569         * lib/strcspn.c: Likewise.
50570         * lib/striconv.c: Likewise.
50571         * lib/strncasecmp.c: Likewise.
50572         * lib/strnlen1.c: Likewise.
50573         * lib/strstr.c: Likewise.
50574         * lib/strtok_r.c: Likewise.
50575         * lib/tls.c: Likewise.
50576         * lib/tmpdir.c: Likewise.
50577         * lib/unicodeio.c: Likewise.
50578         * lib/unsetenv.c: Likewise.
50579         * lib/vasnprintf.c: Likewise.
50580         * lib/vasprintf.c: Likewise.
50581         * lib/wait-process.c: Likewise.
50582         * lib/xallocsa.c: Likewise.
50583         * lib/xsetenv.c: Likewise.
50584         * lib/xstriconv.c: Likewise.
50585
50586 2006-09-13  Simon Josefsson  <jas@extundo.com>
50587
50588         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
50589         that internally, suggested by Ralf Wildenhues
50590         <Ralf.Wildenhues@gmx.de>.
50591
50592 2006-09-13  Simon Josefsson  <jas@extundo.com>
50593
50594         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
50595         @LIBOBJS@.
50596         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50597
50598 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
50599
50600         * lib/_fpending.c: Include <config.h> unconditionally, since we no
50601         longer worry about uses that don't define HAVE_CONFIG_H.
50602         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
50603         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
50604         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
50605         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
50606         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
50607         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
50608         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
50609         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
50610         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
50611         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
50612         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
50613         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
50614         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
50615         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
50616         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
50617         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
50618         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
50619         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
50620         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
50621         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
50622         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
50623         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
50624         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
50625         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
50626         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
50627         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
50628         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
50629         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
50630         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
50631         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
50632         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
50633         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
50634         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
50635         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
50636         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
50637         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
50638         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
50639         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
50640         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
50641         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
50642         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
50643         Likewise.
50644
50645 2006-09-13  Eric Blake  <ebb9@byu.net>
50646
50647         * lib/getopt.c: Fix typo in last commit.
50648
50649 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50650
50651         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
50652         dgettext.
50653
50654 2006-09-12  Jim Meyering  <jim@meyering.net>
50655
50656         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
50657         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
50658         Reported by Nelson H. F. Beebe.
50659
50660 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50661
50662         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
50663         program_invocation_name and program_invocation_short_name are
50664         initialized.
50665         * lib/argp-namefrob.h: Move declarations of program_invocation_name
50666         and program_invocation_short_name to argp.h, so they are visible
50667         to user programs.
50668         * lib/argp.h: Likewise
50669
50670 2006-09-10  Bruno Haible  <bruno@clisp.org>
50671
50672         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50673         m4/inttypes_h.m4, m4/uintmax_t.m4.
50674
50675 2006-09-10  Bruno Haible  <bruno@clisp.org>
50676
50677         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
50678         gl_AC_TYPE_UINTMAX_T.
50679
50680 2006-09-10  Bruno Haible  <bruno@clisp.org>
50681
50682         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
50683
50684 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50685
50686         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
50687         convention.  Text proposed by Bruno Haible.
50688         (struct argp_option): Document the use of N_() wrappers.
50689
50690         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
50691         '\v', and translate the two parts separately, instead of feeding
50692         the whole string to gettext.  This allows to exclude
50693         '\v' from the strings visible to the translator by writing doc
50694         strings as N_("..") "\v" N_("..").
50695
50696 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
50697
50698         * config/srclist.txt: Undo latest change; the bug was fixed.
50699
50700 2006-09-09  Bruno Haible  <bruno@clisp.org>
50701
50702         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
50703         assignments if building a library without libtool.
50704         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
50705         in func_emit_lib_Makefile_am.
50706         (func_import): When building a static library libfoo.a, arrange to
50707         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
50708         (func_create_testdir): Likewise.
50709         * modules/gc (configure.ac, Makefile.am): If building statically,
50710         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
50711         * modules/iconvme (configure.ac, Makefile.am): Likewise.
50712         * modules/striconv (configure.ac, Makefile.am): Likewise.
50713         Based on a suggestion by Ralf Wildenhues.
50714
50715 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50716
50717         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50718         Check for unistd.h too, since Autoconf doesn't assume POSIX.
50719         Also:
50720
50721         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50722         Add year_2050_test to catch glibc bug 2821
50723         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50724
50725         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50726         Prefer #ifdef to #if.
50727
50728         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
50729         Return from 'main' instead of calling 'exit'.
50730
50731 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50732
50733         * lib/mktime.c (guess_time_tm): Fix bug where mktime
50734         returned the maximum time_t value rather than (time_t) -1.
50735         Problem originally reported by William Bardwell
50736         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50737
50738         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50739         Moved to here ...
50740         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50741         ... from here.
50742
50743 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50744
50745         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
50746         2821 is fixed.
50747
50748 2006-09-08  Jim Meyering  <jim@meyering.net>
50749
50750         Don't make generated files read-only.  That would bother too many
50751         people.  However, do retain the ability to work when targets are
50752         read-only: remove the destination and temporary files before writing
50753         them (when generated via sed or echo), or by using the -f option for
50754         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
50755         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50756         * modules/byteswap, modules/configmake, modules/fcntl:
50757         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50758         * modules/localcharset, modules/netinet_in, modules/poll:
50759         * modules/stdbool, modules/stdint, modules/sys_select:
50760         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50761
50762 2006-09-08  Jim Meyering  <jim@meyering.net>
50763
50764         Avoid new build failure on FreeBSD 6.0.
50765         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
50766         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
50767         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
50768
50769 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50770
50771         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
50772
50773 2006-09-07  Jim Meyering  <jim@meyering.net>
50774
50775         Fix global typo in last change: use chmod u-w, not chmod u-x.
50776         Spotted by Paul Eggert and Bruce Korb.
50777         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50778         * modules/byteswap, modules/configmake, modules/fcntl:
50779         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50780         * modules/localcharset, modules/netinet_in, modules/poll:
50781         * modules/stdbool, modules/stdint, modules/sys_select:
50782         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50783
50784 2006-09-06  Jim Meyering  <jim@meyering.net>
50785
50786         Make generated files be read-only.
50787         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
50788         Ensure that each generated file is now read-only.
50789         * modules/argz: Likewise.
50790         * modules/arpa_inet: Likewise.
50791         * modules/byteswap: Likewise.
50792         * modules/configmake: Likewise.
50793         * modules/fcntl: Likewise.
50794         * modules/fnmatch: Likewise.
50795         * modules/getopt: Likewise.
50796         * modules/glob: Likewise.
50797         * modules/inttypes: Likewise.
50798         * modules/netinet_in: Likewise.
50799         * modules/poll: Likewise.
50800         * modules/stdbool: Likewise.
50801         * modules/stdint: Likewise.
50802         * modules/sys_select: Likewise.
50803         * modules/sys_socket: Likewise.
50804         * modules/sys_stat: Likewise.
50805         * modules/sysexits: Likewise.
50806         * modules/localcharset: Same as above, but continue using temporary
50807         file named "t-$@" (why different?) rather than the "$@-t" used
50808         everywhere else.
50809
50810         * modules/sysexits (Makefile.am): Replace literal occurrences
50811         of "sysexit.h" more readable, and more consistent, "$@".
50812
50813 2006-09-06  Bruno Haible  <bruno@clisp.org>
50814
50815         * modules/striconv: New file.
50816         * modules/xstriconv: New file.
50817         * MODULES.html.sh (Internationalization functions): Add striconv,
50818         xstriconv.
50819
50820 2006-09-06  Bruno Haible  <bruno@clisp.org>
50821
50822         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
50823         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
50824         not using libtool correctly.
50825
50826 2006-09-06  Bruno Haible  <bruno@clisp.org>
50827
50828         * lib/striconv.h: New file.
50829         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
50830         iconvstring.c.
50831         * lib/xstriconv.h: New file.
50832         * lib/xstriconv.c: New file.
50833
50834 2006-09-06  Bruno Haible  <bruno@clisp.org>
50835
50836         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50837         lib_..._LDFLAGS.
50838
50839 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50840
50841         * lib/argz_.h: Sync from Libtool.
50842
50843         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
50844                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50845
50846         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
50847
50848 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50849
50850         * modules/trim: New file.
50851
50852 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50853
50854         * lib/trim.h: New file.
50855         * lib/trim.c: New file.
50856
50857 2006-09-05  Bruno Haible  <bruno@clisp.org>
50858
50859         * MODULES.html.sh (String handling): Add trim.
50860
50861 2006-09-04  Karl Berry  <karl@gnu.org>
50862
50863         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
50864         until next release.
50865
50866 2006-09-03  Bruno Haible  <bruno@clisp.org>
50867
50868         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
50869         correctly.
50870
50871 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50872
50873         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
50874         not gl_GETLOADAVG.  Omit unneeded semicolons.
50875         Problems reported by Ralf Wildenhues in
50876         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50877         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
50878         at the end, which is the usual gnulib style.
50879
50880         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
50881         of doing all the work ourselves.
50882         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
50883         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
50884
50885 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50886
50887         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
50888         Problem reported by Ralf Wildenhues in
50889         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50890
50891         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
50892         HAVE_STRUCT_STATFS_F_FSTYPENAME.
50893
50894 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50895
50896         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
50897         yesterday's patch by changing test -n to test -z.
50898
50899 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50900
50901         * modules/getloadavg (Files): Add m4/getloadavg.m4.
50902         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
50903         the former is now obsolescent.
50904
50905         * modules/chdir-long (Depends-on): Add fcntl.
50906
50907 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50908
50909         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
50910         obsolescent, and programs should use gnulib instead.
50911         * m4/getloadavg.m4: New file, with contents taken from Autoconf
50912         but with prefixes changed.
50913
50914 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50915
50916         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
50917         or stdbool.h, because they might not exist while configuring.
50918
50919         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
50920         Don't include unistd.h or limits.h; not needed, since chdir-long.h
50921         does that for us.
50922         (O_DIRECTORY): Remove.
50923
50924 2006-08-31  Eric Blake  <ebb9@byu.net>
50925
50926         * gnulib-tool: Don't let emacs change spaces to TAB.
50927
50928 2006-08-31  Bruno Haible  <bruno@clisp.org>
50929
50930         * gnulib-tool: When calling func_import more than once, do it in a
50931         subshell.
50932         Reported by Eric Blake <ebb9@byu.net>.
50933
50934 2006-08-31  Bruno Haible  <bruno@clisp.org>
50935
50936         * gnulib-tool (nl): Remove variable.
50937         (sed_transform_lib_file): Use more robust test for config-h module.
50938         (func_import): Fix typo in 2006-08-25 patch.
50939
50940 2006-08-31  Bruno Haible  <bruno@clisp.org>
50941
50942         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
50943         specified, augment Makefile.am variables instead of assigning them.
50944
50945 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50946
50947         Work around a bug in both the Linux and SunOS 64-bit kernels:
50948         nanosleep mishandles sleeps for longer than 2**31 seconds.
50949         Problem reported by Frank v Waveren in
50950         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
50952         Check for nanosleep bug.
50953         (LIB_NANOSLEEP): Append clock_gettime library if needed.
50954
50955 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50956
50957         Work around a bug in both the Linux and SunOS 64-bit kernels:
50958         nanosleep mishandles sleeps for longer than 2**31 seconds.
50959         Problem reported by Frank v Waveren in
50960         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50961         * lib/nanosleep.c (BILLION): New constant.
50962         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
50963         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
50964         implementation.
50965
50966 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50967
50968         * modules/nanosleep (Depends-on): Add gettime.
50969
50970 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50971         and Simon Josefsson  <jas@extundo.com>
50972         and Oskar Liljeblad  <oskar@osk.mine.nu>
50973
50974         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
50975         * gnulib-tool (func_import): New license type 'unmodifiable license
50976         text'.
50977         * modules/fdl: Use it.  Longer description.
50978         * module/gpl, module/lgpl: New files.
50979
50980 2006-08-30  Jim Meyering  <jim@meyering.net>
50981
50982         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
50983         shadowing the parameter.
50984
50985 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50986
50987         Sync from Libtool:
50988
50989         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50990
50991         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
50992         sharing with gnulib.  Report by Eric Blake.
50993
50994 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50995
50996         * modules/isapipe: New file.
50997         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
50998
50999 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51000
51001         * modules/configmake (Makefile.am): Add a comment, and omit
51002         the CONFIGMAKE_ prefix from generated macro names.  Suggested
51003         by Bruno Haible.
51004
51005 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51006
51007         * m4/isapipe.m4: New file.
51008
51009 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51010
51011         * lib/isapipe.c, lib/isapipe.h: New files.
51012
51013 2006-08-29  Jim Meyering  <jim@meyering.net>
51014
51015         * modules/configmake (Makefile.am): Make configmake.h depend on
51016         Makefile.  Otherwise, a stale configmake.h could hang around.
51017
51018 2006-08-29  Eric Blake  <ebb9@byu.net>
51019
51020         * lib/error.c (error_at_line, print_errno_message): Match libc, after
51021         resolution of upstream bug 3044.
51022
51023 2006-08-29  Bruno Haible  <bruno@clisp.org>
51024
51025         * modules/localcharset (Depends-on): Add configmake.
51026         (Makefile.am): Remove setting of LIBDIR through DEFS.
51027
51028 2006-08-29  Bruno Haible  <bruno@clisp.org>
51029
51030         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
51031         defined.
51032
51033 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51034
51035         * modules/fcntl: New file.
51036         * modules/chdir-safer (Depends-on): Add fcntl.
51037         * modules/fts: Likewise.
51038         * modules/mkdir-p: Likewise.
51039
51040         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
51041         This undoes the most recent change, since we're now addressing the
51042         problem in a different way.
51043
51044         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
51045         into output, since the output might be called Makefile.am even
51046         if $makefile_name is something different.
51047         (func_import): Use $makefile_am rather than
51048         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
51049         empty.
51050
51051         * modules/inttypes (Files): Add m4/inttypes-h.m4.
51052
51053 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51054
51055         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
51056         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
51057         recent change to stdint.m4, since we're now addressing the problem in a
51058         different way.
51059
51060 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51061
51062         * m4/fcntl_h.m4: New file.
51063
51064 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51065
51066         * lib/fcntl_.h: New file.
51067         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
51068         the fcntl module.
51069         * lib/dirchownmod.c: Likewise.
51070         * lib/fts.c: Likewise.
51071
51072         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
51073         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
51074         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
51075         just before including <inttypes.h>, to avoid circular inclusion.
51076
51077 2006-08-28  Jim Meyering  <jim@meyering.net>
51078
51079         * doc/visibility.texi: Actually read and correct the grammar of the
51080         sentence affected by yesterday's change.
51081
51082 2006-08-28  Eric Blake  <ebb9@byu.net>
51083
51084         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
51085         needs wrapper.
51086
51087 2006-08-28  Eric Blake  <ebb9@byu.net>
51088
51089         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
51090
51091 2006-08-28  Eric Blake  <ebb9@byu.net>
51092
51093         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
51094
51095 2006-08-28  Bruno Haible  <bruno@clisp.org>
51096
51097         * modules/c-strstr: New file, from GNU gettext.
51098         * MODULES.html.sh (String handling): Add c-strstr.
51099
51100 2006-08-28  Bruno Haible  <bruno@clisp.org>
51101
51102         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
51103         macros.
51104         Reported by Eric Blake.
51105
51106 2006-08-28  Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
51109         (VASNPRINTF): Return a string of length > INT_MAX without failing.
51110         * lib/vasprintf.c: Include errno.h, limits.h.
51111         (EOVERFLOW): New fallback definition.
51112         (vasprintf): Test here whether the string length is > INT_MAX.
51113         * lib/vsnprintf.c: Include errno.h, limits.h.
51114         (EOVERFLOW): New fallback definition.
51115         (vsnprintf): Fix bug when generated string was too long for the buffer.
51116         Test here whether the string length is > INT_MAX.
51117
51118 2006-08-28  Bruno Haible  <bruno@clisp.org>
51119
51120         * lib/inttypes_.h (SCNX*): Remove definitions.
51121         Reported by Eric Blake.
51122
51123 2006-08-28  Bruno Haible  <bruno@clisp.org>
51124
51125         * lib/c-strstr.h: New file, from GNU gettext.
51126         * lib/c-strstr.c: New file, from GNU gettext.
51127
51128 2006-08-28  Bruno Haible  <bruno@clisp.org>
51129
51130         * gnulib-tool: Reorder some statements.
51131
51132 2006-08-28  Bruno Haible  <bruno@clisp.org>
51133
51134         * gnulib-tool: New option --makefile-name.
51135         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
51136         $makefile_name.
51137         (func_import): Write $makefile_name to the cache file, and read it from
51138         there unless explicitly specified. Use $makefile_name as file name
51139         instead of Makefile.am. Adjust the recommendations accordingly.
51140
51141 2006-08-28  Bruno Haible  <bruno@clisp.org>
51142
51143         * gnulib-tool (func_verify_module): Check against misapplying patch.
51144
51145 2006-08-28  Bruno Haible  <bruno@clisp.org>
51146
51147         * gnulib-tool (func_relativize, func_relconcat): New functions.
51148         Give an error if --local-dir is given with --update.
51149         Remove trailing slashes from $local_gnulib_dir.
51150         (func_import): Store the relativized $local_gnulib_dir in
51151         gnulib-cache.m4, and read it from there if not specified explicitly.
51152
51153 2006-08-28  Bruno Haible  <bruno@clisp.org>
51154
51155         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
51156         is the current directory. Respect also $local_gnulib_dir.
51157
51158 2006-08-28  Bruno Haible  <bruno@clisp.org>
51159             Simon Josefsson  <jas@extundo.com>
51160
51161         BeOS portability.
51162         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
51163
51164 2006-08-27  Jim Meyering  <jim@meyering.net>
51165
51166         * doc/visibility.texi: Remove duplicate word: "pointer".
51167
51168 2006-08-26  Bruno Haible  <bruno@clisp.org>
51169
51170         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
51171         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
51172         (Makefile.am): Create inttypes.h from inttypes_.h.
51173         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
51174
51175         * modules/imaxabs: New file.
51176
51177         * modules/imaxdiv: New file.
51178
51179 2006-08-26  Bruno Haible  <bruno@clisp.org>
51180
51181         * m4/inttypes.m4: New file.
51182         * m4/_inttypes_h.m4: Remove file.
51183         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
51184         PRI_MACROS_BROKEN.
51185         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
51186
51187         * m4/imaxabs.m4: New file.
51188
51189         * m4/imaxdiv.m4: New file.
51190
51191 2006-08-26  Bruno Haible  <bruno@clisp.org>
51192
51193         * lib/inttypes_.h: New file.
51194         * lib/inttypes.h: Remove file.
51195         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
51196
51197         * lib/imaxabs.c: New file.
51198
51199         * lib/imaxdiv.c: New file.
51200
51201 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51202
51203         New config-h module, so that "make" output needn't be cluttered
51204         by -DHAVE_CONFIG_H.
51205         * MODULES.html.sh (Support for building libraries and executables):
51206         Add config-h.
51207         * modules/config-h: New file.
51208         * gnulib-tool (nl, sed_transform_lib_file): New vars.
51209         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
51210         the config-h module is used.
51211
51212         New configmake module, so that "make" output needn't be cluttered
51213         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
51214         * MODULES.html.sh (Support for building libraries and executables):
51215         Add configmake.
51216         * modules/configmake: New file.
51217
51218 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51219
51220         * m4/config-h.m4: New file.
51221
51222 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51223
51224         * config/srclist.txt: Add elisp-comp.
51225
51226 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51227
51228         * MODULES.html.sh (Support for building libraries and executables):
51229         Add elisp-comp.
51230         * build-aux/elisp-comp: New file.
51231         * modules/elisp-comp: New file.
51232
51233 2006-08-24  Bruno Haible  <bruno@clisp.org>
51234
51235         * gnulib-tool (func_create_testdir): Use non-default values of
51236         sourcebase and m4base.
51237
51238 2006-08-24  Bruno Haible  <bruno@clisp.org>
51239
51240         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
51241         HTML structure.
51242
51243 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51244
51245         * modules/openat (Depends-on): Add lchown.
51246
51247 2006-08-23  Bruno Haible  <bruno@clisp.org>
51248
51249         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
51250         of gl_LOCK_EARLY instead of gl_LOCK.
51251
51252 2006-08-23  Bruno Haible  <bruno@clisp.org>
51253
51254         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
51255         on OSF/1 to no.
51256         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
51257
51258 2006-08-23  Bruno Haible  <bruno@clisp.org>
51259
51260         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
51261         as unusable.
51262
51263         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
51264         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
51265         (gl_LOCK): New macro.
51266
51267 2006-08-22  Simon Josefsson  <jas@extundo.com>
51268
51269         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
51270         to md5 module.
51271
51272 2006-08-22  Simon Josefsson  <jas@extundo.com>
51273
51274         * MODULES.html.sh: Add "Support for maintaining and release
51275         projects".
51276
51277         * build-aux/gnupload: New file, from coreutils.
51278
51279 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51280
51281         Avoid the need for AC_LIBSOURCES in m4 macros.
51282         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
51283         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
51284         * modules/check-version (EXTRA_DIST): Add check-version.h.
51285         * modules/crc (EXTRA_DIST): Add crc.h.
51286         * modules/des (EXTRA_DIST): Add des.h.
51287         * modules/gc (EXTRA_DIST): Add gc.h.
51288         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
51289         * modules/getline (EXTRA_DIST): Add getline.h.
51290         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
51291         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
51292         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
51293         * modules/md2 (EXTRA_DIST): Add md2.h.
51294         * modules/md4 (EXTRA_DIST): Add md4.h.
51295         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
51296         * modules/read-file (EXTRA_DIST): Add read-file.h.
51297         * modules/readline (EXTRA_DIST): Add readline.h.
51298         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
51299         rijndael-api-fst.h.
51300
51301 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51302
51303         * m4/rijndael.m4 (gl_ARCFOUR):
51304         * m4/arctwo.m4 (gl_ARCTWO):
51305         * m4/check-version.m4 (gl_CHECK_VERSION):
51306         * m4/crc.m4 (gl_CRC):
51307         * m4/des.m4 (gl_DES):
51308         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
51309         * m4/gc.m4 (gl_GC):
51310         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
51311         * m4/getline.m4 (gl_FUNC_GETLINE):
51312         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
51313         * m4/hmac-md5.m4 (gl_HMAC_MD5):
51314         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
51315         * m4/md2.m4 (gl_MD2):
51316         * m4/md4.m4 (gl_MD4):
51317         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
51318         * m4/read-file.m4 (gl_FUNC_READ_FILE):
51319         * m4/readline.m4 (gl_FUNC_READLINE):
51320         * m4/rijndael.m4 (gl_RIJNDAEL):
51321         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51322         to get the necessary .h files and whatnot.
51323
51324 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51325
51326         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
51327         gnulib rather than the other way around.
51328         * config/srclistvars.sh (COREUTILS): Remove.
51329
51330 2006-08-22  Jim Meyering  <jim@meyering.net>
51331
51332         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
51333
51334         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
51335
51336 2006-08-22  Eric Blake  <ebb9@byu.net>
51337
51338         * modules/regexprops-generic: New file.
51339         * MODULES.html.sh (Support for building documentation): List it.
51340
51341 2006-08-22  Eric Blake  <ebb9@byu.net>
51342
51343         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
51344         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51345         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
51346         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
51347
51348 2006-08-22  Bruno Haible  <bruno@clisp.org>
51349
51350         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
51351         and lib_LTLIBRARIES like the other lib_* variables.
51352
51353 2006-08-22  Bruno Haible  <bruno@clisp.org>
51354
51355         * build-aux/x-to-1.in: New file, from GNU gettext.
51356
51357 2006-08-22  Bruno Haible  <bruno@clisp.org>
51358
51359         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
51360         <utmpx.h> exists.
51361
51362 2006-08-22  Bruno Haible  <bruno@clisp.org>
51363
51364         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
51365         <utmpx.h> exists.
51366
51367 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51368
51369         BeOS portability.
51370         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
51371         exist.
51372         Problem reported by Bruno Haible.
51373
51374 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51375
51376         Avoid the need for AC_LIBSOURCES in m4 macros.
51377         * modules/acl (EXTRA_DIST): Add acl.h.
51378         * modules/argmatch (Files): Add m4/argmatch.m4.
51379         (configure.ac): Add gl_ARGMATCH.
51380         (EXTRA_DIST): Renamed from lib_SOURCES, for
51381         consistency with the other modules.  Remove argmatch.c.
51382         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
51383         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
51384         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
51385         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
51386         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
51387         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
51388         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
51389         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
51390         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
51391         * modules/closeout (EXTRA_DIST): Add closeout.h.
51392         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
51393         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
51394         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
51395         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
51396         dirname.h; remove basename.c and stripslash.c.
51397         * modules/exclude (EXTRA_DIST): Add exclude.h.
51398         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
51399         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
51400         * modules/file-type (EXTRA_DIST): Add file-type.h.
51401         * modules/filemode (EXTRA_DIST): Add filemode.h.
51402         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
51403         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
51404         * modules/fpending (EXTRA_DIST): Add __fpending.h.
51405         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
51406         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
51407         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
51408         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
51409         * modules/getdate (EXTRA_DIST): Add getdate.c.
51410         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
51411         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
51412         * modules/getpass (EXTRA_DIST): Add getpass.h.
51413         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
51414         * modules/group-member (EXTRA_DIST): Add group-member.h.
51415         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
51416         * modules/hash (EXTRA_DIST): Add hash.h.
51417         * modules/human (EXTRA_DIST): Add human.h.
51418         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
51419         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
51420         * modules/lchown (EXTRA_DIST): Add lchown.h.
51421         * modules/long-options (EXTRA_DIST): Add long-options.h.
51422         * modules/lstat (EXTRA_DIST): Add lstat.h.
51423         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
51424         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
51425         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
51426         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
51427         * modules/memxor (EXTRA_DIST): Add memxor.h.
51428         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
51429         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
51430         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
51431         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
51432         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
51433         * modules/physmem (EXTRA_DIST): Add physmem.h.
51434         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
51435         * modules/posixver (EXTRA_DIST): Add posixver.h.
51436         * modules/quote (EXTRA_DIST): Add quote.h.
51437         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
51438         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
51439         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
51440         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
51441         regex_internal.h regexec.c.
51442         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
51443         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
51444         * modules/same (EXTRA_DIST): Add same.h.
51445         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
51446         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
51447         * modules/savedir (EXTRA_DIST): Add savedir.h.
51448         * modules/sha1 (EXTRA_DIST): Add sha1.h.
51449         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
51450         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
51451         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
51452         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
51453         * modules/strdup (EXTRA_DIST): Add strdup.h.
51454         * modules/strftime (EXTRA_DIST): Add strftime.h.
51455         * modules/strndup (EXTRA_DIST): Add strndup.h.
51456         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
51457         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
51458         * modules/time_r (EXTRA_DIST): Add time_r.h.
51459         * modules/timespec (EXTRA_DIST): Add timespec.h.
51460         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
51461         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
51462         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
51463         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
51464         * modules/userspec (EXTRA_DIST): Add userspec.h.
51465         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
51466         * modules/utimens (EXTRA_DIST): Add utimens.h.
51467         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
51468         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
51469         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
51470         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
51471         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
51472         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
51473         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
51474         * modules/yesno (EXTRA_DIST): Add yesno.h.
51475
51476 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51477
51478         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
51479
51480         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
51481         * m4/dev-ino.m4, same-inode.m4: Remove.
51482
51483         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
51484         * m4/acl.m4 (AC_FUNC_ACL):
51485         * m4/backupfile.m4 (gl_BACKUPFILE):
51486         * m4/c-strtod.m4 (gl_C99_STRTOLD):
51487         * m4/canon-host.m4 (gl_CANON_HOST):
51488         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51489         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
51490         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
51491         * m4/cloexec.m4 (gl_CLOEXEC):
51492         * m4/close-stream.m4 (gl_CLOSE_STREAM):
51493         * m4/closeout.m4 (gl_CLOSEOUT):
51494         * m4/dirfd.m4 (gl_FUNC_DIRFD):
51495         * m4/dirname.m4 (gl_DIRNAME):
51496         * m4/exclude.m4 (gl_EXCLUDE):
51497         * m4/exitfail.m4 (gl_EXITFAIL):
51498         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
51499         * m4/file-type.m4 (gl_FILE_TYPE):
51500         * m4/filemode.m4 (gl_FILEMODE):
51501         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
51502         * m4/fpending.m4 (gl_FUNC_FPENDING):
51503         * m4/fprintftime.m4 (gl_FPRINTFTIME):
51504         * m4/fts.m4 (gl_FUNC_FTS):
51505         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
51506         * m4/getdate.m4 (gl_GETDATE):
51507         * m4/gethrxtime.m4 (gl_GETHRXTIME):
51508         * m4/getpagesize.m4 (gl_GETPAGESIZE):
51509         * m4/getpass.m4 (gl_FUNC_GETPASS):
51510         * m4/gettime.m4 (gl_GETTIME):
51511         * m4/getugroups.m4 (gl_GETUGROUPS):
51512         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
51513         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
51514         * m4/hard-locale.m4 (gl_HARD_LOCALE):
51515         * m4/hash.m4 (gl_HASH):
51516         * m4/idcache.m4 (gl_IDCACHE):
51517         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
51518         * m4/lchown.m4 (gl_FUNC_LCHOWN):
51519         * m4/long-options.m4 (gl_LONG_OPTIONS):
51520         * m4/lstat.m4 (gl_FUNC_LSTAT):
51521         * m4/md5.m4 (gl_MD5):
51522         * m4/memcasecmp.m4 (gl_MEMCASECMP):
51523         * m4/memcoll.m4 (gl_MEMCOLL):
51524         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
51525         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
51526         * m4/memxor.m4 (gl_MEMXOR):
51527         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
51528         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
51529         * m4/modechange.m4 (gl_MODECHANGE):
51530         * m4/mountlist.m4 (gl_MOUNTLIST):
51531         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51532         * m4/openat.m4 (gl_FUNC_OPENAT):
51533         * m4/pathmax.m4 (gl_PATHMAX):
51534         * m4/physmem.m4 (gl_PHYSMEM):
51535         * m4/posixtm.m4 (gl_POSIXTM):
51536         * m4/posixver.m4 (gl_POSIXVER):
51537         * m4/quote.m4 (gl_QUOTE):
51538         * m4/quotearg.m4 (gl_QUOTEARG):
51539         * m4/readtokens.m4 (gl_READTOKENS):
51540         * m4/readutmp.m4 (gl_READUTMP):
51541         * m4/regex.m4 (gl_REGEX):
51542         * m4/safe-read.m4 (gl_SAFE_READ):
51543         * m4/safe-write.m4 (gl_SAFE_WRITE):
51544         * m4/same.m4 (gl_SAME):
51545         * m4/save-cwd.m4 (gl_SAVE_CWD):
51546         * m4/savedir.m4 (gl_SAVEDIR):
51547         * m4/settime.m4 (gl_SETTIME):
51548         * m4/sha1.m4 (gl_SHA1):
51549         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
51550         * m4/stat-macros.m4 (gl_STAT_MACROS):
51551         * m4/stat-time.m4 (gl_STAT_TIME):
51552         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
51553         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
51554         * m4/strdup.m4 (gl_FUNC_STRDUP):
51555         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
51556         * m4/strndup.m4 (gl_FUNC_STRNDUP):
51557         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
51558         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
51559         * m4/time_r.m4 (gl_TIME_R):
51560         * m4/timespec.m4 (gl_TIMESPEC):
51561         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
51562         * m4/unlinkdir.m4 (gl_UNLINKDIR):
51563         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
51564         * m4/userspec.m4 (gl_USERSPEC):
51565         * m4/utimecmp.m4 (gl_UTIMECMP):
51566         * m4/utimens.m4 (gl_UTIMENS):
51567         * m4/xalloc.m4 (gl_XALLOC):
51568         * m4/xgetcwd.m4 (gl_XGETCWD):
51569         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
51570         * m4/xreadlink.m4 (gl_XREADLINK):
51571         * m4/xstrtod.m4 (gl_XSTRTOD):
51572         * m4/yesno.m4 (gl_YESNO):
51573         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51574         to get the necessary .h files and whatnot.
51575
51576 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
51577             Bruno Haible  <bruno@clisp.org>
51578
51579         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
51580         /bin/sh understanding of '!' conditional negation.
51581
51582 2006-08-21  Jim Meyering  <jim@meyering.net>
51583
51584         * modules/openat (Depends-on): Really alphabetize.
51585
51586         * modules/acl (Depends-on): Add error and quote.
51587
51588         * check-module (find_included_lib_files): Add at-func.c to the
51589         ok-to-include-more-than-once white list.
51590
51591         * modules/openat (Depends-on): Add lstat.  Alphabetize.
51592
51593 2006-08-21  Bruno Haible  <bruno@clisp.org>
51594
51595         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51596         Emit a pkgdata_DATA variable only if some snippets add contents to it.
51597         Reported by Martin Lambers <marlam@marlam.de>.
51598
51599 2006-08-21  Bruno Haible  <bruno@clisp.org>
51600
51601         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
51602         specify an installation location, don't emit a noinst_LIBRARIES or
51603         noinst_LTLIBRARIES assignment.
51604
51605 2006-08-21  Bruno Haible  <bruno@clisp.org>
51606
51607         BeOS portability.
51608         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
51609         BeOS has mbrtowc() but no <wctype.h>.
51610
51611 2006-08-21  Bruno Haible  <bruno@clisp.org>
51612
51613         BeOS portability.
51614         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
51615         exist.
51616
51617 2006-08-21  Bruno Haible  <bruno@clisp.org>
51618
51619         BeOS portability.
51620         * lib/mbchar.h: Include <wctype.h> only if it exists.
51621
51622 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51623
51624         Remove files that are no longer needed by their respective modules.
51625         * m4/obstack.m4: Remove.
51626         * m4/strerror_r.m4: Remove.
51627         * m4/uint32_t.m4: Remove.
51628         * m4/uintptr_t.m4: Remove.
51629         * m4/ullong_max.m4: Remove.
51630         * m4/xstrtoimax.m4: Remove.
51631         * m4/xstrtoumax.m4: Remove.
51632
51633         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
51634         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
51635         dependencies now capture this.
51636
51637         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
51638         Do not use AC_LIBSOURCES, since gnulib modules now do this.
51639         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
51640         * m4/human.m4 (gl_HUMAN): Likewise.
51641         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
51642         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
51643
51644         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
51645
51646         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
51647         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
51648         stdint.
51649         * m4/human.m4 (gl_HUMAN): Likewise.
51650         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
51651         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
51652         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51653         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51654         * m4/xstrtol (gl_XSTRTOL): Likewise.
51655
51656         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
51657         AC_TYPE_LONG_LONG_INT.
51658         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51659         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
51660         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
51661         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51662
51663         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
51664         on stdbool.
51665
51666         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
51667         (gl_PREREQ_XSTRTOUL): Remove.
51668
51669         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
51670
51671         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
51672         mode.
51673
51674 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51675
51676         Add and change modules to make it easier for coreutils to use
51677         gnulib-tool.
51678         * modules/backupfile (Files): Remove m4/d-ino.m4.
51679         (Depends-on): Add d-ino.
51680         * modules/cycle-check (Depends-on): Add stdint.
51681         (lib_SOURCES): Add cycle-check.h.
51682         * modules/d-ino: New module.
51683         * modules/d-type: New module.
51684         * modules/error (Files): Remove m4/strerror_r.m4.
51685         * modules/filemode (Files): Add m4/st_dm_mode.m4.
51686         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51687         m4/inttypes_h.m4, m4/uintmax_t.m4.
51688         (Depends-on): Add stdint.
51689         (lib_SOURCES): Add fsusage.h.
51690         * modules/getcwd (Files): Remove d-ino.m4.
51691         (Depends-on): Add d-ino.
51692         * modules/getndelim2 (Depends-on): Add stdint.
51693         * modules/glob (Files): Remove m4/d-type.m4.
51694         (Depends-on): Add d-type.
51695         * modules/host-os: New module.
51696         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
51697         m4/inttypes_h.m4, m4/uintmax_t.m4.
51698         * Depends-on: Add stdint.
51699         (lib_SOURCES): Add human.h.
51700         * modules/inttostr (Files): Remove m4/intmax_t.m4,
51701         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
51702         m4/uintmax_t.m4, m4/ulonglong.m4.
51703         (Depends-on): Add stdint.
51704         (EXTRA_DIST): Add inttostr.h.
51705         * modules/lchmod: New module.
51706         * modules/link-follow: New module.
51707         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
51708         (Depends-on): Add lchmod.
51709         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
51710         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
51711         (Depends-on): Add stdint.
51712         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
51713         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
51714         (Depends-on): Add stdint.
51715         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
51716         * modules/perl: New module.
51717         * modules/regex (Depends-on): Add stdint.
51718         * modules/rmdir-errno: New module.
51719         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51720         m4/intmax_t.m4.
51721         (Depends-on): Add stdint.
51722         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51723         m4/uintmax_t.m4.
51724         (Depends-on): Add stdint.
51725         * modules/unlink-busy: New module.
51726         * modules/utimecmp (Depends-on): Add stdint.
51727         * modules/uptime: New module.
51728         * modules/winsz-ioctl: New module.
51729         * modules/winsz-termios: New module.
51730         * modules/xnanosleep (Depends-on): Add nanosleep.
51731         * modules/ullong_max: Remove.
51732         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
51733         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
51734         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
51735         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
51736         (Depends-on): Add inttypes.
51737         (lib_SOURCES): Add xstrtol.h.
51738         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
51739         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
51740         * MODULES.html.sh: Move 'assert' into the assert section.
51741         Move 'dummy' into the linking section.
51742         Remove ullong_max.
51743         Add section for compatibility checks for POSIX:2001 functions,
51744         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
51745         winsz-ioctl, and winsz-termios into it.
51746         Add lchmod.
51747         Add top-level Misc section and put host-os, perl, and uptime
51748         into it.
51749
51750 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51751
51752         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
51753         now assume the stdint module.  Do not include inttypes.h.
51754         * lib/fsusage.h: Likewise.
51755         * lib/getndelim2.c: Likewise.
51756         * lib/human.h: Likewise.
51757         * lib/inttostr.h: Likewise.
51758         * lib/obstack.c: Likewise.
51759         * lib/regex_internal.h: Likewise.
51760         * lib/tempname.c: Likewise.
51761         * lib/utimecmp.c: Likewise.
51762         * lib/xstrtol.h: Likewise.
51763
51764         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
51765
51766         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
51767         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
51768         * lib/xtime.h: Likewise.
51769
51770 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51771
51772         * modules/openat (Files): Add lib/fchmodat.c.
51773         Fixes problem reported by Jay Youngman.
51774
51775 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51776
51777         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
51778         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
51779
51780 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
51781             Bruno Haible  <bruno@clisp.org>
51782
51783         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
51784         and is a script that invokes bison. Tighten the code. Add comments.
51785
51786 2006-08-18  Jim Meyering  <jim@meyering.net>
51787
51788         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
51789         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
51790         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
51791         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
51792
51793 2006-08-18  Bruno Haible  <bruno@clisp.org>
51794
51795         * modules/bison-i18n: New file.
51796         * MODULES.html.sh (Internationalization functions): Add it.
51797
51798 2006-08-18  Bruno Haible  <bruno@clisp.org>
51799
51800         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
51801         sys/statvfs.h. When getmntinfo was found, check its declaration and
51802         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
51803
51804 2006-08-18  Bruno Haible  <bruno@clisp.org>
51805
51806         * m4/bison-i18n.m4: New file, from bison.
51807
51808 2006-08-18  Bruno Haible  <bruno@clisp.org>
51809
51810         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
51811         (ME_DUMMY): Treat "kernfs" as a dummy.
51812         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
51813
51814 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51815
51816         Update from coreutils.
51817
51818         2006-08-15  Jim Meyering  <jim@meyering.net>
51819
51820         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
51821
51822         2006-01-17  Jim Meyering  <jim@meyering.net>
51823
51824         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
51825
51826         2006-01-11  Jim Meyering  <jim@meyering.net>
51827
51828         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
51829         Check for the lchmod function.
51830
51831 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51832
51833         Update from coreutils.
51834
51835         * lib/__fpending.h: Add copyright notice.
51836         * lib/fprintftime.h: Likewise.
51837         * lib/savedir.c: Use (C) in copyright notice.
51838         * lib/savedir.h: Likewise.
51839
51840         2006-08-15  Jim Meyering  <jim@meyering.net>
51841
51842         * lib/at-func.c: New file, with the logic of all emulated at-functions.
51843         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
51844         in support of the EXPECTED_ERRNO macro.
51845         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
51846         definitions.  Instead, define the appropriate symbols and include
51847         "at-func.c".
51848         * lib/mkdirat.c (mkdirat): Likewise.
51849         * lib/fchmodat.c (fchmodat): Likewise.
51850         (ENOSYS): Remove definition.
51851         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
51852         it.  Don't include "unistd--.h" -- it wasn't ever used.
51853
51854         2006-01-17  Jim Meyering  <jim@meyering.net>
51855
51856         Rewrite fts.c not to change the current working directory,
51857         by using openat, fstatat, fdopendir, etc..
51858
51859         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
51860         (HAVE_OPENAT_SUPPORT): Define.
51861         [_LIBC] (fchdir): Don't undef or define; no longer used.
51862         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
51863         Now, this `function' always succeeds, and consumes its file descriptor
51864         parameter -- so callers must not close such FDs.  Update callers.
51865         (diropen_fd, opendirat, cwd_advance_fd): New functions.
51866         (diropen): Add parameter, SP.  Adjust all callers.
51867         Implement using diropen_fd, rather than open.
51868         (fts_open): Initialize new member, fts_cwd_fd.
51869         Remove fts_rft-setting code.
51870         (fts_close): Close fts_cwd_fd, if necessary.
51871         (__opendir2): Define in terms of opendir or opendirat,
51872         depending on whether the FST_NOCHDIR flag is set.
51873         (fts_build): Since fts_safe_changedir consumes its FD, and since
51874         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
51875         and close the dup'd file descriptor upon failure.
51876         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
51877         (fts_safe_changedir): Tweak semantics to reflect that this function
51878         now calls cwd_advance_fd and hence consumes its FD argument.
51879         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
51880         [struct FTS] (fts_rft): Remove now-unused member.
51881         [struct FTS] (fts_cycle.state): Improve comment.
51882
51883         * lib/openat.c (openat_needs_fchdir): New function.
51884         * lib/openat.h (openat_needs_fchdir): Declare it.
51885
51886 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51887
51888         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
51889         Problem and fix reported by Pádraig Brady in
51890         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
51891
51892 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51893
51894         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
51895
51896 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51897
51898         * lib/memcoll.c (memcoll): Optimize for the common case where the
51899         arguments are bytewise equal.
51900
51901 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51902
51903         * doc/regexprops-generic.texi: Add a copyright notice.
51904
51905 2006-08-15  Bruno Haible  <bruno@clisp.org>
51906
51907         * modules/tmpdir (License): Change to LGPL.
51908
51909 2006-08-15  Bruno Haible  <bruno@clisp.org>
51910
51911         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
51912         module.
51913
51914 2006-08-14  Simon Josefsson  <jas@extundo.com>
51915
51916         * config/srclist.txt: Add gnupload.
51917
51918 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51919
51920         Change copyright notice from LGPL 2 to GPL 2, since that's the
51921         standard form used in the gnulib repository.
51922         * tests/test-lock.c: Likewise.
51923         * tests/test-stdint.c: Likewise.
51924         * tests/test-tls.c: Likewise.
51925
51926         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
51927         prelude-manager.  User shorter URLs for GNU projects, without '?'.
51928         Add copyright notice.
51929
51930         * check-module: Add copyright notice.  Output a copyright
51931         notice if "--version" is specified.
51932         * modules/COPYING: New file.
51933         * tests/test-getaddrinfo.c: Add copyright notice.
51934         * tests/test-verify.c: Likewise.
51935
51936 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51937
51938         Change copyright notice from LGPL 2 to GPL 2, since that's the
51939         standard form used in the gnulib repository.
51940         * lib/lock.c: LGPL -> GPL.
51941         * lib/lock.h: Likewise.
51942         * lib/strnlen1.c: Likewise.
51943         * lib/strnlen1.h: Likewise.
51944         * lib/tls.c: Likewise.
51945         * lib/tls.h: Likewise.
51946         * lib/tmpdir.c: Likewise.
51947
51948         * lib/TODO: Remove; this belongs only in coreutils.
51949
51950 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51951
51952         Add copyright notices to long-enough files that lack them, since
51953         otherwise the files aren't clearly free.  Use the same notice that
51954         getdate.texi already uses.
51955         * doc/alloca-opt.texi: Add copyright notice.
51956         * doc/alloca.texi: Likewise.
51957         * doc/ctime.texi: Likewise.
51958         * doc/functions.texi: Likewise.
51959         * doc/gcd.texi: Likewise.
51960         * doc/gnulib-tool.texi: Likewise.
51961         * doc/inet_ntoa.texi: Likewise.
51962         * doc/visibility.texi: Likewise.
51963
51964         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
51965         * doc/quote.texi: Add copyright notice.
51966
51967         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
51968         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
51969         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
51970         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
51971         is now obsolete, and give a pointer to the Sun list.
51972         Add copyright notice.
51973
51974 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51975
51976         * config/srclistvars.sh: Add copyright notice.
51977
51978 2006-08-14  Eric Blake  <ebb9@byu.net>
51979
51980         Import the following change from libc:
51981
51982         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
51983
51984         Upstream bug 2997.
51985         * lib/misc/error.c: Add space between program name and message if file
51986         name is missing.
51987
51988 2006-08-12  Karl Berry  <karl@gnu.org>
51989
51990         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
51991         remove, these originate in gnulib now.
51992
51993 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51994
51995         * doc/Makefile (standards.info standards.html standards.dvi):
51996         Also depend on make-stds.texi.
51997
51998 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51999
52000         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
52001         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
52002
52003         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
52004         in wchar_t.  Problem reported by Eric Blake.
52005
52006         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
52007         LEN is smaller than SIZE.  Suggested by Bruno Haible.
52008         Also, help the compiler to keep LEN in a register.
52009
52010 2006-08-11  Eric Blake  <ebb9@byu.net>
52011
52012         * users.txt: Sort.  Add tar.
52013
52014 2006-08-11  Bruno Haible  <bruno@clisp.org>
52015
52016         * users.txt: New file.
52017
52018 2006-08-11  Bruno Haible  <bruno@clisp.org>
52019
52020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
52021         before <wchar.h>. Needed for OSF/1 and BSD/OS.
52022
52023 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52024
52025         * modules/snprintf (Depends-on): Remove minmax.
52026         (Maintainer): Add self and Bruno.
52027
52028 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52029
52030         * lib/.cppi-disable: Add snprintf.h, socket_.h.
52031         * lib/snprintf.c: Include <errno.h> and <limits.h>.
52032         (EOVERFLOW): Define if the system does not.
52033         Do not include "minmax.h"; it wasn't used.
52034         (snprintf): Don't assume size_t promotes to an unsigned type.
52035         Fix bug when generated string was too long for the buffer: the
52036         buffer's contents are supposed to be the initial prefix of the
52037         output.  Don't assume vasnprintf returns EOVERFLOW if the size
52038         exceeds INT_MAX; do the check ourselves.
52039
52040         Import the following changes from libc:
52041
52042         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
52043
52044         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
52045         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
52046         set wc to the byte which couldn't be converted.
52047         (re_string_reconstruct): Don't clear valid_raw_len before calling
52048         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
52049         tip_context using re_string_context_at.
52050
52051         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
52052
52053         * lib/posix/regex.h: g++ still cannot handled [restrict].
52054
52055         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
52056
52057         * lib/posix/regex.h: Remove special handling for VMS.
52058
52059 2006-08-10  Jim Meyering  <jim@meyering.net>
52060
52061         * modules/same-inode: New module.
52062         * modules/dev-ino: New module.
52063         * modules/cycle-check: Depend on these modules, rather than simply
52064         including their .h files.
52065         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
52066         required via m4/cycle-check.m4.
52067         * modules/same: Depend on new same-inode module, rather than
52068         including same-inode.h.
52069         * modules/chdir-safer: New file.
52070
52071         * modules/chown (Depends-on): Add stat-macros.
52072
52073 2006-08-10  Jim Meyering  <jim@meyering.net>
52074
52075         * m4/cycle-check.m4: New file.
52076         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
52077         * m4/dev-ino.m4, m4/same-inode.m4: New files.
52078
52079 2006-08-10  Eric Blake  <ebb9@byu.net>
52080
52081         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
52082         in from original proposal.
52083
52084 2006-08-10  Eric Blake  <ebb9@byu.net>
52085         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52086
52087         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
52088         namespace.
52089
52090 2006-08-10  Bruno Haible  <bruno@clisp.org>
52091
52092         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
52093         as well.
52094
52095 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52096
52097         Sync from coreutils.
52098
52099         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
52100
52101         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
52102         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
52103
52104 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52105
52106         * modules/restrict: Remove; no longer needed now that we assume
52107         Autoconf 2.59 or later.
52108         * MODULES.html.sh: Remove 'restrict'.
52109         * modules/argp (Depends-on): Remove 'restrict'.
52110         * modules/base64 (Depends-on): Likewise.
52111         * modules/gc (Depends-on): Likewise.
52112         * modules/getaddrinfo (Depends-on): Likewise.
52113         * modules/glob (Depends-on): Likewise.
52114         * modules/inet_ntop (Depends-on): Likewise.
52115         * modules/inet_pton (Depends-on): Likewise.
52116         * modules/memxor (Depends-on): Likewise.
52117         * modules/regex (Depends-on): Likewise.
52118         * modules/strtok_r (Depends-on): Likewise.
52119         * modules/time_r (Depends-on): Likewise.
52120
52121 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52122
52123         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
52124         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
52125         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52126         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
52127         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
52128         * m4/memxor.m4 (gl_MEMXOR): Likewise.
52129         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
52130         gl_C_RESTRICT replaced by AC_C_RESTRICT.
52131
52132         Merge from coreutils.
52133         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
52134         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
52135         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52136         * m4/time_r.m4 (gl_TIME_R): Likewise.
52137
52138 2006-08-09  Karl Berry  <karl@gnu.org>
52139
52140         * config/srclist.txt: no more gettext-tools, per Bruno.
52141
52142 2006-08-08  Eric Blake  <ebb9@byu.net>
52143
52144         * modules/verror: New module.
52145         * MODULES.html.sh: Document it.
52146
52147 2006-08-08  Eric Blake  <ebb9@byu.net>
52148
52149         * lib/verror.h, lib/verror.c: New files.
52150
52151 2006-08-08  Eric Blake  <ebb9@byu.net>
52152
52153         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
52154         verror_at_line output complies with GNU Coding Standards even when
52155         file is NULL.
52156
52157 2006-08-07  Bruno Haible  <bruno@clisp.org>
52158
52159         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
52160         versions of AIX.
52161         Reported by Ralf Wildenhues.
52162
52163 2006-08-07  Bruno Haible  <bruno@clisp.org>
52164
52165         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
52166         in an AC_DEFUN. Needed so that the autoconf snippets can use
52167         AC_REQUIRE.
52168
52169 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52170
52171         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52172         Initialize pkgdata_DATA.
52173         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
52174         overriding it.
52175
52176 2006-08-06  Eric Blake  <ebb9@byu.net>
52177
52178         * lib/error.h: Fold in some upstream changes from glibc.
52179         * lib/error.c: Likewise.
52180
52181 2006-08-04  Bruno Haible  <bruno@clisp.org>
52182
52183         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52184         Make the mostlyclean-local rule depend on mostlyclean-generic.
52185         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
52186
52187 2006-07-31  Bruno Haible  <bruno@clisp.org>
52188
52189         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
52190         <stdlib.h>, <string.h>.
52191
52192 2006-07-30  Bruno Haible  <bruno@clisp.org>
52193
52194         * modules/readlink (License): Change to LGPL.
52195
52196 2006-07-30  Bruno Haible  <bruno@clisp.org>
52197
52198         * modules/javaversion (Makefile.am): Distribute javaversion.java and
52199         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
52200         set PKGDATADIR to point to it.
52201
52202 2006-07-30  Bruno Haible  <bruno@clisp.org>
52203
52204         * modules/csharpexec (configure.ac): Comment out macro invocation.
52205         * modules/javaexec (configure.ac): Likewise.
52206         * modules/javacomp-script (configure.ac): Likewise.
52207
52208         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
52209
52210 2006-07-30  Bruno Haible  <bruno@clisp.org>
52211
52212         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
52213         linked-list.
52214
52215 2006-07-30  Bruno Haible  <bruno@clisp.org>
52216
52217         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
52218
52219 2006-07-30  Bruno Haible  <bruno@clisp.org>
52220
52221         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52222         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
52223         get removed.
52224
52225 2006-07-29  Bruno Haible  <bruno@clisp.org>
52226
52227         Make it possible for gnulib-tool to work with locally modified or
52228         augmented gnulib repositories.
52229         * gnulib-tool (func_usage): Document --local-dir option.
52230         (local_gnulib_dir): New variable.
52231         Handle --local-dir option.
52232         (func_lookup_file): New function.
52233         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
52234         (func_get_description, func_get_filelist, func_get_description,
52235         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
52236         func_get_automake_snippet, func_get_include_directive,
52237         func_get_license, func_get_maintainer): Use func_lookup_file.
52238         (func_import, func_create_testdir): Use func_lookup_file.
52239
52240 2006-07-29  Bruno Haible  <bruno@clisp.org>
52241
52242         * modules/setenv (Depends-on): Add unistd.
52243
52244 2006-07-29  Bruno Haible  <bruno@clisp.org>
52245
52246         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
52247
52248 2006-07-29  Bruno Haible  <bruno@clisp.org>
52249
52250         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
52251
52252 2006-07-29  Bruno Haible  <bruno@clisp.org>
52253
52254         * gnulib-tool (import, update): If there is no Makefile.am, look at
52255         aclocal.m4, instead of bailing out.
52256
52257 2006-07-29  Bruno Haible  <bruno@clisp.org>
52258
52259         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
52260         Categorize the options by when they are useful.
52261
52262 2006-07-29  Bruno Haible  <bruno@clisp.org>
52263
52264         * gnulib-tool (func_usage): Document option --no-libtool.
52265         Handle option --no-libtool.
52266         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
52267         for changed semantics of $libtool variable.
52268         (func_import): Likewise. If libtool is not used, show this through
52269         an option --no-libtool.
52270         (func_create_testdir): Update.
52271
52272 2006-07-29  Bruno Haible  <bruno@clisp.org>
52273
52274         * gnulib-tool (func_import): Extend error message about missing
52275         --doc-base.
52276
52277 2006-07-29  Bruno Haible  <bruno@clisp.org>
52278
52279         * gnulib-tool (func_import): Don't create the $docbase directory if
52280         there is no file to store there.
52281
52282 2006-07-29  Bruno Haible  <bruno@clisp.org>
52283
52284         * gnulib-tool (autoconf_minversion): If a --dir option is given and
52285         relevant, look for configure.ac there, not in the current directory.
52286         Also use a simple search for AC_PREREQ, not "autoconf --trace".
52287
52288 2006-07-29  Bruno Haible  <bruno@clisp.org>
52289
52290         * gnulib-tool (SORT): New variable.
52291         (func_usage): Undocument --assume-autoconf option.
52292         Remove --assume-autoconf option handling.
52293         (autoconf_minversion): Determine from the contents of configure.ac.
52294         (func_import): Remove autoconf_minversion handling.
52295         Suggested by Eric Blake.
52296
52297 2006-07-29  Bruno Haible  <bruno@clisp.org>
52298
52299         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
52300
52301 2006-07-29  Bruno Haible  <bruno@clisp.org>
52302
52303         * config/srclist.txt (*setenv.[ch]): Remove rules.
52304
52305 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52306
52307         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
52308
52309 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52310
52311         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
52312         arpa/inet.h.
52313
52314 2006-07-28  Simon Josefsson  <jas@extundo.com>
52315
52316         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
52317         * modules/inet_pton (Depends-on): Likewise.
52318
52319 2006-07-28  Simon Josefsson  <jas@extundo.com>
52320
52321         * m4/netinet_in_h.m4: New file.
52322
52323 2006-07-28  Simon Josefsson  <jas@extundo.com>
52324
52325         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
52326         #include's.
52327
52328 2006-07-28  Simon Josefsson  <jas@extundo.com>
52329
52330         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
52331         #include's.
52332
52333 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
52334
52335         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
52336         setgid on directories only if they set these bits.
52337         * lib/modechange.h: Remove obsolete comment about masks.
52338
52339 2006-07-28  Eric Blake  <ebb9@byu.net>
52340
52341         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
52342         macro expansion.
52343
52344 2006-07-28  Bruno Haible  <bruno@clisp.org>
52345
52346         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
52347
52348 2006-07-28  Bruno Haible  <bruno@clisp.org>
52349
52350         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
52351
52352 2006-07-28  Bruno Haible  <bruno@clisp.org>
52353
52354         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52355         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52356         Define fallbacks.
52357         Avoids link error on FreeBSD 4.x.
52358         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52359
52360         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
52361         encoding.
52362         * lib/mbswidth.c (iswcntrl): Likewise.
52363
52364 2006-07-27  Bruno Haible  <bruno@clisp.org>
52365
52366         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
52367         test.
52368
52369 2006-07-27  Bruno Haible  <bruno@clisp.org>
52370
52371         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
52372         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
52373         defined.
52374
52375 2006-07-26  Eric Blake  <ebb9@byu.net>
52376
52377         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
52378
52379 2006-07-26  Eric Blake  <ebb9@byu.net>
52380
52381         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
52382         like mingw that lack mkstemp.
52383         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
52384         avoid compilation warning on mingw.
52385
52386 2006-07-26  Bruno Haible  <bruno@clisp.org>
52387
52388         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
52389         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
52390         INT_FAST*_MIN, INTPTR_MIN.
52391
52392 2006-07-25  Bruno Haible  <bruno@clisp.org>
52393
52394         * modules/version-etc (Depends-on): Add stdarg.
52395
52396 2006-07-25  Bruno Haible  <bruno@clisp.org>
52397
52398         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
52399         complex commands.
52400
52401 2006-07-25  Bruno Haible  <bruno@clisp.org>
52402
52403         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
52404         defined in <stdarg.h> or config.h.
52405
52406 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52407
52408         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
52409         (gl_STDIO_SAFER): Remove.
52410
52411 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52412
52413         * MODULES.html.sh (File stream based Input/Output):
52414         Add fopen-safer, tmpfile-safer; remove stdio-safer.
52415         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
52416         * modules/fopen-safer, modules/tmpfile-safer: New files.
52417         * modules/stdio-safer: Remove.
52418
52419 2006-07-24  Bruno Haible  <bruno@clisp.org>
52420
52421         * modules/tmpdir: New file.
52422         * MODULES.html.sh (File system functions): Add it.
52423
52424 2006-07-24  Bruno Haible  <bruno@clisp.org>
52425
52426         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
52427         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
52428
52429 2006-07-24  Bruno Haible  <bruno@clisp.org>
52430
52431         * modules/clean-temp: New file.
52432
52433 2006-07-24  Bruno Haible  <bruno@clisp.org>
52434
52435         * m4/tmpdir.m4: New file, from GNU gettext.
52436
52437 2006-07-24  Bruno Haible  <bruno@clisp.org>
52438
52439         * lib/tmpdir.h: New file, from GNU gettext.
52440         * lib/tmpdir.c: New file, from GNU gettext.
52441
52442 2006-07-24  Bruno Haible  <bruno@clisp.org>
52443
52444         * lib/clean-temp.h: New file, from GNU gettext.
52445         * lib/clean-temp.c: New file, from GNU gettext.
52446
52447 2006-07-23  Eric Blake  <ebb9@byu.net>
52448
52449         * modules/stdio-safer (Files): Add tmpfile-safer.c.
52450         (Depends-on): Add binary-io.
52451
52452 2006-07-23  Eric Blake  <ebb9@byu.net>
52453
52454         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
52455
52456 2006-07-23  Eric Blake  <ebb9@byu.net>
52457
52458         * lib/tmpfile-safer.c: New file.
52459         * lib/stdio-safer.h (fopen_safer): Add prototype.
52460         * lib/stdio--.h (tmpfile): Make safer.
52461
52462 2006-07-23  Bruno Haible  <bruno@clisp.org>
52463
52464         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
52465         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
52466         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
52467         gl_linked_remove_at): Use it.
52468
52469 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52470         and Simon Josefsson <jas@extundo.com>
52471
52472         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
52473
52474         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
52475
52476 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52477
52478         * modules/close-stream: New file.
52479         * modules/closeout (Description): Make it clear that it exits
52480         with a diagnostic on error.
52481         (Depends-on): Add close-stream.  Remove fpending, stdbool.
52482         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
52483
52484 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52485
52486         * m4/close-stream.m4: New file.
52487
52488 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52489
52490         * lib/close-stream.c, lib/close-stream.h: New files.
52491
52492 2006-07-22  Bruno Haible  <bruno@clisp.org>
52493
52494         Merge from GNU gettext 0.15.
52495
52496         2006-05-01  Bruno Haible  <bruno@clisp.org>
52497
52498                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
52499
52500         2006-07-22  Bruno Haible  <bruno@clisp.org>
52501
52502                 * modules/javaversion: New file.
52503                 * MODULES.html.sh (Java): Add javaversion.
52504
52505         2006-03-12  Bruno Haible  <bruno@clisp.org>
52506
52507                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
52508
52509         2005-12-04  Bruno Haible  <bruno@clisp.org>
52510
52511                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
52512                 (untested).
52513
52514         2006-06-21  Bruno Haible  <bruno@clisp.org>
52515
52516                 Avoid warnings from recent versions of mcs.
52517                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
52518                 -o, -L, -r any more. Use options documented since mcs-1.0
52519                 instead. Similarly for -g.
52520
52521         2005-12-04  Bruno Haible  <bruno@clisp.org>
52522
52523                 * build-aux/csharpcomp.sh.in: Suffix for resources is
52524                 .resources, not .resource.
52525
52526         2005-07-09  Bruno Haible  <bruno@clisp.org>
52527
52528                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
52529                 add a .dll suffix.
52530                 Reported by Mark Junker <mjscod@gmx.de>.
52531
52532         2006-07-22  Bruno Haible  <bruno@clisp.org>
52533
52534                 * modules/gettext: Upgrade to gettext-0.15.
52535                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
52536                 m4/visibility.m4.
52537                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
52538
52539 2006-07-22  Bruno Haible  <bruno@clisp.org>
52540
52541         Merge from GNU gettext 0.15.
52542
52543         2006-03-25  Bruno Haible  <bruno@clisp.org>
52544
52545                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
52546
52547         2006-07-21  Bruno Haible  <bruno@clisp.org>
52548
52549                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
52550                 "1.1".
52551
52552         2006-05-09  Bruno Haible  <bruno@clisp.org>
52553
52554                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
52555                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
52556                 for the conftestver execution.
52557
52558         2006-05-01  Bruno Haible  <bruno@clisp.org>
52559
52560                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
52561                 optional target-version argument. Verify that the compiler
52562                 groks source of the specified source-version, or add -source
52563                 option as necessary. Verify that the compiler produces
52564                 bytecode in the specified target-version, or add -target and
52565                 -source options as necessary. Make the result of the test
52566                 available as variable CONF_JAVAC. Also log error output in
52567                 config.log.
52568
52569         2006-03-11  Bruno Haible  <bruno@clisp.org>
52570
52571                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
52572
52573         2006-05-09  Bruno Haible  <bruno@clisp.org>
52574
52575                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
52576                 CLASSPATH_SEPARATOR to a semicolon.
52577
52578         2006-03-12  Bruno Haible  <bruno@clisp.org>
52579
52580                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
52581                 available as variable CONF_JAVA, for subsequent autoconf
52582                 tests. Also log error output in config.log.
52583
52584         2006-07-19  Bruno Haible  <bruno@clisp.org>
52585
52586                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
52587                 that getline works on glibc2 systems. Needed to avoid trouble
52588                 in relocatable.c.
52589                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
52590
52591         2005-12-04  Bruno Haible  <bruno@clisp.org>
52592
52593                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
52594                 launcher (untested).
52595
52596         2005-12-04  Bruno Haible  <bruno@clisp.org>
52597
52598                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
52599
52600         2006-07-22  Bruno Haible  <bruno@clisp.org>
52601
52602                 * gettext.m4: Update from GNU gettext-0.15.
52603                 * nls.m4: Likewise.
52604                 * po.m4: Likewise.
52605                 * inttypes-pri.m4: Likewise.
52606                 * inttypes-h.m4: Renamed from inttypes.m4.
52607                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
52608
52609 2006-07-22  Bruno Haible  <bruno@clisp.org>
52610
52611         Merge from GNU gettext 0.15.
52612
52613         2005-07-05  Bruno Haible  <bruno@clisp.org>
52614
52615                 * printf-args.c (printf_fetchargs): Work around broken
52616                 definition of wint_t on mingw.
52617
52618         2005-02-12  Bruno Haible  <bruno@clisp.org>
52619
52620                 * xallocsa.h: Add extern "C" for C++.
52621
52622         2006-05-17  Bruno Haible  <bruno@clisp.org>
52623
52624                 Cygwin portability.
52625                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
52626
52627         2006-04-30  Bruno Haible  <bruno@clisp.org>
52628
52629                 * progreloc.c: Include <mach-o/dyld.h> if available.
52630                 (find_executable): Use _NSGetExecutablePath when possible.
52631
52632         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52633
52634                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
52635                 function.
52636
52637         2005-12-29  Bruno Haible  <bruno@clisp.org>
52638
52639                 * progreloc.c (set_program_name_and_installdir): Fix
52640                 compilation error.
52641
52642         2005-12-04  Bruno Haible  <bruno@clisp.org>
52643
52644                 Cygwin portability.
52645                 * progreloc.c: Include <windows.h> also on Cygwin.
52646                 (find_executable): Add support for Cygwin.
52647                 (set_program_name_and_installdir): Handle also platforms with
52648                 nonempty EXEEXT.
52649
52650         2006-07-11  Bruno Haible  <bruno@clisp.org>
52651
52652                 * javacomp.c: Fix a comment.
52653                 Reported by Jim Meyering.
52654
52655         2006-04-30  Bruno Haible  <bruno@clisp.org>
52656
52657                 * javacomp.h (compile_java_class): Add source_version,
52658                 target_version arguments.
52659                 * javacomp.c: Rewritten to choose only a compiler that
52660                 respects the specified source_version and target_version.
52661
52662         2006-06-27  Bruno Haible  <bruno@clisp.org>
52663
52664                 Assume correct S_ISDIR macro.
52665                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
52666
52667         2006-07-22  Bruno Haible  <bruno@clisp.org>
52668
52669                 * javaversion.h: New file, from GNU gettext.
52670                 * javaversion.c: New file, from GNU gettext.
52671                 * javaversion.java: New file, from GNU gettext.
52672                 * javaversion.class: New file, from GNU gettext.
52673
52674         2006-05-17  Bruno Haible  <bruno@clisp.org>
52675
52676                 Cygwin portability.
52677                 * javaexec.c (execute_java_class): Test for jview program
52678                 also on Cygwin.
52679
52680         2006-04-09  Bruno Haible  <bruno@clisp.org>
52681
52682                 * fatal-signal.c: Don't include string.h.
52683                 (at_fatal_signal): Use a copying loop instead of memcpy.
52684
52685         2005-12-04  Bruno Haible  <bruno@clisp.org>
52686
52687                 * csharpexec.c: Add support for 'clix' launcher (untested).
52688                 (execute_csharp_using_sscli): New function.
52689                 (execute_csharp_program): Call it.
52690
52691         2006-06-21  Bruno Haible  <bruno@clisp.org>
52692
52693                 Avoid warnings from recent versions of mcs.
52694                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
52695                 -o, -L, -r any more. Use options documented since mcs-1.0
52696                 instead. Similarly for -g.
52697
52698         2005-07-09  Bruno Haible  <bruno@clisp.org>
52699
52700                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
52701                 add a .dll suffix.
52702                 Reported by Mark Junker <mjscod@gmx.de>.
52703
52704         2006-06-17  Bruno Haible  <bruno@clisp.org>
52705
52706                 * config.charset: Update for NetBSD 3.0.
52707
52708         2006-05-17  Bruno Haible  <bruno@clisp.org>
52709
52710                 Cygwin portability.
52711                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
52712
52713         2006-05-16  Bruno Haible  <bruno@clisp.org>
52714
52715                 * localcharset.c [CYGWIN]: Include <windows.h>.
52716                 (get_charset_aliases): For Cygwin, return the same CPxxx
52717                 aliases list as under WIN32.
52718                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
52719                 the environment variables. Fall back to GetACP().
52720
52721         2006-04-05  Bruno Haible  <bruno@clisp.org>
52722
52723                 * config.charset: Update Juan Manuel Guerrero's address.
52724
52725         2005-02-12  Bruno Haible  <bruno@clisp.org>
52726
52727                 * allocsa.h: Add extern "C" for C++.
52728
52729         2005-02-10  Bruno Haible  <bruno@clisp.org>
52730
52731                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
52732                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
52733
52734         2006-07-22  Bruno Haible  <bruno@clisp.org>
52735
52736                 * gettext.h: Update to GNU gettext-0.15.
52737
52738 2006-07-22  Bruno Haible  <bruno@clisp.org>
52739
52740         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
52741         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
52742         lib-prefix.m4, longdouble.m4, ssize_t.m4.
52743
52744 2006-07-21  Eric Blake  <ebb9@byu.net>
52745
52746         * modules/stdlib-safer: New file.
52747         * MODULES.html.sh (File stream based Input/Output): Add
52748         stdlib-safer.
52749
52750 2006-07-21  Eric Blake  <ebb9@byu.net>
52751
52752         * lib/stdlib-safer.h: New file from coreutils, required by
52753         stdlib--.h.
52754
52755 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
52756
52757         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
52758
52759 2006-07-20  Bruno Haible  <bruno@clisp.org>
52760
52761         * gnulib-tool: Recognize new option --assume-autoconf.
52762         (autoconf_minversion): New variable.
52763         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
52764
52765 2006-07-20  Bruno Haible  <bruno@clisp.org>
52766
52767         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
52768
52769 2006-07-19  Derek R. Price  <derek@ximbiot.com>
52770
52771         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
52772         Reindent and repaginate.
52773
52774 2006-07-19  Derek Price  <derek@ximbiot.com>
52775
52776         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
52777         Correct grammar.
52778
52779 2006-07-17  Bruno Haible  <bruno@clisp.org>
52780
52781         * modules/list: New file.
52782         * modules/array-list: New file.
52783         * modules/carray-list, modules/carray-list-tests: New files.
52784         * modules/linked-list, modules/linked-list-tests: New files.
52785         * modules/avltree-list, modules/avltree-list-tests: New files.
52786         * modules/rbtree-list, modules/rbtree-list-tests: New files.
52787         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
52788         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
52789         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
52790         * modules/oset: New file.
52791         * modules/array-oset: New file.
52792         * modules/avltree-oset, modules/avltree-oset-tests: New files.
52793         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
52794         * tests/test-carray_list.c: New file.
52795         * tests/test-linked_list.c: New file.
52796         * tests/test-avltree_list.c: New file.
52797         * tests/test-rbtree_list.c: New file.
52798         * tests/test-linkedhash_list.c: New file.
52799         * tests/test-avltreehash_list.c: New file.
52800         * tests/test-rbtreehash_list.c: New file.
52801         * tests/test-avltree_oset.c: New file.
52802         * tests/test-rbtree_oset.c: New file.
52803         * MODULES.html.sh (Container data structures): New section.
52804
52805 2006-07-17  Bruno Haible  <bruno@clisp.org>
52806
52807         * m4/gl_list.m4: New file.
52808
52809 2006-07-17  Bruno Haible  <bruno@clisp.org>
52810
52811         * lib/gl_list.h: New file.
52812         * lib/gl_list.c: New file.
52813         * lib/gl_array_list.h: New file.
52814         * lib/gl_array_list.c: New file.
52815         * lib/gl_carray_list.h: New file.
52816         * lib/gl_carray_list.c: New file.
52817         * lib/gl_linked_list.h: New file.
52818         * lib/gl_linked_list.c: New file.
52819         * lib/gl_anylinked_list1.h: New file.
52820         * lib/gl_anylinked_list2.h: New file.
52821         * lib/gl_avltree_list.h: New file.
52822         * lib/gl_avltree_list.c: New file.
52823         * lib/gl_anyavltree_list1.h: New file.
52824         * lib/gl_anyavltree_list2.h: New file.
52825         * lib/gl_rbtree_list.h: New file.
52826         * lib/gl_rbtree_list.c: New file.
52827         * lib/gl_anyrbtree_list1.h: New file.
52828         * lib/gl_anyrbtree_list2.h: New file.
52829         * lib/gl_anytree_list1.h: New file.
52830         * lib/gl_anytree_list2.h: New file.
52831         * lib/gl_linkedhash_list.h: New file.
52832         * lib/gl_linkedhash_list.c: New file.
52833         * lib/gl_anyhash_list1.h: New file.
52834         * lib/gl_anyhash_list2.h: New file.
52835         * lib/gl_avltreehash_list.h: New file.
52836         * lib/gl_avltreehash_list.c: New file.
52837         * lib/gl_rbtreehash_list.h: New file.
52838         * lib/gl_rbtreehash_list.c: New file.
52839         * lib/gl_anytreehash_list1.h: New file.
52840         * lib/gl_anytreehash_list2.h: New file.
52841
52842         * lib/gl_oset.h: New file.
52843         * lib/gl_oset.c: New file.
52844         * lib/gl_array_oset.h: New file.
52845         * lib/gl_array_oset.c: New file.
52846         * lib/gl_avltree_oset.h: New file.
52847         * lib/gl_avltree_oset.c: New file.
52848         * lib/gl_rbtree_oset.h: New file.
52849         * lib/gl_rbtree_oset.c: New file.
52850         * lib/gl_anytree_oset.h: New file.
52851
52852 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52853
52854         * m4/mkancesdirs.m4: New file.
52855         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
52856         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
52857         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
52858         it.
52859
52860 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52861
52862         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
52863         * lib/mkancesdirs.h: New files.
52864         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
52865         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
52866         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
52867         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
52868         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
52869         callers changed.  Revamp internals significantly, by not
52870         attempting to create directories that are temporarily more
52871         permissive than the final results.  Do not attempt to use
52872         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
52873         This removes some race conditions, fixes some bugs, and simplifies
52874         things.  Use new dirchownmod function to do owner and mode changes.
52875         * lib/mkdir-p.h: Likewise.
52876         * lib/modechange.c (octal_to_mode): New function.
52877         (struct mode_change): New member mentioned.
52878         (make_node_op_equals): New arg mentioned.  All callers changed.
52879         (mode_compile): Keep track of which mode bits the user has explicitly
52880         mentioned.
52881         (mode_adjust): New arg DIR, so that we implement the X op correctly.
52882         New arg PMODE_BITS, to keep track of which mode bits the user
52883         mentioned; it treats S_ISUID and S_ISGID speciall.
52884         All callers changed.
52885         * lib/modechange.h: Likewise.
52886
52887 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52888
52889         * MODULES.html.sh: Add mkancestors.
52890         * modules/mkancesdirs: New module.
52891         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
52892         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
52893         The chdir-safer and afs files are now orphans; I'll remove them
52894         unless someone speaks up.
52895         Add lib/dirchownmod.c, lib/dirchownmod.h.
52896         (Depends-on): Remove alloca, chown, save-cwd, dirname.
52897         Add lchown, mkancesdirs.
52898         (Maintainer): Add self.
52899
52900 2006-07-15  Karl Berry  <karl@gnu.org>
52901
52902         * gnulib-tool: help message wording/arrangement.
52903
52904 2006-07-14  Simon Josefsson  <jas@extundo.com>
52905
52906         * doc/gnulib.texi (Libtool and Windows): New section.
52907
52908 2006-07-12  Simon Josefsson  <jas@extundo.com>
52909
52910         * modules/gendocs (License): Fix license, approved by Karl.
52911
52912 2006-07-12  Eric Blake  <ebb9@byu.net>
52913
52914         * MODULES.html.sh: Add gendocs.
52915
52916 2006-07-11  Eric Blake  <ebb9@byu.net>
52917
52918         * modules/fdl: New module, to install doc/fdl.texi.
52919         * MODULES.html.sh: Add new section for documentation modules.
52920         * gnulib-tool: Avoid space-tab.
52921         (--doc-base): New option, to manage files from doc.
52922
52923 2006-07-11  Eric Blake  <ebb9@byu.net>
52924
52925         * m4/absolute-header.m4: Fix comments to match recent change.
52926
52927 2006-07-11  Eric Blake  <ebb9@byu.net>
52928
52929         * gnulib-tool: List --doc-base before --tests-base.
52930
52931 2006-07-11  Derek R. Price  <derek@ximbiot.com>
52932
52933         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
52934
52935 2006-07-11  Bruno Haible  <bruno@clisp.org>
52936
52937         * README: Mention where to put documentation.
52938
52939 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52940
52941         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
52942
52943 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52944
52945         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
52946         to stdint.m4.
52947
52948 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52949
52950         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
52951         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
52952         "no/such/file/stdint.h" when there is no such file, so that
52953         the resulting C code can be parsed by dodgy compilers.
52954         Problems reported by Bob Proulx.
52955
52956 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52957
52958         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
52959         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52960         macros into the GNU _D_EXACT_NAMLEN.
52961         * lib/savedir.c:  Likewise.
52962         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
52963
52964 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52965         and Paul Eggert  <eggert@cs.ucla.edu>
52966
52967         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
52968         * m4/savedir.m4:
52969         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52970         macros into the GNU _D_EXACT_NAMLEN.
52971
52972 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52973
52974         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
52975         around the absolute name, to work around a problem with the HP-UX
52976         11.23 native C compiler, reported by Bob Proulx.
52977
52978 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52979
52980         * doc/maintain.texi, make-stds.texi: Sync from
52981         <http://savannah.gnu.org/projects/gnustandards>.
52982
52983 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52984
52985         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
52986
52987 2006-07-09  Jim Meyering  <jim@meyering.net>
52988
52989         * m4/glob.m4: Remove a doubled word in a comment.
52990
52991 2006-07-09  Jim Meyering  <jim@meyering.net>
52992
52993         * lib/argp-pv.c: Remove a doubled word in a comment.
52994         * lib/check-version.c (check_version): Likewise.
52995         * lib/javacomp.c (compile_java_class): Likewise.
52996
52997 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52998
52999         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
53000         for the benefit of people using Autoconf 2.60.  If you want to
53001         support older Autoconf versions you can copy m4/onceonly_2_57.m4
53002         (or m4/onceonly.m4, if pre-2.57) manually.
53003
53004 2006-07-08  Jim Meyering  <jim@meyering.net>
53005
53006         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
53007         comment.
53008         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
53009         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
53010         comment.
53011
53012 2006-07-08  Jim Meyering  <jim@meyering.net>
53013
53014         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
53015
53016 2006-07-07  Simon Josefsson  <jas@extundo.com>
53017
53018         * tests/test-crc.c: Change expected crc value, the test vector
53019         were probably computed using the old broken crc.c?
53020
53021 2006-07-06  Simon Josefsson  <jas@extundo.com>
53022
53023         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
53024         now the canonical place for the M4 file).
53025
53026         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
53027         from the sys_socket dependency now.
53028
53029         * modules/inet_pton (Files): Ditto.
53030
53031         * modules/inet_ntop (Files): Ditto.
53032
53033 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53034
53035         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
53036         not gl_PREREQ_GETUSERSHELL.
53037
53038 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53039
53040         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
53041         with only one argument, for Autoconf 2.60.
53042         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
53043         expand to nothing, so add a shell command to avoid syntax error.
53044         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53045
53046 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53047
53048         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
53049
53050 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53051
53052         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
53053         no longer needed.  Check for isblank decl.
53054         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
53055         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
53056         of existence.
53057
53058 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53059
53060         * lib/getloadavg.c: Use __VMS, not VMS.
53061         * lib/getopt.c: Likewise.
53062         * lib/getpagesize.h: Likewise.
53063         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
53064         and probably does not work.
53065
53066 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53067
53068         * lib/.cppi-disable: Add wcwidth.
53069         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
53070         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
53071         (ISGRAPH): Remove.  All uses changed to isgraph.
53072         (FOLD) [!defined _LIBC]: Remove special case.
53073         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
53074         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
53075         HAVE_ISBLANK.
53076         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
53077         case.
53078
53079 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53080
53081         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
53082         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
53083         brackets.  Other minor changes to suppress some compiler
53084         warnings.
53085
53086 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53087         and Paul Eggert  <eggert@cs.ucla.edu>
53088
53089         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
53090         of invoking obsolescent AC_HEADER_DIRENT macro.
53091         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
53092         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
53093         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
53094         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
53095         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
53096         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53097         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
53098         * m4/readdir.m4: Remove; no longer needed.
53099
53100 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53101         and Paul Eggert  <eggert@cs.ucla.edu>
53102
53103         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
53104         Don't worry about this obsolete case any more.
53105         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
53106         directories.
53107         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
53108         worry about this obsolete case any more.
53109         * lib/fts.c: Likewise.
53110         * lib/getcwd.c: Likewise.
53111         * lib/glob.h: Likewise.
53112         * lib/savedir.c: Likewise.
53113
53114 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53115
53116         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
53117         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
53118         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
53119         needed.
53120         All uses removed.
53121         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53122         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53123         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
53124         needed.
53125         * m4/getdate.m4 (gl_GETDATE): Likewise.
53126         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53127         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53128         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53129         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53130         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53131         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53132         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
53133         needed.
53134
53135 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53136
53137         * lib/memcasecmp.c: Include <limits.h>.
53138         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
53139         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
53140         Don't assume isdigit succeeds only on '0' through '9'.
53141
53142 2006-07-05  Eric Blake  <ebb9@byu.net>
53143
53144         * modules/getaddrinfo (Depends-on): Add snprintf.
53145
53146 2006-07-05  Eric Blake  <ebb9@byu.net>
53147
53148         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
53149         to avoid 'header present but could not be compiled' on cygwin.
53150
53151 2006-07-05  Eric Blake  <ebb9@byu.net>
53152
53153         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
53154         missing from netdb.h.
53155         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
53156
53157 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53158
53159         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
53160         no longer needed.
53161         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
53162         * m4/getdate.m4 (gl_GETDATE): Likewise.
53163         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53164         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53165         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53166         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53167         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53168
53169 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53170
53171         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
53172         All uses of is_space replaced by isspace.
53173         * lib/exit.h: Don't talk about STDC_HEADERS.
53174         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
53175         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
53176         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
53177         replaced by isprint etc.
53178         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
53179         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53180         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
53181         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
53182         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
53183         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53184
53185 2006-07-05  Bruno Haible  <bruno@clisp.org>
53186
53187         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
53188         the function exists, before testing against AIX.
53189         Reported by Martin Lambers <marlam@marlam.de>.
53190
53191 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53192
53193         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
53194         From Mark D. Baushke.
53195
53196 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53197
53198         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
53199         to the absolute name, not just one, to bypass Sun C 5.8's
53200         "warning: #include of /usr/include/... may be non-portable".
53201
53202 2006-07-04  Eric Blake  <ebb9@byu.net>
53203
53204         * modules/dirname-tests: New test module.
53205         * tests/test-dirname.c: New file, replacing dirname.c
53206         TEST_DIRNAME section that was recently deleted.
53207
53208 2006-07-04  Bruno Haible  <bruno@clisp.org>
53209
53210         Assume ANSI C header files and <ctype.h> functions.
53211         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
53212         (mbsnwidth): Use isprint, iscntrl instead.
53213
53214 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53215
53216         Merge from coreutils.
53217         * MODULES.html.sh: Add xstrtold.
53218         * modules/xstrtold: New file.
53219         * modules/cycle-check (Files): Add lib/same-inode.h.
53220         * modules/dirname (Files): Add m4/double-slash-root.m4.
53221         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
53222         * modules/mkdir-p (Files): Add lib/same-inode.h.
53223         * modules/same (Files): Add lib/same-inode.h.
53224
53225 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53226
53227         * m4/absolute-header.m4: Renamed from full-header-path.m4.
53228         This is to keep the terminology clean; POSIX talks about
53229         "absolute pathnames", not "full pathnames", but the GNU
53230         Coding Standards say to use "path" for something else;
53231         so use "absolute" to keep both sides happy.
53232         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
53233         Set gl_absolute_header, not gl_full_header_path.
53234         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
53235         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
53236         All uses changed.
53237
53238         Merge from coreutils.
53239
53240         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53241
53242         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
53243         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
53244         want to require the building of c-strtod.o.
53245         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
53246         needs -lm directly.
53247         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
53248
53249         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53250
53251         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
53252         --as-needed option if available.  Problem reported by Albert Chin in
53253         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
53254         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
53255         cc merely issues a bunch of annoying warnings for --as-needed
53256         (this problem was reported by Bob Proulx).  Also, try linking with
53257         -lm to detect a bug in binutils 2.16 (this problem was reported
53258         by Ralf Wildenhues).
53259
53260         2006-06-18  Jim Meyering  <jim@meyering.net>
53261
53262         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
53263         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
53264         macro.
53265         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
53266         also check for glibc-2.4's abort-inducing bug.
53267
53268         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
53269         Low-probability clean-up should be to use rmdir to get rid of
53270         the just-created directory, not unlink.
53271
53272         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
53273         configure fail, and request a bug report to inform us about it.
53274         Add a comment that, barring reports to the contrary, in 2007 we'll
53275         assume ftruncate is universally available.
53276
53277         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53278
53279         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
53280
53281         2006-03-12  Jim Meyering  <jim@meyering.net>
53282
53283         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
53284         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
53285         * m4/same.m4 (gl_SAME): Likewise.
53286         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
53287
53288         2006-03-11  Eric Blake  <ebb9@byu.net>
53289
53290         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
53291         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
53292         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
53293         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
53294
53295 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53296
53297         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
53298         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
53299         reported by Mark D. Baushke, one in
53300         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
53301
53302         Merge from coreutils.
53303
53304         * lib/.cppi-disable: Add stdint_.h.
53305         * lib/.cvsignore: Add stdint.h.
53306
53307         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53308
53309         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
53310         both double and long double versions.
53311         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
53312         * lib/xstrtold.c: New file.
53313         * lib/xstrtod.h (xstrtold): New decl.
53314
53315         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
53316
53317         * lib/filemode.c (setst): Remove.
53318         (strmode): Rewrite to avoid setst.  This makes the code shorter,
53319         (arguably) clearer, and the generated code is a bit smaller on my
53320         Debian GNU/Linux stable x86 host.
53321
53322         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53323
53324         * lib/filemode.c: Include "filemode.h" first, to test the interface.
53325         Assume that filemode.h includes sys/types.h and sys/stat.h.
53326         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
53327         (ftypelet): Reorder to put common cases first, for efficiency.
53328         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
53329         to do 'M'.
53330         (strmode): Renamed from mode_string, and now stores 12 bytes instead
53331         of 10, for compatibility with FreeBSD.  All callers changed.
53332         (filemodestring): Now stores 12 bytes instead of 10, and sets file
53333         types that can't be deduced solely from st_mode.  First arg is now a
53334         const pointer.
53335         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
53336         (strmode): Renamed from mode_string.
53337         (filemodestring): New decl.
53338         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
53339         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
53340         needed.
53341         (S_ISPORT, S_ISWHT): New macros, if not already defined.
53342
53343         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53344
53345         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
53346         fsusage.h now does that.  Include fsusage.h first, to test interface.
53347         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
53348         at most one method (the old code could have generated decls that
53349         didn't conform to C89, not that this was ever exercised).
53350         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
53351
53352         2006-03-19  Jim Meyering  <jim@meyering.net>
53353
53354         Work even in a chroot where d_ino values for entries in "/"
53355         don't match the stat.st_ino values for the same names.
53356         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
53357         number, iterate through all entries again, using lstat instead.
53358         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
53359         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
53360
53361         * lib/getcwd.c (__getcwd): Clarify a comment.
53362         Use memcpy in place of a call to strcpy.
53363
53364         2006-03-12  Jim Meyering  <jim@meyering.net>
53365
53366         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
53367         matches that of the current directory (which we're about to chdir ".."
53368         out of), then save the dev-ino of the parent, instead.
53369
53370         * lib/same-inode.h (SAME_INODE): New file/macro.
53371         * lib/chdir-safer.c (SAME_INODE): Remove definition.
53372         Include "same-inode.h", instead.
53373         * lib/same.c: Likewise.
53374         * lib/cycle-check.h: Include "same-inode.h".
53375         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
53376         * lib/cycle-check.c (SAME_INODE): Remove definition.
53377         * lib/root-dev-ino.h: Include "same-inode.h".
53378
53379         2006-03-11  Eric Blake  <ebb9@byu.net>
53380
53381         * lib/same.c (same_name): s/base_name/last_component/
53382         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
53383         * lib/filenamecat.c (file_name_concat): Likewise.
53384
53385         2006-03-11  Eric Blake  <ebb9@byu.net>,
53386                     Paul Eggert  <eggert@cs.ucla.edu>
53387
53388         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
53389         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
53390         drive prefix.
53391         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
53392         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
53393         (last_component): New method.
53394         * lib/dirname.c (dir_len): Determine when drive letters need a
53395         subsequent slash.  Preserve // when it is special.
53396         (dir_name): Don't append dot when drive letter is absolute.
53397         [TEST_DIRNAME]: Move into a full-blown gnulib test.
53398         * lib/basename.c (base_name): New semantics - malloc the result.
53399         Preserve // when it is special.  Preserve relative files that look
53400         like drive letters.
53401         (base_len): Preserve // when it is special.
53402         (last_component): New method, similar to old base_name semantics.
53403         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
53404         base_name.  Strip redundant slashes from ///.
53405
53406 2006-07-03  Jim Meyering  <jim@meyering.net>
53407
53408         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
53409         macro is used before the first cycle_check call.
53410
53411 2006-07-03  Eric Blake  <ebb9@byu.net>
53412
53413         * modules/dirname (Depends-on): Add xstrndup.
53414
53415 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53416
53417         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
53418         test cases, so that config.log is a bit easier to follow.
53419
53420 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53421
53422         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
53423         both are 64 bits, since this seems to be the tradition, and this
53424         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
53425         we ever run into a host that prefers long long to long in this
53426         case, we'll need another configure-time test.  Problem reported by
53427         Jim Meyering.
53428
53429 2006-07-02  Eric Blake  <ebb9@byu.net>
53430
53431         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
53432
53433 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53434
53435         * modules/inttypes (Depends-on): No longer depends on stdint.
53436         * modules/stdint (Description): Say more about assumptions.
53437         Say that the fast types might differ.  Say macros are used.
53438         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
53439         (Makefile.am): Revise list of substituted symbols to match
53440         new stdint.m4.
53441         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
53442         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
53443         * tests/test-stdint.c (verify_same_types)
53444         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
53445         the code conforms to C99/C89.
53446         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
53447         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
53448
53449 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53450
53451         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
53452         but fix a bug, by requiring at least 64 bits.
53453         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53454         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
53455         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
53456         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
53457
53458         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
53459         changes.  Make 2.59 a prerequisite.  Check and substitute for
53460         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
53461         inttypes.h.  Do not use special include files; just use the
53462         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
53463         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
53464         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
53465         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
53466         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
53467         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
53468         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
53469         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
53470         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
53471         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
53472         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
53473         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
53474         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
53475         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
53476         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
53477         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
53478         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
53479         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
53480         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
53481         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
53482         WINT_MAX.  Check for C99 conformance more strictly, by detecting
53483         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
53484         not check for things that C99 does not require, e.g., int8_t.  If
53485         a test isn't needed unless <stdint.h> isn't working, and is
53486         unlikely to be needed for any other reason, then don't do it
53487         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
53488         size_t, since we assume C89 freestanding at least.  Do not check
53489         for sig_atomic_t, wchar_t, or wint_t, since the code now does
53490         the right thing even if the types are not defined.  Instead use:
53491         (gl_STDINT_TYPE_PROPERTIES): New macro.
53492         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
53493         testing whether <sys/types.h> clashes, as Autoconf does this for
53494         us now.  All uses removed.
53495         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
53496         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
53497         (gl_CHECK_TYPE_SAME):
53498         Remove; no longer needed.
53499         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
53500         exists, since we'll return 0 anyway in that case.
53501         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
53502
53503 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53504
53505         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
53506         possible collision with system files.
53507         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
53508         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
53509         WCHAR_MIN and WCHAR_MAX in this case.
53510         (<stddef.h>): Do not include; no longer needed.
53511         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
53512         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
53513         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
53514         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
53515         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
53516         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
53517         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
53518         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
53519         !defined(__c99))]: Include in this case too, since it's harmless
53520         now.
53521         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
53522         dangerous to do so.
53523         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
53524         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
53525         (_STDINT_MIN, _STDINT_MAX): New macros.
53526         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
53527         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
53528         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
53529         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
53530         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
53531         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
53532         macros, not typedefs; this simplifies things quite a bit.
53533         Use long int for all types narrower than int64_t.
53534         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
53535         Define in terms of long long int or int64_t or long int,
53536         not int64_t or int32_t.  This saves some compile-time testing.
53537         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
53538         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
53539         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
53540         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
53541         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
53542         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
53543         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
53544         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
53545         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
53546         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
53547         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53548         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53549         undef any previous version and define our own version, for
53550         simplicity and consistency with the new macros for types.
53551         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
53552         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
53553         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
53554         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
53555         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
53556         @WINT_T_SUFFIX@ to keep things simple here.
53557         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
53558         Simplify by assuming typical 8/16/32/64 host, since we're
53559         already doing that elsewhere anyway.
53560         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
53561         and assume long long int is 64 bits if available.  This
53562         speeds up 'configure'.
53563
53564 2006-07-01  Eric Blake  <ebb9@byu.net>
53565
53566         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
53567         Reported by Andreas Buening.
53568
53569 2006-07-01  Eric Blake  <ebb9@byu.net>
53570
53571         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
53572
53573 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53574
53575         * lib/getaddrinfo.c: fixed typo
53576
53577 2006-06-29  Jim Meyering  <jim@meyering.net>
53578
53579         * modules/strftime (Maintainer): Add my name, since with the
53580         FPRINTFTIME changes strftime.c has forked from glibc.
53581
53582 2006-06-29  Eric Blake  <ebb9@byu.net>
53583
53584         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
53585
53586 2006-06-29  Eric Blake  <ebb9@byu.net>
53587
53588         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
53589
53590 2006-06-29  Eric Blake  <ebb9@byu.net>
53591
53592         * lib/stat_.h: New file.
53593
53594 2006-06-29  Eric Blake  <ebb9@byu.net>
53595
53596         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
53597         unused static function.
53598
53599 2006-06-29  Eric Blake  <ebb9@byu.net>
53600
53601         * doc/functions.texi (Function Portability): Document missing lstat
53602         on mingw.
53603
53604 2006-06-29  Eric Blake  <ebb9@byu.net>
53605
53606         * MODULES.html.sh: Add sys_stat.
53607         * modules/sys_stat: New module.
53608         * modules/mkstemp (Depends-on): Add sys_stat.
53609
53610 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53611
53612         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
53613
53614 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53615
53616         * m4/c-bs-a.m4: Removed.
53617
53618 2006-06-29  Derek R. Price  <derek@ximbiot.com>
53619
53620         * lib/strftime.c: Assume strftime() exists.
53621
53622 2006-06-29  Derek Price  <derek@ximbiot.com>
53623
53624         * modules/c-bs-a: Removed - \a is C89.
53625         * MODULES.html.sh: Remove c-bs-a.
53626
53627 2006-06-29  Bruno Haible  <bruno@clisp.org>
53628
53629         * modules/wcwidth (License): Change to LGPL.
53630
53631 2006-06-28  Simon Josefsson  <jas@extundo.com>
53632
53633         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
53634         on _WIN32.
53635
53636         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
53637         getnameinfo.
53638
53639 2006-06-28  Simon Josefsson  <jas@extundo.com>
53640
53641         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
53642
53643 2006-06-28  Simon Josefsson  <jas@extundo.com>
53644
53645         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
53646         functions there.  It will succeed on Windows XP, but on Windows
53647         2000 and (presumably) earlier, it will fail, and use the internal
53648         re-implementation.
53649         (use_win32_p): New function.
53650         (getaddrinfo): Use strtoul on servname, to support numeric ports.
53651         Support AI_NUMERICSERV to disable getservbyname.
53652         (getnameinfo): New function, only supports
53653         NI_NUMERICHOST|NI_NUMERICSERV for now.
53654
53655         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
53656         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
53657         getnameinfo.
53658
53659 2006-06-28  Eric Blake  <ebb9@byu.net>
53660
53661         * modules/wcwidth: New file.
53662         * modules/mbchar (Depends-on): Add wcwidth.
53663         * modules/mbswidth (Depends-on): Add wcwidth.
53664         * MODULES.html.sh: Add wcwidth.
53665
53666 2006-06-28  Eric Blake  <ebb9@byu.net>
53667
53668         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
53669         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
53670
53671 2006-06-28  Eric Blake  <ebb9@byu.net>
53672
53673         * lib/xvasprintf.h: Fix comments.
53674
53675 2006-06-28  Eric Blake  <ebb9@byu.net>
53676
53677         * lib/mbchar.h (wcwidth): Include wcwidth.h.
53678         * lib/mbswidth.c (wcwidth): Move from here...
53679         * lib/wcwidth.h: ...to this new file.
53680
53681 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53682
53683         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
53684
53685         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
53686         it's obsolete.
53687         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
53688
53689 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53690
53691         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
53692         Autoconf 2.60 says this stuff was obsolete.
53693
53694 2006-06-28  Bruno Haible  <bruno@clisp.org>
53695
53696         * modules/wcwidth (Files): Add m4/wchar_t.m4.
53697
53698 2006-06-28  Bruno Haible  <bruno@clisp.org>
53699
53700         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
53701         gt_TYPE_WCHAR_T.
53702
53703 2006-06-28  Bruno Haible  <bruno@clisp.org>
53704
53705         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
53706         declaration for wcwidth.
53707         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
53708
53709 2006-06-28  Bruno Haible  <bruno@clisp.org>
53710
53711         * lib/mkdtemp.c [MINGW]: Include <io.h>.
53712         (mkdir): Define using _mkdir.
53713
53714 2006-06-28  Bruno Haible  <bruno@clisp.org>
53715
53716         * lib/getaddrinfo.h: Fix POSIX URL.
53717         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
53718         _WIN32.
53719         (use_win32_p): Make static.
53720         (getaddrinfo): Reject service name if it is empty or does not consist
53721         solely of decimal digits, or if its value is > 65535.
53722         (getnameinfo): Remove useless casts.
53723
53724 2006-06-27  Simon Josefsson  <jas@extundo.com>
53725
53726         * modules/sys_select: New file, suggested by Bruno Haible, Paul
53727         Eggert and Martin Lambers.
53728
53729 2006-06-27  Simon Josefsson  <jas@extundo.com>
53730
53731         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
53732         Eggert and Martin Lambers.
53733
53734 2006-06-27  Bruno Haible  <bruno@clisp.org>
53735
53736         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
53737         result to 0, not to empty.
53738         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
53739
53740 2006-06-27  Bruno Haible  <bruno@clisp.org>
53741
53742         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
53743
53744 2006-06-26  Simon Josefsson  <jas@extundo.com>
53745
53746         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
53747         present.
53748
53749 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
53750
53751         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
53752         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
53753         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
53754
53755 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
53756
53757         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
53758
53759 2006-06-26  Bruno Haible  <bruno@clisp.org>
53760
53761         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
53762
53763 2006-06-26  Bruno Haible  <bruno@clisp.org>
53764
53765         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
53766
53767 2006-06-26  Bruno Haible  <bruno@clisp.org>
53768
53769         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
53770         SGI C compiler in pre-C99 mode.
53771         Suggested by Mark D. Baushke and Larry Jones.
53772
53773 2006-06-26  Bruno Haible  <bruno@clisp.org>
53774
53775         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
53776         WCHAR_MAX.
53777         Reported by Mark D. Baushke and Larry Jones.
53778
53779 2006-06-26  Bruno Haible  <bruno@clisp.org>
53780
53781         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
53782         in pre-C99 mode.
53783         Suggested by Mark D. Baushke and Larry Jones.
53784
53785 2006-06-23  Simon Josefsson  <jas@extundo.com>
53786             Bruno Haible  <bruno@clisp.org>
53787
53788         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
53789         Emit mostlyclean-local rule.
53790         (func_emit_tests_Makefile_am): Likewise.
53791         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
53792
53793 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
53794
53795         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
53796
53797 2006-06-23  Bruno Haible  <bruno@clisp.org>
53798
53799         * tests/test-stdint.c: Update to match ISO C 99 Technical
53800         Corrigendum 1.
53801
53802 2006-06-23  Bruno Haible  <bruno@clisp.org>
53803
53804         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
53805
53806 2006-06-23  Bruno Haible  <bruno@clisp.org>
53807
53808         * lib/stdint_.h: Treat IRIX like OpenBSD.
53809
53810 2006-06-23  Bruno Haible  <bruno@clisp.org>
53811
53812         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
53813         ISO C 99 Technical Corrigendum 1.
53814
53815 2006-06-22  Simon Josefsson  <jas@extundo.com>
53816
53817         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
53818         MinGW.
53819
53820 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53821
53822         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
53823         needed.  Some compiler complained about some of them.  Problem reported
53824         by Larry Jones in
53825         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
53826
53827 2006-06-21  Simon Josefsson  <jas@extundo.com>
53828
53829         * tests/test-getaddrinfo.c: New file.
53830
53831         * modules/getaddrinfo-tests: New file.
53832
53833         * MODULES.html.sh: Add inet_pton.
53834
53835         * modules/inet_pton: New file.
53836
53837 2006-06-21  Simon Josefsson  <jas@extundo.com>
53838
53839         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
53840         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
53841         of using the (limited) gnulib implementation on Windows XP.
53842
53843         * m4/inet_pton.m4: New file.
53844
53845 2006-06-21  Simon Josefsson  <jas@extundo.com>
53846
53847         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
53848         variable.
53849
53850         * lib/socket_.h: Don't define WINVER.
53851
53852         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
53853         slightly modified to work in gnulib.
53854
53855 2006-06-21  Simon Josefsson  <jas@extundo.com>
53856
53857         * doc/gnulib.texi (Windows sockets): Add.
53858
53859 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53860
53861         * lib/read-file.c (fread_file): Start with buffer allocation of
53862         0 bytes rather than 1 byte; this simplifies the code.
53863         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
53864         code to free buffer and save/restore errno.
53865         (internal_read_file): Remove unused local.
53866
53867 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53868
53869         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
53870         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
53871         Problem reported by Denis Excoffier in
53872         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
53873
53874 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53875
53876         * modules/sys_socket, modules/socklen: Include sys/types since
53877         FreeBSD 4.x's sys/socket.h needs it.
53878
53879 2006-06-19  Simon Josefsson  <jas@extundo.com>
53880
53881         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
53882
53883 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53884
53885         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
53886
53887 2006-06-19  Bruno Haible  <bruno@clisp.org>
53888
53889         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
53890         and FULL_PATH_INTTYPES_H in angle brackets.
53891         Reported by Mark D. Baushke <mdb@gnu.org>.
53892
53893 2006-06-17  Eric Blake  <ebb9@byu.net>
53894
53895         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
53896         errno.
53897
53898 2006-06-17  Bruno Haible  <bruno@clisp.org>
53899
53900         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
53901         <sys/inttypes.h>.
53902
53903 2006-06-17  Bruno Haible  <bruno@clisp.org>
53904
53905         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
53906         whether errno is declared. Assume <errno.h> declares errno.
53907
53908 2006-06-17  Bruno Haible  <bruno@clisp.org>
53909
53910         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
53911
53912 2006-06-17  Bruno Haible  <bruno@clisp.org>
53913
53914         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
53915         problem on Solaris 2.5.1.
53916
53917 2006-06-16  Eric Blake  <ebb9@byu.net>
53918
53919         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
53920         * lib/unicodeio.c [!defined errno]: Likewise.
53921         * lib/strtol.c [!defined errno]: Likewise.
53922         * lib/strtod.c [!defined errno]: Likewise.
53923
53924 2006-06-15  Eric Blake  <ebb9@byu.net>
53925
53926         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
53927
53928 2006-06-15  Eric Blake  <ebb9@byu.net>
53929
53930         * config/srclist.txt (ssize_t.m4): Lose sync.
53931
53932 2006-06-15  Bruno Haible  <bruno@clisp.org>
53933
53934         * modules/stdint (Files): Include m4/full-header-path.m4,
53935         m4/size_max.m4, m4/wchar_t.m4.
53936         (Makefile.am): Many more substitutions.
53937         * modules/stdint-tests: New file.
53938         * tests/test-stdint.c: New file.
53939
53940 2006-06-15  Bruno Haible  <bruno@clisp.org>
53941
53942         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
53943         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
53944         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
53945         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
53946         gl_CHECK_TYPE_SAME): New macros.
53947
53948 2006-06-15  Bruno Haible  <bruno@clisp.org>
53949
53950         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
53951
53952 2006-06-15  Bruno Haible  <bruno@clisp.org>
53953
53954         * lib/stdint_.h: Rewritten to be fully auto-configured.
53955         Fixes bug on HP-UX/IA64.
53956
53957 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
53958
53959         * lib/getdate.y (__attribute__): Don't define if already defined.
53960         Problem reported by Larry Jones.
53961         * lib/utimens.c (__attribute__): Likewise.
53962
53963 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
53964
53965         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
53966         reported by Andreas Schwab.
53967
53968 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53969             Bruno Haible  <bruno@clisp.org>
53970
53971         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
53972         check for the declaration of strnlen and a run test that exposes the
53973         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
53974         rpl_strndup.
53975
53976 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53977             Bruno Haible  <bruno@clisp.org>
53978
53979         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
53980
53981 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53982
53983         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
53984         compile test, for Tru64 4.0D.
53985
53986 2006-05-28  Karl Berry  <karl@gnu.org>
53987
53988         * config/srclist.txt (printf-args.c): lose sync.
53989
53990 2006-05-26  Martin Lambers  <marlam@marlam.de>
53991
53992         * lib/getpass.c: Updates the test for the native W32 API, and adds
53993         missing includes, thus fixing compilation warnings.
53994
53995 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53996
53997         * lib/exclude.c (exclude_fnmatch): New function.
53998         (excluded_file_name): Call exclude_fnmatch.
53999         * lib/exclude.h (excluded_file_name): New prototype
54000
54001 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
54002
54003         * lib/tempname.c (small_open, large_open): New macros.
54004         (__open, __open64) [!_LIBC]: Remove.
54005         (__gen_tempname): Use small_open and large_open instead of __open
54006         and __open64.  This fixes a portability bug on HP-UX 11.11i
54007         reported by Simon Wing-Tang in
54008         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
54009
54010 2006-05-24  Bruno Haible  <bruno@clisp.org>
54011
54012         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
54013         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
54014         Reported by Thorsten Maerz <torte@netztorte.de> via
54015         Aaron Stone <aaron@serendipity.cx>.
54016
54017 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54018
54019         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
54020         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
54021         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
54022         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
54023         not really conditional on the cache.
54024         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
54025
54026 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54027
54028         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
54029         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
54030         (my_usleep): Don't mishandle maximum value.
54031
54032 2006-05-19  Jim Meyering  <jim@meyering.net>
54033
54034         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
54035
54036 2006-05-17  Bruno Haible  <bruno@clisp.org>
54037
54038         Cygwin portability.
54039         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
54040
54041 2006-05-17  Bruno Haible  <bruno@clisp.org>
54042
54043         * lib/stdint_.h: Fix recognition of Cygwin.
54044
54045 2006-05-15  Bruno Haible  <bruno@clisp.org>
54046
54047         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
54048         on libtool patch by Ralf Wildenhues.
54049
54050 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
54051
54052         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
54053         test for C99 conformance; (bool) 0.5 is an integer constant
54054         expression, but (bool) -0.5 is not.  Problem reported by Fedor
54055         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
54056
54057 2006-05-11  Simon Josefsson  <jas@extundo.com>
54058
54059         * m4/xvasprintf.m4: Fix obvious typo.
54060
54061 2006-05-11  Jim Meyering  <jim@meyering.net>
54062
54063         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
54064         James Lemley.
54065
54066 2006-05-10  Simon Josefsson  <jas@extundo.com>
54067
54068         * lib/md4.c: Typo fix, update copyright years.
54069         (K1, K2): Don't use L because it turn computations into 64-bit on
54070         64-bit platforms.
54071
54072 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
54073
54074         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
54075         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
54076         unwanted sign propagation, e.g., on hosts with 64-bit int.
54077         There still are some problems with reeelly weird theoretical hosts
54078         (e.g., 33-bit int) but it's not worth worrying about now.
54079         * lib/sha1.c (rol): Likewise.
54080         (K1, K2, K3, K4): Remove unnecessary L suffix.
54081
54082 2006-05-10  Bruno Haible  <bruno@clisp.org>
54083
54084         * lib/des.c: Cast to avoid warnings.
54085
54086 2006-05-09  Bruno Haible  <bruno@clisp.org>
54087
54088         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
54089         (Depends-on): Depend also on xsize, stdarg.
54090         (configure.ac): Add gl_XVASPRINTF.
54091
54092 2006-05-09  Bruno Haible  <bruno@clisp.org>
54093
54094         * m4/xvasprintf.m4: New file.
54095
54096 2006-05-09  Bruno Haible  <bruno@clisp.org>
54097
54098         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
54099         (EOVERFLOW): Define fallback value.
54100         (xstrcat): New function.
54101         (xvasprintf): Recognize the special case of a string concatenation.
54102
54103 2006-05-08  Eric Blake  <ebb9@byu.net>
54104
54105         * gnulib-tool (func_version): Base copyright year on CVS date.
54106         (func_emit_copyright_notice): New function.
54107         (func_emit_lib_Makefile_am): Use it.
54108         (func_emit_tests_Makefile_am): Likewise.
54109         (func_import): Likewise.
54110
54111 2006-05-08  Bruno Haible  <bruno@clisp.org>
54112
54113         * modules/stdarg: New file.
54114         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
54115
54116 2006-05-08  Bruno Haible  <bruno@clisp.org>
54117
54118         * m4/stdarg.m4: New file, from GNU gettext.
54119
54120 2006-05-08  Bruno Haible  <bruno@clisp.org>
54121
54122         * config/srclist.txt (build-aux/config.rpath): different from latest
54123         release.
54124
54125 2006-05-08  Bruno Haible  <bruno@clisp.org>
54126
54127         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
54128
54129 2006-05-05  Jim Meyering  <jim@meyering.net>
54130
54131         * m4/warning.m4: New file, derived from bison's file by the same name.
54132
54133 2006-05-03  Bruno Haible  <bruno@clisp.org>
54134
54135         * lib/stdint_.h: Shorter URL.
54136         * lib/inttypes.h: Likewise.
54137
54138 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54139
54140         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
54141
54142 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54143
54144         * lib/verify.h: Document the internals better.  Most of this change
54145         was written by Bruno Haible.
54146
54147 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54148
54149         * doc/verify.texi: New file, partly based on a proposal by
54150         Bruno Haible.
54151
54152 2006-05-02  Bruno Haible  <bruno@clisp.org>
54153
54154         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
54155         test from here...
54156         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
54157
54158 2006-04-29  Bruno Haible  <bruno@clisp.org>
54159
54160         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
54161         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
54162
54163 2006-04-29  Bruno Haible  <bruno@clisp.org>
54164
54165         * gnulib-tool: Make --update option actually work.
54166
54167 2006-04-29  Bruno Haible  <bruno@clisp.org>
54168
54169         * doc/gcd.texi: New file.
54170         * doc/gnulib.texi: Include it.
54171
54172 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
54173
54174         * lib/getdate.y (get_date): When adding relative date, start with the
54175         initial time, not with the result of the first mktime call.
54176
54177 2006-04-25  Bruno Haible  <bruno@clisp.org>
54178
54179         * gnulib-tool (func_import): Output the include directives in three
54180         blocks, sorted separately.
54181         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54182
54183 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54184
54185         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
54186         to define main with arguments, for C++.  Reported by Eric Blake.
54187         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
54188         Prefer 'int main ()' to 'int main (void)', for C++.
54189         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
54190         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
54191         for 'main', for C99 and C++.
54192
54193 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54194
54195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
54196         Don't assume that exit status -1 is valid.
54197         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54198         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54199         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
54200         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
54201         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
54202         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
54203         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
54204         functions can be used without declaring them, or that you can
54205         exit with status -1.
54206         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
54207
54208 2006-04-24  Karl Berry  <karl@gnu.org>
54209
54210         * config/srclist.txt (longdouble.m4): sync lost.
54211
54212 2006-04-24  Eric Blake  <ebb9@byu.net>
54213
54214         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
54215
54216 2006-04-24  Bruno Haible  <bruno@clisp.org>
54217
54218         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
54219         poll() implementation in AIX.
54220         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54221
54222 2006-04-24  Bruno Haible  <bruno@clisp.org>
54223
54224         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
54225         assigned exactly once.
54226
54227 2006-04-23  Claudio Fontana  <claudio@gnu.org>
54228             Bruno Haible  <bruno@clisp.org>
54229
54230         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
54231         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
54232         for AM_CPPFLAGS.
54233
54234 2006-04-23  Bruno Haible  <bruno@clisp.org>
54235
54236         * modules/copy-file: Depend on unistd.
54237         * modules/execute: Likewise.
54238         * modules/fatal-signal: Likewise.
54239         * modules/findprog: Likewise.
54240         * modules/mkdtemp : Likewise.
54241         * modules/pipe: Likewise.
54242         * modules/wait-process: Likewise.
54243
54244 2006-04-23  Bruno Haible  <bruno@clisp.org>
54245
54246         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
54247         condition was already detected.
54248         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54249
54250 2006-04-23  Bruno Haible  <bruno@clisp.org>
54251
54252         * lib/copy-file.c: Include <unistd.h> unconditionally.
54253         * lib/execute.c: Likewise.
54254         * lib/fatal-signal.c: Likewise.
54255         * lib/findprog.c: Likewise.
54256         * lib/mkdtemp.c: Likewise.
54257         * lib/pipe.h: Likewise.
54258         * lib/pipe.c: Likewise.
54259         * lib/wait-process.h: Likewise.
54260
54261 2006-04-23  Bruno Haible  <bruno@clisp.org>
54262
54263         * gnulib-tool (func_usage): Fix --import description. Document
54264         --update.
54265         (func_import): Create temporary file in a temporary directory, if
54266         --dry-run is specified. Silence errors from 'grep' when there are no
54267         m4 files in $m4dir.
54268         (func_create_testdir): Silence errors from 'grep' when there are no
54269         m4 files in $m4dir.
54270         Reported by Karl Berry <karl@freefriends.org>.
54271
54272 2006-04-20  Bruno Haible  <bruno@clisp.org>
54273
54274         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
54275         one argument, so that the code will be portable to Autoconf 2.60.
54276         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
54277         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
54278         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
54279
54280 2006-04-19  Derek Price  <derek@ximbiot.com>
54281             Eric Blake  <ebb9@byu.net>
54282
54283         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
54284         rather than "/full/path.h".  Update comment to match.  Shorten &
54285         generalize m4_translit call via AS_TR_CPP.
54286
54287 2006-04-19  Derek Price  <derek@ximbiot.com>
54288             Eric Blake  <ebb9@byu.net>
54289
54290         * lib/inttypes.h: Correct grammar in comment.
54291
54292 2006-04-18  Derek Price  <derek@ximbiot.com>
54293             Paul Eggert  <eggert@cs.ucla.edu>
54294
54295         * modules/inttypes: New file.
54296         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
54297
54298 2006-04-18  Derek Price  <derek@ximbiot.com>
54299             Paul Eggert  <eggert@cs.ucla.edu>
54300
54301         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
54302         New files.
54303
54304 2006-04-18  Derek Price  <derek@ximbiot.com>
54305             Paul Eggert  <eggert@cs.ucla.edu>
54306
54307         * lib/inttypes.h: New file.
54308         * lib/strtoimax.c: Assume <inttypes.h>.
54309
54310 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
54311
54312         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
54313         isn't mounted.  Problem reported by Kir Kolyshkin.
54314
54315 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54316
54317         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
54318         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
54319         Derek R. Price.
54320         * lib/regex.h (RE_DUP_MAX): Update comment to match current
54321         implementation.
54322
54323 2006-04-12  Eric Blake  <ebb9@byu.net>
54324
54325         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
54326         is now done automatically by the corresponding Autoconf macro.
54327
54328 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
54329
54330         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
54331         time_r.h.
54332
54333 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54334
54335         Merge regex changes from libc, removing some of our
54336         POSIX-conformance changes that were rejected and redoing them in a
54337         less-intrusive way.
54338
54339         * lib/regcomp.c (re_compile_internal, init_dfa):
54340         Length arg is now size_t, not Idx.  All uses changed.
54341         (peek_token): Forward decl now says internal_function.
54342         (__re_error_msgid, __re_error_msgid_idx):
54343         Now static rather than extern with attribute_hidden.
54344         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
54345         For some reason libc prefers K&R style defns for external functions.
54346         (regerror) [!defined _LIBC]: Likewise.
54347         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
54348         (seek_collating_symbol_entry, lookup_collation_sequence_value):
54349         (build_range_exp, build_collating_symbol):
54350         Use K&R-style defn.
54351         (re_compile_fastmap): Use '\0' to memset, not 0.
54352         (utf8_sb_map): Make the calculations more obvious.
54353         (init_dfa, parse_bracket_exp, build_charclass_op):
54354         Call calloc and cast result, as glibc does.
54355         (init_word_char, fetch_token, peek_token, peek_token_bracket):
54356         (build_range_exp, build_collating_symbol):
54357         Now internal functions.
54358
54359         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
54360
54361         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
54362         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
54363         Don't depend on VMS; depend on __VMS instead, for POSIX
54364         namespace cleanness.
54365         (regoff_t): Define to ssize_t, not long int.
54366
54367         Remove the REG_ macros named below.  Instead, make the old names
54368         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
54369         __USE_GNU_REGEX.
54370         (REG_BACKSLASH_ESCAPE_IN_LISTS):
54371         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
54372         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
54373         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
54374         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
54375         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
54376         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
54377         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
54378         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
54379         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
54380         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
54381         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
54382         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
54383         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
54384         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
54385         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
54386         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
54387         (REG_NREGS):
54388         Remove.  All uses replaced by the old RE_* names.
54389         (RE_BACKSLASH_ESCAPE_IN_LISTS):
54390         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
54391         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
54392         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
54393         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
54394         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
54395         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
54396         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
54397         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
54398         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
54399         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
54400         Don't bother having these macros be independent of each others'
54401         values, since they no longer exist in the POSIX name space.
54402
54403         Rename the following member names back to their old names,
54404         unless !__USE_GNU_REGEX.  All uses changed back.
54405         (buffer): Renamed from re_buffer.
54406         (allocated): Renamed from re_allocated.
54407         (used): Renamed from re_used.
54408         (syntax): Renamed from re_syntax.
54409         (fastmap): Renamed from re_fastmap.
54410         (translate): Renamed from re_translate.
54411         (can_be_null): Renamed from re_can_be_null.
54412         (regs_allocated): Renamed from re_regs_allocated.
54413         (fastmap_accurate): Renamed from re_fastmap_accurate.
54414         (no_sub): Renamed from re_no_sub.
54415         (not_bol): Renamed from re_not_bol.
54416         (not_eol): Renamed from re_not_eol.
54417         (newline_anchor): Renamed from re_newline_anchor.
54418         (num_regs): Renamed from rm_num_regs.
54419         (start): Renamed from rm_start.
54420         (end): Renamed from rm_end.
54421
54422         (free_state): Move up a bit.
54423
54424         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
54425         #define to be empty.
54426         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
54427         when that is what is intended.
54428         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
54429         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
54430         (MAX): New macro.
54431         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
54432         All uses changed back to re_malloc, etc.  It's now the caller's
54433         responsibility to check for overflow; all callers changed.
54434         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
54435         (re_x2nrealloc): Remove.
54436         (free_state): Remove decl.
54437
54438         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
54439         (re_set_registers, re_exec):
54440         Use K&R-style defn.
54441
54442         2006-01-31  Roland McGrath  <roland@redhat.com>
54443
54444         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
54445         Reported by Mike Frysinger <vapier@gentoo.org>.
54446
54447         2006-01-15  Andreas Jaeger  <aj@suse.de>
54448
54449         [BZ #1950]
54450         * lib/regex_internal.c (re_string_reconstruct): Adjust for
54451         build_wcs_upper_buffer change.
54452         (build_wcs_upper_buffer): Change return type.
54453
54454         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
54455
54456         * lib/regex_internal.h: Include <stdint.h> if available.
54457
54458         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
54459
54460         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
54461
54462         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54463
54464         * lib/regcomp.c: Adjust for changed secondary hash function.
54465
54466         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
54467
54468         * lib/regex.h: Pretty printing.
54469         Clean up namespace a bit.
54470
54471         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
54472
54473         * lib/regexec.c (update_cur_sifted_state, check_arrival,
54474         check_arrival_add_next_nodes): Avoid using uninitialized variable.
54475
54476         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54477                     Ulrich Drepper  <drepper@redhat.com>
54478
54479         [BZ #1302]
54480         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
54481         changed.
54482         (bitset_word_t): Renamed from bitset_word.  All uses changed.
54483
54484         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
54485
54486         [BZ #281]
54487         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
54488         * lib/regcomp.c: Remove unnecessary uses of
54489         unsigned RE_TRANSLATE_TYPE.
54490         * lib/regex_internal.h: Likewise.
54491         * lib/regex_internal.c: Likewise.
54492         * lib/regexec.c: Likewise.
54493         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
54494
54495         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
54496
54497         * lib/regexec.c (find_recover_state): Remove unnecessary
54498         initialization.
54499         (transit_state_bkref): Make DFA a const pointer.
54500         (get_subexp): Likewise.
54501         (check_arrival): Likewise.
54502         (update_cur_sifted_state): Likewise.
54503         (re_search_internal): Likewise.
54504         (prune_impossible_nodes): Likewise.
54505         (acquire_init_state_context): Likewise.
54506         (proceed_next_node): Likewise.
54507         (set_regs): Likewise.
54508         (free_fail_stack_return): Likewise.
54509         (check_arrival_expand_ecl): Mark DFA parameter as const.
54510         (check_arrival_expand_ecl_sub): Likewise.
54511         (check_subexp_limits): Likewise.
54512         (sub_epsilon_src_nodes):  Likewise.
54513         (add_epsilon_src_nodes):  Likewise.
54514         (merge_state_array): Likewise.
54515         (update_regs): Likewise.
54516         (build_trtable): Likewise.
54517         (sift_states_backward): Mark MCTX parameter as const.
54518         (build_sifted_states): Likewise.
54519         (update_cur_sifted_state): Likewise.
54520         (sift_states_mkref): Likewise.
54521         (check_arrival_expand_ecl): Mark eclosure as const.
54522         (check_dst_limits_calc_pos_1): Likewise.
54523         * lib/regex_internal.h (re_match_context_t): Make dfa a const
54524         pointer.
54525
54526         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
54527
54528         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
54529         (transit_state_sb): Likewise.
54530         (transit_state_mb): Likewise.
54531         (sift_states_iter_mb): Likewise.
54532         (check_arrival_add_next_nodes): Likewise.
54533         (check_node_accept_bytes): Change first parameter to pointer-to-const.
54534         [_LIBC] (re_search_2_stub): Use mempcpy.
54535
54536         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
54537         mbrtowc for very simple UTF-8 case.
54538
54539         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
54540         a pointer-to-const.
54541         (re_acquire_state_context): Likewise.
54542         * lib/regex_internal.h: Adjust prototypes.
54543
54544         * lib/regex.c: Prevent using C++ compilers.
54545
54546         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
54547         (re_acquire_state_context): Likewise.
54548
54549 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54550
54551         * modules/regex (Depends-on): Add ssize_t.
54552
54553 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54554
54555         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
54556         translation table.
54557
54558 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54559
54560         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
54561
54562 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
54563             Bruno Haible  <bruno@clisp.org>
54564
54565         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
54566         <sys/types.h> and <inttypes.h>.
54567
54568 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54569
54570         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
54571         `__error_t_defined', so argp.h will not typedef the former.
54572
54573 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
54574
54575         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
54576         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
54577         glibc names.  Even if glibc is changed to conform to POSIX, the
54578         traditional names will be available anyway, since regex depends on
54579         the extensions module.  Also, fix a longstanding typo in the
54580         implementation of Spencer ERE test #75 from grep 2.3.  Problems
54581         reported by Emanuele Giaquinta.  Also, change sense of cached
54582         variable, so that the message makes sense.
54583
54584 2006-03-24  Simon Josefsson  <jas@extundo.com>
54585
54586         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
54587         including some doc fixes.
54588         (base64_encode_alloc): Fix +1 bug on allocation failures.
54589
54590 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54591
54592         * lib/base64.c (base64_encode): Do not read past end of array with
54593         unsanitized input on systems with CHAR_BIT > 8.
54594
54595 2006-03-24  Eric Blake  <ebb9@byu.net>
54596
54597         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
54598
54599 2006-03-22  Karl Berry  <karl@gnu.org>
54600
54601         * config/srclist.txt (*setenv.[ch]): get from coreutils.
54602         * config/srclistvars.sh (COREUTILS): new var.
54603
54604 2006-03-17  Jim Meyering  <jim@meyering.net>
54605
54606         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
54607         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
54608
54609 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54610
54611         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
54612         no longer needs it.  Instead, check that regoff_t is as least
54613         as wide as ptrdiff_t.
54614
54615         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
54616         so that our regex.h stays compatible with the installed regex.
54617         This is helpful for installers who configure --without-included-regex.
54618         Problem reported by Emanuele Giaquinta.
54619
54620 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
54621
54622         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
54623         Typedef to long int, not to off_, as POSIX will likely change
54624         in that direction.
54625
54626 2006-03-15  Eric Blake  <ebb9@byu.net>
54627
54628         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
54629
54630 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54631
54632         * lib/argp-help.c (validate_uparams): Fix typo
54633         * lib/argp-parse.c (argp_default_options): Consistently begin help
54634         messages with a lowercase letter.
54635
54636 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
54637
54638         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
54639         overrun buffers and shouldn't be used (much as gets shouldn't be
54640         used).
54641         * lib/time_r.c (asctime_r, ctime_r): Likewise.
54642
54643 2006-03-08  Simon Josefsson  <jas@extundo.com>
54644
54645         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
54646         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54647
54648 2006-03-08  Simon Josefsson  <jas@extundo.com>
54649
54650         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
54651         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54652
54653 2006-03-08  Simon Josefsson  <jas@extundo.com>
54654
54655         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
54656         signal that configure disabled the device.
54657
54658 2006-03-08  Simon Josefsson  <jas@extundo.com>
54659
54660         * build-aux/maint.mk: Fix refresh-po, to handle no translated
54661         languages.
54662
54663 2006-03-07  Simon Josefsson  <jas@extundo.com>
54664
54665         * modules/getopt (Depends-on): Add unistd.
54666
54667         * modules/unistd: New file.
54668
54669 2006-03-07  Simon Josefsson  <jas@extundo.com>
54670
54671         * modules/gc-random: New file.
54672
54673 2006-03-07  Simon Josefsson  <jas@extundo.com>
54674
54675         * m4/unistd_h.m4: New file.
54676
54677 2006-03-07  Simon Josefsson  <jas@extundo.com>
54678
54679         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
54680         test to be side-effect free by storing the result in the cache
54681         variable gl_cv_lib_readline, and moving the assignment of
54682         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
54683         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54684
54685 2006-03-07  Simon Josefsson  <jas@extundo.com>
54686
54687         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
54688         error on missing devices (the functions will return an error).
54689
54690         * m4/gc.m4: Move random stuff to gc-random.m4
54691
54692 2006-03-07  Simon Josefsson  <jas@extundo.com>
54693
54694         * lib/unistd_.h: New file.
54695
54696 2006-03-07  Simon Josefsson  <jas@extundo.com>
54697
54698         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
54699
54700 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54701
54702         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
54703         Problem reported by Juan Manuel Guerrero.
54704
54705 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54706
54707         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
54708         the unistd module.
54709         * lib/getlogin_r.c: Likewise.
54710         * lib/getlogin_r.h: Likewise.
54711         * lib/glob.c: Likewise.
54712         * lib/pagealign_alloc.c: Likewise.
54713         * lib/unistd_.h: Remove; no longer needed.
54714
54715 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54716
54717         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54718         Add unistd.
54719         * modules/c-stack (Depends-on): Add unistd.
54720         * modules/getlogin_r: Likewise.
54721         * modules/glob: Likewise.
54722         * modules/pagealign_alloc: Likewise.
54723         * modules/unistd (Files): Remove lib/unistd_.h.
54724         (EXTRA_DIST): Remove.
54725         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
54726         need unistd_.h.
54727         (MOSTLYCLEANFILES): Remove unistd.h-t.
54728
54729 2006-03-03  Simon Josefsson  <jas@extundo.com>
54730
54731         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
54732
54733 2006-03-03  Simon Josefsson  <jas@extundo.com>
54734
54735         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
54736         libidn and bison.
54737
54738 2006-03-03  Simon Josefsson  <jas@extundo.com>
54739
54740         * build-aux/maint.mk: Add indent target.
54741
54742 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
54743
54744         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
54745         our replacement poll.h in any case, to avoid a differing
54746         declaration from a system header.  Seen on AIX.
54747
54748 2006-03-01  Simon Josefsson  <jas@extundo.com>
54749
54750         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
54751         <kasal@ucw.cz>.
54752
54753 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54754
54755         * modules/gettime (Depends-on): Add extensions module.
54756         * modules/nanosleep (Depends-on): Likewise.
54757         * modules/settime (Depends-on): Likewise.
54758
54759 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54760
54761         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
54762         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
54763         pedantically.
54764         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54765         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
54766
54767         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
54768         not "==".  Reported by Ralf Wildenhues.
54769
54770 2006-03-01  Karl Berry  <karl@gnu.org>
54771
54772         * doc/Copyright/request-*: new files, synced from gnuorg.
54773
54774 2006-03-01  Karl Berry  <karl@gnu.org>
54775
54776         * config/srclist.txt (Copyright/*): new entries.
54777
54778 2006-02-28  Simon Josefsson  <jas@extundo.com>
54779
54780         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
54781
54782 2006-02-27  Simon Josefsson  <jas@extundo.com>
54783
54784         * lib/base64.h: Indent #define's.  From Jim Meyering
54785         <jim@meyering.net>.
54786
54787 2006-02-27  Jim Meyering  <jim@meyering.net>
54788
54789         Revert the change of 2006-02-24, so these files can continue
54790         to be sync'd from gettext.
54791         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
54792         of `config.h'.
54793
54794 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54795
54796         * modules/intprops: New file.
54797         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54798         Add intprops.
54799         * modules/getloadavg (Files): Remove lib/intprops.h.
54800         (Depends-on): Add intprops.
54801         * modules/human: Likewise.
54802         * modules/inttostr: Likewise.
54803         * modules/openat: Likewise.
54804         * modules/sig2str: Likewise.
54805         * modules/userspec: Likewise.
54806         * modules/utimecmp: Likewise.
54807         * modules/xnanosleep: Likewise.
54808         * modules/xstrtol: Likewise.
54809
54810 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
54811
54812         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
54813         * modules/lock-tests (TESTS): Use $(EXEEXT).
54814         * modules/tls-tests: Likewise.
54815         * modules/argp-tests: Likewise.
54816         (check_PROGRAMS): New var, replacing...
54817         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
54818
54819 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54820
54821         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
54822         `config.h'.
54823
54824 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54825
54826         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
54827
54828 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54829
54830         Sync from coreutils.
54831         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
54832         gl_CHDIR_SAFER.
54833
54834 2006-02-22  Jim Meyering  <jim@meyering.net>
54835
54836         Sync from coreutils.
54837         * m4/chdir-safer.m4: New file.
54838
54839 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54840
54841         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
54842         AT_FDCWD exceeds INT_MAX.
54843         * lib/openat.h (AT_FDCWD): Likewise.
54844
54845 2006-02-17  Eric Blake  <address@hidden>
54846
54847         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
54848
54849 2006-02-16  Simon Josefsson  <jas@extundo.com>
54850
54851         * modules/getaddrinfo (Depends-on): Add sys_socket.
54852
54853 2006-02-15  Simon Josefsson  <jas@extundo.com>
54854
54855         * build-aux/maint.mk: Add dsyntax-check rule.
54856
54857 2006-02-15  Eric Blake  <ebb9@byu.net>
54858
54859         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
54860         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
54861         'present but cannot compile' warnings on cygwin.
54862         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
54863         use ws2tcpip.h if sys/socket.h works.
54864         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
54865         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
54866
54867 2006-02-14  Simon Josefsson  <jas@extundo.com>
54868
54869         * modules/maintainer-makefile (Files): Rename.
54870
54871         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
54872         and (the local) Makefile.cfg to maint-cfg.mk.
54873
54874         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
54875         to the latter.
54876
54877         * modules/maintainer-makefile: New module.
54878
54879         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
54880         severaly stripped to make it possible to build it up from scratch
54881         with reliable tests.
54882
54883         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
54884         fixes to permit overriding the default actions when configure and
54885         makefile are not available.
54886
54887 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54888
54889         Sync from coreutils.
54890         * modules/lstat (Depends-on): Don't depend on xalloc.
54891         (License): Change from GPL to LGPL, since this is now simply a
54892         replacement for a libc function.
54893
54894 2006-02-14  Jim Meyering  <jim@meyering.net>
54895
54896         Sync from coreutils.
54897
54898         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
54899         failure on deficient systems, and simplify gnulib lgpl dependencies.
54900         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
54901         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
54902
54903         * lib/xalloc-die.c: Remove unused definition of N_.
54904
54905 2006-02-14  Jim Meyering  <jim@meyering.net>
54906
54907         Sync from coreutils.
54908         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
54909         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
54910         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
54911         double-quote uses of that variable, to accommodate the rare case in
54912         which getmntent is available in none of the libraries checked.  This
54913         happens at least on FreeBSD 5.0.
54914
54915 2006-02-13  Simon Josefsson  <jas@extundo.com>
54916
54917         * gnulib-tool (Usage): Fix --import, from
54918         karl@freefriends.org (Karl Berry).
54919
54920 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54921
54922         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
54923
54924 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
54925
54926         * lib/argp-namefrob.h: Restore changes accidentally lost during the
54927         "autoupdate" on 2005-12-12.
54928
54929 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54930
54931         * modules/closeout (Depends-on): Remove atexit.
54932
54933 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54934
54935         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
54936         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
54937
54938 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54939
54940         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
54941         __EXTENSIONS__ if this causes compilation to fail.  Problem
54942         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
54943         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
54944
54945 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
54946
54947         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
54948         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
54949         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
54950         All uses changed.
54951
54952 2006-01-26  Simon Josefsson  <jas@extundo.com>
54953
54954         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
54955         prototype is visible on mingw32.
54956
54957         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
54958         for mingw32.
54959
54960         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
54961         mingw32).
54962
54963 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54964
54965         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
54966         attempt to open for write; this always fails, at least on POSIX
54967         hosts.  This reinstates the 2006-01-09 change, which was
54968         inadvertently removed.
54969
54970 2006-01-26  Bruno Haible  <bruno@clisp.org>
54971
54972         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
54973         Reported by Paul Eggert.
54974
54975 2006-01-26  Bruno Haible  <bruno@clisp.org>
54976             Paul Eggert  <eggert@cs.ucla.edu>
54977
54978         * lib/stdbool_.h (_Bool)
54979         [(! (defined __cplusplus || defined __BEOS__)
54980           && !defined __GNUC__
54981           && !(defined __HP_cc || defined __xlc__
54982                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
54983                || defined __sgi))]:
54984         #define to signed char in these cases too; this simplifies
54985         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
54986         etc., separately) and makes it more conservative.
54987
54988 2006-01-25  Simon Josefsson  <jas@extundo.com>
54989
54990         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
54991         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
54992         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
54993
54994 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54995
54996         * lib/argp-namefrob.h: Bugfix. Remove stray #
54997
54998 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54999
55000         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
55001         so that we test the test.
55002         Check for yet another HP-UX cc bug involving *bool |= bool.
55003
55004 2006-01-25  Karl Berry  <karl@gnu.org>
55005
55006         * config/srclist.txt (vasnprintf.c): sync lost.
55007
55008 2006-01-25  Jim Meyering  <jim@meyering.net>
55009
55010         Sync from the stable (b5) branch of coreutils:
55011
55012         * lib/fts.c (fts_children): Don't let close() clobber errno from
55013         failed fchdir().
55014
55015         * lib/fts.c (fts_stat): When following a symlink-to-directory,
55016         don't necessarily interpret stat-fails+lstat-succeeds as indicating
55017         a dangling symlink.  That can also happen at least for ELOOP.
55018         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
55019         FYI, this bug predates the inclusion of fts.c in coreutils.
55020
55021         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
55022         in their own block, so pre-c99 compilers don't object.
55023
55024         Avoid the double-free (first in fts_read, second in fts_close) that
55025         would occur when an `active' directory is made inaccessible (e.g.,
55026         via chmod a-x) during a traversal.
55027         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55028         before returning.  Reproduce this failure by
55029         mkdir -p a/b; cd a; chmod a-x . b
55030         Reported by Stavros Passas.
55031
55032 2006-01-25  Jim Meyering  <jim@meyering.net>
55033
55034         * lib/fileblocks.c: Remove more useless parentheses.
55035         * lib/readutmp.h: Likewise.
55036
55037 2006-01-25  Bruno Haible  <bruno@clisp.org>
55038
55039         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
55040         warnings.
55041         Reported by Paul Eggert.
55042
55043 2006-01-25  Bruno Haible  <bruno@clisp.org>
55044
55045         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
55046         rid of a trap command. For Solaris sh.
55047         Reported by Mark D. Baushke <mdb@gnu.org>.
55048
55049 2006-01-24  Simon Josefsson  <jas@extundo.com>
55050
55051         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
55052         Bruno.
55053
55054 2006-01-24  Karl Berry  <karl@gnu.org>
55055
55056         * config/srclist.txt (argp-namefrob.h): sync lost.
55057
55058 2006-01-24  Jim Meyering  <jim@meyering.net>
55059
55060         * modules/openat (Files): Add lib/intprops.h.
55061         From Mark D. Baushke.
55062
55063 2006-01-24  Jim Meyering  <jim@meyering.net>
55064
55065         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
55066         Reported by Mark D. Baushke.
55067
55068 2006-01-24  Jim Meyering  <jim@meyering.net>
55069
55070         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
55071
55072 2006-01-24  Bruno Haible  <bruno@clisp.org>
55073
55074         * modules/strnlen (Maintainer): Change from glibc to all.
55075
55076 2006-01-24  Bruno Haible  <bruno@clisp.org>
55077
55078         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
55079         Patch by Paul Eggert.
55080
55081 2006-01-24  Bruno Haible  <bruno@clisp.org>
55082
55083         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
55084         already has it.
55085         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
55086         2005-11-26.
55087
55088         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
55089         'signed char' to avoid problems with the built-in _Bool type.
55090         Reported by Paul Eggert on 2005-11-26.
55091
55092 2006-01-24  Bruno Haible  <bruno@clisp.org>
55093
55094         * gnulib-tool (func_import): Avoid constructing complicated sed
55095         expressions inside backquote.
55096         Report and solution by Mark D. Baushke <mdb@gnu.org>.
55097
55098 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
55099
55100         These changes imported from libc.
55101         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
55102         test and two separate function calls.
55103         * lib/strndup.c (__strndup): Add libc_hidden_def.
55104
55105 2006-01-23  Simon Josefsson  <jas@extundo.com>
55106
55107         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
55108         Remove the test_*_SOURCES variable: automake infers it by default.
55109         * modules/tls-tests: Likewise.
55110
55111 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55112
55113         Work around porting bugs reported by Dieter in
55114         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
55115         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
55116         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
55117         Include "getopt.h" first, to check interface.
55118         (getenv): Declare only if defined HAVE_DECL_GETENV &&
55119         !HAVE_DECL_GETENV.
55120         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
55121         (__strndup): Revert to K&R-style function dfns, the glibc style.
55122         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
55123         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
55124         Include strnlen.h first, to get prototype properly.
55125         (strnlen): Renamed from __strnlen.
55126         Remove weak alias.
55127
55128 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55129
55130         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
55131
55132 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55133
55134         * config/srclist.txt: Adjust to reflect glibc reorganization.
55135         This affects only comments.
55136
55137 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55138
55139          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
55140          Reported by Bruce Korb <bkorb@gnu.org>.
55141
55142 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55143
55144         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
55145         to pacify gcc -Wswitch-default.
55146
55147 2006-01-22  Bruno Haible  <bruno@clisp.org>
55148
55149         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
55150         temporary buffer for sprintf, take into account the precision also
55151         for 'd', 'i', 'u', 'o', 'x', 'X'.
55152
55153 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55154
55155         * modules/argp-tests: New module
55156         * tests/test-argp.c: New file
55157         * tests/test-argp-2.sh: New file
55158
55159 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55160
55161         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
55162         (__argp_base_name): Removed
55163         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
55164         typo.
55165         (__argp_base_name): Provide macro definition or extern declaration
55166         depending on the configuration
55167
55168 2006-01-20  Simon Josefsson  <jas@extundo.com>
55169
55170         * modules/inet_ntop (Depends-on): Depend on sys_socket.
55171
55172 2006-01-20  Simon Josefsson  <jas@extundo.com>
55173
55174         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
55175
55176 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
55177
55178         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
55179         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
55180         Suggested by Bruno Haible.
55181
55182 2006-01-20  Karl Berry  <karl@gnu.org>
55183
55184         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
55185         until changes propagate, I guess.
55186
55187 2006-01-19  Simon Josefsson  <jas@extundo.com>
55188
55189         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
55190
55191 2006-01-19  Simon Josefsson  <jas@extundo.com>
55192
55193         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
55194
55195 2006-01-19  Simon Josefsson  <jas@extundo.com>
55196
55197         * gnulib-tool: Set check_PROGRAMS.
55198
55199         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55200         modules/des-tests, modules/gc-arcfour-tests,
55201         modules/gc-arctwo-tests, modules/gc-des-tests,
55202         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55203         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55204         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55205         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55206         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55207         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
55208         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
55209         test_*_SOURCES.
55210
55211 2006-01-18  Simon Josefsson  <jas@extundo.com>
55212
55213         * modules/socklen (Depends-on): Depend on sys_socket.
55214
55215 2006-01-18  Simon Josefsson  <jas@extundo.com>
55216
55217         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55218         modules/des-tests, modules/gc-arcfour-tests,
55219         modules/gc-arctwo-tests, modules/gc-des-tests,
55220         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55221         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55222         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55223         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55224         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55225         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
55226         $(EXEEXT) to automake TESTS variable, for mingw32.
55227
55228 2006-01-17  Simon Josefsson  <jas@extundo.com>
55229
55230         * modules/socklen (Include): Need sys/socket.h.
55231
55232 2006-01-17  Bruno Haible  <bruno@clisp.org>
55233
55234         * modules/ssize_t (Include): Add <sys/types.h>.
55235
55236 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
55237
55238         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
55239         it's not portable and it doesn't work with cross-compiles.
55240         Problem reported by Bruno Haible.  Fix missing-$ typo in
55241         'test "gl_cv_ignore_unused_libraries" ...' that prevented
55242         -zignore from being used with Sun's C compiler.
55243
55244 2006-01-12  Simon Josefsson  <jas@extundo.com>
55245
55246         * lib/base64.c: Fix warning, reported by Bruno Haible
55247         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
55248
55249 2006-01-12  Bruno Haible  <bruno@clisp.org>
55250
55251         * modules/ldd: New file.
55252         * build-aux/ldd.sh.in: New file.
55253         * MODULES.html.sh (Support for building libraries and executables): Add
55254         ldd.
55255
55256 2006-01-12  Bruno Haible  <bruno@clisp.org>
55257
55258         * m4/ldd.m4: New file.
55259
55260 2006-01-12  Bruno Haible  <bruno@clisp.org>
55261
55262         * gnulib-tool (func_import, func_create_testdir): Don't go into an
55263         endless loop while replacing $auxdir with build-aux.
55264
55265 2006-01-11  Simon Josefsson  <jas@extundo.com>
55266
55267         * lib/stdint_.h (SIZE_MAX): Add missing (.
55268
55269 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
55270
55271         Sync from coreutils.
55272         * lib/md5.c: Fix commentary typos.
55273         (alignof, UNALIGNED_P): No need for a GCC-specific version.
55274         * lib/md5.h (__attribute__): Remove; unused.
55275         * lib/sha1.c: Fix commentary to match md5 better.
55276         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
55277         so that we don't need to worry about alignment.  All uses changed.
55278         This merges the 2005-10-28 md5 change into sha1.
55279
55280 2006-01-11  Jim Meyering  <jim@meyering.net>
55281
55282         Sync from coreutils.
55283         * lib/md5.c (OP): Fix spacing.
55284
55285 2006-01-11  Bruno Haible  <bruno@clisp.org>
55286
55287         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55288         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
55289         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
55290
55291 2006-01-11  Bruno Haible  <bruno@clisp.org>
55292
55293         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55294         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
55295         the "early" section as well.
55296
55297 2006-01-11  Bruno Haible  <bruno@clisp.org>
55298
55299         Avoid "ar: no archive members specified" error on MacOS X.
55300         * gnulib-tool (func_modules_add_dummy): New function.
55301         (func_import, func_create_testdir): Invoke it.
55302
55303 2006-01-11  Bruno Haible  <bruno@clisp.org>
55304
55305         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
55306         with $auxdir in AC_CONFIG_FILES statements.
55307
55308 2006-01-11  Bruno Haible  <bruno@clisp.org>
55309
55310         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55311         Initialize also noinst_HEADERS to empty.
55312
55313 2006-01-11  Bruno Haible  <bruno@clisp.org>
55314
55315         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
55316         variables.
55317         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
55318         autoreconf.
55319
55320 2006-01-11  Bruno Haible  <bruno@clisp.org>
55321
55322         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
55323         overridable by the user.
55324         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55325
55326 2006-01-10  Simon Josefsson  <jas@extundo.com>
55327
55328         * modules/sys_socket: New file.
55329
55330 2006-01-10  Simon Josefsson  <jas@extundo.com>
55331
55332         * m4/sys_socket_h.m4: New file.
55333
55334 2006-01-10  Simon Josefsson  <jas@extundo.com>
55335
55336         * lib/socket_.h: New file.
55337
55338 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55339
55340         * modules/readutmp (Maintainer): Add myself.
55341
55342 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55343
55344         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
55345         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
55346         People who are still concerned with buggy memcmp implementations
55347         can invoke gl_FUNC_MEMCMP themselves.
55348
55349 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55350
55351         * lib/regex_internal.h (BITSET_WORD_BITS):
55352         Work around a bug in 64-bit PGC (before version 6.1-2), where the
55353         preprocessor mishandles large unsigned values as if they were signed.
55354         Problem reported by Claudio Fontana in
55355         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
55356
55357 2006-01-10  Jim Meyering  <jim@meyering.net>
55358
55359         Avoid the double-free (first in fts_read, second in fts_close) that
55360         would occur when an `active' directory is made inaccessible (e.g.,
55361         via chmod a-x) during a traversal.
55362         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55363         before returning.  Reproduce this failure by
55364         mkdir -p a/b; cd a; chmod a-x . b
55365         Reported by Stavros Passas.
55366
55367         Sync from coreutils.
55368         * lib/sha1.c: Tweak grammar in a comment.
55369
55370 2006-01-10  Jim Meyering  <jim@meyering.net>
55371
55372         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
55373         Patch by Joerg Sonnenberger.
55374
55375 2006-01-10  Bruno Haible  <bruno@clisp.org>
55376
55377         * modules/readutmp: Depend on module free.
55378         * modules/strtok_r: Depend on module restrict.
55379
55380 2006-01-10  Bruno Haible  <bruno@clisp.org>
55381
55382         * modules/gettext (configure.ac): Add an invocation of
55383         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
55384
55385 2006-01-10  Bruno Haible  <bruno@clisp.org>
55386
55387         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
55388         Reported by Werner Lemberg <wl@gnu.org>.
55389
55390 2006-01-10  Bruno Haible  <bruno@clisp.org>
55391
55392         * lib/localcharset.c: Update from GNU gettext.
55393
55394 2006-01-10  Bruno Haible  <bruno@clisp.org>
55395
55396         * lib/argp.h (__const): Remove macro. Use const instead.
55397         * lib/argp-fmtstream.h (__const): Likewise.
55398         * lib/glob_.h (__const): Remove macro.
55399         * lib/glob-libc.h: Use const instead of __const.
55400
55401 2006-01-10  Bruno Haible  <bruno@clisp.org>
55402
55403         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
55404         variable.
55405         Needed to avoid an automake error regarding the 'gettext' module.
55406
55407 2006-01-09  Simon Josefsson  <jas@extundo.com>
55408
55409         * modules/inet_ntop (Depends-on): Add restrict.
55410
55411 2006-01-09  Simon Josefsson  <jas@extundo.com>
55412
55413         * modules/gc-rijndael-tests (License): Put under LGPL.
55414
55415         * modules/gc-des-tests (License): Likewise.
55416
55417         * modules/gc-arcfour-tests (License): Likewise.
55418
55419         * modules/gc-arctwo-tests (License): Likewise.
55420
55421         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
55422
55423         * modules/gc-hmac-sha1-tests (Files): Likewise.
55424
55425         * modules/gc-hmac-md5-tests (License): Likewise.
55426
55427         * modules/gc-sha1-tests (License): Likewise.
55428
55429         * modules/gc-md5-tests (License): Likewise.
55430
55431         * modules/gc-md4-tests (License): Likewise.
55432
55433         * modules/gc-md2-tests (License): Likewise.
55434
55435         * modules/gc-tests (License): Likewise.
55436
55437         * modules/des-tests (License): Likewise.
55438
55439         * modules/md4-tests (License): Likewise.
55440
55441         * modules/md2-tests (License): Likewise.
55442
55443 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55444
55445         Sync from coreutils:
55446
55447         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
55448         * modules/lib-ignore: New file.
55449         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
55450         chdir-safer.m4, lchmod.m4.
55451         * modules/openat: Add mkdirat.c, openat-priv.h.
55452
55453 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55454
55455         Sync from coreutils.
55456         * m4/lib-ignore.m4: New file.
55457         * m4/lchmod.m4: New file.
55458
55459 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55460
55461         Sync from coreutils.
55462         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
55463         for write access: POSIX says that must fail.
55464         * lib/fts.c (diropen): Likewise.
55465         * lib/save-cwd.c (save_cwd): Likewise.
55466         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
55467         well, for minor improvements on hosts that lack O_DIRECTORY.
55468         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
55469         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
55470         Fall back on chown if open failed with EACCES.
55471
55472         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
55473         Report an error at compile-time if only a 1-second nominal clock
55474         resolution is found.
55475
55476         * lib/lchmod.h: New file.
55477         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
55478         (make_dir_parents): Use lchown rather than chown, and
55479         lchmod rather than chmod.
55480
55481         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
55482         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
55483         "proc" reported by n0dalus.
55484
55485         * lib/mountlist.c: Include <limits.h>.
55486         (dev_from_mount_options)
55487         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
55488         New function.  It no longer assumes "dev=" has the System V meaning
55489         on Linux (since it doesn't).  It also parses "dev=" more carefully.
55490         (read_file_system_list)
55491         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
55492         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
55493         dev= in that case.
55494
55495         * lib/posixtm.h (PDS_PRE_2000): New macro.
55496         * lib/posixtm.c (year): Arg is now syntax_bits rather than
55497         allow_century.  All usages changed.  Reject dates outside the range
55498         1969-1999 if PDS_PRE_2000 is used.
55499
55500 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55501
55502         Sync from coreutils.
55503         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
55504         (Time of day items): Mention the possibility of leap seconds.
55505         Problem reported by Dr. David Alan Gilbert.
55506
55507 2006-01-09  Jim Meyering  <jim@meyering.net>
55508
55509         Sync from coreutils.
55510
55511         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
55512
55513         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
55514
55515         * lib/modechange.c (mode_compile): Reject an invalid mode string
55516         that starts with an octal digit.  From Andreas Gruenbacher.
55517
55518         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
55519         and dup to open_safer and dup_safer, respectively.
55520         (openat_permissive): Fix typo in comment.
55521
55522         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
55523         "gettext.h"; either no longer needed or are guaranteed by openat.h.
55524         (_): Remove; no longer needed.
55525         (openat): Renamed from rpl_openat; no need for rpl_openat
55526         since openat.h renames openat for us.
55527         Replace most of the body with a call to openat_permissive,
55528         to avoid duplicate code.
55529         Port to (probably hypothetical) environments were mode_t is
55530         wider than int.
55531         (openat_permissive): Require mode arg, so that we can check
55532         types better.  Put it just after flags.  Change cwd failure
55533         indicator from pointer-to-bool to pointer-to-errno-value.
55534         All callers changed.
55535         Invoke openat_save_fail and/or openat_restore_fail if
55536         cwd_errno is null, so that openat can call us.
55537         (openat_permissive, fdopendir, fstatat, unlinkat):
55538         Simplify errno handling to avoid some duplicate code,
55539         as it's OK to set errno on success.
55540         * lib/openat.h: Revamp code so that function macros depend on
55541         __OPENAT_PREFIX only, not also on AT_FDCWD.
55542         (openat_ro): Remove.  Caller changed to use openat_permissive.
55543         (openat_permissive): Now a macro, if not a function.
55544         (openat_restore_fail, openat_save_fail): Now always functions,
55545         since mkdirat needs them even if __OPENAT_PREFIX is defined.
55546
55547         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
55548         and openat.c.
55549         * lib/mkdirat.c: Include openat-priv.h.
55550         Remove definitions of macros defined therein.
55551         * lib/openat.c: Likewise.
55552
55553         * lib/mkdirat.c (mkdirat): New file and function.
55554         * lib/openat.h (mkdirat): Declare.
55555
55556         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
55557
55558         * lib/openat.h (openat_permissive): Declare.
55559         (openat_ro): Define.
55560
55561         * lib/openat.c (EXPECTED_ERRNO): New macro.
55562         (openat_permissive): New function -- used in remove.c rewrite.
55563         (all functions): Set errno just before returning, only if there
55564         was an actual failure.
55565         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
55566
55567         Emulate openat-family functions using Linux's procfs, if possible.
55568         Idea and some code based on Ulrich Drepper's glibc changes.
55569
55570         * lib/openat.c: (BUILD_PROC_NAME): New macro.
55571         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
55572         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
55573         before falling back on save_cwd and restore_cwd.
55574         (fdopendir, fstatat, unlinkat): Likewise.
55575
55576         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
55577         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
55578
55579         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
55580         as second argument to va_arg.  Otherwise, some versions of gcc
55581         warn that `if this code is reached, the program will abort'.
55582
55583 2006-01-09  Jim Meyering  <jim@meyering.net>
55584
55585         Sync from coreutils.
55586         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
55587         Require openat-priv.h.
55588
55589 2006-01-09  Bruno Haible  <bruno@clisp.org>
55590
55591         * modules/strnlen (Include): Use strnlen.h.
55592
55593 2006-01-09  Bruno Haible  <bruno@clisp.org>
55594
55595         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
55596
55597 2006-01-09  Bruno Haible  <bruno@clisp.org>
55598
55599         * lib/sysexit_.h (EX_OK): New macro.
55600         Suggested by Martin Lambers <marlam@marlam.de>.
55601
55602 2006-01-09  Bruno Haible  <bruno@clisp.org>
55603
55604         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
55605         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
55606
55607 2006-01-09  Bruno Haible  <bruno@clisp.org>
55608
55609         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
55610         numbers.
55611
55612 2006-01-09  Bruno Haible  <bruno@clisp.org>
55613
55614         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
55615         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
55616         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
55617         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
55618
55619 2006-01-09  Bruno Haible  <bruno@clisp.org>
55620
55621         * build-aux/javacomp.sh.in: New file, moved from lib/.
55622         * modules/javacomp-script (Files): Update.
55623         (configure.ac): Add AC_CONFIG_FILES invocation.
55624         (EXTRA_DIST): Remove variable.
55625
55626         * build-aux/javaexec.sh.in: New file, moved from lib/.
55627         * modules/javaexec (Files): Update.
55628         (configure.ac): Add AC_CONFIG_FILES invocation.
55629         (EXTRA_DIST): Remove javaexec.sh.in.
55630
55631         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
55632         * modules/csharpcomp-script (Files): Update.
55633         (configure.ac): Add AC_CONFIG_FILES invocation.
55634         (EXTRA_DIST): Remove variable.
55635
55636         * build-aux/csharpexec.sh.in: New file, moved from lib/.
55637         * modules/csharpexec (Files): Update.
55638         (configure.ac): Add AC_CONFIG_FILES invocation.
55639         (EXTRA_DIST): Remove csharpexec.sh.in.
55640
55641 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55642
55643         Sync from coreutils.
55644
55645         Add POSIX ACL support
55646         * lib/acl.h (copy_acl, set_acl): Add declarations.
55647         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
55648         systems other than Linux.
55649         (chmod_or_fchmod): New function: use fchmod when possible,
55650         and chmod otherwise.
55651         (file_has_acl): Add a POSIX ACL implementation, with a
55652         Linux-specific subcase.
55653         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
55654         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
55655         acls are unsupported.
55656         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
55657         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
55658         are unsupported.
55659
55660 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55661
55662         Sync from coreutils.
55663         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
55664
55665 2006-01-07  Bruno Haible  <bruno@clisp.org>
55666
55667         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
55668         gl_EARLY.
55669
55670 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55671
55672         * lib/strftime.c (tzname): Don't declare if it is already #defined.
55673         Problem reported for Mingw by Mark Junker.
55674
55675 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55676
55677         * README: Gnulib normally doesn't generate a tarball.
55678
55679 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
55680
55681         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
55682         long int, not int, for nanosecond counts, so that people who are
55683         used to POSIX struct timespec won't be surprised.  Reported by Jim
55684         Meyering.
55685
55686 2005-12-28  Bruno Haible  <bruno@clisp.org>
55687
55688         * build-aux/config.rpath: Update from GNU gettext.
55689
55690 2005-12-16  Jim Meyering  <jim@meyering.net>
55691
55692         * modules/fprintftime: New module.
55693         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
55694
55695 2005-12-16  Jim Meyering  <jim@meyering.net>
55696
55697         * m4/fprintftime.m4: New file.
55698
55699 2005-12-16  Jim Meyering  <jim@meyering.net>
55700
55701         * lib/fprintftime.c, lib/fprintftime.h: New files.
55702
55703 2005-12-15  Simon Josefsson  <jas@extundo.com>
55704
55705         * modules/socklen (configure.ac): Fix M4 macro name, to align with
55706         new m4/socklen.m4.
55707
55708 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55709
55710         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
55711         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
55712
55713 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55714
55715         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
55716         * lib/argp-help.c (fill_in_uparams): Check if the constructed
55717         struct uparams is valid. Fall back to the default values if it is
55718         not.
55719
55720 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55721
55722         * modules/argp (Files): Add argp-pin.c
55723         (Depends-on): dirname
55724         (lib_SOURCES): Add argp-pin.c
55725
55726 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55727
55728         * m4/argp.m4:  Check if program_invocation_name and
55729         program_invocation_short_name are declared and define appropriate
55730         macros if they are not.
55731
55732 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55733
55734         * lib/argp-help.c (__argp_base_name): New function
55735         (__argp_short_program_name): Rewrite using __argp_base_name
55736         * lib/argp-namefrob.h: Define program_invocation_name and
55737         program_invocation_short_name if requested
55738         (__argp_base_name): Add prototype
55739         * lib/argp-parse.c (argp_def): Use gettext wrappers
55740         (argp_default_parser): Use __argp_base_name
55741         * lib/argp-pin.c: New file. Defines program_invocation_name and
55742         program_invocation_short_name on systems that lack them.
55743
55744 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55745
55746         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
55747         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55748         porting problem reported by Georg Schwarz in
55749         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55750
55751 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55752
55753         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
55754         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55755         porting problem reported by Georg Schwarz in
55756         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55757
55758 2005-12-05  Bruno Haible  <bruno@clisp.org>
55759
55760         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
55761         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
55762         Reported by Mark Junker <mjscod@gmx.de>.
55763
55764 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
55765
55766         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
55767         Use implementation from Albert Chin, with some
55768         comments/corrections by Stepan Kasal and myself.
55769
55770 2005-12-02  Bruno Haible  <bruno@clisp.org>
55771
55772         * gnulib-tool (func_import): Accept GPLed build tool modules when
55773         --lgpl is given.
55774         * modules/csharpcomp-script: New file.
55775         * modules/csharpcomp: Depend on it.
55776         * modules/javacomp-script: New file.
55777         * modules/javacomp: Depend on it.
55778         Suggested by Simon Josefsson.
55779
55780 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
55781
55782         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
55783         statement, to work around an HP-UX 10.20 compiler bug reported by
55784         Peter O'Gorman.
55785
55786 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55787
55788         * modules/savedir (Depends-on): Add openat.
55789
55790 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55791
55792         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
55793         (uintmax_t) [defined uintmax_t]: Do not declare.
55794         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
55795         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
55796         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
55797         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
55798         sake of portability to weird hosts that C allows (though we don't
55799         know of any practical examples).
55800
55801         * lib/savedir.h (fdsavedir): New decl.
55802         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
55803         contains most of the former guts of savedir.
55804         (savedir): Use savedirstream.
55805         Include "openat.h".
55806
55807 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55808
55809         * modules/obstack (Files): Add m4/ulonglong.m4.
55810         Problem reported by Davide Angelocola.
55811
55812 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55813
55814         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
55815         coreutils no longer futzes with rounding modes.
55816
55817 2005-11-14  Jim Meyering  <jim@meyering.net>
55818
55819         * lib/mkstemp-safer.c: Include <config.h>, required for possible
55820         replacement of mkstemp.
55821
55822 2005-11-10  Simon Josefsson  <jas@extundo.com>
55823
55824         * lib/readline.c: Remove EOL.
55825
55826 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55827
55828         * modules/gethrxtime (Depends-on): Add gettime.
55829
55830 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55831
55832         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
55833         or gettimeofday; no longer needed.
55834
55835 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55836
55837         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
55838         time business.
55839         (gethrxtime) [! (HAVE_NANOUPTIME
55840         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
55841         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
55842         our own approximation.
55843
55844 2005-11-08  Eric Blake  <ebb9@byu.net>
55845
55846         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55847
55848 2005-11-08  Eric Blake  <ebb9@byu.net>
55849
55850         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55851
55852 2005-11-04  Bruno Haible  <bruno@clisp.org>
55853
55854         * gnulib-tool: Implement --update mode.
55855
55856 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55857
55858         Fix porting problem reported by Theodoros V. Kalamatianos.
55859         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
55860         Don't assume that futimes failing means we must fail.
55861
55862 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55863
55864         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
55865         variables to suggest the intended function of the PATH_MAX check.
55866
55867 2005-10-30  Kean Johnston  <jkj@sco.com>
55868
55869         Trivial changes to support SCO systems.
55870         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
55871         as PATH_MAX.
55872         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
55873         where __ptr is null when no I/O is pending.
55874
55875 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55876
55877         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
55878         leave errno alone.  Problem reported by Dmitry V. Levin.
55879
55880 2005-10-28  Simon Josefsson  <jas@extundo.com>
55881
55882         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
55883         Test more.
55884
55885         * tests/test-gc-md2.c, tests/test-md2.c: New files.
55886
55887         * modules/md2, modules/md2-tests: New files.
55888
55889 2005-10-28  Simon Josefsson  <jas@extundo.com>
55890
55891         * m4/inet_ntop.m4: More tests.
55892
55893         * m4/gc-md2.m4, md2.m4: New file.
55894
55895 2005-10-28  Simon Josefsson  <jas@extundo.com>
55896
55897         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
55898         "restrict" keywords, as per POSIX.  Protect the function
55899         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
55900         Don't use K&R prototypes.  Check the sprintf return values.
55901         Re-define EAFNOSUPPORT if not present.  Indent.
55902
55903         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
55904         suggested by Bruno Haible <bruno@clisp.org>.
55905
55906         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
55907
55908         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
55909
55910         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
55911         libgcrypt).
55912
55913         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
55914
55915         * lib/md2.h, lib/md2.c: New files.
55916
55917 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
55918
55919         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
55920         errno alone.  Problem reported by Frederic Jolliton.
55921
55922 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55923
55924         * modules/verify (License): Change from GPL to LGPL.  This is a
55925         tiny module and there are apparently near-equivalents that are
55926         under the BSD license.
55927
55928 2005-10-24  Simon Josefsson  <jas@extundo.com>
55929
55930         * modules/sha1: Relicense to LGPL.
55931
55932 2005-10-24  Simon Josefsson  <jas@extundo.com>
55933
55934         * lib/md4.h: Shrink buffer size, now that we changed the type.
55935
55936 2005-10-23  Simon Josefsson  <jas@extundo.com>
55937
55938         * gnulib-tool (func_import): Fix --tests-base.
55939
55940 2005-10-22  Simon Josefsson  <jas@extundo.com>
55941
55942         * modules/arcfour (Depends-on): Need stdint.
55943
55944 2005-10-22  Simon Josefsson  <jas@extundo.com>
55945
55946         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
55947         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
55948
55949 2005-10-22  Simon Josefsson  <jas@extundo.com>
55950
55951         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
55952         suggested by Bruno Haible <bruno@clisp.org>.
55953
55954 2005-10-22  Simon Josefsson  <jas@extundo.com>
55955
55956         * lib/crc.h: Include stddef.h, for size_t.
55957
55958 2005-10-22  Simon Josefsson  <jas@extundo.com>
55959
55960         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
55961         arcfour_context struct (simplify test vector testing in GNU
55962         Shishi).
55963
55964 2005-10-21  Simon Josefsson  <jas@extundo.com>
55965
55966         * modules/des, modules/des-tests: New files.
55967
55968         * modules/gc-des, modules/gc-des-tests: New files.
55969
55970         * tests/test-des.c, tests/test-gc-des.c: New file.
55971
55972 2005-10-21  Simon Josefsson  <jas@extundo.com>
55973
55974         * modules/arctwo, modules/arctwo-tests: New files.
55975
55976         * tests/test-arctwo.c: New file.
55977
55978         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
55979
55980         * tests/test-gc-arctwo.c: New file.
55981
55982 2005-10-21  Simon Josefsson  <jas@extundo.com>
55983
55984         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
55985         Bruno Haible <bruno@clisp.org>.
55986
55987         * m4/gc-des.m4: New file.
55988
55989 2005-10-21  Simon Josefsson  <jas@extundo.com>
55990
55991         * m4/arctwo.m4: New file.
55992
55993         * m4/gc-arctwo.m4: New file.
55994
55995 2005-10-21  Simon Josefsson  <jas@extundo.com>
55996
55997         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
55998         block.
55999
56000 2005-10-21  Simon Josefsson  <jas@extundo.com>
56001
56002         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
56003         <bruno@clisp.org>.
56004
56005         * lib/hmac-sha1.c (hmac_sha1): Likewise.
56006
56007         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
56008         Bruno Haible <bruno@clisp.org>.
56009
56010         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
56011         <bruno@clisp.org>.
56012
56013 2005-10-21  Simon Josefsson  <jas@extundo.com>
56014
56015         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
56016
56017 2005-10-21  Simon Josefsson  <jas@extundo.com>
56018
56019         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
56020
56021 2005-10-21  Simon Josefsson  <jas@extundo.com>
56022
56023         * lib/des.h, lib/des.c: New files.
56024
56025         * lib/gc-gnulib.c: Support DES.c
56026
56027 2005-10-21  Simon Josefsson  <jas@extundo.com>
56028
56029         * lib/arctwo.h, lib/arctwo.c: New files.
56030
56031         * lib/gc-gnulib.c: Support ARCTWO.
56032
56033 2005-10-21  Simon Josefsson  <jas@extundo.com>
56034
56035         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
56036         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56037
56038 2005-10-21  Simon Josefsson  <jas@extundo.com>
56039
56040         * gnulib-tool (func_import, func_create_testdir): Define automake
56041         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
56042         Makefile.am snippet),
56043         suggested by Bruno Haible <bruno@clisp.org>.
56044
56045         * modules/gc (Makefile.am): Use it.
56046
56047 2005-10-21  Bruno Haible  <bruno@clisp.org>
56048
56049         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
56050         patch.
56051
56052 2005-10-19  Simon Josefsson  <jas@extundo.com>
56053
56054         * tests/test-gc-rijndael.c: New file.
56055
56056         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
56057
56058 2005-10-19  Simon Josefsson  <jas@extundo.com>
56059
56060         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
56061         interface too.
56062
56063 2005-10-19  Simon Josefsson  <jas@extundo.com>
56064
56065         * tests/test-gc-arcfour.c: New file.
56066
56067         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
56068
56069 2005-10-19  Simon Josefsson  <jas@extundo.com>
56070
56071         * modules/gc-md4, modules/gc-md4-tests: New file.
56072
56073         * tests/test-gc-md4.c: New file.
56074
56075 2005-10-19  Simon Josefsson  <jas@extundo.com>
56076
56077         * m4/gc-md4.m4: New file.
56078
56079 2005-10-19  Simon Josefsson  <jas@extundo.com>
56080
56081         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
56082         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
56083         <kasal@ucw.cz>.
56084
56085 2005-10-19  Simon Josefsson  <jas@extundo.com>
56086
56087         * m4/gc-arcfour.m4: New file.
56088
56089         * m4/gc-rijndael.m4: New file.
56090
56091 2005-10-19  Simon Josefsson  <jas@extundo.com>
56092
56093         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
56094
56095 2005-10-19  Simon Josefsson  <jas@extundo.com>
56096
56097         * lib/gc-gnulib.c: Support ARCFOUR.
56098
56099 2005-10-19  Simon Josefsson  <jas@extundo.com>
56100
56101         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
56102         support.
56103
56104         * lib/gc.h: Add ECB enum type.
56105
56106         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
56107
56108 2005-10-18  Simon Josefsson  <jas@extundo.com>
56109
56110         * tests/test-md5.c: New file.
56111
56112         * modules/md5-tests: New file.
56113
56114 2005-10-18  Simon Josefsson  <jas@extundo.com>
56115
56116         * tests/test-md4.c: New file.
56117
56118         * modules/md4, modules/md4-tests: New files.
56119
56120 2005-10-18  Simon Josefsson  <jas@extundo.com>
56121
56122         * m4/md4.m4: New file.
56123
56124 2005-10-18  Simon Josefsson  <jas@extundo.com>
56125
56126         * lib/md4.h, lib/md4.c: New files, based on md5.?.
56127
56128 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
56129
56130         * gnulib-tool (func_create_testdir): Omit the second check whether
56131         BUILT_SOURCES in nonempty.
56132
56133 2005-10-17  Simon Josefsson  <jas@extundo.com>
56134
56135         * tests/test-rijndael.c: New file.
56136
56137 2005-10-17  Simon Josefsson  <jas@extundo.com>
56138
56139         * modules/sha1: Depend on stdint instead of md5.
56140
56141         * modules/md5: Depend on stdint, remove uint32_t.
56142
56143 2005-10-17  Simon Josefsson  <jas@extundo.com>
56144
56145         * modules/gc-sha1-tests: New file.
56146
56147         * tests/test-gc-sha1.c: New file.
56148
56149 2005-10-17  Simon Josefsson  <jas@extundo.com>
56150
56151         * m4/md5.m4: Remove call to uint32_t.m4.
56152
56153 2005-10-17  Simon Josefsson  <jas@extundo.com>
56154
56155         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
56156
56157         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
56158         md5.h.
56159
56160         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
56161
56162         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
56163
56164 2005-10-17  Simon Josefsson  <jas@extundo.com>
56165
56166         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
56167
56168 2005-10-17  Simon Josefsson  <jas@extundo.com>
56169
56170         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
56171
56172 2005-10-17  Simon Josefsson  <jas@extundo.com>
56173
56174         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
56175
56176         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
56177
56178 2005-10-17  Bruno Haible  <bruno@clisp.org>
56179
56180         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
56181         that it can also be used in a test.
56182
56183 2005-10-16  Bruno Haible  <bruno@clisp.org>
56184
56185         * gnulib-tool (func_emit_tests_Makefile_am): Also define
56186         TESTS_ENVIRONMENT, so that individual tests can augment it.
56187
56188         * gnulib-tool (func_create_testdir): Use an intermediate target for
56189         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
56190         macros, like $(ALLOCA_H), which cannot be passed through the command
56191         line.
56192
56193 2005-10-15  Simon Josefsson  <jas@extundo.com>
56194
56195         * modules/rijndael-tests: New file.
56196
56197         * modules/rijndael: New file.
56198
56199 2005-10-15  Simon Josefsson  <jas@extundo.com>
56200
56201         * m4/rijndael.m4: New file.
56202
56203 2005-10-15  Simon Josefsson  <jas@extundo.com>
56204
56205         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
56206
56207         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
56208
56209 2005-10-14  Simon Josefsson  <jas@extundo.com>
56210
56211         * tests/test-arcfour.c: New file.
56212
56213         * modules/arcfour, modules/arcfour-tests: New files.
56214
56215 2005-10-14  Simon Josefsson  <jas@extundo.com>
56216
56217         * m4/arcfour.m4: New file.
56218
56219 2005-10-14  Simon Josefsson  <jas@extundo.com>
56220
56221         * lib/arcfour.h, lib/arcfour.c: New files.
56222
56223 2005-10-14  Roland McGrath  <roland@redhat.com>
56224
56225         Import from libc.  [BZ #1331]
56226         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
56227         macro argument.
56228         Reported by Matej Vela <vela@debian.org>.
56229
56230 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56231
56232         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
56233         include <wchar.h>; no longer needed.
56234
56235 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56236
56237         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
56238
56239 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
56240         and  Ulrich Drepper  <drepper@redhat.com>
56241
56242         Import from libc.
56243         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
56244         instead of inline stream orientation test and two separate
56245         function calls.  Pay no attention to USE_IN_LIBIO.
56246
56247 2005-10-13  Simon Josefsson  <jas@extundo.com>
56248
56249         * modules/gc-hmac-md5-tests: New file.
56250
56251         * tests/test-gc-hmac-sha1.c: New file.
56252
56253         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
56254
56255         * modules/gc-hmac-md5-tests: New file.
56256
56257         * tests/test-gc-md5.c: New file.
56258
56259         * modules/gc-md5-tests: New file.
56260
56261 2005-10-13  Simon Josefsson  <jas@extundo.com>
56262
56263         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
56264         Move memory allocation outside of loop.
56265
56266 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
56267
56268         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
56269         intermediate directory is in a read-only file system.  Problem
56270         reported by Eric Blake.
56271
56272 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
56273
56274         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
56275
56276 2005-10-12  Simon Josefsson  <jas@extundo.com>
56277
56278         * tests/test-hmac-sha1.c: New file.
56279
56280         * modules/hmac-sha1-tests: New file.
56281
56282         * modules/hmac-sha1: New file.
56283
56284 2005-10-12  Simon Josefsson  <jas@extundo.com>
56285
56286         * modules/gc-sha1: New file.
56287
56288 2005-10-12  Simon Josefsson  <jas@extundo.com>
56289
56290         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
56291
56292         * tests/test-gc-pbkdf2-sha1.c: New file.
56293
56294 2005-10-12  Simon Josefsson  <jas@extundo.com>
56295
56296         * modules/gc-md5, modules/gc-hmac-md5: New files.
56297
56298         * modules/gc (Files): Remove md5, memxor and hmac files.
56299
56300 2005-10-12  Simon Josefsson  <jas@extundo.com>
56301
56302         * m4/gc-pbkdf2-sha1.m4: New file.
56303
56304         * m4/gc-hmac-sha1.m4: New file.
56305
56306         * m4/gc-sha1: New file.
56307
56308         * m4/hmac-sha1.m4: New file.
56309
56310 2005-10-12  Simon Josefsson  <jas@extundo.com>
56311
56312         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
56313
56314         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
56315
56316 2005-10-12  Simon Josefsson  <jas@extundo.com>
56317
56318         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
56319         suggested by Bruno Haible <bruno@clisp.org>.
56320
56321 2005-10-12  Simon Josefsson  <jas@extundo.com>
56322
56323         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
56324
56325 2005-10-12  Simon Josefsson  <jas@extundo.com>
56326
56327         * lib/gc-pbkdf2-sha1.c: New file.
56328
56329         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
56330
56331 2005-10-12  Simon Josefsson  <jas@extundo.com>
56332
56333         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
56334
56335         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
56336
56337 2005-10-12  Simon Josefsson  <jas@extundo.com>
56338
56339         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
56340         GC_USE_HMAC_MD5, respectively.
56341
56342         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
56343         (gc_md5): Fix typo.
56344
56345         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
56346
56347         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
56348
56349         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
56350
56351 2005-10-12  Bruno Haible  <bruno@clisp.org>
56352
56353         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
56354         Reported by Stepan Kasal <kasal@ucw.cz>.
56355
56356 2005-10-11  Simon Josefsson  <jas@extundo.com>
56357
56358         * tests/test-crc.c: New file.
56359
56360         * modules/crc, modules/crc-tests: New files.
56361
56362 2005-10-11  Simon Josefsson  <jas@extundo.com>
56363
56364         * m4/crc.m4: New file.
56365
56366 2005-10-11  Simon Josefsson  <jas@extundo.com>
56367
56368         * lib/gc.h: Add gc_hash and gc_hash_buffer.
56369
56370         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
56371
56372         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
56373
56374 2005-10-11  Simon Josefsson  <jas@extundo.com>
56375
56376         * lib/crc.h, lib/crc.c: New files.
56377
56378         * lib/gc.h (gc_hash_buffer): Add doc.
56379
56380 2005-10-11  Bruno Haible  <bruno@clisp.org>
56381
56382         * modules/c-strcasestr: New file.
56383         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
56384
56385 2005-10-11  Bruno Haible  <bruno@clisp.org>
56386
56387         * modules/c-strcase: New file.
56388         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
56389
56390 2005-10-11  Bruno Haible  <bruno@clisp.org>
56391
56392         * lib/strcasecmp.c: Include limits.h.
56393         (strcasecmp): Avoid integer overflow on exotic platforms.
56394         * lib/strncasecmp.c: Include limits.h.
56395         (strncasecmp): Avoid integer overflow on exotic platforms.
56396         Reported by Paul Eggert.
56397
56398 2005-10-11  Bruno Haible  <bruno@clisp.org>
56399
56400         * lib/c-strcasestr.h: New file, from GNU gettext.
56401         * lib/c-strcasestr.c: New file, from GNU gettext.
56402
56403 2005-10-11  Bruno Haible  <bruno@clisp.org>
56404
56405         * lib/c-strcase.h: New file, from GNU gettext.
56406         * lib/c-strcasecmp.c: New file, from GNU gettext.
56407         * lib/c-strncasecmp.c: New file, from GNU gettext.
56408
56409 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56410
56411         * modules/mempcpy (License): GPL -> LGPL.
56412         * modules/strchrnul (License): Likewise.
56413         * modules/sysexits (License): Likewise.
56414
56415 2005-10-08  Simon Josefsson  <jas@extundo.com>
56416
56417         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
56418
56419 2005-10-07  Simon Josefsson  <jas@extundo.com>
56420
56421         * m4/memxor.m4: Remove gl_C_RESTRICT call.
56422
56423 2005-10-06  Simon Josefsson  <jas@extundo.com>
56424
56425         * tests/test-hmac-md5.c: New file.
56426
56427         * modules/hmac-md5-tests: New file.
56428
56429         * modules/hmac-md5: New file.
56430
56431 2005-10-06  Simon Josefsson  <jas@extundo.com>
56432
56433         * m4/hmac-md5.m4: New file.
56434
56435         * m4/memxor.m4: Require gl_C_RESTRICT.
56436
56437 2005-10-06  Simon Josefsson  <jas@extundo.com>
56438
56439         * lib/memxor.c (memxor): Avoid casts and warnings.
56440
56441 2005-10-06  Simon Josefsson  <jas@extundo.com>
56442
56443         * lib/hmac-md5.c: New file.
56444
56445         * lib/hmac.h: New file.
56446
56447 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56448
56449         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
56450         promotes to int, not unsigned int, to catch the AIX 5.3
56451         compiler bug.
56452
56453 2005-10-05  Simon Josefsson  <jas@extundo.com>
56454
56455         * modules/memxor: New file.
56456
56457         * modules/iconv (Files): Move config.rpath to havelib, it is used
56458         there.
56459
56460         * modules/havelib (Files): Add config.rpath.
56461
56462 2005-10-05  Simon Josefsson  <jas@extundo.com>
56463
56464         * m4/memxor.m4: New file.
56465
56466 2005-10-05  Simon Josefsson  <jas@extundo.com>
56467
56468         * lib/memxor.c (memxor): Fix compiler error.
56469
56470         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
56471         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
56472
56473         * lib/memxor.h, lib/memxor.c: New files.
56474
56475         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
56476         we assume all systems have it, suggested by Jim Meyering
56477         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
56478         any systems lack sys/socket.h; mingw32 is known to lack it, but we
56479         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
56480         same reasons.
56481
56482 2005-10-05  Simon Josefsson  <jas@extundo.com>
56483
56484         * config/srclist.txt: Add glibc bug 1423 for md5.h.
56485
56486 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56487
56488         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
56489         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
56490         needed, since the source code now assumes these .h files.
56491
56492 2005-10-05  Derek Price  <derek@ximbiot.com>
56493
56494         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
56495
56496 2005-10-05  Bruno Haible  <bruno@clisp.org>
56497
56498         * modules/stdint (License): Change to LGPL.
56499
56500 2005-10-04  Simon Josefsson  <jas@extundo.com>
56501
56502         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
56503         D. Baushke" <mdb@gnu.org>.
56504
56505 2005-10-04  Bruno Haible  <bruno@clisp.org>
56506
56507         * lib/verify.h (verify_true): Provide alternative definition for C++.
56508
56509 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
56510
56511         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
56512         (SSIZE_MAX): New macro, if not already defined.
56513         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
56514         than 2 GiB.
56515
56516 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56517
56518         Sync from coreutils.
56519         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
56520         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
56521         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
56522         ULLONG_MAX doesn't work with 2.7.2.1.
56523
56524 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56525
56526         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
56527         From Ben Pfaff.
56528
56529         * modules/exclude (Depends-on): Depend on verify.
56530         * modules/strtoimax (Depends-on): Likewise.
56531         * modules/utimecmp (Depends-on): Likewise.
56532
56533 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56534
56535         * lib/exclude.c: Include verify.h.
56536         (verify): Remove.  All callers changed to use verify.h's version.
56537         * lib/strtoimax.c: Likewise.
56538         * lib/utimecmp.c: Likewis.e
56539
56540         Sync from coreutils.
56541         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
56542         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
56543         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
56544         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
56545         bother returning ENOSYS if settimeofday or stime fails; just let
56546         them return whatever errno they want to return.
56547         * lib/utimens.c: Include unistd.h, for dup2.
56548         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
56549         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
56550
56551 2005-10-02  Jim Meyering  <jim@meyering.net>
56552
56553         Sync from coreutils.
56554         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
56555         from glibc-2.2.5 that fails for read-only files.
56556
56557 2005-10-02  Jim Meyering  <jim@meyering.net>
56558
56559         Sync from coreutils.
56560         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
56561         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
56562         `#if HAVE_CONFIG_H'.
56563         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
56564         Remove AT_FDCWD test.
56565         Do not consume the fd unless successful.
56566         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
56567         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
56568         block, so that we don't even try to compile it if settimeofday is
56569         available.  This works around a compilation failure on OSF1 V5.1,
56570         due to stime requiring a `long int*' while tv_sec is `int'.
56571
56572 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
56573
56574         Sync from coreutils.
56575         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
56576         against `yes', rather than just testing for nonempty.
56577
56578 2005-10-01  Simon Josefsson  <jas@extundo.com>
56579
56580         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
56581         and Darwin.
56582
56583         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
56584         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
56585         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
56586         freeaddrinfo and gai_strerror are declared by the POSIX headers.
56587         Check if struct addrinfo is declared.
56588
56589 2005-10-01  Simon Josefsson  <jas@extundo.com>
56590
56591         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
56592         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
56593         AI_* and EAI_* definitions.  Protect function declarations.
56594
56595 2005-10-01  Jim Meyering  <jim@meyering.net>
56596
56597         Sync from coreutils.
56598
56599         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
56600         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
56601         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
56602         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
56603         in the inet and nsl libraries.  Required on Solaris 5.7.
56604
56605 2005-10-01  Jim Meyering  <jim@meyering.net>
56606
56607         Sync from coreutils.
56608         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
56609         in the inet and nsl libraries.  Required on Solaris 5.7.
56610
56611 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
56612
56613         * lib/getdelim.c (getdelim): Remove unused variables.
56614
56615 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56616
56617         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
56618         so that the code works even with ancient cpp.  Portability problem
56619         with GCC 2.7.2.1 reported by Thomas M.Ott.
56620
56621 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56622
56623         * modules/regex (Depends-on): Add strcase.
56624
56625         * modules/gethostname (Licence): Change from GPL to LGPL, since
56626         gethostname.c is a trivial implementation of a standard library
56627         function.
56628         * modules/poll (License): Change from GPL to LGPL, since it's
56629         derived from LGPL code.
56630
56631 2005-09-27  Jim Meyering  <jim@meyering.net>
56632
56633         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
56634         HAVE_CONFIG_H.
56635
56636         * lib/intprops.h (signed_type_or_expr__): Define.
56637         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
56638         for unsigned types.
56639
56640 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56641
56642         * lib/verify.h (verify_expr): Remove, replacing with:
56643         (verify_true): New macro that returns true instead of void.
56644         (verify_type__): Remove.
56645         (verify): Use verify_true rather than verify_type__.
56646
56647 2005-09-26  Bruno Haible  <bruno@clisp.org>
56648
56649         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
56650         is necessary.
56651         (lib_SOURCES): Remove mbchar.c.
56652         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
56653         (Files): Add m4/mbrtowc.m4.
56654         * modules/mbiter: Likewise.
56655         * modules/mbuiter: Likewise.
56656
56657 2005-09-26  Bruno Haible  <bruno@clisp.org>
56658
56659         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
56660         compile mbchar.c if they are not both present.
56661         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
56662         * m4/mbiter.m4 (gl_MBITER): Likewise.
56663         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
56664         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
56665         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
56666
56667 2005-09-25  Jim Meyering  <jim@meyering.net>
56668
56669         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
56670         also uses socklen_t.
56671
56672 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
56673
56674         * lib/utimens.c (ENOSYS): Define if not already defined.
56675         (futimens): Support having a null PATH if the file descriptor
56676         is nonnegative.
56677
56678         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
56679         Remove.
56680         (__attribute): Define to empty unless GCC 3.1 or later.
56681         This works around a core dump on OpenBSD 3.4, which has GCC
56682         2.95.3, which dumps core when given __attribute__(()).  It also
56683         simplifies other tests, since we really don't want to bother with
56684         worrying about which ancient version of GCC supported what.
56685         Original problem reported by Yoann Vandoorselaere, with part of
56686         the fix suggested by Derek Price.
56687
56688 2005-09-24  Jim Meyering  <jim@meyering.net>
56689
56690         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
56691         so we can once again use a positive bitfield width of 1 -- now we
56692         don't have to explain why we were using a bitfield width of 2.
56693
56694 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56695
56696         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
56697         and similarly for the other external symbols.  Problem reported
56698         by James Gallager.
56699
56700         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
56701         bug reported by Jim Meyering.
56702
56703         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
56704         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
56705         not needed, since socklen is a prerequisite module.
56706
56707 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56708
56709         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
56710         Problem reported by Eric Blake.
56711         (getaddrinfo): Initialize se so that it's not garbage.
56712         Redo internal storage allocation so that it doesn't make unportable
56713         assumptions about alignment.
56714         Fix a memory leak.
56715
56716         * lib/utimens.c (futimens): Use futimesat if available.
56717         Prefer it to futimes since it doesn't have the futimes bug.
56718
56719         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
56720         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
56721         Instead, declare a function that returns a pointer to an array,
56722         and use verify_type__ to declare the size of the array.
56723         Problem and germ of a solution reported by Bruno Haible.
56724         (verify_type__): Use 2, not 1, for bitfield size, to avoid
56725         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
56726
56727 2005-09-23  Jim Meyering  <jim@meyering.net>
56728
56729         Sync from coreutils.
56730         Correct build failure (socklen_t not defined) on at least
56731         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
56732         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
56733
56734 2005-09-23  Jim Meyering  <jim@meyering.net>
56735
56736         * modules/getaddrinfo (Depends-on): Add socklen.
56737
56738 2005-09-23  Bruno Haible  <bruno@clisp.org>
56739
56740         * tests/test-verify.c: New file.
56741
56742 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56743
56744         Sync from coreutils.
56745
56746         * modules/argmatch (Depends-on): Add verify.
56747         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
56748         unistd-safer.
56749         * modules/save-cwd (Depends-on): Likewise.
56750
56751         * modules/openat (Files): Add lib/openat-die.c.
56752         (Depends-on): Remove error, exitfail.
56753         Add dirname.
56754
56755         * modules/verify: New file.
56756         * MODULES.html.sh (Diagnostics <assert.h>): New section,
56757         with "verify" module.
56758
56759 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56760
56761         Sync from coreutils.
56762
56763         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
56764         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
56765         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
56766         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
56767         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
56768         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
56769         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
56770         Don't bother checking for string.h, stdlib.h, unistd.h.
56771         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
56772         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
56773         module's job.
56774         * m4/jm-macros.m4 (gl_MACROS): Likewise.
56775         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
56776
56777         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
56778         (gl_GETDATE): Use it.
56779
56780         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
56781
56782 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56783
56784         Sync from coreutils.
56785
56786         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
56787         stat-time.h.
56788         * lib/argmatch.h: Include verify.h
56789         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
56790         (ARGMATCH_ASSERT): Remove; unused.
56791         * lib/canonicalize.c: Assume STDC_HEADERS.
56792         * lib/exclude.c: Include "strcase.h".
56793         * lib/regex_internal.h [!defined _LIBC]: Likewise.
56794         * lib/getusershell.c: Include stdio--.h rather than stdio.h
56795         and stdio-safer.h.
56796         (getusershell): Call fopen, not fopen_safer.
56797         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
56798         Do not include unistd-safer.h.
56799         (save_cwd): Don't call fd_safer; no longer needed
56800         now that we include fcntl--.h.
56801
56802         * lib/getdate.y (relative_time): New type.
56803         (RELATIVE_TIME_0): New constant.
56804         (parser_control): Use relative_time instead of doing it ourselves.
56805         (%union): Add new relative_time rel member.
56806         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
56807         Now typeless.
56808         (relunit, relunit_snumber): Now of type rel.
56809         (zone, rel, relunit, get_date): Adjust to above changes.
56810
56811         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
56812         Do not include unistd-safer.h.
56813         (getloadavg): Don't call fd_safer; no longer needed
56814         now that we include fcntl--.h.
56815
56816         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
56817         (make_dir_parents): Treat ENOSYS like EEXIST.
56818
56819         Improve quality of diagnostics on restore_cwd failure.
56820         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
56821         (make_dir_parents): Last arg is now int * (for errno), not bool *.
56822         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
56823         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
56824         each time through the loop.  Do not diagnose restore_cwd failure;
56825         that is the caller's job (and perhaps the caller does not care).
56826
56827         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
56828         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
56829         If the file already exists but is not a directory, don't bother
56830         to try to make its parents.
56831         Close potential file descriptor leak if we can't chdir("/") (!).
56832         Don't always return true if chdir($PWD) fails; return true only
56833         if the requested action was done successfully (except for the
56834         chdir($PWD)).
56835         Don't log final directory unless we actually made it.
56836         Refactor to avoid duplicate code to fix up permissions.
56837         Don't attempt to fix up parent permissions if chdir($PWD) fails.
56838
56839         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
56840         to make it a bit faster and (I hope) clearer.
56841         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
56842         Fix bug in formats like %2N.
56843
56844         * lib/verify.h: New file.
56845
56846 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56847
56848         Sync from coreutils.
56849         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
56850
56851 2005-09-22  Jim Meyering  <jim@meyering.net>
56852
56853         Sync from coreutils.
56854
56855         * m4/lstat.m4 (gl_FUNC_LSTAT):
56856         Use AC_LIBSOURCES to require lstat.c and lstat.h.
56857         Remove obsolete comment.
56858         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
56859         * m4/xstrtod.m4: Likewise.
56860
56861         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
56862
56863 2005-09-22  Jim Meyering  <jim@meyering.net>
56864
56865         Sync from coreutils.
56866
56867         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
56868
56869         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
56870         the .tm_year member, since otherwise gcc-4.0 would now warn about
56871         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
56872
56873         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
56874         order to avoid an unsuppressible warning from gcc on 64-bit systems.
56875
56876         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
56877         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
56878         when run in a time zone for which daylight savings time is in effect
56879         for the starting date.
56880
56881         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
56882         stop us from restricting permissions of just-created absolute-named
56883         directories.
56884         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
56885         to restore initial working directory.
56886         * lib/mkdir-p.c (make_dir_parents): New parameter:
56887         different_working_dir, to tell caller if/when we change the working
56888         directory and are unable to return to the initial one.
56889         * lib/mkdir-p.h (make_dir_parents): Update prototype.
56890         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
56891         `return false'.  This fixes a bug introduced on 2004-07-30.
56892
56893         * lib/openat.c (fdopendir): Be sure to close the supplied
56894         file descriptor before returning.  This makes our replacement
56895         implementation a little closer to Solaris's, where fdopendir
56896         ties the file descriptor to the returned DIR* pointer.
56897         * lib/openat.c (unlinkat): New function.
56898         * lib/openat.h (unlinkat): Add prototype.
56899         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
56900         (openat_restore_fail): Rename from openat_restore_die.
56901         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
56902
56903         Provide an alternative to exiting immediately upon save_cwd or
56904         restore_cwd failure.  Now, an application can arrange e.g.,
56905         to perform a longjump in that case.
56906         * lib/openat.c: Include dirname.h.
56907         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
56908         (rpl_openat, fdopendir, fstatat): Call openat_save_die
56909         and openat_restore_die rather than calling error directly.
56910         Don't include "error.h" or "exitfail.h"; they're no longer needed.
56911
56912         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
56913         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
56914         define.
56915
56916         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
56917         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
56918                             int utc, int nanoseconds);
56919         Background:
56920         date should not have to allocate a megabyte of virtual memory to
56921         handle a format argument like +%1048575T.  When implemented with
56922         strftime, it must allocate such a buffer, use strftime to fill it
56923         in, print it, then free it.
56924         With fprintftime, it simply prints everything and exits.
56925         With no need for memory allocation, that's one fewer way to fail.
56926         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
56927         optional field width, not before, so we accept %9:z, not %:9z.
56928         (my_strftime): Be sure to use L_('x') for literals.
56929
56930         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
56931         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
56932         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
56933         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
56934         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
56935         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
56936         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
56937         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
56938         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
56939         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
56940         * lib/xgethostname.c, lib/xreadlink.c:
56941         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
56942
56943         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
56944         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
56945         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
56946         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56947         and don't include <sys/file.h>).
56948
56949 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
56950
56951         Sync from coreutils.
56952
56953         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
56954         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
56955         [!LDAV_DONE]: Avoid unused variable warning.
56956
56957 2005-09-21  Bruno Haible  <bruno@clisp.org>
56958
56959         * lib/unicodeio.h (unicode_to_mb): New declaration.
56960
56961 2005-09-20  Derek Price  <derek@ximbiot.com>
56962
56963         * lib/getaddrinfo.c: Don't include <netdb.h> included from
56964         getaddrinfo.h.
56965
56966 2005-09-20  Bruno Haible  <bruno@clisp.org>
56967
56968         * gnulib-tool: Remove trailing slashes from the values specified for
56969         --source-base, --m4-base, --tests-base, --aux-dir.
56970         Suggested by Simon Josefsson <jas@extundo.com>.
56971
56972 2005-09-20  Bruno Haible  <bruno@clisp.org>
56973
56974         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
56975         func_modules_to_filelist, func_import, func_create_testdir): Make all
56976         sorting results locale-independent, so that gnulib-cache.m4 doesn't
56977         change when gnulib-tool is invoked in a different locale.
56978
56979 2005-09-19  Simon Josefsson  <jas@extundo.com>
56980
56981         * m4/socklen.m4: Fix typo.
56982
56983 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56984
56985         Use a consistent style for including <config.h>.
56986         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
56987         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
56988         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
56989         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
56990         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
56991         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
56992         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
56993         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
56994         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
56995         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
56996         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
56997         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
56998         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
56999         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
57000         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
57001         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
57002         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
57003         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
57004         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
57005         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
57006         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
57007         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
57008         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
57009         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
57010         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
57011         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
57012         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
57013         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
57014         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
57015         lib/xstrtoumax.c, lib/yesno.c:
57016         Standardize inclusion of config.h.
57017         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
57018         lib/inttostr.h:  Removed inclusion of config.h from header files.
57019         * lib/inttostr.c:  Adjusted in-tree users.
57020         * lib/timespec.h: Remove superfluous warning to include config.h.
57021         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
57022         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
57023         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
57024         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
57025         config.h with HAVE_CONFIG_H.
57026
57027 2005-09-19  Jim Meyering  <jim@meyering.net>
57028
57029         * modules/pathmax (License): Change to LGPL.
57030
57031 2005-09-19  Derek Price  <derek@ximbiot.com>
57032
57033         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
57034
57035 2005-09-19  Bruno Haible  <bruno@clisp.org>
57036
57037         * gnulib-tool (import): Provide default for --tests-base.
57038
57039 2005-09-19  Bruno Haible  <bruno@clisp.org>
57040
57041         * doc/quote.texi: New file, extracted from gnulib.texi.
57042         * doc/ctime.texi: New file, extracted from gnulib.texi.
57043         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
57044         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
57045         * doc/gnulib.texi: Include them.
57046
57047 2005-09-18  Bruno Haible  <bruno@clisp.org>
57048
57049         Portability fix.
57050         * gnulib-tool (func_readlink): New function.
57051         (func_ln_if_changed): Use it.
57052
57053 2005-09-18  Bruno Haible  <bruno@clisp.org>
57054
57055         * gnulib-tool: Support --with-tests also with --import.
57056         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
57057         (func_import): Use variables $testsbase and $inctests. Emit a
57058         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
57059         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
57060         SUBDIRS += $testsdir.
57061         (func_create_testdir): Update.
57062
57063 2005-09-18  Bruno Haible  <bruno@clisp.org>
57064
57065         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
57066         instead of $dry_run.
57067         (func_cp_if_changed, func_mv_if_changed): Remove functions.
57068         (func_ln_if_changed): Don't handle dry-run here.
57069         (func_import): In dry-run mode, detect more precisely which actions
57070         would be performed, and don't use "...ing" verbs.
57071
57072 2005-09-18  Bruno Haible  <bruno@clisp.org>
57073
57074         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
57075         (func_import): Use join on two temporary files instead of three nested
57076         loops, in order to determine which files are new or old.
57077
57078 2005-09-18  Bruno Haible  <bruno@clisp.org>
57079
57080         * gnulib-tool (func_import): Comment out code that spits out the
57081         new files with --dry-run.
57082
57083 2005-09-18  Bruno Haible  <bruno@clisp.org>
57084
57085         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
57086
57087 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57088
57089         * lib/stat-time.h: New file.
57090         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
57091         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
57092         in a different way.
57093         (timespec_cmp): New function.
57094         * lib/utimecmp.c: Include stat-time.h.
57095         (SYSCALL_RESOLUTION): Depend on whether various struct stat
57096         members exist, not on the obsolescent ST_MTIM_NSEC.
57097         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
57098
57099 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57100
57101         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
57102
57103 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57104
57105         * MODULES.html.sh (File system functions): Add stat-time.
57106         * modules/stat-time: New file.
57107         * modules/timespec (Files): Remove m4/st_mtim.m4; this
57108         is now done in a different way, by the stat-time module.
57109         * modules/utimecmp (Depends-on): Add stat-time.
57110
57111 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57112
57113         * m4/st_mtim.m4: Remove.  Superseded by...
57114         * m4/stat-time.m4: New file.
57115         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
57116         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
57117
57118 2005-09-15  Derek Price  <derek@ximbiot.com>
57119
57120         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
57121
57122 2005-09-15  Derek Price  <derek@ximbiot.com>
57123
57124         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
57125         * lib/regex_internal.c: Ditto, using this...
57126         (__GNUC_PREREQ): ...new macro.
57127         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
57128         using...
57129         (__GNUC_PREREQ): ...this new macro.
57130
57131         * lib/strstr.h: Include string.h. Define strstr as a macro here.
57132
57133 2005-09-15  Derek Price  <derek@ximbiot.com>
57134             Paul Eggert  <eggert@cs.ucla.edu>
57135
57136         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
57137         changes, consolidating in...
57138         * lib/regex_internal.h: ...this file.
57139
57140 2005-09-13  Jim Meyering  <jim@meyering.net>
57141
57142         * lib/canon-host.c: Filter through gnu indent and reword comments
57143         slightly.
57144         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
57145
57146 2005-09-13  Derek Price  <derek@ximbiot.com>
57147
57148         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
57149         failure.
57150         Reported by Jim Meyering  <jim@meyering.net>.
57151
57152 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57153
57154         * lib/base64.c: Typo.
57155         (base64_encode): Put b64str in initialized data section.
57156
57157 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
57158
57159         Merge glibc and coreutils changes into gnulib, plus a few
57160         extra fixes.
57161         * lib/md5.c: Use #error rather than a string.
57162         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
57163         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
57164         (__attribute__): Define to empty for non recent-GCC.
57165         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
57166         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
57167         Renamed from their non-__ counterparts, with new macros replacing
57168         them if not _LIBC.  Add __THROW attribute.
57169         (rol): Remove.
57170         (struct md5_ctx): Align buffer if using GCC.
57171         * lib/sha1.h (struct sha1_ctx): Likewise.
57172         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
57173         The old name was backwards.
57174         (NOTSWAP): Remove; not used.
57175         (rol): New macro, moved here from md5.h.
57176         (sha1_process_block): Remove a FIXME that doesn't make sense.
57177
57178 2005-09-12  Derek Price  <derek@ximbiot.com>
57179
57180         Return usable errors from canon-host.
57181         * lib/canon-host.h: New file.
57182         * lib/canon-host.c (canon_host): Wrap...
57183         (canon_host_r): ...this new function, which now relies exclusively on
57184         getaddrinfo.
57185         (ch_strerror): New function.
57186         (last_cherror): New global.
57187         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
57188         interface.
57189         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
57190         void *.
57191         (freeaddrinfo): Free ai->ai_canonname when set.
57192
57193 2005-09-12  Derek Price  <derek@ximbiot.com>
57194
57195         Make canon-host require getaddrinfo.
57196         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
57197         AC_LIBSOURCE canon-host.h.  Call...
57198         (gl_PREREQ_CANON_HOST): ...this new function, which requires
57199         gl_GETADDRINFO.
57200         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
57201
57202 2005-09-12  Derek Price  <derek@ximbiot.com>
57203
57204         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
57205         LGPL.
57206         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
57207
57208 2005-09-12  Derek Price  <derek@ximbiot.com>
57209
57210         * lib/gai_strerror.c: Include config.h when available.  Include
57211         getaddrinfo.h before other headers to test interface.
57212         Reported by Larry Jones <lawrence.jones@ugs.com>.
57213
57214 2005-09-12  Derek Price  <derek@ximbiot.com>
57215             Paul Eggert  <eggert@cs.ucla.edu>
57216
57217         * modules/glob (Files): Add glob-libc.h.
57218
57219 2005-09-12  Derek Price  <derek@ximbiot.com>
57220             Paul Eggert  <eggert@cs.ucla.edu>
57221
57222         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
57223         glob_.h, glob-libc.h.
57224         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
57225
57226 2005-09-12  Derek Price  <derek@ximbiot.com>
57227             Paul Eggert  <eggert@cs.ucla.edu>
57228
57229         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
57230         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
57231         protecting things that should be done only in gnulib contexts.
57232         * lib/glob_.h: New file, containing only the glob things needed for
57233         gnulib.
57234         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
57235         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
57236         (glob, globfree, glob_pattern_p): Now defined simply in terms of
57237         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
57238         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
57239         and to respect the namespace rules better.
57240
57241 2005-09-08  Simon Josefsson  <jas@extundo.com>
57242
57243         * modules/socklen: New file.
57244
57245 2005-09-08  Simon Josefsson  <jas@extundo.com>
57246
57247         * m4/socklen.m4: New file.
57248
57249 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57250
57251         * modules/utimens (Files): Add m4/utimbuf.m4, since
57252         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
57253         Reported by Sergey Poznyakoff.
57254
57255 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57256
57257         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
57258         definitions, since that's the preferred style in glibc.
57259         Fix a minor spacing issue, and update copyright notice to match
57260         glibc's.
57261
57262 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57263
57264         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
57265
57266 2005-09-06  Simon Josefsson  <jas@extundo.com>
57267
57268         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
57269         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
57270
57271 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57272
57273         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
57274         warning.
57275
57276 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57277
57278         * config/srclist.txt: Add glibc bug 1302.
57279
57280 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
57281
57282         Change bitset word type from unsigned int to unsigned long int,
57283         as this has better performance on typical 64-bit hosts.
57284         Port bitset code to hosts with unusual word sizes.
57285         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
57286         (build_collating_symbol):
57287         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
57288         argument is a bitset.  This is merely a style issue, but it makes
57289         it clearer that an entire array is expected.
57290         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
57291         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
57292         Port to the case where bitset_word is not the same as unsigned int.
57293         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57294         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
57295         Likewise.
57296         * lib/regexec.c (check_dst_limits_calc_pos_1,
57297         check_subexp_matching_top):
57298         (build_trtable, group_nodes_into_DFAstates):
57299         Likewise.
57300         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
57301         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
57302         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
57303         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
57304         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
57305         * lib/regcomp.c (optimize_subexps, lower_subexp):
57306         Work even if bitset_word has holes in its bitwise representation.
57307         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
57308         * lib/regexec.c (check_dst_limits_calc_pos_1,
57309         check_subexp_matching_top):
57310         Likewise.
57311         * lib/regex_internal.c (re_string_reconstruct):
57312         Don't assume UCHAR_MAX == 255.
57313         * lib/regex_internal.h (bitset_set_all): Likewise.
57314         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
57315         All uses changed.
57316         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
57317         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
57318         All uses changed.
57319         (BITSET_WORD_MAX): New macro.
57320         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
57321         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
57322         (bitset_empty, bitset_copy):
57323         Prefer sizeof (bitset) to multiplying it out ourselves.
57324         (bitset_not_merge): Remove; unused.
57325         (bitset_contain): Return bool, not unsigned int with one bit on.
57326         All callers changed.
57327         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
57328         alignment than re_node_set; do this by defining a new internal
57329         type struct dests_alloc and using it to allocate memory.
57330
57331 2005-09-05  Bruno Haible  <bruno@clisp.org>
57332
57333         * gnulib-tool (func_import): Fix comparison in handling of symbolic
57334         links.
57335
57336 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
57337
57338         * modules/size_max (Makefile.am): Add size_max.h
57339
57340 2005-09-04  Derek Price  <derek@ximbiot.com>
57341
57342         * gnulib-tool (func_import): Fix reversed $symbolic logic.
57343
57344 2005-09-03  Simon Josefsson  <jas@extundo.com>
57345
57346         * gnulib-tool: Fix typo.
57347
57348 2005-09-03  Simon Josefsson  <jas@extundo.com>
57349
57350         * config/srclist.txt: Add glibc bug 1293.
57351
57352 2005-09-03  Derek Price  <derek@ximbiot.com>
57353
57354         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
57355         From Larry Jones <lawrence.jones@ugs.com>.
57356
57357 2005-09-02  Simon Josefsson  <jas@extundo.com>
57358
57359         * modules/socklen: New file.
57360
57361 2005-09-02  Simon Josefsson  <jas@extundo.com>
57362
57363         * modules/havelib: New module.
57364
57365         * modules/gettext, modules/iconv, modules/lock, modules/readline:
57366         Use havelib.
57367
57368 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57369
57370         Check for arithmetic overflow when calculating sizes, to prevent
57371         some buffer-overflow issues.  These patches are conservative, in the
57372         sense that when I couldn't determine whether an overflow was possible,
57373         I inserted a run-time check.
57374         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
57375         macros.
57376         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
57377         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
57378         (re_xnrealloc, re_x2nrealloc): New inline functions.
57379         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
57380         parse_bracket_exp):
57381         (build_equiv_class, build_charclass): Check for arithmetic overflow
57382         in size expression calculations.
57383         * lib/regex_internal.c (re_string_realloc_buffers):
57384         (build_wcs_upper_buffer, re_node_set_add_intersect):
57385         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
57386         (re_dfa_add_node, register_state): Likewise.
57387         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
57388         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
57389         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
57390         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
57391
57392 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57393
57394         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
57395         m4/ulonglong.m4.  Problem reported by Martin Lambers.
57396
57397 2005-09-02  Bruno Haible  <bruno@clisp.org>
57398
57399         Support for lib vs. lib64 distinction on biarch platforms.
57400         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
57401         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
57402         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
57403
57404 2005-09-02  Bruno Haible  <bruno@clisp.org>
57405
57406         * gnulib-tool (import): In the other first-use case, provide defaults
57407         as well.
57408
57409 2005-09-02  Bruno Haible  <bruno@clisp.org>
57410
57411         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
57412         patches not yet found in the latest gettext release.
57413
57414 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57415
57416         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
57417         to avoid a collision with bits/local_lim.h in glibc.
57418         All uses changed.  Problem reported by Dmitry V. Levin in
57419         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
57420
57421         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
57422         bugs in int versus size_t comparisons.
57423         (re_string_context_at): Fix bug where the code assumed that
57424         Idx is signed.
57425
57426         Use bool where appropriate.
57427         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
57428         All callers changed.
57429         (calc_eclosure_iter): Likewise, for ROOT arg.
57430         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
57431         (build_charclass_op): Likewise, for NON_MATCH arg.
57432         * lib/regex_internal.c (re_string_allocate, re_string_construct):
57433         (re_string_construct_common): Likewise, for ICASE arg.
57434         * lib/regexec.c (re_search_2_stub, re_search_stub):
57435         Likewise, for RET_LEN arg.
57436         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
57437         (set_regs): Likewise, for FL_BACKTRACK arg.
57438         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
57439         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
57440         (calc_eclosure_iter, parse_bracket_exp):
57441         Use bool for internal variables that are booleans.
57442         * lib/regexec.c (re_search_internal, check_matching,
57443         proceed_next_node):
57444         (set_regs, build_sifted_states, sift_states_bkref):
57445         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
57446         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57447         (find_collation_sequence_value):
57448         Likewise.
57449         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
57450         (re_node_set_compare):
57451         Return bool, not int. All callers changed.
57452         * lib/regexec.c (check_halt_node_context, check_dst_limits):
57453         (build_trtable, check_node_accept): Likewise.
57454         * lib/regex_internal.h: Include stdbool.h.
57455
57456         Fix bugs uncovered when converting to bool.
57457         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
57458         failure instead of charging ahead blindly.
57459         * lib/regex_internal.c (register_state): Likewise.
57460         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
57461         for freeing internal storage.
57462         (group_nodes_into_DFA_states): Use unsigned int, not int, for
57463         bitset pieces used as boolean, to avoid undefined behavior
57464         on hosts that do int overflow checking.
57465
57466 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57467
57468         * config/srclist.txt: Add glibc bugs 1285-1287.
57469
57470 2005-09-01  Jim Meyering  <jim@meyering.net>
57471
57472         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
57473         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
57474         Require gl_STAT_MACROS, too.
57475
57476 2005-09-01  Bruno Haible  <bruno@clisp.org>
57477
57478         * gnulib-tool (import): In the first-use case, provide defaults.
57479
57480 2005-09-01  Bruno Haible  <bruno@clisp.org>
57481
57482         * gnulib-tool (func_import): Remove the .tmp files.
57483
57484 2005-09-01  Bruno Haible  <bruno@clisp.org>
57485
57486         * gnulib-tool (func_import): Fix handling of symbolic links.
57487
57488 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57489
57490         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
57491         old glibc regex code mishandles strings longer than 2**31 bytes.
57492         This patch fixes this when the regex code is used in gnulib
57493         (i.e., outside glibc).
57494
57495         This patch should not affect the use of the regex code inside
57496         glibc.  No doubt this problem also needs to be handled for glibc
57497         as well, but the result will be an incompatible change to the
57498         glibc ABI, and the old ABI will have to be supported too.  That
57499         can be the the subject for another patch.
57500
57501         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
57502         governing whether the rest of this patch is active.  By default,
57503         the macro is disabled and the patch has no effect.
57504         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
57505         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
57506         (struct re_pattern_buffer, re_search, re_search_2, re_match):
57507         (re_match_2, re_set_registers): Use the new types.
57508         * lib/regex_internal.h (Idx, re_hashval_t): New types.
57509         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
57510         New macros.
57511         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
57512         (re_string_context_at, bin_tree_t, re_dfastate_t):
57513         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
57514         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
57515         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
57516         (re_string_char_size_at, re_string_wchar_at):
57517         (re_string_elem_size_at):
57518         Use the new types and macros to port to 64-bit hosts.
57519         Use unsigned types for internal values, so that the code
57520         mostly works even for arrays larger than SSIZE_MAX.
57521         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
57522         (search_duplicated_node, calc_eclosure_iter, fetch_number):
57523         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
57524         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
57525         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
57526         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
57527         (calc_inveclosure, parse_dup_op, build_range_exp):
57528         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
57529         (fetch_number, create_token_tree, mark_opt_subexp):
57530         Likewise.
57531         * lib/regex_internal.c (re_string_construct_common,
57532         create_ci_newstate):
57533         (create_cd_newstate, re_string_allocate, re_string_construct):
57534         (re_string_realloc_buffers, build_wcs_upper_buffer):
57535         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57536         (re_string_reconstruct, re_string_peek_byte_case):
57537         (re_string_fetch_byte_case, re_string_context_at):
57538         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57539         (re_node_set_init_copy, re_node_set_add_intersect):
57540         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57541         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57542         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57543         (re_acquire_state, re_acquire_state_context, register_state):
57544         Likewise.
57545         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
57546         search_cur_bkref_entry):
57547         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
57548         (re_search_internal, re_search_2_stub, re_search_stub)
57549         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
57550         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
57551         (update_cur_sifted_state, check_dst_limits):
57552         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57553         (check_subexp_limits, sift_states_bkref, merge_state_array):
57554         (check_subexp_matching_top, get_subexp, get_subexp_sub):
57555         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
57556         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57557         (expand_bkref_cache, check_node_accept_bytes):
57558         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
57559         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
57560         (acquire_init_state_context, check_halt_node_context):
57561         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
57562         (sift_states_backward, clean_state_log_if_needed):
57563         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
57564         (find_recover_state, transit_state_sb, transit_state_mb):
57565         (transit_state_bkref, build_trtable, match_ctx_clean):
57566         Likewise.
57567         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
57568         to work around an assumption that REG_MISSING is negative.
57569
57570         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
57571         (seek_collating_symbol_entry) [defined _LIBC]:
57572         (lookup_collation_sequence_value) [defined _LIBC]:
57573         (build_range_exp, build_collating_symbol) [defined _LIBC]:
57574         Use prototypes rather than old-style function definitions.
57575         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
57576         (transit_state_sb) [0]:
57577         (find_collation_sequence_value) [defined _LIBC]: Likewise.
57578
57579         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
57580         rm_eo.
57581
57582         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
57583         (optimize_subexps, lower_subexp):
57584         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
57585         since the signed shift might overflow.  Use 1u<<31 instead.
57586         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57587         Likewise.
57588         * lib/regexec.c (check_dst_limits_calc_pos_1,
57589         check_subexp_matching_top): Likewise.
57590
57591         * lib/regcomp.c (optimize_subexps, lower_subexp):
57592         Use CHAR_BIT rather than 8, for clarity.
57593         * lib/regexec.c (check_dst_limits_calc_pos_1):
57594         (check_subexp_matching_top): Likewise.
57595         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
57596         have to worry about portability issues when shifting it left.
57597         Remove no-longer-needed test for table_size > 0.
57598         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
57599         in a word, as the resulting behavior is undefined.
57600         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
57601         in one case, a <= should have been an <, and in another case the
57602         whole test was missing.
57603         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
57604         the standard name CHAR_BIT.
57605         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
57606         this is not true on one's complement and signed-magnitude hosts.
57607
57608         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
57609         next_last_offset.
57610         (struct re_dfa_t): Remove unused member states_alloc.
57611         * lib/regcomp.c (init_dfa): Don't initialize unused members.
57612
57613 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57614
57615         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
57616         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
57617         and large-file glibc and in 32-bit large-file Solaris.
57618
57619 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57620
57621         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
57622         lengths fit in regoff_t; this isn't true if regoff_t is the same
57623         width as size_t.
57624         * lib/regex.c (re_search_internal): 5th arg is LAST_START
57625         (= START + RANGE) instead of RANGE.  This avoids overflow
57626         problems when regoff_t is the same width as size_t.
57627         All callers changed.
57628         (re_search_2_stub): Check for overflow when adding the
57629         sizes of the two strings.
57630         (re_search_stub): Check for overflow when adding START
57631         to RANGE; if it occurs, substitute the extreme value.
57632
57633 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57634
57635         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
57636
57637 2005-08-31  Jim Meyering  <jim@meyering.net>
57638
57639         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
57640         a pointer-to-const.
57641         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
57642         (register_state): Likewise.
57643         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
57644         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57645         (group_nodes_into_DFAstates): Likewise.
57646
57647 2005-08-31  Jim Meyering  <jim@meyering.net>
57648
57649         * check-module: Add a FIXME comment.
57650
57651 2005-08-31  Eric Blake  <ebb9@byu.net>
57652
57653         * modules/unistd-safer (Files): Add unistd--.h.
57654         * modules/stdio-safer (Files): Add stdio--.h.
57655
57656 2005-08-31  Derek Price  <derek@ximbiot.com>
57657
57658         * lib/getdelim.c (getdelim): Return EOF on EOF.
57659         Reported by Larry Jones <lawrence.jones@ugs.com>.
57660
57661 2005-08-31  Bruno Haible  <bruno@clisp.org>
57662
57663         Avoid unnecessary diffs in the generated lib/Makefile.am.
57664         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
57665         the generated files.
57666         (func_import): Don't set cmd.
57667
57668 2005-08-31  Bruno Haible  <bruno@clisp.org>
57669
57670         * lib/strstr.c: Include <stddef.h>, for NULL.
57671         * lib/strcasestr.c: Likewise.
57672         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57673
57674 2005-08-31  Bruno Haible  <bruno@clisp.org>
57675
57676         * gnulib-tool: New option --macro-prefix.
57677         (func_import): Use macro_prefix.
57678         (import): Handle option --macro-prefix.
57679
57680 2005-08-31  Bruno Haible  <bruno@clisp.org>
57681
57682         * gnulib-tool (import): Rename most ac_* variables to cached_*.
57683         Also use new variables cached_lgpl, cached_libtool.
57684
57685 2005-08-31  Bruno Haible  <bruno@clisp.org>
57686
57687         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
57688         always instantiating them.
57689
57690 2005-08-31  Bruno Haible  <bruno@clisp.org>
57691
57692         * gnulib-tool (func_import): Read the previous cached settings
57693         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
57694         earlier added by gnulib but are now dropped. Warn when a gnulib file
57695         overwrites a non-gnulib file.
57696
57697 2005-08-31  Bruno Haible  <bruno@clisp.org>
57698
57699         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
57700         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
57701         projects that don't keep autogenerated files in CVS. Put into
57702         actioncmd only the specified modules, not the transitive closure.
57703
57704 2005-08-31  Bruno Haible  <bruno@clisp.org>
57705
57706         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
57707         Create directories that shall be filled.
57708         (import): Don't look for gl_* macros in configure.ac. Recurse across
57709         all directories containing a gnulib-cache.m4 files, if meaningful.
57710
57711 2005-08-31  Bruno Haible  <bruno@clisp.org>
57712
57713         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
57714         (import): Set seen_libtool when we see gl_LIBTOOL.
57715
57716 2005-08-31  Bruno Haible  <bruno@clisp.org>
57717
57718         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
57719         declaration macro definitions from generated gnulib.m4.
57720
57721 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
57722
57723         * lib/iconvme.h: Add prototype for iconv_alloc.
57724
57725 2005-08-29  Simon Josefsson  <jas@extundo.com>
57726
57727         * lib/iconvme.c: Fix errno.
57728
57729 2005-08-29  Bruno Haible  <bruno@clisp.org>
57730
57731         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
57732         that it works when the directory contains spaces.
57733
57734 2005-08-29  Bruno Haible  <bruno@clisp.org>
57735
57736         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
57737
57738 2005-08-29  Bruno Haible  <bruno@clisp.org>
57739
57740         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
57741         Emit more advice.
57742
57743 2005-08-29  Bruno Haible  <bruno@clisp.org>
57744         and Stepan Kasal  <kasal@ucw.cz>
57745
57746         * check-module: If more parameters are given, check each of them
57747         separately; add more exceptions, as noted by Jim Meyering.
57748         (check_module): New procedure.
57749         (%exempt_header): Now contains all exceptions.
57750
57751 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
57752
57753         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
57754
57755 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57756
57757         * lib/iconvme.c: Split iconv_string into iconv_alloc.
57758
57759 2005-08-28  Bruno Haible  <bruno@clisp.org>
57760
57761         * m4/gnulib-tool.m4: New file.
57762
57763 2005-08-27  Jim Meyering  <jim@meyering.net>
57764
57765         * modules/unistd-safer (Files): Add pipe-safer.c.
57766         * modules/fcntl-safer (Files): Add creat-safer.c.
57767
57768 2005-08-27  Jim Meyering  <jim@meyering.net>
57769
57770         * m4/stdlib-safer.m4: New file.  From coreutils.
57771         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
57772         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
57773         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
57774         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
57775         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
57776
57777 2005-08-27  Jim Meyering  <jim@meyering.net>
57778
57779         * lib/fopen-safer.c: Merge minor changes from coreutils.
57780         * lib/dup-safer.c: Likewise.
57781         * lib/fd-safer.c: Likewise.
57782
57783         Merge from coreutils.
57784         * lib/stdio--.h: New file.
57785         * lib/stdlib--.h: New file.
57786         * lib/mkstemp-safer.c: New file.
57787
57788         GNU tar needs these.
57789         * lib/pipe-safer.c: New file.
57790         * lib/creat-safer.c: New file.
57791         * lib/fcntl--.h (creat): Define to creat_safer.
57792         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
57793         * lib/unistd--.h (pipe): Define to pipe_safer.
57794         * lib/unistd-safer.h: Declare pipe_safer.
57795
57796 2005-08-26  Simon Josefsson  <jas@extundo.com>
57797
57798         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
57799         Haible <bruno@clisp.org>.
57800
57801 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
57802
57803         * lib/regex_internal.h: Remove all references to
57804         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
57805         or better.
57806         (bitset_not, bitset_merge, bitset_not_merge):
57807         (bitset_mask, re_string_allocate, re_string_construct):
57808         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
57809         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
57810         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
57811         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
57812         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57813         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57814         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
57815         (re_acquire_state_context):
57816         Remove unnecessary forward decls.
57817         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
57818         Put __attribute at function definition,
57819         now that the function decl has been removed.
57820         * lib/regex_internal.c (re_string_peek_byte_case):
57821         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
57822         Likewise.
57823
57824 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
57825
57826         * m4/regex.m4: Add AC_PREREQ(2.50).
57827         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
57828
57829 2005-08-25  Simon Josefsson  <jas@extundo.com>
57830
57831         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
57832         __fsetlocking.
57833
57834 2005-08-25  Simon Josefsson  <jas@extundo.com>
57835
57836         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
57837         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
57838         GLIBC specific code.
57839
57840 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57841
57842         Make regex safe for g++.  This fixes one real bug (an "err"
57843         that should have been "*err").  g++ problem reported by
57844         Sam Steingold.
57845         * lib/regex_internal.h (re_calloc): New macro, consistent with
57846         re_malloc etc.  All callers of calloc changed to use re_calloc.
57847         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
57848         not int.  All callers changed.
57849         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
57850         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
57851         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
57852         (find_recover_state): Change "err" to "*err"; this fixes what
57853         appears to be a real bug.
57854         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
57855         versus int.
57856
57857 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57858
57859         * modules/regex (Depends-on): Add malloc, since the code
57860         assumes that !malloc(0) means failure.
57861
57862 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57863
57864         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
57865
57866         alloca modernization/simplification for regex.
57867         * lib/regex.c: Remove portability cruft for alloca.  This no longer
57868         needs to be at the start of the file, and can be moved into
57869         regex_internal.h and simplified.
57870         * lib/regex_internal.h: Include <alloca.h>.
57871         (__libc_use_alloca) [!defined _LIBC]: New macro.
57872         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
57873         now works outside glibc.
57874
57875 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57876
57877         * config/srclist.txt: Add glibc bugs 1241, 1245.
57878
57879 2005-08-25  Jim Meyering  <jim@meyering.net>
57880
57881         * lib/open-safer.c: Include <config.h>.
57882         Otherwise, we'd lose LARGEFILE support in any file using
57883         e.g. "fcntl--.h"
57884
57885 2005-08-25  Bruno Haible  <bruno@clisp.org>
57886
57887         * m4/minmax.m4: Require autoconf 2.52.
57888         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
57889         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
57890         alternatives of translit over the alphabet.
57891         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
57892
57893 2005-08-24  Simon Josefsson  <jas@extundo.com>
57894
57895         * tests/test-getpass.c: New file.
57896
57897 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57898
57899         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
57900         for GNU regex features.
57901
57902 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57903
57904         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
57905         * lib/regex.h (regerror): Likewise.
57906
57907         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
57908         requires this.  (The code never needed it.)
57909
57910         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
57911         All uses of recently-renamed identifiers changed to use the new,
57912         POSIX-compliant names.  The code will build and run just fine
57913         without these changes, but it's better to eat our own dog food
57914         and use the standard-conforming names.
57915
57916         * lib/regex.h: Fix a multitude of POSIX name space violations.
57917         These changes have an effect only for programs that define
57918         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
57919         do not change anything for programs compiled in the normal way.
57920         Also, there is no effect on the ABI.
57921
57922         (_REGEX_SOURCE): New macro.
57923         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
57924         defined and _GNU_SOURCE is not; this fixes a name space violation.
57925
57926         Rename the following macros to obey POSIX requirements.
57927         The old names are still visible as macros if _REGEX_SOURCE is defined.
57928         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
57929         RE_BACKSLASH_ESCAPE_IN_LISTS.
57930         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
57931         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
57932         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
57933         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
57934         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
57935         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
57936         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
57937         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
57938         (REG_INTERVALS): renamed from RE_INTERVALS.
57939         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
57940         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
57941         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
57942         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
57943         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
57944         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
57945         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
57946         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
57947         RE_UNMATCHED_RIGHT_PAREN_ORD.
57948         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
57949         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
57950         (REG_DEBUG): renamed from RE_DEBUG.
57951         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
57952         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
57953         unusual, since we can't clash with the POSIX REG_ICASE.
57954         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
57955         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
57956         (REG_NO_SUB): renamed from RE_NO_SUB.
57957         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
57958         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
57959         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
57960         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
57961         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
57962         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
57963         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
57964         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
57965         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
57966         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
57967         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
57968         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
57969         RE_SYNTAX_POSIX_MINIMAL_BASIC.
57970         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
57971         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
57972         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
57973         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
57974         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
57975         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
57976         (REG_FIXED): Renamed from REGS_FIXED.
57977         (REG_NREGS): Renamed from RE_NREGS.
57978
57979         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
57980         of other REG_* macros, since POSIX says the user is allowed to
57981         #undef these macros selectively.
57982
57983         (reg_errcode_t): Update comment stating what other tables need
57984         to be consistent.
57985
57986         Rename the following enum values to obey POSIX requirements.
57987         The old names are still visible as macros.
57988         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
57989         is not defined, since GNU is supposed to be a superset of POSIX as
57990         much as possible, and since we want reg_errcode_t to be a signed
57991         type for implementation consistency.
57992         (_REG_NOERROR): Renamed from REG_NOERROR.
57993         (_REG_NOMATCH): Renamed from REG_NOMATCH.
57994         (_REG_BADPAT): Renamed from REG_BADPAT.
57995         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
57996         (_REG_ECTYPE): Renamed from REG_ECTYPE.
57997         (_REG_EESCAPE): Renamed from REG_EESCAPE.
57998         (_REG_ESUBREG): Renamed from REG_ESUBREG.
57999         (_REG_EBRACK): Renamed from REG_EBRACK.
58000         (_REG_EPAREN): Renamed from REG_EPAREN.
58001         (_REG_EBRACE): Renamed from REG_EBRACE.
58002         (_REG_BADBR): Renamed from REG_BADBR.
58003         (_REG_ERANGE): Renamed from REG_ERANGE.
58004         (_REG_ESPACE): Renamed from REG_ESPACE.
58005         (_REG_BADRPT): Renamed from REG_BADRPT.
58006         (_REG_EEND): Renamed from REG_EEND.
58007         (_REG_ESIZE): Renamed from REG_ESIZE.
58008         (_REG_ERPAREN): Renamed from REG_ERPAREN.
58009         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
58010         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
58011         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
58012         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
58013
58014         (_REG_RE_NAME, _REG_RM_NAME): New macros.
58015         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
58016         changed.  But support the old name if the new one is not defined
58017         and if _REGEX_SOURCE.
58018
58019         Change the following member names in struct re_pattern_buffer.
58020         The old names are still supported if !_REGEX_SOURCE.
58021         The new names are always supported, regardless of _REGEX_SOURCE.
58022         (re_buffer): Renamed from buffer.
58023         (re_allocated): Renamed from allocated.
58024         (re_used): Renamed from used.
58025         (re_syntax): Renamed from syntax.
58026         (re_fastmap): Renamed from fastmap.
58027         (re_translate): Renamed from translate.
58028         (re_can_be_null): Renamed from can_be_null.
58029         (re_regs_allocated): Renamed from regs_allocated.
58030         (re_fastmap_accurate): Renamed from fastmap_accurate.
58031         (re_no_sub): Renamed from no_sub.
58032         (re_not_bol): Renamed from not_bol.
58033         (re_not_eol): Renamed from not_eol.
58034         (re_newline_anchor): Renamed from newline_anchor.
58035
58036         Change the following member names in struct re_registers.
58037         The old names are still supported if !_REGEX_SOURCE.
58038         The new names are always supported, regardless of _REGEX_SOURCE.
58039         (rm_num_regs): Renamed from num_regs.
58040         (rm_start): Renamed from start.
58041         (rm_end): Renamed from end.
58042
58043         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
58044         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
58045         Prepend __ to parameter names.
58046
58047         Undo yesterday's changes.
58048
58049 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58050
58051         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
58052         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
58053         lib/regex.c.
58054
58055 2005-08-24  Jim Meyering  <jim@meyering.net>
58056
58057         Sync from coreutils.
58058         * m4/fcntl-safer.m4: New file.
58059
58060         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
58061         and object files for this module.
58062
58063 2005-08-24  Jim Meyering  <jim@meyering.net>
58064
58065         Sync from coreutils.
58066         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
58067
58068 2005-08-24  Jim Meyering  <jim@meyering.net>
58069
58070         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
58071         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
58072
58073 2005-08-24  Jim Meyering  <jim@meyering.net>
58074
58075         * modules/fcntl-safer: New module.
58076         * modules/fts (Depends-on): Add fcntl-safer.
58077         * MODULES.html.sh (File descriptor based Input/Output):
58078         Add fcntl-safer.
58079
58080 2005-08-24  Bruno Haible  <bruno@clisp.org>
58081
58082         Support for unit test modules.
58083         * modules/README: Mention tests modules.
58084         * modules/TEMPLATE-TESTS: New file.
58085         * gnulib-tool: New options --extract-tests-module, --with-tests and
58086         --tests-base (unused for the moment).
58087         (testsbase, inctests): New variables.
58088         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
58089         (func_verify_module): Exclude TEMPLATE-TESTS.
58090         (func_verify_nontests_module, func_verify_tests_module): New functions.
58091         (func_get_dependencies): Add implicit dependency for tests modules.
58092         (func_get_tests_module): New function.
58093         (func_modules_transitive_closure): When --with-tests was specified,
58094         include the unit tests as well, unless explicitly avoided.
58095         (func_emit_lib_Makefile_am): Ignore the tests modules here.
58096         (func_emit_tests_Makefile_am): New function.
58097         (func_create_testdir): When --with-tests was specified, emit a
58098         tests/ directory.
58099         * MODULES.html.sh (Future developments): Update.
58100
58101 2005-08-24  Bruno Haible  <bruno@clisp.org>
58102
58103         * modules/tls-tests: New file.
58104         * tests/test-tls.c: New file, from GNU gettext.
58105
58106 2005-08-24  Bruno Haible  <bruno@clisp.org>
58107
58108         * modules/lock-tests: New file.
58109         * tests/test-lock.c: New file, from GNU gettext.
58110
58111 2005-08-24  Bruno Haible  <bruno@clisp.org>
58112
58113         * lib/lock.h: Add multiple inclusion guard.
58114         * lib/tls.h: Add multiple inclusion guard.
58115
58116 2005-08-24  Bruno Haible  <bruno@clisp.org>
58117
58118         * gnulib-tool: Add support for the --aux-dir option to
58119         --create-testdir, --create-megatestdir, --test, --megatest.
58120         (func_create_testdir, func_create_megatestdir): Optionally emit a
58121         AC_CONFIG_AUX_DIR directive.
58122         (create-testdir, create-megatestdir, test, megatest): Provide a
58123         default value for $auxdir.
58124
58125 2005-08-24  Bruno Haible  <bruno@clisp.org>
58126
58127         * gnulib-tool (import): Use compound statement instead of subshell
58128         where possible.
58129
58130 2005-08-24  Bruno Haible  <bruno@clisp.org>
58131
58132         * gnulib-tool (import): Change --aux-dir default to "build-aux".
58133
58134 2005-08-24  Bruno Haible  <bruno@clisp.org>
58135
58136         * gnulib-tool (func_version): Update.
58137
58138 2005-08-24  Bruno Haible  <bruno@clisp.org>
58139
58140         * gnulib-tool (func_import, func_create_testdir,
58141         func_create_megatestdir): Quote all autoconf macro arguments.
58142
58143 2005-08-24  Bruno Haible  <bruno@clisp.org>
58144
58145         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
58146         option --force, because --force causes the aclocal.m4 of each
58147         subdirectory to be newer than the corresponding config.h.in.
58148
58149 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58150
58151         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
58152         All contents moved to gl_REGEX.
58153         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
58154         assume that it does.
58155
58156 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58157
58158         * lib/regex.h (REG_NOSYS)
58159         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
58160         Define, since POSIX requires it as of 2001.
58161         (_REG_ENOSYS)
58162         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
58163         New private symbol, used to keep the enum signed in all cases.
58164         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
58165         Youngman in
58166         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
58167
58168         * lib/regex_internal.c (re_string_skip_chars, register_state):
58169         (calc_state_hash):
58170         Remove forward decls; no longer needed now that we use prototypes.
58171         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
58172         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
58173         (clean_state_log_if_needed): Likewise.
58174
58175 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58176
58177         * config/srclist.txt: Add glibc bugs 1231-1233.
58178
58179 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58180
58181         Fix problems reported by Sam Steingold in
58182         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
58183         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
58184         assumed that reg_errcode_t is a signed type, which is not
58185         necessarily true if _XOPEN_SOURCE is not defined.
58186         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
58187         since some compilers warn about it otherwise.
58188
58189 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58190
58191         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
58192         (init_word_char, create_initial_state, duplicate_node_closure):
58193         (fetch_token, peek_token_bracket, build_range_exp):
58194         (build_collating_symbol): Remove forward decls; no longer needed
58195         now that we use prototypes.
58196
58197         * lib/regcomp.c:
58198         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
58199         (re_compile_fastmap_iter, regcomp, regerror, regfree):
58200         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
58201         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
58202         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
58203         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
58204         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
58205         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
58206         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
58207         (build_range_exp, build_collating_symbol, parse_bracket_exp):
58208         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
58209         (build_charclass, build_charclass_op, fetch_number, create_tree):
58210         (create_token_tree, mark_opt_subexp, duplicate_tree):
58211         Use prototypes rather than old-style definitions.
58212
58213         * lib/regex_internal.c:
58214         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
58215         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
58216         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58217         (re_string_reconstruct, re_string_peek_byte_case):
58218         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
58219         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58220         (re_node_set_init_copy, re_node_set_add_intersect):
58221         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58222         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58223         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58224         (re_acquire_state, re_acquire_state_context, register_state):
58225         (create_ci_newstate, create_cd_newstate, free_state):
58226         Likewise.
58227         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
58228         re_search_2):
58229         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
58230         (re_search_internal, prune_impossible_nodes):
58231         (acquire_init_state_context, check_matching, static):
58232         (check_halt_node_context, check_halt_state_context, proceed_next_node):
58233         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
58234         (update_regs, sift_states_backward, build_sifted_states):
58235         (clean_state_log_if_needed, merge_state_array):
58236         (update_cur_sifted_state, add_epsilon_src_nodes):
58237         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
58238         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
58239         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
58240         (find_recover_state, check_subexp_matching_top, transit_state_mb):
58241         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
58242         (check_arrival, check_arrival_add_next_nodes):
58243         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58244         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58245         (check_node_accept_bytes, check_node_accept, extend_buffers):
58246         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
58247         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
58248         (sift_ctx_init):
58249         Likewise.
58250
58251         * lib/regex_internal.h:
58252         (re_string_allocate, re_string_construct, re_string_reconstruct):
58253         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
58254         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
58255         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
58256         (re_string_context_at, re_string_peek_byte_case):
58257         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
58258         is defined, since we now use prototypes always.
58259
58260         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
58261         C89 or better.  All uses removed.
58262
58263 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58264
58265         * config/srclist.txt: Add glibc bugs 1220-1227.
58266
58267 2005-08-20  Jim Meyering  <jim@meyering.net>
58268
58269         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
58270         of unused local, dfa.
58271
58272 2005-08-20  Bruno Haible  <bruno@clisp.org>
58273
58274         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
58275
58276 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58277
58278         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
58279         (re_node_set_insert_last, re_dfa_add_node):
58280         Rename local variables to avoid GCC shadowing warnings.
58281
58282 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58283
58284         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
58285         [defined lint]: Suppress bogus uninitialized-variable warnings.
58286
58287         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
58288         and let the caller return REG_ESPACE if out of space.  This
58289         removes an uninitialied-variable warning with GCC 4.0.1, and also
58290         avoids taking the address of a local variable.  All callers
58291         changed.
58292
58293 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58294
58295         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
58296         $LIBCSRC/posix/regexec.c.
58297         Add glibc bug 1217 for regcomp.c.
58298
58299 2005-08-19  Jim Meyering  <jim@meyering.net>
58300
58301         * lib/regexec.c (proceed_next_node): Redo local variables to
58302         avoid GCC shadowing warnings.
58303
58304 2005-08-18  Bruno Haible  <bruno@clisp.org>
58305
58306         * lib/strstr.c (strstr): Fix return value in multibyte case.
58307         * lib/strcasestr.c (strcasestr): Likewise.
58308
58309 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58310
58311         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
58312
58313 2005-08-17  Jim Meyering  <jim@meyering.net>
58314
58315         Make the %s format (seconds since the epoch) work for a negative
58316         number and when used with a zero-padded field width, e.g. %015s.
58317
58318         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
58319         label so that it precedes the code to set `digits'.  Otherwise,
58320         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
58321         print `00-22'.  Now, it prints `-0022', as it should.
58322
58323 2005-08-17  Bruno Haible  <bruno@clisp.org>
58324
58325         * modules/strstr (Files): Add m4/mbrtowc.m4.
58326         (Depends-on): Add mbuiter.
58327
58328 2005-08-17  Bruno Haible  <bruno@clisp.org>
58329
58330         * modules/strcasestr: New file.
58331         * MODULES.html.sh (String handling, based on ANSI C 89): Add
58332         strcasestr.
58333
58334 2005-08-17  Bruno Haible  <bruno@clisp.org>
58335
58336         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
58337
58338 2005-08-17  Bruno Haible  <bruno@clisp.org>
58339
58340         * modules/mbuiter: New file.
58341         * MODULES.html.sh (Extended multibyte and wide character utilities):
58342         Add mbuiter.
58343
58344 2005-08-17  Bruno Haible  <bruno@clisp.org>
58345
58346         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
58347         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
58348
58349 2005-08-17  Bruno Haible  <bruno@clisp.org>
58350
58351         * m4/strcasestr.m4: New file.
58352
58353 2005-08-17  Bruno Haible  <bruno@clisp.org>
58354
58355         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
58356         * lib/strstr.c: Completely rewritten, with multibyte locale support.
58357
58358 2005-08-17  Bruno Haible  <bruno@clisp.org>
58359
58360         * lib/strcasestr.h: New file.
58361         * lib/strcasestr.c: New file.
58362
58363 2005-08-17  Bruno Haible  <bruno@clisp.org>
58364
58365         * lib/strcasecmp.c: Use mbuiter.h.
58366
58367 2005-08-17  Bruno Haible  <bruno@clisp.org>
58368
58369         * lib/mbuiter.h: New file.
58370
58371 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58372
58373         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
58374         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
58375         and gl_GETOPT are both invoked via different paths (as happens
58376         with GNU tar CVS because it uses both argp and getopt), the former
58377         wins.
58378
58379 2005-08-16  Bruno Haible  <bruno@clisp.org>
58380
58381         * modules/tls: New file.
58382         * MODULES.html.sh (Multithreading): Add tls.
58383
58384 2005-08-16  Bruno Haible  <bruno@clisp.org>
58385
58386         * modules/strnlen1: New file.
58387         * MODULES.html.sh (String handling): Add strnlen1.
58388
58389 2005-08-16  Bruno Haible  <bruno@clisp.org>
58390
58391         * modules/strcase (Files): Add m4/mbrtowc.m4.
58392         (Depends-on): Add strnlen1, mbchar.
58393
58394 2005-08-16  Bruno Haible  <bruno@clisp.org>
58395
58396         * modules/mbiter: New file.
58397         * MODULES.html.sh (Extended multibyte and wide character utilities):
58398         Add mbiter.
58399
58400 2005-08-16  Bruno Haible  <bruno@clisp.org>
58401
58402         * modules/mbfile: New file.
58403         * MODULES.html.sh (Extended multibyte and wide character utilities):
58404         Add mbfile.
58405
58406 2005-08-16  Bruno Haible  <bruno@clisp.org>
58407
58408         * modules/mbchar: New file.
58409         * MODULES.html.sh (Extended multibyte and wide character utilities):
58410         New section.
58411
58412 2005-08-16  Bruno Haible  <bruno@clisp.org>
58413
58414         * m4/tls.m4: New file, from GNU gettext.
58415
58416 2005-08-16  Bruno Haible  <bruno@clisp.org>
58417
58418         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
58419         always.
58420         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
58421
58422 2005-08-16  Bruno Haible  <bruno@clisp.org>
58423
58424         * m4/mbiter.m4: New file.
58425
58426 2005-08-16  Bruno Haible  <bruno@clisp.org>
58427
58428         * m4/mbfile.m4: New file.
58429
58430 2005-08-16  Bruno Haible  <bruno@clisp.org>
58431
58432         * m4/mbchar.m4: New file.
58433
58434 2005-08-16  Bruno Haible  <bruno@clisp.org>
58435
58436         * lib/tls.h: New file, from GNU gettext.
58437         * lib/tls.c: New file, from GNU gettext.
58438
58439 2005-08-16  Bruno Haible  <bruno@clisp.org>
58440
58441         * lib/strnlen1.h: New file.
58442         * lib/strnlen1.c: New file.
58443
58444 2005-08-16  Bruno Haible  <bruno@clisp.org>
58445
58446         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
58447         (mbi_init): Update.
58448         (mbi_avail, mbi_advance): Let the iteration end before the terminating
58449         NUL byte, not after it.
58450
58451 2005-08-16  Bruno Haible  <bruno@clisp.org>
58452
58453         * lib/strcase.h (strcasecmp): Add note in comments.
58454         * lib/strncasecmp.c: Use code from strcasecmp.c.
58455         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
58456         (strcasecmp): Work correctly in multibyte locales.
58457
58458 2005-08-16  Bruno Haible  <bruno@clisp.org>
58459
58460         * lib/mbiter.h: New file.
58461
58462 2005-08-16  Bruno Haible  <bruno@clisp.org>
58463
58464         * lib/mbfile.h: New file.
58465
58466 2005-08-16  Bruno Haible  <bruno@clisp.org>
58467
58468         * lib/mbchar.h: New file.
58469         * lib/mbchar.c: New file.
58470
58471 2005-08-16  Bruno Haible  <bruno@clisp.org>
58472
58473         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
58474         the valid ones. Makes the comparison operations transitive:
58475         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
58476         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
58477
58478 2005-08-15  Simon Josefsson  <jas@extundo.com>
58479
58480         * modules/ssize_t (License): Change to 'unlimited'.
58481
58482         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
58483
58484 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58485
58486         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
58487         Add comments for each pending glibc patch.
58488
58489 2005-08-15  Bruno Haible  <bruno@clisp.org>
58490
58491         * lib/regex.h (__restrict_arr): Don't define to __restrict if
58492         __cplusplus is defined.
58493
58494 2005-08-14  Jim Meyering  <jim@meyering.net>
58495
58496         Sync from coreutils.
58497
58498         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
58499         Use the hash-table-based cycle-detection code not just when
58500         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
58501         Reported by James Youngman in
58502         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
58503         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
58504         FTS_TIGHT_CYCLE_CHECK.
58505         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
58506         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
58507         once again.
58508         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
58509         * lib/fts.c (fd_safer): Remove decl.
58510         Include fcntl--.h rather than unistd-safer.h
58511         (fts_safe_changedir): Don't call fd_safer; no longer needed
58512         now that we include fcntl--.h.
58513
58514 2005-08-12  Simon Josefsson  <jas@extundo.com>
58515
58516         * modules/getndelim2: Use ssize_t module.
58517         * modules/getnline: Likewise.
58518         * modules/safe-read: Likewise.
58519         * modules/xreadlink: Likewise.
58520
58521         * modules/ssize_t: New file.
58522
58523 2005-08-12  Simon Josefsson  <jas@extundo.com>
58524
58525         * m4/readline.m4: Look for termcap, curses or ncurses if required.
58526
58527 2005-08-12  Simon Josefsson  <jas@extundo.com>
58528
58529         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58530         ssize_t.
58531
58532 2005-08-12  Simon Josefsson  <jas@extundo.com>
58533
58534         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
58535         readline, getdelim and check_version.
58536         (Support for systems lacking ISO C 99: Sizes of integer types):
58537         Add size_max.
58538
58539 2005-08-12  Bruno Haible  <bruno@clisp.org>
58540
58541         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
58542
58543 2005-08-11  Simon Josefsson  <jas@extundo.com>
58544
58545         * modules/readline: New file.
58546
58547         * modules/strnlen (Files): Add strnlen.h.
58548
58549 2005-08-11  Simon Josefsson  <jas@extundo.com>
58550
58551         * m4/readline.m4: New file.
58552
58553 2005-08-11  Simon Josefsson  <jas@extundo.com>
58554
58555         * lib/readline.h, readline.c: New file.
58556
58557 2005-08-11  Simon Josefsson  <jas@extundo.com>
58558
58559         * doc/gnulib.texi (Initial import, Finishing touches): Mention
58560         gl_AVOID.
58561
58562 2005-08-11  Bruno Haible  <bruno@clisp.org>
58563
58564         * lib/strnlen.h (strnlen): Change parameter name to match comment.
58565
58566 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
58567
58568         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
58569
58570 2005-08-10  Simon Josefsson  <jas@extundo.com>
58571
58572         * tests/test-iconvme.c: New file.
58573
58574 2005-08-10  Simon Josefsson  <jas@extundo.com>
58575
58576         * m4/strnlen.m4: New file.
58577
58578         * m4/strndup.m4: Don't check for strnlen declaration, done in
58579         strnlen.m4.
58580
58581 2005-08-10  Simon Josefsson  <jas@extundo.com>
58582
58583         * lib/strndup.c: Use strnlen.h.
58584
58585         * lib/strnlen.h: New file.
58586
58587 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58588
58589         * README: Typos.
58590
58591 2005-08-02  Simon Josefsson  <jas@extundo.com>
58592
58593         * modules/readline: New file.
58594
58595 2005-08-02  Simon Josefsson  <jas@extundo.com>
58596
58597         * modules/getdelim: New file.
58598
58599         * modules/getline: Rewrite, don't use getndelim2.
58600
58601 2005-08-02  Simon Josefsson  <jas@extundo.com>
58602
58603         * m4/getline.m4: Separate out getdelim stuff into separate module.
58604
58605         * m4/getdelim.m4: New file.
58606
58607 2005-08-02  Simon Josefsson  <jas@extundo.com>
58608
58609         * lib/getline.h, getline.c: Rewrite.
58610
58611         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
58612
58613 2005-07-31  Bruno Haible  <bruno@clisp.org>
58614
58615         * lib/lock.h (gl_lock_initializer): New macro.
58616         (gl_lock_define_initialized): Use it.
58617         (gl_rwlock_initializer): New macro.
58618         (gl_rwlock_define_initialized): Use it.
58619         (gl_recursive_lock_initializer): New macro.
58620         (gl_recursive_lock_define_initialized): Use it.
58621
58622 2005-07-30  Karl Berry  <karl@gnu.org>
58623
58624         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
58625         Report from Ben Pfaff, regarding getopt.
58626
58627 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
58628
58629         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
58630         normal way.
58631         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
58632         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
58633         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
58634         (gl_GETOPT): Use the new macros.  Most of the implementation
58635         is moved to the new macros.  This is for programs like Emacs
58636         that don't want all the functionality of gl_GETOPT.
58637
58638 2005-07-26  Bruno Haible  <bruno@clisp.org>
58639
58640         * m4/lock.m4: Update from GNU gettext.
58641
58642 2005-07-26  Bruno Haible  <bruno@clisp.org>
58643
58644         * lib/lock.h: Update from GNU gettext.
58645         * lib/lock.c: Update from GNU gettext.
58646
58647 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
58648
58649         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
58650         obsolescent AC_TRY_RUN.  Include the default includes files, for
58651         'exit'.
58652
58653 2005-07-24  Bruno Haible  <bruno@clisp.org>
58654
58655         * modules/visibility: New file.
58656         * MODULES.html.sh (Misc): Add visibility.
58657
58658 2005-07-24  Bruno Haible  <bruno@clisp.org>
58659
58660         * m4/visibility.m4: New file.
58661
58662 2005-07-24  Bruno Haible  <bruno@clisp.org>
58663
58664         * doc/visibility.texi: New file.
58665
58666 2005-07-22  Bruno Haible  <bruno@clisp.org>
58667
58668         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
58669         $(ALLOCA_H), redundant through BUILT_SOURCES.
58670         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
58671         redundant through BUILT_SOURCES.
58672         * modules/byteswap (Makefile.am): Remove explicit dependency on
58673         $(BYTESWAP_H), redundant through BUILT_SOURCES.
58674         * modules/fnmatch (Makefile.am): Remove explicit dependency on
58675         $(FNMATCH_H), redundant through BUILT_SOURCES.
58676         * modules/getopt (Makefile.am): Remove explicit dependency on
58677         $(GETOPT_H), redundant through BUILT_SOURCES.
58678         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
58679         redundant through BUILT_SOURCES.
58680         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
58681         redundant through BUILT_SOURCES.
58682         * modules/stdbool (Makefile.am): Remove explicit dependency on
58683         $(STDBOOL_H), redundant through BUILT_SOURCES.
58684         * modules/stdint (Makefile.am): Remove explicit dependency on
58685         $(STDINT_H), redundant through BUILT_SOURCES.
58686         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
58687         Remove explicit dependency on $(SYSEXITS_H).
58688         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
58689
58690 2005-07-18  Simon Josefsson  <jas@extundo.com>
58691
58692         * lib/check-version.c (check_version): Accept identical versions too.
58693
58694 2005-07-18  Bruno Haible  <bruno@clisp.org>
58695
58696         * modules/lock: New file.
58697         * MODULES.html.sh (Multithreading): New section.
58698
58699 2005-07-18  Bruno Haible  <bruno@clisp.org>
58700
58701         * m4/lock.m4: New file, from GNU gettext.
58702
58703 2005-07-18  Bruno Haible  <bruno@clisp.org>
58704
58705         * lib/lock.h: New file, from GNU gettext.
58706         * lib/lock.c: New file, from GNU gettext.
58707
58708 2005-07-18  Bruno Haible  <bruno@clisp.org>
58709
58710         * lib/lock.h (gl_once_t): New type.
58711         (gl_once_define, gl_once): New macros.
58712         * lib/lock.c (fresh_once): New variable.
58713         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
58714         functions.
58715
58716 2005-07-16  Simon Josefsson  <jas@extundo.com>
58717
58718         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
58719         workaround, suggested by Bruno.
58720
58721 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58722
58723         * modules/xalloc (Depends-on): Add xalloc-die.
58724         * modules/xvasprintf (Depends-on): Add xalloc-die.
58725
58726 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58727
58728         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
58729         with a minor change.
58730
58731 2005-07-15  Bruno Haible  <bruno@clisp.org>
58732
58733         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
58734         When using lib/poll.c, define poll as rpl_poll.
58735
58736 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
58737
58738         * modules/argp (Depends-on): Remove unlocked-io.
58739
58740 2005-07-14  Derek Price  <derek@ximbiot.com>
58741
58742         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
58743         for glob symlink bug.
58744
58745 2005-07-14  Bruno Haible  <bruno@clisp.org>
58746
58747         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
58748         Instead, test for *_unlocked function declarations directly.
58749
58750 2005-07-11  Simon Josefsson  <jas@extundo.com>
58751
58752         * modules/size_max: New file.
58753
58754         * modules/xsize: Depend on size_max module for size_max.m4.
58755
58756 2005-07-11  Simon Josefsson  <jas@extundo.com>
58757
58758         * lib/size_max.h: New file.
58759
58760 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
58761
58762         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
58763         copyright symbol and the year.
58764         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
58765         (version_etc_va): Use parameterized copyright notice.
58766         Reword to conform to the current GNU coding standards.
58767
58768 2005-07-11  Karl Berry  <karl@gnu.org>
58769
58770         * doc/gnulib.texi (Quoting): new node.
58771         (Initial import): more info, from Patrice.
58772
58773 2005-07-11  Bruno Haible  <bruno@clisp.org>
58774
58775         * gnulib-tool (func_usage): Document option --avoid.
58776         (Command line options): Handle --avoid.
58777         (func_acceptable): New function.
58778         (func_modules_transitive_closure): Use it.
58779
58780 2005-07-11  Bruno Haible  <bruno@clisp.org>
58781
58782         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
58783         Reported by Jim Meyering.
58784
58785 2005-07-10  Bruno Haible  <bruno@clisp.org>
58786
58787         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
58788         Needed when size_t is smaller than 'unsigned int'.
58789         Reported by Paul Eggert.
58790
58791 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58792
58793         * modules/argp (Depends-on): Add unlocked-io
58794
58795 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58796
58797         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
58798         block of defines.
58799
58800 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58801
58802         * config/srclist.txt: Comment out regcomp.c, since we have a porting
58803         fix now.
58804
58805 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
58806         and Paul Eggert  <eggert@cs.ucla.edu>
58807
58808         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
58809         in wint_t, not wchar_t.  Remove now-unnecessary cast.
58810
58811 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58812
58813         * modules/regex (Files): Add lib/regex_internal.c,
58814         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
58815         (Depends-on): Add extensions.
58816         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
58817
58818 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58819
58820         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
58821         pathconf.
58822         * m4/same.m4 (gl_SAME): Likewise.
58823         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
58824
58825         * m4/regex.m4: Adjust to new libc regex implementation.
58826         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
58827         all the .c and .h parts of (the new) regex.
58828         Quote the m4 stuff better.
58829         Check for RE_ICASE bug of old gnulib.
58830         Check for REG_STARTEND of recent libc.
58831         Rename local variables from jm_* to gl_*.
58832         Quote operand of "test -f".
58833         Say "recent enough" version of libc, not "version 2".
58834         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
58835         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
58836         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
58837         Remove check for btowc, isascii.
58838         Require AM_LANGINFO_CODESET.
58839
58840 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58841
58842         * lib/regex.c, regex.h: Sync from libc.
58843         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
58844         * lib/regexec.c:
58845         New files, synced from libc, except that regex_internal.h
58846         currently has a small porting fix.
58847
58848 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58849
58850         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
58851         regex_internal.c, regexec.c.
58852         Add regex_internal.h too, but as a comment, since the libc version
58853         is currently broken in gnulib mode.
58854
58855 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58856
58857         Support programs like Emacs that use gnulib but not gettext.
58858         * MODULES.html.sh (Internationalization functions): Add gettext-h.
58859         * modules/gettext-h: New file.
58860         * modules/gettext (Files): Remove lib/gettext.h.
58861         (Depends-on): Add gettext-h.
58862         (Makefile.am): Remove lib_SOURCES.
58863         * modules/argmatch, modules/c-stack, modules/closeout:
58864         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
58865         * modules/execute, modules/file-type, modules/getaddrinfo:
58866         * modules/getopt, modules/human, modules/javacomp:
58867         * modules/javaexec, modules/mkdir-p, modules/obstack:
58868         * modules/openat, modules/pagealign_alloc, modules/pipe:
58869         * modules/quotearg, modules/regex, modules/rpmatch:
58870         * modules/unicodeio, modules/userspec, modules/version-etc:
58871         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
58872         * modules/xsetenv:
58873         Depend on gettext-h, not gettext.
58874
58875 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58876
58877         * gnulib-tool (func_import): Add support for 'public domain' license.
58878         * modules/alloca, modules/atexit, modules/memmove:
58879         Now public domain, not GPL.
58880         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
58881         * modules/realloc, modules/strerror, modules/strtod:
58882         Now LGPL, not GPL.
58883
58884 2005-07-05  Bruno Haible  <bruno@clisp.org>
58885
58886         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
58887         autoconf CVS. Needed for mingw.
58888
58889 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58890
58891         Remove the dependency of the strftime module on the tzset module.
58892         * modules/strftime (Depends-on): Remove dependency on tzset.
58893
58894 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58895
58896         Remove the dependency of the strftime module on the tzset module.
58897         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
58898         gl_FUNC_TZSET_CLOBBER.
58899
58900 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58901
58902         Remove the dependency of the strftime module on the tzset module.
58903         * lib/strftime.c (my_strftime)
58904         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
58905         Copy the input structure, to work around some of the bug with
58906         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
58907         Solaris releases, you should also use the tzset module, but we won't
58908         require it as a dependency any more since we don't want LGPLed code
58909         to depend on GPLed code.
58910
58911 2005-07-02  Jim Meyering  <jim@meyering.net>
58912
58913         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
58914         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
58915         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
58916         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
58917
58918 2005-07-02  Jim Meyering  <jim@meyering.net>
58919
58920         * lib/backupfile.c (backup_args): Change a `0' to NULL.
58921
58922 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58923
58924         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
58925         declares only 'struct timespec;' (!).
58926
58927 2005-07-01  Jim Meyering  <jim@meyering.net>
58928
58929         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
58930         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
58931         * lib/save-cwd.c, tempname.c:
58932         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58933         and don't include <sys/file.h>).
58934
58935 2005-06-29  Jim Meyering  <jim@meyering.net>
58936
58937         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
58938         type name.  Use the variable name instead.
58939         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
58940         Likewise.
58941
58942 2005-06-28  Simon Josefsson  <jas@extundo.com>
58943
58944         * modules/check-version (Files): Add check-version.m4.
58945
58946 2005-06-28  Simon Josefsson  <jas@extundo.com>
58947
58948         * m4/check-version.m4: New file, suggested by Jim Meyering
58949         <jim@meyering.net>.
58950
58951 2005-06-28  Simon Josefsson  <jas@extundo.com>
58952
58953         * lib/check-version.h, lib/check-version.c: New files.
58954
58955 2005-06-28  Simon Josefsson  <jas@extundo.com>
58956
58957         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
58958         collision with global variable.  Better indentation.  Don't
58959         increment buffer pointer beyond buffer end.  Based on comments
58960         from Paul Eggert <eggert@cs.ucla.edu>.
58961
58962         * lib/base64.h: Indent.
58963
58964 2005-06-28  Simon Josefsson  <jas@extundo.com>
58965
58966         * doc/gnulib.texi (Library version handling): New section.
58967
58968 2005-06-28  Jim Meyering  <jim@meyering.net>
58969
58970         * check-module (find_included_lib_files): Hard-code another
58971         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
58972         but modules/fts-lgpl (correctly) does not list those files.
58973
58974         * modules/canonicalize (Files): Add lib/pathmax.h.
58975
58976 2005-06-25  Simon Josefsson  <jas@extundo.com>
58977
58978         * modules/check-version: New file.
58979
58980 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
58981
58982         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
58983         initializer of struct addrinfo, as an indication that we don't
58984         care how many members the structure has.
58985
58986 2005-06-24  Derek Price  <derek@ximbiot.com>
58987         and Bruno Haible  <bruno@clisp.org>
58988
58989         Remove stat module & update lstat.
58990         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
58991         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58992         * m4/stat.m4: Remove this file.
58993
58994 2005-06-24  Derek Price  <derek@ximbiot.com>
58995         and Bruno Haible  <bruno@clisp.org>
58996
58997         Remove stat module & update lstat.
58998         * lib/stat.c: Remove this file...
58999         (slash_aware_lstat): ...moving this content and its support...
59000         * lib/lstat.c (rpl_lstat): ...into here.
59001         * lib/lstat.h: New file.
59002
59003 2005-06-24  Derek Price  <derek@ximbiot.com>
59004         and Bruno Haible  <bruno@clisp.org>
59005
59006         Remove stat module & update lstat.
59007         * config/srclist.txt (libc sources): Remove stat.
59008
59009 2005-06-24  Derek Price  <derek@ximbiot.com>
59010         and Bruno Haible  <bruno@clisp.org>
59011
59012         Remove stat module & update lstat.
59013         * MODULES.html.sh (stat): Remove.
59014         * MODULES.html: Regenerated.
59015         * modules/lstat (Description): Correct function name.
59016         (Files): Add "lstat.h".
59017         (Depends-on): Remove stat, add xalloc, stat-macros.
59018         * modules/stat: Remove this file.
59019         (Include): Add "lstat.h", remove <sys/stat.h>.
59020
59021 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59022
59023         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
59024         (ranged_convert): Don't save conversion in a temporary struct.
59025         This causes a warning with GCC 4.0.0, and anyway in the typical
59026         case it's not worth the extra 100 bytes or so of code.
59027         (ranged_convert, __mktime_internal): When calling a function via a
59028         pointer P, use P () rather than (*P) (), as we now assume C89 or
59029         better.
59030
59031 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59032
59033         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
59034         "who -r" failed to give output.  Problem reported by Tim Waugh.
59035
59036         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
59037         (xcalloc): Use it to avoid needless tests.
59038         Problem reported by Jim Meyering.
59039
59040 2005-06-20  Derek Price  <derek@ximbiot.com>
59041
59042         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
59043         unnecessary for Autoconfs > 2.59c.
59044
59045 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59046
59047         * lib/argp.h (__option_is_short): Check upper limit of
59048         __key. Isprint() requires its argument to have the value
59049         of an unsigned char or EOF.
59050
59051 2005-06-16  Jim Meyering  <jim@meyering.net>
59052
59053         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
59054         when either N or S is zero.
59055
59056 2005-06-16  Derek Price  <derek@ximbiot.com>
59057
59058         * m4/bison.m4: Declare YACC & YFLAGS precious.
59059
59060 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
59061
59062         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
59063         multibyte string or pattern, fall back on unibyte matching.
59064         Problem reported by James Youngman.
59065
59066 2005-06-08  Bruno Haible  <bruno@clisp.org>
59067
59068         * modules/csharpcomp: New file.
59069         * MODULES.html.sh (C#): Add csharpcomp.
59070
59071 2005-06-08  Bruno Haible  <bruno@clisp.org>
59072
59073         * m4/csharpcomp.m4: New file, from GNU gettext.
59074
59075 2005-06-08  Bruno Haible  <bruno@clisp.org>
59076
59077         * lib/csharpcomp.h: New file, from GNU gettext.
59078         * lib/csharpcomp.c: New file, from GNU gettext.
59079         * lib/csharpcomp.sh.in: New file, from GNU gettext.
59080
59081 2005-06-08  Bruno Haible  <bruno@clisp.org>
59082
59083         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
59084         warning on mingw.
59085
59086 2005-06-07  Derek Price  <derek@ximbiot.com>
59087
59088         Sync from CVS.
59089         * lib/glob_.h: Indent nested #ifdef.
59090
59091 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59092
59093         Sync from coreutils.
59094         Use "file name" when talking about file names, instead of "filename"
59095         or "path", as per the GNU coding standards.
59096         * lib/mkdir-p.c: Renamed from makepath.c.
59097         (make_dir_parents): Renamed from make_path.  All callers changed.
59098         * lib/mkdir-p.h: Likewise.  All includers changed.
59099         * lib/filenamecat.c: Renamed from path-concat.c.
59100         (file_name_concat): Renamed from path_concat.  All callers changed.
59101         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
59102         * lib/filenamecat.h: Likewise.  All includers changed.
59103         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
59104         in comments or local variable names.
59105         * lib/basename.c: Likewise.
59106         * lib/canonicalize.c, canonicalize.h: Likewise.
59107         * lib/dirname.c, dirname.h: Likewise.
59108         * lib/euidaccess.c: Likewise.
59109         * lib/exclude.c: Likewise
59110         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
59111         * lib/fsusage.c, fsuage.h: Likewise.
59112         * lib/fts.c, fts_.h: Likewise.
59113         * lib/getcwd.c: Likewise.
59114         * lib/getloadavg.c: Likewise.
59115         * lib/mkstemp.c: Likewise.
59116         * lib/mountlist.c, mountlist.h: Likewise.
59117         * lib/openat.c, openat.h: Likewise.
59118         * lib/readlink-stub.c: Likewise.
59119         * lib/readutmp.c, readutmp.h: Likewise.
59120         * lib/rename.c: Likewise.
59121         * lib/rmdir.c: Likewise.
59122         * lib/same.c: Likewise.
59123         * lib/savedir.c: Likewise.
59124         * lib/stripslash.c: Likewise.
59125         * lib/tempname.c: Likewise.
59126         * lib/xreadlink.c: Likewise.
59127         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
59128         All uses changed.
59129         * lib/exclude.h: Likewise.
59130
59131         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
59132         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59133         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
59134         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59135         * lib/pathmax.h: Include <limits.h> unconditionally, since other
59136         files have been getting away with it for years (MORE/BSD 4.3
59137         is extinct now).
59138         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
59139         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59140
59141         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
59142         Define to 256, not 255, as per modern POSIX.
59143
59144 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59145
59146         Sync from coreutils.
59147         Use "file name" when talking about file names, instead of "filename"
59148         or "path", as per the GNU coding standards.
59149         * MODULES.html.sh: mkdir-p renamed from makepath.
59150         filenamecat renamed from path-concat.
59151         * modules/filenamecat: Renamed from modules/path-concat.
59152         (Files): filenamecat.h and filenamecat.c renamed from
59153         path-concat.h and path-concat.c.
59154         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
59155         (Include): filenamecat.h, not path-concat.h.
59156         * modules/mkdir-p: Renamed from modules/makepath.
59157         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
59158         makepath.c.
59159         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
59160         (Include): mkdir-p.h, not makepath.h.
59161
59162 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59163
59164         Sync from coreutils.
59165         * m4/mkdir-p.m4: Renamed from makepath.m4.
59166         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
59167         Rename files from makepath.c to mkdir-p.c, and from
59168         makepath.h to mkdir-p.h.
59169         * m4/filenamecat.m4: Renamed from path-concat.m4.
59170         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
59171         Rename files from path-concat.c to filenamecat.c,
59172         and from path-concat.h to filenamecat.h.
59173         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
59174         "file name" in local variables or comments.
59175         * m4/rename.m4: Likewise.
59176
59177 2005-06-01  Bruno Haible  <bruno@clisp.org>
59178
59179         * modules/csharpexec: New file.
59180         * MODULES.html.sh (C#): New section.
59181
59182 2005-06-01  Bruno Haible  <bruno@clisp.org>
59183
59184         * m4/csharp.m4: New file, from GNU gettext.
59185         * m4/csharpexec.m4: New file, from GNU gettext.
59186
59187 2005-06-01  Bruno Haible  <bruno@clisp.org>
59188
59189         * lib/csharpexec.h: New file, from GNU gettext.
59190         * lib/csharpexec.c: New file, from GNU gettext.
59191         * lib/csharpexec.sh.in: New file, from GNU gettext.
59192
59193 2005-05-31  Derek Price  <derek@ximbiot.com>
59194             Paul Eggert  <eggert@cs.ucla.edu>
59195
59196         Sync from cvs.
59197         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59198
59199 2005-05-31  Derek Price  <derek@ximbiot.com>
59200             Paul Eggert  <eggert@cs.ucla.edu>
59201
59202         Sync from cvs.
59203         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59204
59205 2005-05-29  Derek Price  <derek@ximbiot.com>
59206
59207         * config/srclist.txt (glob_.h, glob.c): Add these files.
59208
59209 2005-05-29  Derek Price  <derek@ximbiot.com>
59210
59211         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
59212         * modules/glob: New file.
59213         * modules/getlogin_r: Add link to POSIX spec in description.
59214
59215 2005-05-29  Derek Price  <derek@ximbiot.com>
59216             Paul Eggert  <eggert@cs.ucla.edu>
59217
59218         * m4/glob.m4: New file.
59219
59220 2005-05-29  Derek Price  <derek@ximbiot.com>
59221             Paul Eggert  <eggert@cs.ucla.edu>
59222
59223         * lib/glob_.h, lib/glob.c: New files.
59224
59225 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59226
59227         * modules/fts (Files): Remove m4/inttypes-pri.m4.
59228         * modules/fts-lgpl (Depends-on): Remove gettext.
59229
59230 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59231
59232         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
59233         and don't require gt_INTTYPES_PRI.
59234
59235 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59236
59237         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
59238
59239         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
59240         the configuration hassle isn't worth it.
59241         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
59242         (LONGEST_MODIFIER, PRIuMAX): Remove.
59243
59244 2005-05-27  Bruno Haible  <bruno@clisp.org>
59245
59246         * lib/getlogin_r.h: Remove second include of <stddef.h>.
59247
59248 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
59249
59250         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
59251         _POSIX_PTHREAD_SEMANTICS for Solaris.
59252
59253 2005-05-25  Derek Price  <derek@ximbiot.com>
59254
59255         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
59256
59257 2005-05-25  Derek Price  <derek@ximbiot.com>
59258             Paul Eggert  <eggert@cs.ucla.edu>
59259
59260         * modules/getlogin_r, m4/getlogin_r.m4: New files.
59261         * lib/getlogin_r.c, getlogin_r.h: New files.
59262
59263 2005-05-25  Bruno Haible  <bruno@clisp.org>
59264             Derek Price  <derek@ximbiot.com>
59265
59266         * lib/getlogin_r.h: Simplify API documentation.
59267
59268 2005-05-23  Derek Price  <derek@ximbiot.com>
59269
59270         * modules/minmax (Files): Add m4/minmax.m4.
59271         (configure.ac): Add gl_MINMAX.
59272
59273 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59274
59275         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
59276         so that unistd-safer.h (GPL'ed code) need not be included.
59277
59278 2005-05-22  Bruno Haible  <bruno@clisp.org>
59279
59280         * m4/minmax.m4: New file.
59281         Based on a patch by Derek Price <derek@ximbiot.com>.
59282
59283 2005-05-22  Bruno Haible  <bruno@clisp.org>
59284
59285         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
59286         (INT64_MIN): Fix definition.
59287         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
59288
59289         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
59290         NEED_SIGNED_INT_TYPES.
59291
59292         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
59293         HAVE_SYSTEM_INTTYPES.
59294
59295 2005-05-22  Bruno Haible  <bruno@clisp.org>
59296
59297         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
59298         Also include <sys/param.h> if it defines MIN, MAX.
59299         Based on a patch by Derek Price <derek@ximbiot.com>.
59300
59301 2005-05-21  Jim Meyering  <jim@meyering.net>
59302
59303         * modules/fts (Files): Add m4/inttypes-pri.m4.
59304         (Depends-on): Add lstat and remove gettext.  Alphabetize.
59305
59306 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59307
59308         New fts module.
59309         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
59310         (setup_dir, free_dir): New functions.
59311         (enter_dir, leave_dir): Define trivial
59312         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
59313         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
59314         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
59315         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
59316         Move to fts-cycle.c.
59317         (fts_open): Use setup_dir.
59318         (fts_close): Use free_dir.
59319         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
59320         This adds a label and some gotos, but the alternatives were messier.
59321         Check for memory allocation failure when entering a dir.
59322         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
59323         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
59324         (FTS): New member fts_cycle, that is a union that contains the
59325         old active_dir_ht and cycle_state.  All uses changed to mention
59326         fts_cycle.ht and fts_cycle.state.
59327         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
59328         fts.c, with the following changes:
59329         (setup_dir, free_dir): New functions.
59330         (enter_dir): Now returns bool.  Return true if successful, false
59331         if memory exhausted.  All callers changed.
59332         Do not bother partly cleaning up on
59333         memory allocation failure; that is free_dir's job.
59334         However, free ad if hash_insert fails, to avoid memory leak.
59335         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
59336         fts->fts_options to see which union member to use.
59337
59338 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59339
59340         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
59341         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
59342
59343 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59344
59345         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
59346
59347 2005-05-20  Jim Meyering  <jim@meyering.net>
59348
59349         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
59350         Now a macro, to pacify GCC.
59351
59352 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59353
59354         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
59355         of -1.
59356
59357 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59358
59359         * lib/chown.c (rpl_chown): Return -1 on failure.
59360
59361 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59362
59363         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
59364         Don't check for stddef.h.
59365         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
59366         don't use its results.
59367         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
59368         since we include them unconditionally.  Don't require
59369         AM_STDBOOL_H, since stdbool is a prerequisite.
59370         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
59371         since we assume C89 or better.
59372         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
59373         as we don't use their results.
59374         Don't check for fchdir, memmove, memset, strrchr, as we use
59375         them unconditionally.
59376         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
59377         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
59378
59379 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59380
59381         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
59382         Include <stddef.h> unconditionally, since we assume C89 now.
59383         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
59384         * lib/fts.c: Include fts_.h first, to check interface.
59385         Do not include intprops.h; no longer needed.
59386         Include cycle-check.h and hash.h, since fts_.h no longer does.
59387         Remove unnecessary casts of closedir to void.
59388         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
59389         decide whether to decrement nlinks.
59390         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
59391         (FTS): Use struct hash_table * instead of Hash_table, so that
59392         we no longer need to include hash.h here.
59393
59394 2005-05-18  Jim Meyering  <jim@meyering.net>
59395
59396         * modules/dirfd (License): Change to LGPL.  Most of the code
59397         is already in the public domain.
59398
59399 2005-05-18  Jim Meyering  <jim@meyering.net>
59400
59401         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
59402         Reported by Yoann Vandoorselaere.
59403
59404 2005-05-17  Jim Meyering  <jim@meyering.net>
59405
59406         * m4/fts.m4: New file, from coreutils.
59407
59408 2005-05-17  Jim Meyering  <jim@meyering.net>
59409
59410         * lib/fts.c, lib/fts_.h: New files, from coreutils.
59411
59412 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59413
59414         Sync from coreutils.
59415         * m4/unlinkdir.m4: New file.
59416
59417 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59418
59419         Sync from coreutils.
59420         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
59421         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
59422         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
59423         White space changes only.
59424         * lib/makepath.c (make_path): Port to hosts where leading "//" is
59425         special.
59426         * lib/yesno.c: Include getline.h, not ctype.h.
59427         (yesno): Don't remove leading white space; POSIX doesn't allow it.
59428         Use getline to remove arbitrary restriction on response length.
59429
59430 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59431
59432         * config/srclist-update: Spell out "Street" in FSF postal
59433         mail address; this is the style the FSF seems to prefer.
59434
59435         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
59436         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
59437         this updates FSF postal mail address.
59438
59439         Sync from coreutils.
59440         * modules/unlinkdir: New file.
59441         * modules/yesno (Depends-on): Add getline.
59442         * MODULES.html.sh (File system functions): Add unlinkdir.
59443
59444 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59445
59446         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
59447         lib/strsep.h:
59448         Change the initial comment to refer to GPL, not LGPL.
59449         gnulib-tool will change it to LGPL as needed.
59450
59451         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
59452         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
59453         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
59454         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
59455         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
59456         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
59457         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
59458         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
59459         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
59460         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
59461         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
59462         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
59463         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
59464         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
59465         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
59466         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
59467         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
59468         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
59469         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
59470         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
59471         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
59472         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
59473         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
59474         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
59475         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
59476         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
59477         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
59478         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
59479         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
59480         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
59481         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
59482         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
59483         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
59484         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
59485         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
59486         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
59487         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
59488         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
59489         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
59490         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
59491         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
59492         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
59493         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
59494         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
59495         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
59496         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
59497         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
59498         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
59499         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
59500         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
59501         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59502         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
59503         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
59504         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
59505         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
59506         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
59507         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
59508         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
59509         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
59510         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
59511         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
59512         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
59513         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
59514         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
59515         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
59516         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
59517         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
59518         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
59519         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
59520         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
59521         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
59522         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
59523         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
59524         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
59525         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
59526         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
59527         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
59528         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
59529         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
59530         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
59531         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
59532         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
59533         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
59534         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
59535         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
59536         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
59537         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
59538         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
59539         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
59540         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
59541         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
59542         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
59543         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
59544         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
59545         lib/yesno.c, lib/yesno.h:
59546         Update FSF postal mail address.
59547
59548 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59549
59550         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
59551         tests/test-memmem.c, tests/test-stpncpy.c:
59552         Update FSF postal mail address.
59553
59554 2005-05-13  Bruno Haible  <bruno@clisp.org>
59555
59556         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
59557         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
59558         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
59559         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
59560         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
59561         Add support for 64-bit integers in the MSVC compiler.
59562
59563 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59564
59565         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
59566
59567 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
59568
59569         * gnulib-tool (func_import): Sort and uniquify recommended includes.
59570
59571 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
59572
59573         * doc/getdate.texi (General date syntax): Don't say that date
59574         date --iso-8601=ns generates acceptable dates; it doesn't yet.
59575         Problem reported by Nic Ferrier.
59576
59577 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59578
59579         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
59580         specified in ai_socktype. Fix invalid ai_protocol
59581         check. ai_protocol is usually set to 0 or depending on
59582         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
59583         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
59584         ai_socktype / ai_protocol in the returned addrinfo structure.
59585
59586 2005-05-10  Simon Josefsson  <jas@extundo.com>
59587
59588         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
59589         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59590
59591 2005-05-10  Karl Berry  <karl@gnu.org>
59592
59593         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
59594         (from http://www.gnu.org/licenses).
59595         * doc/COPYING.LIB: also rename to COPYING.LESSER.
59596         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
59597         fdl.texi suffices.
59598
59599 2005-05-10  Karl Berry  <karl@gnu.org>
59600
59601         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
59602         (COPYING.DOC): remove.
59603
59604         * config/srclist-update: new FSF address.
59605
59606 2005-05-10  Derek Price  <derek@ximbiot.com>
59607
59608         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
59609         possible.
59610
59611 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59612             Bruno Haible  <bruno@clisp.org>
59613
59614         * modules/inet_ntop: New file.
59615         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59616         inet_ntop.
59617
59618 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59619             Bruno Haible  <bruno@clisp.org>
59620
59621         * m4/inet_ntop.m4: New file.
59622
59623 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59624             Bruno Haible  <bruno@clisp.org>
59625
59626         * lib/inet_ntop.h: New file.
59627         * lib/inet_ntop.c: New file, from glibc with modifications.
59628
59629 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
59630
59631         * modules/time_r (License): Change to LGPL.
59632         * modules/extensions (License): Change to LGPL.  Actually,
59633         the license is more permissive than that, but currently gnulib-tool
59634         doesn't know how to handle more-permissive licenses.
59635
59636         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
59637         Problem reported by Dave Love.
59638
59639 2005-05-08  Jim Meyering  <jim@meyering.net>
59640
59641         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
59642         blank.
59643
59644 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59645
59646         * modules/argmatch (Depends-on): Add stdbool.
59647         * modules/backupfile (Depends-on): Likewise.
59648         * modules/chdir-long (Depends-on): Likewise.
59649         * modules/closeout (Depends-on): Likewise.
59650         * modules/cycle-check (Depends-on): Likewise.
59651         * modules/dirname (Depends-on): Likewise.
59652         * modules/fnmatch (Depends-on): Likewise.
59653         * modules/fsusage (Depends-on): Likewise.
59654         * modules/fwriteerror (Depends-on): Likewise.
59655         * modules/getcwd (Depends-on): Likewise.
59656         * modules/getloadavg (Depends-on): Likewise.
59657         * modules/hard-locale (Depends-on): Likewise.
59658         * modules/makepath (Depends-on): Likewise.
59659         * modules/mountlist (Depends-on): Likewise.
59660         * modules/nanosleep (Depends-on): Likewise.
59661         * modules/posixtm (Depends-on): Likewise.
59662         * modules/quotearg (Depends-on): Likewise.
59663         * modules/readtokens (Depends-on): Likewise.
59664         * modules/readtokens0 (Depends-on): Likewise.
59665         * modules/readutmp (Depends-on): Likewise.
59666         * modules/save-cwd (Depends-on): Likewise.
59667         * modules/strftime (Depends-on): Likewise.
59668         * modules/userspec (Depends-on): Likewise.
59669         * modules/utimecmp (Depends-on): Likewise.
59670         * modules/xgetcwd (Depends-on): Likewise.
59671         * modules/xnanosleep (Depends-on): Likewise.
59672         * modules/xstrtod (Depends-on): Likewise.
59673         * modules/yesno (Depends-on): Likewise.
59674
59675 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
59676
59677         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
59678         needless checks.
59679
59680 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59681
59682         Merge from coreutils.  Among other things,
59683         add bulletproofing for cases where stdin, stdout, or stderr are closed.
59684         * lib/fd-safer.c: New file.
59685         * lib/fcntl-safer.h, open-safer.c: Remove.
59686         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
59687         * lib/dup-safer.c: Include unistd-safer.h first.
59688         Don't include errno.h.
59689         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
59690         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
59691         * lib/file-type.c: Rely on file-type.h change.
59692         * lib/getloadavg.c: Include unistd-safer.h.
59693         (getloadavg): Use safer open.
59694         * lib/getusershell.c: Include "stdio-safer.h".
59695         (getusershell): Use safer fopen.
59696         * lib/long-options.c (long_options): Use NULL rather than 0.
59697         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
59698         'free'.
59699         * lib/modechange.c: Likewise.
59700         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
59701         (MODE_DONE): New constant.
59702         (struct mode_change): Remove 'next' member.
59703         (make_node_op_equals): New function; like the old one of the
59704         same name, except it allocates an array.
59705         (mode_compile, mode_create_from_ref): Use it.
59706         (mode_compile): Allocate result as an array, not a linked list.
59707         Parse octal string ourself, so that we catch mistakes like "+0".
59708         (mode_adjust): Arg is an array, not a linked list.
59709         * lib/modechange.c: Include stat-macros.h, xalloc.h.
59710         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
59711         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
59712         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
59713         Remove.  This is now stat-macros.h's job.
59714         (talloc): Remove.  All callers replaced by xalloc, so that
59715         our invokers don't have to worry about reporting memory failures.
59716         (make_node_op_equals): Remove.
59717         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59718         New constants.
59719         (struct mode_change): Moved here from modechange.h.
59720         (mode_append_entry): Remove.
59721         (mode_compile): Remove MASKED_OPS arg, since it encouraged
59722         apps to have incorrect behavior.  Use simpler algorithm for head
59723         and tail.  Don't futz with umask; that's now the job of mode_adjust.
59724         Detect more invalid usages rather than having somewhat-random behavior.
59725         Don't insert an "a=" action, as that leads to incorrect behavior.
59726         (mode_compile, mode_create_from_ref): Return NULL on error instead
59727         of an enum, since now there's only one way to have an error.  All
59728         callers changed.
59729         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
59730         at the correct time.  Simplify calculation of "+u" and its ilk.
59731         Don't mishandle "+X".
59732         (mode_free): Remove "register" and localize decls.
59733         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59734         (struct mode_change): Move to modechange.c; callers don't
59735         need to see this stuff.
59736         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
59737         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
59738         (mode_change, mode_adjust): Reflect the new signatures noted above.
59739         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
59740         that might redefine system include files.
59741         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
59742         (my_usleep): Use NULL rather than (void *) 0.
59743         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
59744         Use siginterrupt to specify that system calls should be interrupted.
59745         (rpl_nanosleep): Move initialization of suspended closer to call of
59746         my_usleep.
59747         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
59748         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
59749         (desirable_utmp_entry): New function.
59750         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
59751         using x2nrealloc, to simplify logic.
59752         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
59753         size calculation.  Do not assume utmp file is a regular file.
59754         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
59755         (READ_UTMP_CHECK_PIDS): New constant.
59756         * lib/save-cwd.c: Include unistd-safer.h.
59757         (save_cwd): Use fd_safer.
59758         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
59759         [!_LIBC] Include "stat-macros.h" instead.
59760         * lib/unistd-safer.h (fd_safer): New decl.
59761
59762 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59763
59764         * modules/getloadavg (Depends-on): Add unistd-safer.
59765         * modules/getusershell (Depends-on): Add stdio-safer.
59766         * modules/lstat (Depends-on): Remove xalloc.
59767         * modules/mkstemp (Depends-on): Add stat-macros.
59768         * modules/modechange (Depends-on): Remove xstrtol.
59769         Add stat-macros, xalloc.
59770         * modules/save-cwd (Depends-on): Add unistd-safer.
59771         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
59772         * modules/unistd-safer (Files): Add lib/fd-safer.c
59773         (Makefile.am): Remove lib_SOURCES.
59774
59775         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
59776         Remove fcntl-safer; unistd-safer supersedes it.
59777
59778 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59779
59780         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
59781         AC_HEADER_STAT.
59782         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
59783         (gl_PREREQ_CHOWN): Remove.
59784         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
59785         it.  Don't require AC_HEADER_STAT.
59786         (gl_PREREQ_LSTAT): Remove.
59787         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
59788         Don't require AC_HEADER_STAT.
59789         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
59790         (gl_PREREQ_RMDIR): Remove.
59791         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
59792         mention stat-macros.h or AC_HEADER_STAT, since we'll make
59793         the stat-macros module a prerequisite.
59794         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
59795         * m4/filemode.m4 (gl_FILEMODE): Likewise.
59796         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
59797         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
59798         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
59799         variable names.
59800         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
59801         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
59802         variable prefixes.
59803         * m4/fcntl-safer.m4: Remove.
59804         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
59805         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
59806         Invoke gl_PREREQ_FD_SAFER.
59807         (gl_PREREQ_FD_SAFER): New macro.
59808         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
59809         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
59810         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
59811         Remove duplicate call to AC_LIBOBJ(readutmp).
59812         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
59813
59814         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
59815         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
59816
59817 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59818
59819         * MODULES.html.sh (Misc): Add byteswap.
59820
59821 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59822
59823         * modules/getcwd (Depends-on): Add extensions.
59824         * modules/openat (Depends-on): Likewise.
59825
59826 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59827
59828         * modules/byteswap: New file.
59829
59830 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59831
59832         * m4/byteswap.m4: New file.
59833
59834 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59835
59836         * lib/byteswap_.h: New file.
59837
59838 2005-04-25  Karl Berry  <karl@gnu.org>
59839
59840         * m4/gettext.m4: Update from GNU gettext 0.14.4.
59841
59842 2005-04-25  Albert Chin  <china@thewrittenword.com>
59843
59844         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
59845         Toolkit C bug.
59846
59847 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
59848
59849         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
59850         (func_ln_if_changed) Remove forcibly for no error message
59851         in case file does not exist.
59852
59853 2005-04-19  Simon Josefsson  <jas@extundo.com>
59854
59855         * gnulib-tool (Options): Make --symlink mean --symbolic.
59856
59857 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
59858
59859         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
59860
59861 2005-04-16  Simon Josefsson  <jas@extundo.com>
59862
59863         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
59864
59865 2005-04-15  Simon Josefsson  <jas@extundo.com>
59866
59867         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
59868
59869 2005-04-15  Simon Josefsson  <jas@extundo.com>
59870
59871         * gnulib-tool: Rename --symlink to --symbolic.
59872
59873 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
59874
59875         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
59876         symbolic links to files instead of copying/moving.  Add --aux-dir,
59877         specifying directory relative --dir where auxiliary build tools
59878         are placed.
59879
59880 2005-04-14  Bruno Haible  <bruno@clisp.org>
59881
59882         * modules/allocsa (License): Change to LGPL.
59883         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59884
59885 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59886
59887         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
59888         that "UTC +1 second" continues to work.  Problem reported
59889         by Dmitry V. Levin.
59890         (relunit_snumber): New rule.
59891         (relunit): Use it.
59892
59893 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59894
59895         * lib/getdate.y (universal_time_zone_table): New constant.
59896         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
59897         universal_time_zone_table.
59898         (lookup_zone): Prefer universal_time_zone_table to
59899         local_time_zone_table, so that "GMT" time stamps are allowed in
59900         London during the summer.  Problem reported by Ian Abbott.
59901
59902 2005-04-12  Jim Meyering  <jim@meyering.net>
59903
59904         * lib/human.c (humblock): Set *options even when returning due to
59905         xstrtoumax conversion failure.  Thanks to a used-uninitialized
59906         warning from gcc-4.
59907
59908 2005-04-09  Jim Meyering  <jim@meyering.net>
59909
59910         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
59911         -Wuninitialized: initialize tm0.tm_year.
59912
59913 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59914
59915         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
59916         count, since there's no maximum.  All uses changed.
59917         Add member dsts_seen.
59918         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
59919         not being INT_MAX.
59920         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
59921         Use pc_rels_seen to decide whther a date is absolute.
59922
59923         * lib/getdate.y (number): Don't overwrite year.
59924         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
59925         check.
59926
59927 2005-04-02  Simon Josefsson  <jas@extundo.com>
59928
59929         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
59930         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
59931
59932 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
59933
59934         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
59935         where no absolute path name can be longer than PATH_MAX.
59936
59937 2005-03-27  Jim Meyering  <jim@meyering.net>
59938
59939         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
59940
59941 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
59942
59943         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
59944         "one's complement" -> "ones' complement" in comment, as per Knuth.
59945         "value of type" -> "type or expression" in comment.
59946         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
59947
59948 2005-03-26  Jim Meyering  <jim@meyering.net>
59949
59950         Comment nits.
59951         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
59952         Correct typos: s/or/of/.
59953
59954 2005-03-26  Jim Meyering  <jim@meyering.net>
59955
59956         * modules/check-include-files: Move to ../ and rename to...
59957         * check-module: ...this.
59958
59959 2005-03-25  Jim Meyering  <jim@meyering.net>
59960
59961         * modules/xvasprintf (Files): Add xalloc.h.
59962
59963 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59964
59965         * modules/gettext (Files): config/config.rpath ->
59966         build-aux/config.rpath
59967         * modules/iconv (Files): Likewise.
59968         Problem reported by Oskar Liljeblad.
59969
59970 2005-03-23  Jim Meyering  <jim@meyering.net>
59971
59972         * modules/check-include-files: New script to check for
59973         missing dependencies, multiple includes, etc.
59974
59975         * modules/c-strtold (Depends-on): Add xalloc.
59976         * modules/c-strtod (Depends-on): Add xalloc.
59977         * modules/hash (Depends-on): Add xalloc.
59978         (Files): Remove lib/xalloc.h.
59979
59980         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
59981         * modules/userspec (Files): Add lib/inttostr.h.
59982
59983 2005-03-23  Jim Meyering  <jim@meyering.net>
59984
59985         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
59986
59987 2005-03-22  Jim Meyering  <jim@meyering.net>
59988
59989         * modules/stat-macros: New module.
59990         * modules/canonicalize, modules/euidaccess, modules/file-type,
59991         * modules/filemode, modules/lchown, modules/makepath,
59992         * modules/rmdir, modules/stat: Depend on new stat-macros module
59993         rather than listing lib/stat-macros.h manually.
59994         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
59995
59996 2005-03-22  Jim Meyering  <jim@meyering.net>
59997
59998         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
59999
60000 2005-03-22  Bruno Haible  <bruno@clisp.org>
60001
60002         * config/srclist.txt: Replace target directory 'config' with
60003         'build-aux'.
60004         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
60005         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
60006         ../build-aux/.
60007
60008 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
60009
60010         * modules/chdir-long (Depends-on): Add mempcpy.
60011
60012         * modules/acl, modules/backupfile, modules/c-strtod,
60013         modules/c-strtold, modules/canon-host, modules/canonicalize,
60014         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
60015         modules/exclude, modules/exitfail, modules/file-type,
60016         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
60017         modules/getdate, modules/getline, modules/getpagesize,
60018         modules/getpass, modules/getugroups, modules/group-member,
60019         modules/hard-locale, modules/hash, modules/human, modules/idcache,
60020         modules/inttostr, modules/long-options, modules/makepath,
60021         modules/md5, modules/memcasecmp, modules/memcoll,
60022         modules/modechange, modules/mountlist, modules/path-concat,
60023         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
60024         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
60025         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
60026         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
60027         modules/strftime, modules/strndup, modules/strverscmp,
60028         modules/timespec, modules/unlocked-io, modules/userspec,
60029         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
60030         modules/yesno:
60031         Remove lib_SOURCES line from Makefile.am section, as this is now
60032         done automatically by the corresponding Autoconf macro.
60033
60034 2005-03-21  Jim Meyering  <jim@meyering.net>
60035
60036         Changes imported from coreutils.
60037
60038         * lib/cycle-check.c: Don't include xalloc.h.
60039
60040         * lib/path-concat.c: Don't include assert.h.
60041         (path_concat): Remove assertion that would have triggered
60042         for ABASE starting with more than one slash.
60043         Reported by Andreas Schwab.
60044
60045         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
60046         properly when ABASE is an absolute file name.
60047         Correct the description of this function.
60048         Include <assert.h>.
60049         Add an assertion and a test driver.
60050         This fixes a bug introduced on 2004-07-02.
60051         Andreas Schwab reported the resulting failure of cp --parents:
60052         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
60053
60054 2005-03-21  Jim Meyering  <jim@meyering.net>
60055
60056         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
60057         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
60058
60059 2005-03-21  Jim Meyering  <jim@meyering.net>
60060         and  Paul Eggert  <eggert@cs.ucla.edu>
60061
60062         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
60063         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
60064         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
60065         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
60066         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
60067         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
60068         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
60069         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
60070         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
60071         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
60072         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
60073         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
60074         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
60075         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
60076         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
60077         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
60078         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
60079         for these modules.
60080
60081 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
60082
60083         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
60084         (which shouldn't happen), generate nothing instead of returning 0
60085         immediately, so that nstrftime (NULL, ...) doesn't return 0.
60086
60087 2005-03-16  Bruno Haible  <bruno@clisp.org>
60088
60089         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
60090         HAVE_LONGLONG_64BIT.
60091
60092 2005-03-16  Bruno Haible  <bruno@clisp.org>
60093
60094         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
60095         HAVE_LONGLONG_64BIT.
60096
60097 2005-03-16  Bruno Haible  <bruno@clisp.org>
60098
60099         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
60100         HAVE_LONGLONG_64BIT.
60101
60102 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60103
60104         * lib/strftime.c (my_strftime): Prepend space to format so that we can
60105         reliably distinguish strftime failure from empty output on POSIX
60106         hosts.
60107
60108 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60109
60110         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
60111         (iconv_string): Don't guess a size-zero buffer, as that might cause
60112         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
60113         result would be 'too large', where 'too large' is (heuristically)
60114         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
60115         overflow concerns.  This will prevent some unwanted malloc failures
60116         when the inputs are very large.
60117
60118 2005-03-15  Karl Berry  <karl@gnu.org>
60119
60120         * config/srclist.txt (config.rpath): from gettext.
60121         * config/config.rpath: update.
60122
60123 2005-03-15  Bruno Haible  <bruno@clisp.org>
60124
60125         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
60126         to 'negate'.
60127
60128         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
60129         variable.
60130
60131         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
60132         results.
60133
60134 2005-03-14  Simon Josefsson  <jas@extundo.com>
60135
60136         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
60137         <fx@gnu.org>.
60138
60139 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
60140
60141         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
60142         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
60143         intprops.h.
60144         * lib/strtol.c: Likewise.
60145
60146 2005-03-14  Jim Meyering  <jim@meyering.net>
60147
60148         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
60149         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
60150         to be nonzero so that we (and caller) can detect the difference
60151         between a valid zero-length expansion and an error return, even
60152         when the underlying strftime fails before writing anything into
60153         that location.
60154
60155 2005-03-14  Bruno Haible  <bruno@clisp.org>
60156
60157         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
60158         Update from GNU gettext 0.14.3.
60159
60160 2005-03-10  Jim Meyering  <jim@meyering.net>
60161
60162         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
60163
60164 2005-03-10  Jim Meyering  <jim@meyering.net>
60165
60166         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
60167         so that this module works on systems without fchdir.
60168
60169 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
60170
60171         Factor int-properties macros into a single file, except for
60172         glibc-related files.
60173         * lib/intprops.h: New file.
60174         * lib/getloadavg.c: Include it instead of limits.h.
60175         (INT_STRLEN_BOUND): Remove.
60176         * lib/human.c: Include intprops.h.
60177         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
60178         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
60179         302/1000.
60180         * lib/inttostr.h: Include intprops.h instead of limits.h.
60181         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
60182         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
60183         for consistency with intprops.h.
60184         (time_t_is_integer, twos_complement_arithmetic): Use them.
60185         * lib/sig2str.h: Include <signal.h>, intprops.h.
60186         (INT_STRLEN_BOUND): Remove.
60187         * lib/strftime.c (TYPE_SIGNED): Remove.
60188         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
60189         * lib/strtol.c: Adjust comments to match intprops.h.
60190         * lib/userspec.c: Include intprops.h.
60191         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
60192         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
60193         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
60194         instead of rolling our own expressions.
60195         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
60196
60197         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
60198         instead of int.
60199         (my_strftime): Do not mishandle years close to INT_MAX, by doing
60200         the right thing even if adding 1900 would overflow.  Similarly
60201         for tm_mon + 1 and tm_yday + 1.
60202         Make %Y always equivalent to %C%y, and similarly for %G and %g.
60203         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
60204         (DO_SIGNED_NUMBER): New macro.
60205         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
60206
60207 2005-03-07  Bruno Haible  <bruno@clisp.org>
60208
60209         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
60210
60211 2005-03-07  Bruno Haible  <bruno@clisp.org>
60212
60213         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
60214
60215 2005-03-04  Derek R. Price  <derek@ximbiot.com>
60216
60217         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
60218         (func_import): Only replace files via --import when they have actually
60219         changed.
60220
60221 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60222
60223         * m4/mmap-anon.m4: New file.
60224         * m4/pagealign_alloc.m4: New file.
60225
60226 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60227             Bruno Haible  <bruno@clisp.org>
60228
60229         * modules/pagealign_alloc: New file.
60230         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
60231
60232 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60233             Bruno Haible  <bruno@clisp.org>
60234
60235         * lib/pagealign_alloc.h: New file.
60236         * lib/pagealign_alloc.c: New file.
60237
60238 2005-03-03  Bruno Haible  <bruno@clisp.org>
60239
60240         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
60241         Use an all-permissive copyright notice, recommended by RMS.
60242
60243 2005-03-02  Bruno Haible  <bruno@clisp.org>
60244
60245         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
60246         of AIX, the replacement has to be done only after <string.h> is
60247         included, therefore not in config.h. stpncpy.h does the replacement,
60248         and stpncpy.c uses it.
60249
60250 2005-03-02  Bruno Haible  <bruno@clisp.org>
60251
60252         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
60253         stpncpy.c uses it.
60254
60255 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60256
60257         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
60258         The workaround isn't strictly needed for POSIX conformance, and
60259         it's too much of a pain to configure and maintain.  We'll ask
60260         people to fix their kernels instead.
60261         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
60262         (NANOSLEEP_BUG_WORKAROUND): Remove.
60263         (xnanosleep): Remove the workaround.
60264
60265 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60266
60267         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
60268         Reported by Derek Price.
60269         (Include): Add "timespec.h".
60270
60271         * modules/xnanosleep (Depends-on): Remove gethrxtime.
60272
60273 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60274
60275         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
60276         to detect nanosleep bug.
60277
60278 2005-03-01  Bruno Haible  <bruno@clisp.org>
60279
60280         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
60281
60282 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60283
60284         * modules/gethrxtime: New file.
60285         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
60286         (Depends-on): Add gethrxtime.
60287         (configure.ac): Add gl_XNANOSLEEP.
60288         (Makefile.am): Remove lib_SOURCES line.
60289
60290 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60291
60292         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
60293         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
60294
60295 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60296
60297         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
60298         * lib/timespec.h (gettime): Return void, since it always
60299         succeeds now.  All uses changed.
60300         * lib/gettime.c (gettime) Likewise.
60301         [HAVE_NANOTIME]: Prefer nanotime.
60302         Assume gettimeofday succeeds, as POSIX requires.
60303         Assime time () succeeds, since other code already does.
60304         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
60305         (timespec_subtract): Remove.
60306         (NANOSLEEP_BUG_WORKAROUND): New constant.
60307         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
60308         things considerably.  Use it only on GNU/Linux hosts, since the
60309         workaround shouldn't be needed elsewhere.
60310
60311 2005-02-24  Bruno Haible  <bruno@clisp.org>
60312
60313         * modules/gettext (Files): Add m4/glibc2.m4.
60314
60315 2005-02-24  Bruno Haible  <bruno@clisp.org>
60316
60317         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
60318         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
60319         * m4/progtest.m4:
60320         Update from GNU gettext 0.14.2.
60321         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
60322
60323 2005-02-24  Bruno Haible  <bruno@clisp.org>
60324
60325         * lib/localcharset.c: Update from GNU gettext 0.14.2.
60326         * lib/config.charset: Update from GNU gettext 0.14.2.
60327
60328 2005-02-24  Bruno Haible  <bruno@clisp.org>
60329
60330         * lib/gettext.h: Update from GNU gettext 0.14.2.
60331
60332 2005-02-23  Simon Josefsson  <jas@extundo.com>
60333
60334         * m4/iconvme.m4: New file.
60335
60336 2005-02-23  Jim Meyering  <jim@meyering.net>
60337
60338         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
60339         change.
60340         Thanks to Bruno Haible for catching it.
60341
60342 2005-02-22  Simon Josefsson  <jas@extundo.com>
60343
60344         * modules/iconvme: New file.
60345
60346         * MODULES.html.sh: Add iconvme.
60347
60348 2005-02-22  Simon Josefsson  <jas@extundo.com>
60349
60350         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
60351
60352 2005-02-22  Simon Josefsson  <jas@extundo.com>
60353
60354         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
60355
60356 2005-02-22  Jim Meyering  <jim@meyering.net>
60357
60358         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
60359         s/ifndef/ifdef/.
60360
60361 2005-02-20  Neil Conway  <neilc@samurai.com>
60362
60363         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
60364         returned by OSX/Darwin if the specified buffer is not large
60365         enough for the hostname.
60366
60367 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60368
60369         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
60370         pass it to _help, otherwise the latter coredumps trying to
60371         dereference state.root_argp.
60372
60373 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60374
60375         * modules/chdir-long (Depends-on): Add memrchr.
60376         * modules/memrchr (Files): Add lib/memrchr.h.
60377         (Include): "memrchr.h".
60378
60379 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60380
60381         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
60382
60383 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60384
60385         * lib/memrchr.h: New file.
60386         * lib/chdir-long.c: Include it.
60387         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
60388         Don't bother including stddef.h.
60389
60390 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
60393         inclusion.
60394         Include <sys/types.h>, for dev_t.
60395         (ME_DUMMY, ME_REMOTE): Move from here....
60396         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
60397         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
60398         Dmitry V. Levin.
60399         Include mountlist.h first, to test the interface.
60400
60401 2005-01-29  Bruno Haible  <bruno@clisp.org>
60402
60403         * lib/progname.c (program_name): Initialize.
60404         Needed when linking statically on MacOS X.
60405
60406 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60407
60408         Sync from coreutils.
60409         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
60410         (Depends-on): Add c-strtod.
60411         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
60412
60413 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60414
60415         Sync from coreutils.
60416         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
60417
60418         Remove files that are specific to coreutils.
60419         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
60420
60421 2005-01-28  Bruno Haible  <bruno@clisp.org>
60422
60423         * modules/javacomp: New file.
60424         * MODULES.html.sh (Java): Add javacomp.
60425
60426 2005-01-28  Bruno Haible  <bruno@clisp.org>
60427
60428         * m4/javacomp.m4: New file, from GNU gettext.
60429
60430 2005-01-28  Bruno Haible  <bruno@clisp.org>
60431
60432         * lib/javacomp.sh.in: New file, from GNU gettext.
60433         * lib/javacomp.h: New file, from GNU gettext.
60434         * lib/javacomp.c: New file, from GNU gettext.
60435
60436 2005-01-26  Simon Josefsson  <jas@extundo.com>
60437
60438         * lib/gai_strerror.c: Use GPL in header.
60439
60440 2005-01-26  Bruno Haible  <bruno@clisp.org>
60441
60442         * modules/javaexec: New file.
60443         * MODULES.html.sh (Java): Add javaexec.
60444
60445 2005-01-26  Bruno Haible  <bruno@clisp.org>
60446
60447         * m4/javaexec.m4: New file, from GNU gettext.
60448
60449 2005-01-26  Bruno Haible  <bruno@clisp.org>
60450
60451         * lib/javaexec.sh.in: New file, from GNU gettext.
60452         * lib/javaexec.h: New file, from GNU gettext.
60453         * lib/javaexec.c: New file, from GNU gettext.
60454
60455 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60456
60457         * modules/lchown (Depends-on): Remove lchown.h
60458
60459 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60460
60461         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
60462         must be defined if the header file was not found, in order
60463         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
60464
60465 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60466
60467         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
60468         initializers for struct pentry_state.
60469         (__argp_error): Check return value of __asprintf
60470         (__argp_failure): Translate error message
60471
60472         * lib/argp-parse.c: Removed braces around the expansion of N_()
60473
60474 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60475
60476         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
60477         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
60478         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
60479         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
60480         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
60481         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
60482         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
60483         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
60484         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
60485         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
60486         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
60487         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
60488         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
60489         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
60490         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
60491         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
60492         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
60493         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
60494         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
60495         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
60496         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
60497         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
60498         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
60499         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
60500         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
60501         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
60502         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
60503         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
60504         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
60505         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
60506         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
60507         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
60508         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
60509         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
60510         xstrtol.m4, xstrtoumax.m4, yesno.m4:
60511         Use an all-permissive copyright notice, recommended by RMS.
60512
60513 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60514
60515         * modules/chdir-long (Depends-on): Remove mempcpy.
60516
60517 2005-01-21  Jim Meyering  <jim@meyering.net>
60518
60519         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
60520         same value as for Solaris 9.
60521
60522         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
60523         component length.  This included changing the parameter to be
60524         of type `char *' rather than `char const *'.
60525         * lib/chdir-long.h (chdir_long): Update prototype.
60526
60527         * lib/openat.c (fdopendir, fstatat): New functions.
60528         * lib/openat.h: Include headers required for use of DIR and struct
60529         stat.
60530         [AT_SYMLINK_NOFOLLOW]: Define.
60531         (fdopendir, fstatat): Add prototypes.
60532
60533 2005-01-21  Bruno Haible  <bruno@clisp.org>
60534
60535         * modules/classpath: New file.
60536         * MODULES.html.sh (Java): Add classpath.
60537
60538 2005-01-21  Bruno Haible  <bruno@clisp.org>
60539
60540         * lib/classpath.h: New file, from GNU gettext.
60541         * lib/classpath.c: New file, from GNU gettext.
60542
60543 2005-01-20  Simon Josefsson  <jas@extundo.com>
60544
60545         * modules/version-etc-fsf: New file.
60546
60547 2005-01-20  Simon Josefsson  <jas@extundo.com>
60548
60549         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
60550         * lib/version-etc.c: Remove version_etc_copyright.
60551         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
60552         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
60553
60554 2005-01-20  Simon Josefsson  <jas@extundo.com>
60555
60556         * lib/base64.h (isbase64): Add.
60557
60558         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
60559         using a unsigned prototype, don't inline.
60560         (base64_decode): Use it.
60561
60562 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60563
60564         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
60565         it.
60566
60567 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60568
60569         * lib/save-cwd.c (save_cwd): Remove code to support the case
60570         where fchdir is missing or flaky.
60571
60572 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60573
60574         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
60575
60576 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60577
60578         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
60579         AC_LIBSOURCES now does this.
60580         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
60581         with new ullong_max module.
60582
60583 2005-01-19  Bruno Haible  <bruno@clisp.org>
60584
60585         * modules/sh-quote: New file.
60586         * MODULES.html.sh (Executing programs): Add sh-quote.
60587
60588 2005-01-19  Bruno Haible  <bruno@clisp.org>
60589
60590         * lib/sh-quote.h: New file, from GNU gettext.
60591         * lib/sh-quote.c: New file, from GNU gettext.
60592
60593 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60594
60595         Merge from coreutils.
60596         * m4/ullong_max.m4: New file.
60597         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
60598         (gl_MACROS): Assume localeconv exists.
60599
60600 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60601
60602         Merge changes from coreutils, as described below in several
60603         changelogs dated today.
60604
60605         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
60606         (O_DIRECTORY): Remove; not needed here, since "." must be
60607         a directory.  All uses removed.
60608         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
60609         universal on Suns, and we also need to test for IRIX.
60610         Revamp code to use 'if' rather than '#if'.
60611         Avoid unnecessary comparison of cwd->desc to 0.
60612
60613         * lib/utimens.c (futimens): Robustify the previous patch, by checking
60614         for known valid error numbers rather than observed invalid ones.
60615
60616 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60617
60618         * modules/ullong_max: New file.
60619
60620         * modules/chdir-long, modules/openat: New files.
60621         * modules/save-cwd (Depends-on): Depend on chdir-long.
60622         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
60623
60624 2005-01-18  Jim Meyering  <jim@meyering.net>
60625
60626         Merge from coreutils.
60627         * m4/chdir-long.m4, m4/openat.m4: New files.
60628         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
60629         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
60630         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
60631         is sane and DOES follow symlinks.  Besides, testing 20 different
60632         systems found no broken chown implementations.
60633         Prompted by a change in rsync's copy of this macro.
60634         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
60635
60636         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
60637
60638         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
60639         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
60640         NULL-means-set-to-current-time semantics.
60641         Remove temporary file immediately, rather than waiting
60642         for configure's at-exit trap code to do it.
60643
60644 2005-01-18  Jim Meyering  <jim@meyering.net>
60645
60646         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60647
60648         * lib/utimens.c (futimens): Account for the fact that futimes
60649         can also fail with errno == ENOSYS or errno == ENOENT.
60650         Patch from Dmitry V. Levin.
60651
60652         Change the name of the robust chdir function from chdir to chdir_long.
60653         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
60654         (restore_cwd): Use chdir_long, not chdir.
60655         * lib/chdir-long.c: Renamed from chdir.c.
60656         * lib/chdir-long.h: Renamed from chdir.h.
60657         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
60658         Hurd.
60659
60660 2005-01-18  Bruno Haible  <bruno@clisp.org>
60661
60662         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
60663         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
60664         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
60665         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
60666         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
60667         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
60668         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
60669         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
60670         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
60671         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
60672         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
60673         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
60674         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
60675         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
60676         Use an all-permissive copyright notice, recommended by RMS.
60677
60678 2005-01-18  Bob Proulx  <bob@proulx.com>
60679
60680         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
60681         simplify offsetof() macro construct to avoid compile failure with
60682         native HP-UX 11.0 ANSI C compiler.
60683
60684 2005-01-17  Bruno Haible  <bruno@clisp.org>
60685
60686         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
60687         redundant because stpncpy.m4 takes care of it.
60688
60689 2005-01-17  Bruno Haible  <bruno@clisp.org>
60690
60691         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
60692
60693 2005-01-17  Bruno Haible  <bruno@clisp.org>
60694
60695         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
60696         used.
60697
60698 2005-01-17  Bruno Haible  <bruno@clisp.org>
60699
60700         * lib/fwriteerror.h (fwriteerror): Change specification to include
60701         fclose.
60702         * lib/fwriteerror.c: Include <stdbool.h>.
60703         (fwriteerror): At the end, close the file stream. Record whether
60704         stdout was already closed.
60705
60706 2005-01-17  Bruno Haible  <bruno@clisp.org>
60707
60708         * lib/execute.c (environ): Declare if needed.
60709         * lib/pipe.c (environ): Likewise.
60710         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
60711
60712 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60713
60714         * modules/argp: Depend on vsnprintf
60715
60716 2005-01-10  Jim Meyering  <jim@meyering.net>
60717
60718         * modules/closeout (Depends-on): Add atexit.
60719
60720 2005-01-06  Bruno Haible  <bruno@clisp.org>
60721
60722         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
60723
60724 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60725
60726         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
60727         definitions to be after all include files, to avoid collisions.
60728         Problem reported by Bob Proulx.
60729
60730 2005-01-04  Jim Meyering  <jim@meyering.net>
60731
60732         Changes imported from coreutils.
60733         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
60734         as the mkstemp template, use a temporary directory and an
60735         8.3-friendly template to avoid trouble on systems like DJGPP.
60736         Reported by Juan M. Guerrero via Stepan Kasal.
60737         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
60738         close. Remove the temporary directory right away, rather than waiting
60739         for configure's at-exit trap code to do it.
60740         Suggestion from Stepan Kasal.
60741
60742 2005-01-01  Simon Josefsson  <jas@extundo.com>
60743
60744         * gnulib-tool: Print #include directives when --import'ing.
60745
60746 2004-12-28  Simon Josefsson  <jas@extundo.com>
60747
60748         * tests/test-base64.c: Include required header files.  Remove
60749         unused variables.
60750
60751 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60752
60753         * modules/error (Depends-on): Remove gettext.
60754
60755 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60756
60757         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
60758         not needed.  This removes a dependency on the gettext module.
60759         [defined _LIBC]: Do not include <libintl.h>; not needed.
60760
60761 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60762
60763         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
60764         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
60765
60766 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60767
60768         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
60769         HAVE_DECL_STRTOLD.
60770
60771 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60772
60773         * modules/getdate (Depends-on): Remove alloca-opt.
60774
60775 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60776
60777         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
60778
60779 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60780
60781         * lib/argp-parse.c: Include <stddef.h>.
60782         (alignof, alignto): New macros.
60783         (parser_init): Don't assume that void * is aligned sufficiently
60784         for struct option.
60785
60786         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
60787         need to extend the stack.
60788         (YYINITDEPTH): New macro, so that the initial stack isn't overly
60789         large.
60790
60791 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60792
60793         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
60794
60795 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60796
60797         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
60798         (2004-10-24) change.  Apparently this was a false alarm.
60799
60800         * modules/getdate: Depend on alloca-opt, not alloca.
60801
60802 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60803
60804         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
60805         Remove now-obsolete comment about AIX.
60806         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
60807         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
60808         (YYMAXDEPTH): New macro.
60809
60810 2004-12-18  Simon Josefsson  <jas@extundo.com>
60811
60812         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
60813
60814 2004-12-18  Bruno Haible  <bruno@clisp.org>
60815
60816         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
60817
60818 2004-12-18  Bruno Haible  <bruno@clisp.org>
60819
60820         * lib/fatal-signal.c (fatal_signals): Make non-const.
60821         (init_fatal_signals): New function.
60822         (uninstall_handlers, install_handlers): Ignore signals that were set to
60823         SIG_IGN.
60824         (at_fatal_signal): Call init_fatal_signals.
60825         (init_fatal_signal_set): Likewise. Ignore signals that were set to
60826         SIG_IGN.
60827         Reported by Paul Eggert.
60828
60829 2004-12-18  Bruno Haible  <bruno@clisp.org>
60830
60831         * doc/alloca.texi: New file.
60832         * doc/alloca-opt.texi: New file.
60833
60834 2004-12-17  Jim Meyering  <jim@meyering.net>
60835
60836         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
60837         Otherwise, install-sh could exit with improper exit status when
60838         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
60839
60840 2004-12-16  Simon Josefsson  <jas@extundo.com>
60841
60842         * tests/test-base64.c: Add license.
60843
60844 2004-12-15  Stepan Kasal  <address@hidden>
60845
60846         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
60847
60848 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
60849
60850         * modules/getcwd (Files): Add m4/d-ino.m4.
60851         Suggested by Mark D. Baushke.
60852
60853 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60854
60855         * lib/getdate.y (textint): New member "negative".
60856         (time_zone_hhmm): New function.
60857         Expect 14 shift-reduce conflicts, not 13.
60858         (o_colon_minutes): New rule.
60859         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
60860         (yylex): Set the "negative" member of signed numbers.
60861
60862 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60863
60864         * doc/getdate.texi (Time of day items, Time zone items):
60865         Describe new formats +00:00, UTC+00:00.
60866
60867 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60868
60869         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
60870         spurious "-l"s.  Problem reported by Stepan Kasal.
60871
60872 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
60873
60874         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
60875         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
60876
60877 2004-12-04  Simon Josefsson  <jas@extundo.com>
60878
60879         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
60880         Vandoorselaere <yoann@prelude-ids.org>.
60881
60882 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60883
60884         Changes imported from coreutils.
60885         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
60886         exist.
60887         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
60888
60889 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60890
60891         Changes imported from coreutils.
60892         * lib/hard-locale.c: Assume <locale.h> exists.
60893         Include "strdup.h".
60894         (GLIBC_VERSION): New macro.
60895         (hard_locale): Assume setlocale exists.
60896         Rewrite to avoid #ifdef.
60897         Use strdup rather than malloc + strcpy.
60898         * lib/human.c: Assume <locale.h> exists.
60899         (human_readable): Assume localeconv exists.
60900
60901 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60902
60903         * modules/hard-locale (Depends-on): Add strdup.
60904
60905 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60906
60907         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
60908         convert T2, not T.  (Imported from libc.)
60909
60910 2004-11-30  Simon Josefsson  <jas@extundo.com>
60911
60912         * modules/restrict (License): Change to LGPL.
60913
60914 2004-11-30  Simon Josefsson  <jas@extundo.com>
60915
60916         * m4/restrict.m4: Add copyright and copying conditions.
60917
60918 2004-11-30  Simon Josefsson  <jas@extundo.com>
60919
60920         * m4/base64.m4: New file.
60921
60922 2004-11-30  Simon Josefsson  <jas@extundo.com>
60923
60924         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
60925         base64.
60926
60927         * tests/test-base64.c: New file.
60928
60929         * modules/base64: New file.
60930
60931 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60932
60933         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
60934         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
60935
60936         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
60937
60938 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60939
60940         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
60941         (__getcwd.c): Don't restore errno; glibc doesn't.
60942         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
60943         first, falling back to our code only if its results look suspicious.
60944         Ensure that the resulting buffer is only as large as necessary.
60945
60946         * lib/readutmp.c: Include readutmp.h first.
60947         Include <errno.h>, since readutmp.h no longer does that.
60948         * lib/readutmp.h: Don't include <errno.h>,
60949         <sys/param.h>, <time.h>; not needed to establish interface.
60950         (errno): Remove decl.
60951         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
60952         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
60953         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
60954
60955 2004-11-28  Simon Josefsson  <jas@extundo.com>
60956
60957         * lib/base64.h, base64.c: New file.
60958
60959 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60960
60961         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
60962
60963 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60964
60965         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
60966         (Depends-on): Remove pathmax, same.  Add mempcpy.
60967         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
60968         (Makefile.am): Append getcwd.h to lib_SOURCES.
60969         (Include): Add getcwd.h.
60970         (Maintainer): Change from Jim Meyering to "all, glibc",
60971         since getdate now uses intended-for-glibc code.
60972         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
60973         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
60974
60975 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60976
60977         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
60978         HP's ANSI C compiler.
60979         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
60980         Declaring int functions causes warnings on some modern systems and
60981         shouldn't be needed to compile on ancient ones.
60982         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
60983         defined.
60984
60985         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
60986         with the following changes.
60987         (__set_errno): Parenthesize properly.
60988         Include <stdbool.h>.
60989         (MIN, MAX, MATCHING_INO): New macros.
60990         (__getcwd): Define with prototype, not K&R form.
60991         Use heuristics to allocate default buffer on stack if possible.
60992         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
60993         behavior, and to avoid the PATH_MAX limit when computing
60994         ../../../../...
60995         Use MATCHING_INO to compare inode number to file.
60996         Check for arithmetic overflow in size calculations.
60997         Fix bug in reallocation of dot array that caused getcwd to fail
60998         on directories nested deeper than 75.
60999         Be more careful about saving errno on error.
61000         Do not use realloc; use only free+malloc, as this is a bit
61001         more flexible and avoids a needless copy operation.
61002         Do not inspect st_dev and st_ino for symbolic links; POSIX
61003         doesn't specify the latter.
61004         Check for closedir errors.
61005         Avoid needless casts.
61006         Use "#ifdef weak_alias" around weak_alias, to be like other
61007         glibc code.
61008         The following changes to getcwd.c have effect only when used in
61009         gnulib; they have no effect inside glibc proper.
61010         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
61011         as alloca isn't used.
61012         (alloca, __alloca): Likewise.
61013         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
61014         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61015         unconditionally, as gnulib assumes C89 or better.
61016         Do not include <sys/param.h>.
61017         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
61018         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
61019         better.
61020         (NULL) [!defined NULL]: Remove; we assume C89 or better.
61021         Include <dirent.h> in a way that is compatible with modern Autoconf.
61022         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
61023         New macros, if not already defined.
61024         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
61025         Use "_LIBC", not "defined _LIBC", for consistency.
61026         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
61027         a mempcpy module.
61028         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
61029         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
61030         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
61031         credit only to Jim Meyering and adjust the copyright dates.
61032         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
61033         <stdlib.h>, <unistd.h>, "pathmax.h".
61034         Instead, include "xgetcwd.h" (first) and "getcwd.h".
61035         (INITIAL_BUFFER_SIZE): Remove.
61036         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
61037
61038 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61039
61040         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
61041         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
61042         Use the _ONCE methods, for efficiency.
61043         Check for fcntl.h.  In test program, include <errno.h>
61044         and <fcntl.h> if available.  Remove old K&R cruft from
61045         test program.  Check for common errors in GNU/Linux,
61046         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
61047         don't do AC_LIBOBJ, as that's getcwd.m4's job.
61048         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
61049         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
61050         name accordingly.
61051         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
61052         accommodate new getcwd.c.
61053         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
61054         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
61055         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
61056         that's all we need now.
61057
61058 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61059
61060         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
61061         argp-parse.c depends on getopt internals, that means we should
61062         always use our getopt, to be on the safe side.
61063         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
61064         order not to spoil the result of an eventual previous invocation
61065         of gl_GETOPT_SUBSTITUTE.
61066
61067 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61068
61069         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
61070         redefinition warnings. To avoid them, include the defines
61071         in `#if !defined __need_getopt ... #endif'. The only place
61072         where __getopt_argv_const is used is in definitions
61073         of getopt_long and getopt_long_only below, which are as well
61074         protected by `#ifndef __need_getopt'.
61075         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
61076         __need_getopt after including <stdio.h> and <unistd.h> These
61077         headers might have defined it.
61078
61079 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61080
61081         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
61082
61083 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61084
61085         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
61086         (futimens): New function, which uses futimes if available.
61087         (futimens, utimens): Support timespec==NULL, with same semantics
61088         as utime and utimens.
61089         * lib/utimens.h (futimens): New decl.
61090
61091 2004-11-23  Jim Meyering  <jim@meyering.net>
61092
61093         * lib/getopt_.h: Remove trailing blanks.
61094
61095 2004-11-23  Jim Meyering  <jim@meyering.net>
61096
61097         * lib/__fpending.c: Add comment.
61098
61099 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
61100
61101         * modules/canonicalize (Depends-on): Add xreadlink.
61102         Problem reported by James Youngman.
61103
61104 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61105
61106         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
61107         New macros.
61108         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
61109         optopt): Use them instead of invoking ## directly; otherwise, the
61110         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
61111
61112 2004-11-19  Bruno Haible  <bruno@clisp.org>
61113
61114         * lib/strtok_r.c: Move comments from here...
61115         * lib/strtok_r.h: ... to here.
61116
61117 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61118
61119         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
61120         implementations that mishandle size_t overflow.
61121
61122 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61123
61124         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
61125         might fail.  Problem reported by Yoann Vandoorselaere.
61126         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
61127         implementations that mishandle size_t overflow.
61128
61129 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61130
61131         * modules/canon-host (Depends-on): Add strdup.
61132
61133 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61134
61135         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
61136
61137 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61138
61139         * lib/canon-host.c: Include "strdup.h".
61140         (canon_host): Use getaddrinfo if available, so that IPv6 works.
61141         Use strdup instead of malloc/strcpy to duplicate strings.
61142
61143         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
61144         (human_space_before_unit): New constant.
61145         * lib/human.c (human_readable): Support it.
61146
61147         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
61148         (xgetcwd): Set errno correctly when failing.
61149         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
61150         the failure is actually due to a PATH_MAX problem.
61151
61152         Further getopt changes to make it more likely that glibc will
61153         buy the changes back.
61154         * lib/getopt.c (POSIXLY_CORRECT): New constant.
61155         (getopt): Use it, so to preserve glibc semantic
61156         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
61157         when compiling for libc.
61158         * lib/getopt_.h (__getopt_argv_const): Bring it back.
61159         (getopt_long, getopt_long_only): Use it.
61160
61161         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61162         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
61163         (getopt): Argv is now char * const *, as per standard.
61164         (_getopt_internal_r, _getopt_internal): Argv is now char **,
61165         not char *__getopt_argv_const *.
61166         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61167         _getopt_long_only_r): Likewise.
61168         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
61169         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61170         _getopt_long_r, _getopt_long_only_r): Likewise.
61171         * lib/getopt_.h (__getopt_argv_const): Remove.
61172         (getopt): Argv is now char * const *, as per standard.
61173
61174         * lib/getdate.y (tORDINAL): New token.
61175         (day, relunit): Allow it for relative times.
61176         (relative_time_table): Use tORDINAL for ordinals.
61177
61178 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61179
61180         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
61181         Document that "second" isn't allowed as an ordinal number.
61182
61183 2004-11-16  Jim Meyering  <jim@meyering.net>
61184
61185         * modules/closeout (Depends-on): Add fpending.
61186
61187 2004-11-15  Jim Meyering  <jim@meyering.net>
61188
61189         * lib/closeout.c: Include "__fpending.h" once again.
61190         Include <stdbool.h>.
61191         (close_stdout): Don't fail just because stdout was closed initially,
61192         since some programs don't write to stdout in the normal course of
61193         operation (other than --version and --help), and we don't want this
61194         function to make e.g. `touch file >&-' fail.
61195         But do fail if it was closed and someone has tried to write to it.
61196         E.g., `printf foo >&-' must fail.
61197
61198 2004-11-13  Jim Meyering  <jim@meyering.net>
61199
61200         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
61201
61202 2004-11-12  Simon Josefsson  <jas@extundo.com>
61203
61204         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
61205         small doc fix is still pending.
61206
61207 2004-11-11  Simon Josefsson  <jas@extundo.com>
61208
61209         * modules/strtok_r: New file.
61210
61211         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61212         strtok_r.
61213
61214 2004-11-11  Simon Josefsson  <jas@extundo.com>
61215
61216         * m4/strtok_r.m4: New file.
61217
61218         * m4/getopt.m4: Replace opterr.
61219
61220 2004-11-11  Simon Josefsson  <jas@extundo.com>
61221
61222         * lib/strtok_r.h, strtok_r.c: New file.
61223
61224 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61225
61226         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
61227         of replacing opterr, getopt, etc.  This should handle the
61228         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
61229
61230 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61231
61232         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
61233         we can stop lying to compilers about the constness of argv when we
61234         are compiled outside glibc.
61235         (getopt, getopt_long, getopt_long_only): Use it.
61236         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61237         _getopt_internal, getopt): Likewise.
61238         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61239         _getopt_long_only_r): Likewise.
61240         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61241         _getopt_long_r, _getopt_long_only_r): Likewise.
61242
61243         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
61244         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
61245         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
61246         the other external symbols.
61247         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
61248         declaration, since the above renaming now works around collisions.
61249
61250 2004-11-11  Jim Meyering  <jim@meyering.net>
61251
61252         * lib/linebreak.c: Remove trailing blanks.
61253         * lib/alloca_.h: Likewise.
61254         * lib/acosl.c: Likewise.
61255         * lib/euidaccess.c: Likewise.
61256         * lib/allocsa.h: Likewise.
61257
61258 2004-11-10  Simon Josefsson  <jas@extundo.com>
61259
61260         * m4/getaddrinfo.m4: New file.
61261
61262 2004-11-10  Simon Josefsson  <jas@extundo.com>
61263
61264         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
61265
61266 2004-11-10  Simon Josefsson  <jas@extundo.com>
61267
61268         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61269         getaddrinfo.
61270
61271         * modules/getaddrinfo: New file.
61272
61273 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61274
61275         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
61276
61277 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61278
61279         * lib/mktime.c (SHR): New macro, which is a portable
61280         substitute for >> that should work even on Crays.
61281         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
61282         Problem reported by Mark D. Baushke in
61283         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
61284         * lib/getdate.y (SHR): Likewise.
61285         (tm_diff): Use it.
61286         * lib/strftime.c (SHR): Likewise.
61287         (tm_diff): Use it.
61288         * lib/quotearg.c (struct quoting_options): Use unsigned int for
61289         quote_these_too, so that right shifts are well defined.  All uses
61290         changed.
61291
61292 2004-11-10  Jim Meyering  <jim@meyering.net>
61293
61294         Ensure that no close failure goes unreported.
61295         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
61296         return early when it seems there's nothing to flush.
61297         Don't include __fpending.h.
61298
61299 2004-11-10  Jim Meyering  <jim@meyering.net>
61300
61301         * modules/closeout (Depends-on): Remove fpending.
61302
61303 2004-11-10  Jim Meyering  <jim@meyering.net>
61304
61305         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
61306
61307 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61308
61309         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
61310         gl_FUNC_STRFTIME.
61311         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
61312         and AC_REQUIRE when possible, to avoid duplicate checks.
61313         Check for <wchar.h>.
61314
61315 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61316
61317         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
61318
61319 2004-11-09  Bruno Haible  <bruno@clisp.org>
61320
61321         * m4/sockpfaf.m4: New file.
61322
61323 2004-11-05  Bruno Haible  <bruno@clisp.org>
61324
61325         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
61326         Reported by Mark D. Baushke <mdb@cvshome.org>.
61327
61328 2004-11-04  Bruno Haible  <bruno@clisp.org>
61329
61330         2004-09-11  Bruno Haible  <bruno@clisp.org>
61331                 * allocsa.valgrind: New file.
61332         2004-02-06  Bruno Haible  <bruno@clisp.org>
61333                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
61334                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
61335                 Reported by Christopher Seip <chris.seip@hp.com>.
61336
61337 2004-11-04  Bruno Haible  <bruno@clisp.org>
61338
61339         * modules/allocsa (Files): Add lib/allocsa.valgrind.
61340         (Makefile.am): Distribute it.
61341
61342 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61343
61344         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
61345         with errno == ERANGE if the buffer is too small.
61346         Problem reported by Mark D. Baushke.
61347
61348 2004-11-03  Albert Chin  <china@thewrittenword.com>
61349             Paul Eggert  <eggert@cs.ucla.edu>
61350
61351         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
61352         equivalent, substitute $ac_type for equivalent type rather than
61353         blindly using uint32_t *always* which won't work if uint32_t is not
61354         available.  Define _UINT32_T to work around typedef of uint32_t if
61355         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
61356         2.5.1.
61357
61358 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61359
61360         * m4/jm-macros.m4: Sync from coreutils.
61361         (gl_MACROS): Check for mbrlen, for pathchk.
61362         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
61363
61364 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61365
61366         * lib/xreadlink.c (MAXSIZE): New macro.
61367         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
61368         size does not exceed MAXSIZE.  Avoid cast.
61369         As suggested by Mark D. Baushke in
61370         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
61371         if readlink fails with buffer size just under MAXSIZE, try again
61372         with MAXSIZE.
61373
61374 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61375
61376         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
61377
61378 2004-11-02  Derek R. Price  <derek@ximbiot.com>
61379         and  Paul Eggert  <eggert@cs.ucla.edu>
61380
61381         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
61382         (get_date): Overparenthesize to avoid GCC warning.
61383
61384 2004-11-02  Bruno Haible  <bruno@clisp.org>
61385
61386         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
61387         returns void.
61388
61389 2004-11-02  Bruno Haible  <bruno@clisp.org>
61390
61391         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
61392         function returns void.
61393
61394 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61395
61396         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
61397         fflush_unlocked, flockfile, funlockfile, funlockfile,
61398         fputs_unlocked, putc_unlocked.
61399
61400 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61401
61402         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61403         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
61404         already declared.
61405
61406 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61407
61408         * modules/getdate (Files): Add doc/getdate.texi.
61409         (Depends-on): Add setenv, xalloc.
61410
61411 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61412
61413         * lib/getdate.y: Add support for TZ="foo" within a date string.
61414         Fix some bugs near time_t boundaries.  Reject dates with
61415         out-of-range components, e.g., "Sept 31".
61416         Include <stdlib.h>, "setenv.h", "xalloc.h".
61417         (ISDIGIT_LOCALE): Remove; unused.
61418         Note that the TZ and time functions used here are not reentrant.
61419         (mktime_ok, get_tz): New functions.
61420         (TZBUFSIZE): New constant.
61421         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
61422         This requires that we sometimes generate our own TZ="XXX..." setting.
61423
61424 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61425
61426         * doc/getdate.texi: New file, from coreutils with modifications for
61427         the new TZ parsing.
61428
61429 2004-10-27  Derek R. Price  <derek@ximbiot.com>
61430
61431         * lib/mktime.c (not_equal_tm): Remove redundant check.
61432
61433 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61434
61435         * modules/regex (lib_SOURCES): Add regex.c.
61436         Reported by James Youngman in
61437         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
61438
61439 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61440
61441         * lib/getdate.y: Use Bison 1.875 features, and some minor
61442         code cleanups.  This change does not affect semantics.
61443         Don't include <stdlib.h>; no longer needed.
61444         Don't include unlocked-io.h; only the "#if TEST" code uses
61445         stdio, and performance isn't crucial there.
61446         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
61447         Bison 1.875 features as described below.
61448         All uses of "PC." replaced by "pc->".
61449         (YYSTYPE): Add a forward declaration.
61450         (yylex, yyerror): Use full prototypes in forward decls.
61451         Use "%pure-parser" rather than obsolescent "%pure_parser".
61452         Use %parse-param and %lex-param instead of obsolescent
61453         YYPARSE_PARAM and YYLEX_PARAM.
61454         (meridian_table, month_and_day_table, time_units_table,
61455         relative_time_table, time_zone_table, military_table,
61456         lookup_zone, lookup_word, get_date):
61457         Use NULL instead of 0 where appropriate.
61458         (to_hour): Avoid abort (), to avoid a dependency on
61459         stdlib.h.
61460         (yyerror, yylex): Now accepts parser_control * arg.
61461         (main) [TEST]: Use '\0' rather than 0 for char.
61462
61463 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61464
61465         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
61466
61467 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61468
61469         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
61470         It's now the caller's responsibility to handle the case where
61471         !HAVE_GETPAGESIZE && !defined getpagesize.
61472
61473         * lib/mktime.c (leapyear): Arg is long int, not int.
61474
61475 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
61476
61477         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
61478
61479 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61480
61481         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
61482         missing.  Problem reported by James Youngman.
61483
61484 2004-10-16  Simon Josefsson  <jas@extundo.com>
61485
61486         * gnulib-tool: Fix comments.  Fix parse problem.
61487         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
61488
61489 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
61490
61491         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
61492         implementation of getopt_long.  Problem reported by Alexander Taler in:
61493         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
61494
61495 2004-10-15  Bruno Haible  <bruno@clisp.org>
61496
61497         * gnulib-tool: Untabify. Initialize supplied_libname.
61498         (func_usage): More homogenous output.
61499         (func_modules_transitive_closure, func_modules_to_filelist,
61500         func_emit_lib_Makefile_am): New functions.
61501         (func_import): New function, extracted from big case statement. Use
61502         func_get_license, func_modules_transitive_closure,
61503         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
61504         opt_lgpl. Don't use test -a, as it's not portable.
61505         (func_create_testdir): Use func_modules_transitive_closure,
61506         func_modules_to_filelist, func_emit_lib_Makefile_am.
61507
61508 2004-10-15  Bruno Haible  <bruno@clisp.org>
61509
61510         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
61511
61512 2004-10-15  Bruno Haible  <bruno@clisp.org>
61513
61514         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
61515         the portions belonging to each module.
61516         Suggested by Derek Robert Price <derek@ximbiot.com>.
61517
61518 2004-10-12  Simon Josefsson  <jas@extundo.com>
61519
61520         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61521         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
61522         to real functions.
61523
61524 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61525
61526         * modules/vsnprintf: New file.
61527
61528 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61529
61530         * m4/vsnprintf.m4: New file.
61531
61532 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61533
61534         * lib/vsnprintf.h: New file.
61535         * lib/vsnprintf.c: New file.
61536
61537 2004-10-11  Bruno Haible  <bruno@clisp.org>
61538
61539         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
61540         vsnprintf.
61541
61542 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61543
61544         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
61545
61546 2004-10-07  Bruno Haible  <bruno@clisp.org>
61547
61548         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
61549         fits into the provided buffer.
61550
61551 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61552
61553         * lib/diacrit.c, diacrit.h: Add GPL notice.
61554
61555         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
61556         notice.
61557         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
61558         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
61559         This avoids a potential constant-folding bug.
61560
61561 2004-10-05  Bruno Haible  <bruno@clisp.org>
61562
61563         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
61564         for the declaration of strsep.
61565
61566 2004-10-05  Bruno Haible  <bruno@clisp.org>
61567
61568         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
61569
61570 2004-10-04  Simon Josefsson  <jas@extundo.com>
61571
61572         * modules/memmem: New file.
61573         * tests/test-memmem.c: New file.
61574         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
61575
61576 2004-10-04  Simon Josefsson  <jas@extundo.com>
61577
61578         * m4/memmem.m4: New file.
61579
61580 2004-10-04  Simon Josefsson  <jas@extundo.com>
61581
61582         * lib/memmem.h: New file.
61583         * lib/memmem.c: New file, taken from glibc.
61584
61585 2004-10-04  Simon Josefsson  <jas@extundo.com>
61586
61587         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
61588         '#ifdef USE_UNLOCKED_IO'.
61589
61590 2004-10-04  Simon Josefsson  <jas@extundo.com>
61591
61592         * config/srclist.txt: Add memmem from glibc.
61593
61594 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61595
61596         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
61597
61598         * modules/argmatch, modules/argp, modules/closeout, modules/error,
61599         modules/exclude, modules/getdate, modules/getline,
61600         modules/getndelim2, modules/getpass, modules/getpass-gnu,
61601         modules/getusershell, modules/linebuffer, modules/md5,
61602         modules/mountlist, modules/posixtm, modules/readtokens,
61603         modules/readutmp, modules/regex, modules/sha1,
61604         modules/version-etc, modules/yesno:
61605         Remove dependency on unlocked-io.
61606
61607 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61608
61609         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
61610
61611         * m4/unlocked-io.m4: Add copyright notice.
61612         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
61613
61614 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61615
61616         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
61617         * lib/xmalloc.c (xmemdup): Likewise.
61618         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
61619         XFREE): Remove these long-obsolescent macros.
61620         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
61621         * lib/xstrdup.c: Remove.
61622
61623         * lib/regex.c (re_comp): Cast gettext return value to char *,
61624         Problem reported by Martin Neitzel via Mark D. Baushke.
61625
61626 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
61627
61628         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
61629         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
61630         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
61631         regex.c, sha1.c, version-etc.c, yesno.c:
61632         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
61633         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
61634         the includer's responsibility.
61635
61636         Sync from coreutils.
61637
61638         * lib/modechange.c (mode_compile): Don't decrement a pointer that
61639         points to the start of a string, as the C Standard says the
61640         resulting behavior is undefined.
61641
61642         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
61643         simple -> simple_backups, numbered_existing ->
61644         numbered_existing_backups, numbered -> numbered_backups
61645         to avoid shadowing problems.  All uses changed.
61646         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
61647         * lib/backupfile.c (check_extension, numbered_backup):
61648         Rename locals to avoid shadowing 'basename'.
61649         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
61650         once.
61651
61652         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
61653         * lib/.cvsignore: Add getopt.h.
61654
61655 2004-10-04  Bruno Haible  <bruno@clisp.org>
61656
61657         * modules/README: New file.
61658         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
61659         not a module.
61660
61661 2004-10-02  Jim Meyering  <jim@meyering.net>
61662
61663         * lib/dirfd.h, getpagesize.h: Add copyright notice.
61664
61665 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61666
61667         * modules/strsep: New file.
61668
61669 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61670
61671         * m4/strsep.m4: New file.
61672
61673 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61674
61675         * lib/strsep.h: New file.
61676         * lib/strsep.c: New file.
61677
61678 2004-10-01  Simon Josefsson  <jas@extundo.com>
61679
61680         * lib/snprintf.c (snprintf): Handle size==0.
61681
61682 2004-10-01  Simon Josefsson  <jas@extundo.com>
61683             Bruno Haible  <bruno@clisp.org>
61684
61685         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
61686         (snprintf): Declare 'args'.
61687
61688 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
61689
61690         * lib/snprintf.c: Remove comments as to why each header is needed.
61691
61692 2004-10-01  Bruno Haible  <bruno@clisp.org>
61693
61694         * MODULES.html.sh: Add strsep.
61695
61696 2004-09-30  Simon Josefsson  <jas@extundo.com>
61697
61698         * modules/snprintf: New file.
61699
61700 2004-09-30  Simon Josefsson  <jas@extundo.com>
61701
61702         * m4/snprintf.m4: New file.
61703
61704 2004-09-30  Simon Josefsson  <jas@extundo.com>
61705
61706         * lib/snprintf.h, lib/snprintf.c: New files.
61707
61708 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61709
61710         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
61711         (hol_entry_help): Never translate an empty string.
61712         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
61713         * lib/argp.h (OPTION_NO_TRANS): New option.
61714
61715 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61716
61717         * modules/argp (Maintainer): Replace Simon Josefsson
61718         by Sergey Poznyakoff.
61719
61720 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61721
61722         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
61723         changes merged back into glibc.
61724
61725 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61726
61727         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
61728
61729 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61730
61731         * lib/xvasprintf.c: Include xalloc.h.
61732         (xvasprintf): Use xalloc_die, not xmalloc_die.
61733
61734 2004-09-29  Bruno Haible  <bruno@clisp.org>
61735
61736         * modules/alloca-opt: New file, derived from modules/alloca.
61737         * modules/allocsa: Depend on alloca-opt instead of alloca.
61738         * modules/setenv: Likewise.
61739         * modules/vasnprintf: Likewise.
61740         * MODULES.html.sh: Add alloca-opt.
61741
61742 2004-09-28  Simon Josefsson  <jas@extundo.com>
61743
61744         * gnulib-tool: New parameter --lgpl, to asseert that modules are
61745         LGPL, and to replace license template from GPL to LGPL.
61746
61747 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61748
61749         * modules/dummy: Change license to LGPL.
61750
61751 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61752
61753         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
61754
61755 2004-09-24  Simon Josefsson  <jas@extundo.com>
61756
61757         * modules/minmax (License): Change from GPL to LGPL.
61758
61759 2004-09-23  Simon Josefsson  <jas@extundo.com>
61760
61761         * gnulib-tool (--import): Typo.
61762
61763 2004-09-23  Simon Josefsson  <jas@extundo.com>
61764
61765         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
61766
61767 2004-09-22  Bruno Haible  <bruno@clisp.org>
61768
61769         * modules/*: Add 'License' field.
61770         * gnulib-tool: Accept --extract-license option.
61771         (func_get_license): New function.
61772
61773 2004-09-21  Bruno Haible  <bruno@clisp.org>
61774
61775         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
61776         Reported by Simon Josefsson.
61777
61778 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61779
61780         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
61781         gl_AC_TYPE_LONG_LONG.
61782
61783 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61784
61785         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
61786
61787 2004-09-18  Simon Josefsson  <jas@extundo.com>
61788         and  Paul Eggert  <eggert@cs.ucla.edu>
61789
61790         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
61791         calls with autoreconf.  Define GL_LIB.
61792
61793 2004-09-14  Karl Berry  <karl@gnu.org>
61794
61795         * config/srclist.txt: unsync setenv.c, sigh.
61796
61797 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61798
61799         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
61800         Problem reported by Bruno Haible in:
61801         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
61802
61803 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61804
61805         * config/srclist.txt: Comment out argp-pvh.c.
61806
61807 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
61810         in case some system header has #define'd it.  Problem reported by
61811         Soeren D. Schulze in
61812         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
61813
61814 2004-09-09  Karl Berry  <karl@gnu.org>
61815
61816         * regex.[ch]: delete from the root.  These were supposed to be
61817                 synced with emacs cvs, but this has not happened for about
61818                 a year, and anyway nothing else uses emacs regex.[ch].
61819                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
61820                 lib/regex[.ch] is untouched.
61821
61822 2004-09-09  Bruno Haible  <bruno@clisp.org>
61823
61824         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
61825
61826 2004-09-09  Bruno Haible  <bruno@clisp.org>
61827
61828         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
61829         modifications.
61830         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
61831
61832 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61833
61834         * modules/xvasprintf: New file.
61835         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
61836
61837 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61838
61839         * lib/xvasprintf.h: New file.
61840         * lib/xvasprintf.c: New file.
61841         * lib/xasprintf.c: New file.
61842
61843 2004-09-08  Bruno Haible  <bruno@clisp.org>
61844
61845         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
61846
61847 2004-09-08  Bruno Haible  <bruno@clisp.org>
61848
61849         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
61850         length is > INT_MAX.
61851         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
61852         more.
61853
61854 2004-09-08  Bruno Haible  <bruno@clisp.org>
61855
61856         * lib/stdint_.h: New file, taken from GNU clisp.
61857
61858 2004-09-08  Bruno Haible  <bruno@clisp.org>
61859             Oskar Liljeblad  <oskar@osk.mine.nu>
61860
61861         * modules/stdint: New file.
61862         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
61863
61864 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61865
61866         Import from coreutils.
61867         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
61868         strings on unbounded length.  alloca's performance benefits aren't
61869         that important here.
61870         (V_STRDUP): Remove.
61871         (parse_with_separator): New function, with most of the internals
61872         of the old parse_user_spec.  Allow user to omit both user and group,
61873         for compatibility with FreeBSD.
61874         Clone only the user name, not the entire spec.
61875         Do not set *uid, *gid unless entirely successful.
61876         Avoid memory leak in some failing cases.
61877         Fix regression for USER.GROUP reported by Dmitry V. Levin in
61878         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
61879         (parse_user_spec): Rewrite to use parse_with_separator.
61880
61881 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61882
61883         * modules/userspec: Don't depend on alloca.
61884
61885 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61886
61887         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
61888
61889 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61890
61891         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
61892         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
61893         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
61894
61895 2004-08-16  Simon Josefsson  <jas@extundo.com>
61896
61897         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
61898         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
61899         Add --dry-run for --import.
61900         Let user provided command line parameters override configure.ac
61901         settings.
61902
61903 2004-08-12  Simon Josefsson  <jas@extundo.com>
61904
61905         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
61906         as discussed with Paul Eggert in threads rooted at
61907         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
61908         and
61909         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
61910         Before, the test was empty, and relied on ELIDE_CODE in source
61911         code.)
61912         (gl_PREREQ_GETOPT): New macro.
61913         (gl_GETOPT): Use them.
61914
61915 2004-08-12  Simon Josefsson  <jas@extundo.com>
61916
61917         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
61918         * lib/getopt_.h: Renamed from getopt.h.
61919
61920 2004-08-12  Simon Josefsson  <jas@extundo.com>
61921
61922         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
61923         Change default library name from libfoo to libgnu.
61924         Now, if you have a configure.ac that says:
61925                 gl_SOURCE_BASE(gl)
61926                 gl_M4_BASE(gl/m4)
61927                 gl_MODULES(error getopt etcetera)
61928                 gl_INIT
61929         you can import all you need by running:
61930                 ../gnulib/gnulib-tool --import
61931
61932         * modules/getopt (Files): Rename getopt.h to getopt_.h.
61933         (Makefile.am): Rewrite, use logic from argz.
61934         (Include): Use <getopt.h> instead of "getopt.h".
61935
61936 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61937
61938         * modules/argp (Files): Add m4/unlocked-io.m4.
61939         (Depends-on): Add extensions.
61940
61941 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61942
61943         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
61944         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
61945         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
61946         Check for program_invocation_name, program_invocation_short_name,
61947         flockfile, funlockfile, features.h, _getopt_long_only_r.
61948
61949 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61950
61951         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
61952         its complicated substitute.
61953         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
61954         and program_invocation_name.
61955         (__argp_basename) [!_LIBC]: Remove; the only use was
61956         replaced by its body.
61957         (__argp_short_program_name): Change condition from
61958         !defined __argp_short_program_name to
61959         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
61960         to match argp-namefrob.h.
61961         (__argp_failure): Don't assume strerror_r returns char *.
61962         * lib/argp-parse.c (N_): Define unconditionally.
61963         (argp_default_options): Fill out initializers with 0 to avoid
61964         gcc warnings.
61965
61966 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61967
61968         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
61969         getopt1.c.
61970
61971 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61972
61973         Merge from coreutils.
61974
61975         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
61976
61977         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
61978         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
61979
61980 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61981
61982         Merge from coreutils.
61983
61984         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
61985         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
61986         for Reliant Unix 5.43.
61987
61988         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
61989         (union fooround): Use uintmax_t, not long int.
61990         The rest is a merge from libc:
61991         [defined _LIBC]: Include <shlib-compat.h>.
61992         (_obstack) [defined _LIBC]: Remove after 2.3.4.
61993
61994         * lib/settime.c (settime): Recode to avoid warning with
61995         Sun Forte C 6U2.
61996
61997         * lib/strverscmp.c: Convert to UTF-8.
61998
61999 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62000
62001         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62002         m4/uintmax_t.m4.
62003
62004 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62005
62006         * modules/xalloc-die: New file.
62007         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
62008
62009         * modules/md5 (Files): Add m4/uint32_t.m4.
62010         * modules/sha1: Renamed from modules/sha.
62011         (Files):
62012         Rename lib/sha.h to lib/sha1.h.
62013         Rename lib/sha.c to lib/sha1.c.
62014         Rename m4/sha.m4 to m4/sha1.m4.
62015         (lib_SOURCES): Likewise.
62016         (configure.ac): Rename gl_SHA to gl_SHA1.
62017         (Include): sha.h -> sha1.h.
62018
62019 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62020
62021         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
62022         * m4/sha1.m4: Renamed from sha.m4.
62023         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
62024
62025 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62026
62027         * lib/obstack.h (obstack_empty_p):
62028         Don't assume that chunk->contents is suitably aligned.
62029         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
62030         Likewise. Problem reported by Benno in
62031         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
62032
62033         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
62034         readable.  This could be improved further but it'd take some work.
62035
62036 2004-08-08  Simon Josefsson  <jas@extundo.com>
62037
62038         * modules/xgethostname (Depends-on): Remove exit and error (not
62039         used).
62040
62041         * modules/getpass-gnu: Add getpass.h.
62042         (Depends-on): Add stdbool.
62043         * modules/getpass: Add getpass.h.
62044
62045 2004-08-08  Simon Josefsson  <jas@extundo.com>
62046
62047         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
62048         Check getpass declaration.
62049
62050 2004-08-08  Simon Josefsson  <jas@extundo.com>
62051
62052         * lib/xgethostname.c: Don't include error.h (not used).
62053
62054         * lib/getpass.h: Add.
62055         * lib/getpass.c: Include getpass.h first.
62056
62057 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
62058
62059         * lib/xalloc-die.c: New file.
62060         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
62061         All uses removed.
62062         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
62063         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
62064         xalloc-die.c.
62065         (_, N_, xalloc_die): Move to xalloc-die.c.
62066         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
62067         so that we needn't mess with xalloc_msg_memory_exhausted.
62068
62069         * lib/sha1.h: Renamed from sha.h.
62070         (SHA1_H): Renamed from _SHA_H.
62071         (sha1_ctx): Renamed from sha_ctx.
62072         (sha1_init_ctx): Renamed from sha_init_ctx.
62073         (sha1_process_block): Renamed from sha_process_block.
62074         (sha1_process_bytes): Renamed from sha_process_bytes.
62075         (sha1_finish_ctx): Renamed from sha_finish_ctx.
62076         (sha1_read_ctx): Renamed from sha_read_ctx.
62077         (sha1_stream): Renamed from sha_stream.
62078         (sha1_buffer): Renamed from sha_buffer.
62079         * lib/sha1.c: Likewise; renamed from sha.c.
62080         Do not include <sys/types.h>.
62081         Include <stddef.h> rather than <stdlib.h>.
62082
62083 2004-08-08  Bruno Haible  <bruno@clisp.org>
62084
62085         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
62086         FILESYSTEM_PREFIX_LEN.
62087         * lib/progreloc.c: Likewise.
62088         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
62089
62090 2004-08-06  Simon Josefsson  <jas@extundo.com>
62091
62092         * modules/progname (Depends-on): Don't depend on stdbool.
62093
62094 2004-08-06  Simon Josefsson  <jas@extundo.com>
62095
62096         * modules/getsubopt: New file.
62097         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62098         getsubopt.
62099
62100 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62101
62102         More merge from coreutils.
62103
62104         * m4/utimens.m4, m4/utimecmp.m4: New files.
62105         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
62106         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
62107         prereq.m4, sha.m4: Import changes from coreutils.
62108
62109 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62110
62111         More merge from coreutils.
62112         * modules/raise, modules/readtokens0, modules/utimens:
62113         * modules/utimecmp, module/xnanosleep: New files.
62114         * modules/strftime: Add lib/strftime.h.
62115         Change include from <time.h> to "strftime.h".
62116         * modules/yesno: Add lib/yesno.h.
62117         * modules/backupfile: Remove lib/addext.c.
62118         * modules/euidaccess: Add stat-macros.h.
62119         * modules/canonicalize, modules/euidaccess,
62120         modules/filemode, modules/lchown, modules/makepath,
62121         modules/rmdir, modules/stat: Likewise.
62122
62123 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62124
62125         Merge from tar.
62126         * lib/argp-help.c (make_hol, hol_append): Don't assume that
62127         SIZE_MAX is a valid preprocessor constant.
62128         (__argp_basename): Change from "#ifndef _LIBC"
62129         to "#ifndef __argp_short_program_name", so that
62130         we don't compile these functions for tar.
62131
62132         More merges from coreutils.
62133         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
62134         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
62135         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
62136         * lib/addext.c: Remove; no longer needed.
62137         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
62138         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
62139         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
62140         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
62141         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
62142         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
62143         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
62144         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
62145         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
62146         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62147         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
62148         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
62149         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
62150         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
62151         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
62152         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
62153         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
62154         Import changes from coreutils.
62155
62156 2004-08-05  Simon Josefsson  <jas@extundo.com>
62157
62158         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
62159
62160 2004-08-05  Simon Josefsson  <jas@extundo.com>
62161
62162         * m4/getsubopt.m4: New file.
62163
62164 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62165
62166         Merge from coreutils.
62167
62168         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
62169         * m4/getcwd-path-max.m4: New files.
62170
62171         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
62172         FILESYSTEM_PREFIX_LEN ->
62173         FILE_SYSTEM_PREFIX_LEN.
62174         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
62175         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
62176         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
62177         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
62178
62179         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
62180         prerequisite modules now handle the DOS stuff.
62181         Don't check for unistd.h.
62182
62183 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62184
62185         Merge from coreutils.
62186
62187         * lib/.gdb-history: Remove; this doesn't belong here.
62188
62189         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
62190         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
62191         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
62192         * lib/getcwd.c: New files.
62193
62194         * lib/dirname.h: Include <stdbool.h>.
62195         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
62196         for consistency with POSIX terminology.  All uses changed.
62197         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
62198         (strip_trailing_slashes): Use bool for booleans.
62199         * lib/stripslash.c (strip_trailing_slashes): Likewise.
62200
62201         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
62202         sometimes returns a positive errno value even when it succeeds.
62203         (print_errno_message) [!LIBC]: Fall back on strerror if
62204         __strerror_r fails.
62205
62206         * lib/path-concat.c (mempcpy): Don't define if a system header defines
62207         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
62208         (longest_relative_suffix): New function.
62209         (path_concat): Use it.  Assume first argument is not NULL.
62210         Port to DOS.  Omit redundant separators.
62211         Report an error instead of returning NULL.
62212         Use mempcpy instead of memcpy.
62213         (xpath_concat): Remove: not declared or used.
62214
62215         * lib/same.h: Include <stdbool.h>
62216         (same_name): Return bool, not int.
62217         * lib/same.c (same_name): Likewise.
62218         (errno): Don't declare; we assume C89 or better now.
62219
62220         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
62221         if not already defined.
62222
62223         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
62224         * lib/dup-safer.c (errno): Likewise.
62225
62226 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62227
62228         Merge from coreutils.
62229         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
62230         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
62231         * modules/path-concat: Don't depend on strdup.
62232
62233 2004-08-03  Simon Josefsson  <jas@extundo.com>
62234
62235         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
62236         * lib/progname.h: Don't include stdbool.h.
62237
62238 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62239
62240         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
62241         * MODULES.html.sh (func_all_modules): Remove fatal.
62242
62243 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62244
62245         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
62246
62247 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62248
62249         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
62250         working.
62251
62252 2004-08-02  Simon Josefsson  <jas@extundo.com>
62253
62254         * lib/getsubopt.h: New file, with comments from Bruno Haible.
62255         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
62256         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
62257
62258 2004-08-01  Simon Josefsson  <jas@extundo.com>
62259
62260         * lib/xgetdomainname.c: Include stdlib.h, for free().
62261
62262 2004-07-19  Bruno Haible  <bruno@clisp.org>
62263
62264         * MODULES.html.sh (func_all_modules): Add dummy.
62265
62266 2004-07-16  Simon Josefsson  <jas@extundo.com>
62267
62268         * modules/dummy: New file.
62269
62270 2004-07-16  Simon Josefsson  <jas@extundo.com>
62271
62272         * lib/dummy.c: New file.
62273
62274 2004-07-16  Bruno Haible  <bruno@clisp.org>
62275
62276         * lib/backupfile.h: Add extern "C" for C++.
62277         * lib/closeout.h: Likewise.
62278         * lib/copy-file.h: Likewise.
62279         * lib/findprog.h: Likewise.
62280         * lib/full-write.h: Likewise.
62281         * lib/pathname.h: Likewise.
62282         * lib/progname.h: Likewise.
62283         * lib/stpcpy.h: Likewise.
62284         * lib/stpncpy.h: Likewise.
62285         * lib/strcase.h: Likewise.
62286         * lib/strstr.h: Likewise.
62287         * lib/xalloc.h: Likewise.
62288
62289         * lib/mbswidth.h: Add extern "C" for C++.
62290         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
62291
62292 2004-07-13  Robert Millan  <robertmh@gnu.org>
62293
62294         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
62295
62296 2004-07-09  Simon Josefsson  <jas@extundo.com>
62297
62298         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
62299         failed without this.)
62300
62301 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62302
62303         * modules/chown (Files): Add lib/fchown-stub.c, since
62304         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
62305
62306 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62307
62308         * lib/fchown-stub.c: New file.
62309
62310 2004-06-24  Jim Meyering  <jim@meyering.net>
62311
62312         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
62313
62314 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62315
62316         * modules/argz: Omit "#include".
62317
62318         * MODULES.html.sh (func_all_modules): Add calloc, to match
62319         2004-06-01 addition of calloc module.
62320
62321 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62322
62323         * m4/argz.m4: New file, which is autoupdated from libtool.
62324
62325 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62326
62327         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
62328         libtool.
62329
62330 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62331
62332         * config/srclist-update: Don't insist on "USA." before the
62333         close-comment, as libtool omits the period and puts the */ on a
62334         separate line.
62335         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
62336         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
62337
62338 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
62339
62340         * modules/argz: New file.
62341         * MODULES.html.sh (func_all_modules): Add argz.
62342
62343 2004-06-12  Jim Meyering  <jim@meyering.net>
62344         and  Paul Eggert  <eggert@cs.ucla.edu>
62345
62346         * modules/hash (Files): Add lib/xalloc.h.
62347         * modules/pipe (Depends-on): Add wait-process.
62348         * modules/stat (Depends-on): Add xalloc.
62349         * modules/userspec (Files): Add lib/userspec.h.
62350         * modules/xstrto
62351
62352         Upgrade from gettext-0.13.
62353         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
62354         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
62355         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
62356
62357 2004-06-10  Jim Meyering  <jim@meyering.net>
62358
62359         * lib/calloc.c: New file.
62360
62361 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
62362
62363         * lib/getdate.y (yylex): Allow space between sign and number.
62364         Problem reported by Dan Jacobson.
62365
62366 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62367
62368         Merge from coreutils CVS.
62369
62370         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
62371         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
62372         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
62373         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
62374         xstrtol.m4: Fix copyright date and/or serial number.
62375
62376         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
62377         See if we need an fchown replacement.
62378         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
62379         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
62380         and use the replacement function if we detect either defect.
62381
62382         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
62383         gl_UTIMECMP.
62384
62385 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62386         and  Jim Meyering  <jim@meyering.net>
62387
62388         Merge from coreutils CVS.
62389
62390         * lib/stat-macros.h: New file, with contents from file-type.h
62391         and coreutils' system.h.
62392         * lib/file-type.c: Include "stat-macros.h".
62393         * lib/file-type.h (file_type): Move all macro definitions to new file,
62394         stat-macros.h.
62395
62396         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
62397         Wrap old code with this conditional.
62398         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
62399         function that does not dereference symlinks.
62400         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
62401
62402         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
62403         dependency problems.
62404         (xreadlink): Accept new arg SIZE, for efficiency.
62405         All decls and uses changed.
62406         * lib/xreadlink.h: Include <stddef.h>, for size_t.
62407
62408         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
62409         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
62410
62411         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
62412         sysexits.h.
62413
62414 2004-06-01  Jim Meyering  <jim@meyering.net>
62415
62416         * m4/calloc.m4: New file.
62417
62418 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
62419
62420         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
62421         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
62422         Also, fix a typo in a diagnostic.
62423
62424 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62425
62426         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
62427         or AC_FUNC_REALLOC.
62428
62429 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62430
62431         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
62432         macros to be defined.
62433         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
62434         the allocator returns NULL because the requested size is zero.
62435
62436 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62437
62438         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
62439         var.  Add comment explaining why libc still defines it.  This
62440         merges the following patch from glibc:
62441         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
62442
62443 2004-05-20  Andreas Schwab  <schwab@suse.de>
62444
62445         * m4/free.m4: Replace free if it not known to work, not the other
62446         way round.
62447
62448 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62449
62450         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
62451         present in glibc since revision 1.1 of this file.
62452         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
62453         obstack_alignment_mask, obstack_alloc, obstack_base,
62454         obstack_blank, obstack_blank_fast, obstack_chunk_size,
62455         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
62456         obstack_grow0, obstack_init, obstack_int_grow,
62457         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
62458         obstack_next_free, obstack_object_size, obstack_ptr_grow,
62459         obstack_ptr_grow_fast, obstack_room): Remove declarations of
62460         nonexistent functions.
62461
62462 2004-05-18  Karl Berry  <karl@gnu.org>
62463
62464         * config/srclist.txt: break link for vasnprintf.c.
62465
62466 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62467
62468         Port obstack to the AS/400, where pointers are 16 bytes wide and
62469         you cannot cast an integer to a valid pointer.  This patch is
62470         currently waiting to be integrated into glibc; see
62471         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
62472
62473         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
62474         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
62475         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
62476         (struct obstack): temp member is now a union of a pointer and
62477         an integer, instead of an integer.  All integer uses changed.
62478         This does not affect the physical layout of struct obstack,
62479         except on hosts (like the AS/400) where the size or alignment of
62480         void * is greater than that of ptrdiff_t.
62481         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
62482         __STDC__)]: Store temporary in pointer member of union, not
62483         integer member.
62484         * lib/obstack.c: Include <stddef.h>, for offsetof.
62485         (struct fooalign): Remove; it doesn't need a name.
62486         (union fooround): Change double to long double, and add void *.
62487         (DEFAULT_ALIGNMENT): Use offsetof to compute.
62488         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
62489         not a macro.  Hence the values are always int; so remove all
62490         casts-to-int in uses.
62491
62492 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62493
62494         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
62495         we can get this patch merged into glibc.
62496
62497 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62498             Paul Eggert  <eggert@cs.ucla.edu>
62499
62500         * m4/argp: Depend on alloca.
62501
62502 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62503             Paul Eggert  <eggert@cs.ucla.edu>
62504
62505         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
62506         freecoding.
62507
62508 2004-05-17  Bruno Haible  <bruno@clisp.org>
62509
62510         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
62511         precision that consists of a '.' followed by an empty digit string.
62512         Patch by Tor Lillqvist <tml@iki.fi>.
62513
62514 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62515
62516         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
62517         for backward compatibility with older code.  We need our own
62518         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
62519         it under some other name, and our alloca.h will define it.
62520
62521 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62522             Derek Price  <derek@ximbiot.com>
62523
62524         * lib/alloca.c: Include <alloca.h>, to get our interface.
62525         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
62526         include <alloca.h> first.  Use C89 prototype for alloca; this
62527         requires including <stddef.h> for size_t.  Use extern "C" if C++.
62528         Use #elif for simplicity, since we can assume C89 now.
62529         Don't try to source the system alloca.h since it will not be found
62530         and to prevent recursively including its replacement.
62531         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
62532         * lib/regex.c: Likewise.
62533
62534 2004-05-16  Derek Price  <derek@ximbiot.com>
62535             Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         getline cleanup.  This changes the getndelim2 API: both order of
62538         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
62539         no delimiter).
62540
62541         * lib/getline.c: Don't include stddef.h or stdio.h, since our
62542         interface does that.
62543         (getline): Always use getdelim, so that we don't have two
62544         copies of this code.
62545         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
62546         if available.
62547         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
62548         (GETNDELIM2_MAXIMUM): New macro.
62549         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
62550         instead of the old practice of delim2==0.  All callers changed.
62551         Return -1 on overflow, instead of returning junk.
62552         Do not set *linesize unless allocation succeeds.
62553         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
62554         that we include sys/types.h.
62555         * lib/getnline.h: Likewise.
62556         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
62557         (getndelim2): Reorder arguments.
62558         * lib/getnline.c (getnline, getndelim):
62559         Don't discard the NMAX argument.
62560         (getnline): Invoke getndelim, to avoid code duplication.
62561         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
62562         of (size_t) -1 by callers of the getnline family.
62563
62564 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62565
62566         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
62567         Check for gettimeofday.
62568         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
62569         Check for settimeofday, stime.
62570
62571 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62572
62573         * lib/nanosleep.c (suspended): Change its type from int to
62574         sig_atomic_t volatile.
62575         (first_call): Make it private to rpl_nanosleep, and have it
62576         be zero initially as that's a bit faster.
62577         (my_usleep): Round up fractional times instead of truncating them,
62578         as this is the usual meaning for 'sleep'.
62579
62580         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
62581         doesn't work.
62582         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
62583         (ENOSYS): Define if not defined.
62584         (settime): Fall back on stime if it exists and settimeofday fails.
62585         But don't bother with fallbacks if a method fails with errno == EPERM.
62586
62587 2004-05-11  Jim Meyering  <jim@meyering.net>
62588
62589         Prior to this change, the save_cwd caller required read access to the
62590         current directory on most systems (ones with the fchdir function).
62591
62592         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
62593         fails, try write-only, and finally, resort to using xgetcwd.
62594
62595 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62596
62597         * lib/obstack.c, obstack.h: Import changes from libc.
62598
62599 2004-04-28  Bruno Haible  <bruno@clisp.org>
62600
62601         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
62602         also implicitly appends .exe to executables.
62603         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
62604         accepts Windows pathnames.
62605         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62606         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62607         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
62608         Treat Cygwin like Windows, since it now accepts Windows pathnames.
62609         Reported by Derek Robert Price <derek@ximbiot.com>.
62610
62611 2004-04-21  Karl Berry  <karl@gnu.org>
62612
62613         * config/srclist.txt (localcharset.c): break sync.
62614
62615 2004-04-20  Paul Eggert  <eggert@twinsun.com>
62616
62617         * m4/host-os.m4: Add a copyright notice.
62618
62619 2004-04-20  Jim Meyering  <jim@meyering.net>
62620
62621         Change UTILS_ to gl_ in AC_DEFINE'd names.
62622         Change utils_- and jm_-prefixed variables, too.
62623         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
62624         UTILS_FUNC_MKDIR_TRAILING_SLASH.
62625         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
62626
62627         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
62628         Don't emit trailing blanks.
62629         Also rename jm_-prefixed variables to have gl_ prefix.
62630
62631         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
62632         Also rename jm_-prefixed variables to have gl_ prefix.
62633
62634         * m4/jm-macros.m4: Reflect the renamings.
62635         * m4/prereq.m4: Likewise.
62636
62637 2004-04-20  Jim Meyering  <jim@meyering.net>
62638
62639         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
62640         memory.
62641
62642 2004-04-20  Jim Meyering  <jim@meyering.net>
62643             Bruno Haible  <bruno@clisp.org>
62644
62645         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
62646         memory when realloc fails.
62647
62648 2004-04-19  Jim Meyering  <jim@meyering.net>
62649
62650         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
62651         now that readutmp.c may call `free (0)'.
62652
62653 2004-04-19  Bruno Haible  <bruno@clisp.org>
62654
62655         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
62656         * m4/inttypes_h.m4: Likewise.
62657         * m4/stdint_h.m4: Likewise.
62658         * m4/intmax_t.m4: Likewise.
62659         * m4/uintmax_t.m4: Likewise.
62660
62661 2004-04-18  Jim Meyering  <jim@meyering.net>
62662
62663         * m4/prereq.m4: Don't forbid jm_ prefix.
62664
62665         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
62666         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
62667         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
62668         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
62669         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
62670         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
62671         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
62672         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
62673         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
62674         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
62675         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
62676         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
62677         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
62678         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
62679         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
62680         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
62681         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
62682         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
62683         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
62684
62685 2004-04-18  Jim Meyering  <jim@meyering.net>
62686
62687         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
62688         failure, don't leak memory and do call END_UTMP_ENT.
62689
62690 2004-04-16  Jim Meyering  <jim@meyering.net>
62691
62692         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
62693         coreutils' stat program.
62694         (gl_PREREQ): Don't require jm_PREREQ_STAT.
62695
62696 2004-04-11  Paul Eggert  <eggert@twinsun.com>
62697
62698         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
62699         C89.
62700         (CHAR_BIT): Remove, since we assume C89.
62701         Include <stdint.h> if available, as per current Autoconf CVS advice.
62702
62703 2004-03-31  Jim Meyering  <jim@meyering.net>
62704
62705         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
62706         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
62707         * m4/xalloc.m4: Likewise.
62708
62709 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62710
62711         Merge from coreutils.
62712
62713         * m4/inttostr.m4: New file.
62714         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
62715         Require AM_STDBOOL_H and gl_TIMESPEC instead.
62716         Require gl_CLOCK_TIME.
62717         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
62718
62719 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62720
62721         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
62722         not bool, to be more consistent with Unix conventions.
62723         Suggested by Bruno Haible.
62724
62725         Merge from coreutils.
62726
62727         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
62728         * lib/umaxtostr.c: New files.
62729
62730         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
62731         the usual <time.h> dance.
62732         (get_date): Change signature to support fractional time stamps.
62733         All callers changed.
62734         * lib/getdate.y: Include "getdate.h" first, as we can now
62735         assume C89 and don't need to worry about 'const'.
62736         Similarly, include "unlocked-io.h" near start, not in middle.
62737         Include <limits.h>.
62738         (textint.value): Use long int rather than int.
62739         (textint.digits): Use size_t rather than int.
62740         (BILLION, LOG10_BILLION): New constants.
62741         (parser_control): New member rel_ns.  Members day_ordinal,
62742         time_zone, month, day, hour, minutes, rel_year, rel_month,
62743         rel_day, rel_hour, rel_minutes, rel_seconds
62744         are now long int, not int.  Member seconds is now struct timespec,
62745         not int.  New member timespec_seen.  Members dates_seen, days_seen,
62746         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
62747         not int.
62748         (%union.intval): Now long int, not int.
62749         New member timespec.
62750         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
62751         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
62752         (spec): Now is a timespec or an item list.
62753         (timespec, items): New nonterminals.
62754         (time, rel, relunit, number, get_date):
62755         Add support for fractional seconds.
62756         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
62757         (gmtime, localtime, mktime): Remove decls; not needed with C89.
62758         (to_hour): First arg is now long int, not int.
62759         (to_year): Returns long int, not int.
62760         Don't treat year -70 like 70.
62761         (tm_diff): Returns long int, not int.
62762         (lookup_word): Use bool instead of int when appropriate.
62763         (yylex): Use size_t for count, not int.
62764         Detect overflow when parsing large integer constants.
62765         Add support for fractions.
62766         (get_date): Make pointers 'const' if possible.
62767         Use more-portable code to detect integer overflow.
62768         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
62769         Don't use ctime; it's not reliable if the year has >4 digits.
62770
62771         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
62772         This is for compatibility with BSD.
62773
62774         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
62775         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
62776         From coreutils' system.h.
62777
62778         * lib/userspec.c: Don't include "posixver.h".
62779         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
62780         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
62781         compatible extension.  Simplify code by removing a boolean int
62782         that was always nonzero if a string was nonnull.
62783
62784 2004-03-30  Jim Meyering  <jim@meyering.net>
62785
62786         Merge from coreutils.
62787
62788         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
62789         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
62790         on some systems one must include <grp.h> before it.
62791         Reported by Christian Krackowizer.
62792
62793 2004-03-30  Jim Meyering  <jim@meyering.net>
62794
62795         Merge from coreutils.
62796
62797         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
62798
62799         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
62800         an empty input stream.
62801
62802         * lib/readtokens.c: Include <stdbool.h>.
62803         (readtoken): Use `size_t' rather than int/long.
62804         All callers adjusted.
62805         Use `bool' rather than `int' where appropriate.
62806         Use memset rather than an explicit loop.
62807         Use x2nrealloc rather than xrealloc.
62808         Allow the use of `\0' as a delimiter.
62809         (readtokens): Likewise.
62810         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
62811
62812 2004-03-30  Jim Meyering  <jim@meyering.net>
62813
62814         * m4/realloc.m4: Remove file, since now it does no more than
62815         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
62816         the `configure.ac' section of module/realloc.
62817         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
62818
62819 2004-03-30  Bruno Haible  <bruno@clisp.org>
62820
62821         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
62822         nonnull.
62823
62824 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62825
62826         Merge changes to getloadavg.c from coreutils and Emacs.
62827
62828         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
62829         Define to an expression, not to the empty string.
62830         Include cloexec.h and xalloc.h.
62831         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
62832         Use set_cloexec_flag rather than rolling our own.
62833         * lib/cloexec.c, lib/cloexec.h: New files.
62834
62835 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62836
62837         * m4/cloexec.m4: New file.
62838
62839 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62840
62841         * lib/getopt.h: Sync with libc CVS.
62842
62843 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62844             Bruno Haible  <bruno@clisp.org>
62845
62846         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
62847         mbswidth.
62848
62849 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62850             Bruno Haible  <bruno@clisp.org>
62851
62852         * lib/mbswidth.h: Include <wchar.h> only if
62853         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
62854         <wchar.h>.
62855         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
62856
62857 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62858
62859         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
62860         Sync with libc CVS.
62861         * lib/getopt_int.h: New file, also synced from libc.
62862
62863 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62864
62865         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
62866         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
62867         Bring back getopt.c, getopt.h, getopt1.c.
62868
62869 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62870
62871         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
62872         All uses changed.  Check for sa_sigaction member; this fixes
62873         a bug first reported by Jason Andrade in
62874         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62875
62876 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62877
62878         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
62879         '#if' expressions.  Unlike the code it replaces, it does not
62880         depend on (defined _SC_PAGESIZE).  However, it does depend on
62881         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
62882         first reported by Jason Andrade in
62883         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62884
62885 2004-02-25  Simon Josefsson  <jas@extundo.com>
62886
62887         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
62888
62889 2004-02-25  Simon Josefsson  <jas@extundo.com>
62890
62891         * lib/strdup.h: New file.
62892         * lib/strdup.c: Include it.
62893         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
62894         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
62895
62896 2004-02-23  Karl Berry  <karl@gnu.org>
62897
62898         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
62899         (from fencepost.gnu.org:/gd/gnuorg).
62900
62901 2004-02-23  Karl Berry  <karl@gnu.org>
62902
62903         * config/srclistvars.sh (GNUORG) [karl]: redefine.
62904         * config/srclist.txt: add maintain/standards documents.
62905
62906 2004-02-18  Bruno Haible  <bruno@clisp.org>
62907
62908         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
62909         Reported by Derek Robert Price <derek@ximbiot.com>.
62910
62911 2004-02-16  Karl Berry  <karl@gnu.org>
62912
62913         * config/mkinstalldirs, install-sh: update from automake.
62914
62915 2004-02-06  Karl Berry  <karl@gnu.org>
62916
62917         * m4/po.m4: update from gettext 0.14.1.
62918
62919 2004-02-06  Karl Berry  <karl@gnu.org>
62920
62921         * lib/config.charset: update from gettext 0.14.1.
62922
62923 2004-02-05  Paul Eggert  <eggert@twinsun.com>
62924
62925         Add comments and code, prompted by suggestions from Bruno Haible
62926         for sh-quote.
62927         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
62928         describing the enum quoting_style values.
62929         * lib/quotearg.c (quotearg_alloc): New function.
62930         (quotearg_buffer_restyled): Treat lone { and } as special.
62931         Treat = as special.  Work around bug with older shells
62932         that "see" a '\' that is really the 2nd byte of a multibyte char.
62933         Quote empty string with shell_quoting_style.
62934
62935 2004-02-03  Bruno Haible  <bruno@clisp.org>
62936
62937         * m4/pipe.m4: New file, from GNU gettext.
62938
62939 2004-02-03  Bruno Haible  <bruno@clisp.org>
62940
62941         * lib/pipe.h: New file, from GNU gettext.
62942         * lib/pipe.c: New file, from GNU gettext.
62943
62944 2004-01-27  Bruno Haible  <bruno@clisp.org>
62945
62946         * m4/execute.m4: New file, from GNU gettext.
62947
62948 2004-01-27  Bruno Haible  <bruno@clisp.org>
62949
62950         * lib/execute.h: New file, from GNU gettext.
62951         * lib/execute.c: New file, from GNU gettext.
62952         * lib/w32spawn.h: New file, from GNU gettext.
62953
62954 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62955
62956         Merge from diffutils.
62957
62958         * lib/file-type.c (file_type): Add typed memory objects.
62959         * lib/file-type.h (S_TYPEISTMO): New macro.
62960
62961         * lib/c-stack.h (c_stack_action): Remove argv argument.
62962         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
62963         (die): Don't calculate message unless segv_action returns.
62964         (get_stack_location, min_address_from_argv, max_address_from_argv,
62965         volatile stack_base, volatile_stack_size): Remove.
62966         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
62967         that every segmentation violation is a stack overflow.  (Ouch!)
62968         See Debian bug 136249 (still outstanding) for more info about why
62969         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
62970
62971 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62972
62973         Exit-status fix from coreutils.
62974
62975         Use exit_failure consistently in place of EXIT_FAILURE,
62976         so that program exit statuses are consistent on failure.
62977
62978         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
62979         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
62980         * lib/argmatch.h: Comment fix to match the above.
62981         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
62982         Now a macro referring to exit_failure, instead of a separate
62983         variable.  Include "exitfail.h" to get it.
62984         * lib/xstrtol.h: Include "exitfail.h".
62985         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
62986
62987         * lib/long-options.c (parse_long_options): Use prototype
62988         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
62989         for clarity.
62990
62991 2004-01-21  Jim Meyering  <jim@meyering.net>
62992
62993         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
62994         so as not to conflict with a different-sized __mktime_internal
62995         function in GNU libc.
62996         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
62997         Problem building statically-linked `ls' reported by Michael Brunnbauer.
62998
62999 2004-01-20  Karl Berry  <karl@gnu.org>
63000
63001         * config/config.guess: update from config.
63002
63003         * config/srclistvars.sh: GNUWWWLICENSES for karl.
63004
63005 2004-01-20  Bruno Haible  <bruno@clisp.org>
63006
63007         Safer stack allocation.
63008         * lib/setenv.c: Include allocsa.h.
63009         (alloca): Remove fallback definition.
63010         (freea): Remove macro.
63011         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
63012         instead of freea.
63013
63014 2004-01-20  Bruno Haible  <bruno@clisp.org>
63015
63016         * m4/eealloc.m4: New file, from GNU gettext.
63017
63018 2004-01-20  Bruno Haible  <bruno@clisp.org>
63019
63020         * m4/allocsa.m4: New file, from GNU gettext.
63021
63022 2004-01-20  Bruno Haible  <bruno@clisp.org>
63023
63024         * lib/xallocsa.h: New file, from GNU gettext.
63025         * lib/xallocsa.c: New file, from GNU gettext.
63026
63027 2004-01-20  Bruno Haible  <bruno@clisp.org>
63028
63029         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
63030
63031 2004-01-20  Bruno Haible  <bruno@clisp.org>
63032
63033         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
63034         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
63035         specially.
63036
63037 2004-01-20  Bruno Haible  <bruno@clisp.org>
63038
63039         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
63040         patch.
63041
63042 2004-01-20  Bruno Haible  <bruno@clisp.org>
63043
63044         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
63045
63046 2004-01-20  Bruno Haible  <bruno@clisp.org>
63047
63048         * lib/eealloc.h: New file.
63049
63050 2004-01-20  Bruno Haible  <bruno@clisp.org>
63051
63052         * lib/binary-io.h: Avoid warnings on Cygwin.
63053
63054 2004-01-20  Bruno Haible  <bruno@clisp.org>
63055
63056         * lib/allocsa.h: New file, from GNU gettext.
63057         * lib/allocsa.c: New file, from GNU gettext.
63058
63059 2004-01-18  Karl Berry  <karl@gnu.org>
63060
63061         * doc/gpl.texi, doc/lgpl.texi: new files.
63062
63063 2004-01-18  Karl Berry  <karl@gnu.org>
63064
63065         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
63066         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
63067
63068 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63069
63070         Merge from coreutils.
63071
63072         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
63073         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
63074         (gl_DEFAULT_POSIX2_VERSION): Move
63075         the documentation from 'configure' into 'config.hin',
63076         so that 'configure --help' isn't burdened by it and
63077         we don't have to worry about its formatting there.
63078         Reword the documentation so that it's more succinct
63079         and can be run together into a single paragraph.
63080         * m4/same.m4 (gl_SAME): Check for pathconf.
63081
63082 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63083
63084         Merge from coreutils.
63085
63086         * lib/posixver.c: Include posixver.h.
63087
63088         * lib/same.c: Include <stdbool.h>, <limits.h>.
63089         (_POSIX_NAME_MAX): Define if not defined.
63090         (MIN): New macro.
63091         (same_name): If file names are silently truncated, report
63092         that the file names are the same if they are the same after
63093         the silent truncation.
63094
63095         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
63096         conversion function.
63097         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
63098         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
63099         longer needed.
63100
63101 2004-01-15  Jim Meyering  <jim@meyering.net>
63102
63103         Merge from coreutils.
63104
63105         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
63106         if no library is required.
63107         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
63108         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
63109         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
63110         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
63111         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
63112         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
63113         value, $ac_cv_search_crypt, if it's "none required".
63114         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
63115         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
63116         not gl_FUNC_GETLOADAVG.
63117         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
63118         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
63119
63120 2004-01-15  Jim Meyering  <jim@meyering.net>
63121
63122         Merge from coreutils.
63123
63124         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
63125         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
63126         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
63127
63128         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
63129         optional configure-time default.
63130
63131         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63132
63133         * lib/xreadlink.c (xreadlink): Correct outdated comment.
63134
63135 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
63136
63137         Merge from coreutils.
63138
63139         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
63140         value, $ac_cv_search_nanosleep, if it's "none required".
63141
63142 2004-01-14  Paul Eggert  <eggert@twinsun.com>
63143
63144         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
63145         with like-named macro in fnmatch.c.
63146         (EXT): Use an internal constant instead.
63147
63148         Merge fnmatch patches from glibc.
63149         * lib/fnmatch.c (mbsinit): Remove define.
63150         Add libc_hidden_ver (__fnmatch, fnmatch).
63151         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
63152         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
63153
63154 2004-01-14  Karl Berry  <karl@gnu.org>
63155
63156         * config/install-sh: update from automake.
63157
63158 2004-01-13  Karl Berry  <karl@gnu.org>
63159
63160         * config/install-sh: update from automake.
63161
63162 2004-01-09  Karl Berry  <karl@gnu.org>
63163
63164         * config/install-sh: update from automake.
63165
63166 2004-01-05  Karl Berry  <karl@gnu.org>
63167
63168         * config/config.{sub,guess}: update from config.
63169
63170 2003-12-31  Karl Berry  <karl@gnu.org>
63171
63172         * config/depcomp: update from automake.
63173
63174 2003-12-14  Karl Berry  <karl@gnu.org>
63175
63176         * lib/config.charset: update from gettext-runtime.
63177
63178 2003-12-03  Paul Eggert  <eggert@twinsun.com>
63179
63180         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
63181         Bug reported by Alfred M. Szmidt.
63182
63183 2003-12-03  Bruno Haible  <bruno@clisp.org>
63184
63185         * m4/gettext.m4: Upgrade from gettext-0.13.
63186         * m4/po.m4: Upgrade from gettext-0.13.
63187         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
63188         * m4/intmax.m4: New file, from gettext-0.13.
63189         * m4/printf-posix.m4: New file, from gettext-0.13.
63190
63191 2003-11-29  Karl Berry  <karl@gnu.org>
63192
63193         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
63194
63195 2003-11-25  Paul Eggert  <eggert@twinsun.com>
63196             Bruno Haible  <bruno@clisp.org>
63197
63198         * lib/printf-parse.h: Don't include sys/types.h.
63199         (ARG_NONE): New macro.
63200         (char_directive): Change type of *arg_index fields to size_t.
63201         * lib/printf-parse.c: Don't include sys/types.h.
63202         (SSIZE_MAX): Remove macro.
63203         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
63204         Remove unnecessary overflow check.
63205         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
63206         fields.
63207
63208 2003-11-25  Bruno Haible  <bruno@clisp.org>
63209
63210         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
63211
63212 2003-11-25  Bruno Haible  <bruno@clisp.org>
63213
63214         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
63215         gt_TYPE_SSIZE_T.
63216
63217 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63218
63219         * modules/alloca: Remove dependency on xalloc.
63220
63221 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63222
63223         * lib/alloca.c: Remove dependency on xalloc module.
63224         (xalloc_die): Remove.
63225         (memory_full) [!defined emacs]: New macro.
63226         [!defined emacs]: Don't include xalloc.h.
63227         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
63228         address arithmetic overflows.  Change datatypes a bit to avoid
63229         unnecessary casts.
63230
63231 2003-11-22  Jim Meyering  <jim@meyering.net>
63232
63233         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
63234         s/size/size_t/.
63235
63236 2003-11-21  Karl Berry  <karl@gnu.org>
63237
63238         * config/config.{sub,guess}: update from config.
63239
63240 2003-11-18  Karl Berry  <karl@gnu.org>
63241
63242         * config/config.{sub,guess}: update from config.
63243
63244         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
63245
63246 2003-11-17  Paul Eggert  <eggert@twinsun.com>
63247
63248         * README: Mention that S+T cannot overflow if S is the size of
63249         an existing object and T is sufficiently small.
63250
63251 2003-11-17  Jim Meyering  <jim@meyering.net>
63252
63253         On systems without utime and without a utimes function capable of
63254         dealing with a NULL struct utimbuf* argument, this utime replacement
63255         could -- in unusual circumstances -- leak a file descriptor.
63256         * lib/utime.c: Include <unistd.h> and <errno.h>.
63257         (utime_null): Be sure to close `fd' and to preserve errno.
63258         Reported by Geoff Collyer via Arnold Robbins.
63259
63260 2003-11-17  Bruno Haible  <bruno@clisp.org>
63261
63262         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
63263         (Depends-on): Add xsize.
63264
63265 2003-11-17  Bruno Haible  <bruno@clisp.org>
63266
63267         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
63268
63269 2003-11-17  Bruno Haible  <bruno@clisp.org>
63270
63271         * lib/vasnprintf.c (alloca): Remove fallback definition.
63272         (freea): Remove definition.
63273         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
63274         Reported by Paul Eggert.
63275
63276 2003-11-16  Paul Eggert  <eggert@twinsun.com>
63277             Bruno Haible  <bruno@clisp.org>
63278
63279         Protect against address arithmetic overflow.
63280         * lib/printf-args.h: Include stddef.h.
63281         (arguments): Change type of field 'count' to size_t.
63282         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
63283         'unsigned int' where appropriate.
63284         * lib/printf-parse.h: Include sys/types.h.
63285         (char_directive): Change type of *arg_index fields to ssize_t.
63286         (char_directives): Change type of fields 'count', max_*_length to
63287         size_t.
63288         * lib/printf-parse.c: Include sys/types.h and xsize.h.
63289         (SSIZE_MAX): Define fallback value.
63290         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
63291         instead of 'int' where appropriate. Check a_allocated, d_allocated
63292         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
63293         * lib/vasnprintf.c: Include xsize.h.
63294         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
63295         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
63296         overflow. Avoid wraparound when converting a width or precision from
63297         decimal to binary.
63298
63299 2003-11-16  Bruno Haible  <bruno@clisp.org>
63300
63301         Update from GNU gettext.
63302         * lib/printf-parse.c: Generalize to it can be compiled for wide
63303         strings.
63304         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
63305         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
63306         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
63307         SNPRINTF): New macros.
63308         Don't include <alloca.h> if the file is used inside libintl.
63309         (local_wcslen): New function, for Solaris 2.5.1.
63310         (VASNPRINTF): Use it instead of wcslen.
63311
63312 2003-11-16  Bruno Haible  <bruno@clisp.org>
63313
63314         * lib/xsize.h (xmax): New function.
63315         (xsum, xsum3, xsum4): Declare as "pure" functions.
63316
63317 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63318
63319         * modules/xalloc (Files): Undo latest change, since xalloc.h
63320         no longer needs SIZE_MAX or PTRDIFF_MAX.
63321
63322 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63323
63324         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
63325         gl_PTRDIFF_MAX.
63326
63327 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63328
63329         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
63330         "return", to pacify some unknown compiler.  Problem reported
63331         by Joerg Schilling.
63332
63333 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63334
63335         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
63336         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
63337         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
63338         heuristic is just as accurate as far as we know, and it removes a
63339         dependency on size_max.m4 and ptrdiff_max.m4.
63340
63341 2003-11-11  Bruno Haible  <bruno@clisp.org>
63342
63343         * modules/xsize (Files): Add m4/size_max.m4.
63344         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
63345
63346 2003-11-11  Bruno Haible  <bruno@clisp.org>
63347
63348         * m4/size_max.m4: New file.
63349         * m4/ptrdiff_max.m4: New file.
63350         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
63351         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
63352         (gl_XALLOC): Invoke it.
63353
63354 2003-11-11  Bruno Haible  <bruno@clisp.org>
63355
63356         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
63357         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
63358         defined.
63359
63360 2003-11-10  Paul Eggert  <eggert@twinsun.com>
63361
63362         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
63363         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
63364         rejected some allocations of exactly SIZE_MAX - 2 bytes.
63365         From Bruno Haible.
63366         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
63367         not (size_t) -1, since it's defined here.
63368
63369 2003-11-09  Karl Berry  <karl@gnu.org>
63370
63371         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
63372
63373 2003-11-06  Paul Eggert  <eggert@twinsun.com>
63374
63375         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
63376         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
63377         Reject sizes of exactly SIZE_MAX bytes.
63378         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
63379         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
63380
63381 2003-11-05  Bruno Haible  <bruno@clisp.org>
63382
63383         * lib/xsize.h: Include limits.h, to avoid a possible collision with
63384         SIZE_MAX defined in <limits.h> on Solaris.
63385
63386 2003-11-04  Jim Meyering  <jim@meyering.net>
63387
63388         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
63389         variable names, rather than @VAR@.
63390         * modules/poll: Likewise.
63391
63392 2003-11-04  Bruno Haible  <bruno@clisp.org>
63393
63394         * modules/xsize: New file.
63395         * modules/linebreak: Depend on xsize.
63396         * MODULES.html.sh (func_all_modules): Add xsize.
63397
63398 2003-11-04  Bruno Haible  <bruno@clisp.org>
63399
63400         * m4/xsize.m4: New file.
63401
63402 2003-11-04  Bruno Haible  <bruno@clisp.org>
63403
63404         * lib/xsize.h: New file.
63405         * lib/linebreak.c: Include xsize.h.
63406         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
63407         argument for overflow.
63408         Suggested by Paul Eggert.
63409
63410 2003-11-03  Karl Berry  <karl@gnu.org>
63411
63412         * config/config.{guess,sub}: update from config.
63413
63414 2003-11-03  Jim Meyering  <jim@meyering.net>
63415
63416         * modules/userspec (lib_SOURCES): Add userspec.h.
63417         (Include): Add "userspec.h".
63418         Improve description.
63419
63420 2003-11-03  Jim Meyering  <jim@meyering.net>
63421
63422         * lib/userspec.c: Include "userspec.h".
63423         * lib/userspec.h: New file.
63424
63425 2003-11-03  Bruno Haible  <bruno@clisp.org>
63426
63427         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
63428
63429 2003-11-03  Bruno Haible  <bruno@clisp.org>
63430
63431         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
63432         available, to avoid (extremely rare) race condition.
63433         Suggested by Paul Eggert.
63434
63435 2003-11-02  Karl Berry  <karl@gnu.org>
63436
63437         * config/srclist.txt (vasprintf.c): sync broken, sigh.
63438
63439 2003-10-31  Paul Eggert  <eggert@twinsun.com>
63440
63441         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
63442         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
63443         (read_filesystem_list): Set and use me_type_malloced.
63444         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
63445         whatever the type happens to be), for brevity and consistency.
63446         Check for size calculation overflow on Alphas running OSF/1.
63447
63448 2003-10-31  Jim Meyering  <jim@meyering.net>
63449
63450         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
63451
63452         * lib/linebuffer.c: Include <string.h> for declaration of memset.
63453
63454 2003-10-30  Paul Eggert  <eggert@twinsun.com>
63455             Bruno Haible  <bruno@clisp.org>
63456
63457         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
63458         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
63459
63460 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63461
63462         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
63463         netbsd*-gnu*.  Suggested by Robert Millan.
63464
63465 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63466
63467         * modules/group-member: Depend on stdbool.
63468
63469 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63470
63471         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
63472
63473 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63474
63475         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
63476         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
63477         after the 'gnu' in these cases.  This fixes some bugs in the
63478         previous change, and is based on suggestions by Robert Millan.
63479
63480 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63481
63482         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
63483         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
63484         no longer needed.
63485         * lib/quotearg.c (quotearg_n_options): Use it.
63486         * lib/group-member.c: Include <stdbool.h>.
63487         (free_group_info): Arg is now const *; don't free arg.
63488         (get_group_info): Now returns bool and accepts struct group_info *,
63489         rather than returning a malloc'ed struct group_info *.
63490         All uses changed.  Check for overflow in internal size calculation.
63491
63492         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
63493         rather than xmalloc/xrealloc.
63494         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
63495         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
63496         conformance bug: the old code used a pointer after freeing the
63497         storage that it addressed.
63498         * lib/hash.c (hash_initialize): Simplify the code by using
63499         xalloc_oversized rather than doing it by hand.
63500         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
63501         the buffer preserved.  Use free and xmalloc instead.
63502         * lib/quotearg.c (quotearg_n_options): Likewise.
63503         Use a simpler test for size overflow.  Don't use xalloc_oversized
63504         because unsigned int might be wider than size_t (!); this suggests
63505         that we should switch from unsigned int to size_t for slot numbers.
63506
63507 2003-10-28  Paul Eggert  <eggert@twinsun.com>
63508
63509         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
63510         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
63511         NetBSD kernels.  Requested by Richard Stallman.
63512
63513 2003-10-27  Paul Eggert  <eggert@twinsun.com>
63514
63515         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
63516         to allocate the returned structure.  Do not allocate a subarray,
63517         as x2nrealloc will do that.
63518         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
63519         instead of xnrealloc.
63520         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
63521
63522 2003-10-27  Bruno Haible  <bruno@clisp.org>
63523
63524         * lib/stdbool_.h: Better support for BeOS.
63525
63526 2003-10-26  Paul Eggert  <eggert@twinsun.com>
63527
63528         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
63529         now uses inline.
63530
63531 2003-10-26  Paul Eggert  <eggert@twinsun.com>
63532
63533         * lib/xalloc.h (xalloc_oversized): New static inline function, for
63534         callers that want to do their own size-overflow checking.  Include
63535         <stdbool.h>, since xalloc_oversized returns bool.
63536         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
63537         to use xalloc_oversized.
63538
63539         Add two functions x2realloc, x2nrealloc, for programs that grow
63540         arrays dynamically by doubling their sizes.
63541         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
63542         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
63543         New functions.
63544
63545         Port to C99 semantics for 'inline' of external functions.
63546         Bug reported by Bruno Haible.
63547         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
63548         with the old contents of xnmalloc.
63549         (xnmalloc, xmalloc): Use it.
63550         (xnrealloc_inline): New static inline function,
63551         with the old contents of xnrealloc.
63552         (xnrealloc, xrealloc): Use it.
63553
63554         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
63555         that.
63556
63557 2003-10-26  Karl Berry  <karl@gnu.org>
63558
63559         * config/srclist.txt (COPYING.DOC): no longer available from
63560         /gd/gnuorg; don't know where the ultimate source is.
63561
63562 2003-10-25  Paul Eggert  <eggert@twinsun.com>
63563
63564         Fix several address-calculation bugs in the hash modules,
63565         plus some minor code cleanup.
63566
63567         * lib/hash.h: Include <stdbool.h>, for bool.
63568         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
63569         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
63570         hash_get_n_entries, hash_get_max_bucket_length,
63571         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
63572         hash_rehash): Use size_t rather than unsigned.
63573         * lib/hash.c (struct hash_table, hash_get_n_buckets,
63574         hash_get_n_buckets_used, hash_get_n_entries,
63575         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
63576         hash_get_entries, hash_do_for_each, hash_string, is_prime,
63577         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
63578         Likewise.
63579         (SIZE_MAX): Define if not defined.
63580         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
63581         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
63582         hash_print):
63583         Use const * when possible.
63584         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
63585         (check_tuning): Fix bug: if tuning parameters were very close to
63586         0 or 1, rounding errors could have caused subscript violations.
63587         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
63588         (hash_initialize): Add 'fail:' label
63589         to free table and return NULL, and use it to simplify code.
63590         Use calloc rather than clearing the storage ourself.
63591         (hash_initialize, hash_rehash): Check for arithmetic overflow in
63592         buffer size calculations.
63593         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
63594         Include <stddef.h>, for size_t.
63595         * lib/hash-pjw.c (hash_pjw): Likewise.
63596         Switch to method described by Bruno Haible.
63597         Include <limits.h>, for CHAR_BIT.
63598         (SIZE_BITS): New macro.
63599
63600 2003-10-23  Paul Eggert  <eggert@twinsun.com>
63601
63602         * m4/getline.m4 (AM_FUNC_GETLINE):
63603         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
63604         hosts.  Problem reported by Derek Robert Price in
63605         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
63606         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
63607         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
63608
63609 2003-10-21  Paul Eggert  <eggert@twinsun.com>
63610
63611         * lib/getndelim2.c (getndelim2): When size calculation overflows,
63612         ceiling the allocation at NMAX bytes rather than silently
63613         discarding input bytes before NMAX is reached.  This makes
63614         a difference only if NMAX exceeds SIZE_MAX / 2.
63615
63616         * lib/obstack.c: Merge from glibc.
63617         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
63618         Add libc_hidden_def (_obstack_newchunk).
63619         (_obstack_free) [! defined _LIBC]: Remove.
63620         [defined _LIBC]: Make a strong alias from obstack_free, rather than
63621         a clone of the function body.
63622         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
63623         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
63624
63625         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
63626         glibc.
63627         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
63628         arg to memcpy.
63629
63630         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
63631         (obstack_ptr_grow_fast, obstack_int_grow_fast):
63632         Don't use lvalue casts, as GCC plans to remove support for them
63633         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
63634         was also present in the non-GCC version, indicating that this
63635         code had always been buggy and had never been widely used.
63636         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
63637         Use the fast variant of each macro, rather than copying the
63638         definiens of the fast variant; that way, we'll be more likely to
63639         catch future bugs in the fast variants.
63640
63641 2003-10-20  Bruno Haible  <bruno@clisp.org>
63642
63643         * modules/wait-process: New file.
63644         * MODULES.html.sh (func_all_modules): Add wait-process.
63645
63646 2003-10-20  Bruno Haible  <bruno@clisp.org>
63647
63648         * m4/wait-process.m4: New file.
63649
63650 2003-10-20  Bruno Haible  <bruno@clisp.org>
63651
63652         * lib/wait-process.h: New file, from GNU gettext.
63653         * lib/wait-process.c: New file, from GNU gettext.
63654
63655 2003-10-19  Jim Meyering  <jim@meyering.net>
63656
63657         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
63658         HPUX 10.20.
63659
63660 2003-10-18  Karl Berry  <karl@gnu.org>
63661
63662         * config/config.guess: update from config.
63663
63664 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63665
63666         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
63667         (getgroups): First arg is int, not size_t.
63668         Don't let 'free' mangle errno.
63669
63670 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63671
63672         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
63673
63674 2003-10-16  Karl Berry  <karl@gnu.org>
63675
63676         * config/config.{guess,sub}: update from config.
63677
63678 2003-10-16  Jim Meyering  <jim@meyering.net>
63679
63680         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
63681         memcpy.
63682
63683 2003-10-15  Paul Eggert  <eggert@twinsun.com>
63684
63685         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
63686         (SIZE_MAX): Remove.
63687         (new_exclude, add_exclude_file): Initial size no longer needs to
63688         be a power of 2.
63689         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
63690         our own address arithmetic overflow checking.
63691
63692         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
63693         (fnmatch): Do not alloca more than 2000 wide characters;
63694         instead, use malloc for large buffers.
63695         Check for address arithmetic overflow, and return -1
63696         with errno set to ENOMEM in that case.
63697         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
63698         (NEW_PATTERN): Do not alloca more than 8000 bytes;
63699         instead, return -1.  Check for address arithmetic overflow.
63700
63701 2003-10-14  Paul Eggert  <eggert@twinsun.com>
63702
63703         Handle invalid suffixes and overflow independently, so that
63704         callers can treat them independently as needed.  Fix some bugs in
63705         suffix handling, e.g., "100k@" was not diagnosed as an invalid
63706         suffix for a human-readable blocksize.  The major caller-visible
63707         change is the addition of a new
63708         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
63709         that both overflow and suffix chars were found.
63710
63711         * lib/human.c (humblock): Don't check separately for invalid suffix
63712         char; that is xstrtoumax's job (now that its bug is fixed).
63713         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
63714         INTMAX_MAX]: New macros.
63715         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
63716         TYPE_MAXIMUM): New macros.
63717         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
63718         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
63719         if overflow occurs, as it's what __strtol does and it's more useful
63720         in practice.
63721         (__xstrtol): If __strtol reports some error other than ERANGE,
63722         reflect it to the caller as LONGINT_INVALID.  If it reports
63723         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
63724         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
63725         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
63726         value.
63727         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
63728         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
63729         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
63730         [defined UINTMAX_MAX]: New macros.
63731
63732 2003-10-14  Bruno Haible  <bruno@clisp.org>
63733
63734         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
63735
63736 2003-10-14  Bruno Haible  <bruno@clisp.org>
63737
63738         * m4/sig_atomic_t: New file, from GNU gettext.
63739         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
63740
63741 2003-10-14  Bruno Haible  <bruno@clisp.org>
63742
63743         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
63744         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
63745         Also use volatile where needed.
63746
63747 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63748
63749         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
63750         Change maintainer from Bruno Haible to 'all'.
63751
63752 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63753
63754         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
63755
63756 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63757
63758         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
63759         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
63760         and define in terms of the other primitives.
63761         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
63762         (SIZE_MAX): Define if not already defined.
63763         (array_size_overflow): New function.
63764         (xalloc_die): Abort instead of exiting if 'error' returns.
63765         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
63766         (xmalloc, xrealloc): Use them.
63767         (xcalloc): Check for address arithmetic overflow.
63768         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
63769         a bit faster than strcpy.
63770
63771 2003-10-10  Simon Josefsson  <jas@extundo.com>
63772
63773         * modules/argp (Depends-on): Add restrict and strcase.
63774
63775 2003-10-10  Simon Josefsson  <jas@extundo.com>
63776
63777         * m4/argp.m4: Add AC_C_INLINE.
63778
63779 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63780
63781         Merge getpass from libc, plus a few fixes.
63782
63783         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
63784         Include <stdbool.h>.
63785         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
63786         __fsetlocking to empty.
63787         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
63788         do include <bits/libc-lock.h>.
63789         Do not include <fcntl.h>; not needed.
63790         [_LIBC]: Include <wchar.h>.
63791         (NOTCANCEL_MODE): New macro.
63792         (flockfile, funlockfile) [_LIBC]: New macros.
63793         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
63794         [!_LIBC]: New macros.
63795         (call_fclose): New function.
63796         (getpass): Use it.  Save tty stream separately; this simplifies the
63797         code and makes it more reliable if stdin happens to equal stdout.
63798         Invoke __fsetlocking on tty.
63799         Handle thread cancellation if needed.
63800         Namespace cleanup (use __tcgetattr, __getline).
63801         Use bool for Booleans.
63802         [USE_IN_LIBIO]: Handle wide streams.
63803         [!_LIBC]: Unconditionally do the fseek, since we don't know what
63804         stream might go where.
63805
63806         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
63807         doesn't have to include <stdio.h> before us.
63808         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
63809         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
63810         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
63811         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
63812         if not declared, so that we can use getpass.c code from libc without
63813         rewriting it.
63814         (flockfile, ftrylockfile, funlockfile): New macros.
63815
63816 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63817
63818         * modules/getpass: Depend on stdbool.
63819
63820 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63821
63822         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
63823
63824 2003-10-07  Karl Berry  <karl@gnu.org>
63825
63826         * config/config.{guess,sub}: update from config.
63827
63828 2003-10-06  Jim Meyering  <jim@meyering.net>
63829             Bruno Haible  <bruno@clisp.org>
63830
63831         This lets translators provide better translations for the
63832         "Written by ..." part of --version output.
63833         * lib/version-etc.h: Include stdarg.h.
63834         (version_etc_copyright): Declare as readonly.
63835         (version_etc): Make this function variadic with a NULL-terminated list
63836         of author name strings.
63837         (version_etc_va): New declaration.
63838         * lib/version-etc.c: Include stdarg.h, stdlib.h.
63839         (version_etc_copyright): Declare as readonly.
63840         (version_etc_va): New function. Provide a different translatable string
63841         for each possible number of authors < 10. Abbreviate when there are 10
63842         authors or more.
63843         (version_etc): Make this function variadic. Call version_etc_va.
63844         Suggestion from Gary V. Vaughan.
63845
63846         * lib/long-options.h (parse_long_options): Change prototype: the
63847         authors string is moved to the end and becomes variadic.
63848         * lib/long-options.c: Include stdarg.h.
63849         (parse_long_options): Make this function variadic, too.
63850         Call version_etc_va, not version_etc.
63851
63852 2003-10-06  Bruno Haible  <bruno@clisp.org>
63853
63854         * modules/version-etc-2: Remove file.
63855         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
63856
63857 2003-10-06  Bruno Haible  <bruno@clisp.org>
63858
63859         * modules/fatal-signal: New file.
63860         * MODULES.html.sh (func_all_modules): Add fatal-signal.
63861
63862 2003-10-06  Bruno Haible  <bruno@clisp.org>
63863
63864         * m4/fatal-signal.m4: New file.
63865         * m4/signalblocking.m4: New file, from GNU gettext.
63866
63867 2003-10-06  Bruno Haible  <bruno@clisp.org>
63868
63869         * lib/version-etc-2.h: Remove file.
63870         * lib/version-etc-2.c: Remove file.
63871
63872 2003-10-06  Bruno Haible  <bruno@clisp.org>
63873
63874         * lib/fatal-signal.h: New file, from GNU gettext.
63875         * lib/fatal-signal.c: New file, from GNU gettext.
63876
63877 2003-10-05  Paul Eggert  <eggert@twinsun.com>
63878
63879         * README: Rework advice for preventing empty .o files.
63880         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
63881         not <sys/types.h>.
63882
63883 2003-10-04  Karl Berry  <karl@gnu.org>
63884
63885         * lib/argp*: update from libc.
63886
63887 2003-10-04  Karl Berry  <karl@gnu.org>
63888
63889         * config/config.{guess,sub}: update from config.
63890
63891 2003-10-02  Bruno Haible  <bruno@clisp.org>
63892
63893         * modules/lchown (Include): Add lchown.h.
63894         * modules/time_r (Include): Use "..." syntax.
63895         * modules/xgetdomainname (Include): Add xgetdomainname.h.
63896
63897 2003-10-01  Simon Josefsson  <jas@extundo.com>
63898
63899         * MODULES.html.sh (func_all_modules): Move gethostname from section
63900         'based on' to section 'lacking' POSIX:2001.
63901
63902 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
63903
63904         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
63905         to output mode on the same stream.
63906
63907 2003-09-29  Paul Eggert  <eggert@twinsun.com>
63908
63909         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
63910         Fix arg typo in previous patch.
63911
63912 2003-09-28  Jim Meyering  <jim@meyering.net>
63913
63914         * lib/error.c: Correct cpp indentation.
63915
63916 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63917
63918         * modules/free: New file.
63919
63920 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63921
63922         * m4/free.m4: New file.
63923
63924 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63925
63926         * lib/minmax.h (MIN, MAX)
63927         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
63928         Omit the special code that used __typeof__, since we worry that
63929         it could be more trouble than it's worth.  See:
63930         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
63931         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
63932
63933         * lib/free.c: New file.
63934
63935 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
63936
63937         Trivial fixes to Makefile.am parts of module listings.
63938         * modules/strstr: Append strstr.h to lib_SOURCES.
63939         * modules/strcase: Likewise, for strcase.h.
63940
63941 2003-09-27  Karl Berry  <karl@gnu.org>
63942
63943         * config/mkinstalldirs: update from automake.
63944
63945 2003-09-26  Paul Eggert  <eggert@twinsun.com>
63946
63947         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
63948         (error_tail): Do not loop, reallocating temporary buffer, since
63949         the output cannot contain more wide characters than the input
63950         contains bytes, the size must be big enough already.  This avoids
63951         one potential size overflow calculation.  Check for size overflow
63952         when calculating temporary buffer size.  Free temporary buffer
63953         when done, if it was allocated with malloc; this plugs a memory
63954         leak.  Remove casts from void * to pointers, that are no longer
63955         needed now that we're assuming C89 or better.
63956
63957         Merge error changes from glibc.
63958
63959         * lib/error.c, error.h: Update copyright notice header to match glibc.
63960         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
63961         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
63962         Disable cancellation while printing error.
63963         * lib/error.h: Prepend __ to parameter names.
63964
63965 2003-09-26  Jim Meyering  <jim@meyering.net>
63966
63967         * lib/error.c (error_tail): Move some declarations
63968         into inner scope where the local variables are used.
63969
63970 2003-09-26  Bruno Haible  <bruno@clisp.org>
63971
63972         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
63973         stpncpy().
63974         Don't define stpncpy through config.h; it's now done through stpncpy.h.
63975
63976 2003-09-26  Bruno Haible  <bruno@clisp.org>
63977
63978         * lib/stpncpy.h (gnu_stpncpy): New declaration.
63979         (stpncpy): Define as alias for gnu_stpncpy.
63980         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
63981
63982 2003-09-25  Simon Josefsson  <jas@extundo.com>
63983
63984         * lib/xgetdomainname.h: New file.
63985         * lib/xgetdomainname.c: New file.
63986
63987 2003-09-25  Simon Josefsson  <jas@extundo.com>
63988             Bruno Haible  <bruno@clisp.org>
63989
63990         * modules/getdomainname: New file.
63991         * modules/xgetdomainname: New file.
63992         * MODULES.html.sh (func_all_modules): Add getdomainname,
63993         xgetdomainname.
63994
63995 2003-09-25  Simon Josefsson  <jas@extundo.com>
63996             Bruno Haible  <bruno@clisp.org>
63997
63998         * m4/getdomainname.m4: New file.
63999
64000 2003-09-25  Simon Josefsson  <jas@extundo.com>
64001             Bruno Haible  <bruno@clisp.org>
64002
64003         * lib/getdomainname.h: New file.
64004         * lib/getdomainname.c: New file.
64005
64006 2003-09-25  Karl Berry  <karl@gnu.org>
64007
64008         * lib/argp-fmtstream.c, argp-help.c: update from libc.
64009
64010 2003-09-25  Karl Berry  <karl@gnu.org>
64011
64012         * config/install-sh: update from automake.
64013
64014 2003-09-25  Bruno Haible  <bruno@clisp.org>
64015
64016         * modules/version-etc-2: New file, from modules/version-etc with
64017         modifications.
64018         * MODULES.html.sh (func_all_modules): Add version-etc-2.
64019
64020 2003-09-25  Bruno Haible  <bruno@clisp.org>
64021
64022         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
64023         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
64024
64025 2003-09-24  Simon Josefsson  <jas@extundo.com>
64026
64027         * modules/xgethostname: Add xgethostname.h.
64028
64029 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64030
64031         * lib/linebuffer.c (freebuffer): Don't free the argument, just
64032         the buffer associated with the argument.  Bug reported by
64033         Simon Josefsson.
64034
64035 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64036
64037         * README: Document assumptions that 'int' is at least 32 bits
64038         wide, that integer arithmetic is 2's complement without overflow,
64039         that there are no holes in integer values, that adding sizes of
64040         two nonoverlapping objects can't overflow, and that all-bits-zero
64041         yields scalar zero.  Fix spelling and capitalization typos.
64042
64043 2003-09-19  Karl Berry  <karl@gnu.org>
64044
64045         * lib/argp.h: update from libc.
64046
64047 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64048
64049         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
64050         to avoid spurious warnings like "AC_RUN_IFELSE was called before
64051         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
64052
64053 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64054
64055         * gnulib-tool: Use "test -h", not "test -L", for portability
64056         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
64057         (tags_regexp): Remove, since \| doesn't conform to POSIX.
64058         (sed_extract_prog): Issue s commands one-by-one, rather than
64059         using \| in one s command.
64060
64061 2003-09-16  Paul Eggert  <eggert@twinsun.com>
64062
64063         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
64064         input error, instead of returning NULL the next time we are called
64065         (and therefore losing track of errno).
64066
64067 2003-09-16  Bruno Haible  <bruno@clisp.org>
64068
64069         * gnulib-tool (func_create_testdir): Warn about duplicated
64070         dependencies.
64071
64072 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64073
64074         * modules/argmatch, modules/fatal, modules/obstack,
64075         modules/xalloc, modules/xgethostname: Sort dependencies by
64076         importance, not alphabetically.
64077
64078 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64079
64080         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
64081         fails, so that the caller gets the proper errno.
64082
64083         * lib/readutmp.c (read_utmp): Likewise.
64084         Check for fstat error.  Close stream and free storage
64085         when failing.
64086
64087 2003-09-14  Karl Berry  <karl@gnu.org>
64088
64089         * config/srclist.txt (strdup.c): disable for c89 changes.
64090
64091 2003-09-14  Jim Meyering  <jim@meyering.net>
64092
64093         * lib/getloadavg.c: Correct cpp indentation.
64094         * lib/strdup.c: Likewise.
64095         * lib/vasnprintf.c: Likewise.
64096
64097 2003-09-14  Bruno Haible  <bruno@clisp.org>
64098
64099         * modules/fwriteerror: New file.
64100         * MODULES.html.sh (func_all_modules): Add fwriteerror.
64101
64102 2003-09-14  Bruno Haible  <bruno@clisp.org>
64103
64104         * lib/fwriteerror.h: New file.
64105         * lib/fwriteerror.c: New file.
64106
64107 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64108
64109         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
64110         modules/xgethostname, modules/xalloc: Depend on exit.
64111
64112 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64113
64114         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
64115
64116         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
64117         and AC_MINIX, too, so that their extensions are available.
64118
64119         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
64120         This macro has been superseded by gl_BACKUPFILE.
64121
64122         More patches to assume C89 or better.
64123
64124         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
64125
64126         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
64127         unconditionally.
64128         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
64129         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
64130         Include <string.h>, <stdlib.h> unconditionally.
64131         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
64132         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
64133         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
64134         headers or for string.h.
64135         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
64136         or strtoul.
64137
64138         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
64139         headers.
64140         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
64141         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64142         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
64143         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
64144         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64145         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
64146         memcpy, memset.
64147         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
64148         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
64149         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
64150         strtol.
64151         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
64152         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
64153         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
64154         strtoul.
64155
64156 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64157
64158         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
64159         * lib/obstack.c [!defined _LIBC]: Likewise.
64160         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
64161         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
64162         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
64163
64164         More changes to assume C89 or better.
64165
64166         * lib/error.c (error_tail): Assume vprintf.
64167
64168         * lib/argmatch.c (getenv): Remove decl.
64169         * lib/progreloc.c (get_full_program_name): Define via prototype.
64170         * lib/setenv.c (clearenv): Likewise.
64171         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
64172         needed.
64173         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
64174         (malloc, memcpy): Remove decls.
64175         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
64176         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
64177         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64178         (memcpy): Remove macro.
64179         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
64180         (__P): Remove.  All uses removed.
64181         (PTR): Remove.  All uses changed to void *.
64182         (CHAR_BIT, NULL): Remove.
64183         (spaces, zeros, memset_space, memset_zero)
64184         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
64185         Remove.
64186         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
64187         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
64188         Define with prototype.
64189         Remove now-unnecessary prototype decl.
64190         (extra_args_spec): Assume ANSI C.  All uses changed.
64191         (extra_args_spec_iso): Remove.
64192         (my_strftime, emacs_strftimeu): Define via prototype.
64193         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
64194         unconditionally.
64195         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
64196         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
64197         (strtoul, strtol): Remove decls.
64198         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
64199         LONG_MAX): Remove.
64200         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64201         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
64202         (LOCALE_PARAM_PROTO): New macro.
64203         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
64204         (INTERNAL (strtol), strtol): Define with a prototype.
64205         (PARAMS): Remove.  All uses removed.
64206         * lib/tempname.c: Include <string.h> unconditionally.
64207         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
64208         * lib/xgethostname.c (main): Define with a prototype.
64209         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
64210         Include <stdlib.h> unconditionally.
64211         (calloc, malloc, realloc, free): Remove decls.
64212         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
64213         Include <stdlib.h> unconditionally.  Sort include file names.
64214         (strtod): Remove.
64215         (xstrtod): Define with a prototype.
64216         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
64217         (strtol, strtoul): Remove decls.
64218
64219 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64220
64221         More patches to assume C89 or better.
64222         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
64223         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
64224         string.h, memchr, STDC_HEADERS.
64225
64226 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64227
64228         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
64229         Include <stdlib.h>, <string.h> unconditionally.
64230         Remove now-unnecessary cast to char *.
64231         * lib/strnlen.c: Include <string.h> unconditionally.
64232         * lib/yesno.c (yesno): Define with a prototype.
64233
64234 2003-09-11  Bruno Haible  <bruno@clisp.org>
64235
64236         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
64237
64238 2003-09-10  Jim Meyering  <jim@meyering.net>
64239
64240         * lib/error.c: Correct indentation of cpp directives.
64241
64242 2003-09-10  Bruno Haible  <bruno@clisp.org>
64243
64244         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
64245         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
64246         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
64247         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
64248         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
64249         <stdlib.h> and <string.h> checks.
64250         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
64251         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
64252
64253 2003-09-10  Bruno Haible  <bruno@clisp.org>
64254
64255         * lib/strcspn.c: Include <string.h> unconditionally.
64256         * lib/strpbrk.c: Include <string.h> unconditionally.
64257         * lib/strstr.c: Include <string.h> unconditionally.
64258         * lib/unicodeio.c: Include <string.h> unconditionally.
64259         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
64260         * lib/unsetenv.c: Likewise.
64261         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
64262         * lib/yesno.c: Include <stdlib.h> unconditionally.
64263         (rpmatch): Add prototype.
64264
64265 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64266
64267         More patches to assume C89 or better.
64268         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
64269         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
64270         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
64271         or for string.h.
64272         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
64273         stdlib.h.
64274         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
64275         C headers.
64276         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
64277         string.h.
64278         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
64279         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
64280         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
64281         or for string.h.
64282         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
64283         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
64284         C headers.
64285         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
64286         memcpy.
64287         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
64288         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
64289         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
64290         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
64291         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
64292         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
64293         string.h, free.
64294         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
64295         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
64296         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
64297         C headers, or for string.h.
64298         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
64299         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
64300         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
64301         headers, memory.h, stdlib.h, string.h, strings.h.
64302         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
64303         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
64304         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
64305         strchr.
64306         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
64307         headers, memory.h, string.h.
64308         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
64309         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
64310         free.
64311         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
64312         headers.
64313         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
64314         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
64315         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
64316         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
64317         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
64318
64319 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64320
64321         More K&R removal.
64322
64323         * lib/acosl.c (main): Use a prototype.
64324         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
64325         tanl.c: Likewise.
64326
64327         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
64328
64329         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
64330         (getopt, etopt_long, getopt_long_only, _getopt_internal)
64331         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
64332         with a prototype.
64333         * lib/getopt.c (const): Remove macro.
64334         Include <string.h> unconditionally.
64335         (my_index): Remove; all uses changed to strchr.
64336         (strlen): Remove decl.
64337         (exchange): Remove forward decl; no longer needed.
64338         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
64339         Define with prototype.
64340         * lib/getopt1.c (const): Remove macro.
64341         (getopt_long, getopt_long_only, main): Define with prototype.
64342
64343         * lib/getugroups.c: Include <string.h> unconditionally.
64344
64345         * lib/getusershell.c: Include <stdlib.h> unconditionally.
64346         (getusershell, setusershell, endusershell, readname, main):
64347         Define with prototypes.
64348
64349         * lib/group-member.c: Include group-member.h first.
64350         Include <stdlib.h> unconditionally.
64351
64352         * lib/hard-locale.c: Include hard-locale.h first.
64353         Include <stdlib.h>, <string.h> unconditionally.
64354
64355         * lib/hash.c (free, malloc): Remove decls.
64356         Include <stdlib.h> unconditionally.
64357
64358         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
64359         (getenv): Do not declare.
64360
64361         * lib/idcache.c: Include <string.h> unconditionally.
64362
64363         * lib/long-options.c: Include long-options.h first, to test interface.
64364         Include <stdlib.h> unconditionally.
64365
64366         * lib/makepath.c: Include makepath.h first, to test interface.
64367         Include <stdlib.h> and <string.h> unconditionally.
64368
64369         * lib/linebuffer.c: Include <stdlib.h>.
64370         (free): Remove decl.
64371
64372         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
64373         stddef.h. rpl_malloc returns void *, not char *.
64374         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
64375         prototype.
64376
64377         * lib/md5.h: Include <limits.h> unconditionally.
64378         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
64379         (__P): Remove; all uses removed.
64380         * lib/md5.c: Include "md5.h" first.
64381         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
64382         md5_buffer, md5_process_bytes, md5_process_block):
64383         Define with prototypes.
64384         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
64385         * lib/sha.c: Include "sha.h" first.
64386         Include <stdlib.h>, <string.h> unconditionally.
64387
64388         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
64389         * lib/memcmp.c (__ptr_t): Likewise.
64390         * lib/memrchr.c (__ptr_t): Likewise.
64391         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
64392         Include <string.h> unconditionally.
64393         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
64394         * lib/memchr.c: Include <stdlib.h> unconditionally.
64395         * lib/memchr.c (LONG_MAX): Remove.
64396         * lib/memrchr.c (LONG_MAX): Likewise.
64397         * lib/memchr.c (__memchr): Define via a prototype.
64398         * lib/memrchr.c (__memrchr): Likewise.
64399         * lib/memcmp.c (__P): Remove, and remove all uses.
64400         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
64401         Remove forward decls; no longer needed.
64402         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
64403         Use types required by C89 in prototype.
64404
64405         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
64406         * lib/savedir.c: Likewise.
64407         * lib/mkdir.c (free): Remove decl.
64408         * lib/rmdir.c (rmdir): Define with a prototype.
64409         * lib/savedir.c: Include savedir.h first, to test interface.
64410
64411         * lib/mktime.c (STDC_HEADERS): Remove.
64412         Include <stdlib.h>, <string.h> unconditionally.
64413
64414         * lib/modechange.c: Include <stdlib.h> unconditionally.
64415         (malloc): Remove decl.
64416
64417         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
64418         (free): Remove decl.
64419
64420         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
64421         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
64422         (This type really should be intptr_t, but that's a C99ism.)
64423         (_obstack_memcpy): Remove: all uses changed to memcpy.
64424         Include <string.h> unconditionally.
64425         (struct obstack): Assume __STDC__ for types of members
64426         chunkfun, freefun, extra_arg.
64427         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
64428         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
64429         obstack_begin, obstack_specify_allocation,
64430         obstack_specify_allocation_with_arg, obstack_chunkfun,
64431         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
64432         Remove unprototyped decls and the macros that use them.
64433         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
64434         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
64435         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
64436         (defined __STDC__ && __STDC__)]:
64437         Remove nonprototyped code.
64438         Include <stdlib.h> unconditionally.
64439         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
64440         _obstack_allocated_p, _obstack_free, obstack_free,
64441         _obstack_memory_used, print_and_abort):
64442         Define using prototypes.
64443         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
64444         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
64445         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
64446         obstack_next_free, obstack_object_size, obstack_room) [0]:
64447         Remove unused, unprototyped code.
64448
64449         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
64450
64451         * lib/physmem.c (physmem_total, physmem_available, main): Define
64452         with prototypes.
64453
64454         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
64455         (main): Define with a prototype.
64456
64457         * lib/posixver.c (getenv): Remove decl.
64458
64459         * lib/putenv.c (malloc): Returns void *, not char *.
64460         Include <string.h> unconditionally.
64461         (strchr, memcpy, NULL): Do not define.
64462
64463         * lib/readtokens.c: Include readtokens.h first, to test interface.
64464         Include <stdlib.h>, <string.h> unconditionally.
64465         (init_tokenbuffer): Define with a prototype.
64466
64467         * lib/regex.c (PARAMS): Remove.  All uses removed.
64468         All uses of _RE_ARGS removed, too.
64469         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
64470         unconditionally.
64471         (bzero): Assume memset exists.
64472         (memcmp, memcpy, NULL): Remove.
64473         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
64474         char, or assignments to local vars of type signed char.
64475         (init_syntax_once, PREFIX(extract_number_and_incr),
64476         PREFIX(print_partial_compiled_pattern),
64477         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
64478         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
64479         PREFIX(regex_grow_registers), PREFIX(regex_compile),
64480         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
64481         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
64482         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
64483         wcs_compile_range, byte_compile_range, truncate_wchar,
64484         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
64485         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
64486         count_mbs_length, wcs_re_match_2_internal,
64487         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
64488         PREFIX(alt_match_null_string_p),
64489         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
64490         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
64491         regfree, PREFIX(extract_number)): Define with prototype.  Remove
64492         now-unnecessary declaration, if any.
64493         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
64494         regcomp, regexec):
64495         Remove now-unnecessary casts among pointer types.
64496         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
64497
64498         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
64499         (free): Remove decl.
64500
64501         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
64502
64503         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
64504         (free): Remove decl.
64505
64506         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
64507         * lib/xgetcwd.c: Likewise.
64508
64509         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
64510         (free): Remove decl.
64511
64512         * lib/strchrnul.c (strchrnul): Define with a prototype.
64513         Fix bug: c_in was not converted to char before searching.
64514
64515         The following changes are not K&R related:
64516
64517         * lib/group-member.h: Include <sys/types.h>, so that this file is
64518         self-contained.
64519         * lib/makepath.h: Likewise.
64520
64521         * lib/getusershell.c (readname, default_index, line_size, readname):
64522         Use size_t, not int, for sizes.
64523         (readname): If the size overflows, report an error instead of
64524         looping forever.
64525
64526 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64527
64528         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
64529         libc.
64530
64531 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64532
64533         * README: New section: portability guidelines.
64534
64535 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
64536
64537         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
64538         C89 spec.
64539
64540 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
64541
64542         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
64543
64544 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64545
64546         Assume C89 or better; remove K&R cruft.
64547         A few of these changes were first proposed by Derek Robert Price
64548         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
64549
64550         * lib/addext.c: Include <string.h> unconditionally.
64551         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
64552         Don't declare getenv or malloc.
64553
64554         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
64555         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
64556         (NULL): Remove.
64557         (find_stack_direction, alloca): Use prototypes.
64558
64559         * lib/atexit.c (atexit): Define using a prototype.
64560
64561         * lib/basename.c, dirname.c, stripslash.c:
64562         Include <string.h> unconditionally.
64563
64564         * lib/bcopy.c: Include <stddef.h>.
64565         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
64566
64567         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
64568
64569         * lib/error.h (error, error_at_line, error_print_progname)
64570         [! (defined (__STDC__) && __STDC__)]: Remove decls.
64571         * lib/error.c: Include error.h first, to check interface.
64572         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64573         (VA_START): Remove; all uses changeed to va_start.
64574         (exit, strerror): Remove decls.
64575         (error_print_progname): Prototype uncondionally.
64576         Don't include <errno.h>; no longer needed.
64577         (private_strerror): Remove.
64578         (error_tail): Always define.
64579         (error, error_at_line): Assume C89 or better; always use prototypes.
64580         * lib/fatal.c: Include "fatal.h" first, to test interface.
64581         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
64582         (VA_START): Remove; all uses changed to va_start.
64583         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
64584         this case.
64585         (exit): Remove decl.
64586         (fatal): Prototype unconditionally.  Assume va_start works.
64587         Abort at end, to pacify gcc.
64588
64589         * lib/euidaccess.c (main): Define with a prototype.
64590
64591         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
64592
64593         * lib/exitfail.c: Include <stdlib.h> unconditionally.
64594
64595         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
64596         prototypes.
64597         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
64598         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
64599         (getenv): Remove decl.
64600         (fnmatch): Define using a prototype.
64601         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
64602         (FCT): Define using a prototype.
64603
64604         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
64605
64606         * lib/gethostname.c: Include <stddef.h>.
64607         (gethostname): Define with prototype.  Length is size_t, not int.
64608
64609 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64610
64611         Assume C89 or better; remove K&R cruft.
64612         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
64613         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
64614         string.h, getenv, malloc.
64615         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
64616         headers.
64617         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
64618         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
64619         do not check for strerror.
64620         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
64621         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
64622         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
64623         do not check for doprnt or vprintf.
64624         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
64625         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
64626
64627 2003-09-08  Paul Eggert  <eggert@twinsun.com>
64628
64629         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
64630         getversion.c should have been removed then, but was accidentally
64631         preserved.
64632
64633         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
64634         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
64635
64636 2003-09-08  Karl Berry  <karl@gnu.org>
64637
64638         * config/config.sub, config.guess, srclistvars.sh: update from savannah
64639                 config, forget about prep.
64640
64641         * config/depcomp, missing: update from automake.
64642
64643 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64644
64645         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
64646         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64647
64648 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64649
64650         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
64651         copy_tm_result.  Bug reported by Simon Josefsson in
64652         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64653
64654 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64655
64656         * m4/time_r.m4: New file.
64657         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
64658         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
64659         is. Check for timegm declaration.
64660         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
64661         Do not check for gmtime_r.
64662         Replace mktime if __mktime_internal does not exist and if mktime
64663         hasn't been replaced already.
64664
64665 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64666
64667         * lib/time_r.c, lib/time_r.h: New files.
64668
64669         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
64670         __localtime_r.
64671         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
64672         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
64673
64674         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
64675         __gmtime_r.
64676         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
64677         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
64678         Include <time_r.h>.
64679
64680         * lib/timegm.c: Switch to glibc implementation, with the following
64681         changes:
64682         [defined HAVE_CONFIG_H]: Include <config.h>.
64683         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
64684         (__mktime_internal) [!defined _LIBC]: New decl.
64685         (__gmtime_r) [!defined _LIBC]: New macro and function.
64686         (timegm): Use a prototype, since gnulib assumes C89.
64687         Do not bother declaring tmp to be const, as it's not really usefu.
64688         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
64689         (timegm): Declare only if HAVE_DECL_TIMEGM.
64690
64691 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64692
64693         * MODULES.html.sh (func_all_modules): Add time_r.
64694         * modules/time_r: New file.
64695         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
64696         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
64697
64698 2003-09-03  Paul Eggert  <eggert@twinsun.com>
64699
64700         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
64701         Bug reported by Lute Kamstra in
64702         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
64703
64704         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
64705         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
64706         course with correspondingly smaller numbers for tomorrow and
64707         yesterday.  From Tadayoshi Funaba.  Originally installed into
64708         sh-utils on 1999-08-07, but the patch got lost (I guess during the
64709         coreutils merge?).
64710
64711 2003-08-31  Simon Josefsson  <jas@extundo.com>
64712
64713         * modules/timegm: New file.
64714         * MODULES.html.sh (func_all_modules): Add timegm.
64715
64716 2003-08-31  Simon Josefsson  <jas@extundo.com>
64717
64718         * m4/timegm.m4: New file.
64719
64720 2003-08-31  Simon Josefsson  <jas@extundo.com>
64721
64722         * lib/timegm.h: New file.
64723         * lib/timegm.c: New file.  Based on
64724         wget-1.8.2/src/http.c:mktime_from_utc.
64725
64726 2003-08-31  Karl Berry  <karl@gnu.org>
64727
64728         * lib/argp.h: update from libc.
64729
64730 2003-08-28  Bruno Haible  <bruno@clisp.org>
64731
64732         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
64733         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
64734         followed by '#define fnmatch fnmatch_posix' gives an error.
64735
64736 2003-08-28  Bruno Haible  <bruno@clisp.org>
64737
64738         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
64739         warning on QNX, which defines O_BINARY to 000000.
64740
64741 2003-08-27  Jim Meyering  <jim@meyering.net>
64742
64743         * m4/mkstemp.m4: Require that the system mkstemp be able to create
64744         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
64745         would fail after 32.  Reported by Danny Levinson.  Details here:
64746         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
64747
64748 2003-08-24  Bruno Haible  <bruno@clisp.org>
64749
64750         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
64751         MSVC7 <stdio.h> is included later.
64752
64753 2003-08-22  Simon Josefsson  <jas@extundo.com>
64754
64755         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
64756
64757 2003-08-20  Karl Berry  <karl@gnu.org>
64758
64759         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
64760
64761 2003-08-20  Bruno Haible  <bruno@clisp.org>
64762
64763         * modules/progname: New file.
64764         * MODULES.html.sh (func_all_modules): Add progname.
64765
64766 2003-08-20  Bruno Haible  <bruno@clisp.org>
64767
64768         * lib/progname.h: New file, from GNU gettext.
64769         * lib/progname.c: New file, from GNU gettext.
64770         * lib/progreloc.c: New file, from GNU gettext.
64771
64772 2003-08-19  Jim Meyering  <jim@meyering.net>
64773
64774         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
64775         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
64776
64777 2003-08-19  Bruno Haible  <bruno@clisp.org>
64778
64779         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
64780         more.
64781
64782 2003-08-19  Bruno Haible  <bruno@clisp.org>
64783
64784         * lib/xstrdup.c: Assume <string.h> exists.
64785
64786 2003-08-18  Paul Eggert  <eggert@twinsun.com>
64787
64788         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
64789         in makefile rules.
64790
64791 2003-08-18  Jim Meyering  <jim@meyering.net>
64792
64793         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
64794         * m4/lib-ld.m4: Likewise.
64795
64796 2003-08-18  Jim Meyering  <jim@meyering.net>
64797
64798         * lib/setenv.h: Indent nested cpp directive.
64799         * lib/vasnprintf.c: Remove trailing blanks.
64800
64801 2003-08-17  Simon Josefsson  <jas@extundo.com>
64802
64803         * modules/xstrndup: New file.
64804         * MODULES.html.sh (func_all_modules): Add xstrndup.
64805
64806 2003-08-17  Simon Josefsson  <jas@extundo.com>
64807
64808         * modules/argp: Fix autoconf macro name. Add more dependencies.
64809
64810 2003-08-17  Simon Josefsson  <jas@extundo.com>
64811
64812         * m4/xstrndup.m4: New file.
64813
64814 2003-08-17  Simon Josefsson  <jas@extundo.com>
64815
64816         * m4/argp.m4: New file.
64817
64818 2003-08-17  Simon Josefsson  <jas@extundo.com>
64819             Bruno Haible  <bruno@clisp.org>
64820
64821         * lib/xstrndup.h: New file.
64822         * lib/xstrndup.c: New file.
64823
64824 2003-08-17  Bruno Haible  <bruno@clisp.org>
64825
64826         * modules/strndup (Files, Include): Add lib/strndup.h.
64827
64828 2003-08-17  Bruno Haible  <bruno@clisp.org>
64829
64830         * modules/euidaccess (Files): Add lib/euidaccess.h.
64831
64832 2003-08-17  Bruno Haible  <bruno@clisp.org>
64833
64834         * lib/strndup.h: New file.
64835
64836 2003-08-17  Bruno Haible  <bruno@clisp.org>
64837
64838         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
64839         like AC_GNU_SOURCE.
64840         * modules/extensions (configure.ac): Comment out the invocation of
64841         gl_USE_SYSTEM_EXTENSIONS.
64842
64843 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64844
64845         Merges from coreutils, etc.
64846         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
64847         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
64848         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
64849         fixing a typo.
64850         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
64851         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
64852
64853 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64854
64855         Document merge from coreutils.
64856         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
64857         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
64858         * modules/utime: Add m4/utimes-null.m4.
64859
64860 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64861
64862         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
64863         space, undoing this 2003-08-12 change:
64864         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64865
64866 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64867
64868         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
64869         strtoul.c from libc, undoing this 2003-08-12 change:
64870         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64871
64872 2003-08-16  Jim Meyering  <jim@meyering.net>
64873
64874         Merges from coreutils.
64875         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
64876         prefix.  Adjust cache variables similarly.  Create 500 rather than
64877         just 300 files, to exercise bug on Darwin6.5, too.
64878         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
64879         $missing_dir.
64880         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
64881         AM_SYS_POSIX_TERMIOS.
64882         Reported by mkc@mathdogs.com.
64883         Also change use of $am_cv_sys_posix_termios
64884         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
64885         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
64886         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
64887         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
64888         in /proc/mounts until it finds one with matching device number.  This
64889         is unnecessary when the FILE argument *is* a mount point.  No stat call
64890         is necessary in that case.  So, disable the statvfs-testing code on
64891         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
64892         as RedHat bug# 84846.
64893         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64894         to 1MB, so as not to render systems with no stack size limit (e.g.,
64895         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64896         Include <unistd.h>.  On some systems,
64897         it is required for the definition of _SC_PAGESIZE.
64898
64899 2003-08-16  Jim Meyering  <jim@meyering.net>
64900
64901         Merge from coreutils.
64902         * lib/xstrtoimax.c: #else #if -> #elif.
64903         * lib/xstrtoumax.c: Likewise.
64904
64905 2003-08-16  Jim Meyering  <jim@meyering.net>
64906
64907         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
64908         * m4/utimes.m4: Removed.
64909         * m4/utimes-null.m4: Renamed from utimes.m4.
64910
64911         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64912         to 1MB, so as not to render systems with no stack size limit (e.g.,
64913         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64914         Include <unistd.h>.  On some systems,
64915         it is required for the definition of _SC_PAGESIZE.
64916
64917 2003-08-16  Jim Meyering  <jim@meyering.net>
64918         and Paul Eggert  <eggert@cs.ucla.edu>
64919
64920         Merges from coreutils, etc.
64921
64922         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
64923         using the latest version from cvs.  This avoids problems with #line
64924         directives using a vendor (Sun) compiler.
64925         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
64926         Don't set GETGROUPS_LIB here; now it's
64927         done via getgroups.m4's wrapper function.
64928         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
64929         rather than just in sh-util/configure.in, so that the
64930         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
64931         same.
64932         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
64933         AC_FUNC_GETLOADAVG where to find getloadavg.c.
64934         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
64935         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
64936         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
64937         Remove code that is now done by the newly-required macros.
64938         Append $(EXEEXT) to DF_PROG.
64939         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
64940         Do not invoke or require the following here,
64941         since prereq.m4 or some gnulib .m4 now does this for us:
64942         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
64943         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
64944         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
64945         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
64946         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
64947         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
64948         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
64949         AC_FUNC_OBSTACK.
64950         Do not replace the following functions, as this is now the job
64951         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
64952         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
64953         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
64954         atexit getpass, strdup, getpagesize.
64955         Replace 'raise'.
64956         Do not check for the following functions, as this is now the job
64957         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
64958         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
64959         setregid.
64960         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
64961         Check for sys/sysctl.h.
64962         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
64963         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
64964         of checking for ssize_t ourselves.
64965
64966         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
64967         Require every macro that gnulib/modules/* suggests for us.
64968         (jm_PREREQ_ADDEXT): New macro.
64969         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
64970         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
64971
64972         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
64973         (gl_PHYSMEM): Use it.
64974         Also check for `table' function.
64975         Check for new headers and functions.
64976         Add check for sys/sysmp.h.
64977         With suggestions from Kaveh Ghazi.
64978         Ignore headers that are present but cannot be compiled.  This
64979         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
64980         C 5.4.
64981
64982 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64983
64984         Document merge from coreutils.
64985         * modules/userspec: Depend on posixver.
64986         * modules/strftime: Depend on tzset.
64987
64988 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64989
64990         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
64991         rather than tab, after '#' in shell-script copyright notices.
64992         Suggested by Bruno Haible.
64993
64994 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64995
64996         * config/srclist-update: Use three spaces, rather than tab, after '#'
64997         in shell-script copyright notices.  Suggested by Bruno Haible.
64998         Remove unnecessary parenthesization in regular expression.
64999
65000 2003-08-15  Jim Meyering  <jim@meyering.net>
65001
65002         Merge from coreutils.
65003         * lib/xgethostname.c: Include <stdlib.h>.
65004         (xghostname): Don't exit for anything other than memory-related
65005         failure; just return NULL.
65006         * lib/userspec.c: Include "posixver.h".
65007         (parse_user_spec): Accept `.' as a separator only
65008         in pre-POSIX-200112 mode.
65009         * lib/strtoimax.c: Use #elif rather than #else #if.
65010         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
65011         Remove function, now that we can rely on a working tzset function.
65012         [!_LIBC]: Ensure that the required autoconf test has been run.
65013         [!defined _NL_CURRENT && HAVE_STRFTIME]:
65014         Use underlying_strftime for %r.
65015         * lib/sha.c: Merge in some clean-up and optimization changes from
65016         glibc.
65017         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
65018         Ensure that it is a multiple of 64.
65019         Rearrange loop exit tests so as to avoid performing an
65020         additional fread after encountering an error or EOF.
65021         * lib/realloc.c: Update copyright date.
65022
65023 2003-08-15  Jim Meyering  <jim@meyering.net>
65024         and Paul Eggert  <eggert@twinsun.com>
65025
65026         Merge from coreutils.
65027         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
65028         member but strut utmpx does not.  Needed for AIX 4.3.3.
65029         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
65030
65031 2003-08-15  Jim Meyering  <jim@meyering.net>
65032         and Paul Eggert  <eggert@cs.ucla.edu>
65033
65034         Merges from coreutils, etc.
65035         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
65036         Require gl_FUNC_TZSET_CLOBBER.
65037         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
65038         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
65039         members.
65040
65041 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65042
65043         Help the merge from coreutils.
65044         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
65045         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
65046         * m4/tzset.m4: Use it too.
65047
65048 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65049
65050         * modules/tzset: New file.
65051
65052 2003-08-14  Jim Meyering  <jim@meyering.net>
65053
65054         Merges from coreutils.
65055         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
65056         variable names, rather than @FNMATCH_H@.
65057         * modules/alloca: Likewise for $(ALLOCA_H).
65058
65059         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
65060         the three copies of the literal target, `fnmatch.h'.
65061         * modules/alloca (alloca.h): Likewise.
65062
65063 2003-08-14  Jim Meyering  <jim@meyering.net>
65064
65065         Merge from coreutils.
65066         * m4/tzset.m4: New file.
65067         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
65068         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
65069         otherwise, AIX 5.1 systems would end up using the latter.
65070         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
65071         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
65072         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
65073         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
65074
65075 2003-08-14  Jim Meyering  <jim@meyering.net>
65076
65077         Merge from coreutils.
65078         * lib/obstack.h: Whitespace changes.
65079         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
65080         and xcalloc return values.
65081         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
65082         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
65083         hang on OSF/1 5.1 for DIR on both local and remote file systems.
65084         Reported by (and fix confirmed by) Nelson H. F. Beebe.
65085         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65086         error from mntctl.
65087         Use mntctl's return value to drive the entry-processing loop, since
65088         we can't rely on the value of the vmt_length member in the last
65089         entry.  On some systems doing so could result in exhausting
65090         virtual memory.  Based in part on a patch from Mike Jetzer.
65091
65092 2003-08-14  Jim Meyering  <jim@meyering.net>
65093         and Paul Eggert  <eggert@twinsun.com>
65094
65095         Merges from coreutils, plus other fixes.
65096         * lib/physmem.c: Merge in portability changes from gcc/libiberty
65097         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
65098         for credits and details.  Thanks to Kaveh Ghazi for helping
65099         to keep these files in sync.
65100         (ARRAY_SIZE): Define it.
65101         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
65102         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
65103         (memcasecmp): Don't assume size_t fits in unsigned int.
65104         Remove casts and duplicate code.
65105         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
65106         (memcpy): Remove definition.
65107         Merge in some clean-up and optimization changes from glibc.
65108         [BLOCKSIZE]: Move definition to top of file.
65109         Ensure that it is a multiple of 64.
65110         Rearrange loop exit tests so as to avoid performing an
65111         additional fread after encountering an error or EOF.
65112         * lib/md5.h (md5_uintptr): Define.
65113         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
65114         return to the initial working directory.  Preserve errno
65115         for caller.
65116         * lib/idcache.c: Include "xalloc.h".
65117         (xmalloc, xrealloc): Remove decls.
65118         (getuser): Remove casts no longer required in C89.
65119         * lib/human.c: Include stdio.h, for sprintf.
65120         * lib/group-member.c: Include "xalloc.h".
65121         (xmalloc, xrealloc): Remove decls.
65122         (get_group_info): Remove casts no longer required in C89.
65123         * lib/getusershell.c (readname): Remove casts no longer required in
65124         C89.
65125         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
65126         * lib/getline.c: Whitespace fix, from coreutils.
65127
65128 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65129
65130         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
65131         Check for isascii.
65132
65133         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65134         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65135         Undo previous (whitespace-only) change.
65136
65137 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65138
65139         * lib/exclude.c: Include <ctype.h>
65140         (IN_CTYPE_DOMAIN): New macro.
65141         (is_space): New fn.
65142         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
65143         and empty lines.
65144
65145         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65146         Undo previous (whitespace-only) change.
65147
65148 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65149
65150         * config/srclist-update: Change update back to the old behavior,
65151         leaving whitespace alone.  Use one 'sed' command rather than a
65152         pipeline.
65153         (fixlicense): Now a variable, not a function.
65154         (remove_trailing_blanks): Remove.
65155         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
65156         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65157         Undo previous (whitespace-only) change.
65158
65159 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65160
65161         Merge from coreutils.
65162         * modules/euidaccess: Add lib_SOURCES, include for new
65163         file euidaccess.h
65164
65165 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65166
65167         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65168         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65169         Normalize leading white space and remove trailing white space.
65170
65171         Merge from coreutils
65172         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
65173
65174         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
65175         0.12.1.  These files are now being upgraded automatically by
65176         ../config/srclist-update.
65177
65178 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65179
65180         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65181         Normalize leading white space and remove trailing white space.
65182         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
65183         notice, as per ../config/srclist-update.
65184
65185         Merge from coreutils.
65186         * lib/euidaccess.h: New file.
65187         * lib/euidaccess.c: Include it.
65188         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
65189         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
65190         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
65191
65192 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65193
65194         * config/srclist-update: Add copyright notice.
65195         (remove_id_lines, remove_trailing_blanks): New constants.
65196         (fixfile): Use them to normalize spacing a bit in copied files.
65197         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65198         Normalize leading white space and remove trailing white space.
65199
65200         * config/texinfo.tex: Sync with texinfo.
65201
65202         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
65203         strtoul.c from libc, to merge coreutils whitespace changes.
65204
65205         * config/srclist.txt: Get the following m4 files from gettext:
65206         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
65207         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
65208         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
65209         wint_t.m4.
65210
65211 2003-08-12  Karl Berry  <karl@gnu.org>
65212
65213         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
65214         been made.
65215
65216 2003-08-11  Paul Eggert  <eggert@twinsun.com>
65217
65218         * modules/gnu-source, m4/gnu-source.m4:
65219         Remove; we're assuming Autoconf 2.54 or later now.
65220         Suggested by Bruno Haible.
65221         * MODULES.html.sh (func_all_modules): Remove gnu-source.
65222
65223 2003-08-11  Bruno Haible  <bruno@clisp.org>
65224
65225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
65226
65227 2003-08-11  Bruno Haible  <bruno@clisp.org>
65228
65229         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
65230         (vasnprintf): Use it instead of wcslen.
65231
65232 2003-08-11  Bruno Haible  <bruno@clisp.org>
65233
65234         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
65235         value to ensure that _Bool promotes to int. Use #define for _Bool when
65236         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
65237
65238 2003-08-10  Karl Berry  <karl@gnu.org>
65239
65240         * lib/regex.h: update from libc (whitespace fix).
65241
65242 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65243
65244         Merge some files from coreutils.  These changes were
65245         originally made by Jim Meyering.
65246         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
65247         many older Unixes require this.
65248         * lib/alloca.c (alloca): Remove cast to argument of free;
65249         no longer needed in C89.
65250         * lib/alloca_.h, regex.h: Fix white space to match
65251         what GNU indent does.
65252
65253 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65254
65255         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
65256         apparently Emacs's Unicode mode got confused before my 2003-08-05
65257         checkin.
65258
65259 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65260
65261         * m4/extensions.m4: New file.
65262         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
65263         Require gl_USE_SYSTEM_EXTENSIONS.
65264         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
65265         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
65266
65267 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65268
65269         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
65270         * modules/extensions, modules/gnu-source: New files.
65271         * modules/timespec, modules/unlocked-io: Depend on extensions.
65272
65273 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65274
65275         * modules/restrict: New file.
65276         * MODULES.html.sh (func_all_modules): Add restrict.
65277         * modules/regex: Depend on restrict.
65278
65279 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65280
65281         * m4/restrict.m4: New file.
65282         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
65283
65284 2003-08-07  Bruno Haible  <bruno@clisp.org>
65285
65286         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
65287         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
65288
65289 2003-08-07  Bruno Haible  <bruno@clisp.org>
65290
65291         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
65292         makes the module 'getndelim2' compatible with the module 'getline'.
65293
65294 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65295
65296         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
65297         byte with "\201" to avoid glitches when editing that source file
65298         with multi-gnome-terminal.
65299
65300 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65301
65302         * lib/bumpalloc.h: Remove.
65303
65304 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65305
65306         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
65307         * modules/bumpalloc: Remove.
65308
65309 2003-08-04  Paul Eggert  <eggert@twinsun.com>
65310
65311         * lib/getloadavg.c: Change copyright notice and spacing to conform to
65312         GNU coding style.
65313
65314         Merge from coreutils.
65315         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
65316         1. From glibc.
65317         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
65318         from Karl Berry, implemented by Jim Meyering.
65319         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
65320         from Dmitry V. Levin.
65321         Remove anachronistic cast of xrealloc.
65322         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
65323         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
65324         type. Otherwise, it wouldn't compile with at least /bin/cc on
65325         ymp-cray-unicos9.0.2.X.
65326         Combine two mostly-identical uses of alloca into one.
65327         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
65328
65329 2003-08-04  Dave Love  <d.love@dl.ac.uk>
65330
65331         [From Emacs.]
65332
65333         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
65334         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
65335         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
65336         obsolete NLIST_NAME_UNION.
65337         [__GNU__]: Undef BSD and FSCALE.
65338         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
65339
65340 2003-08-03  Paul Eggert  <eggert@twinsun.com>
65341
65342         * lib/stdbool_.h (_Bool): Make it signed char, instead of
65343         an enum type, so that it's guaranteed to promote to int.  See:
65344         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
65345
65346 2003-08-03  Karl Berry  <karl@gnu.org>
65347
65348         * config/depcomp: update from automake.
65349
65350 2003-07-31  Paul Eggert  <eggert@twinsun.com>
65351
65352         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
65353         (strerror): Don't assume that a printable int fits in 14 bytes.
65354
65355 2003-07-31  Bruno Haible  <bruno@clisp.org>
65356
65357         * modules/getpass-gnu: New file.
65358         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
65359
65360 2003-07-31  Bruno Haible  <bruno@clisp.org>
65361
65362         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
65363
65364 2003-07-24  Karl Berry  <karl@gnu.org>
65365
65366         * config/missing: update from automake.
65367
65368 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
65369             Bruno Haible  <bruno@clisp.org>
65370
65371         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
65372         * lib/getline.c (getline, getdelim): Likewise.
65373         Remove _GNU_SOURCE define; now it's defined in config.h through
65374         m4/getline.m4.
65375
65376 2003-07-23  Karl Berry  <karl@gnu.org>
65377
65378         * config/config.sub: update from prep.
65379
65380 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65381
65382         * modules/xalloc (Depends-on): Add exitfail.
65383         * modules/xmemcoll: Likewise.
65384
65385 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65386
65387         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
65388         over-parenthesization in macros.
65389
65390         Sync with coreutils.
65391
65392         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
65393         required by C99.
65394
65395         Use `exit_failure' for xalloc and xmemcoll instead of their own
65396         private exit-failure variables.
65397         * lib/xalloc.h (xalloc_exit_failure): Remove.
65398         * lib/xmalloc.c: Likewise.  Include exitfail.h.
65399         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
65400         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
65401         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
65402         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
65403
65404 2003-07-20  Jim Meyering  <jim@meyering.net>
65405
65406         * modules/closeout (Depends-on): Add exitfail.
65407         Suggestion from Bruno Haible.
65408
65409 2003-07-19  Karl Berry  <karl@gnu.org>
65410
65411         * config/config.sub: update from prep.
65412
65413 2003-07-18  Paul Eggert  <eggert@twinsun.com>
65414
65415         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
65416         Remove.
65417         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
65418         to test that it can stand by itself.  Include "exitfail.h".
65419         Clients should set exit_failure instead.
65420         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
65421
65422 2003-07-18  Bruno Haible  <bruno@clisp.org>
65423
65424         * modules/getndelim2: New file.
65425         * modules/getline: Share files with module getndelim2.
65426         * modules/getnline: Depend on getndelim2 instead of sharing files with
65427         it. Add getnline.c to lib_SOURCES.
65428         * MODULES.html.sh (func_all_modules): Add getndelim2.
65429
65430 2003-07-18  Bruno Haible  <bruno@clisp.org>
65431
65432         * m4/getndelim2.m4: New file.
65433         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
65434         invoke gl_PREREQ_GETNDELIM2.
65435         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
65436         gl_PREREQ_GETNDELIM2.
65437         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
65438         gl_GETNDELIM2.
65439
65440 2003-07-18  Bruno Haible  <bruno@clisp.org>
65441
65442         * lib/getndelim2.h: New file.
65443         * lib/getndelim2.c: Make into a module of its own. Include config.h,
65444         getndelim2.h.
65445         (getndelim2): Make non-static. Change return type to ssize_t.
65446         * lib/getline.h: Change argument names.
65447         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
65448         * lib/getnline.c: Include getndelim2.h.
65449
65450 2003-07-18  Andreas Schwab  <schwab@suse.de>
65451
65452         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
65453
65454 2003-07-17  Karl Berry  <karl@gnu.org>
65455
65456         * config/config.sub: update from prep.
65457
65458 2003-07-17  Bruno Haible  <bruno@clisp.org>
65459
65460         * modules/getnline: New file.
65461         * modules/getline: Add lib/getndelim2.c to source file list.
65462         * MODULES.html.sh (func_all_modules): Add getnline.
65463
65464 2003-07-17  Bruno Haible  <bruno@clisp.org>
65465
65466         * m4/getnline.m4: New file.
65467
65468 2003-07-17  Bruno Haible  <bruno@clisp.org>
65469
65470         * m4/Makefile.am.in: Remove file.
65471         * m4/Makefile.am: Remove file.
65472         * m4/Makefile.in: Remove file.
65473
65474 2003-07-17  Bruno Haible  <bruno@clisp.org>
65475
65476         * lib/getnline.h: New file.
65477         * lib/getnline.c: New file.
65478         * lib/getndelim2.c: New file, extracted from getline.c.
65479         (getndelim2): Renamed from getdelim2, with added nmax argument.
65480         * lib/getline.c: Include getndelim2.c.
65481         (getdelim2): Moved out to getndelim2.c.
65482         (getline, getdelim): Update.
65483
65484 2003-07-17  Bruno Haible  <bruno@clisp.org>
65485
65486         * lib/Makefile.am: Remove file.
65487         * lib/Makefile.in: Remove file.
65488
65489 2003-07-17  Bruno Haible  <bruno@clisp.org>
65490
65491         * configure.in: Remove file.
65492         * Makefile.in: Remove file.
65493
65494 2003-07-17  Bruno Haible  <bruno@clisp.org>
65495
65496         * MODULES.html.sh: Put the </BODY> right before </HTML>.
65497
65498 2003-07-16  Karl Berry  <karl@gnu.org>
65499
65500         * config/srclist-update: was running fixlicense twice, which caused
65501                 texinfo.tex to be nullified for some reason.  Simplify,
65502                 $gplsrc is no longer needed as far as I can see?
65503
65504 2003-07-16  Jim Meyering  <jim@meyering.net>
65505
65506         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
65507
65508 2003-07-15  Paul Eggert  <eggert@twinsun.com>
65509
65510         * config/srclist.txt: Get the following files from gettext-runtime/intl
65511         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
65512         ref-del.sin.  From Bruno Haible.
65513         * config/srclist-update (fixfile): Change grep pattern again, since the
65514         previous fix didn't work (there was another trailing $).  Use
65515         '[$]' to escape the $s.
65516
65517 2003-07-15  Karl Berry  <karl@gnu.org>
65518
65519         * lib/vasnprintf.c: update from gettext.
65520
65521 2003-07-15  Karl Berry  <karl@gnu.org>
65522
65523         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
65524         gets expanded when surrounded by '$'.
65525
65526 2003-07-15  Jim Meyering  <jim@meyering.net>
65527
65528         * modules/save-cwd: Don't depend on error.  From Derek Price.
65529
65530 2003-07-15  Jim Meyering  <jim@meyering.net>
65531
65532         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
65533
65534 2003-07-14  Simon Josefsson  <jas@extundo.com>
65535
65536         * modules/mempcpy: New file.
65537         * MODULES.html.sh (func_all_modules): Add mempcpy.
65538
65539 2003-07-14  Simon Josefsson  <jas@extundo.com>
65540
65541         * m4/mempcpy.m4: New file.
65542
65543 2003-07-14  Simon Josefsson  <jas@extundo.com>
65544
65545         * lib/mempcpy.h: New file.
65546         * lib/mempcpy.c: New file.
65547
65548 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65549
65550         * modules/getdate, modules/posixtm: Depend on mktime.
65551
65552 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65553
65554         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
65555         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
65556         unicodeio.c, unicodeio.h, unlocked-io.h:
65557         Switch from LGPL to GPL.
65558
65559 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65560
65561         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
65562         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
65563         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
65564         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
65565         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
65566         updated automatically by ../config/srclist-update.  This changes
65567         their license from LPGL to GPL.
65568
65569 2003-07-14  Paul Eggert  <eggert@twinsun.com>
65570
65571         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
65572         assumed to refer to the root of the most recent stable gettext version.
65573         * config/srclistvars.sh: Add defaults for eggert.
65574         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
65575         Match "This program" as well as "The program".  This is needed
65576         for gettext.
65577
65578 2003-07-14  Jim Meyering  <jim@meyering.net>
65579
65580         Don't emit diagnostics.  Let callers do that.
65581         * lib/save-cwd.c: Don't include "error.h".
65582         (save_cwd): Don't call error.  Ensure that errno is valid
65583         when returning nonzero.
65584
65585         * lib/save-cwd.h (restore_cwd): Update prototype.
65586         * lib/save-cwd.c (restore_cwd): Remove two parameters.
65587         Simplify.  Don't call error upon failure.  Let callers do that.
65588         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
65589         when auditing is enabled.  But don't bother updating the #if.
65590
65591 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
65592
65593         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
65594         it breaks C++ compilation.
65595         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
65596
65597 2003-07-10  Simon Josefsson  <jas@extundo.com>
65598
65599         * modules/strchrnul (Makefile.am): Add strchrnul.h.
65600
65601 2003-07-10  Jim Meyering  <jim@meyering.net>
65602
65603         * m4/clock_time.m4: Remove trailing blank.
65604         * m4/intmax_t.m4: Likewise.
65605
65606 2003-07-10  Jim Meyering  <jim@meyering.net>
65607
65608         * lib/vasnprintf.c: Remove trailing blanks.
65609         Make cpp indentation consistent.
65610
65611 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65612
65613         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
65614         posixver.c, strftime.c, strnlen.c, strverscmp.c:
65615         Switch from LGPL to GPL.
65616
65617 2003-07-09  Paul Eggert  <eggert@twinsun.com>
65618
65619         * config/srclist.txt: Sort sublists.  Add
65620         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
65621         that differ from gnulib for one reason or another; we'd like this list
65622         to be smaller but for now let's document what we have.
65623
65624 2003-07-08  Paul Eggert  <eggert@twinsun.com>
65625
65626         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
65627         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
65628         and sweeter "eval x=$x".
65629         * config/srclist.txt: Get lib/argp* from glibc.
65630
65631 2003-07-07  Paul Eggert  <eggert@twinsun.com>
65632
65633         * lib/mktime.c: Fix some boundary cases and remove need for floating
65634         point.
65635
65636         Issue a compile-time diagnostic if time_t is floating point, or if
65637         two's complement arithmetic is not in effect, or if arithmetic
65638         right shift does not propagate the sign.  These assumptions were
65639         all in the original code but they weren't checked.
65640
65641         (TIME_T_MIDPOINT, verify): New macros.
65642         (__isleap): Remove; it has integer overflow problems.
65643         (leapyear): New function, without those problems.
65644         (ydhms_tm_diff): Remove; splitting into two parts.
65645         (ydhms_diff): New function, containing the arithmetic part of
65646         the old ydhms_tm_diff function.  Issue a compile-time
65647         diagnostic if we are not using C99 integer division.
65648         Avoid casts when possible.
65649         (guess_time_tm): New function, containing the checking part of
65650         the old ydhms_tm_diff function.  Return the new value, rather than
65651         the difference between it and the old.  Accept a new argument T
65652         so that *T specifies the old value.  Check for overflow in the result.
65653
65654         (__mktime_internal): Use a time_t offset, not a long int offset.
65655         This undoes the 2003-06-04 change, which is no longer needed now
65656         that we have better overflow checking.
65657         (localtime_offset): Likewise.
65658
65659         (__mktime_internal): Avoid harmful overflow on hosts where time_t
65660         and long are 64-bit but int is only 32-bit.
65661         (ydhms_diff): Use long int to store year1 and yday1.
65662         Issue a compile-time diagnostic if long int is not wide enough.
65663
65664         (__mktime_internal): Use long int to store adjusted year and yday.
65665         Use plain C rather than preprocessor commands, if that doesn't
65666         affect efficiency.
65667         Check for overflow (and try to repair) after each probe
65668         rather than checking only at the very end.  This avoids some bugs
65669         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
65670         does not equal GMT offset at maximum time).
65671         Use integer to check for overflow rather than floating point; this
65672         is more portable to non-IEEE hosts, and is a tad faster.
65673         When we detect that we are oscillating between two values,
65674         don't check whether tm_isdst has the requested value, since
65675         we already know the answer.  When tm_isdst has the wrong value,
65676         use a different heuristic to find the right one, based on the
65677         extreme values actually observed in practice in tz2003a,
65678         rather than the (overly optimistic) "previous 3 calendar quarters".
65679
65680         (not_equal_tm, print_tm, check_result): Use "const T" rather than
65681         "T const" to accommodate glibc style.
65682         (check_result): Use less-confusing report format.  "long" -> "long int.
65683         (main): Likewise.
65684         Don't loop if the iteration overflows time_t.
65685         Allow a negative step in the iteration.
65686
65687 2003-07-06  Karl Berry  <karl@gnu.org>
65688
65689         * config/depcomp: update from automake.
65690         * config/config.sub: update from prep.
65691
65692 2003-07-03  Karl Berry  <karl@gnu.org>
65693
65694         * config/config.guess: update from prep.
65695
65696 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65697
65698         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
65699         xreadlink.c now includes it unconditionally.
65700
65701 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65702
65703         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
65704         having it depend on HAVE_SYS_TYPES_H.
65705
65706 2003-07-01  Bruno Haible  <bruno@clisp.org>
65707
65708         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
65709         <sys/types.h> should be sufficient.
65710         Reported by Paul Eggert.
65711
65712 2003-06-26  Karl Berry  <karl@gnu.org>
65713
65714         * config/depcomp: update from automake.
65715
65716 2003-06-26  Bruno Haible  <bruno@clisp.org>
65717
65718         * modules/human: Depend on module stdbool.
65719
65720 2003-06-25  Bruno Haible  <bruno@clisp.org>
65721
65722         * modules/readlink: New file.
65723         * modules/xreadlink: Depend on it.
65724         * MODULES.html.sh (func_all_modules): Add readlink.
65725
65726 2003-06-25  Bruno Haible  <bruno@clisp.org>
65727
65728         * m4/readlink.m4: New file.
65729
65730 2003-06-25  Bruno Haible  <bruno@clisp.org>
65731
65732         * lib/readlink.c: New file.
65733
65734 2003-06-22  Karl Berry  <karl@gnu.org>
65735
65736         * config/srclist.txt: update mkinstalldirs from automake.
65737         * config/mkinstalldirs: update.
65738
65739 2003-06-22  Bruno Haible  <bruno@clisp.org>
65740
65741         Portability to mingw32.
65742         * m4/ssize_t.m4: New file, from GNU gettext.
65743         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
65744         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
65745
65746 2003-06-22  Bruno Haible  <bruno@clisp.org>
65747
65748         * modules/safe-read: Add m4/ssize_t.m4.
65749         * modules/xreadlink: Add m4/ssize_t.m4.
65750
65751 2003-06-20  Bruno Haible  <bruno@clisp.org>
65752
65753         Assume C89, so PARAMS isn't needed.
65754         * lib/unicodeio.h (PARAMS): Remove.
65755         * lib/unicodeio.c: Don't use PARAMS.
65756
65757 2003-06-18  Karl Berry  <karl@gnu.org>
65758
65759         * config/config.{guess,sub}: update from prep.
65760
65761 2003-06-18  Jim Meyering  <jim@meyering.net>
65762
65763         Merge changes from coreutils.
65764         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
65765         Remove explicit declarations of xmalloc and realloc.
65766         Include xalloc.h.
65767         (read_utmp): Remove anachronistic cast of xmalloc.
65768
65769 2003-06-17  Paul Eggert  <eggert@twinsun.com>
65770
65771         Assume C89, so PARAMS isn't needed.
65772         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
65773         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
65774         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
65775         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
65776         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
65777         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
65778         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
65779         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
65780         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
65781         lib/xstrtod.h, lib/xstrtol.h: Likewise.
65782         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
65783         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
65784         no longer needed. Anyway, config.h should always be included before any
65785         other file.
65786
65787 2003-06-11  Simon Josefsson  <jas@extundo.com>
65788
65789         * modules/sysexits: New file.
65790         * MODULES.html.sh (func_all_modules): Add sysexits.
65791
65792 2003-06-11  Simon Josefsson  <jas@extundo.com>
65793
65794         * lib/sysexit_.h: New file.
65795
65796 2003-06-11  Derek Price  <derek@ximbiot.com>
65797
65798         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
65799         necessary.
65800
65801 2003-06-11  Bruno Haible  <bruno@clisp.org>
65802
65803         * m4/sysexits.m4: New file.
65804
65805 2003-06-10  Simon Josefsson  <jas@extundo.com>
65806
65807         * lib/argp.h: New file, from glibc.
65808         * lib/argp-ba.c: New file, from glibc.
65809         * lib/argp-eexst.c: New file, from glibc.
65810         * lib/argp-fmtstream.c: New file, from glibc.
65811         * lib/argp-fmtstream.h: New file, from glibc.
65812         * lib/argp-fs-xinl.c: New file, from glibc.
65813         * lib/argp-help.c: New file, from glibc.
65814         * lib/argp-namefrob.h: New file, from glibc.
65815         * lib/argp-parse.c: New file, from glibc.
65816         * lib/argp-pv.c: New file, from glibc.
65817         * lib/argp-pvh.c: New file, from glibc.
65818         * lib/argp-xinl.c: New file, from glibc.
65819
65820 2003-06-10  Simon Josefsson  <jas@extundo.com>
65821
65822         * modules/strchrnul: New file.
65823
65824 2003-06-10  Simon Josefsson  <jas@extundo.com>
65825
65826         * modules/argp: New file.
65827
65828 2003-06-10  Simon Josefsson  <jas@extundo.com>
65829
65830         * m4/strchrnul.m4: New file.
65831
65832 2003-06-10  Simon Josefsson  <jas@extundo.com>
65833
65834         * lib/strchrnul.h: New file.
65835         * lib/strchrnul.c: New file.
65836
65837 2003-06-10  Bruno Haible  <bruno@clisp.org>
65838
65839         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
65840
65841 2003-06-07  Karl Berry  <karl@gnu.org>
65842
65843         * config/config.{guess,sub}: update from prep.
65844
65845 2003-06-07  Jim Meyering  <jim@meyering.net>
65846
65847         * modules/strtod: Use $(...) notation, not @...@ for
65848         AC_REPLACE'd variables.
65849         * modules/localcharset: Likewise.
65850
65851 2003-06-07  Jim Meyering  <jim@meyering.net>
65852
65853         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
65854         in place of my name in the copyright comment.
65855         Remove definition and uses of __P.
65856
65857         From coreutils.
65858         * lib/stat.c: Don't declare xmalloc explicitly.
65859         Instead, include "xalloc.h".
65860         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
65861         xrealloc, and xcalloc return values.
65862         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
65863         Improve comment.
65864         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
65865
65866 2003-06-07  Bruno Haible  <bruno@clisp.org>
65867
65868         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
65869         avoid AC_CONFIG_LINKS.
65870         * modules/fnmatch (Makefile.am): Use explicit creation rule for
65871         fnmatch.h, to avoid AC_CONFIG_LINKS.
65872         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
65873
65874 2003-06-07  Bruno Haible  <bruno@clisp.org>
65875
65876         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
65877         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
65878         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65879         directory.
65880         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
65881         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65882         directory.
65883
65884 2003-06-06  Jim Meyering  <jim@meyering.net>
65885
65886         Merge from coreutils.
65887         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
65888         Consolidate declarations and initializations of *_base* locals.
65889
65890         Merge from coreutils.
65891         This avoids a core dump on systems without GNU putenv,
65892         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
65893         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
65894         (unsetenv): New static function, from GNU libc.
65895         (rpl_putenv): Use it.
65896
65897         * lib/modechange.c: Remove trailing blanks.
65898
65899         Merge from coreutils.
65900         * lib/fsusage.c: Remove declaration of statfs.
65901         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
65902
65903         * lib/posixtm.c: Include <stdbool.h> unconditionally.
65904
65905 2003-06-06  Jim Meyering  <jim@meyering.net>
65906
65907         * lib/stdbool_.h: Renamed from stdbool.h.in.
65908
65909 2003-06-06  Jim Meyering  <jim@meyering.net>
65910             Bruno Haible  <bruno@clisp.org>
65911
65912         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
65913         Adjust Makefile.am snippet not to redirect directly to target.
65914         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
65915
65916 2003-06-05  Paul Eggert  <eggert@twinsun.com>
65917
65918         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
65919         mismatch, look in future quarters as well as past.  This fixes a
65920         bug when processing fall-backwards gaps immediately after a long
65921         period of daylight-saving time.
65922
65923         * lib/mktime.c: Assume freestanding C89 or better.
65924         (HAVE_LIMITS_H): Remove.  Assume it's 1.
65925         (__P): Remove; not used.
65926         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
65927         (mktime, not_equal_tm, print_tm, check_result,
65928         main): Use prototypes.  Use const * where appropriate.
65929         (main): Fix typo in testing code that uncovered by above changes.
65930         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
65931
65932 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65933
65934         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
65935         locale.h, localeconv.  This merges changes from coreutils.
65936
65937         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
65938         It can be removed after the next Autoconf is released.
65939         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
65940         needed.
65941
65942 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65943
65944         * lib/mktime.c: Fix Debian bug 177940
65945         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
65946         (localtime_offset): Now long int, not time_t, because we want it
65947         to be guaranteed to be signed.  All uses changed.
65948         (__mktime_internal): If overflow would occur when adding offset,
65949         don't add it.
65950
65951         Merge 'human' changes from coreutils.  Rewrite to support
65952         locale-specific notations like thousands separators.
65953         * lib/human.c: Simplify authorship notice.
65954         Include human.h immediately after config.h.
65955         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
65956         <limits.h>: Do not include, since human.h does.
65957         (SIZE_MAX, UINTMAX_MAX): New macros.
65958         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
65959         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
65960         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
65961         (power_letter): Renamed from suffixes.
65962         (generate_suffix_backwards): Remove.
65963         (adjust_value): Now takes int style (because of human.h changes)
65964         and long double value (for greater precision on some platforms).
65965         (group_number): New function.
65966         (human_readable): Use it.  Use integer options, not enum.
65967         Put the options before the sizes in the arg list.
65968         Support all the new options.
65969         The old human_readable function has been removed;
65970         use inttostr.h instead.
65971         (human_readable, default_block_size, humblock):
65972         Use uintmax_t, not int, for block sizes.
65973         (human_readable_inexact, block_size_types): Remove.
65974         (block_size_opts): New constant.
65975         (human_options): Renamed from human_block_size, with new signature
65976         that allows block sizes up to UINTMAX_MAX.  All callers changed.
65977         * lib/human.h: Add copyright and authorship notice.
65978         Include <limits.h> and <stdbool.h> unconditionally.
65979         (PARAMS): Remove.  All uses removed.
65980         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
65981         (enum human_inexact_style): Remove tag; now a nameless enum.
65982         (human_floor, human_ceiling, human_round_to_even): Now have
65983         values 2, 0, 1 rather than -1, 1, 0.
65984         (human_group_digits, human_suppress_point_zero, human_autoscale,
65985         human_base_1024, human_SI, human_B): New constants.
65986         (human_readable_inexact, human_block_size): Remove.
65987         (human_readable): Size args are now uintmax_t, not int.
65988         (human_options): New decl.
65989
65990         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
65991         unnecessary now that we assume C89 or better.  This change
65992         imported from coreutils.
65993
65994         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65995         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
65996         in the 2003-05-30 sync from glibc.
65997
65998         .h files should stand alone, but we shouldn't include <sys/types.h>
65999         if we can get away with just <stddef.h>.
66000
66001         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
66002         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
66003         rather than <sys/types.h>, as we merely need size_t.
66004         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
66005         to get size_t.
66006         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
66007         Include <stdio.h>, to get FILE.
66008         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
66009         memcasecmp.h has included <stddef.h> and all we need is size_t.
66010         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
66011         our interface, instead of including <sys/types.h>
66012
66013 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66014
66015         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
66016         now, as glibc mktime is buggy on non-glibc systems.
66017
66018 2003-06-03  Karl Berry  <karl@gnu.org>
66019
66020         * config/config.sub: update from prep.
66021
66022 2003-06-02  Paul Eggert  <eggert@twinsun.com>
66023
66024         [from coreutils]
66025         Fix some minor time-related bugs with POSIX time arguments.
66026         Some valid time stamps were being rejected (notably -1, and
66027         time stamps before 1900 on 64-bit hosts).  And some invalid
66028         time stamps were being accepted, e.g. September 31.
66029
66030         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
66031         that we can return (time_t) -1 successfully.
66032         * lib/posixtm.c: Likewise.
66033         [HAVE_STDBOOL_H]: Include <stdbool.h>.
66034         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
66035         (t): Remove static var.
66036         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
66037         of static var.  All uses changed.
66038         (year): Do not reject years before 1900; they can occur with
66039         64-bit time_t.
66040         (posix_time_parse): Do not check for out-of-range components;
66041         that is now the caller's responsibility, since our checks were
66042         only approximations.
66043         (posixtime): Use mktime to check for out-of-range components,
66044         since it knows them exactly.
66045         If mktime returns (time_t) -1, check whether an error actually occurred
66046         by invoking localtime on -1.
66047         (main) [TEST_POSIXTIME]: Check for input data errors, and report
66048         posixtime failures better.
66049         Improve the test data (in comments only).
66050
66051 2003-06-02  Karl Berry  <karl@gnu.org>
66052
66053         * config/mkinstalldirs (version): new variable.
66054         (--version): new option.
66055         (usage): improve message.
66056
66057 2003-05-30  Karl Berry  <karl@gnu.org>
66058
66059         * lib/mktime.c: update from libc.
66060
66061 2003-05-30  Bruno Haible  <bruno@clisp.org>
66062
66063         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
66064         * config/config.rpath: Upgrade to gettext-0.12.1.
66065
66066 2003-05-30  Bruno Haible  <bruno@clisp.org>
66067
66068         * m4/gettext.m4: Upgrade to gettext-0.12.1.
66069         * m4/nls.m4: New file, from gettext-0.12.1.
66070         * m4/po.m4: New file, from gettext-0.12.1.
66071         * m4/progtest.m4: Upgrade to gettext-0.12.1.
66072
66073 2003-05-30  Bruno Haible  <bruno@clisp.org>
66074
66075         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
66076         * lib/localcharset.h: Likewise.
66077         * lib/localcharset.c: Likewise.
66078
66079 2003-05-29  Karl Berry  <karl@gnu.org>
66080
66081         * config/config.rpath: update from gettext.
66082
66083 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66084
66085         Assume the headers required for C89 freestanding compilers.
66086         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
66087         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
66088         * m4/human.m4 (gl_HUMAN): Likewise.
66089         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
66090         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
66091         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66092         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
66093         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66094         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
66095
66096 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66097
66098         Assume the headers required for C89 freestanding compilers.
66099         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
66100         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
66101         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
66102         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
66103         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
66104         define, since <limits.h> is guaranteed to do that.
66105         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
66106         * lib/exclude.c: Include <stdbool.h> unconditionally.
66107         * lib/tempname.c: Include <stddef.h> unconditionally.
66108         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
66109         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
66110         <stddef.h> does that.
66111         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
66112         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
66113         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
66114         needed.
66115         * lib/xstrtol.c: Likewise.
66116         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
66117         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
66118
66119         * lib/addext.c (addext): Use assignment rather than cast, to avoid
66120         warnings on some platforms.
66121
66122         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66123         arbitrarily.
66124
66125 2003-05-26  Jim Meyering  <jim@meyering.net>
66126
66127         Merge in a change from coreutils:
66128         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
66129         that is guaranteed to be `no'.  Use `no_such_member' to indicate
66130         that condition, rather than `-1' which is slightly misleading.
66131         Change the name of the cache variable to have the gl_ prefix.
66132         Prompted by a patch from Richard Dawe for DJGPP.
66133
66134 2003-05-24  Karl Berry  <karl@gnu.org>
66135
66136         * config/config.guess: update from prep.
66137
66138 2003-05-22  Karl Berry  <karl@gnu.org>
66139
66140         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
66141
66142 2003-05-20  Karl Berry  <karl@gnu.org>
66143
66144         * config/config.guess: update from prep.
66145
66146 2003-05-18  Karl Berry  <karl@gnu.org>
66147
66148         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
66149         might actually be set by the user.
66150
66151         * config/depcomp, install-sh, mdate-sh: update from automake.
66152
66153 2003-05-17  Bruno Haible  <bruno@clisp.org>
66154
66155         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
66156         invalid expansion for AC_EGREP_CPP.
66157         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
66158         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
66159         Suggested by Akim Demaille <akim@epita.fr> in
66160         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
66161
66162 2003-05-12  Jim Meyering  <jim@meyering.net>
66163
66164         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
66165         the space-padded-by-default conversion specifiers, %e, %k, %l.
66166
66167 2003-05-12  Bruno Haible  <bruno@clisp.org>
66168
66169         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
66170         the string is longer than 4 KB.
66171
66172 2003-05-11  Karl Berry  <karl@gnu.org>
66173
66174         * config/config.{guess,sub}: update from prep.
66175
66176 2003-05-09  Bruno Haible  <bruno@clisp.org>
66177
66178         * modules/error: Add m4/strerror_r.m4 to file list.
66179
66180 2003-05-03  Bruno Haible  <bruno@clisp.org>
66181
66182         Upgrade to Unicode-4.0.
66183         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
66184         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
66185         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
66186         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
66187         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
66188         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
66189         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
66190         Change width of U+E0100..U+E01EF from 1 to 0.
66191
66192 2003-04-25  Jim Meyering  <jim@meyering.net>
66193
66194         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
66195         of type size_t, not int.
66196
66197 2003-04-25  Bruno Haible  <bruno@clisp.org>
66198
66199         * lib/copy-file.c: Include <stddef.h>, for size_t.
66200
66201 2003-04-21  Paul Eggert  <eggert@twinsun.com>
66202
66203         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
66204         code which expansion is under static control.  Patch imported from
66205         Akim Demaille's patch to Bison; see
66206         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
66207
66208 2003-04-14  Bruno Haible  <bruno@clisp.org>
66209
66210         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
66211
66212 2003-04-11  Jim Meyering  <jim@meyering.net>
66213
66214         Merge changes from Coreutils.
66215
66216         2003-03-22  Jim Meyering  <jim@meyering.net>
66217
66218         * lib/strftime.c (widen): Cast alloca return value to proper type.
66219
66220         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
66221
66222         From GNU libc.
66223         * lib/strftime.c (my_strftime): Handle very large width
66224         specifications for numeric values correctly.  Improve checks for
66225         overflow.
66226
66227         2003-01-19  Jim Meyering  <jim@meyering.net>
66228
66229         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
66230         definitions.
66231         (nl_get_alt_digit) [! defined my_strftime]: Define.
66232         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
66233         _nl_get_alt_digit and _nl_get_walt_digit.
66234
66235         * lib/strftime.c (my_strftime): Merge in locale-related changes from
66236         libc. These changes have no effect outside of _LIBC.
66237
66238 2003-04-10  Bruno Haible  <bruno@clisp.org>
66239
66240         * modules/findprog: New file.
66241         * MODULES.html.sh (func_all_modules): Add it.
66242
66243 2003-04-10  Bruno Haible  <bruno@clisp.org>
66244
66245         * m4/findprog.m4: New file.
66246         * m4/eaccess.m4: New file.
66247
66248 2003-04-10  Bruno Haible  <bruno@clisp.org>
66249
66250         * lib/findprog.h: New file, from GNU gettext.
66251         * lib/findprog.c: New file, from GNU gettext.
66252
66253 2003-04-05  Jim Meyering  <jim@meyering.net>
66254
66255         Merge changes from Coreutils.
66256
66257         * lib/exclude.h (PARAMS): Remove definition and uses.
66258         * lib/exclude.c: Remove uses of `PARAMS'.
66259
66260         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
66261         Add test-cases for DOS filenames. Declare program_name.
66262         (main): Set up program_name.  Patch by Rich Dawe.
66263
66264         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
66265         error from mntctl.
66266         Use mntctl's return value to drive the entry-processing loop, since
66267         we can't rely on the value of the vmt_length member in the last
66268         entry.  On some systems doing so could result in exhausting
66269         virtual memory.  Based in part on a patch from Mike Jetzer.
66270
66271 2003-04-04  Bruno Haible  <bruno@clisp.org>
66272
66273         * modules/linebreak: New file.
66274         * MODULES.html.sh (func_all_modules): Add it.
66275
66276 2003-04-04  Bruno Haible  <bruno@clisp.org>
66277
66278         * m4/linebreak.m4: New file.
66279
66280 2003-04-04  Bruno Haible  <bruno@clisp.org>
66281
66282         * lib/linebreak.h: New file, from GNU gettext.
66283         * lib/linebreak.c: New file, from GNU gettext with slight
66284         modifications.
66285         * lib/lbrkprop.h: New file, from GNU gettext.
66286
66287 2003-04-03  Bruno Haible  <bruno@clisp.org>
66288
66289         * modules/utf8-ucs4: New file.
66290         * modules/utf16-ucs4: New file.
66291         * modules/ucs4-utf8: New file.
66292         * modules/ucs4-utf16: New file.
66293         * MODULES.html.sh (func_all_modules): Add them.
66294
66295 2003-04-03  Bruno Haible  <bruno@clisp.org>
66296
66297         * m4/utf-ucs4.m4: New file.
66298         * m4/ucs4-utf.m4: New file.
66299
66300 2003-04-03  Bruno Haible  <bruno@clisp.org>
66301
66302         * lib/utf8-ucs4.h: New file, from GNU gettext.
66303         * lib/utf16-ucs4.h: New file, from GNU gettext.
66304         * lib/ucs4-utf8.h: New file, from GNU gettext.
66305         * lib/ucs4-utf16.h: New file, from GNU gettext.
66306
66307 2003-04-02  Bruno Haible  <bruno@clisp.org>
66308
66309         * modules/binary-io: New file.
66310         * MODULES.html.sh (func_all_modules): Add it.
66311
66312 2003-04-02  Bruno Haible  <bruno@clisp.org>
66313
66314         * lib/binary-io.h: New file, from GNU gettext.
66315
66316 2003-04-01  Bruno Haible  <bruno@clisp.org>
66317
66318         * modules/pathname: New file.
66319         * MODULES.html.sh (func_all_modules): Add it.
66320
66321 2003-04-01  Bruno Haible  <bruno@clisp.org>
66322
66323         * lib/pathname.h: New file, from GNU gettext.
66324         * lib/concatpath.c: New file, from GNU gettext.
66325
66326 2003-03-30  Bruno Haible  <bruno@clisp.org>
66327
66328         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
66329
66330 2003-03-30  Bruno Haible  <bruno@clisp.org>
66331
66332         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
66333         function chown() doesn't exist.
66334
66335 2003-03-28  Bruno Haible  <bruno@clisp.org>
66336
66337         * modules/copy-file: New file.
66338         * MODULES.html.sh (func_all_modules): Add it.
66339
66340 2003-03-28  Bruno Haible  <bruno@clisp.org>
66341
66342         * m4/copy-file.m4: New file.
66343
66344 2003-03-28  Bruno Haible  <bruno@clisp.org>
66345
66346         * lib/copy-file.h: New file, from GNU gettext.
66347         * lib/copy-file.c: New file, from GNU gettext.
66348
66349 2003-03-18  Jim Meyering  <jim@meyering.net>
66350
66351         * lib/quote.c (quote_n): Fix typo in comment.
66352
66353 2003-03-18  Bruno Haible  <bruno@clisp.org>
66354
66355         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
66356         checking.
66357         * m4/onceonly_2_57.m4: Likewise.
66358
66359 2003-03-17  Bruno Haible  <bruno@clisp.org>
66360
66361         * m4/onceonly.m4: Require autoconf 2.54 or newer.
66362         (m4_quote): Remove macro.
66363         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
66364
66365 2003-03-14  Jim Meyering  <jim@meyering.net>
66366
66367         Merge changes from Coreutils.
66368         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
66369         to be const, in order to avoid warnings.
66370         (obstack_room): Likewise.
66371         (obstack_empty_p): Likewise.
66372
66373 2003-03-14  Bruno Haible  <bruno@clisp.org>
66374
66375         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
66376         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
66377
66378 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66379
66380         Merge changes from Bison.
66381         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
66382         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
66383         when compiling Bison 1.875's `bitset bset = obstack_alloc
66384         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
66385         * lib/hash.c: Include <stdbool.h> unconditionally.
66386
66387 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66388
66389         * m4/onceonly.m4 (m4_quote): New macro.
66390         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
66391         Quote AC_FOREACH variable-expansions properly.
66392
66393 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66394
66395         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
66396
66397 2003-03-09  Paul Eggert  <eggert@twinsun.com>
66398
66399         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
66400         Reported by Bruce Becker; see:
66401         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
66402
66403 2003-03-03  Paul Eggert  <eggert@twinsun.com>
66404             Bruno Haible  <bruno@clisp.org>
66405
66406         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
66407         Reported by John Hughes, see
66408         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
66409
66410 2003-02-20  Bruno Haible  <bruno@clisp.org>
66411
66412         * MODULES.html.sh (func_all_modules): Add poll.
66413
66414 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66415
66416         * modules/poll: New file.
66417
66418 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66419
66420         * lib/poll_.h: New file.
66421         * lib/poll.c: New file.
66422
66423 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66424
66425         * m4/poll.m4: New file.
66426
66427 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66428
66429         * modules/mathl: New file.
66430
66431 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66432
66433         * lib/mathl.h: New file.
66434         * lib/acosl.c: New file.
66435         * lib/asinl.c: New file.
66436         * lib/atanl.c: New file.
66437         * lib/ceill.c: New file.
66438         * lib/cosl.c: New file.
66439         * lib/expl.c: New file.
66440         * lib/floorl.c: New file.
66441         * lib/frexpl.c: New file.
66442         * lib/ldexpl.c: New file.
66443         * lib/logl.c: New file.
66444         * lib/sincosl.c: New file.
66445         * lib/sinl.c: New file.
66446         * lib/sqrtl.c: New file.
66447         * lib/tanl.c: New file.
66448         * lib/trigl.c: New file.
66449         * lib/trigl.h: New file.
66450
66451 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66452
66453         * m4/mathl.m4: New file.
66454
66455 2003-02-18  Bruno Haible  <bruno@clisp.org>
66456
66457         * MODULES.html.sh (func_all_modules): Add mathl.
66458
66459 2003-02-17  Bruno Haible  <bruno@clisp.org>
66460
66461         * modules/mkdtemp: New module.
66462         * MODULES.html.sh (func_all_modules): Add it.
66463
66464 2003-02-17  Bruno Haible  <bruno@clisp.org>
66465
66466         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
66467
66468 2003-02-17  Bruno Haible  <bruno@clisp.org>
66469
66470         * lib/mkdtemp.h: New file, from GNU gettext.
66471         * lib/mkdtemp.c: New file, from GNU gettext.
66472
66473 2003-02-02  Jim Meyering  <jim@meyering.net>
66474
66475         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
66476         e.g. glibc-2.2.93.
66477
66478 2003-01-31  Bruno Haible  <bruno@clisp.org>
66479
66480         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
66481         'rpl_rename'.
66482         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
66483         'rpl_strnlen'.
66484         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
66485         'rpl_strtod'.
66486         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
66487         'rpl_utime'.
66488
66489 2003-01-31  Bruno Haible  <bruno@clisp.org>
66490
66491         * lib/rename.c: #undef rename before defining rpl_rename.
66492         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
66493
66494 2003-01-30  Bruno Haible  <bruno@clisp.org>
66495
66496         * modules/vasnprintf, modules/vasprintf: New modules.
66497         * MODULES.html.sh (func_all_modules): Add them.
66498
66499 2003-01-30  Bruno Haible  <bruno@clisp.org>
66500
66501         * m4/signed.m4: New file, from GNU gettext.
66502         * m4/longdouble.m4: New file, from GNU gettext.
66503         * m4/wchar_t.m4: New file, from GNU gettext.
66504         * m4/wint_t.m4: New file, from GNU gettext.
66505         * m4/vasnprintf.m4: New file.
66506         * m4/vasprintf.m4: New file.
66507
66508 2003-01-30  Bruno Haible  <bruno@clisp.org>
66509
66510         * lib/printf-args.h: New file, from GNU gettext.
66511         * lib/printf-args.c: New file, from GNU gettext.
66512         * lib/printf-parse.h: New file, from GNU gettext.
66513         * lib/printf-parse.c: New file, from GNU gettext.
66514         * lib/vasnprintf.h: New file, from GNU gettext.
66515         * lib/vasnprintf.c: New file, from GNU gettext.
66516         * lib/asnprintf.c: New file, from GNU gettext.
66517         * lib/vasprintf.h: New file, from GNU gettext with modifications.
66518         * lib/vasprintf.c: New file, from GNU gettext.
66519         * lib/asprintf.c: New file, from GNU gettext.
66520
66521 2003-01-29  Bruno Haible  <bruno@clisp.org>
66522
66523         * modules/stpncpy: New module.
66524         * MODULES.html.sh (func_all_modules): Add it.
66525
66526 2003-01-29  Bruno Haible  <bruno@clisp.org>
66527
66528         * m4/stpncpy.m4: New file.
66529
66530 2003-01-29  Bruno Haible  <bruno@clisp.org>
66531
66532         * lib/stpncpy.h: New file, from GNU gettext with modifications.
66533         * lib/stpncpy.c: New file, from GNU gettext with modifications.
66534
66535 2003-01-28  Bruno Haible  <bruno@clisp.org>
66536
66537         * modules/c-ctype: New module.
66538         * MODULES.html.sh (func_all_modules): Add it.
66539
66540 2003-01-28  Bruno Haible  <bruno@clisp.org>
66541
66542         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
66543         Paul Eggert.
66544         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
66545         Paul Eggert.
66546
66547 2003-01-27  Bruno Haible  <bruno@clisp.org>
66548
66549         * modules/xsetenv: New module.
66550         * MODULES.html.sh (func_all_modules): Add it.
66551
66552 2003-01-27  Bruno Haible  <bruno@clisp.org>
66553
66554         * lib/xsetenv.h: New file, from GNU gettext.
66555         * lib/xsetenv.c: New file, from GNU gettext.
66556
66557 2003-01-23  Jim Meyering  <jim@meyering.net>
66558
66559         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
66560         from working on systems without dirfd (at least Irix and OSF1/Tru64).
66561
66562 2003-01-23  Bruno Haible  <bruno@clisp.org>
66563
66564         * modules/minmax: New module.
66565         * MODULES.html.sh (func_all_modules): Add it.
66566
66567 2003-01-23  Bruno Haible  <bruno@clisp.org>
66568
66569         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
66570         Eggert.
66571
66572 2003-01-22  Bruno Haible  <bruno@clisp.org>
66573
66574         * modules/exit: New module.
66575         * MODULES.html.sh (func_all_modules): Add it.
66576
66577 2003-01-22  Bruno Haible  <bruno@clisp.org>
66578
66579         * lib/exit.h: New file, from GNU gettext.
66580
66581 2003-01-19  Bruno Haible  <bruno@clisp.org>
66582
66583         * gnulib-tool: Recognize option --extract-maintainer.
66584         (func_get_maintainer): New function.
66585         * modules/*: Add Maintainer entry.
66586
66587 2003-01-16  Jim Meyering  <jim@meyering.net>
66588
66589         * m4/regex.m4: The `regex' struct is both input and output.
66590         Initialize it before each use.  Patch by Tim Waugh.
66591
66592 2003-01-16  Bruno Haible  <bruno@clisp.org>
66593
66594         * MODULES.html.sh: Add a table of contents. Add the module name as
66595         leftmost column. Add hyperlinks.
66596
66597 2003-01-15  Bruno Haible  <bruno@clisp.org>
66598
66599         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
66600
66601 2003-01-15  Bruno Haible  <bruno@clisp.org>
66602
66603         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
66604         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
66605         suffix.
66606
66607 2003-01-15  Bruno Haible  <bruno@clisp.org>
66608
66609         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
66610
66611 2003-01-15  Bruno Haible  <bruno@clisp.org>
66612
66613         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
66614         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
66615
66616 2003-01-14  Jim Meyering  <jim@meyering.net>
66617
66618         * lib/same.c (same_name): Tweak a comment.
66619
66620 2003-01-14  Bruno Haible  <bruno@clisp.org>
66621
66622         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
66623         when a string comparison is sufficient.
66624
66625 2003-01-14  Bruno Haible  <bruno@clisp.org>
66626
66627         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
66628         'unsigned int'.
66629
66630 2003-01-14  Bruno Haible  <bruno@clisp.org>
66631
66632         * lib/hash-pjw.c: Add comment about low quality of this function.
66633
66634 2003-01-13  Bruno Haible  <bruno@clisp.org>
66635
66636         * modules/stpcpy: Distribute lib/stpcpy.h.
66637         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
66638
66639 2003-01-13  Bruno Haible  <bruno@clisp.org>
66640
66641         * modules/*: Add a description.
66642         * modules/strpbrk: Fix Makefile.am snippet.
66643         * modules/strtoimax: Fix dependencies.
66644         * modules/strtoumax: Likewise.
66645
66646 2003-01-13  Bruno Haible  <bruno@clisp.org>
66647
66648         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
66649         * modules/alloca (Makefile.am): All object files depend on alloca.h.
66650         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
66651
66652 2003-01-13  Bruno Haible  <bruno@clisp.org>
66653
66654         * gnulib-tool (func_create_testdir): Store config/* files in the main
66655         directory.
66656         * config.rpath: Move to ...
66657         * config/config.rpath: ... here.
66658         * modules/gettext: Contains config/config.rpath, not config.rpath.
66659         * modules/iconv: Likewise.
66660
66661 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66662
66663         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66664         to avoid collisions with libcurses and libreadline.
66665
66666         * m4/getstr.m4: Remove.
66667         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
66668
66669 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66670
66671         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66672         to avoid collisions with libcurses and libreadline.
66673
66674         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
66675         * lib/getstr.h, getstr.c: Remove.
66676         * lib/getline.c: Include "getline.h", to check interface.
66677         Move body of old getstr.c here: this defines MIN_CHUNK and
66678         declares getdelim2, which is renamed from getstr.
66679         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
66680
66681         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
66682         All uses changed.
66683         * lib/linebuffer.h: Likewise.
66684         (readline): Remove backward-compatibility macro.
66685
66686 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66687
66688         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66689         to avoid collisions with libcurses and libreadline.
66690         * getstr: Remove.
66691         * MODULES.html.sh: Remove getstr.
66692         * modules/getline: Depend on unlocked-io, not getstr.
66693
66694 2003-01-12  Jim Meyering  <jim@meyering.net>
66695
66696         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
66697
66698 2003-01-10  Bruno Haible  <bruno@clisp.org>
66699
66700         * modules/alloca: Change Makefile.am requirements. Simplify Include
66701         requirements. Add lib/alloca_.h to file list.
66702
66703 2003-01-10  Bruno Haible  <bruno@clisp.org>
66704
66705         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
66706
66707 2003-01-10  Bruno Haible  <bruno@clisp.org>
66708
66709         * lib/alloca_.h: New file.
66710         * lib/getdate.y: Unconditionally include alloca.h.
66711         * lib/makepath.c: Likewise.
66712         * lib/setenv.c: Likewise.
66713         * lib/userspec.c: Likewise.
66714
66715 2003-01-09  Karl Berry  <karl@gnu.org>
66716
66717         * MODULES.html.sh: include `dirname $0` in PATH, to find
66718         gnulib-tool.
66719
66720 2003-01-09  Bruno Haible  <bruno@clisp.org>
66721
66722         * modules/stdbool: Change configure.ac, Makefile.am requirements.
66723         Simplify Include requirements. Add lib/stdbool.h.in to file list.
66724
66725 2003-01-09  Bruno Haible  <bruno@clisp.org>
66726
66727         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
66728
66729 2003-01-09  Bruno Haible  <bruno@clisp.org>
66730
66731         * lib/stdbool.h.in: New file.
66732
66733 2003-01-09  Bruno Haible  <bruno@clisp.org>
66734
66735         * gnulib-tool (func_all_modules): Ignore files ending in ~.
66736         * MODULES.html.sh: Likewise.
66737
66738 2003-01-08  Jim Meyering  <jim@meyering.net>
66739
66740         * lib/full-write.c: Undefine and define-away `const' after inclusion
66741         of errno.h, not before.  Suggestion from Bruno Haible.
66742
66743 2003-01-08  Bruno Haible  <bruno@clisp.org>
66744
66745         * modules/full-read: Depend on full-write.
66746
66747 2003-01-08  Bruno Haible  <bruno@clisp.org>
66748
66749         * lib/safe-read.c: Include specification header first, to ensure its
66750         selfcontainedness.
66751         * lib/full-write.c: Likewise.
66752
66753 2003-01-07  Jim Meyering  <jim@meyering.net>
66754
66755         * lib/full-write.c: Rework so that it may serve to define full_read,
66756         too.
66757         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
66758
66759 2003-01-07  Bruno Haible  <bruno@clisp.org>
66760
66761         * lib/strtoimax.c: Include <stdint.h> as an alternative to
66762         <inttypes.h>.
66763         * lib/xstrtol.h: Likewise.
66764         * lib/xstrtoimax.c: Likewise.
66765         * lib/xstrtoumax.c: Likewise.
66766         * lib/human.h: Likewise.
66767
66768         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
66769         on systems that have <inttypes.h> but not <stdint.h>.
66770
66771 2003-01-07  Bruno Haible  <bruno@clisp.org>
66772
66773         * MODULES.html.sh: Add copyright notice.
66774         (missed_files): Omit CVS directory entries.
66775         (func_module): Make it work with sed-3.02.
66776         * MODULES.txt: Remove file.
66777
66778 2003-01-06  Jim Meyering  <jim@meyering.net>
66779
66780         * lib/version-etc.c: Update year in translatable copyright string.
66781
66782 2003-01-03  Karl Berry  <karl@gnu.org>
66783
66784         * config/config.{guess,sub}: update from prep.
66785
66786 2003-01-02  Karl Berry  <karl@gnu.org>
66787
66788         * doc/COPYING.DOC: belatedly updated to 1.2.
66789
66790 2003-01-01  Karl Berry  <karl@gnu.org>
66791
66792         * gnulib-tool (func_verify_module): report module name $module in
66793         error message, not $1.
66794         * gnulib-tool (create-testdir): don't complain if destdir couldn't
66795         be created, only if it doesn't exist.
66796         * gnulib-tool (last_checkin_date): don't expand the $Date here.
66797
66798 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66799
66800         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
66801
66802 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66803
66804         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
66805         memcmp if strcoll doesn't work.
66806
66807 2002-12-31  Bruno Haible  <bruno@clisp.org>
66808
66809         * lib/utime.c (utime_null): No need to call ftruncate if the file was
66810         nonempty.
66811
66812 2002-12-31  Bruno Haible  <bruno@clisp.org>
66813
66814         * lib/memcoll.c (STRCOLL): New macro.
66815         (memcoll): Use it.
66816
66817 2002-12-31  Bruno Haible  <bruno@clisp.org>
66818
66819         * lib/localcharset.h: New file.
66820         * lib/localcharset.c: Include it.
66821         * lib/unicodeio.c: Likewise.
66822
66823 2002-12-31  Bruno Haible  <bruno@clisp.org>
66824
66825         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
66826         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
66827
66828 2002-12-31  Bruno Haible  <bruno@clisp.org>
66829
66830         * lib/getline.h: Include <stddef.h>, for size_t.
66831
66832         * lib/unicodeio.h: Include <stddef.h>, for size_t.
66833         * lib/unicodeio.c: Don't include <stddef.h>.
66834
66835 2002-12-31  Bruno Haible  <bruno@clisp.org>
66836
66837         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
66838         HAVE_TM_ZONE.
66839
66840 2002-12-24  Karl Berry  <karl@gnu.org>
66841
66842         * config/config.guess: update from prep.
66843
66844 2002-12-24  Bruno Haible  <bruno@clisp.org>
66845
66846         General infrasructure.
66847         * m4/README: Rewritten.
66848         * m4/onceonly.m4: New file.
66849         * m4/onceonly_2_57.m4: New file.
66850
66851         Module atexit.
66852         * m4/atexit.m4: New file.
66853
66854         Module strtod.
66855         * m4/strtod.m4: New file.
66856
66857         Module strtol.
66858         * m4/strtol.m4: New file.
66859
66860         Module strtoul.
66861         * m4/strtoul.m4: New file.
66862
66863         Module memchr.
66864         * m4/memchr.m4: New file.
66865
66866         Module memcmp.
66867         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
66868         (jm_FUNC_MEMCMP): Invoke it.
66869
66870         Module memcpy.
66871         * m4/memcpy.m4: New file.
66872
66873         Module memmove.
66874         * m4/memmove.m4: New file.
66875
66876         Module memset.
66877         * m4/memset.m4: New file.
66878
66879         Module strcspn.
66880         * m4/strcspn.m4: New file.
66881
66882         Module strpbrk.
66883         * m4/strpbrk.m4: New file.
66884
66885         Module strstr.
66886         * m4/strstr.m4: New file.
66887
66888         Module strerror.
66889         * m4/strerror.m4: New file.
66890
66891         Module mktime.
66892         * m4/mktime.m4: Renamed from jm-mktime.m4.
66893         (gl_PREREQ_MKTIME): New macro.
66894         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
66895
66896         Module malloc.
66897         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
66898         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
66899         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
66900
66901         Module realloc.
66902         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
66903         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
66904         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
66905
66906         Module strftime.
66907         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
66908         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
66909         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
66910         gl_TM_GMTOFF.
66911         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
66912
66913         Module xalloc.
66914         * m4/xalloc.m4: New file.
66915
66916         Module alloca.
66917         * m4/alloca.m4: New file.
66918
66919         Module putenv.
66920         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
66921         (jm_FUNC_PUTENV): Invoke it.
66922
66923         Module setenv.
66924         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
66925         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
66926         when invoked twice.
66927         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
66928         gt_FUNC_SETENV.
66929
66930         Module memrchr.
66931         * m4/memrchr.m4: New file.
66932
66933         Module stpcpy.
66934         * m4/stpcpy.m4: New file.
66935
66936         Module strcase.
66937         * m4/strcase.m4: New file.
66938
66939         Module strdup.
66940         * m4/strdup.m4: New file.
66941
66942         Module strnlen.
66943         * m4/strnlen.m4: New file.
66944
66945         Module strndup.
66946         * m4/strndup.m4: New file.
66947
66948         Module xstrtod.
66949         * m4/xstrtod.m4: New file.
66950
66951         Module xstrtol.
66952         * m4/xstrtol.m4: New file.
66953
66954         Module getdate.
66955         * m4/getdate.m4: New file.
66956
66957         Module unlocked-io.
66958         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
66959         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
66960         * m4/jm-glibc-io.m4n: Remove file.
66961
66962         Module long-options.
66963         * m4/long-options.m4: New file.
66964
66965         Module md5.
66966         * m4/md5.m4: New file.
66967
66968         Module sha.
66969         * m4/sha.m4: New file.
66970
66971         Module getstr.
66972         * m4/getstr.m4: New file.
66973
66974         Module getline.
66975         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
66976         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
66977         <sys/types.h>, for size_t. Use the function name gnu_getline, not
66978         simply getline. Infoke gl_PREREQ_GETLINE.
66979
66980         Module obstack.
66981         * m4/obstack.m4: New file.
66982
66983         Module hash.
66984         * m4/hash.m4: New file.
66985
66986         Module readtokens.
66987         * m4/readtokens.m4: New file.
66988
66989         Module strverscmp.
66990         * m4/strverscmp.m4: New file.
66991
66992         Module stdbool.
66993         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
66994         OSF/1.
66995
66996         Module strtoll.
66997         * m4/strtoll.m4: New file.
66998
66999         Module strtoull.
67000         * m4/strtoull.m4: New file.
67001
67002         Module strtoimax.
67003         * m4/strtoimax.m4: New file.
67004
67005         Module strtoumax.
67006         * m4/strtoumax.m4: New file.
67007
67008         Module xstrtoimax.
67009         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
67010         jm_AC_PREREQ_XSTRTOIMAX.
67011         Moved the strtol prerequisites to strtol.m4.
67012         Moved the strtoll prerequisites to strtoll.m4.
67013         Moved the strtoimax prerequisites to strtoimax.m4.
67014
67015         Module xstrtoumax.
67016         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
67017         jm_AC_PREREQ_XSTRTOUMAX.
67018         Moved the strtoul prerequisites to strtoul.m4.
67019         Moved the strtoull prerequisites to strtoull.m4.
67020         Moved the strtoumax prerequisites to strtoumax.m4.
67021
67022         Module chown.
67023         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
67024         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
67025
67026         Module dup2.
67027         * m4/dup2.m4: New file.
67028
67029         Module ftruncate.
67030         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
67031         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
67032
67033         Module getgroups.
67034         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
67035         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
67036
67037         Module gettimeofday.
67038         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
67039         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
67040         gl_PREREQ_GETTIMEOFDAY.
67041
67042         Module mkdir.
67043         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
67044         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
67045
67046         Module mkstemp.
67047         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
67048         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
67049         jm_AC_TYPE_UINTMAX_T.
67050         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
67051
67052         Module stat.
67053         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
67054         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
67055
67056         Module lstat.
67057         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
67058         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
67059
67060         Module timespec.
67061         * m4/timespec.m4 (gl_TIMESPEC): New macro.
67062         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
67063         * m4/st_mtim.m4: Indentation.
67064
67065         Module nanosleep.
67066         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
67067         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
67068         gl_PREREQ_NANOSLEEP.
67069
67070         Module regex.
67071         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
67072         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
67073         (gl_REGEX): New macro.
67074
67075         Module rename.
67076         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
67077         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
67078
67079         Module rmdir.
67080         * m4/rmdir.m4: New file.
67081
67082         Module utime.
67083         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
67084         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
67085         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
67086
67087         Module dirname.
67088         * m4/dirname.m4: New file.
67089
67090         Module getopt.
67091         * m4/getopt.m4: New file.
67092
67093         Module unistd-safer.
67094         * m4/unistd-safer.m4: New file.
67095
67096         Module fnmatch.
67097         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
67098         declaration.
67099         (gl_PREREQ_FNMATCH_EXTRA): New macro.
67100         (gl_FUNC_FNMATCH_POSIX): New macro.
67101         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
67102         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
67103         simply fnmatch.
67104
67105         Module exclude.
67106         * m4/exclude.m4: New file.
67107
67108         Module human.
67109         * m4/human.m4: New file.
67110
67111         Module acl.
67112         * m4/acl.m4: Nop.
67113
67114         Module backupfile.
67115         * m4/backupfile.m4: New file.
67116         * m4/d-ino.m4: Indentation.
67117
67118         Module fsusage.
67119         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
67120         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
67121         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
67122
67123         Module dirfd.
67124         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
67125         requirements.
67126
67127         Module euidaccess.
67128         * m4/euidaccess.m4: New file.
67129
67130         Module file-type.
67131         * m4/file-type.m4: New file.
67132
67133         Module fileblocks.
67134         * m4/fileblocks.m4: New file.
67135
67136         Module filemode.
67137         * m4/filemode.m4: New file.
67138
67139         Module isdir.
67140         * m4/isdir.m4: New file.
67141
67142         Module lchown.
67143         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
67144         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
67145
67146         Module makepath.
67147         * m4/makepath.m4: New file.
67148
67149         Module modechange.
67150         * m4/modechange.m4: New file.
67151
67152         Module mountlist.
67153         * m4/mountlist.m4: New file.
67154         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
67155         Indentation.
67156
67157         Module path-concat.
67158         * m4/path-concat.m4: New file.
67159
67160         Module pathmax.
67161         * m4/pathmax.m4: New file.
67162
67163         Module same.
67164         * m4/same.m4: New file.
67165
67166         Module save-cwd.
67167         * m4/save-cwd.m4: New file.
67168
67169         Module savedir.
67170         * m4/savedir.m4: New file.
67171
67172         Module xgetcwd.
67173         * m4/xgetcwd.m4: New file.
67174         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
67175
67176         Module xreadlink.
67177         * m4/xreadlink.m4: New file.
67178
67179         Module safe-read.
67180         * m4/safe-read.m4: New file.
67181
67182         Module safe-write.
67183         * m4/safe-write.m4: New file.
67184
67185         Module closeout.
67186         * m4/closeout.m4: New file.
67187
67188         Module stdio-safer.
67189         * m4/stdio-safer.m4: New file.
67190
67191         Module getpass.
67192         * m4/getpass.m4: New file.
67193
67194         Module getugroups.
67195         * m4/getugroups.m4: New file.
67196
67197         Module group-member.
67198         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
67199         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
67200
67201         Module idcache.
67202         * m4/idcache.m4: New file.
67203
67204         Module userspec.
67205         * m4/userspec.m4: New file.
67206
67207         Module gettime.
67208         * m4/clock_time.m4: New file.
67209         * m4/gettime.m4: New file.
67210
67211         Module settime.
67212         * m4/settime.m4: New file.
67213
67214         Module posixtm.
67215         * m4/posixtm.m4: New file.
67216
67217         Module gethostname.
67218         * m4/gethostname.m4: New file.
67219
67220         Module canon-host.
67221         * m4/canon-host.m4: New file.
67222
67223         Module gettext.
67224         * m4/codeset.m4: New file, from gettext-0.11.5.
67225         * m4/gettext.m4: New file, from gettext-0.11.5.
67226         * m4/glibc21.m4: New file, from gettext-0.11.5.
67227         * m4/iconv.m4: New file, from gettext-0.11.5.
67228         * m4/intdiv0.m4: New file, from gettext-0.11.5.
67229         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
67230         * m4/inttypes.m4: New file, from gettext-0.11.5.
67231         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
67232         * m4/isc-posix.m4: New file, from gettext-0.11.5.
67233         * m4/lcmessage.m4: New file, from gettext-0.11.5.
67234         * m4/lib-ld.m4: New file, from gettext-0.11.5.
67235         * m4/lib-link.m4: New file, from gettext-0.11.5.
67236         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
67237         * m4/progtest.m4: New file, from gettext-0.11.5.
67238         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
67239         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
67240         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
67241
67242         Module localcharset.
67243         * m4/localcharset.m4: New file.
67244
67245         Module hard-locale.
67246         * m4/hard-locale.m4: New file.
67247
67248         Module mbswidth.
67249         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
67250         onceonly macros.
67251         * m4/mbrtowc.m4: Add comment.
67252
67253         Module memcasecmp.
67254         * m4/memcasecmp.m4: New file.
67255
67256         Module memcoll.
67257         * m4/memcoll.m4: New file.
67258
67259         Module unicodeio.
67260         * m4/unicodeio.m4: New file.
67261
67262         Module rpmatch.
67263         * m4/rpmatch.m4: New file.
67264
67265         Module yesno.
67266         * m4/yesno.m4: New file.
67267
67268         Module exitfail.
67269         * m4/exitfail.m4: New file.
67270
67271         Module c-stack.
67272         * m4/c-stack.m4 (gl_C_STACK): New macro.
67273         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
67274
67275         Module error.
67276         * m4/error.m4 (gl_ERROR): New macro.
67277         (jm_PREREQ_ERROR): Use onceonly macros.
67278
67279         Module fatal.
67280         * m4/fatal.m4: New file.
67281
67282         Module getloadavg.
67283         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
67284         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
67285
67286         Module getpagesize.
67287         * m4/getpagesize.m4: New file.
67288
67289         Module getusershell.
67290         * m4/getusershell.m4: New file.
67291
67292         Module physmem.
67293         * m4/physmem.m4: New file.
67294
67295         Module posixver.
67296         * m4/posixver.m4: New file.
67297
67298         Module quotearg.
67299         * m4/quotearg.m4: New file.
67300
67301         Module quote.
67302         * m4/quote.m4: New file.
67303
67304         Module readutmp.
67305         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
67306
67307         Module sig2str.
67308         * m4/sig2str.m4: New file.
67309
67310         Other.
67311         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
67312         ulonglong.m4.
67313         * m4/intmax_t.m4: New file.
67314         * m4/d-type.m4: Indentation.
67315         * m4/jm-macros.m4: Update.
67316         * m4/prereq.m4 (jm_PREREQ): Update.
67317         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
67318         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
67319         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
67320         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
67321         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
67322         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
67323         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
67324         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
67325         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
67326         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
67327         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
67328         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
67329         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
67330         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
67331         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
67332         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
67333         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
67334         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
67335         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
67336
67337 2002-12-24  Bruno Haible  <bruno@clisp.org>
67338
67339         * MODULES.txt: Update according to m4/ changes.
67340
67341         Module gettext.
67342         * config.rpath: New file, from gettext-0.11.5.
67343
67344         * modules/*: New module descriptions.
67345         * gnulib-tool: New file.
67346         * MODULES.html.sh: New file.
67347
67348 2002-12-21  Karl Berry  <karl@gnu.org>
67349
67350         * doc/fdl.texi: update to version 1.2.
67351
67352 2002-12-19  Karl Berry  <karl@gnu.org>
67353
67354         * config/config.guess: update from prep.
67355
67356 2002-12-18  Bruno Haible  <bruno@clisp.org>
67357
67358         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
67359         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
67360
67361 2002-12-17  Bruno Haible  <bruno@clisp.org>
67362
67363         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
67364         stdlib.h, string.h.
67365
67366 2002-12-17  Bruno Haible  <bruno@clisp.org>
67367
67368         * lib/canon-host.c (strdup): Remove unused declaration.
67369
67370         * lib/fsusage.c: Include full_read.h.
67371         (get_fs_usage): Use full_read instead of safe_read.
67372
67373         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
67374
67375 2002-12-12  Karl Berry  <karl@gnu.org>
67376
67377         * config/config.guess: update from prep.
67378
67379 2002-12-11  Bruno Haible  <bruno@clisp.org>
67380
67381         * m4/setenv.m4: New file, from gettext-0.11.5.
67382
67383 2002-12-11  Bruno Haible  <bruno@clisp.org>
67384
67385         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
67386         not unsetenv().
67387         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
67388         modifications:
67389
67390         2002-12-11  Bruno Haible  <bruno@clisp.org>
67391
67392                 * setenv.c (alloca): Fall back to malloc.
67393                 (freea): New macro.
67394                 (setenv): Use freea() to free memory allocated with alloca().
67395
67396         2002-11-13  Bruno Haible  <bruno@clisp.org>
67397
67398                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
67399                 function declarations.
67400                 * unsetenv.c (unsetenv): Likewise.
67401
67402         2002-03-04  Bruno Haible  <bruno@clisp.org>
67403
67404                 Portability to AIX 4.3.3.
67405                 * unsetenv.c: New file, extracted from setenv.c.
67406                 * setenv.c: Move the unsetenv() function to unsetenv.c.
67407
67408         2001-12-20  Bruno Haible  <bruno@clisp.org>
67409
67410                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
67411                 use malloc instead. For SunOS 4.
67412
67413         2001-12-11  Bruno Haible  <bruno@clisp.org>
67414
67415                 * setenv.c: Declare alloca.
67416                 (compar_fn_t): New typedef.
67417                 (KNOWN_VALUE, STORE_VALUE): Use it.
67418
67419         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
67420         setenv.h.
67421
67422 2002-12-10  Paul Eggert  <eggert@twinsun.com>
67423
67424         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
67425         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
67426         Choose values that are less likely to collide with system fnmatch
67427         options.
67428         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
67429         defined (e.g., a pure POSIX system).
67430         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
67431         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
67432
67433 2002-12-06  Paul Eggert  <eggert@twinsun.com>
67434
67435         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
67436         a pain in practice to deal with generated m4 files.  This change
67437         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
67438
67439         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
67440         and jm-glibc-io.m4, as they are no longer a special case.
67441         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
67442         kludge and the auto-generation stuff.  Check only whether the
67443         functions are declared, not whether they exist, since older hosts
67444         that don't declare the functions can't use the optimization anyway.
67445
67446 2002-12-06  Jim Meyering  <jim@meyering.net>
67447
67448         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
67449
67450         Merge in changes from libc's misc/error.c, in preparation
67451         for the merge of gnulib's changes back into libc.
67452
67453         * lib/error.c (_): Define only if not already defined.
67454         Move definition to follow all #include directives.
67455         Include unlocked-io.h only if !_LIBC.
67456         [_LIBC]: Include <libio/libioP.h>.
67457         [USE_IN_LIBIO]: Include <libio/iolibio.h>
67458         (fflush): Tweak definition to use INTUSE.
67459         (putc): Define.
67460
67461 2002-12-05  Paul Eggert  <eggert@twinsun.com>
67462
67463         * lib/alloca.c [defined emacs]: Include "lisp.h".
67464         (xalloc_die) [defined emacs]: New macro.
67465         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
67466         [! defined emacs]: Include <xalloc.h>.
67467         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
67468         (pointer): Typedef to POINTER_TYPE *.
67469         (malloc): Remove decl; we now always use xmalloc.
67470         (alloca): Use old-style definition, since Emacs needs this.
67471         Check for arithmetic overflow when computing combined size.
67472
67473 2002-12-04  Paul Eggert  <eggert@twinsun.com>
67474
67475         Do not generate unlocked-io.h automatically, since it's easier to
67476         maintain it by hand.
67477
67478         * lib/unlocked-io.h: New file, from GNU diffutils,
67479         but with proper copyright notice and attribution.
67480         * lib/gen-uio: Remove.
67481         * lib/Makefile.am: Add copyright notice.
67482         (libfetish_a_SOURCES): Add unlocked-io.h.
67483         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
67484         (DISTCLEANFILES, io_functions): Remove macros.
67485         (EXTRA_DIST): Remove gen_uio.
67486         (unlocked-io.h): Remove rule.
67487
67488 2002-12-04  Jim Meyering  <jim@meyering.net>
67489
67490         Reflect the fact that stat.c and lstat.c are no longer generated.
67491         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
67492         (DISTCLEANFILES): Likewise.
67493         (EXTRA_DIST): Likewise.
67494         (all_local): Don't depend on stat.c or lstat.c.
67495         (stat.c, lstat.c): Remove rules.
67496         (EXTRA_DIST): Remove xstat.in.
67497
67498         * lib/xstat.in: Remove file.  Contents moved into stat.c.
67499         * lib/stat.c: New file.  Contents mostly from xstat.in.
67500         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
67501         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
67502
67503         * lib/safe-read.c: Rework so that it may serve to define safe_write,
67504         too.
67505         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
67506
67507 2002-12-03  Jim Meyering  <jim@meyering.net>
67508
67509         * lib/safe-read.c, safe-write.c: Change variable names and comments,
67510         but not semantics, to minimize the differences between these two files.
67511         (safe_read): Change comment to mention SAFE_READ_ERROR.
67512
67513         * lib/safe-read.c (IS_EINTR): Define.
67514         (safe_read): Use IS_EINTR in place of in-function cpp directives.
67515
67516 2002-12-02  Jim Meyering  <jim@meyering.net>
67517
67518         * lib/safe-read.c (EINTR): Define.
67519         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67520         (INT_MAX): Provide fallback.
67521         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
67522
67523         * lib/safe-read.h (SAFE_READ_ERROR): Define.
67524
67525 2002-12-02  Bruno Haible  <bruno@clisp.org>
67526
67527         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
67528         Define, taken from safe-read.c.
67529         (INT_MAX): Provide fallback.
67530         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
67531         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
67532
67533         * lib/safe-read.c (EINTR): Remove definition.
67534         (safe_read): Don't use EINTR if it is absent.
67535
67536 2002-12-01  Jim Meyering  <jim@meyering.net>
67537
67538         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
67539         zero.
67540         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
67541
67542 2002-11-27  Paul Eggert  <eggert@twinsun.com>
67543
67544         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
67545         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
67546         with `if (! (value < limit)) abort ();', for readability.
67547
67548 2002-11-26  Karl Berry  <karl@gnu.org>
67549
67550         * lib/strdup.c: copy from libc again, with jim's ok.
67551         * lib/.cppi-disable: re-add strdup.c
67552
67553 2002-11-25  Karl Berry  <karl@gnu.org>
67554
67555         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
67556         instead of "strtol.c".
67557
67558 2002-11-25  Karl Berry  <karl@gnu.org>
67559
67560         * config/install-sh: update from automake for variable quoting, $0 in
67561         error msgs, etc.
67562
67563         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
67564         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
67565         entry.
67566
67567 2002-11-25  Jim Meyering  <jim@meyering.net>
67568
67569         * lib/mktime.c: Sync from libc, now that it has the latest fix.
67570
67571 2002-11-24  Karl Berry  <karl@gnu.org>
67572
67573         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
67574         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
67575
67576 2002-11-24  Jim Meyering  <jim@meyering.net>
67577
67578         Update from coreutils:
67579
67580         * lib/mktime.c: Merge in changes from libc.
67581
67582         Avoid a link-time failure on some Linux systems.
67583         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
67584         (otherwise).
67585         (__mon_yday): Declare with the STATIC attribute.
67586         (__mktime_internal): Likewise.
67587         Based on a report from Greg Schafer.
67588
67589 2002-11-23  Jim Meyering  <jim@meyering.net>
67590
67591         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
67592         Use `unsigned', not `int', as type of index.
67593
67594         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
67595
67596         * lib/fsusage.c: Remove unneeded parentheses around operands of
67597         `defined'.
67598
67599 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67600
67601         * lib/quotearg.h: Allow multiple inclusion by surrounding with
67602         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
67603         so that we can be included first.
67604         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
67605         * lib/quotearg.c: Include quotearg.h immediately after config.h.
67606         No need to include stddef.h or sys/types.h any more.
67607         Surround local include files with "", not "<>".
67608         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
67609         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
67610         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
67611         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
67612         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
67613         (ISPRINT): Remove; no longer needed now that we assume C89.
67614
67615         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
67616         Preserve errno.
67617
67618         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
67619         quotearg_char): Use SIZE_MAX rather than
67620         (size_t) -1 when we are talking about "infinity".
67621
67622         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
67623
67624 2002-11-22  Paul Eggert  <eggert@twinsun.com>
67625
67626         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
67627         hint that one should use `if (! x) abort ();' rather than `assert
67628         (x);', and anyway it's one less thing to worry about configuring.
67629         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
67630         hash_rehash, hash_insert): Use abort rather than assert.
67631
67632 2002-11-22  Bruno Haible  <bruno@clisp.org>
67633
67634         * lib/safe-read.h: Assume C89. Add comments.
67635         (safe_read): Change return type to size_t.
67636         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
67637         byte counts > SSIZE_MAX correctly.
67638         * lib/safe-write.h: New file.
67639         * lib/safe-write.c: New file.
67640         * lib/full-read.h: New file.
67641         * lib/full-read.c: New file.
67642         * lib/full-write.h: Assume C89. Add comments.
67643         * lib/full-write.c: Include safe-write.h.
67644         (full_write): Rewritten to use safe_write.
67645         Suggested by Jim Meyering and Paul Eggert.
67646
67647 2002-11-21  Jim Meyering  <jim@meyering.net>
67648
67649         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
67650
67651         Merge in changes from the coreutils.
67652
67653         2002-09-25  Paul Eggert  <eggert@twinsun.com>
67654         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
67655         <stdint.h>.
67656         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
67657         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
67658         int.  Work more efficiently if X is the same width as uintmax_t.
67659         Do not compare X to -1, to avoid bogus compiler warning.
67660         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
67661         Don't assume that f_frsize and f_bsize are the same type.
67662
67663         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
67664         warning on FreeBSD.
67665
67666         * lib/makepath.c (make_path): Restore umask *before* creating the final
67667         component.
67668         (make_path): Minor reformatting.
67669
67670         * lib/xmalloc.c: Adjust to work with new autoconf macros,
67671         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
67672         HAVE_MALLOC/HAVE_REALLOC.
67673
67674         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
67675         dummy ones.  At least on GNU/Linux systems, `auto' means something
67676         else.
67677         From Michael Stone.
67678
67679 2002-11-21  Bruno Haible  <bruno@clisp.org>
67680
67681         Remove case insensitive option matching.
67682         * lib/argmatch.h (argcasematch): Remove declaration.
67683         (ARGCASEMATCH): Remove macro.
67684         (__xargmatch_internal): Remove case_sensitive argument.
67685         (XARGMATCH): Update.
67686         (XARGCASEMATCH): Remove macro.
67687         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
67688         case_sensitive argument.
67689         (argcasematch): Remove function.
67690         (__xargmatch_internal): Remove case_sensitive argument.
67691         (main): Use XARGMATCH instead of XARGCASEMATCH.
67692
67693         * lib/xmalloc.c: Change compile-time error message. Add comment about
67694         required autoconf version.
67695
67696 2002-11-20  Paul Eggert  <eggert@twinsun.com>
67697
67698         Merge argmatch cleanups from Bison.  Assume C89.
67699
67700         * lib/argmatch.c: Include config.h here, not in argmatch.h.
67701         Include stdlib.h, for EXIT_FAILURE.
67702         Always include <string.h>, since we assume C89.
67703         (EXIT_FAILURE): Remove pre-C89 bug workaround.
67704         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
67705         Include <stddef.h> instead, since it's all we need for size_t.
67706         (PARAMS): Remove.  All uses removed.
67707         (ARRAY_CARDINALITY): Do not bother to #undef.
67708         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
67709         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67710         Remove unnecessary parentheses.
67711         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67712         Insert necessary parentheses.
67713         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
67714         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
67715
67716 2002-11-19  Bruno Haible  <bruno@clisp.org>
67717
67718         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
67719         * lib/mbswidth.h: Include <stddef.h>, for size_t.
67720
67721         * lib/mbswidth.h (PARAMS): Remove macro.
67722         (mbswidth, mbsnwidth): Use ANSI C function declarations.
67723         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
67724
67725         * lib/gcd.h (PARAMS): Remove macro.
67726         (gcd): Use ANSI C function declarations.
67727         * lib/gcd.c (gcd): Likewise.
67728
67729 2002-11-15  Bruno Haible  <bruno@clisp.org>
67730
67731         * lib/strcspn.c: Include <stddef.h>.
67732         (strcspn): Use ANSI C function declaration. Change return type to
67733         size_t. Use NULL.
67734         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
67735         (strpbrk): Use NULL.
67736         * lib/strpbrk.h (PARAMS): Remove macro.
67737         (strpbrk): Use ANSI C function declaration.
67738         * lib/strstr.c: Don't include <sys/types.h>.
67739         * lib/strstr.h (PARAMS): Remove macro.
67740         (strstr): Use ANSI C function declarations.
67741
67742 2002-11-14  Karl Berry  <karl@gnu.org>
67743
67744         * config/mkinstalldirs: `do' on separate line, instead of
67745         `for var; do'.
67746
67747 2002-11-06  Bruno Haible  <bruno@clisp.org>
67748
67749         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
67750         * lib/gcd.c (gcd): Likewise.
67751
67752 2002-11-05  Bruno Haible  <bruno@clisp.org>
67753
67754         * lib/gcd.h: New file, from gettext-0.11.5.
67755         * lib/gcd.c: New file, from gettext-0.11.5.
67756
67757 2002-11-05  Bruno Haible  <bruno@clisp.org>
67758
67759         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67760         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67761         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67762         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67763
67764         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
67765         <libintl.h>.
67766         * lib/makepath.c: Include gettext.h instead of <locale.h> and
67767         <libintl.h>.
67768
67769         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
67770         * lib/human.c: Include gettext.h instead of <libintl.h>.
67771         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
67772         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
67773         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
67774         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
67775         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
67776         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
67777         (textdomain): Remove definition.
67778         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
67779
67780         * lib/long-options.c: Remove include of <libintl.h> and definition of
67781         _.
67782         * lib/same.c: Remove include of <libintl.h> and definition of _.
67783
67784 2002-11-04  Owen Taylor  <otaylor@redhat.com>
67785
67786         * lib/config.charset: A few additions for Solaris.
67787
67788 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67789
67790         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
67791         * lib/localcharset.c (locale_charset): Declare as extern "C".
67792
67793 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67794
67795         * lib/config.charset: msdos in uk_UA uses CP1125.
67796
67797 2002-11-04  Bruno Haible  <bruno@clisp.org>
67798
67799         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
67800         * lib/strcase.h: New file, from GNU gettext-0.11.5.
67801         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
67802         * lib/strstr.h: New file, from GNU gettext-0.11.5.
67803         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
67804
67805 2002-11-04  Bruno Haible  <bruno@clisp.org>
67806
67807         * lib/localcharset.c (locale_charset): Don't return an empty string.
67808
67809 2002-11-04  Bruno Haible  <bruno@clisp.org>
67810
67811         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
67812         aliases.
67813
67814 2002-11-04  Bruno Haible  <bruno@clisp.org>
67815
67816         * lib/config.charset: Update for newest glibc. Add canonical names
67817         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
67818
67819 2002-11-04  Bruno Haible  <bruno@clisp.org>
67820
67821         * lib/config.charset: Add support for NetBSD.
67822
67823 2002-11-04  Bruno Haible  <bruno@clisp.org>
67824
67825         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
67826
67827 2002-11-01  Bruno Haible  <bruno@clisp.org>
67828
67829         * configure.in: Add AC_CONFIG_AUX_DIR call.
67830         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
67831         test/Makefile.
67832         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
67833
67834 2002-09-28  Karl Berry  <karl@gnu.org>
67835
67836         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
67837         installed automake until the next release, since changes have been
67838         made.
67839
67840 2002-09-25  Karl Berry  <karl@gnu.org>
67841
67842         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
67843         * lib/getopt*: copy from libc/posix.
67844         * lib/gettext.h: copy from gettext.
67845         * lib/.cppi-disable: add strdup.c, gettext.h.
67846
67847 2002-09-25  Karl Berry  <karl@gnu.org>
67848
67849         * config/srclist.txt: enable gettext.h check.
67850         * config/config.{guess,sub}: update from prep.
67851         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
67852                 from automake 1.6.3.
67853         See srclist*.
67854
67855 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
67856
67857         * regex.c (PATFETCH): Remove the translating fetch.
67858         (PATFETCH_RAW): Rename to PATFETCH.
67859         (set_image_of_range): New fun.
67860         (SET_RANGE_TABLE_WORK_AREA): Use it.
67861         (regex_compile): Don't translate the pattern chars so eagerly.
67862         Only do it when inserting an `exactn' bytecode or when handling
67863         a char-range.
67864         (mutually_exclusive_p): Avoid empty statement.
67865
67866 2002-07-06  Jim Meyering  <meyering@lucent.com>
67867
67868         * m4/README: Don't mention Makefile.am.in.
67869         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
67870
67871 2002-07-01  Jim Meyering  <meyering@lucent.com>
67872
67873         * lib/c-stack.c: Include sys/time.h.
67874         From Volker Borchert.
67875
67876 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67877
67878         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
67879
67880 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67881
67882         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
67883         New macro.  Use it uniformly instead of
67884         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
67885         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
67886         reported by Vin Shelton.
67887
67888 2002-06-22  Paul Eggert  <eggert@twinsun.com>
67889
67890         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
67891         Do not assume SA_SIGINFO behavior.
67892         Bug reported by Jim Meyering on NetBSD 1.5.2.
67893
67894 2002-06-22  Jim Meyering  <meyering@lucent.com>
67895
67896         * m4/c-stack.m4: New file, from diffutils-2.8.2.
67897         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
67898
67899         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
67900         now that configure.ac uses AC_GNU_SOURCE.
67901         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
67902         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
67903
67904         Update to latest tools.  Suggestions from Paul Eggert.
67905         * m4/stdbool.m4: New file, from diffutils-2.8.2.
67906         * m4/gnu-source.m4: Update from diffutils-2.8.2.
67907         * m4/fnmatch.m4: Likewise.
67908         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
67909         to AC_HEADER_STDBOOL
67910
67911 2002-06-22  Jim Meyering  <meyering@lucent.com>
67912
67913         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
67914         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
67915
67916 2002-06-22  Jim Meyering  <meyering@lucent.com>
67917
67918         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
67919
67920         * lib/exitfail.c, exitfail.h: Likewise.
67921         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
67922
67923         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
67924         of fnmatch.h.
67925         (EXTRA_DIST): Add fnmatch_loop.c.
67926         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
67927
67928         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
67929         * lib/fnmatch.c: Update from diffutils-2.8.2.
67930         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
67931         * lib/fnmatch.h: Remove file.
67932
67933 2002-06-21  Jim Meyering  <meyering@lucent.com>
67934
67935         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
67936         * m4/mbrtowc.m4: Likewise.
67937
67938         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
67939         * m4/mbswidth.m4: Reflect name change:
67940         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
67941         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67942
67943         * m4/lib-link.m4: Update from gettext-0.11.2.
67944         * m4/gettext.m4: Likewise.
67945
67946         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
67947         From Alfred M. Szmidt.
67948
67949 2002-06-18  Paul Eggert  <eggert@twinsun.com>
67950
67951         * lib/file-type.h: Report an error if neither S_ISREG nor
67952         S_IFREG is defined, instead of using a test specific to glibc
67953         2.2.  This should be safe, since POSIX requires S_ISREG and
67954         Unix Version 7 had S_IFREG.  We don't need to check for
67955         <sys/types.h> since we don't use any symbols that it defines.
67956
67957 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
67958
67959         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
67960         $@-t, so that each temporary file name is unique and valid in the first
67961         8 characters, for operation under DOS.
67962
67963 2002-06-15  Paul Eggert  <eggert@twinsun.com>
67964
67965         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
67966
67967 2002-06-15  Jim Meyering  <meyering@lucent.com>
67968
67969         Work even with DJGPP 2.03, which lacks support for symlinks.
67970         From Richard Dawe.
67971         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
67972         is defined.
67973         * lib/lchown.c (S_ISLNK): Likewise.
67974
67975 2002-06-15  Jim Meyering  <meyering@lucent.com>
67976
67977         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
67978         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
67979         have been included before this file.
67980
67981 2002-06-14  Jim Meyering  <meyering@lucent.com>
67982
67983         * lib/file-type.h: Use the version from diffutils-2.8.2.
67984         * lib/file-type.c: Likewise.
67985
67986 2002-06-07  Jim Meyering  <meyering@lucent.com>
67987
67988         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
67989         They're needed at least for NetBSD 1.5.2.
67990         ($statxfs_includes): Include those same headers.
67991         ($statxfs_includes): Include sys/vfs.h if available.
67992         ($statxfs_includes): Likewise for sys/statvfs.h.
67993         Check for the following members in both structs statfs and statvfs:
67994         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
67995
67996 2002-06-01  Jim Meyering  <meyering@lucent.com>
67997
67998         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
67999         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
68000
68001 2002-05-28  Jim Meyering  <meyering@lucent.com>
68002
68003         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
68004         Reported by Volker Borchert.
68005
68006 2002-05-27  Jim Meyering  <meyering@lucent.com>
68007
68008         Fix a problem seen only on nonconforming systems whereby ls.c's
68009         use of localtime, and then of gettimeofday would cause trouble:
68010         the localtime call used to initialize rpl_gettimeofday's save
68011         mechanism would clobber ls's current local time information so
68012         that in any long listing the first file would always be listed
68013         with date 1970-01-01.  Analysis by Volker Borchert.
68014
68015         * lib/gettimeofday.c (localtime): Undefine.
68016         (rpl_localtime): New function.
68017
68018 2002-05-27  Jim Meyering  <meyering@lucent.com>
68019
68020         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
68021         localtime.
68022
68023         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
68024         use the replacement function; it wouldn't resolve at link time.
68025         Reported by Volker Borchert.
68026
68027 2002-05-22  Jim Meyering  <meyering@lucent.com>
68028
68029         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
68030         file-type.h.
68031         * lib/file-type.h: New file.
68032         * lib/file-type.c (file_type): New file/function.  Extracted from
68033         diffutils.
68034
68035 2002-04-30  Jim Meyering  <meyering@lucent.com>
68036
68037         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
68038
68039 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68040
68041         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
68042
68043 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68044
68045         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
68046         Do not check for alloca.h (no longer used) or stdbool.h (was never
68047         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
68048
68049 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68050
68051         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
68052
68053 2002-04-29  Jim Meyering  <meyering@lucent.com>
68054
68055         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
68056         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
68057         Use AC_FUNC_STRNLEN here instead.
68058
68059         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
68060         With autoconf-2.53a, it's part of AC_PROG_CC.
68061
68062 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68063
68064         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
68065         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
68066
68067 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68068
68069         * lib/sig2str.h, lib/sig2str.c: New files.
68070         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
68071
68072 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68073
68074         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
68075         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
68076         of 127, since 64 is the largest conceivable number for ancient
68077         nonstandard hosts.
68078         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
68079
68080 2002-04-28  Jim Meyering  <meyering@lucent.com>
68081
68082         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
68083
68084 2002-04-24  Jim Meyering  <meyering@lucent.com>
68085
68086         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
68087         (jm_PREREQ): Use it.
68088
68089         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
68090         mach/mach.h fcntl.h.
68091         Check for this function: setlocale.
68092
68093 2002-04-24  Jim Meyering  <meyering@lucent.com>
68094
68095         * lib/gettext.h: New file, from Gettext.
68096         * lib/Makefile.am (INCLUDES): Remove -I../intl.
68097         (libfetish_a_SOURCES): Add gettext.h.
68098
68099 2002-04-16  Jim Meyering  <meyering@lucent.com>
68100
68101         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
68102         ut_pid, ut_id, ut_exit.
68103
68104 2002-04-16  Jim Meyering  <meyering@lucent.com>
68105
68106         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
68107         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
68108         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
68109
68110 2002-04-12  Jim Meyering  <meyering@lucent.com>
68111
68112         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
68113         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
68114         existence of the getmntinfo function.  Needed for Darwin 5.3.
68115
68116         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
68117         This is necessary at least on Darwin 5.3.
68118
68119         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
68120         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
68121         strnlen.o in the library, and that makes some versions of ranlib
68122         object.
68123
68124 2002-04-12  Jim Meyering  <meyering@lucent.com>
68125
68126         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
68127
68128 2002-04-09  Jim Meyering  <meyering@lucent.com>
68129
68130         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
68131         to be more precise.  Rather than saying we're checking whether the
68132         function `works', say what we're testing.
68133         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
68134         Reported by Bruno Haible.
68135
68136 2002-03-10  Jim Meyering  <meyering@lucent.com>
68137
68138         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
68139         Suggestion from Santiago Vila.
68140
68141 2002-03-08  Jim Meyering  <meyering@lucent.com>
68142
68143         * lib/rename.c: Mention that this wrapper is needed also on
68144         mips-dec-ultrix4.4 systems.
68145
68146 2002-03-02  Jim Meyering  <meyering@lucent.com>
68147
68148         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
68149         not HAVE_CLOCK_SETTIME.
68150
68151 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68152
68153         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
68154         Check for clock_settime.
68155
68156 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68157
68158         * lib/nanosleep.h: Rename to....
68159         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
68160
68161         * lib/gettime.c: New file.
68162         * lib/settime.c: New file.
68163         * lib/stime.c: Remove.
68164
68165         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
68166         timespec.h.  Remove nanosleep.h.
68167
68168 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68169
68170         * m4/acl.m4: New file.
68171         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
68172         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
68173
68174 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68175
68176         * lib/acl.c, lib/acl.h: New files.
68177         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
68178
68179 2002-02-24  Jim Meyering  <meyering@lucent.com>
68180
68181         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
68182         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
68183         cause trouble.  Reported by Nelson Beebe.
68184
68185 2002-02-23  Paul Eggert  <eggert@twinsun.com>
68186
68187         * lib/path-concat.c (xpath_concat): Reorder code to pacify
68188         compilers that don't know that xalloc_die never returns.
68189
68190 2002-02-20  Jim Meyering  <meyering@lucent.com>
68191
68192         * lib/getdate.c: Regenerate using bison-1.33.
68193
68194 2002-02-17  Jim Meyering  <meyering@lucent.com>
68195
68196         * config/config.guess (main): Don't use `head -1'; it's no longer
68197         portable. Use `sed 1q' instead.
68198
68199 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
68200
68201         * m4/codeset.m4: Upgrade to gettext-0.11.
68202         * m4/gettext.m4: Upgrade to gettext-0.11.
68203         * m4/glibc21.m4: Upgrade to gettext-0.11.
68204         * m4/iconv.m4: Upgrade to gettext-0.11.
68205         * m4/isc-posix.m4: Upgrade to gettext-0.11.
68206         * m4/lcmessage.m4: Upgrade to gettext-0.11.
68207         * m4/lib-ld.m4: New file, from gettext-0.11.
68208         * m4/lib-link.m4: New file, from gettext-0.11.
68209         * m4/lib-prefix.m4: New file, from gettext-0.11.
68210         * m4/progtest.m4: Upgrade to gettext-0.11.
68211
68212 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68213
68214         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
68215         (jm_PREREQ): Use it.
68216
68217 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68218
68219         * lib/posixver.c, lib/posixver.h: New files.
68220         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68221
68222 2002-02-02  Paul Eggert  <eggert@twinsun.com>
68223             Bruno Haible  <bruno@clisp.org>
68224
68225         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
68226         (fwrite_success_callback): New declaration.
68227         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
68228         print_unicode_char. Call failure callback instead of error.
68229         (fwrite_success_callback): New function.
68230         (exit_failure_callback): New function.
68231         (fallback_failure_callback): New function.
68232         (print_unicode_char): Call unicode_to_mb.
68233
68234 2002-01-26  Jim Meyering  <meyering@lucent.com>
68235
68236         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
68237         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
68238
68239 2002-01-26  Jim Meyering  <meyering@lucent.com>
68240
68241         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
68242
68243 2002-01-22  Paul Eggert  <eggert@twinsun.com>
68244
68245         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
68246
68247 2002-01-22  Jim Meyering  <meyering@lucent.com>
68248
68249         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
68250         Otherwise, some versions of automake would omit the rule that makes
68251         Makefile from Makefile.in.
68252
68253 2002-01-21  Paul Eggert  <eggert@twinsun.com>
68254
68255         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
68256         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68257         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
68258         (memcoll): Set errno to zero if there is no error.
68259
68260         * lib/quotearg.c (quotearg_buffer_restyled):
68261         Fix bug with quoting buffers containing NUL when backslashing escapes.
68262         This bug was exposed by the other changes in this patch.
68263         (quotearg_n_options): New arg ARGSIZE.
68264         All callers changed.
68265         (quoting_options_from_style): New function.
68266         (quotearg_n_style): Use it.
68267         (quotearg_n_style_mem): New function.
68268
68269         * lib/quotearg.h (quotearg_n_style_mem): New function.
68270
68271 2002-01-19  Jim Meyering  <meyering@lucent.com>
68272
68273         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
68274         Remove useless quotes: DF_PROG="df".
68275         * m4/strnlen.m4: New file.
68276
68277 2002-01-16  Paul Eggert  <eggert@twinsun.com>
68278
68279         * lib/backupfile.c (ISDIGIT): Comment fix.
68280         * lib/getdate.y (ISDIGIT): Likewise.
68281         * lib/posixtm.c (ISDIGIT, year): Likewise.
68282         * lib/strverscmp.c (ISDIGIT): Likewise.
68283         * lib/userspec.c (ISDIGIT): Likewise.
68284
68285 2002-01-16  Jim Meyering  <meyering@lucent.com>
68286
68287         * lib/getdate.y: Add three semicolons, each just before a closing
68288         brace. Bison (as of version 1.31) no longer papers over that mistake.
68289
68290 2002-01-05  Jim Meyering  <meyering@lucent.com>
68291
68292         * lib/version-etc.c (version_etc_copyright): Update copyright year.
68293
68294 2001-12-19  Paul Eggert  <eggert@twinsun.com>
68295
68296         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
68297         not silently exit merely because the output buffer happens to
68298         have nothing pending.
68299
68300 2001-12-18  Paul Eggert  <eggert@twinsun.com>
68301
68302         See the big note in ../ChangeLog.
68303         * lib/human.c (suffixes): Prefer K to k for 1024.
68304         (generate_suffix_backwards): New function.
68305         (human_readable_inexact): Use it.
68306         * lib/xstrtol.c (__xstrtol): If there is no number but there
68307         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
68308         Accept 'K' as well as 'k'.
68309
68310 2001-12-15  Jim Meyering  <meyering@lucent.com>
68311
68312         * lib/regex.h (__restrict_arr): Update from libc.
68313
68314         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
68315         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
68316         (STREQ): Define.
68317
68318 2001-12-14  Jim Meyering  <meyering@lucent.com>
68319
68320         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
68321         Suggestion from Bruno Haible.
68322
68323 2001-12-10  Jim Meyering  <meyering@lucent.com>
68324
68325         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
68326         xrealloc, Instead, include "xalloc.h".
68327         (initbuffer): Don't cast xmalloc return value to char*.
68328         (readline): Reword comment.
68329         Don't cast xrealloc return value to char*
68330         Return NULL, not 0.
68331
68332 2001-12-09  Jim Meyering  <meyering@lucent.com>
68333
68334         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
68335         about `signed and unsigned type in conditional expression'.
68336         * lib/posixtm.c (posix_time_parse): Likewise.
68337
68338         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
68339
68340         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
68341         to avoid a pedantic warning.
68342
68343         * lib/getstr.c: Don't include assert.h.
68344         (getstr): Remove warning-evoking assertions.
68345         Return -1 if offset parameter is out of bounds.
68346         Change the type of a local from int to size_t.
68347
68348         * lib/strftime.c (my_strftime_localtime_r): Include this function
68349         definition in the `#if ! HAVE_TM_GMTOFF' block.
68350
68351         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
68352         Include xalloc.h instead.
68353
68354 2001-12-02  Jim Meyering  <meyering@lucent.com>
68355
68356         * lib/tempname.c: Don't declare getenv, thus reverting the change of
68357         2001-11-18.  It's no longer necessary, now that stdlib.h is always
68358         included.
68359
68360         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
68361         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
68362
68363 2001-11-30  Akim Demaille  <akim@epita.fr>
68364
68365         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
68366         before being defined.
68367
68368 2001-11-27  Paul Eggert  <eggert@twinsun.com>
68369
68370         * lib/quotearg.h (quotearg_n, quotearg_n_style):
68371         First arg is int, not unsigned.
68372         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
68373         (SIZE_MAX, UINT_MAX): New macros.
68374         (quotearg_n_options): Abort if N is negative.
68375         Avoid overflow check on hosts where size_t is 64 bits and int
68376         is 32 bits, as overflow is impossible there.
68377         Fix off-by-one typo that caused unnecessary reallocation.
68378
68379 2001-11-27  Jim Meyering  <meyering@lucent.com>
68380
68381         * lib/tempname.c: Merge with version from libc.
68382         * lib/regex.c: Likewise.
68383
68384         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
68385         systems for which STDC_HEADERS is 0, it was not included, resulting in
68386         a warning about an integer-to-pointer conversion problem with getenv.
68387         Reported by Volker Borchert.
68388
68389 2001-11-26  Jim Meyering  <meyering@lucent.com>
68390
68391         * lib/gtod.h: Remove file.
68392         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
68393         * lib/gettimeofday.c: Don't include gtod.h.
68394         (GTOD_init): Remove function.
68395         (rpl_gettimeofday): Do its job here instead, rather than aborting.
68396         Suggestion from Volker Borchert.
68397
68398 2001-11-23  Jim Meyering  <meyering@lucent.com>
68399
68400         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
68401         it.
68402         * lib/hash.c (struct hash_table): Define it here instead.
68403
68404 2001-11-22  Jim Meyering  <meyering@lucent.com>
68405
68406         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
68407
68408 2001-11-20  Jim Meyering  <meyering@lucent.com>
68409
68410         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
68411         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
68412
68413 2001-11-19  Jim Meyering  <meyering@lucent.com>
68414
68415         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
68416         directory.  Use "conftestXXXXXX" as the template.
68417         Suggestion from Paul Eggert.
68418
68419         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
68420         immediately, so the test doesn't mistakenly hit the max-open-files
68421         limit.
68422
68423 2001-11-18  Paul Eggert  <eggert@twinsun.com>
68424
68425         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
68426         (TEMPORARIES): New macro.
68427         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
68428         removes an artificial limitation (e.g. HP-UX 10.20, where
68429         TMP_MAX is 17576).
68430
68431 2001-11-18  Jim Meyering  <meyering@lucent.com>
68432
68433         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
68434
68435 2001-11-18  Jim Meyering  <meyering@lucent.com>
68436
68437         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
68438         on SunOS 4.
68439
68440         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
68441         files will be created before anything else.
68442
68443 2001-11-17  Paul Eggert  <eggert@twinsun.com>
68444
68445         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
68446         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
68447
68448 2001-11-17  Jim Meyering  <meyering@lucent.com>
68449
68450         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
68451         Prompted by a report from Bob Proulx.
68452
68453         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
68454         Instead, require UTILS_FUNC_MKSTEMP.
68455
68456 2001-11-17  Jim Meyering  <meyering@lucent.com>
68457
68458         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
68459         Now, that's done as part of AC_FUNC_STRTOD.
68460
68461 2001-11-17  Jim Meyering  <meyering@lucent.com>
68462
68463         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
68464         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
68465         rather than group writable.  Patch by Juan F. Codagnone.
68466
68467         * lib/readtokens.c: Remove explicit declarations of xmalloc and
68468         xrealloc, Instead, include "xalloc.h".
68469
68470         * lib/mountlist.c: Include unlocked-io.h after all system headers.
68471         Remove explicit declarations of xmalloc, xrealloc,
68472         and xstrdup.  Instead, include "xalloc.h".
68473
68474         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
68475         unlocked-io.h.
68476         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
68477         Likewise.
68478         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
68479
68480         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
68481         Reported by Padraig Brady.
68482
68483         * lib/mkstemp.c: #undef mkstemp.
68484         Include config.h.
68485         (rpl_mkstemp): Rename from mkstemp.
68486         Protoize.
68487
68488 2001-11-16  Jim Meyering  <meyering@lucent.com>
68489
68490         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
68491         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
68492         determine the amount of total physical memory, use pstat_getstatic.
68493         HPUX-11 doesn't define _SC_PHYS_PAGES.
68494         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
68495         If sysconf couldn't be used to determine the amount of available
68496         physical memory, use both pstat_getstatic and pstat_getdynamic.
68497         Based on a patch from Bob Proulx.
68498
68499 2001-11-10  Jim Meyering  <meyering@lucent.com>
68500
68501         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
68502         (jm_PREREQ): Use it.
68503
68504 2001-11-09  Jim Meyering  <meyering@lucent.com>
68505
68506         * m4/jm-macros.m4: Require autoconf-2.52f.
68507         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
68508         Use these AC_-prefixed names, not the AM_-prefixed ones.
68509
68510         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
68511
68512 2001-11-05  Jim Meyering  <meyering@lucent.com>
68513
68514         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
68515
68516 2001-11-04  Jim Meyering  <meyering@lucent.com>
68517
68518         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
68519         $DEFS.
68520
68521 2001-11-03  Jim Meyering  <meyering@lucent.com>
68522
68523         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
68524         of AC_DEFUN.
68525
68526         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
68527         know the name of the variable in the macro definition.
68528
68529 2001-11-03  Jim Meyering  <meyering@lucent.com>
68530
68531         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
68532         in argmatch_to_argument call.
68533
68534         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
68535         argument.
68536
68537         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
68538         e.g., a fault due to an attempt to free a NULL pointer.
68539
68540 2001-11-01  Jim Meyering  <meyering@lucent.com>
68541
68542         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
68543         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
68544
68545 2001-11-01  Jim Meyering  <meyering@lucent.com>
68546
68547         * lib/dirfd.c, lib/dirfd.h: New files.
68548         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
68549
68550         * lib/hash.c (hash_print) [TESTING]: Clean up.
68551
68552 2001-10-22  Paul Eggert  <eggert@twinsun.com>
68553
68554         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
68555         to avoid a warning if -Wall.
68556
68557 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
68558
68559         * README: New file
68560         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
68561         (per RMS's instructions, this is now the canonical source)
68562         * lgpl/, gpl/: New directories.
68563
68564 2001-10-21  Paul Eggert  <eggert@twinsun.com>
68565
68566         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
68567
68568 2001-10-21  Jim Meyering  <meyering@lucent.com>
68569
68570         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
68571         this code would end up calling gettext even in packages built
68572         with --disable-nls.
68573         * lib/getopt.c (_): Likewise.
68574         * lib/regex.c (_): Likewise.
68575
68576 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68577
68578         * m4/error.m4 (jm_PREREQ_ERROR):
68579         Do not invoke AC_CHECK_FUNCS with strerror_r, as
68580         AC_FUNC_STRERROR_R does that.
68581         Check for strerror declaration.
68582
68583         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
68584         are supposed to have them these days.
68585         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
68586         Merge changes from latest Autoconf CVS.
68587         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
68588         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
68589         POSIX decided to standardize on the int flavor of strerror_r.
68590
68591 2001-10-20  Paul Eggert  <eggert@twinsun.com>
68592
68593         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
68594         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
68595         Use strerror_r that is only a macro, even if it is not a function.
68596         (strerror): Check for HAVE_DECL_STRERROR before declaring.
68597         (private_strerror): Use prototypes, not old-style function definition.
68598         (print_errno_message): New function.
68599         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
68600         char*-flavored one.
68601         (error_tail, error, error_at_line): Use it.
68602
68603 2001-10-11  Jim Meyering  <meyering@lucent.com>
68604
68605         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
68606         and quote_n (1, ... to avoid clobbering a buffer.
68607
68608 2001-10-05  Jim Meyering  <meyering@lucent.com>
68609
68610         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
68611         hash-pjw.h.
68612         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
68613         * lib/hash-pjw.h: New file.
68614
68615 2001-09-30  Jim Meyering  <meyering@lucent.com>
68616
68617         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
68618         `struct fsstat' has the `f_fstypename' member.
68619         Use that to define FS_TYPE, which is now used to make
68620         the getfsstat link test tighter.
68621
68622 2001-09-30  Jim Meyering  <meyering@lucent.com>
68623
68624         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
68625         Include <sys/ucred.h>, for Apple Darwin.
68626         Include sys/mount.h and sys/fs_types.h only if available.
68627         (FS_TYPE): Define.
68628         (read_filesystem_list): Use FS_TYPE.
68629
68630 2001-09-29  Paul Eggert  <eggert@twinsun.com>
68631
68632         * lib/exclude.c (excluded_filename): 0 -> false, since it's
68633         a boolean context.
68634
68635 2001-09-29  Jim Meyering  <meyering@lucent.com>
68636
68637         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68638         [one-argument getmntent function]): Include stdio.h before mntent.h.
68639         SunOS 4.1.x needs it for the declaration of `FILE'.
68640         Patch by Volker Borchert.
68641
68642         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68643         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
68644         sys/fs_types.h, and make the link-test for getfsstat guard #include
68645         directives with appropriate #if HAVE_*_H tests so that we can
68646         detect getfsstat on Apple Darwin1.3.7 systems.
68647         Reported by Nelson Beebe.
68648         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
68649
68650 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68651
68652         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68653         #defines strtoimax.  Also treat the other strto* functions
68654         like strtoimax.
68655
68656         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68657         Check for strtoul and strtoumax,
68658         as those declarations are made even in the signed case.
68659         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
68660         Likewise, for strtol and strtoimax.
68661
68662 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68663
68664         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68665         #defines strtoimax.  Also treat the other strto* functions
68666         like strtoimax.
68667
68668         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
68669         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
68670         (strtoimax, strtoumax): Do not declare if already defined as a macro.
68671
68672 2001-09-26  Jim Meyering  <meyering@lucent.com>
68673
68674         Most macros in unlocked-io.h had the wrong number of arguments.
68675         * lib/gen-uio: New script.
68676         (USE_UNLOCKED_IO): Define to 1 if not already defined.
68677         * lib/unlocked-io.hin: Remove file.
68678         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
68679         rather than trying to embed it here.
68680         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
68681         Reported by Padraig Brady.
68682
68683 2001-09-25  Volker Borchert  <bt@teknon.de>
68684
68685         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
68686         `result'.
68687
68688 2001-09-24  Jim Meyering  <meyering@lucent.com>
68689
68690         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
68691
68692 2001-09-23  Jim Meyering  <meyering@lucent.com>
68693
68694         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
68695         instead of the mere test for existence of mntent.h.  The latter
68696         would get a false-positive on AIX 3.4 systems.
68697         In the outer getmntent if-block, don't die if neither of the getmntent
68698         tests succeeds.  Instead, just fall through and continue with the
68699         remaining tests.
68700
68701 2001-09-23  Jim Meyering  <meyering@lucent.com>
68702
68703         * lib/mountlist.c: Remove useless parentheses in #if directives.
68704         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
68705         the deprecated MOUNTED symbol is no longer defined in mntent.h.
68706
68707 2001-09-22  Jim Meyering  <meyering@lucent.com>
68708
68709         * m4/gettext.m4: New file.  From gettext.
68710         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
68711         * m4/progtest.m4: Likewise
68712         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
68713         * m4/glibc21.m4: Likewise.
68714
68715         * m4/libintl.m4: Remove.  No longer used.
68716
68717 2001-09-22  Jim Meyering  <meyering@lucent.com>
68718
68719         * lib/localcharset.c: Update from latest gettext.
68720         * lib/config.charset: Likewise.
68721
68722 2001-09-20  Jim Meyering  <meyering@lucent.com>
68723
68724         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
68725         strtoimax.
68726         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
68727         strtoumax.
68728
68729 2001-09-20  Jim Meyering  <meyering@lucent.com>
68730
68731         * lib/xstrtol.c (strtoimax): Guard declaration with
68732         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
68733         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
68734         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
68735         (strtoumax): Likewise, for completeness (it wasn't necessary).
68736
68737 2001-09-17  Paul Eggert  <eggert@twinsun.com>
68738
68739         * lib/strtoimax.c (HAVE_LONG_LONG):
68740         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
68741         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
68742         to work around bug in IBM C compiler.
68743
68744 2001-09-17  Jim Meyering  <meyering@lucent.com>
68745
68746         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
68747         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
68748         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
68749         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
68750         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
68751         whenever the right hand side need not be expanded by the shell.
68752
68753 2001-09-16  Paul Eggert  <eggert@twinsun.com>
68754
68755         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
68756         library.  It's not correct, as some older glibcs are buggy.
68757         fnmatch wasn't fixed until glibc 2.2.
68758
68759         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
68760         special shell magic here.
68761
68762 2001-09-16  Jim Meyering  <meyering@lucent.com>
68763
68764         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
68765         * m4/jm-macros.m4: Require it.
68766
68767 2001-09-16  Jim Meyering  <meyering@lucent.com>
68768
68769         * lib/mkdir.c: New file.
68770
68771 2001-09-15  Jim Meyering  <meyering@lucent.com>
68772
68773         * m4/jm-macros.m4: Check for help2man.
68774
68775 2001-09-11  Jim Meyering  <meyering@lucent.com>
68776
68777         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
68778         The body, by Paul Eggert, was moved here from configure.in.
68779         * m4/jm-macros.m4: Require UTILS_HOST_OS.
68780
68781 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68782
68783         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
68784         (jm_PREREQ): Use it.
68785
68786 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68787
68788         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
68789         Use ssize_t, not int, to store result of readlink.
68790         Check for ssize_t overflow as well as size_t overflow,
68791         as POSIX says the result of readlink is implementation-defined
68792         when ssize_t overflows.
68793         Remove unnecessary cast to char*.
68794         Use free+malloc instead of realloc, as the storage doesn't need
68795         to be preserved and it's clearer and can be more efficient that way.
68796         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
68797         * lib/xreadlink.h (xreadlink): Update prototype.
68798
68799 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68800
68801         * lib/xgetcwd.c: Revert some of the previous change; intead,
68802         fix the HAVE_GETCWD_NULL code to behave more like the
68803         !HAVE_GETCWD_NULL code used to.
68804
68805         Include "xalloc.h".
68806         (xgetcwd): Do not return NULL when memory is exhausted; instead,
68807         invoke xalloc_die.
68808
68809 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68810
68811         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
68812         sys/param.h, as pathmax.h includes them.
68813
68814 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68815
68816         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
68817         (jm_PREREQ_XGETCWD): New macro.
68818
68819         * m4/getcwd.m4: New file.
68820
68821 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68822
68823         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
68824         like the HAVE_GETCWD_NULL code.
68825         Include pathmax.h if not HAVE_GETCWD.
68826         Do not include xalloc.h.
68827         (INITIAL_BUFFER_SIZE): New symbol.
68828         Do not use xmalloc / xrealloc, since the caller is responsible for
68829         handling errors.  Preserve errno around `free' during failure.
68830         Do not overrun buffer when using getwd.
68831
68832 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68833
68834         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
68835         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
68836         getcwd (NULL, 0).
68837
68838 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68839
68840         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
68841         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
68842         spotted by Jim Meyering.
68843
68844 2001-09-03  Jim Meyering  <meyering@lucent.com>
68845
68846         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
68847         failure.
68848
68849 2001-09-02  Jim Meyering  <meyering@lucent.com>
68850
68851         * lib/error.c: Update from GNU libc.
68852
68853 2001-09-01  Jim Meyering  <meyering@lucent.com>
68854
68855         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
68856         Used by df.
68857
68858 2001-09-01  Jim Meyering  <meyering@lucent.com>
68859
68860         * lib/xreadlink.c: New file.
68861         * lib/xreadlink.h: New file.
68862         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
68863         xreadlink.h.
68864
68865         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
68866         doesn't conflict with sparc Solaris 7's definition in
68867         /usr/include/sys/int_types.h.
68868
68869         * lib/exclude.c: Use `""', not `<>' to #include non-system header
68870         files.
68871         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
68872         and strncasecmp as r-values.  Unixware didn't have declarations.
68873
68874 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68875
68876         * lib/xstrtol.h: Add copyright notice.
68877         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
68878         LONGINT_INVALID_SUFFIX_CHAR.
68879
68880 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68881
68882         * lib/xstrtol.c (strtoimax): New decl.
68883
68884 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68885
68886         * lib/xgetcwd.c: Don't include pathmax.h.
68887         Include stdlib.h and unistd.h if available.
68888         Include xalloc.h.
68889         (xmalloc, xstrdup, free): Remove decls.
68890         (xgetcwd): Don't assume sizes fit in unsigned.
68891         Check for overflow when computing sizes.
68892         Simplify reallocation code.
68893
68894 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68895
68896         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
68897         a directory's st_size can have an arbitrary value, so the old
68898         usage could waste an arbitrary amount of memory.  All uses
68899         changed.
68900         * lib/savedir.h: Update prototype.
68901
68902 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68903
68904         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
68905
68906         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
68907         old strtoimax.c.
68908
68909         Also, make the following further changes to make this file's
68910         configuration more similar to that of strtol.c:
68911         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
68912         (strtoumax, uintmax_t, strtoull, strtol): Remove.
68913         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
68914         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
68915         changed to signed values.
68916
68917         And make the following changes as well:
68918         Fix copyright notice, as 1999 was missing.
68919         (verify): New macro.
68920         (strtoimax): Check sizes at compile-time, not run-time.
68921         Prefer strtol to strtoll if both work.
68922         (main): Remove; it was not that useful and was a pain to maintain.
68923
68924         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
68925
68926 2001-08-31  Jim Meyering  <meyering@lucent.com>
68927
68928         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
68929         Use an initial, malloc'd, buffer of length 128 rather than
68930         a statically allocated one of length 1024.
68931
68932 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68933
68934         Simplify code, partly by assuming autoconf 2.52 semantics.
68935
68936         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
68937
68938         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
68939         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
68940         All uses removed.
68941         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
68942         Move AC_REQUIRE to next-to-top level, to avoid confusion.
68943         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
68944         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
68945         jm_AC_HEADER_INTTYPES_H.
68946         * m4/jm-macros.m4 (jm_MACROS): Likewise.
68947
68948         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
68949
68950         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68951         Quote first arg of AC_DEFUN.
68952         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
68953         since they are needed to parse the include file even if we need
68954         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
68955         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
68956         but with opposite signedness.
68957
68958 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68959
68960         Merge 'exclude' changes from tar 1.13.22.
68961         This fixes one or two unlikely storage allocation overflow bugs,
68962         but doesn't change user-visible behavior otherwise.
68963
68964 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68965
68966         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
68967         (jm_PREREQ_EXCLUDE): New macro.
68968
68969 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68970
68971         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
68972         tm to be declared.
68973
68974 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68975
68976         * lib/hash.c: Remove '2001' from copyright notice.
68977
68978 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68979
68980         * lib/full-write.h: New file.
68981         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
68982         * lib/full-write.c: Correct credits, as cccp.c no longer
68983         exists and anyway it was so heavily changed from the old cccp
68984         code as to be unrecognizable.  Include full-write.h.
68985         (full_write) Return size_t, with short writes meaning failure.
68986         All callers changed.  This fixes a bug with large buffers
68987         on 64-bit hosts.
68988         * lib/utime.c: Include full-write.h.
68989
68990 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68991
68992         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
68993         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
68994         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
68995         Include if available.
68996         (<xalloc.h>): Include
68997         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
68998         (verify): New macro.  Use it to verify that EXCLUDE macros do not
68999         collide with FNM macros.
69000         (struct patopts): New struct.
69001         (struct exclude): Use it, as exclude patterns now come with options.
69002         (new_exclude): Support above changes.
69003         (new_exclude, add_exclude_file):
69004         Initial size must now be a power of two to simplify overflow checking.
69005         (free_exclude, fnmatch_no_wildcards): New function.
69006         (excluded_filename): No longer requires options arg, as the options
69007         are determined by add_exclude.  Now returns bool, not int.
69008         (excluded_filename, add_exclude):
69009         Add support for the fancy new exclusion options.
69010         (add_exclude, add_exclude_file): Now takes int options arg.
69011         Check for arithmetic overflow when computing sizes.
69012         (add_exclude_file): xrealloc might modify errno, so don't
69013         realloc until after errno might be used.
69014
69015         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
69016         New macros.
69017         (free_exclude): New decl.
69018         (add_exclude, add_exclude_file): Now takes int options arg.
69019         (excluded_filename): No longer requires options arg, as the options
69020         are determined by add_exclude.  Now returns bool, not int.
69021
69022 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69023
69024         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
69025
69026 2001-08-27  Jim Meyering  <meyering@lucent.com>
69027
69028         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
69029
69030         * lib/version-etc.c (N_): Remove definition.
69031         Revert most of last change.
69032         Instead, simply don't mark the `Copyright...' string for translation.
69033         Based on advice from Paul Eggert.
69034
69035         * lib/strtoxmax.c: Tweak comment.
69036
69037 2001-08-26  Jim Meyering  <meyering@lucent.com>
69038
69039         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
69040
69041         * m4/xstrtoimax.m4: New file.
69042         * m4/xstrtoumax.m4: Add comments explaining why we
69043         AC_REPLACE_FUNCS(strtol).
69044
69045 2001-08-26  Jim Meyering  <meyering@lucent.com>
69046
69047         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
69048         of copyright with `%s' so translators don't get an untranslated
69049         message in 2002.
69050         (COPYRIGHT_YEAR): Define.
69051         (version_etc): Use fprintf rather than fputs.
69052         Suggestion from Ulrich Drepper.
69053
69054         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
69055
69056         * lib/strtoll.c: New file, from GNU libc.
69057         * lib/xstrtoimax.c: New file.
69058
69059         * lib/xstrtol.h: Add xstrtoimax.
69060         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
69061         * lib/strtoimax.c: New file.  Likewise, but first define
69062         STRTOUXMAX_SIGNED.
69063
69064         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
69065         ...
69066         * lib/strtoxmax.c: ... then renamed to this.
69067
69068 2001-08-18  Paul Eggert  <eggert@twinsun.com>
69069
69070         * m4/inttypes.m4: Add AC_PREREQ(2.13).
69071         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
69072         (jm_AC_TYPE_INTMAX_T): New macro.
69073         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
69074
69075         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
69076
69077         * m4/longlong.m4: Renamed from ulonglong.m4.
69078         * m4/inttypes.m4: Renamed from inttypes_h.m4.
69079         * m4/uintmax_t.m4: Removed.
69080
69081 2001-08-13  Paul Eggert  <eggert@twinsun.com>
69082
69083         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
69084         Port to Solaris 8, where 'sed' requires a space after the 'r'
69085         command, and where sh dislikes "$/".  Clean up the spacing a bit.
69086         Redirect output to $tmp just once.
69087
69088 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
69089
69090         * lib/addext.c (<errno.h>): Include.
69091         (errno): Declare if not defined.
69092         (addext): Work correctly when pathconf returns -1 and leaves
69093         errno alone because there is no limit.  Also, work even if
69094         pathconf returns a value greater than SIZE_MAX.
69095
69096 2001-08-12  Jim Meyering  <meyering@lucent.com>
69097
69098         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
69099         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
69100         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
69101         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
69102         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
69103         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
69104         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
69105         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
69106         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
69107         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
69108         utime.m4, utimes.m4, xstrtoumax.m4:
69109         Quote the first argument in each use of AC_DEFUN.
69110
69111 2001-08-12  Jim Meyering  <meyering@lucent.com>
69112
69113         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
69114         Simply `return getcwd (NULL, 0);'.
69115         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
69116         Use 1300 as initial value for length, not PATH_MAX.
69117
69118         * lib/pathmax.h: Clean up cpp syntax.
69119
69120 2001-08-12  Jim Meyering  <meyering@lucent.com>
69121
69122         * lib/gettimeofday.c: New file.
69123         * lib/gtod.h: New file.
69124         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
69125
69126 2001-08-05  Jim Meyering  <meyering@lucent.com>
69127
69128         * m4/jm-macros.m4: Require autoconf-2.52.
69129
69130 2001-08-04  Jim Meyering  <meyering@lucent.com>
69131
69132         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
69133         stmt, to get in sync with glibc.
69134
69135 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69136
69137         The following changes are from gettext 0.10.39 as maintained by
69138         Bruno Haible.
69139
69140         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
69141         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
69142         with inverted sense.  All uses changed.
69143
69144         * lib/mbswidth.c: Don't include <limits.h>.
69145         Include <stdlib.h> and <string.h> unconditionally.
69146         (iswcntrl, mbsinit, ISCNTRL): New macros.
69147         (mbsnwidth): Use K&R style function declarations.
69148         Don't bother checking for MB_LEN_MAX == 1, since the compiler
69149         can optimize it when MB_CUR_MAX == 1.
69150         The width of control characters is zero, not 1.
69151
69152 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69153
69154         The following changes are from gettext 0.10.39 as maintained by
69155         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
69156
69157         * m4/codeset.m4: Upgrade to serial AM1.
69158         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
69159         all uses changed.  Quote first arg of AC_DEFUN.
69160         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
69161
69162         * m4/iconv.m4: Upgrade to serial AM2.
69163         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
69164         Add --with-libconv-prefix.
69165         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
69166         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
69167         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
69168         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
69169         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
69170
69171         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
69172         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
69173         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
69174         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
69175         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
69176         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
69177         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69178         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
69179         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69180
69181         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
69182         string.h any more.
69183
69184         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
69185         not the default value.
69186
69187         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
69188         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
69189         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
69190         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
69191         Also check for iswcntrl, used for wcwidth fallback.
69192         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
69193         to Autoconf 2.13.
69194
69195 2001-08-03  Jim Meyering  <meyering@lucent.com>
69196
69197         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
69198         as it was in the original.  Reported by Paul Eggert.
69199
69200 2001-07-16  Jim Meyering  <meyering@lucent.com>
69201
69202         * m4/gettimeofday.m4: New file.
69203         Prompted by a report from Bernhard Baehr.
69204
69205 2001-07-15  Jim Meyering  <meyering@lucent.com>
69206
69207         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
69208         stuff. Now it's in ../Makefile.cfg.
69209
69210 2001-07-15  Jim Meyering  <meyering@lucent.com>
69211
69212         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
69213         (BUILT_SOURCES): Add unlocked-io.h.
69214         (io_functions): Define.
69215         (unlocked-io.h): New rule.
69216         (DISTCLEANFILES): Add unlocked-io.h.
69217         (all-local): Depend on unlocked-io.h, to ensure it is created.
69218
69219         * lib/unlocked-io.hin: New file
69220
69221         * lib/regex.c: Update from glibc.
69222
69223 2001-07-05  Jim Meyering  <meyering@lucent.com>
69224
69225         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
69226         recommendation.
69227         (libfetish_a_SOURCES): Put all .h files here instead.
69228         Remove a thus-exposed (better checks in automake) duplicate and
69229         two unnecessary .h files.
69230
69231 2001-07-04  Jim Meyering  <meyering@lucent.com>
69232
69233         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
69234         that generates jm-glibc-io.m4 so that it doesn't trigger any make
69235         distcheck failure.
69236
69237 2001-07-02  Jim Meyering  <meyering@lucent.com>
69238
69239         The following changes were prompted by suggestions from Bruno Haible.
69240
69241         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
69242         is now generated.
69243         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
69244         definition of EXTRA_DIST.
69245         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
69246         ensure that the generated file is created/updated whenever the list
69247         of $(unlocked_functions) is changed.
69248         (jm-glibc-io.m4): New rule.
69249         (unlocked-io.h): New rule -- currently unused.
69250
69251 2001-06-24  Jim Meyering  <meyering@lucent.com>
69252
69253         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
69254         unmatched right bracket, rather than kludging it with an extra,
69255         falsely-matching quote in a comment.  Patch by Akim Demaille.
69256
69257 2001-06-11  Jim Meyering  <meyering@lucent.com>
69258
69259         * lib/regex.c: Update from GNU libc.
69260
69261 2001-05-27  Jim Meyering  <meyering@lucent.com>
69262
69263         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
69264         Check for ut_type in struct utmp.
69265
69266 2001-05-27  Jim Meyering  <meyering@lucent.com>
69267
69268         * lib/readutmp.h (UT_TYPE): Define.
69269
69270 2001-05-24  Jim Meyering  <meyering@lucent.com>
69271
69272         * lib/argmatch.c: Include "quote.h".
69273         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
69274         quote function.  Reported by Göran Uddeborg.
69275
69276 2001-05-22  Jim Meyering  <meyering@lucent.com>
69277
69278         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
69279         now that we use the package-supplied version unconditionally.
69280         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
69281
69282 2001-05-21  Jim Meyering  <meyering@lucent.com>
69283
69284         * m4/regex.m4: Change a couple backticks to single quotes to avoid
69285         shell syntax errors.
69286
69287 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69288
69289         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
69290
69291 2001-05-20  Paul Eggert  <eggert@twinsun.com>
69292
69293         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
69294         Don't bother to check library strftime, since
69295         we'll be using our own my_strftime function anyway.
69296         Define my_strftime instead of strftime.
69297
69298 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
69299
69300         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
69301         which is not yet declared.
69302
69303 2001-05-15  Jim Meyering  <meyering@lucent.com>
69304
69305         * m4/regex.m4: Use proper quoting so brackets appear in the test
69306         program.
69307         Reported by, and with help from, Bruno Haible.
69308
69309 2001-05-13  Jim Meyering  <meyering@lucent.com>
69310
69311         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
69312         undefined.
69313
69314 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69315
69316         dirname code cleanup.  base_name now behaves more compatibly
69317         with POSIX basename when given file names that have trailing
69318         slashes, and similarly for dir_name.  Add new primitives
69319         base_len and dir_len.  Put the directory-name-related decls
69320         into dirname.h.
69321
69322         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
69323         * lib/backupfile.c (base_name): Likewise.
69324         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
69325         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
69326         * lib/makepath.c (strip_trailing_slashes): Likewise.
69327         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
69328         ISSLASH): Likewise.
69329         * lib/rename.c (strip_trailing_slashes): Likewise.
69330         * lib/same.c (base_name): Likewise.
69331         * lib/stripslash.c (ISSLASH): Likewise.
69332
69333         * lib/addext.c: Include <dirname.h> after size_t is defined.
69334         * lib/backupfile.c: Likewise.
69335
69336         * lib/addext.c (addext): Use base_len to trim redundant
69337         trailing slashes instead of doing it ourselves.
69338         But do not trim the last slash if it is not redundant.
69339
69340         * lib/backupfile.c (find_backup_file_name,
69341         max_backup_version): Use base_len instead of rolling it ourselves.
69342         Handle the case of "" and (on DOS) "C:" correctly.
69343
69344         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
69345         needed. Include <string.h>, <dirname.h>.
69346         (base_name): Allow file names ending in slashes, other than names
69347         that are all slashes.  In this case, return the basename followed
69348         by the slashes.  This is more general, and can be used in places
69349         where the original base_name purposely had an assertion failure.
69350         (base_len): New function.
69351
69352         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
69353         Do not include <assert.h>; no longer needed.
69354         Include xalloc.h.
69355         (memrchr): Remove decl.
69356         (dir_name_r): Remove.
69357         (dir_len): Renamed from dirlen.  All callers changed.
69358         Rewrite in terms of base_name, for simplicity and consistency.
69359         (dir_name): Never return NULL.  All callers changed.
69360         Do not include <stdlib.h> in test program; no longer needed.
69361         return 0; is fine for test program.
69362
69363         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
69364         New macros.
69365         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
69366
69367         * lib/path-concat.c (path_concat): Use base_len to compute
69368         base length, not strlen; this means we cannot rely on memcpy
69369         to null-terminate.
69370
69371         * lib/same.c (STREQ): Remove.
69372         (same_name): Handle the case where the basename ends in trailing '/'.
69373
69374         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
69375         a slash was stripped.  Do not strip the last slash after a
69376         file system prefix.
69377
69378 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69379
69380         * lib/Makefile.am (libfetish_a_SOURCES):
69381         Add strftime.c, since we now compile it on all hosts.
69382
69383         * lib/strftime.c (my_strftime):
69384         Define to nstrftime if emacs, but only if my_strftime is not defined.
69385         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
69386         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
69387         Add one more extra argument: a nanoseconds value.
69388         All uses changed.
69389         (ns): New macro.
69390         (my_strftime function): Add %N format.
69391         (emacs_strftimeu): Renamed from emacs_strftime,
69392         with extra ut argument.
69393
69394 2001-05-09  Paul Eggert  <eggert@twinsun.com>
69395
69396         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
69397
69398 2001-04-21  Jim Meyering  <meyering@lucent.com>
69399
69400         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
69401         doesn't interfere.
69402
69403 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69404
69405         * m4/ftruncate.m4: Check for chsize.
69406         Link with ftruncate.o unconditionally if ftruncate is missing.
69407         This was required when cross-compiling to i586-mingw32msvc.
69408
69409 2001-04-08  Jim Meyering  <meyering@lucent.com>
69410
69411         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
69412         recomputed; that's necessary when the offset spans a DST transition.
69413         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
69414
69415 2001-04-02  Jim Meyering  <meyering@lucent.com>
69416
69417         * lib/regex.h, regex.c: Update from GNU libc.
69418
69419 2001-03-24  Jim Meyering  <meyering@lucent.com>
69420
69421         * m4/jm-macros.m4: Require autoconf-2.49d.
69422
69423 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
69424
69425         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
69426
69427 2001-03-19  Paul Eggert  <eggert@twinsun.com>
69428
69429         * lib/version-etc.c (version_etc_copyright): Update to 2001.
69430
69431 2001-03-17  Jim Meyering  <meyering@lucent.com>
69432
69433         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
69434         now that the version in autoconf is equivalent.
69435         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
69436
69437         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
69438         Suggestion from Akim Demaille.
69439
69440         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
69441         (jm_PREREQ_TEMPNAME): New function.
69442
69443 2001-03-16  Paul Eggert  <eggert@twinsun.com>
69444
69445         * lib/tempname.c (uint64_t): Define to uintmax_t if
69446         not defined, and if UINT64_MAX is not defined.
69447         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
69448         Reported by John David Anglin.
69449
69450 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
69451
69452         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
69453         resolve alias if codeset is empty.
69454         * lib/config.charset (BeOS): Use wildcard syntax.
69455
69456 2001-03-13  Jim Meyering  <meyering@lucent.com>
69457
69458         * lib/path-concat.c (path_concat)
69459         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
69460         concatenating e.g., `C:' and `foo'.
69461         From Bruno Haible.
69462
69463 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
69464
69465         * lib/localcharset.c (locale_charset): Don't use
69466         setlocale(LC_CTYPE,NULL). Don't return NULL.
69467         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
69468
69469 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
69470
69471         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
69472         support for DOS/DJGPP.
69473
69474 2001-03-01  Paul Eggert  <eggert@twinsun.com>
69475
69476         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
69477         lacks mkstemp.  Compile our own tempname.c if we compile our own
69478         mkstemp.c, as mkstemp relies on tempname.
69479
69480 2001-03-01  Jim Meyering  <meyering@lucent.com>
69481
69482         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
69483         AH_VERBATIM really does output its argument verbatim.
69484
69485 2001-02-28  Paul Eggert  <eggert@twinsun.com>
69486
69487         * lib/Makefile.am (libfetish_a_SOURCES):
69488         Add dup-safer.c, fopen-safer.c.
69489         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
69490
69491         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
69492         * lib/unistd-safer.h: New files.
69493
69494 2001-02-25  Paul Eggert  <eggert@twinsun.com>
69495
69496         The mkstemp replacement is taken from glibc 2.2.2, with some
69497         portability fixes for use outside glibc, as follows:
69498
69499         * lib/tempname.c (struct_stat64): New macro.
69500         (direxists, __gen_tempname): Use it.
69501         This avoids a portability problem with Solaris 8.
69502
69503         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
69504         (<stddef.h>, <stdint.h>, <string.h>):
69505         Include only if STDC_HEADERS || _LIBC.
69506         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
69507         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
69508         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
69509         (__set_errno): Define this macro if <errno.h> doesn't.
69510         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
69511         Define these macros if <stdio.h> doesn't.
69512         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
69513         Define these macros if <sys/stat.h>
69514         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
69515         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
69516         __xstat64): Define if not _LIBC.
69517         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
69518         (__gen_tempname): Invoke gettimeofday only if
69519         HAVE_GETTIMEOFDAY || _LIBC;
69520         otherwise, fall back on plain "time".
69521         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
69522
69523         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
69524
69525         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
69526
69527 2001-02-18  Paul Eggert  <eggert@twinsun.com>
69528
69529         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
69530
69531 2001-02-17  Paul Eggert  <eggert@twinsun.com>
69532
69533         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
69534         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
69535         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
69536         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
69537
69538 2001-02-17  Paul Eggert  <eggert@twinsun.com>
69539
69540         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
69541         Remove workaround macros for hosts that have mbrtowc but not
69542         mbstate_t, as we now insist on proper declarations for both
69543         before using mbrtowc.
69544
69545 2001-02-17  Jim Meyering  <meyering@lucent.com>
69546
69547         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
69548         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
69549         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
69550         UnixWare 7.1.1.
69551
69552         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
69553         rather than AC_CACHE_VAL.
69554
69555 2001-02-17  Jim Meyering  <meyering@lucent.com>
69556
69557         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
69558         around included file name.
69559
69560         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
69561
69562         * lib/strftime.c: Update from GNU libc (the only changes were to
69563         comments).
69564
69565 2001-02-17  Jim Meyering  <meyering@lucent.com>
69566
69567         * lib/regex.c: Update from libc.
69568
69569 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
69570
69571         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
69572         clash.
69573
69574 2001-02-16  Paul Eggert  <eggert@twinsun.com>
69575
69576         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
69577         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
69578         Reported by Mark Hounschell via Paul Eggert.
69579
69580 2001-02-07  Jim Meyering  <meyering@lucent.com>
69581
69582         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
69583
69584 2001-02-05  Jim Meyering  <meyering@lucent.com>
69585
69586         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
69587         it includes the patch required for `large file' support with at least
69588         HP-UX's 10.20 /bin/cc.
69589
69590 2001-02-03  Jim Meyering  <meyering@lucent.com>
69591
69592         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
69593         AS_IF, now that it works once again (mysteriously).
69594         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69595
69596 2001-01-30  Jim Meyering  <meyering@lucent.com>
69597
69598         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
69599         * m4/chown.m4: Rename conftestchown to conftest.chown.
69600         * m4/rename.m4: s/conftestdir/conftest.d1/ and
69601         s/conftestdir2/conftest.d2/.
69602         * m4/utimes.m4: s/conftestdata/conftest.data/
69603         Inspired by Pavel Roskin's change in autoconf.
69604
69605 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
69606
69607         * lib/config.charset: Update for FreeBSD 4.2.
69608
69609 2001-01-27  Jim Meyering  <meyering@lucent.com>
69610
69611         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
69612         a use of AS_IF.
69613         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
69614
69615 2001-01-26  Jim Meyering  <meyering@lucent.com>
69616
69617         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
69618         quotearg.c includes it.
69619
69620 2001-01-26  Jim Meyering  <meyering@lucent.com>
69621
69622         * lib/quotearg.c: Include stddef.h.
69623         * lib/quote.c: Include stddef.h.
69624         Reported by Axel Kittenberger.
69625
69626         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
69627         line in double quotes so that it evokes a better diagnostic.
69628         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
69629         Reported by Axel Kittenberger.
69630
69631 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
69632
69633         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
69634         as if it was a `charset'.
69635
69636 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69637
69638         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
69639         has const.
69640
69641 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69642
69643         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
69644         to avoid a warning.  Add back 'const' to inptr.
69645
69646 2001-01-20  Jim Meyering  <meyering@lucent.com>
69647
69648         Be sure that headers are checked before used in code compiled
69649         for the type checks.
69650         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
69651         In place of that, invoke jm_CHECK_ALL_TYPES.
69652         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
69653         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
69654         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
69655         The check for ssize_t was mistakenly run before the test for unistd.h.
69656
69657         The configure-time check for stdbool.h was missing.
69658         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
69659         (jm_PREREQ_HASH): New function.
69660
69661 2001-01-17  Jim Meyering  <meyering@lucent.com>
69662
69663         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
69664         for autoconf-2.49c.
69665         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
69666
69667 2001-01-16  Jim Meyering  <meyering@lucent.com>
69668
69669         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
69670         From Bruno Haible.
69671
69672 2001-01-14  Jim Meyering  <meyering@lucent.com>
69673
69674         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
69675         foo and bar.  Create conftestdir/ in the script, not in the C code.
69676         Remove directories in the script, not in the C code.
69677         Remove conftestdir{,2} before trying to create the directory.
69678         Make the entire configure script fail if the mkdir fails.
69679
69680 2001-01-14  Jim Meyering  <meyering@lucent.com>
69681
69682         * lib/rename.c: New file.  From Volker Borchert.
69683         Include stdlib.h, string.h or strings.h, and xalloc.h.
69684         Use strip_trailing_slashes rather than open-coding it.
69685
69686 2001-01-03  Paul Eggert  <eggert@twinsun.com>
69687
69688         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
69689
69690 2001-01-03  Jim Meyering  <meyering@lucent.com>
69691
69692         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
69693         of local `inptr' to avoid warning with some system declarations of
69694         iconv.
69695
69696 2001-01-02  Volker Borchert  <bt@teknon.de>
69697
69698         * m4/rename.m4: New file.
69699         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
69700
69701 2001-01-01  Jim Meyering  <meyering@lucent.com>
69702
69703         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
69704         even on systems with utmpx.h.  It's necessary for the declaration of
69705         utmp's ut_user member.  Reported by Andreas Jaeger.
69706
69707         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
69708         available. They are required for the declarations of getgrgid and
69709         getpwuid resp.
69710         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
69711         Reported by Andreas Jaeger.
69712
69713 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
69714
69715         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
69716         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
69717         so `make install' also works in VPATH builds.
69718
69719 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
69720
69721         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
69722         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
69723         can be used in subdirectories.
69724
69725 2000-12-29  Paul Eggert  <eggert@twinsun.com>
69726
69727         * lib/modechange.c: Do not assume that mode_t uses the
69728         traditional octal encoding.  E.g. "chmod 1 FOO" should set
69729         the other-execute bit of FOO even if S_IXOTH != 1.
69730
69731         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
69732         WOTH, XOTH, ALLM): New macros.
69733         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
69734          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
69735         Use them.
69736         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
69737         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
69738         (mode_compile):
69739         No need to use uintmax_t; unsigned long is long enough.
69740         Don't bother to get suffix since we don't use it.
69741
69742 2000-12-26  Jim Meyering  <meyering@lucent.com>
69743
69744         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
69745         better with autoheader.
69746
69747 2000-12-24  Jim Meyering  <meyering@lucent.com>
69748
69749         * lib/hash.c (is_prime): Return explicit boolean values.
69750         (hash_get_first): Return NULL to appease Irix5.6's 89.
69751         Reported by Nelson Beebe.
69752
69753 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
69754
69755         * lib/localcharset.c (locale_charset): Add support for Win32.
69756
69757 2000-12-18  Paul Eggert  <eggert@twinsun.com>
69758
69759         * lib/physmem.h, lib/physmem.c: New files.
69760
69761         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
69762         (noinst_HEADERS): Add physmem.h.
69763
69764         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
69765         't' for compatibility with Solaris 8 sort.
69766
69767 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
69768
69769         * lib/config.charset: Add support for BeOS.
69770
69771 2000-12-17  Jim Meyering  <meyering@lucent.com>
69772
69773         * m4/dos.m4 (jm_AC_DOS): New file and macro.
69774         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
69775
69776 2000-12-16  Jim Meyering  <meyering@lucent.com>
69777
69778         This bug had a serious impact on chown: `chown N:M FILE' (for integer
69779         N and M) would have treated it like `chown N:N FILE'.
69780
69781         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
69782
69783 2000-12-16  Jim Meyering  <meyering@lucent.com>
69784
69785         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
69786         SHELLS_FILE to a file name that's useful on djgpp systems.
69787         Include stdlib.h.
69788         (ADDITIONAL_DEFAULT_SHELLS): Define.
69789         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
69790         Based mostly on a patch from Prashant TR.
69791
69792 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
69793
69794         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
69795         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
69796         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
69797
69798 2000-12-08  Andreas Schwab  <schwab@suse.de>
69799
69800         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
69801         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
69802
69803 2000-12-07  Jim Meyering  <meyering@lucent.com>
69804
69805         * lib/stripslash.c (ISSLASH): Define.
69806         (strip_trailing_slashes): Use ISSLASH rather than comparing against
69807         `/'.
69808         From Prashant TR.
69809
69810         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
69811         (dir_name_r): Declare this function as static.
69812         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
69813         manifest itself on a name containing a mix of slashes and
69814         backslashes.
69815         Make this function work with names starting with a DOS-style
69816         drive letter and colon prefix.
69817         (dir_name): Append `.' if necessary.
69818         Based mostly on patches from Prashant TR and Eli Zaretskii.
69819
69820         * lib/dirname.h (dir_name_r): Remove prototype.
69821
69822 2000-12-06  Paul Eggert  <eggert@twinsun.com>
69823
69824         * m4/off_t-format.m4: Remove this file.
69825         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
69826
69827 2000-12-06  Jim Meyering  <meyering@lucent.com>
69828
69829         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
69830         replacement strtoull, we may well need the replacement strtoul, too.
69831         Check for declarations of strtoul and strtoull.
69832         Check for strtol.  Mainly as a cue to cause automake to include
69833         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
69834         Check for limits.h -- strtol.c needs it.
69835
69836 2000-12-05  Jim Meyering  <meyering@lucent.com>
69837
69838         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
69839
69840 2000-12-04  Jim Meyering  <meyering@lucent.com>
69841
69842         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
69843         Also include memory.h, stdlib.h, unistd.h if appropriate.
69844         Reported by Andreas Jaeger (conflicting declaration of malloc).
69845
69846 2000-12-02  Jim Meyering  <meyering@lucent.com>
69847
69848         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
69849         * m4/jm-macros.m4 (jm_MACROS): require it.
69850
69851 2000-12-02  Jim Meyering  <meyering@lucent.com>
69852
69853         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
69854
69855 2000-12-01  Paul Eggert  <eggert@twinsun.com>
69856
69857         * lib/memrchr.c: Include <config.h> before any system include file.
69858
69859 2000-11-30  Jim Meyering  <meyering@lucent.com>
69860
69861         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
69862
69863 2000-11-30  Jim Meyering  <meyering@lucent.com>
69864
69865         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
69866
69867 2000-11-29  Paul Eggert  <eggert@twinsun.com>
69868
69869         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
69870
69871 2000-11-26  Jim Meyering  <meyering@lucent.com>
69872
69873         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
69874
69875 2000-11-22  Paul Eggert  <eggert@twinsun.com>
69876
69877         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
69878         size of (size_t) -1; it's not portable.
69879
69880 2000-11-17  Jim Meyering  <meyering@lucent.com>
69881
69882         * lib/strstr.c: Update from GNU libc.
69883
69884 2000-11-17  Akim Demaille  <akim@epita.fr>
69885
69886         * lib/obstack.h: Formatting changes.
69887         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
69888         prevent type checking.
69889         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
69890         cast the value to (void *): assigning a `foo *' to a `void *'
69891         variable is valid.
69892         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
69893
69894 2000-11-16  Jim Meyering  <meyering@lucent.com>
69895
69896         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
69897
69898 2000-11-11  Jim Meyering  <meyering@lucent.com>
69899
69900         * lib/error.c: Add a couple #includes, merging from GNU libc version.
69901
69902 2000-11-10  Jim Meyering  <meyering@lucent.com>
69903
69904         * lib/obstack.h: Update from GNU libc.
69905         * lib/obstack.c: Likewise.
69906
69907 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
69908
69909         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
69910
69911 2000-11-06  Paul Eggert  <eggert@twinsun.com>
69912
69913         * lib/getusershell.c (setusershell): Use rewind rather than
69914         fseek/fseeko, to avoid configuration hassles with fseeko.
69915         Don't bother opening SHELLS_FILE if shellstream is NULL;
69916         it's not necessary.
69917
69918 2000-11-05  Jim Meyering  <meyering@lucent.com>
69919
69920         * lib/makepath.h (make_dir): Declare.
69921         * lib/makepath.c (make_dir): Remove `static' attribute.
69922         Tweak a comment.
69923
69924 2000-11-04  Jim Meyering  <meyering@lucent.com>
69925
69926         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
69927
69928 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
69929
69930         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
69931         last one in a bucket, advance to the next bucket.
69932
69933 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
69934
69935         * lib/fnmatch.c: Do not comment out all the code if we are using
69936         the GNU C library, because in some cases we are replacing buggy
69937         code in the GNU C library itself.
69938
69939 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
69940
69941         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
69942         (regex_compile): Catch bogus \(\1\).
69943
69944 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69945
69946         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
69947         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
69948         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
69949
69950 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69951
69952         * lib/error.h, getline.h, modechange.h:
69953         Remove "2000" from Copyright line, as the file hasn't been
69954         changed this year other than in the copyright notice.
69955
69956         * lib/xalloc.h: Add "2000" to Copyright line, as this file
69957         was changed this year.
69958
69959 2000-10-29  Jim Meyering  <meyering@lucent.com>
69960
69961         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
69962         renaming.
69963         * m4/ls-mntd-fs.m4: Likewise
69964
69965 2000-10-29  Jim Meyering  <meyering@lucent.com>
69966
69967         * lib/xstat.in: Fix grammar in comment.
69968
69969 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
69970
69971         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
69972         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
69973         doesn't define __restrict_arr.
69974
69975 2000-10-28  Jim Meyering  <meyering@lucent.com>
69976
69977         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
69978         (jm_PREREQ_MEMCHR): New function.
69979
69980 2000-10-28  Jim Meyering  <meyering@lucent.com>
69981
69982         * lib/memchr.c: Update from libc.
69983         Adjust for portability:
69984         [HAVE_STDLIB_H]: Include stdlib.h.
69985         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
69986         Undef __memchr, too.
69987         [!weak_alias]: Define __memchr to memchr.
69988
69989         * lib/regex.c: Update from libc.
69990         * lib/regex.h: Likewise.
69991         * lib/getopt1.c: Likewise.
69992         * lib/memcmp.c: Likewise.
69993
69994         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
69995         Avoid using fseek, when possible -- it's broken by design.
69996         Patch by Ulrich Drepper.
69997
69998 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
69999
70000         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
70001         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
70002         Giving in to popular pressure to shut up the compiler with casts.
70003
70004 2000-10-26  Jim Meyering  <meyering@lucent.com>
70005
70006         * lib/strftime.c: Update from libc.
70007
70008 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
70009
70010         * regex.c: More `unsigned char' -> `re_char' changes.
70011         Also change several `int' into `re_wchar_t'.
70012         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
70013         (PUSH_FAILURE_POINTER): Don't cast any more.
70014         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
70015         We want GCC to complain, since this piece of code makes
70016         re_match non-reentrant, which *should* be fixed.
70017         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
70018         (EXTEND_BUFFER): Use RETALLOC.
70019         (SET_LIST_BIT): Don't cast.
70020         (re_wchar_t): New type.
70021         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
70022         that those two functions will always properly return.
70023         (IMMEDIATE_QUIT_CHECK): Cast to void.
70024         (analyse_first): Use recursion rather than an explicit stack.
70025         (re_compile_fastmap): Can't fail anymore.
70026         (re_search_2): Don't check re_compile_fastmap for failure.
70027         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
70028         Now also sets the new value (passed in a new argument).
70029         (re_match_2_internal): Use it.
70030         Also, use a new var `reg' of type size_t when looping through regs
70031         rather than reuse the inappropriate `mcnt'.
70032
70033 2000-10-25  Jim Meyering  <meyering@lucent.com>
70034
70035         * lib/obstack.c: Update from libc.
70036
70037 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
70038
70039         * regex.c (regex_compile): Change the way of handling a range from
70040         a char less than 256 to a char not less than 256.
70041
70042 2000-10-24  Andrew Innes  <andrewi@gnu.org>
70043
70044         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
70045         NT-Emacs only.
70046         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
70047         so that re_search functions only quit when callers expect them to.
70048
70049 2000-10-23  Jim Meyering  <meyering@lucent.com>
70050
70051         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
70052         wrong.  That set_locale call must not have any side effects.
70053         From Paul Eggert.
70054
70055 2000-10-22  Jim Meyering  <meyering@lucent.com>
70056
70057         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
70058         [CYCLIC]: Remove now-unused definition.
70059
70060         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
70061         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
70062         Suggestion from Ulrich Drepper.
70063
70064 2000-10-21  Jim Meyering  <meyering@lucent.com>
70065
70066         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
70067         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
70068         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
70069
70070 2000-10-21  Jim Meyering  <meyering@lucent.com>
70071
70072         * lib/dirname.c (memrchr): Declare if necessary.
70073         (dir_name): Remove the restriction that there be no
70074         trailing slashes.  Now, this code skips past them, effectively
70075         ignoring them.
70076         [TEST_DIRNAME] (main): New unit tests.
70077
70078         * lib/memrchr.c: New file from GNU libc.
70079         Undef __memrchr, too.
70080         [!weak_alias]: Define __memrchr to memrchr.
70081         Guard weak_alias use with `#ifdef weak_alias'.
70082
70083 2000-10-21  Jim Meyering  <meyering@lucent.com>
70084
70085         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
70086         (dir_name): Use dir_name_r.
70087         * lib/dirname.h (dir_name_r): Declare it.
70088
70089 2000-10-17  Jim Meyering  <meyering@lucent.com>
70090
70091         * lib/quote.h (PARAMS): Define and use.
70092         Reported by Akim Demaille.
70093
70094         * lib/getopt.c: Update from libc.
70095
70096 2000-10-16  Jim Meyering  <meyering@lucent.com>
70097
70098         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
70099         setlocale.
70100         From Jan Fedak.
70101
70102 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
70103
70104         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
70105
70106 2000-09-25  Jim Meyering  <meyering@lucent.com>
70107
70108         * lib/md5.h (rol): Define (from GnuPG).
70109
70110         * lib/sha.c: Give credit (GnuPG) where due.
70111         (M): Use rol rather than open-coding it.
70112         Add a FIXME comment.
70113
70114 2000-09-21  Jim Meyering  <meyering@lucent.com>
70115
70116         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
70117         Reported by Michael Stone.
70118
70119 2000-09-20  Jim Meyering  <meyering@lucent.com>
70120
70121         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
70122         (noinst_HEADERS): Add sha.h.
70123         Based on code from Scott G. Miller and from GnuPG.
70124
70125 2000-09-18  Jim Meyering  <meyering@lucent.com>
70126
70127         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
70128         LIBS. Otherwise, everyone ends up linking with -lelf for some
70129         configurations.
70130         Reported by Mike Stone.
70131
70132 2000-09-15  Jim Meyering  <meyering@lucent.com>
70133
70134         * lib/regex.c: Update from libc.
70135
70136 2000-09-10  Jim Meyering  <meyering@lucent.com>
70137
70138         * lib/getopt.c (_getopt_internal): Update from glibc.
70139
70140 2000-09-09  Jim Meyering  <meyering@lucent.com>
70141
70142         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
70143         think it should be used as a general replacement for isascii.
70144         * lib/fnmatch.c: Likewise.
70145         * lib/mbswidth.c: Likewise
70146         * lib/regex.c: Likewise.
70147
70148         Don't use atoi.
70149         * lib/userspec.c: Include sys/param.h and limits.h.
70150         Include xstrtol.h.
70151         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70152         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
70153         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
70154         UID, GID.  Check range.
70155
70156 2000-09-06  Jim Meyering  <meyering@lucent.com>
70157
70158         * lib/getopt.c (_getopt_internal): Update from glibc.
70159
70160 2000-08-30  Jim Meyering  <meyering@lucent.com>
70161
70162         * lib/strftime.c: Merge in changes from GNU libc.
70163
70164 2000-08-26  Jim Meyering  <meyering@lucent.com>
70165
70166         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
70167         * m4/fpending.m4: New file.
70168
70169 2000-08-26  Jim Meyering  <meyering@lucent.com>
70170
70171         * lib/closeout.c: Include "__fpending.h".
70172         (close_stdout_status): Return right away if there's nothing to flush.
70173
70174         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
70175         * lib/__fpending.c: New file.
70176         * lib/__fpending.h: New file.
70177
70178 2000-08-20  Jim Meyering  <meyering@lucent.com>
70179
70180         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
70181         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
70182         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
70183
70184 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
70185
70186         Improve fileutils installation on systems where running
70187         programs (like install) can't be unlinked.
70188         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
70189         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
70190
70191 2000-08-07  Paul Eggert  <eggert@twinsun.com>
70192
70193         Standardize on "memory exhausted" instead of "Memory exhausted"
70194         or "virtual memory exhausted".
70195         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
70196         "virtual memory exhausted".
70197         * lib/same.c (same_name): Invoke xalloc_die instead of printing
70198         our own message.
70199         * lib/userspec.c (parse_user_spec): Likewise.
70200         * lib/bumpalloc.h: comment fix
70201         * lib/same.c, userspec.c: Include xalloc.h.
70202
70203         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
70204         not char *const and pointing to a constant array.
70205         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
70206         (xrealloc): Comment fix.
70207
70208         * lib/userspec.c (parse_user_spec):
70209         Don't translate a message until just before returning,
70210         to avoid unnecessary translation.
70211
70212 2000-08-07  Jim Meyering  <meyering@lucent.com>
70213
70214         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
70215         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
70216         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
70217         getgroups.c, gethostname.c, getopt.h, group-member.c,
70218         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
70219         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
70220         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
70221         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
70222         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
70223         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
70224         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
70225         yesno.c: Back out Copyright date changes for each file with no change
70226         this year.  This eases coordination with other programs using the same
70227         source code modules.  From Paul Eggert.
70228
70229 2000-08-06  Paul Eggert  <eggert@twinsun.com>
70230
70231         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
70232         not char, for compatibility with glibc 2.1.3 strftime.c.
70233
70234 2000-08-03  Greg McGary  <greg@mcgary.org>
70235
70236         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
70237         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
70238         (EXTEND_BUFFER): Use them.
70239
70240 2000-08-01  Jim Meyering  <meyering@lucent.com>
70241
70242         * lib/dirname.c (ISSLASH): Define.
70243         (BACKSLASH_IS_PATH_SEPARATOR): Define.
70244         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
70245         both `\' and `/' may be use as path separators.
70246         Based on a patch from Prashant TR.
70247
70248 2000-07-31  Paul Eggert  <eggert@twinsun.com>
70249
70250         * lib/quotearg.c (quotearg_n_options): Don't make the initial
70251         slot vector a constant, since it might get modified.
70252
70253 2000-07-31  Jim Meyering  <meyering@lucent.com>
70254
70255         * lib/xmalloc.c: Use `virtual memory exhausted', not
70256         `Memory exhausted'.
70257         * lib/obstack.c (print_and_abort): Likewise.
70258
70259 2000-07-30  Paul Eggert  <eggert@twinsun.com>
70260
70261         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
70262         buffer, so that the caller can always quote one small
70263         component of a "memory exhausted" message in slot 0.
70264         From a suggestion by Jim Meyering.
70265
70266 2000-07-30  Jim Meyering  <meyering@lucent.com>
70267
70268         * lib/makepath.c (make_path): Quote the other instance, too.
70269
70270         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
70271         (STATIC_BUF_SIZE): Define.
70272         (quotearg_n_options): Use only statically allocated storage when
70273         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
70274         than STATIC_BUF_SIZE.
70275
70276 2000-07-29  Jim Meyering  <meyering@lucent.com>
70277
70278         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
70279         * lib/dirname.c (dir_name): Likewise.
70280
70281         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
70282         `/'.
70283
70284         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
70285         (dir_name): Assert that there are no trailing slashes.
70286
70287 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
70288
70289         * lib/mbswidth.h (mbswidth): Add a flags argument.
70290         (mbswidth): New declaration.
70291         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
70292         * lib/mbswidth.c (mbswidth): Add a flags argument.
70293         (mbsnwidth): New function.
70294
70295 2000-07-24  Jim Meyering  <meyering@lucent.com>
70296
70297         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
70298
70299 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70300
70301         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
70302
70303 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70304
70305         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
70306         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
70307         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
70308         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
70309         invoke multibyte primitives.
70310
70311 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70312
70313         * lib/quotearg.c:
70314         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
70315         so that mbstate_t is always defined.
70316
70317         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
70318         be 1 in at least one GCC installation, and this configuration
70319         error is likely to be common.  Ignoring MB_LEN_MAX hurts
70320         performance on hosts that have mbrtowc but have only unibyte
70321         locales, but I assume these hosts are rare.
70322
70323 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70324
70325         * lib/mbswidth.c (_XOPEN_SOURCE):
70326         Don't define; this causes problems on Solaris 7.
70327         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
70328
70329 2000-07-23  Jim Meyering  <meyering@lucent.com>
70330
70331         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
70332         too: getgrgid, getpwuid, getuid.
70333
70334 2000-07-23  Jim Meyering  <meyering@lucent.com>
70335
70336         * lib/basename.c (base_name): Add an assertion.
70337
70338 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
70339
70340         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
70341         shadow its mbsinit function.
70342
70343 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70344
70345         * lib/mbswidth.h: New file.
70346         * lib/mbswidth.c: New file.
70347         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
70348         (noinst_HEADERS): Add mbswidth.h.
70349
70350 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70351
70352         * lib/config.charset: Add support for FreeBSD. Improve support for
70353         HP-UX and IRIX 6.
70354
70355 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
70356
70357         * m4/mbswidth.m4: New file.
70358         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
70359
70360 2000-07-15  Jim Meyering  <meyering@lucent.com>
70361
70362         * lib/makepath.c: Include quote.h.
70363         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
70364         corresponding argument in a `quote (...)' call.
70365         Give better diagnostics.
70366
70367         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
70368         (noinst_HEADERS): Add quote.h.
70369
70370         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
70371         from tar's src/misc.c.
70372         * lib/quote.h: New file.  Prototypes for same.
70373
70374 2000-07-14  Paul Eggert  <eggert@twinsun.com>
70375
70376         From a suggestion by Bruno Haible.
70377         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
70378         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
70379         to decide whether to define the BeOS workaround macro;
70380         this adjusts to the change to AC_MBSTATE_T.
70381
70382 2000-07-14  Jim Meyering  <meyering@lucent.com>
70383
70384         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
70385         jm_AC_TYPE_UINTMAX_T.
70386
70387 2000-07-13  Paul Eggert  <eggert@twinsun.com>
70388
70389         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
70390
70391         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
70392         quotearg_buffer_restyled): Add support for
70393         clocale_quoting_style.  Undo previous change to
70394         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
70395         and "{RIGHT QUOTATION MARK}" msgids.
70396
70397 2000-07-10  Paul Eggert  <eggert@twinsun.com>
70398
70399         From a suggestion by Bruno Haible.
70400         * m4/mbstate_t.m4 (AC_MBSTATE_T):
70401         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
70402         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
70403         and mbstate_t, to a single-part test that simply defines mbstate_t.
70404         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
70405         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
70406
70407 2000-07-10  Jim Meyering  <meyering@lucent.com>
70408
70409         * m4/strerror_r.m4: Mirror the correction made in autoconf.
70410
70411         * m4/gnu-source.m4: Output to confdefs.h directly.
70412         Suggestion from Akim Demaille.
70413
70414 2000-07-09  Paul Eggert  <eggert@twinsun.com>
70415
70416         The old behavior of quoting `like this' doesn't look good with
70417         newer, ISO-style fonts.  See:
70418         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
70419
70420         Instead, quote "like this" by default.  Let the translator
70421         tailor the locale-specific quoting behavior by providing
70422         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
70423
70424         * lib/quotearg.c (N_): New macro.
70425         (gettext_default): New function.
70426         (quotearg_buffer_restyled): Use
70427         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
70428         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
70429
70430 2000-07-09  Jim Meyering  <meyering@lucent.com>
70431
70432         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
70433         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
70434
70435         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
70436         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
70437
70438 2000-07-09  Jim Meyering  <meyering@lucent.com>
70439
70440         * lib/Most files: Update copyright dates to include 2000.
70441
70442 2000-07-08  Jim Meyering  <meyering@lucent.com>
70443
70444         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
70445         if not defined.
70446         (xgethostname): Remove now-unnecessary #ifdef.
70447         Move declaration of `err' into loop where it's used.
70448
70449 2000-07-05  Paul Eggert  <eggert@twinsun.com>
70450         and Bruno Haible  <haible@clisp.cons.org>
70451
70452         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
70453         only if the test for an object-type mbstate_t fails.  This
70454         prevents us from mistakenly reporting that mbstate_t is a
70455         system object type after we "#define mbstate_t int" to work
70456         around its lack.
70457
70458 2000-07-05  Paul Eggert  <eggert@twinsun.com>
70459         and Bruno Haible  <haible@clisp.cons.org>
70460
70461         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
70462
70463 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70464
70465         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
70466         to strerror_r.
70467         Include <ctype.h> for use of isalpha.
70468
70469 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70470
70471         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
70472         by allocating a larger buffer. Test the gethostname return value for
70473         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
70474         returns an error and ENAMETOOLONG isn't defined.
70475
70476 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70477
70478         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
70479         dimension.
70480
70481 2000-07-04  Jim Meyering  <meyering@lucent.com>
70482
70483         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
70484         of the deprecated AC_CHECKING.
70485
70486 2000-07-04  Jim Meyering  <meyering@lucent.com>
70487
70488         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
70489         Reported by Bruno Haible.
70490
70491 2000-07-04  Jim Meyering  <meyering@lucent.com>
70492
70493         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
70494         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
70495         lacks mbrtowc.
70496
70497 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70498
70499         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
70500         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
70501
70502 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70503         and Bruno Haible  <haible@clisp.cons.org>
70504
70505         * lib/quotearg.c (mbrtowc):
70506         Assign to *pwc, and return 1 only if result is nonzero.
70507         (iswprint): Use ISPRINT when substituting our own mbrtowc.
70508
70509 2000-07-03  Jim Meyering  <meyering@lucent.com>
70510
70511         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
70512
70513 2000-07-03  Jim Meyering  <meyering@lucent.com>
70514
70515         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
70516         This is necessary to get a definition of e.g., UTMP_FILE on
70517         HP-UX 10.20.
70518         From Bob Proulx.
70519
70520 2000-07-02  Jim Meyering  <meyering@lucent.com>
70521
70522         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
70523
70524         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
70525         AC_LIBOBJ(function_name).
70526         * m4/chown.m4: Likewise.
70527         * m4/fnmatch.m4: Likewise.
70528         * m4/ftruncate.m4: Likewise.
70529         * m4/getgroups.m4: Likewise.
70530         * m4/getline.m4: Likewise.
70531         * m4/group-member.m4: Likewise.
70532         * m4/jm-macros.m4: Likewise.
70533         * m4/lstat.m4: Likewise.
70534         * m4/malloc.m4: Likewise.
70535         * m4/memcmp.m4: Likewise.
70536         * m4/nanosleep.m4: Likewise.
70537         * m4/putenv.m4: Likewise.
70538         * m4/realloc.m4: Likewise.
70539         * m4/regex.m4: Likewise.
70540         * m4/stat.m4: Likewise.
70541         * m4/strftime.m4: Likewise.
70542
70543 2000-07-02  Jim Meyering  <meyering@lucent.com>
70544
70545         * lib/quotearg.c (mbstate_t): Don't define here.
70546
70547 2000-07-02  Jim Meyering  <meyering@lucent.com>
70548
70549         * lib/nanosleep.c (SIGCONT): Define if not already defined.
70550
70551 2000-07-01  Jim Meyering  <meyering@lucent.com>
70552
70553         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
70554
70555 2000-07-01  Jim Meyering  <meyering@lucent.com>
70556
70557         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
70558         problem.
70559
70560 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70561
70562         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
70563         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
70564
70565 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
70566
70567         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
70568         per change in ../m4/ls-mntd-fs.m4.
70569         (read_filesystem_list): Ignore symbolic links.
70570
70571 2000-06-29  Jim Meyering  <meyering@lucent.com>
70572
70573         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
70574         for declaration of strcmp.
70575
70576         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
70577
70578         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
70579         Avoid warning by casting result to `char *' to remove `const'.
70580
70581 2000-06-28  Jim Meyering  <meyering@lucent.com>
70582
70583         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
70584         included by quotearg.c, for which we perform this test.  From
70585         Bruno Haible.
70586
70587 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70588
70589         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
70590         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
70591         <utmpx.h> exists, put readutmp.o into LIBOBJS.
70592
70593 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
70594
70595         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
70596
70597 2000-06-26  Paul Eggert  <eggert@twinsun.com>
70598
70599         savedir now sets errno on failure and invokes xmalloc to get memory.
70600         Fix a couple of other minor bugs while we're at it.
70601
70602         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
70603         (NAMLEN): Remove macro.
70604         (malloc, realloc): Remove decls.
70605         (stpcpy): Likewise.
70606         ("xalloc.h"): Include.
70607         (NAME_SIZE_DEFAULT): New macro.
70608         (savedir): Use xmalloc / xrealloc to allocate memory.
70609         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
70610         Skip "" directory entries.
70611         Use strlen to calculate directory entry length, since the old method
70612         is rarely used these days and isn't worth supporting.
70613         Don't use a pointer after freeing it.
70614         Check for integer overflow when calculating allocation size.
70615         Use memcpy to copy entries, instead of stpcpy.
70616         Set errno properly when returning NULL.
70617         Check for readdir error.
70618
70619 2000-06-26  Jim Meyering  <meyering@lucent.com>
70620
70621         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
70622
70623 2000-06-25  Jim Meyering  <meyering@lucent.com>
70624
70625         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
70626         Linux header bug when _XOPEN_SOURCE is defined to 500.
70627
70628 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70629
70630         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
70631         deficiency.
70632
70633 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
70634
70635         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
70636         Include xalloc.h.
70637         Don't include <stdlib.h>.  Don't declare malloc, realloc.
70638
70639 2000-06-24  Jim Meyering  <meyering@lucent.com>
70640
70641         * m4/strerror_r.m4: Revive this file -- to try out an experimental
70642         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
70643         for which strerror does return char*, but which lacks a conveniently
70644         accessible declaration of the function.  If the compile-test says
70645         strerror_r doesn't work, then resort to a `run'-test that works on
70646         BeOS and segfaults on DEC Unix.
70647
70648 2000-06-24  Jim Meyering  <meyering@lucent.com>
70649
70650         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
70651
70652 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70653
70654         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
70655         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
70656
70657 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70658
70659         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
70660         (mbrtowc, mbstate_t): Define substitutes if
70661         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
70662         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
70663         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
70664
70665 2000-06-23  Jim Meyering  <meyering@lucent.com>
70666
70667         * m4/afs.m4: Add missing AC_MSG_RESULT.
70668         Reported by Bruno Haible.
70669
70670         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
70671         Suggestion from Bruno Haible.
70672
70673 2000-06-23  Jim Meyering  <meyering@lucent.com>
70674
70675         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
70676
70677 2000-06-21  Jim Meyering  <meyering@lucent.com>
70678
70679         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
70680
70681 2000-06-21  Jim Meyering  <meyering@lucent.com>
70682
70683         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
70684         (noinst_HEADERS): Add getstr.h.
70685
70686         * lib/getline.c (getstr): Move into a separate file.
70687         * lib/getstr.c (getstr): New file, extracted from getline.c, with
70688         the following changes: new parameter, delim2; both delim[12]
70689         parameters have type `int', not `char'.  The latter would lose
70690         with 8-bit delimiters.
70691         * lib/getstr.h: New file.
70692
70693 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70694
70695         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
70696         than 1024, return a memory chunk of least possible size, instead
70697         of size PATH_MAX + 2. In the loop, increment the size proportionally.
70698         Use free/xmalloc instead of xrealloc to avoid copying for very long
70699         paths.
70700
70701 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70702
70703         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
70704         the empty string.
70705
70706 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70707
70708         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
70709         address, not strdup.  Include <stdlib.h> and don't declare free().
70710
70711 2000-06-19  Jim Meyering  <meyering@lucent.com>
70712
70713         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
70714
70715 2000-06-18  Jim Meyering  <meyering@lucent.com>
70716
70717         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
70718
70719         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
70720         `checking whether...' message to be consistent with that of the
70721         lstat test.
70722
70723 2000-06-18  Jim Meyering  <meyering@lucent.com>
70724
70725         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
70726         Besides, these days every porting target provides a mkdir function.
70727
70728         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
70729         needed. (this snippet comes from src/system.h).
70730
70731 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
70732
70733         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
70734
70735 2000-06-15  Paul Eggert  <eggert@twinsun.com>
70736
70737         * lib/human.c (adjust_value): New function.
70738         (human_readable_inexact): Apply rounding style even when
70739         printing approximate values.
70740
70741 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70742
70743         * lib/human.c (human_readable_inexact): Allow an input block
70744         size that is not a multiple of the output block size, and vice versa.
70745         Reported by Piergiorgio Sartor.
70746
70747 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70748
70749         * lib/getdate.y (get_date): Apply relative times after time
70750         zone indicator, not before.  Reported by Todd A. Jacobs.
70751
70752 2000-06-13  Jim Meyering  <meyering@lucent.com>
70753
70754         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
70755
70756         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
70757
70758 2000-06-12  Paul Eggert  <eggert@twinsun.com>
70759
70760         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
70761
70762 2000-06-12  Jim Meyering  <meyering@lucent.com>
70763
70764         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
70765         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
70766         optional argument.
70767         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
70768         the optional argument, `lib'.
70769
70770 2000-06-08  Jim Meyering  <meyering@lucent.com>
70771
70772         * m4/largefile.m4: Remove file (now that it's part of autoconf).
70773
70774 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70775
70776         Rewrite largefile configuration so that we don't need to run
70777         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
70778         AC_CANONICAL_HOST in configure.in -- jmm]
70779
70780         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
70781         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
70782         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
70783         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
70784         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
70785         All uses changed.
70786         Instead of inspecting the output of getconf, try to compile the
70787         test program without and with the macro definition.
70788         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
70789         for getconf.  Instead, check for the needed flags by compiling
70790         test programs.
70791
70792 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70793
70794         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
70795
70796 2000-06-04  Jim Meyering  <meyering@lucent.com>
70797
70798         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
70799         SunOS 4.1.4 for which gid_t is an unsigned type.
70800
70801 2000-06-03  Jim Meyering  <meyering@lucent.com>
70802
70803         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
70804         now that autoconf requires that.
70805
70806         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
70807         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
70808         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
70809
70810 2000-06-03  Jim Meyering  <meyering@lucent.com>
70811
70812         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
70813
70814 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70815
70816         * m4/glibc21.m4: New file.
70817         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
70818
70819 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70820
70821         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
70822         newer, don't install charset.alias.
70823         * lib/config.charset: Change the Linux/glibc rules so they become empty
70824         on glibc-2.1 or newer.
70825
70826 2000-06-02  Jim Meyering  <meyering@lucent.com>
70827
70828         * lib/mountlist.c: Back out last change.  Instead, do this...
70829         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
70830         me_dummy member using the same `ignore'-testing code.
70831         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
70832         fs_type strings.
70833         From Mark D. Roth.
70834
70835 2000-05-29  Jim Meyering  <meyering@lucent.com>
70836
70837         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
70838         mounts with the `ignore' attribute.  Based on a patch from
70839         Mark D. Roth.
70840
70841 2000-05-28  Jim Meyering  <meyering@lucent.com>
70842
70843         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
70844         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70845         * m4/stat.m4: Likewise.
70846         * m4/lstat.m4: Likewise.
70847         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
70848
70849         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
70850         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
70851
70852 2000-05-26  Jim Meyering  <meyering@lucent.com>
70853
70854         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
70855
70856 2000-05-24  Jim Meyering  <meyering@lucent.com>
70857
70858         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
70859         autoconf requires that.
70860         * m4/lib-check.m4: Likewise.
70861         * m4/jm-macros.m4: Likewise.
70862         * m4/strftime.m4: Likewise.
70863
70864         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
70865         AC_CHECK_DECLS, now that autoconf requires that.
70866
70867 2000-05-22  Jim Meyering  <meyering@lucent.com>
70868
70869         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70870         * m4/lstat.m4: Likewise.
70871
70872 2000-05-22  Jim Meyering  <meyering@lucent.com>
70873
70874         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
70875
70876 2000-05-20  Jim Meyering  <meyering@lucent.com>
70877
70878         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
70879         (jm_PREREQ): Use it.
70880
70881 2000-05-18  Jim Meyering  <meyering@lucent.com>
70882
70883         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
70884         back, too, since it may have been modified by allocate_entry.
70885         (hash_delete): Rewrite to use neither the assignment operator
70886         nor the comma operator in an if-expression.
70887
70888 2000-05-15  Paul Eggert  <eggert@twinsun.com>
70889
70890         * lib/closeout.c:
70891         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
70892         Remove; no longer needed.
70893         "quotearg.h": Add include.
70894         (file_name): Do not bother to explicitly initialize to NULL; it's less
70895         efficient on some hosts.
70896         (close_stdout_status): Remove test as to whether stdout was already
70897         closed; it breaks for the case "echo x | sort >&-".
70898         Quote file name colons.
70899         Do not assume that _("write error") lacks format strings.
70900
70901 2000-05-15  Jim Meyering  <meyering@lucent.com>
70902
70903         * lib/version-etc.c (version_etc_copyright): Update the copyright
70904         string used in all --version output.
70905
70906 2000-05-14  Jim Meyering  <meyering@lucent.com>
70907
70908         * lib/closeout.c (close_stdout_set_file_name): New function.
70909         (close_stdout_status): Use new file-scoped global.
70910         Return right away if fstat says the stdout file descriptor is invalid.
70911         * lib/closeout.h (close_stdout_set_file_name): Declare.
70912
70913 2000-05-10  Jim Meyering  <meyering@lucent.com>
70914
70915         * lib/closeout.c [default_exit_status]: New file-scoped variable.
70916         (close_stdout_set_status): New function.
70917         * lib/closeout.h (close_stdout_set_status): Declare.
70918
70919 2000-05-09  Jim Meyering  <meyering@lucent.com>
70920
70921         * m4/gettext.m4: Rename this...
70922         * m4/libintl.m4: ...to this.
70923
70924 2000-05-08  Jim Meyering  <meyering@lucent.com>
70925
70926         * lib/long-options.c: Don't include closeout.h.
70927         (parse_long_options): Don't call close_stdout for --version.
70928
70929 2000-05-06  Paul Eggert  <eggert@twinsun.com>
70930
70931         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
70932         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
70933         2.1.3 bug.  This avoids a clash when files like regex.c define
70934         _GNU_SOURCE.
70935
70936 2000-05-06  Jim Meyering  <meyering@lucent.com>
70937
70938         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
70939         (AC_REPLACE_FUNCS): Add strnlen.
70940
70941         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
70942         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
70943
70944         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
70945         AC_SEARCH_LIBS call for nanosleep.
70946         (LIB_NANOSLEEP): Set and AC_SUBST.
70947
70948 2000-05-06  Jim Meyering  <meyering@lucent.com>
70949
70950         * lib/strnlen.c: Undefine __strnlen and strnlen.
70951         [!weak_alias]: Define __strnlen to strnlen.
70952
70953         * lib/atexit.c: New file, from libiberty.
70954
70955 2000-05-06  Jim Meyering  <meyering@lucent.com>
70956
70957         * lib/closeout.c (close_stdout_status): Also check for errors on the
70958         stderr stream.
70959
70960 2000-05-05  Jim Meyering  <meyering@lucent.com>
70961
70962         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
70963         AC_SEARCH_LIBS call for clock_gettime.
70964         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
70965
70966         * m4/search-libs.m4: Update from autoconf.
70967
70968         su doesn't work on Solaris 2.6.
70969         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
70970         <shadow.h>.  Reported by Dragos Harabor.
70971
70972 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
70973
70974         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
70975         memcpy instead of xmalloc, xrealloc, path_concat.
70976         (locale_charset): Treat empty environment variables as absent.
70977         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
70978
70979 2000-05-04  Jim Meyering  <meyering@lucent.com>
70980
70981         * lib/getopt.c: Update from glibc.
70982         * lib/obstack.c: Likewise.
70983         * lib/obstack.h: Likewise.
70984         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
70985         file
70986
70987         * lib/regex.h: Likewise.
70988         * lib/strndup.c: Likewise.
70989         * lib/strnlen.c: New file, from glibc.
70990
70991 2000-05-03  Jim Meyering  <meyering@lucent.com>
70992
70993         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
70994
70995 2000-05-02  Paul Eggert  <eggert@twinsun.com>
70996
70997         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
70998         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
70999         compile-time test, rather than inspecting host and OS, to
71000         decide whether to define _LARGEFILE_SOURCE.
71001
71002 2000-05-01  Jim Meyering  <meyering@lucent.com>
71003
71004         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
71005
71006         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
71007         Based on a patch from Bruno Haible.
71008
71009 2000-05-01  Jim Meyering  <meyering@lucent.com>
71010
71011         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
71012
71013 2000-04-29  Jim Meyering  <meyering@lucent.com>
71014
71015         * lib/path-concat.c: Declare strdup only if it's not defined.
71016         * lib/canon-host.c: Likewise.
71017
71018 2000-04-28  Jim Meyering  <meyering@lucent.com>
71019
71020         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
71021         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
71022         is included first, then limits.h is included by locale.h by libintl.h.
71023         From John David Anglin.
71024
71025 2000-04-25  Jim Meyering  <meyering@lucent.com>
71026
71027         * lib/makepath.c (S_IRWXUGO): Define.
71028         (make_path): Always perform explicit chmod if MODE specifies any
71029         of the `special' permission bits.  Prompted by a bug report against
71030         install from Mate Wierdl and Joost van Baal.
71031
71032 2000-04-18  Jim Meyering  <meyering@lucent.com>
71033
71034         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
71035         (jm_PREREQ): Use it.
71036
71037 2000-04-18  Jim Meyering  <meyering@lucent.com>
71038
71039         * lib/README: New file.
71040
71041         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
71042         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
71043
71044 2000-04-17  Jim Meyering  <meyering@lucent.com>
71045
71046         Get it right :-)
71047         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
71048         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
71049         Suggestion from Akim Demaille.
71050
71051 2000-04-17  Jim Meyering  <meyering@lucent.com>
71052
71053         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
71054         the definition of it to rpl_strftime also defined-away the system's
71055         declaration.
71056
71057 2000-04-15  Jim Meyering  <meyering@lucent.com>
71058
71059         Use `C' to denote so-called `contiguous' files, the same way
71060         that tar does.
71061         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
71062         (ftypelet): Use S_ISCTG.
71063         From Michael Deutschmann.
71064
71065 2000-04-14  Jim Meyering  <meyering@lucent.com>
71066
71067         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
71068         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
71069         clobbered.
71070
71071 2000-04-14  Jim Meyering  <meyering@lucent.com>
71072
71073         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
71074
71075 2000-04-13  Jim Meyering  <meyering@lucent.com>
71076
71077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
71078         AH_VERBATIM to insert required #ifndef into config.h.in.
71079         Suggestion from Akim Demaille.
71080
71081 2000-04-12  Jim Meyering  <meyering@lucent.com>
71082
71083         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
71084         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
71085         Christian Krackowizer.
71086
71087         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
71088         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
71089         (AC_SYS_LARGEFILE): Require.
71090         (AM_C_PROTOTYPES): Require.
71091
71092 2000-04-08  Jim Meyering  <meyering@lucent.com>
71093
71094         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
71095         names don't conflict.  Reported by Eli Zaretskii.
71096
71097 2000-04-07  Jim Meyering  <meyering@lucent.com>
71098
71099         * lib/putenv.c: Move inclusion of errno.h so it follows that of
71100         sys/types.h, to work around system header problems on AIX 3.2.5.
71101         From Bruno Haible.
71102
71103 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
71104
71105         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
71106         bug.  Deal with the different error behavior of Irix iconv.
71107
71108 2000-04-05  Paul Eggert  <eggert@twinsun.com>
71109
71110         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
71111         IRIX if the installer said otherwise.
71112
71113 2000-04-05  Jim Meyering  <meyering@lucent.com>
71114
71115         Portability tweaks required for ultrix4.3.
71116         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
71117         (jm_CHECK_DECLS): Add getutent to the list of functions.
71118         (_jm_DECL_HEADERS): Add utmpx.h.
71119         From John David Anglin.
71120
71121         * m4/strftime.m4: Back out the 2000-04-02 change.
71122         Instead of that change, simply undefine putenv in the test program.
71123
71124 2000-04-05  Jim Meyering  <meyering@lucent.com>
71125
71126         Portability tweaks required for ultrix4.3.
71127         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
71128         getutent.
71129         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
71130         * lib/canon-host.c: Declare strdup.
71131         * lib/path-concat.c: Likewise.
71132         From John David Anglin.
71133
71134 2000-04-04  Jim Meyering  <meyering@lucent.com>
71135
71136         Be more DOS 8.3-friendly.
71137         * lib/ref-add.sin: Renamed from ref-add.sed.in.
71138         * lib/ref-del.sin: Renamed from ref-del.sed.in.
71139         * lib/Makefile.am: Reflect renaming.
71140         Reported by Eli Zaretskii.
71141
71142         Use a temporary file name that won't clash with `charset.alias'
71143         in the DOS 8.3 name space.
71144         * lib/Makefile.am (charset_tmp): Define.
71145         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
71146         (uninstall-local): Likewise.
71147         Reported by Eli Zaretskii.
71148
71149 2000-04-03  Jim Meyering  <meyering@lucent.com>
71150
71151         * m4/gettext.m4: Fix typo in comment.
71152
71153         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
71154         textutils/configure.in).  Suggestion from Paul Eggert.
71155         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
71156
71157 2000-04-02  Paul Eggert  <eggert@twinsun.com>
71158
71159         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
71160         variable in the shell rather than using putenv, which isn't
71161         portable.  This avoids the configure-time inter-test dependency
71162         on the potentially-renamed putenv function.
71163
71164 2000-03-30  Paul Eggert  <eggert@twinsun.com>
71165
71166         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
71167         before checking struct stat.st_blksize, so that
71168         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
71169
71170 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71171
71172         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
71173         since strftime.c uses HAVE_STRFTIME to decide whether to use
71174         the underlying strftime.
71175
71176 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71177
71178         * lib/time/strftime.c (my_strftime): Make sure we call the system
71179         strftime, not ourselves, when invoking the underlying strftime.
71180
71181 2000-03-24  Jim Meyering  <meyering@lucent.com>
71182
71183         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
71184         (charset_alias): Define.
71185         (install-exec-local): Factor out common code.
71186         (uninstall-local): Split lines longer than 80.
71187         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
71188         (SUFFIXES): Define.
71189         (.sed.in.sed): New rule.  Don't redirect directly to $@.
71190         (CLEANFILES): Add ref-add.sed and ref-del.sed.
71191
71192 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
71193
71194         * lib/config.charset: Output a line containing "Packages using this
71195         file".
71196         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
71197         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
71198         ref-del.sed): New rules.
71199
71200 2000-03-17  Jim Meyering  <meyering@lucent.com>
71201
71202         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
71203         Otherwise, include <strings.h>
71204
71205 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
71206
71207         * lib/unicodeio.c (utf8_wctomb): New function.
71208         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
71209         format instead of in UCS-4 with platform dependent endianness.
71210
71211 2000-03-10  Jim Meyering  <meyering@lucent.com>
71212
71213         * m4/lib-check.m4: Look for getspnam in -lgen, too.
71214         From Marco Franzen.
71215
71216 2000-03-07  Paul Eggert  <eggert@twinsun.com>
71217
71218         * lib/savedir.c (savedir): Work even if directory size is
71219         negative; this can happen with some screwy NFS configurations.
71220
71221 2000-03-06  Jim Meyering  <meyering@lucent.com>
71222
71223         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
71224         if it's NULL (because we ran out of memory).  From Bruno Haible.
71225
71226 2000-03-05  Jim Meyering  <meyering@lucent.com>
71227
71228         * lib/localcharset.c ("path-concat.h"): Include.
71229         (get_charset_aliases): Use path_concat instead of ANSI string
71230         concatenation.
71231
71232         * lib/unicodeio.h (PARAMS): Define.
71233         Use it to guard prototype.
71234
71235 2000-03-04  Jim Meyering  <meyering@lucent.com>
71236
71237         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
71238         for lib/localcharset.c.
71239
71240 2000-03-04  Jim Meyering  <meyering@lucent.com>
71241
71242         * lib/Makefile.am (install-exec-local): Create $(libdir) before
71243         installing into it.
71244         (uninstall-local): Uncomment this rule so `make distcheck' works
71245         once again.
71246
71247         * lib/unicodeio.c (<errno.h>): Include it.
71248         (errno): Declare if not defined.
71249
71250         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
71251
71252         * lib/config.charset: New version, incorporating remarks from a linux
71253         i18n mailing list.  From Bruno Haible.
71254
71255 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
71256
71257         * m4/codeset.m4: New file.
71258         * m4/iconv.m4: New file.
71259         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
71260
71261 2000-03-03  Jim Meyering  <meyering@lucent.com>
71262
71263         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
71264
71265 2000-03-02  Jim Meyering  <meyering@lucent.com>
71266
71267         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
71268         the messages come out on separate lines.
71269
71270         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
71271         rather than jm_CHECK_DECLARATIONS.
71272         * m4/decl.m4: Remove now-unused file.
71273
71274         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
71275         geteuid.
71276
71277 2000-03-02  Jim Meyering  <meyering@lucent.com>
71278
71279         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
71280
71281 2000-03-01  Jim Meyering  <meyering@lucent.com>
71282
71283         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
71284         * lib/unicodeio.c: Likewise.
71285
71286 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
71287
71288         * lib/config.charset: New file.
71289         * lib/localcharset.c: New file.
71290         * lib/unicodeio.h, lib/unicodeio.c: New files.
71291         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
71292         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
71293         (noinst_HEADERS): Add unicodeio.h.
71294         (all-local, install-exec-local, charset.alias): New targets.
71295
71296 2000-02-28  Paul Eggert  <eggert@twinsun.com>
71297
71298         * lib/quotearg.c (ALERT_CHAR): New macro.
71299         (quotearg_buffer_restyled): Use it.
71300
71301 2000-02-27  Jim Meyering  <meyering@lucent.com>
71302
71303         * m4/check-decl.m4: Add getenv to the list.
71304
71305 2000-02-27  Jim Meyering  <meyering@lucent.com>
71306
71307         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
71308         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
71309
71310         * lib/backupfile.c: Guard inclusion of stdlib.h with
71311         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
71312         Declare malloc if needed.
71313
71314         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
71315         `#ifndef HAVE_DECL..'
71316         now that autoconf always defines the HAVE_DECL_ symbols.
71317         * lib/human.c: Likewise.
71318         * lib/same.c: Likewise.
71319         * lib/strtoumax.c: Likewise.
71320
71321         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
71322         declaration check was not run.
71323         * lib/hash.c: Likewise.
71324         * lib/human.c: Likewise.
71325         * lib/same.c: Likewise.
71326         * lib/strtoumax.c: Likewise.
71327
71328         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
71329         `.', then first look up the entire `.'-containing string as a login
71330         name.
71331
71332 2000-02-23  Jim Meyering  <meyering@lucent.com>
71333
71334         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
71335         in place of my hack.
71336
71337 2000-02-18  Paul Eggert  <eggert@twinsun.com>
71338
71339         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
71340         (textint): New typedef.
71341         (parser_control): Member year changed from int to textint.
71342         All uses changed.
71343         (YYSTYPE): Removed; replaced by %union with int and textint members.
71344         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
71345         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
71346         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
71347         (tSNUMBER, tUNUMBER): Now of type <textintval>.
71348         (date, number, to_year): Use width of number in digits, not its value,
71349         to determine whether it's a 2-digit year, or a 2-digit time.
71350         (yylex): Store number of digits of numeric tokens.
71351         Reported by John Kendall.
71352
71353         (parser_control): Changed from struct parser_control to typedef (for
71354         consistency).  All uses changed.
71355
71356         (tID): Removed; not used.
71357         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
71358
71359 2000-02-14  Paul Eggert  <eggert@twinsun.com>
71360
71361         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
71362         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
71363
71364 2000-02-12  Jim Meyering  <meyering@lucent.com>
71365
71366         * lib/userspec.c (ISDIGIT): Define it.
71367         (isdigit): Remove definition.
71368         (is_number): Use ISDIGIT, not isdigit.
71369         <libintl.h>: Include.
71370         (_ and N_): Define.
71371         (parse_user_spec): Mark translatable strings.
71372
71373 2000-02-10  Jim Meyering  <meyering@lucent.com>
71374
71375         With these changes, nanosleep.[ch] are finally enough like the other
71376         lib/* replacement files to compile on a few more losing systems.
71377
71378         * lib/nanosleep.h: Don't include config.h.
71379         Remove prototype from declaration of nanosleep.
71380         (PARAMS): Remove now-unneeded definition.
71381         * lib/nanosleep.c: #undef nanosleep.
71382         (rpl_nanosleep): Rename from nanosleep.
71383
71384 2000-02-10  Jim Meyering  <meyering@lucent.com>
71385
71386         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
71387         gnu_nanosleep to rpl_nanosleep.
71388
71389 2000-02-09  Jim Meyering  <meyering@lucent.com>
71390
71391         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
71392         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
71393
71394 2000-02-08  Akim Demaille  <akim@epita.fr>
71395
71396         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
71397         `[' and `]' and remove uses of `changequote'.
71398         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
71399         (AC_SYS_LARGEFILE): Likewise.
71400         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71401         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
71402         of changequote.
71403         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
71404         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
71405         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
71406         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
71407
71408 2000-02-05  Jim Meyering  <meyering@lucent.com>
71409
71410         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
71411         Remove explicit use of AC_HEADER_TIME.  It is required by
71412         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
71413         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
71414         in autoconf whereby the expansion of the latter ended up preceding
71415         the expansion of its prerequisite, AC_HEADER_TIME.
71416         Reported by Volker Borchert.
71417
71418 2000-02-03  Jim Meyering  <meyering@lucent.com>
71419
71420         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
71421
71422 2000-02-03  Jim Meyering  <meyering@lucent.com>
71423
71424         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
71425         rather than with `#if HAVE_UTMPNAME'.
71426
71427 2000-02-02  Jim Meyering  <meyering@lucent.com>
71428
71429         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
71430         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
71431         Reported by Eli Zaretskii.
71432
71433 2000-02-01  Jim Meyering  <meyering@lucent.com>
71434
71435         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
71436
71437 2000-01-31  Jim Meyering  <meyering@lucent.com>
71438
71439         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
71440         functions.  Add the time.h and sys/time.h headers along with the
71441         AC_REQUIRE'ment of AC_HEADER_TIME.
71442
71443 2000-01-31  Jim Meyering  <meyering@lucent.com>
71444
71445         * lib/nanosleep.h (nanosleep): Guard declaration with
71446         `#if ! HAVE_DECL_NANOSLEEP'.
71447         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
71448         the declaration in that vendor's sys/timers.h.
71449         Reported by Christian Krackowizer.
71450
71451         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
71452         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
71453         (ISPRINT): Likewise.
71454         Reported by Tom Tromey.
71455
71456 2000-01-30  Jim Meyering  <meyering@lucent.com>
71457
71458         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
71459
71460         * m4/prereq.m4 (utmp_includes): Define.
71461         Check for ut_user and ut_name members in both struct utmpx
71462         and struct utmp.
71463
71464 2000-01-30  Jim Meyering  <meyering@lucent.com>
71465
71466         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
71467         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
71468         header files where only utmpx.ut_user is declared.
71469
71470         * lib/readutmp.h (UT_USER): Define.
71471
71472 2000-01-29  Jim Meyering  <meyering@lucent.com>
71473
71474         * m4/lib-check.m4: New file containing library-related checks from
71475         fileutils and sh-utils (textutils had none).
71476
71477 2000-01-28  Jim Meyering  <meyering@lucent.com>
71478
71479         * m4/perl.m4: Change format of warning message to look more like that
71480         from the missing script.  Suggestion from François Pinard.
71481
71482 2000-01-25  Jim Meyering  <meyering@lucent.com>
71483
71484         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
71485         well as time.h in the compile check.
71486         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
71487         Fix typo in cross-compiling case: s/yes/no/.
71488
71489 2000-01-23  Jim Meyering  <meyering@lucent.com>
71490
71491         * m4/jm-macros.m4: Move df-related tests here from
71492         fileutils/configure.in
71493
71494         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
71495         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
71496
71497         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
71498         s/space/ac_fsusage_space/.
71499         (jm_FILE_SYSTEM_USAGE): Take two parameters.
71500
71501         * m4/ftruncate.m4: New file (derived from part of
71502         fileutils/configure.in).
71503         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
71504         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
71505
71506         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
71507         AC_SUBST these here, rather than just in sh-util/configure.in, so
71508         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
71509         all the same.
71510         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
71511         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
71512         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
71513         (AC_SUBST(POW_LIBM)): Likewise.
71514         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
71515
71516 2000-01-23  Jim Meyering  <meyering@lucent.com>
71517
71518         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
71519         obstack.c.
71520
71521 2000-01-22  Jim Meyering  <meyering@lucent.com>
71522
71523         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
71524
71525         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
71526
71527         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
71528         configure.in
71529         (AC_CHECK_HEADERS): Likewise for sh-utils.
71530         (AC_CHECK_HEADERS): Likewise for textutils.
71531         Merge the three lists of headers.
71532
71533         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
71534         from fileutils' configure.in.
71535
71536         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
71537         code. Moved tests into their own function (_jm_DECL_HEADERS) in
71538         check-decl.m4.
71539
71540         * m4/check-decl.m4: Use #if rather than #ifdef.
71541         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
71542         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
71543         (_jm_DECL_HEADERS): Define new function.
71544         (jm_CHECK_DECLARATIONS): Require it.
71545
71546 2000-01-22  Jim Meyering  <meyering@lucent.com>
71547
71548         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
71549         [! HAVE_DECL_STRTOULL]: Declare strtoull.
71550         Required for some AIX systems.  Reported by Christian Krackowizer.
71551         [TESTING] (main): New function.
71552
71553         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
71554         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
71555         letters.
71556
71557         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
71558         iswprint.
71559
71560         * lib/strverscmp.c (ISDIGIT): Define.
71561         (strverscmp): Use ISDIGIT, not isdigit.
71562
71563 2000-01-19  Jim Meyering  <meyering@lucent.com>
71564
71565         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
71566         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
71567         defines `struct timespec' in <sys/time.h>
71568
71569         * m4/c-bs-a.m4: Remove uses of changequote altogether.
71570         Thanks to Akim for explaining.
71571
71572 2000-01-17  Paul Eggert  <eggert@twinsun.com>
71573
71574         * lib/nanosleep.c (nanosleep):
71575         Don't use SA_INTERRUPT to decide whether to call sigaction, as
71576         POSIX.1 doesn't require SA_INTERRUPT and some systems
71577         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
71578         it's been part of POSIX.1 since day 1 (in 1988).
71579
71580 2000-01-17  Jim Meyering  <meyering@lucent.com>
71581
71582         * lib/interlock: Remove unused file.  Reported by François Pinard.
71583
71584 2000-01-16  Paul Eggert  <eggert@twinsun.com>
71585
71586         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
71587         alert, backslash, formfeed, and vertical tab unnecessarily in
71588         shell quoting style.
71589
71590 2000-01-16  Jim Meyering  <meyering@lucent.com>
71591
71592         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
71593         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
71594         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
71595         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
71596
71597 2000-01-16  Jim Meyering  <meyering@lucent.com>
71598
71599         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
71600         because the latter didn't work.
71601
71602 2000-01-15  Jim Meyering  <meyering@lucent.com>
71603
71604         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
71605         (AC_REPLACE_FUNCS): Add memcpy and memset.
71606         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
71607         Add strpbrk.
71608         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
71609
71610 2000-01-12  Jim Meyering  <meyering@lucent.com>
71611
71612         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
71613         (jm_PREREQ): Use it.
71614         (jm_PREREQ_READUTMP): New macro.
71615         (jm_PREREQ): Use it.
71616
71617 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71618
71619         Quote multibyte characters correctly.
71620         * m4/c-bs-a.m4: New file.
71621         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
71622         (jm_PREREQ): Use it.
71623
71624 2000-01-11  Paul Eggert  <eggert@twinsun.com>
71625
71626         * m4/uintmax_t.m4: Port to autoconf 2.13.
71627
71628 2000-01-08  Jim Meyering  <meyering@ascend.com>
71629
71630         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
71631         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
71632
71633 2000-01-04  Jim Meyering  <meyering@ascend.com>
71634
71635         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
71636         jm_STRUCT_DIRENT_D_TYPE.
71637         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
71638         jm_STRUCT_DIRENT_D_INO.
71639         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
71640         jm_STRUCT_UTIMBUF.
71641         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
71642         renamings.
71643         * m4/utime.m4: Likewise.
71644
71645         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
71646         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
71647
71648 2000-01-03  Paul Eggert  <eggert@twinsun.com>
71649
71650         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
71651         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
71652
71653 2000-01-02  Jim Meyering  <meyering@ascend.com>
71654
71655         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
71656         remember if this is necessary.
71657
71658 1999-12-26  Jim Meyering  <meyering@ascend.com>
71659
71660         * m4/jm-macros.m4: Use it here.
71661         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
71662
71663 1999-12-23  Jim Meyering  <meyering@ascend.com>
71664
71665         * m4/jm-macros.m4: Check for clock_gettime (moved from
71666         fileutils/configure.in)
71667         Check for gettimeofday.
71668
71669 1999-12-20  Jim Meyering  <meyering@ascend.com>
71670
71671         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
71672         autoconf-2.14a-1999-12-20.
71673
71674 1999-12-19  Jim Meyering  <meyering@ascend.com>
71675
71676         * m4/lstat-slash.m4: New file.
71677         * m4/jm-macros.m4: Use the new macro:
71678         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71679
71680 1999-12-07  Jim Meyering  <meyering@ascend.com>
71681
71682         * m4/perl.m4: Require that File::Compare be available, too.
71683         Too many systems seem to lack it.
71684
71685         * m4/strftime.m4: Add checks for most of the cpp macros tested in
71686         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
71687
71688 1999-11-18  Paul Eggert  <eggert@twinsun.com>
71689
71690         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
71691         problem with the QNX 4.25 shell, which doesn't propagate exit
71692         status of failed commands inside shell assignments.
71693
71694 1999-11-17  Jim Meyering  <meyering@ascend.com>
71695
71696         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
71697
71698 1999-11-07  Jim Meyering  <meyering@ascend.com>
71699
71700         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
71701
71702 1999-11-06  Jim Meyering  <meyering@ascend.com>
71703
71704         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
71705         * m4/jm-macros.m4 (jm_MACROS): Use it here.
71706
71707 1999-11-05  Jim Meyering  <meyering@ascend.com>
71708
71709         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
71710         configure.in of textutils, fileutils, and sh-utils into this one
71711         (shared between those packages) file.
71712         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
71713         AC_STRUCT_ST_BLKSIZE.
71714
71715 1999-11-03  Jim Meyering  <meyering@ascend.com>
71716
71717         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
71718         of AC_CHECK_TYPE checks includes unistd.h.
71719         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
71720         Suggestion from Akim Demaille.
71721
71722 1999-10-30  Jim Meyering  <meyering@ascend.com>
71723
71724         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
71725         m4-quoted string.
71726         * m4/ls-mntd-fs.m4: Likewise.
71727         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
71728         * m4/jm-winsz1.m4: Likewise.
71729
71730         * m4/const.m4: Remove file, since the fix made it into the experimental
71731         version of autoconf.
71732         * m4/mktime.m4: Likewise.
71733
71734         * m4/check-type.m4: Remove file, now that the latest version of
71735         AC_CHECK_TYPE takes a third arg to specify additional #includes.
71736
71737         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
71738         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
71739         AC_CHECK_TYPE.
71740
71741 1999-10-04  Jim Meyering  <meyering@ascend.com>
71742
71743         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
71744
71745 1999-09-22  Paul Eggert  <eggert@twinsun.com>
71746
71747         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
71748         2.95.1 bug with HP-UX 10.20.
71749
71750 1999-09-17  Jim Meyering  <meyering@ascend.com>
71751
71752         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
71753         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
71754         due to missing strdup (against sh-utils-2.0).
71755
71756 1999-08-29  Jim Meyering  <meyering@ascend.com>
71757
71758         * m4/jm-macros.m4: Require jm_BISON.
71759         * m4/bison.m4: New file.
71760
71761 1999-08-17  Paul Eggert  <eggert@twinsun.com>
71762
71763         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
71764         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
71765
71766 1999-08-05  Jim Meyering  <meyering@ascend.com>
71767
71768         * m4/getline.m4: Rename test file from conftestdata to conftest.data
71769         to avoid conflicts with `conftest' on 8+3 filesystems.
71770         Suggestion from Eli Zaretskii.
71771
71772 1999-08-04  Jim Meyering  <meyering@ascend.com>
71773
71774         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
71775         fileutils and sh-utils (textutils's getline test was inadequate).
71776         (AM_FUNC_GETLINE): Run this test.
71777         (AC_CHECK_FUNCS): Check for getdelim.
71778         Reported by Bob Proulx.
71779
71780 1999-08-02  Jim Meyering  <meyering@ascend.com>
71781
71782         * m4/jm-macros.m4: Add a comment.
71783
71784 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71785
71786         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
71787         <inttypes.h> defines strtoumax as a macro (and not as a
71788         function).
71789
71790 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71791
71792         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
71793         that we can shift, multiply and divide unsigned long long
71794         values; Ultrix cc can't do it.
71795
71796 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71797
71798         * m4/mktime.m4: New file, which is a preview of what should appear
71799         in the next public autoconf release.
71800
71801 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71802
71803         * m4/lfs.m4: Remove this file.
71804         * m4/largefile.m4: New file.  It contains the old contents of
71805         lfs.m4, except that all names with prefix AC_LFS have been
71806         changed to use the prefix AC_SYS_LARGEFILE instead, to be
71807         compatible with future autoconf versions.  Also, some minor m4
71808         quoting problems have been fixed.
71809
71810 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71811
71812         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
71813         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
71814         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
71815         and simplify the shell code.
71816
71817 1999-08-01  Jim Meyering  <meyering@ascend.com>
71818
71819         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
71820         m4.
71821
71822 1999-07-20  Jim Meyering  <meyering@ascend.com>
71823
71824         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
71825
71826 1999-07-15  Jim Meyering  <meyering@ascend.com>
71827
71828         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
71829
71830 1999-05-22  Jim Meyering  <meyering@ascend.com>
71831
71832         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
71833
71834 1999-05-20  Jim Meyering  <meyering@ascend.com>
71835
71836         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
71837         Add a colon after each `then' in case $4 is empty.
71838
71839 1999-05-16  Jim Meyering  <meyering@ascend.com>
71840
71841         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
71842
71843 1999-05-10  Jim Meyering  <meyering@ascend.com>
71844
71845         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
71846
71847         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
71848         AC_FUNC_MKTIME.
71849
71850 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
71851
71852         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
71853
71854 1999-05-04  Paul Eggert  <eggert@twinsun.com>
71855
71856         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
71857         not CPPFLAGS, so that linking works correctly in IRIX.
71858
71859 1999-04-30  Paul Eggert  <eggert@twinsun.com>
71860
71861         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
71862
71863 1999-04-20  Paul Eggert  <eggert@twinsun.com>
71864
71865         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
71866         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
71867         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
71868         jm_AC_TYPE_UNSIGNED_LONG_LONG.
71869         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
71870
71871         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
71872
71873 1999-04-20  Jim Meyering  <meyering@ascend.com>
71874
71875         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
71876         AC_REPLACE xstroull if necessary.  From Paul Eggert.
71877         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
71878
71879 1999-04-18  Jim Meyering  <meyering@ascend.com>
71880
71881         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
71882         * m4/jm-macros.m4: Use it.
71883
71884 1999-04-06  Jim Meyering  <meyering@ascend.com>
71885
71886         * m4/strftime.m4: Remove test for %f.
71887
71888 1999-03-29  Jim Meyering  <meyering@ascend.com>
71889
71890         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
71891         superset of the AC_TYPE_* checks in the textutils, fileutils,
71892         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
71893         AC_TYPE_PID_T.
71894
71895 1999-03-28  Jim Meyering  <meyering@ascend.com>
71896
71897         * m4/jm-macros.m4: Define GNU_PACKAGE here.
71898         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
71899         replaced e.g., in the *.sh files of the sh-utils.
71900
71901 1999-03-20  Jim Meyering  <meyering@ascend.com>
71902
71903         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
71904         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
71905         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
71906
71907 1999-03-19  Jim Meyering  <meyering@ascend.com>
71908
71909         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
71910
71911 1999-03-12  Jim Meyering  <meyering@ascend.com>
71912
71913         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
71914
71915 1999-03-07  Jim Meyering  <meyering@ascend.com>
71916
71917         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
71918         declared.
71919
71920 1999-02-17  Jim Meyering  <meyering@ascend.com>
71921
71922         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
71923         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
71924
71925 1999-02-07  Jim Meyering  <meyering@ascend.com>
71926
71927         * m4/group-member.m4: New file -- extracted from sh-utils'
71928         configure.in.
71929
71930         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
71931         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
71932
71933 1999-02-06  Jim Meyering  <meyering@ascend.com>
71934
71935         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
71936         * m4/fnmatch.m4: Likewise.
71937         * m4/getgroups.m4: Likewise.
71938         * m4/lstat.m4: Likewise.
71939         * m4/malloc.m4: Likewise.
71940         * m4/putenv.m4: Likewise.
71941         * m4/realloc.m4: Likewise.
71942         * m4/regex.m4: Likewise.
71943         * m4/stat.m4: Likewise.
71944         * m4/strftime.m4: Likewise.
71945         Suggestion from Alain Magloire.
71946
71947         * m4/chown.m4: Use `.$ac_objext', not `.o'.
71948         * m4/fnmatch.m4: Likewise.
71949         * m4/getgroups.m4: Likewise.
71950         * m4/getline.m4: Likewise.
71951         * m4/lstat.m4: Likewise.
71952         * m4/malloc.m4: Likewise.
71953         * m4/memcmp.m4: Likewise.
71954         * m4/putenv.m4: Likewise.
71955         * m4/realloc.m4: Likewise.
71956         * m4/regex.m4: Likewise.
71957         * m4/stat.m4: Likewise.
71958         * m4/strftime.m4: Likewise.
71959         Suggestion from Alain Magloire.
71960
71961         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
71962         an argument.
71963
71964         * m4/regex.m4: Add a run-time Test for proper operation of
71965         re_compile_pattern.
71966
71967 1999-01-31  Jim Meyering  <meyering@ascend.com>
71968
71969         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
71970
71971 1999-01-30  Jim Meyering  <meyering@ascend.com>
71972
71973         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
71974
71975         * m4/jm-mktime.m4: Make this a wrapper around the official
71976         AM_FUNC_MKTIME rather than my private copy, now that the official one
71977         is up to date.
71978         * m4/mktime.m4: Remove file.
71979
71980         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
71981         * m4/uptime.m4: Likewise.
71982         * m4/uintmax_t.m4: Likewise.
71983
71984 1999-01-28  Jim Meyering  <meyering@ascend.com>
71985
71986         * m4/jm-macros.m4: Use jm_AFS.
71987         * m4/afs.m4: New file (from fileutils' configure.in).
71988
71989         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
71990         * m4/chown.m4: Likewise.
71991         * m4/d-ino.m4: Likewise.
71992         * m4/d-type.m4: Likewise.
71993         * m4/fnmatch.m4: Likewise.
71994         * m4/getgroups.m4: Likewise.
71995         * m4/gettext.m4: Likewise.
71996         * m4/jm-mktime.m4: Likewise.
71997         * m4/jm-winsz2.m4: Likewise.
71998         * m4/lcmessage.m4: Likewise.
71999         * m4/ls-mntd-fs.m4: Likewise.
72000         * m4/malloc.m4: Likewise.
72001         * m4/memcmp.m4: Likewise.
72002         * m4/putenv.m4: Likewise.
72003         * m4/realloc.m4: Likewise.
72004         * m4/st_mtim.m4: Likewise.
72005         * m4/strftime.m4: Likewise.
72006
72007 1999-01-16  Jim Meyering  <meyering@ascend.com>
72008
72009         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
72010         (ARGMATCH_DIE_DECL): Define.
72011
72012 1999-01-12  Jim Meyering  <meyering@ascend.com>
72013
72014         * m4/Makefile.am.in: Rewrite to avoid using fmt.
72015         Reported by Lars Hecking.
72016
72017 1999-01-10  Jim Meyering  <meyering@ascend.com>
72018
72019         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
72020         gross kludge.
72021         * m4/inttypes_h.m4: Likewise.
72022         * m4/lstat.m4: Likewise.
72023         * m4/malloc.m4: Likewise.
72024         * m4/readdir.m4: Likewise.
72025         * m4/realloc.m4: Likewise.
72026         * m4/st_dm_mode.m4: Likewise.
72027         * m4/stat.m4: Likewise.
72028         * m4/utimbuf.m4: Likewise.
72029         * m4/utimes.m4: Likewise.
72030
72031         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
72032         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
72033         comments in config.h.in are meaningful.
72034
72035         * m4/jm-macros.m4: Require autoconf-2.13 here.
72036
72037         * m4/regex.m4: By default, don't use the included regex.c on systems
72038         with glibc 2.  Suggestion from Uli Drepper.
72039
72040 1999-01-02  Jim Meyering  <meyering@ascend.com>
72041
72042         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
72043
72044 1998-12-18  Jim Meyering  <meyering@ascend.com>
72045
72046         * m4/Makefile.am.in (Makefile.am): Simplify rule.
72047         Based on a suggestion from Lars Hecking.
72048
72049 1998-11-16  Paul Eggert  <eggert@twinsun.com>
72050
72051         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
72052
72053 1998-11-16  Jim Meyering  <meyering@ascend.com>
72054
72055         * m4/lfs.m4: Double-quote the `uname...` expression.
72056
72057 1998-11-14  Jim Meyering  <meyering@ascend.com>
72058
72059         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
72060         * m4/stat.m4: Likewise.
72061
72062 1998-11-03  Jim Meyering  <meyering@ascend.com>
72063
72064         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
72065         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
72066
72067 1998-10-18  Jim Meyering  <meyering@ascend.com>
72068
72069         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
72070
72071 1998-10-17  Jim Meyering  <meyering@ascend.com>
72072
72073         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
72074         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
72075         calls for those previously hard-coded headers.  Instead, take a new
72076         parameter.
72077         (jm_CHECK_DECLARATIONS): Reflect interface change.
72078         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
72079         (jm_CHECK_DECL_LOCALTIME_R): New macro.
72080
72081         * m4/mktime.m4: Test for spring-forward gap before long-running test.
72082
72083 1998-10-14  Jim Meyering  <meyering@ascend.com>
72084
72085         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
72086         instead of "TZ=America/Vancouver".  From Paul Eggert.
72087
72088 1998-10-11  Jim Meyering  <meyering@ascend.com>
72089
72090         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
72091         This adds a test for a recently added compatibility fix for mktime.c.
72092         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
72093
72094 1998-09-27  Jim Meyering  <meyering@ascend.com>
72095
72096         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
72097
72098         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
72099         ../configure.in, including a change from Gordon Matzigkeit to allow
72100         cross-compiling for the Hurd.
72101
72102         * m4/glibc.m4: New file/macro to test for the GNU C Library
72103         versions 1 and 2.  From Gordon Matzigkeit.
72104         Indent.
72105
72106 1998-09-21  Jim Meyering  <meyering@ascend.com>
72107
72108         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
72109
72110 1998-08-18  Paul Eggert  <eggert@twinsun.com>
72111
72112         Port nanosecond-resolution times to UnixWare 2.1.2 and
72113         pedantic Solaris 2.6.
72114
72115         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
72116         AC_STRUCT_ST_MTIM.
72117         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
72118         Generate name of ns member, instead of just 1 or undef.
72119         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
72120
72121 1998-08-15  Jim Meyering  <meyering@ascend.com>
72122
72123         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
72124         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
72125         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
72126         instead of jm_TYPE_SSIZE_T.
72127
72128 1998-08-12  Jim Meyering  <meyering@ascend.com>
72129
72130         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
72131
72132 1998-08-02  Jim Meyering  <meyering@ascend.com>
72133
72134         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
72135         in acconfig.h manually.
72136
72137 1998-07-31  Paul Eggert  <eggert@twinsun.com>
72138
72139         * m4/st_mtim.m4: New file.
72140
72141 1998-07-28  Jim Meyering  <meyering@ascend.com>
72142
72143         * m4/utimes.m4: Undef stat.
72144
72145 1998-07-25  Jim Meyering  <meyering@ascend.com>
72146
72147         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
72148         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
72149
72150 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
72151
72152         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
72153         uid and gid actually remain unchanged.
72154
72155 1998-07-07  Jim Meyering  <meyering@ascend.com>
72156
72157         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
72158
72159 1998-07-04  Jim Meyering  <meyering@ascend.com>
72160
72161         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
72162         to prove that this macro can be used in packages without regex.c.
72163
72164 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
72165
72166         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
72167         is to be used.
72168
72169 1998-07-03  Jim Meyering  <meyering@ascend.com>
72170
72171         * m4/gettext.m4: Add -lintl if it's found to be necessary.
72172
72173         * m4/gettext.m4: New file -- from gettext-0.10.35.
72174         * m4/lcmessage.m4: Likewise.
72175         * m4/progtest.m4: Likewise.
72176
72177         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
72178         * m4/jm-macros.m4: Require the new macro.
72179
72180 1998-06-29  Jim Meyering  <meyering@ascend.com>
72181
72182         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
72183         for the definition of NGROUPS (used in a system header included
72184         by sys/mount.h).
72185
72186 1998-06-28  Jim Meyering  <meyering@ascend.com>
72187
72188         * m4/ls-mntd-fs.m4: New file.
72189         * m4/fstypename.m4: New file.
72190
72191         * m4/jm-macros.m4: Require the new macro.
72192         * m4/jm-glibc-io.m4: New file.
72193
72194 1998-05-19  Jim Meyering  <meyering@ascend.com>
72195
72196         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
72197         * m4/lchown.m4: New file.
72198
72199         * m4/Makefile.am.in: New file.
72200         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
72201
72202 1998-05-14  Jim Meyering  <meyering@ascend.com>
72203
72204         * m4/Makefile.am (EXTRA_DIST): Add them.
72205         * m4/jm-macros.m4: New file.
72206         * m4/utimbuf.m4: New file.
72207
72208 1998-05-12  Jim Meyering  <meyering@ascend.com>
72209
72210         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
72211
72212 1998-05-11  Jim Meyering  <meyering@ascend.com>
72213
72214         * m4/isc-posix.m4: New file.
72215
72216 1998-05-10  Jim Meyering  <meyering@ascend.com>
72217
72218         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
72219
72220 1998-05-09  Jim Meyering  <meyering@ascend.com>
72221
72222         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
72223         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
72224         with automake.
72225
72226         * m4/ssize_t.m4: New file.
72227         * m4/mktime.m4: Remove file -- the new automake has this now.
72228
72229 1998-04-26  Jim Meyering  <meyering@ascend.com>
72230
72231         * m4/assert.m4: New file.
72232         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
72233
72234 1998-04-05  Jim Meyering  <meyering@ascend.com>
72235
72236         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
72237         (jm_PREREQ): Use it here.
72238
72239 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
72240
72241         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
72242         in acconfig.h.
72243
72244 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
72245
72246         * m4/prereq.m4: New file.
72247         * m4/error.m4: New file.
72248         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
72249
72250 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
72251
72252         * m4/getline.m4: Don't set am_cv_func_working_getline before the
72253         cache-check for the same variable -- that defeated the purpose of
72254         the test; the test program was never run.  This was a problem only
72255         on systems with losing getline functions -- HP-UX 10.20 is one.
72256         Reported by Bjorn Helgaas.
72257
72258 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
72259
72260         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
72261
72262 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
72263
72264         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
72265
72266         * m4/const.m4: New file.  Use an initializer in this declaration
72267         typedef int charset[2]; const charset x;
72268         Reported by Bob Glickstein.
72269
72270 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
72271
72272         * m4/chown.m4: Fix reversed types on -1 args to chown.
72273         From Kaveh Ghazi.
72274
72275 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
72276
72277         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
72278         Add lseek and memchr.
72279
72280         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
72281         T.E.Dickey <dickey@clark.net> said that some older preprocessors
72282         have a 20-character limit on names.
72283
72284 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
72285
72286         * m4/inttypes_h.m4: New file.
72287         * m4/uintmax_t.m4: New file.
72288         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
72289
72290
72291         -----
72292
72293         Local Variables:
72294         coding: utf-8
72295         End:
72296
72297         Copyright (C) 1997-2010 Free Software Foundation, Inc.
72298
72299         Copying and distribution of this file, with or without
72300         modification, are permitted provided the copyright notice
72301         and this notice are preserved.